@openez-graph/cli 0.6.0 → 0.7.0
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 +4 -0
- package/dist/cli.cjs +18 -0
- package/dist/web/assets/{WorkspaceGraph-Ri1UihNc.js → WorkspaceGraph-CllVZusW.js} +1 -1
- package/dist/web/assets/{index-E3f2Y5Cu.css → index-DZQ-CM_A.css} +1 -1
- package/dist/web/assets/index-DjbS8Om9.js +352 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-BQAXRdaL.js +0 -332
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
var Uy=n=>{throw TypeError(n)};var Bd=(n,a,i)=>a.has(n)||Uy("Cannot "+i);var k=(n,a,i)=>(Bd(n,a,"read from private field"),i?i.call(n):a.get(n)),ge=(n,a,i)=>a.has(n)?Uy("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,i),le=(n,a,i,l)=>(Bd(n,a,"write to private field"),l?l.call(n,i):a.set(n,i),i),Te=(n,a,i)=>(Bd(n,a,"access private method"),i);var wc=(n,a,i,l)=>({set _(o){le(n,a,o,i)},get _(){return k(n,a,l)}});function Cj(n,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 n)){const f=Object.getOwnPropertyDescriptor(l,o);f&&Object.defineProperty(n,o,f.get?f:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(n,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 f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function em(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hd={exports:{}},El={};/**
|
|
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 Tj(){if(By)return El;By=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:n,type:l,key:h,ref:o!==void 0?o:null,props:f}}return El.Fragment=a,El.jsx=i,El.jsxs=i,El}var Hy;function _j(){return Hy||(Hy=1,Hd.exports=Tj()),Hd.exports}var u=_j(),Pd={exports:{}},xe={};/**
|
|
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 Aj(){if(Py)return xe;Py=1;var n=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"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function C(O,Z,se){this.props=O,this.context=Z,this.refs=E,this.updater=se||R}C.prototype.isReactComponent={},C.prototype.setState=function(O,Z){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Z,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=C.prototype;function U(O,Z,se){this.props=O,this.context=Z,this.refs=E,this.updater=se||R}var T=U.prototype=new _;T.constructor=U,j(T,C.prototype),T.isPureReactComponent=!0;var P=Array.isArray;function Y(){}var M={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function L(O,Z,se){var ie=se.ref;return{$$typeof:n,type:O,key:Z,ref:ie!==void 0?ie:null,props:se}}function q(O,Z){return L(O.type,Z,O.props)}function W(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function ee(O){var Z={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(se){return Z[se]})}var ne=/\/+/g;function ae(O,Z){return typeof O=="object"&&O!==null&&O.key!=null?ee(""+O.key):Z.toString(36)}function de(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Y,Y):(O.status="pending",O.then(function(Z){O.status==="pending"&&(O.status="fulfilled",O.value=Z)},function(Z){O.status==="pending"&&(O.status="rejected",O.reason=Z)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function B(O,Z,se,ie,re){var he=typeof O;(he==="undefined"||he==="boolean")&&(O=null);var Se=!1;if(O===null)Se=!0;else switch(he){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(O.$$typeof){case n:case a:Se=!0;break;case x:return Se=O._init,B(Se(O._payload),Z,se,ie,re)}}if(Se)return re=re(O),Se=ie===""?"."+ae(O,0):ie,P(re)?(se="",Se!=null&&(se=Se.replace(ne,"$&/")+"/"),B(re,Z,se,"",function(zt){return zt})):re!=null&&(W(re)&&(re=q(re,se+(re.key==null||O&&O.key===re.key?"":(""+re.key).replace(ne,"$&/")+"/")+Se)),Z.push(re)),1;Se=0;var Le=ie===""?".":ie+":";if(P(O))for(var ye=0;ye<O.length;ye++)ie=O[ye],he=Le+ae(ie,ye),Se+=B(ie,Z,se,he,re);else if(ye=S(O),typeof ye=="function")for(O=ye.call(O),ye=0;!(ie=O.next()).done;)ie=ie.value,he=Le+ae(ie,ye++),Se+=B(ie,Z,se,he,re);else if(he==="object"){if(typeof O.then=="function")return B(de(O),Z,se,ie,re);throw Z=String(O),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Se}function X(O,Z,se){if(O==null)return O;var ie=[],re=0;return B(O,ie,"","",function(he){return Z.call(se,he,re++)}),ie}function J(O){if(O._status===-1){var Z=O._result;Z=Z(),Z.then(function(se){(O._status===0||O._status===-1)&&(O._status=1,O._result=se)},function(se){(O._status===0||O._status===-1)&&(O._status=2,O._result=se)}),O._status===-1&&(O._status=0,O._result=Z)}if(O._status===1)return O._result.default;throw O._result}var pe=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},te={map:X,forEach:function(O,Z,se){X(O,function(){Z.apply(this,arguments)},se)},count:function(O){var Z=0;return X(O,function(){Z++}),Z},toArray:function(O){return X(O,function(Z){return Z})||[]},only:function(O){if(!W(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return xe.Activity=v,xe.Children=te,xe.Component=C,xe.Fragment=i,xe.Profiler=o,xe.PureComponent=U,xe.StrictMode=l,xe.Suspense=g,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,xe.__COMPILER_RUNTIME={__proto__:null,c:function(O){return M.H.useMemoCache(O)}},xe.cache=function(O){return function(){return O.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(O,Z,se){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ie=j({},O.props),re=O.key;if(Z!=null)for(he in Z.key!==void 0&&(re=""+Z.key),Z)!D.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(ie[he]=Z[he]);var he=arguments.length-2;if(he===1)ie.children=se;else if(1<he){for(var Se=Array(he),Le=0;Le<he;Le++)Se[Le]=arguments[Le+2];ie.children=Se}return L(O.type,re,ie)},xe.createContext=function(O){return O={$$typeof:h,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},xe.createElement=function(O,Z,se){var ie,re={},he=null;if(Z!=null)for(ie in Z.key!==void 0&&(he=""+Z.key),Z)D.call(Z,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(re[ie]=Z[ie]);var Se=arguments.length-2;if(Se===1)re.children=se;else if(1<Se){for(var Le=Array(Se),ye=0;ye<Se;ye++)Le[ye]=arguments[ye+2];re.children=Le}if(O&&O.defaultProps)for(ie in Se=O.defaultProps,Se)re[ie]===void 0&&(re[ie]=Se[ie]);return L(O,he,re)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(O){return{$$typeof:m,render:O}},xe.isValidElement=W,xe.lazy=function(O){return{$$typeof:x,_payload:{_status:-1,_result:O},_init:J}},xe.memo=function(O,Z){return{$$typeof:p,type:O,compare:Z===void 0?null:Z}},xe.startTransition=function(O){var Z=M.T,se={};M.T=se;try{var ie=O(),re=M.S;re!==null&&re(se,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(Y,pe)}catch(he){pe(he)}finally{Z!==null&&se.types!==null&&(Z.types=se.types),M.T=Z}},xe.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},xe.use=function(O){return M.H.use(O)},xe.useActionState=function(O,Z,se){return M.H.useActionState(O,Z,se)},xe.useCallback=function(O,Z){return M.H.useCallback(O,Z)},xe.useContext=function(O){return M.H.useContext(O)},xe.useDebugValue=function(){},xe.useDeferredValue=function(O,Z){return M.H.useDeferredValue(O,Z)},xe.useEffect=function(O,Z){return M.H.useEffect(O,Z)},xe.useEffectEvent=function(O){return M.H.useEffectEvent(O)},xe.useId=function(){return M.H.useId()},xe.useImperativeHandle=function(O,Z,se){return M.H.useImperativeHandle(O,Z,se)},xe.useInsertionEffect=function(O,Z){return M.H.useInsertionEffect(O,Z)},xe.useLayoutEffect=function(O,Z){return M.H.useLayoutEffect(O,Z)},xe.useMemo=function(O,Z){return M.H.useMemo(O,Z)},xe.useOptimistic=function(O,Z){return M.H.useOptimistic(O,Z)},xe.useReducer=function(O,Z,se){return M.H.useReducer(O,Z,se)},xe.useRef=function(O){return M.H.useRef(O)},xe.useState=function(O){return M.H.useState(O)},xe.useSyncExternalStore=function(O,Z,se){return M.H.useSyncExternalStore(O,Z,se)},xe.useTransition=function(){return M.H.useTransition()},xe.version="19.2.7",xe}var qy;function Wl(){return qy||(qy=1,Pd.exports=Aj()),Pd.exports}var N=Wl();const oi=em(N),tm=Cj({__proto__:null,default:oi},[N]);var qd={exports:{}},Cl={},Gd={exports:{}},Qd={};/**
|
|
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 Mj(){return Gy||(Gy=1,(function(n){function a(B,X){var J=B.length;B.push(X);e:for(;0<J;){var pe=J-1>>>1,te=B[pe];if(0<o(te,X))B[pe]=X,B[J]=te,J=pe;else break e}}function i(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var X=B[0],J=B.pop();if(J!==X){B[0]=J;e:for(var pe=0,te=B.length,O=te>>>1;pe<O;){var Z=2*(pe+1)-1,se=B[Z],ie=Z+1,re=B[ie];if(0>o(se,J))ie<te&&0>o(re,se)?(B[pe]=re,B[ie]=J,pe=ie):(B[pe]=se,B[Z]=J,pe=Z);else if(ie<te&&0>o(re,J))B[pe]=re,B[ie]=J,pe=ie;else break e}}return X}function o(B,X){var J=B.sortIndex-X.sortIndex;return J!==0?J:B.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var g=[],p=[],x=1,v=null,b=3,S=!1,R=!1,j=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function T(B){for(var X=i(p);X!==null;){if(X.callback===null)l(p);else if(X.startTime<=B)l(p),X.sortIndex=X.expirationTime,a(g,X);else break;X=i(p)}}function P(B){if(j=!1,T(B),!R)if(i(g)!==null)R=!0,Y||(Y=!0,ee());else{var X=i(p);X!==null&&de(P,X.startTime-B)}}var Y=!1,M=-1,D=5,L=-1;function q(){return E?!0:!(n.unstable_now()-L<D)}function W(){if(E=!1,Y){var B=n.unstable_now();L=B;var X=!0;try{e:{R=!1,j&&(j=!1,_(M),M=-1),S=!0;var J=b;try{t:{for(T(B),v=i(g);v!==null&&!(v.expirationTime>B&&q());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,b=v.priorityLevel;var te=pe(v.expirationTime<=B);if(B=n.unstable_now(),typeof te=="function"){v.callback=te,T(B),X=!0;break t}v===i(g)&&l(g),T(B)}else l(g);v=i(g)}if(v!==null)X=!0;else{var O=i(p);O!==null&&de(P,O.startTime-B),X=!1}}break e}finally{v=null,b=J,S=!1}X=void 0}}finally{X?ee():Y=!1}}}var ee;if(typeof U=="function")ee=function(){U(W)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ae=ne.port2;ne.port1.onmessage=W,ee=function(){ae.postMessage(null)}}else ee=function(){C(W,0)};function de(B,X){M=C(function(){B(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(B){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var J=b;b=X;try{return B()}finally{b=J}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var J=b;b=B;try{return X()}finally{b=J}},n.unstable_scheduleCallback=function(B,X,J){var pe=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?pe+J:pe):J=pe,B){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=J+te,B={id:x++,callback:X,priorityLevel:B,startTime:J,expirationTime:te,sortIndex:-1},J>pe?(B.sortIndex=J,a(p,B),i(g)===null&&B===i(p)&&(j?(_(M),M=-1):j=!0,de(P,J-pe))):(B.sortIndex=te,a(g,B),R||S||(R=!0,Y||(Y=!0,ee()))),B},n.unstable_shouldYield=q,n.unstable_wrapCallback=function(B){var X=b;return function(){var J=b;b=X;try{return B.apply(this,arguments)}finally{b=J}}}})(Qd)),Qd}var Qy;function Oj(){return Qy||(Qy=1,Gd.exports=Mj()),Gd.exports}var Vd={exports:{}},At={};/**
|
|
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 Vy;function Dj(){if(Vy)return At;Vy=1;var n=Wl();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}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 f(g,p,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:g,containerInfo:p,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,At.createPortal=function(g,p){var x=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 f(g,p,null,x)},At.flushSync=function(g){var p=h.T,x=l.p;try{if(h.T=null,l.p=2,g)return g()}finally{h.T=p,l.p=x,l.d.f()}},At.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))},At.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},At.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,v=m(x,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?l.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:S}):x==="script"&&l.d.X(g,{crossOrigin:v,integrity:b,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},At.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);l.d.M(g,{crossOrigin:x,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)},At.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,v=m(x,p.crossOrigin);l.d.L(g,x,{crossOrigin:v,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})}},At.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=m(p.as,p.crossOrigin);l.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(g)},At.requestFormReset=function(g){l.d.r(g)},At.unstable_batchedUpdates=function(g,p){return g(p)},At.useFormState=function(g,p,x){return h.H.useFormState(g,p,x)},At.useFormStatus=function(){return h.H.useHostTransitionStatus()},At.version="19.2.7",At}var Yy;function Lb(){if(Yy)return Vd.exports;Yy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Vd.exports=Dj(),Vd.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 Xy;function zj(){if(Xy)return Cl;Xy=1;var n=Oj(),a=Wl(),i=Lb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var s=e,r=t;;){var c=s.return;if(c===null)break;var d=c.alternate;if(d===null){if(r=c.return,r!==null){s=r;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===s)return g(c),e;if(d===r)return g(c),t;d=d.sibling}throw Error(l(188))}if(s.return!==r.return)s=c,r=d;else{for(var y=!1,w=c.child;w;){if(w===s){y=!0,s=c,r=d;break}if(w===r){y=!0,r=c,s=d;break}w=w.sibling}if(!y){for(w=d.child;w;){if(w===s){y=!0,s=d,r=c;break}if(w===r){y=!0,r=d,s=c;break}w=w.sibling}if(!y)throw Error(l(189))}}if(s.alternate!==r)throw Error(l(190))}if(s.tag!==3)throw Error(l(188));return s.stateNode.current===s?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),U=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case Y:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case U:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case T:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var de=Array.isArray,B=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},pe=[],te=-1;function O(e){return{current:e}}function Z(e){0>te||(e.current=pe[te],pe[te]=null,te--)}function se(e,t){te++,pe[te]=e.current,e.current=t}var ie=O(null),re=O(null),he=O(null),Se=O(null);function Le(e,t){switch(se(he,t),se(re,e),se(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ry(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ry(t),e=ly(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ie),se(ie,e)}function ye(){Z(ie),Z(re),Z(he)}function zt(e){e.memoizedState!==null&&se(Se,e);var t=ie.current,s=ly(t,e.type);t!==s&&(se(re,e),se(ie,s))}function xt(e){re.current===e&&(Z(ie),Z(re)),Se.current===e&&(Z(Se),wl._currentValue=J)}var Tt,kt;function mt(e){if(Tt===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);Tt=t&&t[1]||"",kt=-1<s.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Tt+e+kt}var js=!1;function _a(e,t){if(!e||js)return"";js=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(I){var V=I}Reflect.construct(e,[],$)}else{try{$.call()}catch(I){V=I}e.call($.prototype)}}else{try{throw Error()}catch(I){V=I}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(I){if(I&&V&&typeof I.stack=="string")return[I.stack,V.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),y=d[0],w=d[1];if(y&&w){var A=y.split(`
|
|
44
|
-
`),Q=w.split(`
|
|
45
|
-
`);for(c=r=0;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;for(;c<Q.length&&!Q[c].includes("DetermineComponentFrameRoot");)c++;if(r===A.length||c===Q.length)for(r=A.length-1,c=Q.length-1;1<=r&&0<=c&&A[r]!==Q[c];)c--;for(;1<=r&&0<=c;r--,c--)if(A[r]!==Q[c]){if(r!==1||c!==1)do if(r--,c--,0>c||A[r]!==Q[c]){var K=`
|
|
46
|
-
`+A[r].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=r&&0<=c);break}}}finally{js=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?mt(s):""}function pi(e,t){switch(e.tag){case 26:case 27:case 5:return mt(e.type);case 16:return mt("Lazy");case 13:return e.child!==t&&t!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return _a(e.type,!1);case 11:return _a(e.type.render,!1);case 1:return _a(e.type,!0);case 31:return mt("Activity");default:return""}}function Rn(e){try{var t="",s=null;do t+=pi(e,s),s=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
-
Error generating stack: `+r.message+`
|
|
48
|
-
`+r.stack}}var hn=Object.prototype.hasOwnProperty,En=n.unstable_scheduleCallback,Dr=n.unstable_cancelCallback,so=n.unstable_shouldYield,Nu=n.unstable_requestPaint,_t=n.unstable_now,Ge=n.unstable_getCurrentPriorityLevel,bt=n.unstable_ImmediatePriority,Un=n.unstable_UserBlockingPriority,gi=n.unstable_NormalPriority,oS=n.unstable_LowPriority,Pm=n.unstable_IdlePriority,cS=n.log,uS=n.unstable_setDisableYieldValue,zr=null,$t=null;function Aa(e){if(typeof cS=="function"&&uS(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(zr,e)}catch{}}var Jt=Math.clz32?Math.clz32:hS,fS=Math.log,dS=Math.LN2;function hS(e){return e>>>=0,e===0?32:31-(fS(e)/dS|0)|0}var io=256,ro=262144,lo=4194304;function Ns(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function oo(e,t,s){var r=e.pendingLanes;if(r===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var w=r&134217727;return w!==0?(r=w&~d,r!==0?c=Ns(r):(y&=w,y!==0?c=Ns(y):s||(s=w&~e,s!==0&&(c=Ns(s))))):(w=r&~d,w!==0?c=Ns(w):y!==0?c=Ns(y):s||(s=r&~e,s!==0&&(c=Ns(s)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,s=t&-t,d>=s||d===32&&(s&4194048)!==0)?t:c}function kr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qm(){var e=lo;return lo<<=1,(lo&62914560)===0&&(lo=4194304),e}function Ru(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function Lr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pS(e,t,s,r,c,d){var y=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var w=e.entanglements,A=e.expirationTimes,Q=e.hiddenUpdates;for(s=y&~s;0<s;){var K=31-Jt(s),$=1<<K;w[K]=0,A[K]=-1;var V=Q[K];if(V!==null)for(Q[K]=null,K=0;K<V.length;K++){var I=V[K];I!==null&&(I.lane&=-536870913)}s&=~$}r!==0&&Gm(e,r,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Gm(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Jt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|s&261930}function Qm(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var r=31-Jt(s),c=1<<r;c&t|e[r]&t&&(e[r]|=t),s&=~c}}function Vm(e,t){var s=t&-t;return s=(s&42)!==0?1:Eu(s),(s&(e.suspendedLanes|t))!==0?0:s}function Eu(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 Ym(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Ay(e.type))}function Xm(e,t){var s=X.p;try{return X.p=e,t()}finally{X.p=s}}var Ma=Math.random().toString(36).slice(2),St="__reactFiber$"+Ma,Ht="__reactProps$"+Ma,vi="__reactContainer$"+Ma,Tu="__reactEvents$"+Ma,gS="__reactListeners$"+Ma,vS="__reactHandles$"+Ma,Im="__reactResources$"+Ma,Ur="__reactMarker$"+Ma;function _u(e){delete e[St],delete e[Ht],delete e[Tu],delete e[gS],delete e[vS]}function yi(e){var t=e[St];if(t)return t;for(var s=e.parentNode;s;){if(t=s[vi]||s[St]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=my(e);e!==null;){if(s=e[St])return s;e=my(e)}return t}e=s,s=e.parentNode}return null}function xi(e){if(e=e[St]||e[vi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Br(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function bi(e){var t=e[Im];return t||(t=e[Im]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pt(e){e[Ur]=!0}var Km=new Set,Zm={};function Rs(e,t){Si(e,t),Si(e+"Capture",t)}function Si(e,t){for(Zm[e]=t,e=0;e<t.length;e++)Km.add(t[e])}var yS=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]*$"),Fm={},Wm={};function xS(e){return hn.call(Wm,e)?!0:hn.call(Fm,e)?!1:yS.test(e)?Wm[e]=!0:(Fm[e]=!0,!1)}function co(e,t,s){if(xS(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function uo(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function $n(e,t,s,r){if(r===null)e.removeAttribute(s);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+r)}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $m(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bS(e,t,s){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){s=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Au(e){if(!e._valueTracker){var t=$m(e)?"checked":"value";e._valueTracker=bS(e,t,""+e[t])}}function Jm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),r="";return e&&(r=$m(e)?e.checked?"true":"false":e.value),e=r,e!==s?(t.setValue(e),!0):!1}function fo(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 SS=/[\n"\\]/g;function pn(e){return e.replace(SS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mu(e,t,s,r,c,d,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Ou(e,y,mn(t)):s!=null?Ou(e,y,mn(s)):r!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+mn(w):e.removeAttribute("name")}function ep(e,t,s,r,c,d,y,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Au(e);return}s=s!=null?""+mn(s):"",t=t!=null?""+mn(t):s,w||t===e.value||(e.value=t),e.defaultValue=t}r=r??c,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=w?e.checked:!!r,e.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Au(e)}function Ou(e,t,s){t==="number"&&fo(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function wi(e,t,s,r){if(e=e.options,t){t={};for(var c=0;c<s.length;c++)t["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=t.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&r&&(e[s].defaultSelected=!0)}else{for(s=""+mn(s),t=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,r&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function tp(e,t,s){if(t!=null&&(t=""+mn(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+mn(s):""}function np(e,t,s,r){if(t==null){if(r!=null){if(s!=null)throw Error(l(92));if(de(r)){if(1<r.length)throw Error(l(93));r=r[0]}s=r}s==null&&(s=""),t=s}s=mn(t),e.defaultValue=s,r=e.textContent,r===s&&r!==""&&r!==null&&(e.value=r),Au(e)}function ji(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var wS=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 ap(e,t,s){var r=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,s):typeof s!="number"||s===0||wS.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function sp(e,t,s){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,s!=null){for(var r in s)!s.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var c in t)r=t[c],t.hasOwnProperty(c)&&s[c]!==r&&ap(e,c,r)}else for(var d in t)t.hasOwnProperty(d)&&ap(e,d,t[d])}function Du(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 jS=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"]]),NS=/^[\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 ho(e){return NS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}var zu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ni=null,Ri=null;function ip(e){var t=xi(e);if(t&&(e=t.stateNode)){var s=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var r=s[t];if(r!==e&&r.form===e.form){var c=r[Ht]||null;if(!c)throw Error(l(90));Mu(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<s.length;t++)r=s[t],r.form===e.form&&Jm(r)}break e;case"textarea":tp(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&wi(e,!!s.multiple,t,!1)}}}var Lu=!1;function rp(e,t,s){if(Lu)return e(t,s);Lu=!0;try{var r=e(t);return r}finally{if(Lu=!1,(Ni!==null||Ri!==null)&&(ec(),Ni&&(t=Ni,e=Ri,Ri=Ni=null,ip(t),e)))for(t=0;t<e.length;t++)ip(e[t])}}function Hr(e,t){var s=e.stateNode;if(s===null)return null;var r=s[Ht]||null;if(r===null)return null;s=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(l(231,t,typeof s));return s}var ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(ea)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{Uu=!1}var Oa=null,Bu=null,mo=null;function lp(){if(mo)return mo;var e,t=Bu,s=t.length,r,c="value"in Oa?Oa.value:Oa.textContent,d=c.length;for(e=0;e<s&&t[e]===c[e];e++);var y=s-e;for(r=1;r<=y&&t[s-r]===c[d-r];r++);return mo=c.slice(e,1<r?1-r:void 0)}function po(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function go(){return!0}function op(){return!1}function Pt(e){function t(s,r,c,d,y){this._reactName=s,this._targetInst=c,this.type=r,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(s=e[w],this[w]=s?s(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?go:op,this.isPropagationStopped=op,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=go)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=go)},persist:function(){},isPersistent:go}),t}var Es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vo=Pt(Es),qr=v({},Es,{view:0,detail:0}),RS=Pt(qr),Hu,Pu,Gr,yo=v({},qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,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!==Gr&&(Gr&&e.type==="mousemove"?(Hu=e.screenX-Gr.screenX,Pu=e.screenY-Gr.screenY):Pu=Hu=0,Gr=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:Pu}}),cp=Pt(yo),ES=v({},yo,{dataTransfer:0}),CS=Pt(ES),TS=v({},qr,{relatedTarget:0}),qu=Pt(TS),_S=v({},Es,{animationName:0,elapsedTime:0,pseudoElement:0}),AS=Pt(_S),MS=v({},Es,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OS=Pt(MS),DS=v({},Es,{data:0}),up=Pt(DS),zS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kS={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"},LS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function US(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=LS[e])?!!t[e]:!1}function Gu(){return US}var BS=v({},qr,{key:function(e){if(e.key){var t=zS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=po(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(e){return e.type==="keypress"?po(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?po(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),HS=Pt(BS),PS=v({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fp=Pt(PS),qS=v({},qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),GS=Pt(qS),QS=v({},Es,{propertyName:0,elapsedTime:0,pseudoElement:0}),VS=Pt(QS),YS=v({},yo,{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}),XS=Pt(YS),IS=v({},Es,{newState:0,oldState:0}),KS=Pt(IS),ZS=[9,13,27,32],Qu=ea&&"CompositionEvent"in window,Qr=null;ea&&"documentMode"in document&&(Qr=document.documentMode);var FS=ea&&"TextEvent"in window&&!Qr,dp=ea&&(!Qu||Qr&&8<Qr&&11>=Qr),hp=" ",mp=!1;function pp(e,t){switch(e){case"keyup":return ZS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function WS(e,t){switch(e){case"compositionend":return gp(t);case"keypress":return t.which!==32?null:(mp=!0,hp);case"textInput":return e=t.data,e===hp&&mp?null:e;default:return null}}function $S(e,t){if(Ei)return e==="compositionend"||!Qu&&pp(e,t)?(e=lp(),mo=Bu=Oa=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dp&&t.locale!=="ko"?null:t.data;default:return null}}var JS={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 vp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JS[e.type]:t==="textarea"}function yp(e,t,s,r){Ni?Ri?Ri.push(r):Ri=[r]:Ni=r,t=lc(t,"onChange"),0<t.length&&(s=new vo("onChange","change",null,s,r),e.push({event:s,listeners:t}))}var Vr=null,Yr=null;function ew(e){ey(e,0)}function xo(e){var t=Br(e);if(Jm(t))return e}function xp(e,t){if(e==="change")return t}var bp=!1;if(ea){var Vu;if(ea){var Yu="oninput"in document;if(!Yu){var Sp=document.createElement("div");Sp.setAttribute("oninput","return;"),Yu=typeof Sp.oninput=="function"}Vu=Yu}else Vu=!1;bp=Vu&&(!document.documentMode||9<document.documentMode)}function wp(){Vr&&(Vr.detachEvent("onpropertychange",jp),Yr=Vr=null)}function jp(e){if(e.propertyName==="value"&&xo(Yr)){var t=[];yp(t,Yr,e,ku(e)),rp(ew,t)}}function tw(e,t,s){e==="focusin"?(wp(),Vr=t,Yr=s,Vr.attachEvent("onpropertychange",jp)):e==="focusout"&&wp()}function nw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xo(Yr)}function aw(e,t){if(e==="click")return xo(t)}function sw(e,t){if(e==="input"||e==="change")return xo(t)}function iw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:iw;function Xr(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),r=Object.keys(t);if(s.length!==r.length)return!1;for(r=0;r<s.length;r++){var c=s[r];if(!hn.call(t,c)||!en(e[c],t[c]))return!1}return!0}function Np(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rp(e,t){var s=Np(e);e=0;for(var r;s;){if(s.nodeType===3){if(r=e+s.textContent.length,e<=t&&r>=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Np(s)}}function Ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fo(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=fo(e.document)}return t}function Xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var rw=ea&&"documentMode"in document&&11>=document.documentMode,Ci=null,Iu=null,Ir=null,Ku=!1;function Tp(e,t,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ku||Ci==null||Ci!==fo(r)||(r=Ci,"selectionStart"in r&&Xu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Xr(Ir,r)||(Ir=r,r=lc(Iu,"onSelect"),0<r.length&&(t=new vo("onSelect","select",null,t,s),e.push({event:t,listeners:r}),t.target=Ci)))}function Cs(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Ti={animationend:Cs("Animation","AnimationEnd"),animationiteration:Cs("Animation","AnimationIteration"),animationstart:Cs("Animation","AnimationStart"),transitionrun:Cs("Transition","TransitionRun"),transitionstart:Cs("Transition","TransitionStart"),transitioncancel:Cs("Transition","TransitionCancel"),transitionend:Cs("Transition","TransitionEnd")},Zu={},_p={};ea&&(_p=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function Ts(e){if(Zu[e])return Zu[e];if(!Ti[e])return e;var t=Ti[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in _p)return Zu[e]=t[s];return e}var Ap=Ts("animationend"),Mp=Ts("animationiteration"),Op=Ts("animationstart"),lw=Ts("transitionrun"),ow=Ts("transitionstart"),cw=Ts("transitioncancel"),Dp=Ts("transitionend"),zp=new Map,Fu="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(" ");Fu.push("scrollEnd");function Cn(e,t){zp.set(e,t),Rs(t,[e])}var bo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gn=[],_i=0,Wu=0;function So(){for(var e=_i,t=Wu=_i=0;t<e;){var s=gn[t];gn[t++]=null;var r=gn[t];gn[t++]=null;var c=gn[t];gn[t++]=null;var d=gn[t];if(gn[t++]=null,r!==null&&c!==null){var y=r.pending;y===null?c.next=c:(c.next=y.next,y.next=c),r.pending=c}d!==0&&kp(s,c,d)}}function wo(e,t,s,r){gn[_i++]=e,gn[_i++]=t,gn[_i++]=s,gn[_i++]=r,Wu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $u(e,t,s,r){return wo(e,t,s,r),jo(e)}function _s(e,t){return wo(e,null,null,t),jo(e)}function kp(e,t,s){e.lanes|=s;var r=e.alternate;r!==null&&(r.lanes|=s);for(var c=!1,d=e.return;d!==null;)d.childLanes|=s,r=d.alternate,r!==null&&(r.childLanes|=s),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&&t!==null&&(c=31-Jt(s),e=d.hiddenUpdates,r=e[c],r===null?e[c]=[t]:r.push(t),t.lane=s|536870912),d):null}function jo(e){if(50<pl)throw pl=0,od=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ai={};function uw(e,t,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,s,r){return new uw(e,t,s,r)}function Ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var s=e.alternate;return s===null?(s=tn(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Lp(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function No(e,t,s,r,c,d){var y=0;if(r=e,typeof e=="function")Ju(e)&&(y=1);else if(typeof e=="string")y=pj(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=tn(31,s,t,c),e.elementType=L,e.lanes=d,e;case j:return As(s.children,c,d,t);case E:y=8,c|=24;break;case C:return e=tn(12,s,t,c|2),e.elementType=C,e.lanes=d,e;case P:return e=tn(13,s,t,c),e.elementType=P,e.lanes=d,e;case Y:return e=tn(19,s,t,c),e.elementType=Y,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:y=10;break e;case _:y=9;break e;case T:y=11;break e;case M:y=14;break e;case D:y=16,r=null;break e}y=29,s=Error(l(130,e===null?"null":typeof e,"")),r=null}return t=tn(y,s,t,c),t.elementType=e,t.type=r,t.lanes=d,t}function As(e,t,s,r){return e=tn(7,e,r,t),e.lanes=s,e}function ef(e,t,s){return e=tn(6,e,null,t),e.lanes=s,e}function Up(e){var t=tn(18,null,null,0);return t.stateNode=e,t}function tf(e,t,s){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bp=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var s=Bp.get(e);return s!==void 0?s:(t={value:e,source:t,stack:Rn(t)},Bp.set(e,t),t)}return{value:e,source:t,stack:Rn(t)}}var Mi=[],Oi=0,Ro=null,Kr=0,yn=[],xn=0,Da=null,Bn=1,Hn="";function na(e,t){Mi[Oi++]=Kr,Mi[Oi++]=Ro,Ro=e,Kr=t}function Hp(e,t,s){yn[xn++]=Bn,yn[xn++]=Hn,yn[xn++]=Da,Da=e;var r=Bn;e=Hn;var c=32-Jt(r)-1;r&=~(1<<c),s+=1;var d=32-Jt(t)+c;if(30<d){var y=c-c%5;d=(r&(1<<y)-1).toString(32),r>>=y,c-=y,Bn=1<<32-Jt(t)+c|s<<c|r,Hn=d+e}else Bn=1<<d|s<<c|r,Hn=e}function nf(e){e.return!==null&&(na(e,1),Hp(e,1,0))}function af(e){for(;e===Ro;)Ro=Mi[--Oi],Mi[Oi]=null,Kr=Mi[--Oi],Mi[Oi]=null;for(;e===Da;)Da=yn[--xn],yn[xn]=null,Hn=yn[--xn],yn[xn]=null,Bn=yn[--xn],yn[xn]=null}function Pp(e,t){yn[xn++]=Bn,yn[xn++]=Hn,yn[xn++]=Da,Bn=t.id,Hn=t.overflow,Da=e}var wt=null,Ke=null,_e=!1,za=null,bn=!1,sf=Error(l(519));function ka(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zr(vn(t,e)),sf}function qp(e){var t=e.stateNode,s=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ht]=r,s){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(s=0;s<vl.length;s++)Re(vl[s],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),ep(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),np(t,r.value,r.defaultValue,r.children)}s=r.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||r.suppressHydrationWarning===!0||sy(t.textContent,s)?(r.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),r.onScroll!=null&&Re("scroll",t),r.onScrollEnd!=null&&Re("scrollend",t),r.onClick!=null&&(t.onclick=Jn),t=!0):t=!1,t||ka(e,!0)}function Gp(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:bn=!1;return;case 27:case 3:bn=!0;return;default:wt=wt.return}}function Di(e){if(e!==wt)return!1;if(!_e)return Gp(e),_e=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||jd(e.type,e.memoizedProps)),s=!s),s&&Ke&&ka(e),Gp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ke=hy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ke=hy(e)}else t===27?(t=Ke,Za(e.type)?(e=Td,Td=null,Ke=e):Ke=t):Ke=wt?wn(e.stateNode.nextSibling):null;return!0}function Ms(){Ke=wt=null,_e=!1}function rf(){var e=za;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),za=null),e}function Zr(e){za===null?za=[e]:za.push(e)}var lf=O(null),Os=null,aa=null;function La(e,t,s){se(lf,t._currentValue),t._currentValue=s}function sa(e){e._currentValue=lf.current,Z(lf)}function of(e,t,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===s)break;e=e.return}}function cf(e,t,s,r){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=c;for(var A=0;A<t.length;A++)if(w.context===t[A]){d.lanes|=s,w=d.alternate,w!==null&&(w.lanes|=s),of(d.return,s,e),r||(y=null);break e}d=w.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(l(341));y.lanes|=s,d=y.alternate,d!==null&&(d.lanes|=s),of(y,s,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function zi(e,t,s,r){e=null;for(var c=t,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 y=c.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var w=c.type;en(c.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(c===Se.current){if(y=c.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(wl):e=[wl])}c=c.return}e!==null&&cf(t,e,s,r),t.flags|=262144}function Eo(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ds(e){Os=e,aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Qp(Os,e)}function Co(e,t){return Os===null&&Ds(e),Qp(e,t)}function Qp(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},aa===null){if(e===null)throw Error(l(308));aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else aa=aa.next=t;return s}var fw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},dw=n.unstable_scheduleCallback,hw=n.unstable_NormalPriority,rt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uf(){return{controller:new fw,data:new Map,refCount:0}}function Fr(e){e.refCount--,e.refCount===0&&dw(hw,function(){e.controller.abort()})}var Wr=null,ff=0,ki=0,Li=null;function mw(e,t){if(Wr===null){var s=Wr=[];ff=0,ki=md(),Li={status:"pending",value:void 0,then:function(r){s.push(r)}}}return ff++,t.then(Vp,Vp),t}function Vp(){if(--ff===0&&Wr!==null){Li!==null&&(Li.status="fulfilled");var e=Wr;Wr=null,ki=0,Li=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pw(e,t){var s=[],r={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var c=0;c<s.length;c++)(0,s[c])(t)},function(c){for(r.status="rejected",r.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),r}var Yp=B.S;B.S=function(e,t){Tv=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&mw(e,t),Yp!==null&&Yp(e,t)};var zs=O(null);function df(){var e=zs.current;return e!==null?e:Ie.pooledCache}function To(e,t){t===null?se(zs,zs.current):se(zs,t.pool)}function Xp(){var e=df();return e===null?null:{parent:rt._currentValue,pool:e}}var Ui=Error(l(460)),hf=Error(l(474)),_o=Error(l(542)),Ao={then:function(){}};function Ip(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kp(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(Jn,Jn),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fp(e),e;default:if(typeof t.status=="string")t.then(Jn,Jn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=r}},function(r){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fp(e),e}throw Ls=t,Ui}}function ks(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ls=s,Ui):s}}var Ls=null;function Zp(){if(Ls===null)throw Error(l(459));var e=Ls;return Ls=null,e}function Fp(e){if(e===Ui||e===_o)throw Error(l(483))}var Bi=null,$r=0;function Mo(e){var t=$r;return $r+=1,Bi===null&&(Bi=[]),Kp(Bi,e,t)}function Jr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Oo(e,t){throw t.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wp(e){function t(H,z){if(e){var G=H.deletions;G===null?(H.deletions=[z],H.flags|=16):G.push(z)}}function s(H,z){if(!e)return null;for(;z!==null;)t(H,z),z=z.sibling;return null}function r(H){for(var z=new Map;H!==null;)H.key!==null?z.set(H.key,H):z.set(H.index,H),H=H.sibling;return z}function c(H,z){return H=ta(H,z),H.index=0,H.sibling=null,H}function d(H,z,G){return H.index=G,e?(G=H.alternate,G!==null?(G=G.index,G<z?(H.flags|=67108866,z):G):(H.flags|=67108866,z)):(H.flags|=1048576,z)}function y(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function w(H,z,G,F){return z===null||z.tag!==6?(z=ef(G,H.mode,F),z.return=H,z):(z=c(z,G),z.return=H,z)}function A(H,z,G,F){var me=G.type;return me===j?K(H,z,G.props.children,F,G.key):z!==null&&(z.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===D&&ks(me)===z.type)?(z=c(z,G.props),Jr(z,G),z.return=H,z):(z=No(G.type,G.key,G.props,null,H.mode,F),Jr(z,G),z.return=H,z)}function Q(H,z,G,F){return z===null||z.tag!==4||z.stateNode.containerInfo!==G.containerInfo||z.stateNode.implementation!==G.implementation?(z=tf(G,H.mode,F),z.return=H,z):(z=c(z,G.children||[]),z.return=H,z)}function K(H,z,G,F,me){return z===null||z.tag!==7?(z=As(G,H.mode,F,me),z.return=H,z):(z=c(z,G),z.return=H,z)}function $(H,z,G){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=ef(""+z,H.mode,G),z.return=H,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return G=No(z.type,z.key,z.props,null,H.mode,G),Jr(G,z),G.return=H,G;case R:return z=tf(z,H.mode,G),z.return=H,z;case D:return z=ks(z),$(H,z,G)}if(de(z)||ee(z))return z=As(z,H.mode,G,null),z.return=H,z;if(typeof z.then=="function")return $(H,Mo(z),G);if(z.$$typeof===U)return $(H,Co(H,z),G);Oo(H,z)}return null}function V(H,z,G,F){var me=z!==null?z.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return me!==null?null:w(H,z,""+G,F);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return G.key===me?A(H,z,G,F):null;case R:return G.key===me?Q(H,z,G,F):null;case D:return G=ks(G),V(H,z,G,F)}if(de(G)||ee(G))return me!==null?null:K(H,z,G,F,null);if(typeof G.then=="function")return V(H,z,Mo(G),F);if(G.$$typeof===U)return V(H,z,Co(H,G),F);Oo(H,G)}return null}function I(H,z,G,F,me){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return H=H.get(G)||null,w(z,H,""+F,me);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return H=H.get(F.key===null?G:F.key)||null,A(z,H,F,me);case R:return H=H.get(F.key===null?G:F.key)||null,Q(z,H,F,me);case D:return F=ks(F),I(H,z,G,F,me)}if(de(F)||ee(F))return H=H.get(G)||null,K(z,H,F,me,null);if(typeof F.then=="function")return I(H,z,G,Mo(F),me);if(F.$$typeof===U)return I(H,z,G,Co(z,F),me);Oo(z,F)}return null}function ue(H,z,G,F){for(var me=null,De=null,fe=z,we=z=0,Ce=null;fe!==null&&we<G.length;we++){fe.index>we?(Ce=fe,fe=null):Ce=fe.sibling;var ze=V(H,fe,G[we],F);if(ze===null){fe===null&&(fe=Ce);break}e&&fe&&ze.alternate===null&&t(H,fe),z=d(ze,z,we),De===null?me=ze:De.sibling=ze,De=ze,fe=Ce}if(we===G.length)return s(H,fe),_e&&na(H,we),me;if(fe===null){for(;we<G.length;we++)fe=$(H,G[we],F),fe!==null&&(z=d(fe,z,we),De===null?me=fe:De.sibling=fe,De=fe);return _e&&na(H,we),me}for(fe=r(fe);we<G.length;we++)Ce=I(fe,H,we,G[we],F),Ce!==null&&(e&&Ce.alternate!==null&&fe.delete(Ce.key===null?we:Ce.key),z=d(Ce,z,we),De===null?me=Ce:De.sibling=Ce,De=Ce);return e&&fe.forEach(function(es){return t(H,es)}),_e&&na(H,we),me}function ve(H,z,G,F){if(G==null)throw Error(l(151));for(var me=null,De=null,fe=z,we=z=0,Ce=null,ze=G.next();fe!==null&&!ze.done;we++,ze=G.next()){fe.index>we?(Ce=fe,fe=null):Ce=fe.sibling;var es=V(H,fe,ze.value,F);if(es===null){fe===null&&(fe=Ce);break}e&&fe&&es.alternate===null&&t(H,fe),z=d(es,z,we),De===null?me=es:De.sibling=es,De=es,fe=Ce}if(ze.done)return s(H,fe),_e&&na(H,we),me;if(fe===null){for(;!ze.done;we++,ze=G.next())ze=$(H,ze.value,F),ze!==null&&(z=d(ze,z,we),De===null?me=ze:De.sibling=ze,De=ze);return _e&&na(H,we),me}for(fe=r(fe);!ze.done;we++,ze=G.next())ze=I(fe,H,we,ze.value,F),ze!==null&&(e&&ze.alternate!==null&&fe.delete(ze.key===null?we:ze.key),z=d(ze,z,we),De===null?me=ze:De.sibling=ze,De=ze);return e&&fe.forEach(function(Ej){return t(H,Ej)}),_e&&na(H,we),me}function Ye(H,z,G,F){if(typeof G=="object"&&G!==null&&G.type===j&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case S:e:{for(var me=G.key;z!==null;){if(z.key===me){if(me=G.type,me===j){if(z.tag===7){s(H,z.sibling),F=c(z,G.props.children),F.return=H,H=F;break e}}else if(z.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===D&&ks(me)===z.type){s(H,z.sibling),F=c(z,G.props),Jr(F,G),F.return=H,H=F;break e}s(H,z);break}else t(H,z);z=z.sibling}G.type===j?(F=As(G.props.children,H.mode,F,G.key),F.return=H,H=F):(F=No(G.type,G.key,G.props,null,H.mode,F),Jr(F,G),F.return=H,H=F)}return y(H);case R:e:{for(me=G.key;z!==null;){if(z.key===me)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){s(H,z.sibling),F=c(z,G.children||[]),F.return=H,H=F;break e}else{s(H,z);break}else t(H,z);z=z.sibling}F=tf(G,H.mode,F),F.return=H,H=F}return y(H);case D:return G=ks(G),Ye(H,z,G,F)}if(de(G))return ue(H,z,G,F);if(ee(G)){if(me=ee(G),typeof me!="function")throw Error(l(150));return G=me.call(G),ve(H,z,G,F)}if(typeof G.then=="function")return Ye(H,z,Mo(G),F);if(G.$$typeof===U)return Ye(H,z,Co(H,G),F);Oo(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(s(H,z.sibling),F=c(z,G),F.return=H,H=F):(s(H,z),F=ef(G,H.mode,F),F.return=H,H=F),y(H)):s(H,z)}return function(H,z,G,F){try{$r=0;var me=Ye(H,z,G,F);return Bi=null,me}catch(fe){if(fe===Ui||fe===_o)throw fe;var De=tn(29,fe,null,H.mode);return De.lanes=F,De.return=H,De}finally{}}}var Us=Wp(!0),$p=Wp(!1),Ua=!1;function mf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ue&2)!==0){var c=r.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),r.pending=t,t=jo(e),kp(e,null,s),t}return wo(e,r,t,s),jo(e)}function el(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,Qm(e,s)}}function gf(e,t){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var c=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,s=s.next}while(s!==null);d===null?c=d=t:d=d.next=t}else c=d=t;s={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var vf=!1;function tl(){if(vf){var e=Li;if(e!==null)throw e}}function nl(e,t,s,r){vf=!1;var c=e.updateQueue;Ua=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var A=w,Q=A.next;A.next=null,y===null?d=Q:y.next=Q,y=A;var K=e.alternate;K!==null&&(K=K.updateQueue,w=K.lastBaseUpdate,w!==y&&(w===null?K.firstBaseUpdate=Q:w.next=Q,K.lastBaseUpdate=A))}if(d!==null){var $=c.baseState;y=0,K=Q=A=null,w=d;do{var V=w.lane&-536870913,I=V!==w.lane;if(I?(Ee&V)===V:(r&V)===V){V!==0&&V===ki&&(vf=!0),K!==null&&(K=K.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ue=e,ve=w;V=t;var Ye=s;switch(ve.tag){case 1:if(ue=ve.payload,typeof ue=="function"){$=ue.call(Ye,$,V);break e}$=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=ve.payload,V=typeof ue=="function"?ue.call(Ye,$,V):ue,V==null)break e;$=v({},$,V);break e;case 2:Ua=!0}}V=w.callback,V!==null&&(e.flags|=64,I&&(e.flags|=8192),I=c.callbacks,I===null?c.callbacks=[V]:I.push(V))}else I={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},K===null?(Q=K=I,A=$):K=K.next=I,y|=V;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;I=w,w=I.next,I.next=null,c.lastBaseUpdate=I,c.shared.pending=null}}while(!0);K===null&&(A=$),c.baseState=A,c.firstBaseUpdate=Q,c.lastBaseUpdate=K,d===null&&(c.shared.lanes=0),Va|=y,e.lanes=y,e.memoizedState=$}}function Jp(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function eg(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Jp(s[e],t)}var Hi=O(null),Do=O(0);function tg(e,t){e=ha,se(Do,e),se(Hi,t),ha=e|t.baseLanes}function yf(){se(Do,ha),se(Hi,Hi.current)}function xf(){ha=Do.current,Z(Hi),Z(Do)}var nn=O(null),Sn=null;function Pa(e){var t=e.alternate;se(nt,nt.current&1),se(nn,e),Sn===null&&(t===null||Hi.current!==null||t.memoizedState!==null)&&(Sn=e)}function bf(e){se(nt,nt.current),se(nn,e),Sn===null&&(Sn=e)}function ng(e){e.tag===22?(se(nt,nt.current),se(nn,e),Sn===null&&(Sn=e)):qa()}function qa(){se(nt,nt.current),se(nn,nn.current)}function an(e){Z(nn),Sn===e&&(Sn=null),Z(nt)}var nt=O(0);function zo(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Ed(s)||Cd(s)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ia=0,be=null,Qe=null,lt=null,ko=!1,Pi=!1,Bs=!1,Lo=0,al=0,qi=null,gw=0;function Je(){throw Error(l(321))}function Sf(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!en(e[s],t[s]))return!1;return!0}function wf(e,t,s,r,c,d){return ia=d,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Hg:Uf,Bs=!1,d=s(r,c),Bs=!1,Pi&&(d=sg(t,s,r,c)),ag(e),d}function ag(e){B.H=rl;var t=Qe!==null&&Qe.next!==null;if(ia=0,lt=Qe=be=null,ko=!1,al=0,qi=null,t)throw Error(l(300));e===null||ot||(e=e.dependencies,e!==null&&Eo(e)&&(ot=!0))}function sg(e,t,s,r){be=e;var c=0;do{if(Pi&&(qi=null),al=0,Pi=!1,25<=c)throw Error(l(301));if(c+=1,lt=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)}B.H=Pg,d=t(s,r)}while(Pi);return d}function vw(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(be.flags|=1024),t}function jf(){var e=Lo!==0;return Lo=0,e}function Nf(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function Rf(e){if(ko){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ko=!1}ia=0,lt=Qe=be=null,Pi=!1,al=Lo=0,qi=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?be.memoizedState=lt=e:lt=lt.next=e,lt}function at(){if(Qe===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=lt===null?be.memoizedState:lt.next;if(t!==null)lt=t,Qe=e;else{if(e===null)throw be.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},lt===null?be.memoizedState=lt=e:lt=lt.next=e}return lt}function Uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(e){var t=al;return al+=1,qi===null&&(qi=[]),e=Kp(qi,e,t),t=be,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Hg:Uf),e}function Bo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===U)return jt(e)}throw Error(l(438,String(e)))}function Ef(e){var t=null,s=be.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var r=be.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=Uo(),be.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),r=0;r<e;r++)s[r]=q;return t.index++,s}function ra(e,t){return typeof t=="function"?t(e):t}function Ho(e){var t=at();return Cf(t,Qe,e)}function Cf(e,t,s){var r=e.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=s;var c=e.baseQueue,d=r.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,r.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var w=y=null,A=null,Q=t,K=!1;do{var $=Q.lane&-536870913;if($!==Q.lane?(Ee&$)===$:(ia&$)===$){var V=Q.revertLane;if(V===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),$===ki&&(K=!0);else if((ia&V)===V){Q=Q.next,V===ki&&(K=!0);continue}else $={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},A===null?(w=A=$,y=d):A=A.next=$,be.lanes|=V,Va|=V;$=Q.action,Bs&&s(d,$),d=Q.hasEagerState?Q.eagerState:s(d,$)}else V={lane:$,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},A===null?(w=A=V,y=d):A=A.next=V,be.lanes|=$,Va|=$;Q=Q.next}while(Q!==null&&Q!==t);if(A===null?y=d:A.next=w,!en(d,e.memoizedState)&&(ot=!0,K&&(s=Li,s!==null)))throw s;e.memoizedState=d,e.baseState=y,e.baseQueue=A,r.lastRenderedState=d}return c===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Tf(e){var t=at(),s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=e;var r=s.dispatch,c=s.pending,d=t.memoizedState;if(c!==null){s.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);en(d,t.memoizedState)||(ot=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),s.lastRenderedState=d}return[d,r]}function ig(e,t,s){var r=be,c=at(),d=_e;if(d){if(s===void 0)throw Error(l(407));s=s()}else s=t();var y=!en((Qe||c).memoizedState,s);if(y&&(c.memoizedState=s,ot=!0),c=c.queue,Mf(og.bind(null,r,c,e),[e]),c.getSnapshot!==t||y||lt!==null&<.memoizedState.tag&1){if(r.flags|=2048,Gi(9,{destroy:void 0},lg.bind(null,r,c,s,t),null),Ie===null)throw Error(l(349));d||(ia&127)!==0||rg(r,t,s)}return s}function rg(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=be.updateQueue,t===null?(t=Uo(),be.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function lg(e,t,s,r){t.value=s,t.getSnapshot=r,cg(t)&&ug(e)}function og(e,t,s){return s(function(){cg(t)&&ug(e)})}function cg(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!en(e,s)}catch{return!0}}function ug(e){var t=_s(e,2);t!==null&&Yt(t,e,2)}function _f(e){var t=Lt();if(typeof e=="function"){var s=e;if(e=s(),Bs){Aa(!0);try{s()}finally{Aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t}function fg(e,t,s,r){return e.baseState=s,Cf(e,Qe,typeof r=="function"?r:ra)}function yw(e,t,s,r,c){if(Go(e))throw Error(l(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};B.T!==null?s(!0):d.isTransition=!1,r(d),s=t.pending,s===null?(d.next=t.pending=d,dg(t,d)):(d.next=s.next,t.pending=s.next=d)}}function dg(e,t){var s=t.action,r=t.payload,c=e.state;if(t.isTransition){var d=B.T,y={};B.T=y;try{var w=s(c,r),A=B.S;A!==null&&A(y,w),hg(e,t,w)}catch(Q){Af(e,t,Q)}finally{d!==null&&y.types!==null&&(d.types=y.types),B.T=d}}else try{d=s(c,r),hg(e,t,d)}catch(Q){Af(e,t,Q)}}function hg(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(r){mg(e,t,r)},function(r){return Af(e,t,r)}):mg(e,t,s)}function mg(e,t,s){t.status="fulfilled",t.value=s,pg(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,dg(e,s)))}function Af(e,t,s){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=s,pg(t),t=t.next;while(t!==r)}e.action=null}function pg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gg(e,t){return t}function vg(e,t){if(_e){var s=Ie.formState;if(s!==null){e:{var r=be;if(_e){if(Ke){t:{for(var c=Ke,d=bn;c.nodeType!==8;){if(!d){c=null;break t}if(c=wn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Ke=wn(c.nextSibling),r=c.data==="F!";break e}}ka(r)}r=!1}r&&(t=s[0])}}return s=Lt(),s.memoizedState=s.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gg,lastRenderedState:t},s.queue=r,s=Lg.bind(null,be,r),r.dispatch=s,r=_f(!1),d=Lf.bind(null,be,!1,r.queue),r=Lt(),c={state:t,dispatch:null,action:e,pending:null},r.queue=c,s=yw.bind(null,be,c,d,s),c.dispatch=s,r.memoizedState=e,[t,s,!1]}function yg(e){var t=at();return xg(t,Qe,e)}function xg(e,t,s){if(t=Cf(e,t,gg)[0],e=Ho(ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=sl(t)}catch(y){throw y===Ui?_o:y}else r=t;t=at();var c=t.queue,d=c.dispatch;return s!==t.memoizedState&&(be.flags|=2048,Gi(9,{destroy:void 0},xw.bind(null,c,s),null)),[r,d,e]}function xw(e,t){e.action=t}function bg(e){var t=at(),s=Qe;if(s!==null)return xg(t,s,e);at(),t=t.memoizedState,s=at();var r=s.queue.dispatch;return s.memoizedState=e,[t,r,!1]}function Gi(e,t,s,r){return e={tag:e,create:s,deps:r,inst:t,next:null},t=be.updateQueue,t===null&&(t=Uo(),be.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(r=s.next,s.next=e,e.next=r,t.lastEffect=e),e}function Sg(){return at().memoizedState}function Po(e,t,s,r){var c=Lt();be.flags|=e,c.memoizedState=Gi(1|t,{destroy:void 0},s,r===void 0?null:r)}function qo(e,t,s,r){var c=at();r=r===void 0?null:r;var d=c.memoizedState.inst;Qe!==null&&r!==null&&Sf(r,Qe.memoizedState.deps)?c.memoizedState=Gi(t,d,s,r):(be.flags|=e,c.memoizedState=Gi(1|t,d,s,r))}function wg(e,t){Po(8390656,8,e,t)}function Mf(e,t){qo(2048,8,e,t)}function bw(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Uo(),be.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function jg(e){var t=at().memoizedState;return bw({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Ng(e,t){return qo(4,2,e,t)}function Rg(e,t){return qo(4,4,e,t)}function Eg(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cg(e,t,s){s=s!=null?s.concat([e]):null,qo(4,4,Eg.bind(null,t,e),s)}function Of(){}function Tg(e,t){var s=at();t=t===void 0?null:t;var r=s.memoizedState;return t!==null&&Sf(t,r[1])?r[0]:(s.memoizedState=[e,t],e)}function _g(e,t){var s=at();t=t===void 0?null:t;var r=s.memoizedState;if(t!==null&&Sf(t,r[1]))return r[0];if(r=e(),Bs){Aa(!0);try{e()}finally{Aa(!1)}}return s.memoizedState=[r,t],r}function Df(e,t,s){return s===void 0||(ia&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=Av(),be.lanes|=e,Va|=e,s)}function Ag(e,t,s,r){return en(s,t)?s:Hi.current!==null?(e=Df(e,s,r),en(e,t)||(ot=!0),e):(ia&42)===0||(ia&1073741824)!==0&&(Ee&261930)===0?(ot=!0,e.memoizedState=s):(e=Av(),be.lanes|=e,Va|=e,t)}function Mg(e,t,s,r,c){var d=X.p;X.p=d!==0&&8>d?d:8;var y=B.T,w={};B.T=w,Lf(e,!1,t,s);try{var A=c(),Q=B.S;if(Q!==null&&Q(w,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var K=pw(A,r);il(e,t,K,ln(e))}else il(e,t,r,ln(e))}catch($){il(e,t,{then:function(){},status:"rejected",reason:$},ln())}finally{X.p=d,y!==null&&w.types!==null&&(y.types=w.types),B.T=y}}function Sw(){}function zf(e,t,s,r){if(e.tag!==5)throw Error(l(476));var c=Og(e).queue;Mg(e,c,t,J,s===null?Sw:function(){return Dg(e),s(r)})}function Og(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:J},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Dg(e){var t=Og(e);t.next===null&&(t=e.alternate.memoizedState),il(e,t.next.queue,{},ln())}function kf(){return jt(wl)}function zg(){return at().memoizedState}function kg(){return at().memoizedState}function ww(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=ln();e=Ba(s);var r=Ha(t,e,s);r!==null&&(Yt(r,t,s),el(r,t,s)),t={cache:uf()},e.payload=t;return}t=t.return}}function jw(e,t,s){var r=ln();s={lane:r,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Go(e)?Ug(t,s):(s=$u(e,t,s,r),s!==null&&(Yt(s,e,r),Bg(s,t,r)))}function Lg(e,t,s){var r=ln();il(e,t,s,r)}function il(e,t,s,r){var c={lane:r,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Go(e))Ug(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,w=d(y,s);if(c.hasEagerState=!0,c.eagerState=w,en(w,y))return wo(e,t,c,0),Ie===null&&So(),!1}catch{}finally{}if(s=$u(e,t,c,r),s!==null)return Yt(s,e,r),Bg(s,t,r),!0}return!1}function Lf(e,t,s,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Go(e)){if(t)throw Error(l(479))}else t=$u(e,s,r,2),t!==null&&Yt(t,e,2)}function Go(e){var t=e.alternate;return e===be||t!==null&&t===be}function Ug(e,t){Pi=ko=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Bg(e,t,s){if((s&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,Qm(e,s)}}var rl={readContext:jt,use:Bo,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};rl.useEffectEvent=Je;var Hg={readContext:jt,use:Bo,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:wg,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,Po(4194308,4,Eg.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Po(4194308,4,e,t)},useInsertionEffect:function(e,t){Po(4,2,e,t)},useMemo:function(e,t){var s=Lt();t=t===void 0?null:t;var r=e();if(Bs){Aa(!0);try{e()}finally{Aa(!1)}}return s.memoizedState=[r,t],r},useReducer:function(e,t,s){var r=Lt();if(s!==void 0){var c=s(t);if(Bs){Aa(!0);try{s(t)}finally{Aa(!1)}}}else c=t;return r.memoizedState=r.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},r.queue=e,e=e.dispatch=jw.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=_f(e);var t=e.queue,s=Lg.bind(null,be,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Of,useDeferredValue:function(e,t){var s=Lt();return Df(s,e,t)},useTransition:function(){var e=_f(!1);return e=Mg.bind(null,be,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var r=be,c=Lt();if(_e){if(s===void 0)throw Error(l(407));s=s()}else{if(s=t(),Ie===null)throw Error(l(349));(Ee&127)!==0||rg(r,t,s)}c.memoizedState=s;var d={value:s,getSnapshot:t};return c.queue=d,wg(og.bind(null,r,d,e),[e]),r.flags|=2048,Gi(9,{destroy:void 0},lg.bind(null,r,d,s,t),null),s},useId:function(){var e=Lt(),t=Ie.identifierPrefix;if(_e){var s=Hn,r=Bn;s=(r&~(1<<32-Jt(r)-1)).toString(32)+s,t="_"+t+"R_"+s,s=Lo++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=gw++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kf,useFormState:vg,useActionState:vg,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=Lf.bind(null,be,!0,s),s.dispatch=t,[e,t]},useMemoCache:Ef,useCacheRefresh:function(){return Lt().memoizedState=ww.bind(null,be)},useEffectEvent:function(e){var t=Lt(),s={impl:e};return t.memoizedState=s,function(){if((Ue&2)!==0)throw Error(l(440));return s.impl.apply(void 0,arguments)}}},Uf={readContext:jt,use:Bo,useCallback:Tg,useContext:jt,useEffect:Mf,useImperativeHandle:Cg,useInsertionEffect:Ng,useLayoutEffect:Rg,useMemo:_g,useReducer:Ho,useRef:Sg,useState:function(){return Ho(ra)},useDebugValue:Of,useDeferredValue:function(e,t){var s=at();return Ag(s,Qe.memoizedState,e,t)},useTransition:function(){var e=Ho(ra)[0],t=at().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:ig,useId:zg,useHostTransitionStatus:kf,useFormState:yg,useActionState:yg,useOptimistic:function(e,t){var s=at();return fg(s,Qe,e,t)},useMemoCache:Ef,useCacheRefresh:kg};Uf.useEffectEvent=jg;var Pg={readContext:jt,use:Bo,useCallback:Tg,useContext:jt,useEffect:Mf,useImperativeHandle:Cg,useInsertionEffect:Ng,useLayoutEffect:Rg,useMemo:_g,useReducer:Tf,useRef:Sg,useState:function(){return Tf(ra)},useDebugValue:Of,useDeferredValue:function(e,t){var s=at();return Qe===null?Df(s,e,t):Ag(s,Qe.memoizedState,e,t)},useTransition:function(){var e=Tf(ra)[0],t=at().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:ig,useId:zg,useHostTransitionStatus:kf,useFormState:bg,useActionState:bg,useOptimistic:function(e,t){var s=at();return Qe!==null?fg(s,Qe,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Ef,useCacheRefresh:kg};Pg.useEffectEvent=jg;function Bf(e,t,s,r){t=e.memoizedState,s=s(r,t),s=s==null?t:v({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Hf={enqueueSetState:function(e,t,s){e=e._reactInternals;var r=ln(),c=Ba(r);c.payload=t,s!=null&&(c.callback=s),t=Ha(e,c,r),t!==null&&(Yt(t,e,r),el(t,e,r))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var r=ln(),c=Ba(r);c.tag=1,c.payload=t,s!=null&&(c.callback=s),t=Ha(e,c,r),t!==null&&(Yt(t,e,r),el(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=ln(),r=Ba(s);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,s),t!==null&&(Yt(t,e,s),el(t,e,s))}};function qg(e,t,s,r,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,y):t.prototype&&t.prototype.isPureReactComponent?!Xr(s,r)||!Xr(c,d):!0}function Gg(e,t,s,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,r),t.state!==e&&Hf.enqueueReplaceState(t,t.state,null)}function Hs(e,t){var s=t;if("ref"in t){s={};for(var r in t)r!=="ref"&&(s[r]=t[r])}if(e=e.defaultProps){s===t&&(s=v({},s));for(var c in e)s[c]===void 0&&(s[c]=e[c])}return s}function Qg(e){bo(e)}function Vg(e){console.error(e)}function Yg(e){bo(e)}function Qo(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Xg(e,t,s){try{var r=e.onCaughtError;r(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Pf(e,t,s){return s=Ba(s),s.tag=3,s.payload={element:null},s.callback=function(){Qo(e,t)},s}function Ig(e){return e=Ba(e),e.tag=3,e}function Kg(e,t,s,r){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var d=r.value;e.payload=function(){return c(d)},e.callback=function(){Xg(t,s,r)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Xg(t,s,r),typeof c!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var w=r.stack;this.componentDidCatch(r.value,{componentStack:w!==null?w:""})})}function Nw(e,t,s,r,c){if(s.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=s.alternate,t!==null&&zi(t,s,c,!0),s=nn.current,s!==null){switch(s.tag){case 31:case 13:return Sn===null?tc():s.alternate===null&&et===0&&(et=3),s.flags&=-257,s.flags|=65536,s.lanes=c,r===Ao?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([r]):t.add(r),fd(e,r,c)),!1;case 22:return s.flags|=65536,r===Ao?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([r]):s.add(r)),fd(e,r,c)),!1}throw Error(l(435,s.tag))}return fd(e,r,c),tc(),!1}if(_e)return t=nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,r!==sf&&(e=Error(l(422),{cause:r}),Zr(vn(e,s)))):(r!==sf&&(t=Error(l(423),{cause:r}),Zr(vn(t,s))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,r=vn(r,s),c=Pf(e.stateNode,r,c),gf(e,c),et!==4&&(et=2)),!1;var d=Error(l(520),{cause:r});if(d=vn(d,s),ml===null?ml=[d]:ml.push(d),et!==4&&(et=2),t===null)return!0;r=vn(r,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=c&-c,s.lanes|=e,e=Pf(s.stateNode,r,e),gf(s,e),!1;case 1:if(t=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ya===null||!Ya.has(d))))return s.flags|=65536,c&=-c,s.lanes|=c,c=Ig(c),Kg(c,e,s,r),gf(s,c),!1}s=s.return}while(s!==null);return!1}var qf=Error(l(461)),ot=!1;function Nt(e,t,s,r){t.child=e===null?$p(t,null,s,r):Us(t,e.child,s,r)}function Zg(e,t,s,r,c){s=s.render;var d=t.ref;if("ref"in r){var y={};for(var w in r)w!=="ref"&&(y[w]=r[w])}else y=r;return Ds(t),r=wf(e,t,s,y,d,c),w=jf(),e!==null&&!ot?(Nf(e,t,c),la(e,t,c)):(_e&&w&&nf(t),t.flags|=1,Nt(e,t,r,c),t.child)}function Fg(e,t,s,r,c){if(e===null){var d=s.type;return typeof d=="function"&&!Ju(d)&&d.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=d,Wg(e,t,d,r,c)):(e=No(s.type,null,r,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Zf(e,c)){var y=d.memoizedProps;if(s=s.compare,s=s!==null?s:Xr,s(y,r)&&e.ref===t.ref)return la(e,t,c)}return t.flags|=1,e=ta(d,r),e.ref=t.ref,e.return=t,t.child=e}function Wg(e,t,s,r,c){if(e!==null){var d=e.memoizedProps;if(Xr(d,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=d,Zf(e,c))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,la(e,t,c)}return Gf(e,t,s,r,c)}function $g(e,t,s,r){var c=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|s:s,e!==null){for(r=t.child=e.child,c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;r=c&~d}else r=0,t.child=null;return Jg(e,t,d,s,r)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&To(t,d!==null?d.cachePool:null),d!==null?tg(t,d):yf(),ng(t);else return r=t.lanes=536870912,Jg(e,t,d!==null?d.baseLanes|s:s,s,r)}else d!==null?(To(t,d.cachePool),tg(t,d),qa(),t.memoizedState=null):(e!==null&&To(t,null),yf(),qa());return Nt(e,t,c,s),t.child}function ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jg(e,t,s,r,c){var d=df();return d=d===null?null:{parent:rt._currentValue,pool:d},t.memoizedState={baseLanes:s,cachePool:d},e!==null&&To(t,null),yf(),ng(t),e!==null&&zi(e,t,r,!0),t.childLanes=c,null}function Vo(e,t){return t=Xo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ev(e,t,s){return Us(t,e.child,null,s),e=Vo(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function Rw(e,t,s){var r=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(r.mode==="hidden")return e=Vo(t,r),t.lanes=536870912,ll(null,e);if(bf(t),(e=Ke)?(e=dy(e,bn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Da!==null?{id:Bn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},s=Up(e),s.return=t,t.child=s,wt=t,Ke=null)):e=null,e===null)throw ka(t);return t.lanes=536870912,null}return Vo(t,r)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(bf(t),c)if(t.flags&256)t.flags&=-257,t=ev(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(ot||zi(e,t,s,!1),c=(s&e.childLanes)!==0,ot||c){if(r=Ie,r!==null&&(y=Vm(r,s),y!==0&&y!==d.retryLane))throw d.retryLane=y,_s(e,y),Yt(r,e,y),qf;tc(),t=ev(e,t,s)}else e=d.treeContext,Ke=wn(y.nextSibling),wt=t,_e=!0,za=null,bn=!1,e!==null&&Pp(t,e),t=Vo(t,r),t.flags|=4096;return t}return e=ta(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yo(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(l(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function Gf(e,t,s,r,c){return Ds(t),s=wf(e,t,s,r,void 0,c),r=jf(),e!==null&&!ot?(Nf(e,t,c),la(e,t,c)):(_e&&r&&nf(t),t.flags|=1,Nt(e,t,s,c),t.child)}function tv(e,t,s,r,c,d){return Ds(t),t.updateQueue=null,s=sg(t,r,s,c),ag(e),r=jf(),e!==null&&!ot?(Nf(e,t,d),la(e,t,d)):(_e&&r&&nf(t),t.flags|=1,Nt(e,t,s,d),t.child)}function nv(e,t,s,r,c){if(Ds(t),t.stateNode===null){var d=Ai,y=s.contextType;typeof y=="object"&&y!==null&&(d=jt(y)),d=new s(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Hf,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},mf(t),y=s.contextType,d.context=typeof y=="object"&&y!==null?jt(y):Ai,d.state=t.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(Bf(t,s,y,r),d.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&Hf.enqueueReplaceState(d,d.state,null),nl(t,r,d,c),tl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,A=Hs(s,w);d.props=A;var Q=d.context,K=s.contextType;y=Ai,typeof K=="object"&&K!==null&&(y=jt(K));var $=s.getDerivedStateFromProps;K=typeof $=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,K||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||Q!==y)&&Gg(t,d,r,y),Ua=!1;var V=t.memoizedState;d.state=V,nl(t,r,d,c),tl(),Q=t.memoizedState,w||V!==Q||Ua?(typeof $=="function"&&(Bf(t,s,$,r),Q=t.memoizedState),(A=Ua||qg(t,s,A,r,V,Q,y))?(K||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"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=Q),d.props=r,d.state=Q,d.context=y,r=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,pf(e,t),y=t.memoizedProps,K=Hs(s,y),d.props=K,$=t.pendingProps,V=d.context,Q=s.contextType,A=Ai,typeof Q=="object"&&Q!==null&&(A=jt(Q)),w=s.getDerivedStateFromProps,(Q=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==$||V!==A)&&Gg(t,d,r,A),Ua=!1,V=t.memoizedState,d.state=V,nl(t,r,d,c),tl();var I=t.memoizedState;y!==$||V!==I||Ua||e!==null&&e.dependencies!==null&&Eo(e.dependencies)?(typeof w=="function"&&(Bf(t,s,w,r),I=t.memoizedState),(K=Ua||qg(t,s,K,r,V,I,A)||e!==null&&e.dependencies!==null&&Eo(e.dependencies))?(Q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,I,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,I,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=I),d.props=r,d.state=I,d.context=A,r=K):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,Yo(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,s=r&&typeof s.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=Us(t,e.child,null,c),t.child=Us(t,null,s,c)):Nt(e,t,s,c),t.memoizedState=d.state,e=t.child):e=la(e,t,c),e}function av(e,t,s,r){return Ms(),t.flags|=256,Nt(e,t,s,r),t.child}var Qf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vf(e){return{baseLanes:e,cachePool:Xp()}}function Yf(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=rn),e}function sv(e,t,s){var r=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(c?Pa(t):qa(),(e=Ke)?(e=dy(e,bn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Da!==null?{id:Bn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},s=Up(e),s.return=t,t.child=s,wt=t,Ke=null)):e=null,e===null)throw ka(t);return Cd(e)?t.lanes=32:t.lanes=536870912,null}var w=r.children;return r=r.fallback,c?(qa(),c=t.mode,w=Xo({mode:"hidden",children:w},c),r=As(r,c,s,null),w.return=t,r.return=t,w.sibling=r,t.child=w,r=t.child,r.memoizedState=Vf(s),r.childLanes=Yf(e,y,s),t.memoizedState=Qf,ll(null,r)):(Pa(t),Xf(t,w))}var A=e.memoizedState;if(A!==null&&(w=A.dehydrated,w!==null)){if(d)t.flags&256?(Pa(t),t.flags&=-257,t=If(e,t,s)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),w=r.fallback,c=t.mode,r=Xo({mode:"visible",children:r.children},c),w=As(w,c,s,null),w.flags|=2,r.return=t,w.return=t,r.sibling=w,t.child=r,Us(t,e.child,null,s),r=t.child,r.memoizedState=Vf(s),r.childLanes=Yf(e,y,s),t.memoizedState=Qf,t=ll(null,r));else if(Pa(t),Cd(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var Q=y.dgst;y=Q,r=Error(l(419)),r.stack="",r.digest=y,Zr({value:r,source:null,stack:null}),t=If(e,t,s)}else if(ot||zi(e,t,s,!1),y=(s&e.childLanes)!==0,ot||y){if(y=Ie,y!==null&&(r=Vm(y,s),r!==0&&r!==A.retryLane))throw A.retryLane=r,_s(e,r),Yt(y,e,r),qf;Ed(w)||tc(),t=If(e,t,s)}else Ed(w)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ke=wn(w.nextSibling),wt=t,_e=!0,za=null,bn=!1,e!==null&&Pp(t,e),t=Xf(t,r.children),t.flags|=4096);return t}return c?(qa(),w=r.fallback,c=t.mode,A=e.child,Q=A.sibling,r=ta(A,{mode:"hidden",children:r.children}),r.subtreeFlags=A.subtreeFlags&65011712,Q!==null?w=ta(Q,w):(w=As(w,c,s,null),w.flags|=2),w.return=t,r.return=t,r.sibling=w,t.child=r,ll(null,r),r=t.child,w=e.child.memoizedState,w===null?w=Vf(s):(c=w.cachePool,c!==null?(A=rt._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=Xp(),w={baseLanes:w.baseLanes|s,cachePool:c}),r.memoizedState=w,r.childLanes=Yf(e,y,s),t.memoizedState=Qf,ll(e.child,r)):(Pa(t),s=e.child,e=s.sibling,s=ta(s,{mode:"visible",children:r.children}),s.return=t,s.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=s,t.memoizedState=null,s)}function Xf(e,t){return t=Xo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xo(e,t){return e=tn(22,e,null,t),e.lanes=0,e}function If(e,t,s){return Us(t,e.child,null,s),e=Xf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iv(e,t,s){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),of(e.return,t,s)}function Kf(e,t,s,r,c,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:s,tailMode:c,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=s,y.tailMode=c,y.treeForkCount=d)}function rv(e,t,s){var r=t.pendingProps,c=r.revealOrder,d=r.tail;r=r.children;var y=nt.current,w=(y&2)!==0;if(w?(y=y&1|2,t.flags|=128):y&=1,se(nt,y),Nt(e,t,r,s),r=_e?Kr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iv(e,s,t);else if(e.tag===19)iv(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(s=t.child,c=null;s!==null;)e=s.alternate,e!==null&&zo(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=t.child,t.child=null):(c=s.sibling,s.sibling=null),Kf(t,!1,c,s,d,r);break;case"backwards":case"unstable_legacy-backwards":for(s=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&zo(e)===null){t.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}Kf(t,!0,s,null,d,r);break;case"together":Kf(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function la(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(zi(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,s=ta(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=ta(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Zf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Eo(e)))}function Ew(e,t,s){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),La(t,rt,e.memoizedState.cache),Ms();break;case 27:case 5:zt(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:La(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bf(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Pa(t),t.flags|=128,null):(s&t.child.childLanes)!==0?sv(e,t,s):(Pa(t),e=la(e,t,s),e!==null?e.sibling:null);Pa(t);break;case 19:var c=(e.flags&128)!==0;if(r=(s&t.childLanes)!==0,r||(zi(e,t,s,!1),r=(s&t.childLanes)!==0),c){if(r)return rv(e,t,s);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),se(nt,nt.current),r)break;return null;case 22:return t.lanes=0,$g(e,t,s,t.pendingProps);case 24:La(t,rt,e.memoizedState.cache)}return la(e,t,s)}function lv(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!Zf(e,s)&&(t.flags&128)===0)return ot=!1,Ew(e,t,s);ot=(e.flags&131072)!==0}else ot=!1,_e&&(t.flags&1048576)!==0&&Hp(t,Kr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ks(t.elementType),t.type=e,typeof e=="function")Ju(e)?(r=Hs(e,r),t.tag=1,t=nv(null,t,e,r,s)):(t.tag=0,t=Gf(null,t,e,r,s));else{if(e!=null){var c=e.$$typeof;if(c===T){t.tag=11,t=Zg(null,t,e,r,s);break e}else if(c===M){t.tag=14,t=Fg(null,t,e,r,s);break e}}throw t=ae(e)||e,Error(l(306,t,""))}}return t;case 0:return Gf(e,t,t.type,t.pendingProps,s);case 1:return r=t.type,c=Hs(r,t.pendingProps),nv(e,t,r,c,s);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(l(387));r=t.pendingProps;var d=t.memoizedState;c=d.element,pf(e,t),nl(t,r,null,s);var y=t.memoizedState;if(r=y.cache,La(t,rt,r),r!==d.cache&&cf(t,[rt],s,!0),tl(),r=y.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=av(e,t,r,s);break e}else if(r!==c){c=vn(Error(l(424)),t),Zr(c),t=av(e,t,r,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=wn(e.firstChild),wt=t,_e=!0,za=null,bn=!0,s=$p(t,null,r,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Ms(),r===c){t=la(e,t,s);break e}Nt(e,t,r,s)}t=t.child}return t;case 26:return Yo(e,t),e===null?(s=yy(t.type,null,t.pendingProps,null))?t.memoizedState=s:_e||(s=t.type,e=t.pendingProps,r=oc(he.current).createElement(s),r[St]=t,r[Ht]=e,Rt(r,s,e),pt(r),t.stateNode=r):t.memoizedState=yy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zt(t),e===null&&_e&&(r=t.stateNode=py(t.type,t.pendingProps,he.current),wt=t,bn=!0,c=Ke,Za(t.type)?(Td=c,Ke=wn(r.firstChild)):Ke=c),Nt(e,t,t.pendingProps.children,s),Yo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((c=r=Ke)&&(r=nj(r,t.type,t.pendingProps,bn),r!==null?(t.stateNode=r,wt=t,Ke=wn(r.firstChild),bn=!1,c=!0):c=!1),c||ka(t)),zt(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,r=d.children,jd(c,d)?r=null:y!==null&&jd(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=wf(e,t,vw,null,null,s),wl._currentValue=c),Yo(e,t),Nt(e,t,r,s),t.child;case 6:return e===null&&_e&&((e=s=Ke)&&(s=aj(s,t.pendingProps,bn),s!==null?(t.stateNode=s,wt=t,Ke=null,e=!0):e=!1),e||ka(t)),null;case 13:return sv(e,t,s);case 4:return Le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,s):Nt(e,t,r,s),t.child;case 11:return Zg(e,t,t.type,t.pendingProps,s);case 7:return Nt(e,t,t.pendingProps,s),t.child;case 8:return Nt(e,t,t.pendingProps.children,s),t.child;case 12:return Nt(e,t,t.pendingProps.children,s),t.child;case 10:return r=t.pendingProps,La(t,t.type,r.value),Nt(e,t,r.children,s),t.child;case 9:return c=t.type._context,r=t.pendingProps.children,Ds(t),c=jt(c),r=r(c),t.flags|=1,Nt(e,t,r,s),t.child;case 14:return Fg(e,t,t.type,t.pendingProps,s);case 15:return Wg(e,t,t.type,t.pendingProps,s);case 19:return rv(e,t,s);case 31:return Rw(e,t,s);case 22:return $g(e,t,s,t.pendingProps);case 24:return Ds(t),r=jt(rt),e===null?(c=df(),c===null&&(c=Ie,d=uf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=s),c=d),t.memoizedState={parent:r,cache:c},mf(t),La(t,rt,c)):((e.lanes&s)!==0&&(pf(e,t),nl(t,null,null,s),tl()),c=e.memoizedState,d=t.memoizedState,c.parent!==r?(c={parent:r,cache:r},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),La(t,rt,r)):(r=d.cache,La(t,rt,r),r!==c.cache&&cf(t,[rt],s,!0))),Nt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function oa(e){e.flags|=4}function Ff(e,t,s,r,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(zv())e.flags|=8192;else throw Ls=Ao,hf}else e.flags&=-16777217}function ov(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jy(t))if(zv())e.flags|=8192;else throw Ls=Ao,hf}function Io(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qm():536870912,e.lanes|=t,Xi|=t)}function ol(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var r=null;s!==null;)s.alternate!==null&&(r=s),s=s.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,r=0;if(t)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,r|=c.subtreeFlags&65011712,r|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=r,e.childLanes=s,t}function Cw(e,t,s){var r=t.pendingProps;switch(af(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return s=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),sa(rt),ye(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Di(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rf())),Ze(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(oa(t),d!==null?(Ze(t),ov(t,d)):(Ze(t),Ff(t,c,null,r,s))):d?d!==e.memoizedState?(oa(t),Ze(t),ov(t,d)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&oa(t),Ze(t),Ff(t,c,e,r,s)),null;case 27:if(xt(t),s=he.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&oa(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Ze(t),null}e=ie.current,Di(t)?qp(t):(e=py(c,r,s),t.stateNode=e,oa(t))}return Ze(t),null;case 5:if(xt(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&oa(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Ze(t),null}if(d=ie.current,Di(t))qp(t);else{var y=oc(he.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?y.createElement(c,{is:r.is}):y.createElement(c)}}d[St]=t,d[Ht]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(Rt(d,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&oa(t)}}return Ze(t),Ff(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&oa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(e=he.current,Di(t)){if(e=t.stateNode,s=t.memoizedProps,r=null,c=wt,c!==null)switch(c.tag){case 27:case 5:r=c.memoizedProps}e[St]=t,e=!!(e.nodeValue===s||r!==null&&r.suppressHydrationWarning===!0||sy(e.nodeValue,s)),e||ka(t,!0)}else e=oc(e).createTextNode(r),e[St]=t,t.stateNode=e}return Ze(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(r=Di(t),s!==null){if(e===null){if(!r)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[St]=t}else Ms(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else s=rf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Ze(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Di(t),r!==null&&r.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[St]=t}else Ms(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),c=!1}else c=rf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=s,t):(s=r!==null,e=e!==null&&e.memoizedState!==null,s&&(r=t.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==c&&(r.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),Io(t,t.updateQueue),Ze(t),null);case 4:return ye(),e===null&&yd(t.stateNode.containerInfo),Ze(t),null;case 10:return sa(t.type),Ze(t),null;case 19:if(Z(nt),r=t.memoizedState,r===null)return Ze(t),null;if(c=(t.flags&128)!==0,d=r.rendering,d===null)if(c)ol(r,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=zo(e),d!==null){for(t.flags|=128,ol(r,!1),e=d.updateQueue,t.updateQueue=e,Io(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Lp(s,e),s=s.sibling;return se(nt,nt.current&1|2),_e&&na(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_t()>$o&&(t.flags|=128,c=!0,ol(r,!1),t.lanes=4194304)}else{if(!c)if(e=zo(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Io(t,e),ol(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!_e)return Ze(t),null}else 2*_t()-r.renderingStartTime>$o&&s!==536870912&&(t.flags|=128,c=!0,ol(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_t(),e.sibling=null,s=nt.current,se(nt,c?s&1|2:s&1),_e&&na(t,r.treeForkCount),e):(Ze(t),null);case 22:case 23:return an(t),xf(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(s&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),s=t.updateQueue,s!==null&&Io(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==s&&(t.flags|=2048),e!==null&&Z(zs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),sa(rt),Ze(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Tw(e,t){switch(af(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(rt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xt(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(l(340));Ms()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ms()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(nt),null;case 4:return ye(),null;case 10:return sa(t.type),null;case 22:case 23:return an(t),xf(),e!==null&&Z(zs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(rt),null;case 25:return null;default:return null}}function cv(e,t){switch(af(t),t.tag){case 3:sa(rt),ye();break;case 26:case 27:case 5:xt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:Z(nt);break;case 10:sa(t.type);break;case 22:case 23:an(t),xf(),e!==null&&Z(zs);break;case 24:sa(rt)}}function cl(e,t){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var c=r.next;s=c;do{if((s.tag&e)===e){r=void 0;var d=s.create,y=s.inst;r=d(),y.destroy=r}s=s.next}while(s!==c)}}catch(w){qe(t,t.return,w)}}function Ga(e,t,s){try{var r=t.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var d=c.next;r=d;do{if((r.tag&e)===e){var y=r.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,c=t;var A=s,Q=w;try{Q()}catch(K){qe(c,A,K)}}}r=r.next}while(r!==d)}}catch(K){qe(t,t.return,K)}}function uv(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{eg(t,s)}catch(r){qe(e,e.return,r)}}}function fv(e,t,s){s.props=Hs(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(r){qe(e,t,r)}}function ul(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof s=="function"?e.refCleanup=s(r):s.current=r}}catch(c){qe(e,t,c)}}function Pn(e,t){var s=e.ref,r=e.refCleanup;if(s!==null)if(typeof r=="function")try{r()}catch(c){qe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){qe(e,t,c)}else s.current=null}function dv(e){var t=e.type,s=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break e;case"img":s.src?r.src=s.src:s.srcSet&&(r.srcset=s.srcSet)}}catch(c){qe(e,e.return,c)}}function Wf(e,t,s){try{var r=e.stateNode;Fw(r,e.type,s,t),r[Ht]=t}catch(c){qe(e,e.return,c)}}function hv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Za(e.type)||e.tag===4}function $f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hv(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&&Za(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 Jf(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Jn));else if(r!==4&&(r===27&&Za(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(Jf(e,t,s),e=e.sibling;e!==null;)Jf(e,t,s),e=e.sibling}function Ko(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(r!==4&&(r===27&&Za(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Ko(e,t,s),e=e.sibling;e!==null;)Ko(e,t,s),e=e.sibling}function mv(e){var t=e.stateNode,s=e.memoizedProps;try{for(var r=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Rt(t,r,s),t[St]=e,t[Ht]=s}catch(d){qe(e,e.return,d)}}var ca=!1,ct=!1,ed=!1,pv=typeof WeakSet=="function"?WeakSet:Set,gt=null;function _w(e,t){if(e=e.containerInfo,Sd=pc,e=Cp(e),Xu(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var c=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var y=0,w=-1,A=-1,Q=0,K=0,$=e,V=null;t:for(;;){for(var I;$!==s||c!==0&&$.nodeType!==3||(w=y+c),$!==d||r!==0&&$.nodeType!==3||(A=y+r),$.nodeType===3&&(y+=$.nodeValue.length),(I=$.firstChild)!==null;)V=$,$=I;for(;;){if($===e)break t;if(V===s&&++Q===c&&(w=y),V===d&&++K===r&&(A=y),(I=$.nextSibling)!==null)break;$=V,V=$.parentNode}$=I}s=w===-1||A===-1?null:{start:w,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(wd={focusedElem:e,selectionRange:s},pc=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)c=e[s],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,s=t,c=d.memoizedProps,d=d.memoizedState,r=s.stateNode;try{var ue=Hs(s.type,c);e=r.getSnapshotBeforeUpdate(ue,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(ve){qe(s,s.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)Rd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rd(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=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function gv(e,t,s){var r=s.flags;switch(s.tag){case 0:case 11:case 15:fa(e,s),r&4&&cl(5,s);break;case 1:if(fa(e,s),r&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(y){qe(s,s.return,y)}else{var c=Hs(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){qe(s,s.return,y)}}r&64&&uv(s),r&512&&ul(s,s.return);break;case 3:if(fa(e,s),r&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{eg(e,t)}catch(y){qe(s,s.return,y)}}break;case 27:t===null&&r&4&&mv(s);case 26:case 5:fa(e,s),t===null&&r&4&&dv(s),r&512&&ul(s,s.return);break;case 12:fa(e,s);break;case 31:fa(e,s),r&4&&xv(e,s);break;case 13:fa(e,s),r&4&&bv(e,s),r&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Bw.bind(null,s),sj(e,s))));break;case 22:if(r=s.memoizedState!==null||ca,!r){t=t!==null&&t.memoizedState!==null||ct,c=ca;var d=ct;ca=r,(ct=t)&&!d?da(e,s,(s.subtreeFlags&8772)!==0):fa(e,s),ca=c,ct=d}break;case 30:break;default:fa(e,s)}}function vv(e){var t=e.alternate;t!==null&&(e.alternate=null,vv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_u(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Fe=null,qt=!1;function ua(e,t,s){for(s=s.child;s!==null;)yv(e,t,s),s=s.sibling}function yv(e,t,s){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(zr,s)}catch{}switch(s.tag){case 26:ct||Pn(s,t),ua(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ct||Pn(s,t);var r=Fe,c=qt;Za(s.type)&&(Fe=s.stateNode,qt=!1),ua(e,t,s),xl(s.stateNode),Fe=r,qt=c;break;case 5:ct||Pn(s,t);case 6:if(r=Fe,c=qt,Fe=null,ua(e,t,s),Fe=r,qt=c,Fe!==null)if(qt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(s.stateNode)}catch(d){qe(s,t,d)}else try{Fe.removeChild(s.stateNode)}catch(d){qe(s,t,d)}break;case 18:Fe!==null&&(qt?(e=Fe,uy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),er(e)):uy(Fe,s.stateNode));break;case 4:r=Fe,c=qt,Fe=s.stateNode.containerInfo,qt=!0,ua(e,t,s),Fe=r,qt=c;break;case 0:case 11:case 14:case 15:Ga(2,s,t),ct||Ga(4,s,t),ua(e,t,s);break;case 1:ct||(Pn(s,t),r=s.stateNode,typeof r.componentWillUnmount=="function"&&fv(s,t,r)),ua(e,t,s);break;case 21:ua(e,t,s);break;case 22:ct=(r=ct)||s.memoizedState!==null,ua(e,t,s),ct=r;break;default:ua(e,t,s)}}function xv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{er(e)}catch(s){qe(t,t.return,s)}}}function bv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{er(e)}catch(s){qe(t,t.return,s)}}function Aw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pv),t;default:throw Error(l(435,e.tag))}}function Zo(e,t){var s=Aw(e);t.forEach(function(r){if(!s.has(r)){s.add(r);var c=Hw.bind(null,e,r);r.then(c,c)}})}function Gt(e,t){var s=t.deletions;if(s!==null)for(var r=0;r<s.length;r++){var c=s[r],d=e,y=t,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(Za(w.type)){Fe=w.stateNode,qt=!1;break e}break;case 5:Fe=w.stateNode,qt=!1;break e;case 3:case 4:Fe=w.stateNode.containerInfo,qt=!0;break e}w=w.return}if(Fe===null)throw Error(l(160));yv(d,y,c),Fe=null,qt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sv(t,e),t=t.sibling}var Tn=null;function Sv(e,t){var s=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Qt(e),r&4&&(Ga(3,e,e.return),cl(3,e),Ga(5,e,e.return));break;case 1:Gt(t,e),Qt(e),r&512&&(ct||s===null||Pn(s,s.return)),r&64&&ca&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?r:s.concat(r))));break;case 26:var c=Tn;if(Gt(t,e),Qt(e),r&512&&(ct||s===null||Pn(s,s.return)),r&4){var d=s!==null?s.memoizedState:null;if(r=e.memoizedState,s===null)if(r===null)if(e.stateNode===null){e:{r=e.type,s=e.memoizedProps,c=c.ownerDocument||c;t:switch(r){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Ur]||d[St]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(r),c.head.insertBefore(d,c.querySelector("head > title"))),Rt(d,r,s),d[St]=e,pt(d),r=d;break e;case"link":var y=Sy("link","href",c).get(r+(s.href||""));if(y){for(var w=0;w<y.length;w++)if(d=y[w],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(w,1);break t}}d=c.createElement(r),Rt(d,r,s),c.head.appendChild(d);break;case"meta":if(y=Sy("meta","content",c).get(r+(s.content||""))){for(w=0;w<y.length;w++)if(d=y[w],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(w,1);break t}}d=c.createElement(r),Rt(d,r,s),c.head.appendChild(d);break;default:throw Error(l(468,r))}d[St]=e,pt(d),r=d}e.stateNode=r}else wy(c,e.type,e.stateNode);else e.stateNode=by(c,r,e.memoizedProps);else d!==r?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,r===null?wy(c,e.type,e.stateNode):by(c,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Wf(e,e.memoizedProps,s.memoizedProps)}break;case 27:Gt(t,e),Qt(e),r&512&&(ct||s===null||Pn(s,s.return)),s!==null&&r&4&&Wf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Gt(t,e),Qt(e),r&512&&(ct||s===null||Pn(s,s.return)),e.flags&32){c=e.stateNode;try{ji(c,"")}catch(ue){qe(e,e.return,ue)}}r&4&&e.stateNode!=null&&(c=e.memoizedProps,Wf(e,c,s!==null?s.memoizedProps:c)),r&1024&&(ed=!0);break;case 6:if(Gt(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(l(162));r=e.memoizedProps,s=e.stateNode;try{s.nodeValue=r}catch(ue){qe(e,e.return,ue)}}break;case 3:if(fc=null,c=Tn,Tn=cc(t.containerInfo),Gt(t,e),Tn=c,Qt(e),r&4&&s!==null&&s.memoizedState.isDehydrated)try{er(t.containerInfo)}catch(ue){qe(e,e.return,ue)}ed&&(ed=!1,wv(e));break;case 4:r=Tn,Tn=cc(e.stateNode.containerInfo),Gt(t,e),Qt(e),Tn=r;break;case 12:Gt(t,e),Qt(e);break;case 31:Gt(t,e),Qt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Zo(e,r)));break;case 13:Gt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Wo=_t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Zo(e,r)));break;case 22:c=e.memoizedState!==null;var A=s!==null&&s.memoizedState!==null,Q=ca,K=ct;if(ca=Q||c,ct=K||A,Gt(t,e),ct=K,ca=Q,Qt(e),r&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(s===null||A||ca||ct||Ps(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){A=s=t;try{if(d=A.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=A.stateNode;var $=A.memoizedProps.style,V=$!=null&&$.hasOwnProperty("display")?$.display:null;w.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ue){qe(A,A.return,ue)}}}else if(t.tag===6){if(s===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(ue){qe(A,A.return,ue)}}}else if(t.tag===18){if(s===null){A=t;try{var I=A.stateNode;c?fy(I,!0):fy(A.stateNode,!1)}catch(ue){qe(A,A.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(s=r.retryQueue,s!==null&&(r.retryQueue=null,Zo(e,s))));break;case 19:Gt(t,e),Qt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Zo(e,r)));break;case 30:break;case 21:break;default:Gt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var s,r=e.return;r!==null;){if(hv(r)){s=r;break}r=r.return}if(s==null)throw Error(l(160));switch(s.tag){case 27:var c=s.stateNode,d=$f(e);Ko(e,d,c);break;case 5:var y=s.stateNode;s.flags&32&&(ji(y,""),s.flags&=-33);var w=$f(e);Ko(e,w,y);break;case 3:case 4:var A=s.stateNode.containerInfo,Q=$f(e);Jf(e,Q,A);break;default:throw Error(l(161))}}catch(K){qe(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gv(e,t.alternate,t),t=t.sibling}function Ps(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),Ps(t);break;case 1:Pn(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&fv(t,t.return,s),Ps(t);break;case 27:xl(t.stateNode);case 26:case 5:Pn(t,t.return),Ps(t);break;case 22:t.memoizedState===null&&Ps(t);break;case 30:Ps(t);break;default:Ps(t)}e=e.sibling}}function da(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:da(c,d,s),cl(4,d);break;case 1:if(da(c,d,s),r=d,c=r.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Q){qe(r,r.return,Q)}if(r=d,c=r.updateQueue,c!==null){var w=r.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)Jp(A[c],w)}catch(Q){qe(r,r.return,Q)}}s&&y&64&&uv(d),ul(d,d.return);break;case 27:mv(d);case 26:case 5:da(c,d,s),s&&r===null&&y&4&&dv(d),ul(d,d.return);break;case 12:da(c,d,s);break;case 31:da(c,d,s),s&&y&4&&xv(c,d);break;case 13:da(c,d,s),s&&y&4&&bv(c,d);break;case 22:d.memoizedState===null&&da(c,d,s),ul(d,d.return);break;case 30:break;default:da(c,d,s)}t=t.sibling}}function td(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Fr(s))}function nd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fr(e))}function _n(e,t,s,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jv(e,t,s,r),t=t.sibling}function jv(e,t,s,r){var c=t.flags;switch(t.tag){case 0:case 11:case 15:_n(e,t,s,r),c&2048&&cl(9,t);break;case 1:_n(e,t,s,r);break;case 3:_n(e,t,s,r),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fr(e)));break;case 12:if(c&2048){_n(e,t,s,r),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,w=d.onPostCommit;typeof w=="function"&&w(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){qe(t,t.return,A)}}else _n(e,t,s,r);break;case 31:_n(e,t,s,r);break;case 13:_n(e,t,s,r);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?_n(e,t,s,r):fl(e,t):d._visibility&2?_n(e,t,s,r):(d._visibility|=2,Qi(e,t,s,r,(t.subtreeFlags&10256)!==0||!1)),c&2048&&td(y,t);break;case 24:_n(e,t,s,r),c&2048&&nd(t.alternate,t);break;default:_n(e,t,s,r)}}function Qi(e,t,s,r,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,w=s,A=r,Q=y.flags;switch(y.tag){case 0:case 11:case 15:Qi(d,y,w,A,c),cl(8,y);break;case 23:break;case 22:var K=y.stateNode;y.memoizedState!==null?K._visibility&2?Qi(d,y,w,A,c):fl(d,y):(K._visibility|=2,Qi(d,y,w,A,c)),c&&Q&2048&&td(y.alternate,y);break;case 24:Qi(d,y,w,A,c),c&&Q&2048&&nd(y.alternate,y);break;default:Qi(d,y,w,A,c)}t=t.sibling}}function fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,r=t,c=r.flags;switch(r.tag){case 22:fl(s,r),c&2048&&td(r.alternate,r);break;case 24:fl(s,r),c&2048&&nd(r.alternate,r);break;default:fl(s,r)}t=t.sibling}}var dl=8192;function Vi(e,t,s){if(e.subtreeFlags&dl)for(e=e.child;e!==null;)Nv(e,t,s),e=e.sibling}function Nv(e,t,s){switch(e.tag){case 26:Vi(e,t,s),e.flags&dl&&e.memoizedState!==null&&gj(s,Tn,e.memoizedState,e.memoizedProps);break;case 5:Vi(e,t,s);break;case 3:case 4:var r=Tn;Tn=cc(e.stateNode.containerInfo),Vi(e,t,s),Tn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=dl,dl=16777216,Vi(e,t,s),dl=r):Vi(e,t,s));break;default:Vi(e,t,s)}}function Rv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var r=t[s];gt=r,Cv(r,e)}Rv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ev(e),e=e.sibling}function Ev(e){switch(e.tag){case 0:case 11:case 15:hl(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:hl(e);break;case 12:hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fo(e)):hl(e);break;default:hl(e)}}function Fo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var r=t[s];gt=r,Cv(r,e)}Rv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ga(8,t,t.return),Fo(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,Fo(t));break;default:Fo(t)}e=e.sibling}}function Cv(e,t){for(;gt!==null;){var s=gt;switch(s.tag){case 0:case 11:case 15:Ga(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var r=s.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Fr(s.memoizedState.cache)}if(r=s.child,r!==null)r.return=s,gt=r;else e:for(s=e;gt!==null;){r=gt;var c=r.sibling,d=r.return;if(vv(r),r===s){gt=null;break e}if(c!==null){c.return=d,gt=c;break e}gt=d}}}var Mw={getCacheForType:function(e){var t=jt(rt),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return jt(rt).controller.signal}},Ow=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ie=null,Ne=null,Ee=0,Pe=0,sn=null,Qa=!1,Yi=!1,ad=!1,ha=0,et=0,Va=0,qs=0,sd=0,rn=0,Xi=0,ml=null,Vt=null,id=!1,Wo=0,Tv=0,$o=1/0,Jo=null,Ya=null,ut=0,Xa=null,Ii=null,ma=0,rd=0,ld=null,_v=null,pl=0,od=null;function ln(){return(Ue&2)!==0&&Ee!==0?Ee&-Ee:B.T!==null?md():Ym()}function Av(){if(rn===0)if((Ee&536870912)===0||_e){var e=ro;ro<<=1,(ro&3932160)===0&&(ro=262144),rn=e}else rn=536870912;return e=nn.current,e!==null&&(e.flags|=32),rn}function Yt(e,t,s){(e===Ie&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Ki(e,0),Ia(e,Ee,rn,!1)),Lr(e,s),((Ue&2)===0||e!==Ie)&&(e===Ie&&((Ue&2)===0&&(qs|=s),et===4&&Ia(e,Ee,rn,!1)),qn(e))}function Mv(e,t,s){if((Ue&6)!==0)throw Error(l(327));var r=!s&&(t&127)===0&&(t&e.expiredLanes)===0||kr(e,t),c=r?kw(e,t):ud(e,t,!0),d=r;do{if(c===0){Yi&&!r&&Ia(e,t,0,!1);break}else{if(s=e.current.alternate,d&&!Dw(s)){c=ud(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var w=e;c=ml;var A=w.current.memoizedState.isDehydrated;if(A&&(Ki(w,y).flags|=256),y=ud(w,y,!1),y!==2){if(ad&&!A){w.errorRecoveryDisabledLanes|=d,qs|=d,c=4;break e}d=Vt,Vt=c,d!==null&&(Vt===null?Vt=d:Vt.push.apply(Vt,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){Ki(e,0),Ia(e,t,0,!0);break}e:{switch(r=e,d=c,d){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ia(r,t,rn,!Qa);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(c=Wo+300-_t(),10<c)){if(Ia(r,t,rn,!Qa),oo(r,0,!0)!==0)break e;ma=t,r.timeoutHandle=oy(Ov.bind(null,r,s,Vt,Jo,id,t,rn,qs,Xi,Qa,d,"Throttled",-0,0),c);break e}Ov(r,s,Vt,Jo,id,t,rn,qs,Xi,Qa,d,null,-0,0)}}break}while(!0);qn(e)}function Ov(e,t,s,r,c,d,y,w,A,Q,K,$,V,I){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},Nv(t,d,$);var ue=(d&62914560)===d?Wo-_t():(d&4194048)===d?Tv-_t():0;if(ue=vj($,ue),ue!==null){ma=d,e.cancelPendingCommit=ue(Pv.bind(null,e,t,d,s,r,c,y,w,A,K,$,null,V,I)),Ia(e,d,y,!Q);return}}Pv(e,t,d,s,r,c,y,w,A)}function Dw(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var r=0;r<s.length;r++){var c=s[r],d=c.getSnapshot;c=c.value;try{if(!en(d(),c))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ia(e,t,s,r){t&=~sd,t&=~qs,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var c=t;0<c;){var d=31-Jt(c),y=1<<d;r[d]=-1,c&=~y}s!==0&&Gm(e,s,t)}function ec(){return(Ue&6)===0?(gl(0),!1):!0}function cd(){if(Ne!==null){if(Pe===0)var e=Ne.return;else e=Ne,aa=Os=null,Rf(e),Bi=null,$r=0,e=Ne;for(;e!==null;)cv(e.alternate,e),e=e.return;Ne=null}}function Ki(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,Jw(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),ma=0,cd(),Ie=e,Ne=s=ta(e.current,null),Ee=t,Pe=0,sn=null,Qa=!1,Yi=kr(e,t),ad=!1,Xi=rn=sd=qs=Va=et=0,Vt=ml=null,id=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var c=31-Jt(r),d=1<<c;t|=e[c],r&=~d}return ha=t,So(),s}function Dv(e,t){be=null,B.H=rl,t===Ui||t===_o?(t=Zp(),Pe=3):t===hf?(t=Zp(),Pe=4):Pe=t===qf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sn=t,Ne===null&&(et=1,Qo(e,vn(t,e.current)))}function zv(){var e=nn.current;return e===null?!0:(Ee&4194048)===Ee?Sn===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Sn:!1}function kv(){var e=B.H;return B.H=rl,e===null?rl:e}function Lv(){var e=B.A;return B.A=Mw,e}function tc(){et=4,Qa||(Ee&4194048)!==Ee&&nn.current!==null||(Yi=!0),(Va&134217727)===0&&(qs&134217727)===0||Ie===null||Ia(Ie,Ee,rn,!1)}function ud(e,t,s){var r=Ue;Ue|=2;var c=kv(),d=Lv();(Ie!==e||Ee!==t)&&(Jo=null,Ki(e,t)),t=!1;var y=et;e:do try{if(Pe!==0&&Ne!==null){var w=Ne,A=sn;switch(Pe){case 8:cd(),y=6;break e;case 3:case 2:case 9:case 6:nn.current===null&&(t=!0);var Q=Pe;if(Pe=0,sn=null,Zi(e,w,A,Q),s&&Yi){y=0;break e}break;default:Q=Pe,Pe=0,sn=null,Zi(e,w,A,Q)}}zw(),y=et;break}catch(K){Dv(e,K)}while(!0);return t&&e.shellSuspendCounter++,aa=Os=null,Ue=r,B.H=c,B.A=d,Ne===null&&(Ie=null,Ee=0,So()),y}function zw(){for(;Ne!==null;)Uv(Ne)}function kw(e,t){var s=Ue;Ue|=2;var r=kv(),c=Lv();Ie!==e||Ee!==t?(Jo=null,$o=_t()+500,Ki(e,t)):Yi=kr(e,t);e:do try{if(Pe!==0&&Ne!==null){t=Ne;var d=sn;t:switch(Pe){case 1:Pe=0,sn=null,Zi(e,t,d,1);break;case 2:case 9:if(Ip(d)){Pe=0,sn=null,Bv(t);break}t=function(){Pe!==2&&Pe!==9||Ie!==e||(Pe=7),qn(e)},d.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:Ip(d)?(Pe=0,sn=null,Bv(t)):(Pe=0,sn=null,Zi(e,t,d,7));break;case 5:var y=null;switch(Ne.tag){case 26:y=Ne.memoizedState;case 5:case 27:var w=Ne;if(y?jy(y):w.stateNode.complete){Pe=0,sn=null;var A=w.sibling;if(A!==null)Ne=A;else{var Q=w.return;Q!==null?(Ne=Q,nc(Q)):Ne=null}break t}}Pe=0,sn=null,Zi(e,t,d,5);break;case 6:Pe=0,sn=null,Zi(e,t,d,6);break;case 8:cd(),et=6;break e;default:throw Error(l(462))}}Lw();break}catch(K){Dv(e,K)}while(!0);return aa=Os=null,B.H=r,B.A=c,Ue=s,Ne!==null?0:(Ie=null,Ee=0,So(),et)}function Lw(){for(;Ne!==null&&!so();)Uv(Ne)}function Uv(e){var t=lv(e.alternate,e,ha);e.memoizedProps=e.pendingProps,t===null?nc(e):Ne=t}function Bv(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=tv(s,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=tv(s,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Rf(t);default:cv(s,t),t=Ne=Lp(t,ha),t=lv(s,t,ha)}e.memoizedProps=e.pendingProps,t===null?nc(e):Ne=t}function Zi(e,t,s,r){aa=Os=null,Rf(t),Bi=null,$r=0;var c=t.return;try{if(Nw(e,c,t,s,Ee)){et=1,Qo(e,vn(s,e.current)),Ne=null;return}}catch(d){if(c!==null)throw Ne=c,d;et=1,Qo(e,vn(s,e.current)),Ne=null;return}t.flags&32768?(_e||r===1?e=!0:Yi||(Ee&536870912)!==0?e=!1:(Qa=e=!0,(r===2||r===9||r===3||r===6)&&(r=nn.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hv(t,e)):nc(t)}function nc(e){var t=e;do{if((t.flags&32768)!==0){Hv(t,Qa);return}e=t.return;var s=Cw(t.alternate,t,ha);if(s!==null){Ne=s;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);et===0&&(et=5)}function Hv(e,t){do{var s=Tw(e.alternate,e);if(s!==null){s.flags&=32767,Ne=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=s}while(e!==null);et=6,Ne=null}function Pv(e,t,s,r,c,d,y,w,A){e.cancelPendingCommit=null;do ac();while(ut!==0);if((Ue&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(d=t.lanes|t.childLanes,d|=Wu,pS(e,s,d,y,w,A),e===Ie&&(Ne=Ie=null,Ee=0),Ii=t,Xa=e,ma=s,rd=d,ld=c,_v=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pw(gi,function(){return Yv(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=B.T,B.T=null,c=X.p,X.p=2,y=Ue,Ue|=4;try{_w(e,t,s)}finally{Ue=y,X.p=c,B.T=r}}ut=1,qv(),Gv(),Qv()}}function qv(){if(ut===1){ut=0;var e=Xa,t=Ii,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var r=X.p;X.p=2;var c=Ue;Ue|=4;try{Sv(t,e);var d=wd,y=Cp(e.containerInfo),w=d.focusedElem,A=d.selectionRange;if(y!==w&&w&&w.ownerDocument&&Ep(w.ownerDocument.documentElement,w)){if(A!==null&&Xu(w)){var Q=A.start,K=A.end;if(K===void 0&&(K=Q),"selectionStart"in w)w.selectionStart=Q,w.selectionEnd=Math.min(K,w.value.length);else{var $=w.ownerDocument||document,V=$&&$.defaultView||window;if(V.getSelection){var I=V.getSelection(),ue=w.textContent.length,ve=Math.min(A.start,ue),Ye=A.end===void 0?ve:Math.min(A.end,ue);!I.extend&&ve>Ye&&(y=Ye,Ye=ve,ve=y);var H=Rp(w,ve),z=Rp(w,Ye);if(H&&z&&(I.rangeCount!==1||I.anchorNode!==H.node||I.anchorOffset!==H.offset||I.focusNode!==z.node||I.focusOffset!==z.offset)){var G=$.createRange();G.setStart(H.node,H.offset),I.removeAllRanges(),ve>Ye?(I.addRange(G),I.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),I.addRange(G))}}}}for($=[],I=w;I=I.parentNode;)I.nodeType===1&&$.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<$.length;w++){var F=$[w];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}pc=!!Sd,wd=Sd=null}finally{Ue=c,X.p=r,B.T=s}}e.current=t,ut=2}}function Gv(){if(ut===2){ut=0;var e=Xa,t=Ii,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var r=X.p;X.p=2;var c=Ue;Ue|=4;try{gv(e,t.alternate,t)}finally{Ue=c,X.p=r,B.T=s}}ut=3}}function Qv(){if(ut===4||ut===3){ut=0,Nu();var e=Xa,t=Ii,s=ma,r=_v;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,Ii=Xa=null,Vv(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ya=null),Cu(s),t=t.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(zr,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=B.T,c=X.p,X.p=2,B.T=null;try{for(var d=e.onRecoverableError,y=0;y<r.length;y++){var w=r[y];d(w.value,{componentStack:w.stack})}}finally{B.T=t,X.p=c}}(ma&3)!==0&&ac(),qn(e),c=e.pendingLanes,(s&261930)!==0&&(c&42)!==0?e===od?pl++:(pl=0,od=e):pl=0,gl(0)}}function Vv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fr(t)))}function ac(){return qv(),Gv(),Qv(),Yv()}function Yv(){if(ut!==5)return!1;var e=Xa,t=rd;rd=0;var s=Cu(ma),r=B.T,c=X.p;try{X.p=32>s?32:s,B.T=null,s=ld,ld=null;var d=Xa,y=ma;if(ut=0,Ii=Xa=null,ma=0,(Ue&6)!==0)throw Error(l(331));var w=Ue;if(Ue|=4,Ev(d.current),jv(d,d.current,y,s),Ue=w,gl(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(zr,d)}catch{}return!0}finally{X.p=c,B.T=r,Vv(e,t)}}function Xv(e,t,s){t=vn(s,t),t=Pf(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(Lr(e,2),qn(e))}function qe(e,t,s){if(e.tag===3)Xv(e,e,s);else for(;t!==null;){if(t.tag===3){Xv(t,e,s);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ya===null||!Ya.has(r))){e=vn(s,e),s=Ig(2),r=Ha(t,s,2),r!==null&&(Kg(s,r,t,e),Lr(r,2),qn(r));break}}t=t.return}}function fd(e,t,s){var r=e.pingCache;if(r===null){r=e.pingCache=new Ow;var c=new Set;r.set(t,c)}else c=r.get(t),c===void 0&&(c=new Set,r.set(t,c));c.has(s)||(ad=!0,c.add(s),e=Uw.bind(null,e,t,s),t.then(e,e))}function Uw(e,t,s){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ie===e&&(Ee&s)===s&&(et===4||et===3&&(Ee&62914560)===Ee&&300>_t()-Wo?(Ue&2)===0&&Ki(e,0):sd|=s,Xi===Ee&&(Xi=0)),qn(e)}function Iv(e,t){t===0&&(t=qm()),e=_s(e,t),e!==null&&(Lr(e,t),qn(e))}function Bw(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Iv(e,s)}function Hw(e,t){var s=0;switch(e.tag){case 31:case 13:var r=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(t),Iv(e,s)}function Pw(e,t){return En(e,t)}var sc=null,Fi=null,dd=!1,ic=!1,hd=!1,Ka=0;function qn(e){e!==Fi&&e.next===null&&(Fi===null?sc=Fi=e:Fi=Fi.next=e),ic=!0,dd||(dd=!0,Gw())}function gl(e,t){if(!hd&&ic){hd=!0;do for(var s=!1,r=sc;r!==null;){if(e!==0){var c=r.pendingLanes;if(c===0)var d=0;else{var y=r.suspendedLanes,w=r.pingedLanes;d=(1<<31-Jt(42|e)+1)-1,d&=c&~(y&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,Wv(r,d))}else d=Ee,d=oo(r,r===Ie?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||kr(r,d)||(s=!0,Wv(r,d));r=r.next}while(s);hd=!1}}function qw(){Kv()}function Kv(){ic=dd=!1;var e=0;Ka!==0&&$w()&&(e=Ka);for(var t=_t(),s=null,r=sc;r!==null;){var c=r.next,d=Zv(r,t);d===0?(r.next=null,s===null?sc=c:s.next=c,c===null&&(Fi=s)):(s=r,(e!==0||(d&3)!==0)&&(ic=!0)),r=c}ut!==0&&ut!==5||gl(e),Ka!==0&&(Ka=0)}function Zv(e,t){for(var s=e.suspendedLanes,r=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Jt(d),w=1<<y,A=c[y];A===-1?((w&s)===0||(w&r)!==0)&&(c[y]=mS(w,t)):A<=t&&(e.expiredLanes|=w),d&=~w}if(t=Ie,s=Ee,s=oo(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,s===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Dr(r),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||kr(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(r!==null&&Dr(r),Cu(s)){case 2:case 8:s=Un;break;case 32:s=gi;break;case 268435456:s=Pm;break;default:s=gi}return r=Fv.bind(null,e),s=En(s,r),e.callbackPriority=t,e.callbackNode=s,t}return r!==null&&r!==null&&Dr(r),e.callbackPriority=2,e.callbackNode=null,2}function Fv(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(ac()&&e.callbackNode!==s)return null;var r=Ee;return r=oo(e,e===Ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Mv(e,r,t),Zv(e,_t()),e.callbackNode!=null&&e.callbackNode===s?Fv.bind(null,e):null)}function Wv(e,t){if(ac())return null;Mv(e,t,!0)}function Gw(){ej(function(){(Ue&6)!==0?En(bt,qw):Kv()})}function md(){if(Ka===0){var e=ki;e===0&&(e=io,io<<=1,(io&261888)===0&&(io=256)),Ka=e}return Ka}function $v(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ho(""+e)}function Jv(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function Qw(e,t,s,r,c){if(t==="submit"&&s&&s.stateNode===c){var d=$v((c[Ht]||null).action),y=r.submitter;y&&(t=(t=y[Ht]||null)?$v(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var w=new vo("action","action",null,r,c);e.push({event:w,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ka!==0){var A=y?Jv(c,y):new FormData(c);zf(s,{pending:!0,data:A,method:c.method,action:d},null,A)}}else typeof d=="function"&&(w.preventDefault(),A=y?Jv(c,y):new FormData(c),zf(s,{pending:!0,data:A,method:c.method,action:d},d,A))},currentTarget:c}]})}}for(var pd=0;pd<Fu.length;pd++){var gd=Fu[pd],Vw=gd.toLowerCase(),Yw=gd[0].toUpperCase()+gd.slice(1);Cn(Vw,"on"+Yw)}Cn(Ap,"onAnimationEnd"),Cn(Mp,"onAnimationIteration"),Cn(Op,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(lw,"onTransitionRun"),Cn(ow,"onTransitionStart"),Cn(cw,"onTransitionCancel"),Cn(Dp,"onTransitionEnd"),Si("onMouseEnter",["mouseout","mouseover"]),Si("onMouseLeave",["mouseout","mouseover"]),Si("onPointerEnter",["pointerout","pointerover"]),Si("onPointerLeave",["pointerout","pointerover"]),Rs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="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(" "),Xw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vl));function ey(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var r=e[s],c=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var y=r.length-1;0<=y;y--){var w=r[y],A=w.instance,Q=w.currentTarget;if(w=w.listener,A!==d&&c.isPropagationStopped())break e;d=w,c.currentTarget=Q;try{d(c)}catch(K){bo(K)}c.currentTarget=null,d=A}else for(y=0;y<r.length;y++){if(w=r[y],A=w.instance,Q=w.currentTarget,w=w.listener,A!==d&&c.isPropagationStopped())break e;d=w,c.currentTarget=Q;try{d(c)}catch(K){bo(K)}c.currentTarget=null,d=A}}}}function Re(e,t){var s=t[Tu];s===void 0&&(s=t[Tu]=new Set);var r=e+"__bubble";s.has(r)||(ty(t,e,2,!1),s.add(r))}function vd(e,t,s){var r=0;t&&(r|=4),ty(s,e,r,t)}var rc="_reactListening"+Math.random().toString(36).slice(2);function yd(e){if(!e[rc]){e[rc]=!0,Km.forEach(function(s){s!=="selectionchange"&&(Xw.has(s)||vd(s,!1,e),vd(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rc]||(t[rc]=!0,vd("selectionchange",!1,t))}}function ty(e,t,s,r){switch(Ay(t)){case 2:var c=bj;break;case 8:c=Sj;break;default:c=Dd}s=c.bind(null,t,s,e),c=void 0,!Uu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),r?c!==void 0?e.addEventListener(t,s,{capture:!0,passive:c}):e.addEventListener(t,s,!0):c!==void 0?e.addEventListener(t,s,{passive:c}):e.addEventListener(t,s,!1)}function xd(e,t,s,r,c){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var w=r.stateNode.containerInfo;if(w===c)break;if(y===4)for(y=r.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;w!==null;){if(y=yi(w),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){r=d=y;continue e}w=w.parentNode}}r=r.return}rp(function(){var Q=d,K=ku(s),$=[];e:{var V=zp.get(e);if(V!==void 0){var I=vo,ue=e;switch(e){case"keypress":if(po(s)===0)break e;case"keydown":case"keyup":I=HS;break;case"focusin":ue="focus",I=qu;break;case"focusout":ue="blur",I=qu;break;case"beforeblur":case"afterblur":I=qu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=cp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=CS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=GS;break;case Ap:case Mp:case Op:I=AS;break;case Dp:I=VS;break;case"scroll":case"scrollend":I=RS;break;case"wheel":I=XS;break;case"copy":case"cut":case"paste":I=OS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=fp;break;case"toggle":case"beforetoggle":I=KS}var ve=(t&4)!==0,Ye=!ve&&(e==="scroll"||e==="scrollend"),H=ve?V!==null?V+"Capture":null:V;ve=[];for(var z=Q,G;z!==null;){var F=z;if(G=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||G===null||H===null||(F=Hr(z,H),F!=null&&ve.push(yl(z,F,G))),Ye)break;z=z.return}0<ve.length&&(V=new I(V,ue,null,s,K),$.push({event:V,listeners:ve}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",V&&s!==zu&&(ue=s.relatedTarget||s.fromElement)&&(yi(ue)||ue[vi]))break e;if((I||V)&&(V=K.window===K?K:(V=K.ownerDocument)?V.defaultView||V.parentWindow:window,I?(ue=s.relatedTarget||s.toElement,I=Q,ue=ue?yi(ue):null,ue!==null&&(Ye=f(ue),ve=ue.tag,ue!==Ye||ve!==5&&ve!==27&&ve!==6)&&(ue=null)):(I=null,ue=Q),I!==ue)){if(ve=cp,F="onMouseLeave",H="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(ve=fp,F="onPointerLeave",H="onPointerEnter",z="pointer"),Ye=I==null?V:Br(I),G=ue==null?V:Br(ue),V=new ve(F,z+"leave",I,s,K),V.target=Ye,V.relatedTarget=G,F=null,yi(K)===Q&&(ve=new ve(H,z+"enter",ue,s,K),ve.target=G,ve.relatedTarget=Ye,F=ve),Ye=F,I&&ue)t:{for(ve=Iw,H=I,z=ue,G=0,F=H;F;F=ve(F))G++;F=0;for(var me=z;me;me=ve(me))F++;for(;0<G-F;)H=ve(H),G--;for(;0<F-G;)z=ve(z),F--;for(;G--;){if(H===z||z!==null&&H===z.alternate){ve=H;break t}H=ve(H),z=ve(z)}ve=null}else ve=null;I!==null&&ny($,V,I,ve,!1),ue!==null&&Ye!==null&&ny($,Ye,ue,ve,!0)}}e:{if(V=Q?Br(Q):window,I=V.nodeName&&V.nodeName.toLowerCase(),I==="select"||I==="input"&&V.type==="file")var De=xp;else if(vp(V))if(bp)De=sw;else{De=nw;var fe=tw}else I=V.nodeName,!I||I.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?Q&&Du(Q.elementType)&&(De=xp):De=aw;if(De&&(De=De(e,Q))){yp($,De,s,K);break e}fe&&fe(e,V,Q),e==="focusout"&&Q&&V.type==="number"&&Q.memoizedProps.value!=null&&Ou(V,"number",V.value)}switch(fe=Q?Br(Q):window,e){case"focusin":(vp(fe)||fe.contentEditable==="true")&&(Ci=fe,Iu=Q,Ir=null);break;case"focusout":Ir=Iu=Ci=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,Tp($,s,K);break;case"selectionchange":if(rw)break;case"keydown":case"keyup":Tp($,s,K)}var we;if(Qu)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Ei?pp(e,s)&&(Ce="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(dp&&s.locale!=="ko"&&(Ei||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Ei&&(we=lp()):(Oa=K,Bu="value"in Oa?Oa.value:Oa.textContent,Ei=!0)),fe=lc(Q,Ce),0<fe.length&&(Ce=new up(Ce,e,null,s,K),$.push({event:Ce,listeners:fe}),we?Ce.data=we:(we=gp(s),we!==null&&(Ce.data=we)))),(we=FS?WS(e,s):$S(e,s))&&(Ce=lc(Q,"onBeforeInput"),0<Ce.length&&(fe=new up("onBeforeInput","beforeinput",null,s,K),$.push({event:fe,listeners:Ce}),fe.data=we)),Qw($,e,Q,s,K)}ey($,t)})}function yl(e,t,s){return{instance:e,listener:t,currentTarget:s}}function lc(e,t){for(var s=t+"Capture",r=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Hr(e,s),c!=null&&r.unshift(yl(e,c,d)),c=Hr(e,t),c!=null&&r.push(yl(e,c,d))),e.tag===3)return r;e=e.return}return[]}function Iw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ny(e,t,s,r,c){for(var d=t._reactName,y=[];s!==null&&s!==r;){var w=s,A=w.alternate,Q=w.stateNode;if(w=w.tag,A!==null&&A===r)break;w!==5&&w!==26&&w!==27||Q===null||(A=Q,c?(Q=Hr(s,d),Q!=null&&y.unshift(yl(s,Q,A))):c||(Q=Hr(s,d),Q!=null&&y.push(yl(s,Q,A)))),s=s.return}y.length!==0&&e.push({event:t,listeners:y})}var Kw=/\r\n?/g,Zw=/\u0000|\uFFFD/g;function ay(e){return(typeof e=="string"?e:""+e).replace(Kw,`
|
|
49
|
-
`).replace(Zw,"")}function sy(e,t){return t=ay(t),ay(e)===t}function Ve(e,t,s,r,c,d){switch(s){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||ji(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&ji(e,""+r);break;case"className":uo(e,"class",r);break;case"tabIndex":uo(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":uo(e,s,r);break;case"style":sp(e,r,d);break;case"data":if(t!=="object"){uo(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(s);break}r=ho(""+r),e.setAttribute(s,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(s,"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"&&(s==="formAction"?(t!=="input"&&Ve(e,t,"name",c.name,c,null),Ve(e,t,"formEncType",c.formEncType,c,null),Ve(e,t,"formMethod",c.formMethod,c,null),Ve(e,t,"formTarget",c.formTarget,c,null)):(Ve(e,t,"encType",c.encType,c,null),Ve(e,t,"method",c.method,c,null),Ve(e,t,"target",c.target,c,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(s);break}r=ho(""+r),e.setAttribute(s,r);break;case"onClick":r!=null&&(e.onclick=Jn);break;case"onScroll":r!=null&&Re("scroll",e);break;case"onScrollEnd":r!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(s=r.__html,s!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}s=ho(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(s,""+r):e.removeAttribute(s);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":r===!0?e.setAttribute(s,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(s,r):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(s,r):e.removeAttribute(s);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(s):e.setAttribute(s,r);break;case"popover":Re("beforetoggle",e),Re("toggle",e),co(e,"popover",r);break;case"xlinkActuate":$n(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":$n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":$n(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":$n(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":$n(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":$n(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":$n(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":$n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":$n(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":co(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=jS.get(s)||s,co(e,s,r))}}function bd(e,t,s,r,c,d){switch(s){case"style":sp(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(s=r.__html,s!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"children":typeof r=="string"?ji(e,r):(typeof r=="number"||typeof r=="bigint")&&ji(e,""+r);break;case"onScroll":r!=null&&Re("scroll",e);break;case"onScrollEnd":r!=null&&Re("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zm.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),t=s.slice(2,c?s.length-7:void 0),d=e[Ht]||null,d=d!=null?d[s]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof r=="function")){typeof d!="function"&&d!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,r,c);break e}s in e?e[s]=r:r===!0?e.setAttribute(s,""):co(e,s,r)}}}function Rt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var r=!1,c=!1,d;for(d in s)if(s.hasOwnProperty(d)){var y=s[d];if(y!=null)switch(d){case"src":r=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ve(e,t,d,y,s,null)}}c&&Ve(e,t,"srcSet",s.srcSet,s,null),r&&Ve(e,t,"src",s.src,s,null);return;case"input":Re("invalid",e);var w=d=y=c=null,A=null,Q=null;for(r in s)if(s.hasOwnProperty(r)){var K=s[r];if(K!=null)switch(r){case"name":c=K;break;case"type":y=K;break;case"checked":A=K;break;case"defaultChecked":Q=K;break;case"value":d=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,t));break;default:Ve(e,t,r,K,s,null)}}ep(e,d,w,A,Q,y,c,!1);return;case"select":Re("invalid",e),r=y=d=null;for(c in s)if(s.hasOwnProperty(c)&&(w=s[c],w!=null))switch(c){case"value":d=w;break;case"defaultValue":y=w;break;case"multiple":r=w;default:Ve(e,t,c,w,s,null)}t=d,s=y,e.multiple=!!r,t!=null?wi(e,!!r,t,!1):s!=null&&wi(e,!!r,s,!0);return;case"textarea":Re("invalid",e),d=c=r=null;for(y in s)if(s.hasOwnProperty(y)&&(w=s[y],w!=null))switch(y){case"value":r=w;break;case"defaultValue":c=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Ve(e,t,y,w,s,null)}np(e,r,c,d);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(r=s[A],r!=null))switch(A){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ve(e,t,A,r,s,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(r=0;r<vl.length;r++)Re(vl[r],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("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(Q in s)if(s.hasOwnProperty(Q)&&(r=s[Q],r!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ve(e,t,Q,r,s,null)}return;default:if(Du(t)){for(K in s)s.hasOwnProperty(K)&&(r=s[K],r!==void 0&&bd(e,t,K,r,s,void 0));return}}for(w in s)s.hasOwnProperty(w)&&(r=s[w],r!=null&&Ve(e,t,w,r,s,null))}function Fw(e,t,s,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,w=null,A=null,Q=null,K=null;for(I in s){var $=s[I];if(s.hasOwnProperty(I)&&$!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":A=$;default:r.hasOwnProperty(I)||Ve(e,t,I,null,r,$)}}for(var V in r){var I=r[V];if($=s[V],r.hasOwnProperty(V)&&(I!=null||$!=null))switch(V){case"type":d=I;break;case"name":c=I;break;case"checked":Q=I;break;case"defaultChecked":K=I;break;case"value":y=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,t));break;default:I!==$&&Ve(e,t,V,I,r,$)}}Mu(e,y,w,A,Q,K,d,c);return;case"select":I=y=w=V=null;for(d in s)if(A=s[d],s.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":I=A;default:r.hasOwnProperty(d)||Ve(e,t,d,null,r,A)}for(c in r)if(d=r[c],A=s[c],r.hasOwnProperty(c)&&(d!=null||A!=null))switch(c){case"value":V=d;break;case"defaultValue":w=d;break;case"multiple":y=d;default:d!==A&&Ve(e,t,c,d,r,A)}t=w,s=y,r=I,V!=null?wi(e,!!s,V,!1):!!r!=!!s&&(t!=null?wi(e,!!s,t,!0):wi(e,!!s,s?[]:"",!1));return;case"textarea":I=V=null;for(w in s)if(c=s[w],s.hasOwnProperty(w)&&c!=null&&!r.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,t,w,null,r,c)}for(y in r)if(c=r[y],d=s[y],r.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":V=c;break;case"defaultValue":I=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==d&&Ve(e,t,y,c,r,d)}tp(e,V,I);return;case"option":for(var ue in s)if(V=s[ue],s.hasOwnProperty(ue)&&V!=null&&!r.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Ve(e,t,ue,null,r,V)}for(A in r)if(V=r[A],I=s[A],r.hasOwnProperty(A)&&V!==I&&(V!=null||I!=null))switch(A){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ve(e,t,A,V,r,I)}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 ve in s)V=s[ve],s.hasOwnProperty(ve)&&V!=null&&!r.hasOwnProperty(ve)&&Ve(e,t,ve,null,r,V);for(Q in r)if(V=r[Q],I=s[Q],r.hasOwnProperty(Q)&&V!==I&&(V!=null||I!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,t));break;default:Ve(e,t,Q,V,r,I)}return;default:if(Du(t)){for(var Ye in s)V=s[Ye],s.hasOwnProperty(Ye)&&V!==void 0&&!r.hasOwnProperty(Ye)&&bd(e,t,Ye,void 0,r,V);for(K in r)V=r[K],I=s[K],!r.hasOwnProperty(K)||V===I||V===void 0&&I===void 0||bd(e,t,K,V,r,I);return}}for(var H in s)V=s[H],s.hasOwnProperty(H)&&V!=null&&!r.hasOwnProperty(H)&&Ve(e,t,H,null,r,V);for($ in r)V=r[$],I=s[$],!r.hasOwnProperty($)||V===I||V==null&&I==null||Ve(e,t,$,V,r,I)}function iy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ww(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),r=0;r<s.length;r++){var c=s[r],d=c.transferSize,y=c.initiatorType,w=c.duration;if(d&&w&&iy(y)){for(y=0,w=c.responseEnd,r+=1;r<s.length;r++){var A=s[r],Q=A.startTime;if(Q>w)break;var K=A.transferSize,$=A.initiatorType;K&&iy($)&&(A=A.responseEnd,y+=K*(A<w?1:(w-Q)/(A-Q)))}if(--r,t+=8*(d+y)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sd=null,wd=null;function oc(e){return e.nodeType===9?e:e.ownerDocument}function ry(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 ly(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nd=null;function $w(){var e=window.event;return e&&e.type==="popstate"?e===Nd?!1:(Nd=e,!0):(Nd=null,!1)}var oy=typeof setTimeout=="function"?setTimeout:void 0,Jw=typeof clearTimeout=="function"?clearTimeout:void 0,cy=typeof Promise=="function"?Promise:void 0,ej=typeof queueMicrotask=="function"?queueMicrotask:typeof cy<"u"?function(e){return cy.resolve(null).then(e).catch(tj)}:oy;function tj(e){setTimeout(function(){throw e})}function Za(e){return e==="head"}function uy(e,t){var s=t,r=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"||s==="/&"){if(r===0){e.removeChild(c),er(t);return}r--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")r++;else if(s==="html")xl(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,xl(s);for(var d=s.firstChild;d;){var y=d.nextSibling,w=d.nodeName;d[Ur]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||s.removeChild(d),d=y}}else s==="body"&&xl(e.ownerDocument.body);s=c}while(s);er(t)}function fy(e,t){var s=e;e=0;do{var r=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),r&&r.nodeType===8)if(s=r.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=r}while(s)}function Rd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Rd(s),_u(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function nj(e,t,s,r){for(;e.nodeType===1;){var c=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Ur])switch(t){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(t==="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=wn(e.nextSibling),e===null)break}return null}function aj(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=wn(e.nextSibling),e===null))return null;return e}function dy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wn(e.nextSibling),e===null))return null;return e}function Ed(e){return e.data==="$?"||e.data==="$~"}function Cd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sj(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var r=function(){t(),s.removeEventListener("DOMContentLoaded",r)};s.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function wn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Td=null;function hy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return wn(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function my(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function py(e,t,s){switch(t=oc(s),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function xl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_u(e)}var jn=new Map,gy=new Set;function cc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var pa=X.d;X.d={f:ij,r:rj,D:lj,C:oj,L:cj,m:uj,X:dj,S:fj,M:hj};function ij(){var e=pa.f(),t=ec();return e||t}function rj(e){var t=xi(e);t!==null&&t.tag===5&&t.type==="form"?Dg(t):pa.r(e)}var Wi=typeof document>"u"?null:document;function vy(e,t,s){var r=Wi;if(r&&typeof t=="string"&&t){var c=pn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),gy.has(c)||(gy.add(c),e={rel:e,crossOrigin:s,href:t},r.querySelector(c)===null&&(t=r.createElement("link"),Rt(t,"link",e),pt(t),r.head.appendChild(t)))}}function lj(e){pa.D(e),vy("dns-prefetch",e,null)}function oj(e,t){pa.C(e,t),vy("preconnect",e,t)}function cj(e,t,s){pa.L(e,t,s);var r=Wi;if(r&&e&&t){var c='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+pn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+pn(s.imageSizes)+'"]')):c+='[href="'+pn(e)+'"]';var d=c;switch(t){case"style":d=$i(e);break;case"script":d=Ji(e)}jn.has(d)||(e=v({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),jn.set(d,e),r.querySelector(c)!==null||t==="style"&&r.querySelector(bl(d))||t==="script"&&r.querySelector(Sl(d))||(t=r.createElement("link"),Rt(t,"link",e),pt(t),r.head.appendChild(t)))}}function uj(e,t){pa.m(e,t);var s=Wi;if(s&&e){var r=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+pn(r)+'"][href="'+pn(e)+'"]',d=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ji(e)}if(!jn.has(d)&&(e=v({rel:"modulepreload",href:e},t),jn.set(d,e),s.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Sl(d)))return}r=s.createElement("link"),Rt(r,"link",e),pt(r),s.head.appendChild(r)}}}function fj(e,t,s){pa.S(e,t,s);var r=Wi;if(r&&e){var c=bi(r).hoistableStyles,d=$i(e);t=t||"default";var y=c.get(d);if(!y){var w={loading:0,preload:null};if(y=r.querySelector(bl(d)))w.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},s),(s=jn.get(d))&&_d(e,s);var A=y=r.createElement("link");pt(A),Rt(A,"link",e),A._p=new Promise(function(Q,K){A.onload=Q,A.onerror=K}),A.addEventListener("load",function(){w.loading|=1}),A.addEventListener("error",function(){w.loading|=2}),w.loading|=4,uc(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:w},c.set(d,y)}}}function dj(e,t){pa.X(e,t);var s=Wi;if(s&&e){var r=bi(s).hoistableScripts,c=Ji(e),d=r.get(c);d||(d=s.querySelector(Sl(c)),d||(e=v({src:e,async:!0},t),(t=jn.get(c))&&Ad(e,t),d=s.createElement("script"),pt(d),Rt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(c,d))}}function hj(e,t){pa.M(e,t);var s=Wi;if(s&&e){var r=bi(s).hoistableScripts,c=Ji(e),d=r.get(c);d||(d=s.querySelector(Sl(c)),d||(e=v({src:e,async:!0,type:"module"},t),(t=jn.get(c))&&Ad(e,t),d=s.createElement("script"),pt(d),Rt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(c,d))}}function yy(e,t,s,r){var c=(c=he.current)?cc(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=$i(s.href),s=bi(c).hoistableStyles,r=s.get(t),r||(r={type:"style",instance:null,count:0,state:null},s.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=$i(s.href);var d=bi(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(bl(e)))&&!d._p&&(y.instance=d,y.state.loading=5),jn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},jn.set(e,s),d||mj(c,e,s,y.state))),t&&r===null)throw Error(l(528,""));return y}if(t&&r!==null)throw Error(l(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ji(s),s=bi(c).hoistableScripts,r=s.get(t),r||(r={type:"script",instance:null,count:0,state:null},s.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function $i(e){return'href="'+pn(e)+'"'}function bl(e){return'link[rel="stylesheet"]['+e+"]"}function xy(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function mj(e,t,s,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Rt(t,"link",s),pt(t),e.head.appendChild(t))}function Ji(e){return'[src="'+pn(e)+'"]'}function Sl(e){return"script[async]"+e}function by(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+pn(s.href)+'"]');if(r)return t.instance=r,pt(r),r;var c=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),pt(r),Rt(r,"style",c),uc(r,s.precedence,e),t.instance=r;case"stylesheet":c=$i(s.href);var d=e.querySelector(bl(c));if(d)return t.state.loading|=4,t.instance=d,pt(d),d;r=xy(s),(c=jn.get(c))&&_d(r,c),d=(e.ownerDocument||e).createElement("link"),pt(d);var y=d;return y._p=new Promise(function(w,A){y.onload=w,y.onerror=A}),Rt(d,"link",r),t.state.loading|=4,uc(d,s.precedence,e),t.instance=d;case"script":return d=Ji(s.src),(c=e.querySelector(Sl(d)))?(t.instance=c,pt(c),c):(r=s,(c=jn.get(d))&&(r=v({},s),Ad(r,c)),e=e.ownerDocument||e,c=e.createElement("script"),pt(c),Rt(c,"link",r),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,uc(r,s.precedence,e));return t.instance}function uc(e,t,s){for(var r=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,d=c,y=0;y<r.length;y++){var w=r[y];if(w.dataset.precedence===t)d=w;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function _d(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ad(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fc=null;function Sy(e,t,s){if(fc===null){var r=new Map,c=fc=new Map;c.set(s,r)}else c=fc,r=c.get(s),r||(r=new Map,c.set(s,r));if(r.has(e))return r;for(r.set(e,null),s=s.getElementsByTagName(e),c=0;c<s.length;c++){var d=s[c];if(!(d[Ur]||d[St]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var w=r.get(y);w?w.push(d):r.set(y,[d])}}return r}function wy(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function pj(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function gj(e,t,s,r){if(s.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=$i(r.href),d=t.querySelector(bl(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=dc.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=d,pt(d);return}d=t.ownerDocument||t,r=xy(r),(c=jn.get(c))&&_d(r,c),d=d.createElement("link"),pt(d);var y=d;y._p=new Promise(function(w,A){y.onload=w,y.onerror=A}),Rt(d,"link",r),s.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=dc.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var Md=0;function vj(e,t){return e.stylesheets&&e.count===0&&mc(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var r=setTimeout(function(){if(e.stylesheets&&mc(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Md===0&&(Md=62500*Ww());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mc(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Md?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function dc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hc=null;function mc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hc=new Map,t.forEach(yj,e),hc=null,dc.call(e))}function yj(e,t){if(!(t.state.loading&4)){var s=hc.get(e);if(s)var r=s.get(null);else{s=new Map,hc.set(e,s);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),r=y)}r&&s.set(null,r)}c=t.instance,y=c.getAttribute("data-precedence"),d=s.get(y)||r,d===r&&s.set(null,c),s.set(y,c),this.count++,r=dc.bind(this),c.addEventListener("load",r),c.addEventListener("error",r),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var wl={$$typeof:U,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function xj(e,t,s,r,c,d,y,w,A){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=Ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.hiddenUpdates=Ru(null),this.identifierPrefix=r,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Ny(e,t,s,r,c,d,y,w,A,Q,K,$){return e=new xj(e,t,s,y,A,Q,K,$,w),t=1,d===!0&&(t|=24),d=tn(3,null,null,t),e.current=d,d.stateNode=e,t=uf(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:s,cache:t},mf(d),e}function Ry(e){return e?(e=Ai,e):Ai}function Ey(e,t,s,r,c,d){c=Ry(c),r.context===null?r.context=c:r.pendingContext=c,r=Ba(t),r.payload={element:s},d=d===void 0?null:d,d!==null&&(r.callback=d),s=Ha(e,r,t),s!==null&&(Yt(s,e,t),el(s,e,t))}function Cy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function Od(e,t){Cy(e,t),(e=e.alternate)&&Cy(e,t)}function Ty(e){if(e.tag===13||e.tag===31){var t=_s(e,67108864);t!==null&&Yt(t,e,67108864),Od(e,67108864)}}function _y(e){if(e.tag===13||e.tag===31){var t=ln();t=Eu(t);var s=_s(e,t);s!==null&&Yt(s,e,t),Od(e,t)}}var pc=!0;function bj(e,t,s,r){var c=B.T;B.T=null;var d=X.p;try{X.p=2,Dd(e,t,s,r)}finally{X.p=d,B.T=c}}function Sj(e,t,s,r){var c=B.T;B.T=null;var d=X.p;try{X.p=8,Dd(e,t,s,r)}finally{X.p=d,B.T=c}}function Dd(e,t,s,r){if(pc){var c=zd(r);if(c===null)xd(e,t,r,gc,s),My(e,r);else if(jj(c,e,t,s,r))r.stopPropagation();else if(My(e,r),t&4&&-1<wj.indexOf(e)){for(;c!==null;){var d=xi(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=Ns(d.pendingLanes);if(y!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var A=1<<31-Jt(y);w.entanglements[1]|=A,y&=~A}qn(d),(Ue&6)===0&&($o=_t()+500,gl(0))}}break;case 31:case 13:w=_s(d,2),w!==null&&Yt(w,d,2),ec(),Od(d,2)}if(d=zd(r),d===null&&xd(e,t,r,gc,s),d===c)break;c=d}c!==null&&r.stopPropagation()}else xd(e,t,r,null,s)}}function zd(e){return e=ku(e),kd(e)}var gc=null;function kd(e){if(gc=null,e=yi(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=h(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gc=e,null}function Ay(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(Ge()){case bt:return 2;case Un:return 8;case gi:case oS:return 32;case Pm:return 268435456;default:return 32}default:return 32}}var Ld=!1,Fa=null,Wa=null,$a=null,jl=new Map,Nl=new Map,Ja=[],wj="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 My(e,t){switch(e){case"focusin":case"focusout":Fa=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nl.delete(t.pointerId)}}function Rl(e,t,s,r,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:s,eventSystemFlags:r,nativeEvent:d,targetContainers:[c]},t!==null&&(t=xi(t),t!==null&&Ty(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function jj(e,t,s,r,c){switch(t){case"focusin":return Fa=Rl(Fa,e,t,s,r,c),!0;case"dragenter":return Wa=Rl(Wa,e,t,s,r,c),!0;case"mouseover":return $a=Rl($a,e,t,s,r,c),!0;case"pointerover":var d=c.pointerId;return jl.set(d,Rl(jl.get(d)||null,e,t,s,r,c)),!0;case"gotpointercapture":return d=c.pointerId,Nl.set(d,Rl(Nl.get(d)||null,e,t,s,r,c)),!0}return!1}function Oy(e){var t=yi(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=h(s),t!==null){e.blockedOn=t,Xm(e.priority,function(){_y(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,Xm(e.priority,function(){_y(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=zd(e.nativeEvent);if(s===null){s=e.nativeEvent;var r=new s.constructor(s.type,s);zu=r,s.target.dispatchEvent(r),zu=null}else return t=xi(s),t!==null&&Ty(t),e.blockedOn=s,!1;t.shift()}return!0}function Dy(e,t,s){vc(e)&&s.delete(t)}function Nj(){Ld=!1,Fa!==null&&vc(Fa)&&(Fa=null),Wa!==null&&vc(Wa)&&(Wa=null),$a!==null&&vc($a)&&($a=null),jl.forEach(Dy),Nl.forEach(Dy)}function yc(e,t){e.blockedOn===t&&(e.blockedOn=null,Ld||(Ld=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Nj)))}var xc=null;function zy(e){xc!==e&&(xc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){xc===e&&(xc=null);for(var t=0;t<e.length;t+=3){var s=e[t],r=e[t+1],c=e[t+2];if(typeof r!="function"){if(kd(r||s)===null)continue;break}var d=xi(s);d!==null&&(e.splice(t,3),t-=3,zf(d,{pending:!0,data:c,method:s.method,action:r},r,c))}}))}function er(e){function t(A){return yc(A,e)}Fa!==null&&yc(Fa,e),Wa!==null&&yc(Wa,e),$a!==null&&yc($a,e),jl.forEach(t),Nl.forEach(t);for(var s=0;s<Ja.length;s++){var r=Ja[s];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ja.length&&(s=Ja[0],s.blockedOn===null);)Oy(s),s.blockedOn===null&&Ja.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(r=0;r<s.length;r+=3){var c=s[r],d=s[r+1],y=c[Ht]||null;if(typeof d=="function")y||zy(s);else if(y){var w=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[Ht]||null)w=y.formAction;else if(kd(c)!==null)continue}else w=y.action;typeof w=="function"?s[r+1]=w:(s.splice(r,3),r-=3),zy(s)}}}function ky(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),r||setTimeout(s,20)}function s(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Ud(e){this._internalRoot=e}bc.prototype.render=Ud.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var s=t.current,r=ln();Ey(s,r,e,t,null,null)},bc.prototype.unmount=Ud.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ey(e.current,2,null,e,null,null),ec(),t[vi]=null}};function bc(e){this._internalRoot=e}bc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ym();e={blockedOn:null,target:e,priority:t};for(var s=0;s<Ja.length&&t!==0&&t<Ja[s].priority;s++);Ja.splice(s,0,e),s===0&&Oy(e)}};var Ly=a.version;if(Ly!=="19.2.7")throw Error(l(527,Ly,"19.2.7"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Rj={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sc.isDisabled&&Sc.supportsFiber)try{zr=Sc.inject(Rj),$t=Sc}catch{}}return Cl.createRoot=function(e,t){if(!o(e))throw Error(l(299));var s=!1,r="",c=Qg,d=Vg,y=Yg;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Ny(e,1,!1,null,null,s,r,null,c,d,y,ky),e[vi]=t.current,yd(e),new Ud(t)},Cl.hydrateRoot=function(e,t,s){if(!o(e))throw Error(l(299));var r=!1,c="",d=Qg,y=Vg,w=Yg,A=null;return s!=null&&(s.unstable_strictMode===!0&&(r=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(w=s.onRecoverableError),s.formState!==void 0&&(A=s.formState)),t=Ny(e,1,!0,t,s??null,r,c,A,d,y,w,ky),t.context=Ry(null),s=t.current,r=ln(),r=Eu(r),c=Ba(r),c.callback=null,Ha(s,c,r),s=r,t.current.lanes=s,Lr(t,s),qn(t),e[vi]=t.current,yd(e),new bc(t)},Cl.version="19.2.7",Cl}var Iy;function kj(){if(Iy)return qd.exports;Iy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),qd.exports=zj(),qd.exports}var Lj=kj();const Uj=em(Lj);var Dl=typeof window<"u"?N.useLayoutEffect:N.useEffect;function Yd(n){const a=N.useRef({value:n,prev:null}),i=a.current.value;return n!==i&&(a.current={value:n,prev:i}),a.current.prev}function Bj(n,a,i={},l={}){N.useEffect(()=>{if(!n.current||l.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([f])=>{a(f)},i);return o.observe(n.current),()=>{o.disconnect()}},[a,i,l.disabled,n])}function Hj(n){const a=N.useRef(null);return N.useImperativeHandle(n,()=>a.current,[]),a}const Ub=!1;function kl(n){return n[n.length-1]}function Pj(n){return typeof n=="function"}function Ys(n,a){return Pj(n)?n(a):n}const Bb=Object.prototype.hasOwnProperty,Ky=Object.prototype.propertyIsEnumerable;function Hb(n){for(const a in n)if(Bb.call(n,a))return!0;return!1}const qj=()=>Object.create(null),Gs=(n,a)=>Xs(n,a,qj);function Xs(n,a,i=()=>({}),l=0){if(n===a)return n;if(l>500)return a;const o=a,f=Wy(n)&&Wy(o);if(!f&&!(Xc(n)&&Xc(o)))return o;const h=f?n:Zy(n);if(!h)return o;const m=f?o:Zy(o);if(!m)return o;const g=h.length,p=m.length,x=f?new Array(p):i();let v=0;for(let b=0;b<p;b++){const S=f?b:m[b],R=n[S],j=o[S];if(R===j){x[S]=R,(f?b<g:Bb.call(n,S))&&v++;continue}if(R===null||j===null||typeof R!="object"||typeof j!="object"){x[S]=j;continue}const E=Xs(R,j,i,l+1);x[S]=E,E===R&&v++}return g===p&&v===g?n:x}function Zy(n){const a=Object.getOwnPropertyNames(n);for(const o of a)if(!Ky.call(n,o))return!1;const i=Object.getOwnPropertySymbols(n);if(i.length===0)return a;const l=a;for(const o of i){if(!Ky.call(n,o))return!1;l.push(o)}return l}function Xc(n){if(!Fy(n))return!1;const a=n.constructor;if(typeof a>"u")return!0;const i=a.prototype;return!(!Fy(i)||!i.hasOwnProperty("isPrototypeOf"))}function Fy(n){return Object.prototype.toString.call(n)==="[object Object]"}function Wy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ii(n,a,i){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(let l=0,o=n.length;l<o;l++)if(!ii(n[l],a[l],i))return!1;return!0}if(Xc(n)&&Xc(a)){const l=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const h in a)if((!l||a[h]!==void 0)&&!ii(n[h],a[h],i))return!1;return!0}let o=0;if(!l)o=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&o++;let f=0;for(const h in a)if((!l||a[h]!==void 0)&&(f++,f>o||!ii(n[h],a[h],i)))return!1;return o===f}return!1}function Nr(n){let a,i;const l=new Promise((o,f)=>{a=o,i=f});return l.status="pending",l.resolve=o=>{l.status="resolved",l.value=o,a(o),n==null||n(o)},l.reject=o=>{l.status="rejected",i(o)},l}function Ll(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function Gj(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function $y(n){let a;try{a=decodeURI(n)}catch{a=n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return Gj(a)}const Qj=["http:","https:","mailto:","tel:"];function Ic(n,a){if(!n)return!1;try{const i=new URL(n);return!a.has(i.protocol)}catch{return!1}}function Tl(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let i=0,l="",o;for(;(o=a.exec(n))!==null;)l+=$y(n.slice(i,o.index))+o[0],i=a.lastIndex;l=l+$y(i?n.slice(i):n);let f=!1;return l.startsWith("//")&&(f=!0,l="/"+l.replace(/^\/+/,"")),{path:l,handledProtocolRelativeURL:f}}function Vj(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function Yj(n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==a[i])return!1;return!0}function wa(){throw new Error("Invariant failed")}function Ul(n){const a=new Map;let i,l;const o=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,l&&(l.next=f,f.prev=l)):(f.next.prev=void 0,i=f.next,f.next=void 0,l&&(f.prev=l,l.next=f)),l=f)};return{get(f){const h=a.get(f);if(h)return o(h),h.value},set(f,h){if(a.size>=n&&i){const g=i;a.delete(g.key),g.next&&(i=g.next,g.next.prev=void 0),g===l&&(l=void 0)}const m=a.get(f);if(m)m.value=h,o(m);else{const g={key:f,value:h,prev:l};l&&(l.next=g),l=g,i||(i=g),a.set(f,g)}},clear(){a.clear(),i=void 0,l=void 0}}}const ms=4,Pb=5;function Xj(n){const a=n.indexOf("{");if(a===-1)return null;const i=n.indexOf("}",a);return i===-1||a+1>=n.length?null:[a,i]}function qb(n,a,i=new Uint16Array(6)){const l=n.indexOf("/",a),o=l===-1?n.length:l,f=n.substring(a,o);if(!f||!f.includes("$"))return i[0]=0,i[1]=a,i[2]=a,i[3]=o,i[4]=o,i[5]=o,i;if(f==="$"){const m=n.length;return i[0]=2,i[1]=a,i[2]=a,i[3]=m,i[4]=m,i[5]=m,i}if(f.charCodeAt(0)===36)return i[0]=1,i[1]=a,i[2]=a+1,i[3]=o,i[4]=o,i[5]=o,i;const h=Xj(f);if(h){const[m,g]=h,p=f.charCodeAt(m+1);if(p===45){if(m+2<f.length&&f.charCodeAt(m+2)===36){const x=m+3,v=g;if(x<v)return i[0]=3,i[1]=a+m,i[2]=a+x,i[3]=a+v,i[4]=a+g+1,i[5]=o,i}}else if(p===36){const x=m+1,v=m+2;return v===g?(i[0]=2,i[1]=a+m,i[2]=a+x,i[3]=a+v,i[4]=a+g+1,i[5]=n.length,i):(i[0]=1,i[1]=a+m,i[2]=a+v,i[3]=a+g,i[4]=a+g+1,i[5]=o,i)}}return i[0]=0,i[1]=a,i[2]=a,i[3]=o,i[4]=o,i[5]=o,i}function lu(n,a,i,l,o,f,h){var g,p,x,v,b,S,R,j,E,C;h==null||h(i);let m=l;{const _=i.fullPath??i.from,U=_.length,T=((g=i.options)==null?void 0:g.caseSensitive)??n,P=((x=(p=i.options)==null?void 0:p.params)==null?void 0:x.parse)??((v=i.options)==null?void 0:v.parseParams);for(;m<U;){const M=qb(_,m,a);let D;const L=m,q=M[5];switch(m=q+1,f++,M[0]){case 0:{const W=_.substring(M[2],M[3]);if(T){const ee=(b=o.static)==null?void 0:b.get(W);if(ee)D=ee;else{o.static??(o.static=new Map);const ne=Is(i.fullPath??i.from);ne.parent=o,ne.depth=f,D=ne,o.static.set(W,ne)}}else{const ee=W.toLowerCase(),ne=(S=o.staticInsensitive)==null?void 0:S.get(ee);if(ne)D=ne;else{o.staticInsensitive??(o.staticInsensitive=new Map);const ae=Is(i.fullPath??i.from);ae.parent=o,ae.depth=f,D=ae,o.staticInsensitive.set(ee,ae)}}break}case 1:{const W=_.substring(L,M[1]),ee=_.substring(M[4],q),ne=T&&!!(W||ee),ae=W?ne?W:W.toLowerCase():void 0,de=ee?ne?ee:ee.toLowerCase():void 0,B=!P&&((R=o.dynamic)==null?void 0:R.find(X=>!X.parse&&X.caseSensitive===ne&&X.prefix===ae&&X.suffix===de));if(B)D=B;else{const X=Id(1,i.fullPath??i.from,ne,ae,de);D=X,X.depth=f,X.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(X)}break}case 3:{const W=_.substring(L,M[1]),ee=_.substring(M[4],q),ne=T&&!!(W||ee),ae=W?ne?W:W.toLowerCase():void 0,de=ee?ne?ee:ee.toLowerCase():void 0,B=!P&&((j=o.optional)==null?void 0:j.find(X=>!X.parse&&X.caseSensitive===ne&&X.prefix===ae&&X.suffix===de));if(B)D=B;else{const X=Id(3,i.fullPath??i.from,ne,ae,de);D=X,X.parent=o,X.depth=f,o.optional??(o.optional=[]),o.optional.push(X)}break}case 2:{const W=_.substring(L,M[1]),ee=_.substring(M[4],q),ne=T&&!!(W||ee),ae=W?ne?W:W.toLowerCase():void 0,de=ee?ne?ee:ee.toLowerCase():void 0,B=Id(2,i.fullPath??i.from,ne,ae,de);D=B,B.parent=o,B.depth=f,o.wildcard??(o.wildcard=[]),o.wildcard.push(B)}}o=D}if(P&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const M=Is(i.fullPath??i.from);M.kind=Pb,M.parent=o,f++,M.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(M),o=M}const Y=(i.path||!i.children)&&!i.isRoot;if(Y&&_.endsWith("/")){const M=Is(i.fullPath??i.from);M.kind=ms,M.parent=o,f++,M.depth=f,o.index=M,o=M}o.parse=P??null,o.priority=((C=(E=i.options)==null?void 0:E.params)==null?void 0:C.priority)??0,Y&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const _ of i.children)lu(n,a,_,m,o,f,h)}function Xd(n,a){if(n.parse&&!a.parse)return-1;if(!n.parse&&a.parse)return 1;if(n.parse&&a.parse&&(n.priority||a.priority))return a.priority-n.priority;if(n.prefix&&a.prefix&&n.prefix!==a.prefix){if(n.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(n.prefix))return 1}if(n.suffix&&a.suffix&&n.suffix!==a.suffix){if(n.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(n.suffix))return 1}return n.prefix&&!a.prefix?-1:!n.prefix&&a.prefix?1:n.suffix&&!a.suffix?-1:!n.suffix&&a.suffix?1:n.caseSensitive&&!a.caseSensitive?-1:!n.caseSensitive&&a.caseSensitive?1:0}function is(n){var a,i,l;if(n.pathless)for(const o of n.pathless)is(o);if(n.static)for(const o of n.static.values())is(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())is(o);if((a=n.dynamic)!=null&&a.length){n.dynamic.sort(Xd);for(const o of n.dynamic)is(o)}if((i=n.optional)!=null&&i.length){n.optional.sort(Xd);for(const o of n.optional)is(o)}if((l=n.wildcard)!=null&&l.length){n.wildcard.sort(Xd);for(const o of n.wildcard)is(o)}}function Is(n){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,priority:0}}function Id(n,a,i,l,o){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0,caseSensitive:i,prefix:l,suffix:o}}function Ij(n,a){const i=Is("/"),l=new Uint16Array(6);for(const o of n)lu(!1,l,o,1,i,0);is(i),a.masksTree=i,a.flatCache=Ul(1e3)}function Kj(n,a){n||(n="/");const i=a.flatCache.get(n);if(i)return i;const l=nm(n,a.masksTree);return a.flatCache.set(n,l),l}function Zj(n,a,i,l,o){n||(n="/"),l||(l="/");const f=a?`case\0${n}`:n;let h=o.singleCache.get(f);return h||(h=Is("/"),lu(a,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(f,h)),nm(l,h,i)}function Fj(n,a,i=!1){const l=i?n:`nofuzz\0${n}`,o=a.matchCache.get(l);if(o!==void 0)return o;n||(n="/");let f;try{f=nm(n,a.segmentTree,i)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=Qb(f.route)),a.matchCache.set(l,f),f}function Wj(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function $j(n,a=!1,i){const l=Is(n.fullPath),o=new Uint16Array(6),f={},h={};let m=0;return lu(a,o,n,1,l,0,g=>{if(i==null||i(g,m),g.id in f&&wa(),f[g.id]=g,m!==0&&g.path){const p=Wj(g.fullPath);(!h[p]||g.fullPath.endsWith("/"))&&(h[p]=g)}m++}),is(l),{processedTree:{segmentTree:l,singleCache:Ul(1e3),matchCache:Ul(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function nm(n,a,i=!1){const l=n.split("/"),o=e2(n,l,a,i);if(!o)return null;const[f]=Gb(n,l,o);return{route:o.node.route,rawParams:f}}function Gb(n,a,i){var x,v,b,S,R,j,E,C,_,U;const l=Jj(i.node);let o=null;const f=Object.create(null);let h=((x=i.extract)==null?void 0:x.part)??0,m=((v=i.extract)==null?void 0:v.node)??0,g=((b=i.extract)==null?void 0:b.path)??0,p=((S=i.extract)==null?void 0:S.segment)??0;for(;m<l.length;h++,m++,g++,p++){const T=l[m];if(T.kind===ms)break;if(T.kind===Pb){p--,h--,g--;continue}const P=a[h],Y=g;if(P&&(g+=P.length),T.kind===1){o??(o=i.node.fullPath.split("/"));const M=o[p],D=((R=T.prefix)==null?void 0:R.length)??0;if(M.charCodeAt(D)===123){const L=((j=T.suffix)==null?void 0:j.length)??0,q=M.substring(D+2,M.length-L-1),W=P.substring(D,P.length-L);f[q]=decodeURIComponent(W)}else{const L=M.substring(1);f[L]=decodeURIComponent(P)}}else if(T.kind===3){if(i.skipped&1<<m){h--,g=Y-1;continue}o??(o=i.node.fullPath.split("/"));const M=o[p],D=((E=T.prefix)==null?void 0:E.length)??0,L=((C=T.suffix)==null?void 0:C.length)??0,q=M.substring(D+3,M.length-L-1),W=T.suffix||T.prefix?P.substring(D,P.length-L):P;W&&(f[q]=decodeURIComponent(W))}else if(T.kind===2){const M=T,D=n.substring(Y+(((_=M.prefix)==null?void 0:_.length)??0),n.length-(((U=M.suffix)==null?void 0:U.length)??0)),L=decodeURIComponent(D);f["*"]=L,f._splat=L;break}}return i.rawParams&&Object.assign(f,i.rawParams),[f,{part:h,node:m,path:g,segment:p}]}function Qb(n){const a=[n];for(;n.parentRoute;)n=n.parentRoute,a.push(n);return a.reverse(),a}function Jj(n){const a=Array(n.depth+1);do a[n.depth]=n,n=n.parent;while(n);return a}function e2(n,a,i,l){if(n==="/"&&i.index)return{node:i.index,skipped:0};const o=!kl(a),f=o&&n!=="/",h=a.length-(o?1:0),m=[{node:i,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let g=null,p=null;for(;m.length;){const x=m.pop(),{node:v,index:b,skipped:S,depth:R,statics:j,dynamics:E,optionals:C}=x;let{extract:_,rawParams:U}=x;if(v.kind===2&&v.route&&!Nc(p,x))continue;if(v.parse){if(!Jy(n,a,x))continue;U=x.rawParams,_=x.extract}l&&v.route&&v.kind!==ms&&Nc(g,x)&&(g=x);const T=b===h;if(T&&(v.route&&(!f||v.kind===ms||v.kind===2)&&Nc(p,x)&&(p=x),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const P=T?void 0:a[b];let Y;if(T&&v.index){const M={node:v.index,index:b,skipped:S,depth:R+1,statics:j,dynamics:E,optionals:C,extract:_,rawParams:U};let D=!0;if(v.index.parse&&(Jy(n,a,M)||(D=!1)),D){if(!E&&!C&&!S&&t2(j,h))return M;Nc(p,M)&&(p=M)}}if(v.wildcard)for(let M=v.wildcard.length-1;M>=0;M--){const D=v.wildcard[M],{prefix:L,suffix:q}=D;if(!(L&&(T||!(D.caseSensitive?P:Y??(Y=P.toLowerCase())).startsWith(L)))){if(q){if(T)continue;const W=a.slice(b).join("/").slice(-q.length);if((D.caseSensitive?W:W.toLowerCase())!==q)continue}m.push({node:D,index:h,skipped:S,depth:R+1,statics:j,dynamics:E,optionals:C,extract:_,rawParams:U})}}if(v.optional){const M=S|1<<R,D=R+1;for(let L=v.optional.length-1;L>=0;L--){const q=v.optional[L];m.push({node:q,index:b,skipped:M,depth:D,statics:j,dynamics:E,optionals:C,extract:_,rawParams:U})}if(!T)for(let L=v.optional.length-1;L>=0;L--){const q=v.optional[L],{prefix:W,suffix:ee}=q;if(W||ee){const ne=q.caseSensitive?P:Y??(Y=P.toLowerCase());if(W&&!ne.startsWith(W)||ee&&!ne.endsWith(ee))continue}m.push({node:q,index:b+1,skipped:S,depth:D,statics:j,dynamics:E,optionals:C+jc(h,b),extract:_,rawParams:U})}}if(!T&&v.dynamic&&P)for(let M=v.dynamic.length-1;M>=0;M--){const D=v.dynamic[M],{prefix:L,suffix:q}=D;if(L||q){const W=D.caseSensitive?P:Y??(Y=P.toLowerCase());if(L&&!W.startsWith(L)||q&&!W.endsWith(q))continue}m.push({node:D,index:b+1,skipped:S,depth:R+1,statics:j,dynamics:E+jc(h,b),optionals:C,extract:_,rawParams:U})}if(!T&&v.staticInsensitive){const M=v.staticInsensitive.get(Y??(Y=P.toLowerCase()));M&&m.push({node:M,index:b+1,skipped:S,depth:R+1,statics:j+jc(h,b),dynamics:E,optionals:C,extract:_,rawParams:U})}if(!T&&v.static){const M=v.static.get(P);M&&m.push({node:M,index:b+1,skipped:S,depth:R+1,statics:j+jc(h,b),dynamics:E,optionals:C,extract:_,rawParams:U})}if(v.pathless){const M=R+1;for(let D=v.pathless.length-1;D>=0;D--){const L=v.pathless[D];m.push({node:L,index:b,skipped:S,depth:M,statics:j,dynamics:E,optionals:C,extract:_,rawParams:U})}}}if(p)return p;if(l&&g){let x=g.index;for(let b=0;b<g.index;b++)x+=a[b].length;const v=x===n.length?"/":n.slice(x);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(v),g}return null}function jc(n,a){return 2**(n-a-1)}function t2(n,a){return n===2**(a-1)-1}function Jy(n,a,i){let l,o;try{[l,o]=Gb(n,a,i)}catch{return null}if(i.rawParams=l,i.extract=o,!i.node.parse)return!0;try{if(i.node.parse(l)===!1)return null}catch{}return!0}function Nc(n,a){return n?a.statics>n.statics||a.statics===n.statics&&(a.dynamics>n.dynamics||a.dynamics===n.dynamics&&(a.optionals>n.optionals||a.optionals===n.optionals&&((a.node.kind===ms)>(n.node.kind===ms)||a.node.kind===ms==(n.node.kind===ms)&&a.depth>n.depth))):!0}function Bc(n){return am(n.filter(a=>a!==void 0).join("/"))}function am(n){return n.replace(/\/{2,}/g,"/")}function Vb(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function Sa(n){const a=n.length;return a>1&&n[a-1]==="/"?n.replace(/\/{1,}$/,""):n}function Yb(n){return Sa(Vb(n))}function Kc(n,a){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${a}/`?n.slice(0,-1):n}function n2(n,a,i){return Kc(n,i)===Kc(a,i)}function a2({base:n,to:a,trailingSlash:i="never",cache:l}){const o=a.startsWith("/"),f=!o&&a===".";let h;if(l){h=o?a:f?n:n+"\0"+a;const p=l.get(h);if(p)return p}let m;if(f)m=n.split("/");else if(o)m=a.split("/");else{for(m=n.split("/");m.length>1&&kl(m)==="";)m.pop();const p=a.split("/");for(let x=0,v=p.length;x<v;x++){const b=p[x];b===""?x?x===v-1&&m.push(b):m=[b]:b===".."?m.pop():b==="."||m.push(b)}}m.length>1&&(kl(m)===""?i==="never"&&m.pop():i==="always"&&m.push(""));const g=am(m.join("/"))||"/";return h&&l&&l.set(h,g),g}function s2(n){const a=new Map(n.map(o=>[encodeURIComponent(o),o])),i=Array.from(a.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(i,"g");return o=>o.replace(l,f=>a.get(f)??f)}function Kd(n,a,i){const l=a[n];return typeof l!="string"?l:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(l)?l:l.split("/").map(o=>tx(o,i)).join("/"):tx(l,i)}function ex({path:n,params:a,decoder:i,...l}){let o=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:o};const h=n.length;let m=0,g,p="";for(;m<h;){const x=m;g=qb(n,x,g);const v=g[5];if(m=v+1,x===v)continue;const b=g[0];if(b===0){p+="/"+n.substring(x,v);continue}if(b===2){const S=a._splat;f._splat=S,f["*"]=S;const R=n.substring(x,g[1]),j=n.substring(g[4],v);if(!S){o=!0,(R||j)&&(p+="/"+R+j);continue}const E=Kd("_splat",a,i);p+="/"+R+E+j;continue}if(b===1){const S=n.substring(g[2],g[3]);!o&&!(S in a)&&(o=!0),f[S]=a[S];const R=n.substring(x,g[1]),j=n.substring(g[4],v),E=Kd(S,a,i)??"undefined";p+="/"+R+E+j;continue}if(b===3){const S=n.substring(g[2],g[3]),R=a[S];if(R==null)continue;f[S]=R;const j=n.substring(x,g[1]),E=n.substring(g[4],v),C=Kd(S,a,i)??"";p+="/"+j+C+E;continue}}return n.endsWith("/")&&(p+="/"),{usedParams:f,interpolatedPath:p||"/",isMissingParams:o}}function tx(n,a){const i=encodeURIComponent(n);return(a==null?void 0:a(i))??i}function Dt(n){return(n==null?void 0:n.isNotFound)===!0}function i2(n,a=String){const i=new URLSearchParams;for(const l in n){const o=n[l];o!==void 0&&i.set(l,a(o))}return i.toString()}function Zd(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function r2(n){const a=new URLSearchParams(n),i=Object.create(null);for(const[l,o]of a.entries()){const f=i[l];f==null?i[l]=Zd(o):Array.isArray(f)?f.push(Zd(o)):i[l]=[f,Zd(o)]}return i}const l2=c2(JSON.parse),o2=u2(JSON.stringify,JSON.parse);function c2(n){return a=>{a[0]==="?"&&(a=a.substring(1));const i=r2(a);for(const l in i){const o=i[l];if(typeof o=="string")try{i[l]=n(o)}catch{}}return i}}function u2(n,a){const i=typeof a=="function";function l(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(i&&typeof o=="string")try{return a(o),n(o)}catch{}return o}return o=>{const f=i2(o,l);return f?`?${f}`:""}}const ri="__root__";function f2(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const a=new Headers(n.headers);n.href&&a.get("Location")===null&&a.set("Location",n.href);const i=new Response(null,{status:n.statusCode,headers:a});if(i.options=n,n.throw)throw i;return i}function Zt(n){return n instanceof Response&&!!n.options}const bh=n=>{var a;if(!n.rendered)return n.rendered=!0,(a=n.onReady)==null?void 0:a.call(n)},d2=n=>n.stores.matchesId.get().some(a=>{var i;return(i=n.stores.matchStores.get(a))==null?void 0:i.get()._forcePending}),ou=(n,a)=>!!(n.preload&&!n.router.stores.matchStores.has(a)),li=(n,a,i=!0)=>{const l={...n.router.options.context??{}},o=i?a:a-1;for(let f=0;f<=o;f++){const h=n.matches[f];if(!h)continue;const m=n.router.getMatch(h.id);m&&Object.assign(l,m.__routeContext,m.__beforeLoadContext)}return l},nx=(n,a)=>{if(!n.matches.length)return;const i=a.routeId,l=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=l>=0?l:0;let f=i?n.matches.findIndex(h=>h.routeId===i):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=o);for(let h=f;h>=0;h--){const m=n.matches[h];if(n.router.looseRoutesById[m.routeId].options.notFoundComponent)return h}return i?f:o},ps=(n,a,i)=>{var l,o,f;if(!(!Zt(i)&&!Dt(i)))throw Zt(i)&&i.redirectHandled&&!i.options.reloadDocument||(a&&((l=a._nonReactive.beforeLoadPromise)==null||l.resolve(),(o=a._nonReactive.loaderPromise)==null||o.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=i,n.updateMatch(a.id,h=>({...h,status:Zt(i)?"redirected":Dt(i)?"notFound":h.status==="pending"?"success":h.status,context:li(n,a.index),isFetching:!1,error:i})),Dt(i)&&!i.routeId&&(i.routeId=a.routeId),(f=a._nonReactive.loadPromise)==null||f.resolve()),Zt(i)&&(n.rendered=!0,i.options._fromLocation=n.location,i.redirectHandled=!0,i=n.router.resolveRedirect(i))),i},Xb=(n,a)=>{const i=n.router.getMatch(a);return!!(!i||i._nonReactive.dehydrated)},ax=(n,a,i)=>{const l=li(n,i);n.updateMatch(a,o=>({...o,context:l}))},_l=(n,a,i)=>{var h,m;const{id:l,routeId:o}=n.matches[a],f=n.router.looseRoutesById[o];if(i instanceof Promise)throw i;n.firstBadMatchIndex??(n.firstBadMatchIndex=a),ps(n,n.router.getMatch(l),i);try{(m=(h=f.options).onError)==null||m.call(h,i)}catch(g){i=g,ps(n,n.router.getMatch(l),i)}n.updateMatch(l,g=>{var p,x;return(p=g._nonReactive.beforeLoadPromise)==null||p.resolve(),g._nonReactive.beforeLoadPromise=void 0,(x=g._nonReactive.loadPromise)==null||x.resolve(),{...g,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Zt(i)&&!Dt(i)&&(n.serialError??(n.serialError=i))},Ib=(n,a,i,l)=>{var f;if(l._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!ou(n,a)&&(i.options.loader||i.options.beforeLoad||Zb(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((f=n.router.options)==null?void 0:f.defaultPendingComponent))){const h=setTimeout(()=>{bh(n)},o);l._nonReactive.pendingTimeout=h}},h2=(n,a,i)=>{const l=n.router.getMatch(a);if(!l._nonReactive.beforeLoadPromise&&!l._nonReactive.loaderPromise)return;Ib(n,a,i,l);const o=()=>{const f=n.router.getMatch(a);f.preload&&(f.status==="redirected"||f.status==="notFound")&&ps(n,f,f.error)};return l._nonReactive.beforeLoadPromise?l._nonReactive.beforeLoadPromise.then(o):o()},m2=(n,a,i,l)=>{const o=n.router.getMatch(a);let f=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Nr(()=>{f==null||f.resolve(),f=void 0});const{paramsError:h,searchError:m}=o;h&&_l(n,i,h),m&&_l(n,i,m),Ib(n,a,l,o);const g=new AbortController;let p=!1;const x=()=>{p||(p=!0,n.updateMatch(a,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:g})))},v=()=>{var T;(T=o._nonReactive.beforeLoadPromise)==null||T.resolve(),o._nonReactive.beforeLoadPromise=void 0,n.updateMatch(a,P=>({...P,isFetching:!1}))};if(!l.options.beforeLoad){n.router.batch(()=>{x(),v()});return}o._nonReactive.beforeLoadPromise=Nr();const b={...li(n,i,!1),...o.__routeContext},{search:S,params:R,cause:j}=o,E=ou(n,a),C={search:S,abortController:g,params:R,preload:E,context:b,location:n.location,navigate:T=>n.router.navigate({...T,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:E?"preload":j,matches:n.matches,routeId:l.id,...n.router.options.additionalContext},_=T=>{if(T===void 0){n.router.batch(()=>{x(),v()});return}(Zt(T)||Dt(T))&&(x(),_l(n,i,T)),n.router.batch(()=>{x(),n.updateMatch(a,P=>({...P,__beforeLoadContext:T})),v()})};let U;try{if(U=l.options.beforeLoad(C),Ll(U))return x(),U.catch(T=>{_l(n,i,T)}).then(_)}catch(T){x(),_l(n,i,T)}_(U)},p2=(n,a)=>{const{id:i,routeId:l}=n.matches[a],o=n.router.looseRoutesById[l],f=()=>m(),h=()=>m2(n,i,a,o),m=()=>{if(Xb(n,i))return;const g=h2(n,i,o);return Ll(g)?g.then(h):h()};return f()},g2=(n,a,i)=>{var f,h,m,g,p,x;const l=n.router.getMatch(a);if(!l||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:n.router.options.ssr,matches:n.matches,match:l,params:l.params,loaderData:l.loaderData};return Promise.all([(h=(f=i.options).head)==null?void 0:h.call(f,o),(g=(m=i.options).scripts)==null?void 0:g.call(m,o),(x=(p=i.options).headers)==null?void 0:x.call(p,o)]).then(([v,b,S])=>({meta:v==null?void 0:v.meta,links:v==null?void 0:v.links,headScripts:v==null?void 0:v.scripts,headers:S,scripts:b,styles:v==null?void 0:v.styles}))},Kb=(n,a,i,l,o)=>{const f=a[l-1],{params:h,loaderDeps:m,abortController:g,cause:p}=n.router.getMatch(i),x=li(n,l),v=ou(n,i);return{params:h,deps:m,preload:!!v,parentMatchPromise:f,abortController:g,context:x,location:n.location,navigate:b=>n.router.navigate({...b,_fromLocation:n.location}),cause:v?"preload":p,route:o,...n.router.options.additionalContext}},sx=async(n,a,i,l,o)=>{var f,h,m,g,p;try{const x=n.router.getMatch(i);try{(!(Ub??n.router.isServer)||x.ssr===!0)&&Bl(o);const v=o.options.loader,b=typeof v=="function"?v:v==null?void 0:v.handler,S=b==null?void 0:b(Kb(n,a,i,l,o)),R=!!b&&Ll(S);if((R||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||x._nonReactive.minPendingPromise)&&n.updateMatch(i,E=>({...E,isFetching:"loader"})),b){const E=R?await S:S;ps(n,n.router.getMatch(i),E),E!==void 0&&n.updateMatch(i,C=>({...C,loaderData:E}))}o._lazyPromise&&await o._lazyPromise;const j=x._nonReactive.minPendingPromise;j&&await j,o._componentsPromise&&await o._componentsPromise,n.updateMatch(i,E=>({...E,error:void 0,context:li(n,l),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(v){let b=v;if((b==null?void 0:b.name)==="AbortError"){if(x.abortController.signal.aborted){(f=x._nonReactive.loaderPromise)==null||f.resolve(),x._nonReactive.loaderPromise=void 0;return}n.updateMatch(i,R=>({...R,status:R.status==="pending"?"success":R.status,isFetching:!1,context:li(n,l)}));return}const S=x._nonReactive.minPendingPromise;S&&await S,Dt(v)&&await((m=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:m.call(h)),ps(n,n.router.getMatch(i),v);try{(p=(g=o.options).onError)==null||p.call(g,v)}catch(R){b=R,ps(n,n.router.getMatch(i),R)}!Zt(b)&&!Dt(b)&&await Bl(o,["errorComponent"]),n.updateMatch(i,R=>({...R,error:b,context:li(n,l),status:"error",isFetching:!1}))}}catch(x){const v=n.router.getMatch(i);v&&(v._nonReactive.loaderPromise=void 0),ps(n,v,x)}},v2=async(n,a,i)=>{var S,R,j,E;async function l(C,_,U,T,P){const Y=Date.now()-_.updatedAt,M=C?P.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:P.options.staleTime??n.router.options.defaultStaleTime??0,D=P.options.shouldReload,L=typeof D=="function"?D(Kb(n,a,o,i,P)):D,{status:q,invalid:W}=T,ee=Y>=M&&(!!n.forceStaleReload||T.cause==="enter"||U!==void 0&&U!==T.id);h=q==="success"&&(W||(L??ee)),C&&P.options.preload===!1||(h&&!n.sync&&x?(m=!0,(async()=>{var ne,ae;try{await sx(n,a,o,i,P);const de=n.router.getMatch(o);(ne=de._nonReactive.loaderPromise)==null||ne.resolve(),(ae=de._nonReactive.loadPromise)==null||ae.resolve(),de._nonReactive.loaderPromise=void 0,de._nonReactive.loadPromise=void 0}catch(de){Zt(de)&&await n.router.navigate(de.options)}})()):q!=="success"||h?await sx(n,a,o,i,P):ax(n,o,i))}const{id:o,routeId:f}=n.matches[i];let h=!1,m=!1;const g=n.router.looseRoutesById[f],p=g.options.loader,x=((typeof p=="function"||p==null?void 0:p.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(Xb(n,o)){if(!n.router.getMatch(o))return n.matches[i];ax(n,o,i)}else{const C=n.router.getMatch(o),_=n.router.stores.matchesId.get()[i],U=((S=_&&n.router.stores.matchStores.get(_)||null)==null?void 0:S.routeId)===f?_:(R=n.router.stores.matches.get().find(P=>P.routeId===f))==null?void 0:R.id,T=ou(n,o);if(C._nonReactive.loaderPromise){if(C.status==="success"&&!n.sync&&!C.preload&&x)return C;await C._nonReactive.loaderPromise;const P=n.router.getMatch(o),Y=P._nonReactive.error||P.error;Y&&ps(n,P,Y),P.status==="pending"&&await l(T,C,U,P,g)}else{const P=T&&!n.router.stores.matchStores.has(o),Y=n.router.getMatch(o);Y._nonReactive.loaderPromise=Nr(),P!==Y.preload&&n.updateMatch(o,M=>({...M,preload:P})),await l(T,C,U,Y,g)}}const v=n.router.getMatch(o);m||((j=v._nonReactive.loaderPromise)==null||j.resolve(),(E=v._nonReactive.loadPromise)==null||E.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,m||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const b=m?v.isFetching:!1;return b!==v.isFetching||v.invalid!==!1?(n.updateMatch(o,C=>({...C,isFetching:b,invalid:!1})),n.router.getMatch(o)):v};async function ix(n){var b,S;const a=n,i=[];d2(a.router)&&bh(a);let l;for(let R=0;R<a.matches.length;R++){try{const j=p2(a,R);Ll(j)&&await j}catch(j){if(Zt(j))throw j;if(Dt(j))l=j;else if(!a.preload)throw j;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const o=a.firstBadMatchIndex??a.matches.length,f=l&&!a.preload?nx(a,l):void 0,h=l&&a.preload?0:f!==void 0?Math.min(f+1,o):o;let m,g;for(let R=0;R<h;R++)i.push(v2(a,i,R));try{await Promise.all(i)}catch{const R=await Promise.allSettled(i);for(const j of R){if(j.status!=="rejected")continue;const E=j.reason;if(Zt(E))throw E;Dt(E)?m??(m=E):g??(g=E)}if(g!==void 0)throw g}const p=m??(l&&!a.preload?l:void 0);let x=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!p&&l&&a.preload)return a.matches;if(p){const R=nx(a,p);R===void 0&&wa();const j=a.matches[R],E=a.router.looseRoutesById[j.routeId],C=(b=a.router.options)==null?void 0:b.defaultNotFoundComponent;!E.options.notFoundComponent&&C&&(E.options.notFoundComponent=C),p.routeId=j.routeId;const _=j.routeId===a.router.routeTree.id;a.updateMatch(j.id,U=>({...U,..._?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),x=R,await Bl(E,["notFoundComponent"])}else if(!a.preload){const R=a.matches[0];R.globalNotFound||(S=a.router.getMatch(R.id))!=null&&S.globalNotFound&&a.updateMatch(R.id,j=>({...j,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const R=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Bl(R,["errorComponent"])}for(let R=0;R<=x;R++){const{id:j,routeId:E}=a.matches[R],C=a.router.looseRoutesById[E];try{const _=g2(a,j,C);if(_){const U=await _;a.updateMatch(j,T=>({...T,...U}))}}catch(_){console.error(`Error executing head for route ${E}:`,_)}}const v=bh(a);if(Ll(v)&&await v,p)throw p;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function rx(n,a){const i=a.map(l=>{var o,f;return(f=(o=n.options[l])==null?void 0:o.preload)==null?void 0:f.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function Bl(n,a=Hc){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(l=>{const{id:o,...f}=l.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const i=()=>n._componentsLoaded?void 0:a===Hc?(()=>{if(n._componentsPromise===void 0){const l=rx(n,Hc);l?n._componentsPromise=l.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():rx(n,a);return n._lazyPromise?n._lazyPromise.then(i):i()}function Zb(n){var a;for(const i of Hc)if((a=n.options[i])!=null&&a.preload)return!0;return!1}const Hc=["component","errorComponent","pendingComponent","notFoundComponent"];function y2(n){return{input:({url:a})=>{for(const i of n)a=Sh(i,a);return a},output:({url:a})=>{for(let i=n.length-1;i>=0;i--)a=Fb(n[i],a);return a}}}function x2(n){const a=Yb(n.basepath),i=`/${a}`,l=n.caseSensitive?i:i.toLowerCase(),o=`${l}/`;return{input:({url:f})=>{const h=n.caseSensitive?f.pathname:f.pathname.toLowerCase();return h===l?f.pathname="/":h.startsWith(o)&&(f.pathname=f.pathname.slice(i.length)),f},output:({url:f})=>(f.pathname=Bc(["/",a,f.pathname]),f)}}function Sh(n,a){var l;const i=(l=n==null?void 0:n.input)==null?void 0:l.call(n,{url:a});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return a}function Fb(n,a){var l;const i=(l=n==null?void 0:n.output)==null?void 0:l.call(n,{url:a});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return a}function b2(n,a){const{createMutableStore:i,createReadonlyStore:l,batch:o,init:f}=a,h=new Map,m=new Map,g=new Map,p=i(n.status),x=i(n.loadedAt),v=i(n.isLoading),b=i(n.isTransitioning),S=i(n.location),R=i(n.resolvedLocation),j=i(n.statusCode),E=i(n.redirect),C=i([]),_=i([]),U=i([]),T=l(()=>Fd(h,C.get())),P=l(()=>Fd(m,_.get())),Y=l(()=>Fd(g,U.get())),M=l(()=>C.get()[0]),D=l(()=>C.get().some(X=>{var J;return((J=h.get(X))==null?void 0:J.get().status)==="pending"})),L=l(()=>{var X;return{locationHref:S.get().href,resolvedLocationHref:(X=R.get())==null?void 0:X.href,status:p.get()}}),q=l(()=>({status:p.get(),loadedAt:x.get(),isLoading:v.get(),isTransitioning:b.get(),matches:T.get(),location:S.get(),resolvedLocation:R.get(),statusCode:j.get(),redirect:E.get()})),W=Ul(64);function ee(X){let J=W.get(X);return J||(J=l(()=>{const pe=C.get();for(const te of pe){const O=h.get(te);if(O&&O.routeId===X)return O.get()}}),W.set(X,J)),J}const ne={status:p,loadedAt:x,isLoading:v,isTransitioning:b,location:S,resolvedLocation:R,statusCode:j,redirect:E,matchesId:C,pendingIds:_,cachedIds:U,matches:T,pendingMatches:P,cachedMatches:Y,firstId:M,hasPending:D,matchRouteDeps:L,matchStores:h,pendingMatchStores:m,cachedMatchStores:g,__store:q,getRouteMatchStore:ee,setMatches:ae,setPending:de,setCached:B};ae(n.matches),f==null||f(ne);function ae(X){Wd(X,h,C,i,o)}function de(X){Wd(X,m,_,i,o)}function B(X){Wd(X,g,U,i,o)}return ne}function Fd(n,a){const i=[];for(const l of a){const o=n.get(l);o&&i.push(o.get())}return i}function Wd(n,a,i,l,o){const f=n.map(m=>m.id),h=new Set(f);o(()=>{for(const m of a.keys())h.has(m)||a.delete(m);for(const m of n){const g=a.get(m.id);if(!g){const p=l(m);p.routeId=m.routeId,a.set(m.id,p);continue}g.routeId=m.routeId,g.get()!==m&&g.set(m)}Yj(i.get(),f)||i.set(f)})}var gs="__TSR_index",lx="popstate",ox="beforeunload";function S2(n){let a=n.getLocation();const i=new Set,l=h=>{a=n.getLocation(),i.forEach(m=>m({location:a,action:h}))},o=h=>{n.notifyOnIndexChange??!0?l(h):a=n.getLocation()},f=async({task:h,navigateOpts:m,...g})=>{var v,b;if((m==null?void 0:m.ignoreBlocker)??!1){h();return}const p=((v=n.getBlockers)==null?void 0:v.call(n))??[],x=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&p.length&&x)for(const S of p){const R=Zc(g.path,g.state);if(await S.blockerFn({currentLocation:a,nextLocation:R,action:g.type})){(b=n.onBlocked)==null||b.call(n);return}}h()};return{get location(){return a},get length(){return n.getLength()},subscribers:i,subscribe:h=>(i.add(h),()=>{i.delete(h)}),push:(h,m,g)=>{const p=a.state[gs];m=cx(p+1,m),f({task:()=>{n.pushState(h,m),l({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:h,state:m})},replace:(h,m,g)=>{const p=a.state[gs];m=cx(p,m),f({task:()=>{n.replaceState(h,m),l({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:h,state:m})},go:(h,m)=>{f({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:m,type:"GO"})},back:h=>{f({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>a.state[gs]!==0,createHref:h=>n.createHref(h),block:h=>{var g;if(!n.setBlockers)return()=>{};const m=((g=n.getBlockers)==null?void 0:g.call(n))??[];return n.setBlockers([...m,h]),()=>{var x,v;const p=((x=n.getBlockers)==null?void 0:x.call(n))??[];(v=n.setBlockers)==null||v.call(n,p.filter(b=>b!==h))}},flush:()=>{var h;return(h=n.flush)==null?void 0:h.call(n)},destroy:()=>{var h;return(h=n.destroy)==null?void 0:h.call(n)},notify:l}}function cx(n,a){a||(a={});const i=sm();return{...a,key:i,__TSR_key:i,[gs]:n}}function w2(n){var D,L;const a=typeof document<"u"?window:void 0,i=a.history.pushState,l=a.history.replaceState;let o=[];const f=()=>o,h=q=>o=q,m=(q=>q),g=(()=>Zc(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!((D=a.history.state)!=null&&D.__TSR_key)&&!((L=a.history.state)!=null&&L.key)){const q=sm();a.history.replaceState({[gs]:0,key:q,__TSR_key:q},"")}let p=g(),x,v=!1,b=!1,S=!1,R=!1;const j=()=>p;let E,C;const _=()=>{E&&(M._ignoreSubscribers=!0,(E.isPush?a.history.pushState:a.history.replaceState)(E.state,"",E.href),M._ignoreSubscribers=!1,E=void 0,C=void 0,x=void 0)},U=(q,W,ee)=>{const ne=m(W);C||(x=p),p=Zc(W,ee),E={href:ne,state:ee,isPush:(E==null?void 0:E.isPush)||q==="push"},C||(C=Promise.resolve().then(()=>_()))},T=q=>{p=g(),M.notify({type:q})},P=async()=>{if(b){b=!1;return}const q=g(),W=q.state[gs]-p.state[gs],ee=W===1,ne=W===-1,ae=!ee&&!ne||v;v=!1;const de=ae?"GO":ne?"BACK":"FORWARD",B=ae?{type:"GO",index:W}:{type:ne?"BACK":"FORWARD"};if(S)S=!1;else{const X=f();if(typeof document<"u"&&X.length){for(const J of X)if(await J.blockerFn({currentLocation:p,nextLocation:q,action:de})){b=!0,a.history.go(1),M.notify(B);return}}}p=g(),M.notify(B)},Y=q=>{if(R){R=!1;return}let W=!1;const ee=f();if(typeof document<"u"&&ee.length)for(const ne of ee){const ae=ne.enableBeforeUnload??!0;if(ae===!0){W=!0;break}if(typeof ae=="function"&&ae()===!0){W=!0;break}}if(W)return q.preventDefault(),q.returnValue=""},M=S2({getLocation:j,getLength:()=>a.history.length,pushState:(q,W)=>U("push",q,W),replaceState:(q,W)=>U("replace",q,W),back:q=>(q&&(S=!0),R=!0,a.history.back()),forward:q=>{q&&(S=!0),R=!0,a.history.forward()},go:q=>{v=!0,a.history.go(q)},createHref:q=>m(q),flush:_,destroy:()=>{a.history.pushState=i,a.history.replaceState=l,a.removeEventListener(ox,Y,{capture:!0}),a.removeEventListener(lx,P)},onBlocked:()=>{x&&p!==x&&(p=x)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return a.addEventListener(ox,Y,{capture:!0}),a.addEventListener(lx,P),a.history.pushState=function(...q){const W=i.apply(a.history,q);return M._ignoreSubscribers||T("PUSH"),W},a.history.replaceState=function(...q){const W=l.apply(a.history,q);return M._ignoreSubscribers||T("REPLACE"),W},M}function j2(n){let a=n.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function Zc(n,a){const i=j2(n),l=i.indexOf("#"),o=i.indexOf("?"),f=sm();return{href:i,pathname:i.substring(0,l>0?o>0?Math.min(l,o):l:o>0?o:i.length),hash:l>-1?i.substring(l):"",search:o>-1?i.slice(o,l===-1?void 0:l):"",state:a||{[gs]:0,key:f,__TSR_key:f}}}function sm(){return(Math.random()+1).toString(36).substring(7)}function lr(n,a){const i=a,l=n;return{fromLocation:i,toLocation:l,pathChanged:(i==null?void 0:i.pathname)!==l.pathname,hrefChanged:(i==null?void 0:i.href)!==l.href,hashChanged:(i==null?void 0:i.hash)!==l.hash}}const wh=new WeakMap;var N2=class{constructor(n,a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=i=>i(),this.update=i=>{var x;const l=this.options,o=this.basepath??(l==null?void 0:l.basepath)??"/",f=this.basepath===void 0,h=l==null?void 0:l.rewrite;if(this.options={...l,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=s2(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=w2()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let v;this.resolvePathCache=Ul(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=b2(E2(this.latestLocation),v),U2(this)}let m=!1;const g=this.options.basepath??"/",p=this.options.rewrite;if(f||o!==g||h!==p){this.basepath=g;const v=[],b=Yb(g);b&&b!=="/"&&v.push(x2({basepath:g})),p&&v.push(p),this.rewrite=v.length===0?void 0:v.length===1?v[0]:y2(v),this.history&&this.updateLatestLocation(),m=!0}m&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((x=window.CSS)==null?void 0:x.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=$j(this.routeTree,this.options.caseSensitive,(l,o)=>{l.init({originalIndex:o})});return this.options.routeMasks&&Ij(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,l)=>{const o={eventType:i,fn:l};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(l=>{l.eventType===i.type&&l.fn(i)})},this.parseLocation=(i,l)=>{const o=({pathname:g,search:p,hash:x,href:v,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const C=this.options.parseSearch(p),_=this.options.stringifySearch(C);return{href:g+_+x,publicHref:g+_+x,pathname:Tl(g).path,external:!1,searchStr:_,search:Gs(l==null?void 0:l.search,C),hash:Tl(x.slice(1)).path,state:Xs(l==null?void 0:l.state,b)}}const S=new URL(v,this.origin),R=Sh(this.rewrite,S),j=this.options.parseSearch(R.search),E=this.options.stringifySearch(j);return R.search=E,{href:R.href.replace(R.origin,""),publicHref:v,pathname:Tl(R.pathname).path,external:!!this.rewrite&&R.origin!==this.origin,searchStr:E,search:Gs(l==null?void 0:l.search,j),hash:Tl(R.hash.slice(1)).path,state:Xs(l==null?void 0:l.state,b)}},f=o(i),{__tempLocation:h,__tempKey:m}=f.state;if(h&&(!m||m===this.tempLocationKey)){const g=o(h);return g.state.key=f.state.key,g.state.__TSR_key=f.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:f}}return f},this.resolvePathWithBase=(i,l)=>a2({base:i,to:l.includes("//")?am(l):l,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,l,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:l},o):this.matchRoutesInternal(i,l),this.getMatchedRoutes=i=>C2({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const l=this.getMatch(i);l&&(l.abortController.abort(),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(i=>{this.cancelMatch(i)}),this.stores.matchesId.get().forEach(i=>{var o;if(this.stores.pendingMatchStores.has(i))return;const l=(o=this.stores.matchStores.get(i))==null?void 0:o.get();l&&(l.status==="pending"||l.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const l=(f={})=>{var W,ee;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(h);f.from;const g=f.unsafeRelative==="path"?h.pathname:f.from??m.fullPath,p=f.to?`${f.to}`:void 0,x=m.search,v=Object.assign(Object.create(null),m.params),b=(p==null?void 0:p.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),S=p?this.resolvePathWithBase(b,p):b,R=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?v:Object.assign(v,Ys(f.params,v)),j=this.routesByPath[Sa(S)];let E;if(j)E=this.getRouteBranch(j);else if(S.includes("$"))E=[];else{const ne=this.getMatchedRoutes(S);E=ne.matchedRoutes,this.options.notFoundRoute&&(!ne.foundRoute||ne.foundRoute.path!=="/"&&ne.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&Hb(R))for(const ne of E){const ae=((W=ne.options.params)==null?void 0:W.stringify)??ne.options.stringifyParams;if(ae)try{Object.assign(R,ae(R))}catch{}}const C=i.leaveParams?S:Tl(ex({path:S,params:R,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let _=x;if(i._includeValidateSearch&&((ee=this.options.search)!=null&&ee.strict)){const ne={};E.forEach(ae=>{if(ae.options.validateSearch)try{Object.assign(ne,Pc(ae.options.validateSearch,{...ne,..._}))}catch{}}),_=ne}_=T2({search:_,dest:f,destRoutes:E,_includeValidateSearch:i._includeValidateSearch}),_=Gs(x,_);const U=this.options.stringifySearch(_),T=f.hash===!0?h.hash:f.hash?Ys(f.hash,h.hash):void 0,P=T?`#${T}`:"";let Y=f.state===!0?h.state:f.state?Ys(f.state,h.state):{};Y=Xs(h.state,Y);const M=`${C}${U}${P}`;let D,L,q=!1;if(this.rewrite){const ne=new URL(M,this.origin),ae=Fb(this.rewrite,ne);D=ne.href.replace(ne.origin,""),ae.origin!==this.origin?(L=ae.href,q=!0):L=ae.pathname+ae.search+ae.hash}else D=Vj(M),L=D;return{publicHref:L,href:D,pathname:C,search:_,searchStr:U,state:Y,hash:T??"",external:q,unmaskOnReload:f.unmaskOnReload}},o=(f={},h)=>{const m=l(f);let g=h?l(h):void 0;if(!g){const p=Object.create(null);if(this.options.routeMasks){const x=Kj(m.pathname,this.processedTree);if(x){Object.assign(p,x.rawParams);const{from:v,params:b,...S}=x.route,R=b===!1||b===null?Object.create(null):(b??!0)===!0?p:Object.assign(p,Ys(b,p));h={from:i.from,...S,params:R},g=l(h)}}}return g&&(m.maskedLocation=g),m};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:l,...o})=>{let f;const h=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{o.state[v]=this.latestLocation.state[v]});const x=ii(o.state,this.latestLocation.state);return p.forEach(v=>{delete o.state[v]}),x},m=Sa(this.latestLocation.href)===Sa(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=Nr(()=>{g==null||g.resolve(),g=void 0}),m&&h())this.load();else{let{maskedLocation:p,hashScrollIntoView:x,...v}=o;p&&(v={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=x??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,f=o.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:l})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(f?{action:{type:f}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:l,hashScrollIntoView:o,viewTransition:f,ignoreBlocker:h,href:m,...g}={})=>{if(m){const v=this.history.location.state.__TSR_index,b=Zc(m,{__TSR_index:i?v:v+1}),S=new URL(b.pathname,this.origin);g.to=Sh(this.rewrite,S).pathname,g.search=this.options.parseSearch(b.search),g.hash=b.hash.slice(1)}const p=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const x=this.commitLocation({...p,viewTransition:f,replace:i,resetScroll:l,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),x},this.navigate=async({to:i,reloadDocument:l,href:o,publicHref:f,...h})=>{var g,p;let m=!1;if(o)try{new URL(`${o}`),m=!0}catch{}if(m&&!l&&(l=!0),l){if(i!==void 0||!o){const v=this.buildLocation({to:i,...h});o=o??v.publicHref,f=f??v.publicHref}const x=!m&&f?f:o;if(Ic(x,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const v=((p=(g=this.history).getBlockers)==null?void 0:p.call(g))??[];for(const b of v)if(b!=null&&b.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(x):window.location.href=x,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation),l=this.stores.cachedMatches.get().filter(o=>!i.some(f=>f.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(i),this.stores.setCached(l)})},this.load=async i=>{var p;const l=(p=i==null?void 0:i.action)==null?void 0:p.type;let o,f,h;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(x=>{this.startTransition(async()=>{var v;try{this.beforeLoad(),l?wh.set(this.latestLocation,l):wh.delete(this.latestLocation);const b=this.latestLocation,S=lr(b,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await ix({router:this,sync:i==null?void 0:i.sync,forceStaleReload:m.href===b.href,matches:this.stores.pendingMatches.get(),location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var _,U;let R=null,j=null,E=null,C=null;this.batch(()=>{const T=this.stores.pendingMatches.get(),P=T.length,Y=this.stores.matches.get();R=P?Y.filter(L=>!this.stores.pendingMatchStores.has(L.id)):null;const M=new Set;for(const L of this.stores.pendingMatchStores.values())L.routeId&&M.add(L.routeId);const D=new Set;for(const L of this.stores.matchStores.values())L.routeId&&D.add(L.routeId);j=P?Y.filter(L=>!M.has(L.routeId)):null,E=P?T.filter(L=>!D.has(L.routeId)):null,C=P?T.filter(L=>D.has(L.routeId)):Y,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),P&&(this.stores.setMatches(T),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...R.filter(L=>L.status!=="error"&&L.status!=="notFound"&&L.status!=="redirected")]),this.clearExpiredCache())});for(const[T,P]of[[j,"onLeave"],[E,"onEnter"],[C,"onStay"]])if(T)for(const Y of T)(U=(_=this.looseRoutesById[Y.routeId].options)[P])==null||U.call(_,Y)})})}})}catch(b){Zt(b)?(o=b,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Dt(b)&&(f=b);const S=o?o.status:f?404:this.stores.matches.get().some(R=>R.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(S),this.stores.redirect.set(o)})}this.latestLoadPromise===h&&((v=this.commitLocationPromise)==null||v.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),x()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.matches.get().some(x=>x.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.set(g)},this.startViewTransition=i=>{const l=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,l&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof l=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.stores.resolvedLocation.get(),m=typeof l.types=="function"?l.types(lr(f,h)):l.types;if(m===!1){i();return}o={update:i,types:m}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,l)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(i);if(o){o.set(l);return}const f=this.stores.matchStores.get(i);if(f){f.set(l);return}const h=this.stores.cachedMatchStores.get(i);if(h){const m=l(h.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(i)&&this.stores.cachedIds.set(g=>g.filter(p=>p!==i)):h.set(m)}})},this.getMatch=i=>{var l,o,f;return((l=this.stores.cachedMatchStores.get(i))==null?void 0:l.get())??((o=this.stores.pendingMatchStores.get(i))==null?void 0:o.get())??((f=this.stores.matchStores.get(i))==null?void 0:f.get())},this.invalidate=i=>{const l=o=>{var f;return((f=i==null?void 0:i.filter)==null?void 0:f.call(i,o))??!0?{...o,invalid:!0,...i!=null&&i.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(l)),this.stores.setCached(this.stores.cachedMatches.get().map(l)),this.stores.setPending(this.stores.pendingMatches.get().map(l))}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const l=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),f=this.getParsedLocationHref(o);i.options.href=f,i.headers.set("Location",f)}else if(l)try{const o=new URL(l);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;i.options.href=f,i.headers.set("Location",f)}}catch{}if(i.options.href&&!i.options._builtLocation&&Ic(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const l=i==null?void 0:i.filter;l!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!l(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const i=Date.now(),l=o=>{const f=this.looseRoutesById[o.routeId];if(!f.options.loader)return!0;const h=(o.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=h};this.clearCache({filter:l})},this.loadRouteChunk=Bl,this.preloadRoute=async i=>{const l=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(l,{throwOnError:!0,preload:!0,dest:i});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),h=new Set([...f,...this.stores.cachedIds.get()]),m=o.filter(g=>!h.has(g.id));if(m.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...m])}try{return o=await ix({router:this,matches:o,location:l,preload:!0,updateMatch:(g,p)=>{f.has(g)?o=o.map(x=>x.id===g?p(x):x):this.updateMatch(g,p)}}),o}catch(g){if(Zt(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:l});Dt(g)||console.error(g);return}},this.matchRoute=(i,l)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},f=this.buildLocation(o);if(l!=null&&l.pending&&this.stores.status.get()!=="pending")return!1;const h=((l==null?void 0:l.pending)===void 0?!this.stores.isLoading.get():l.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),m=Zj(f.pathname,(l==null?void 0:l.caseSensitive)??!1,(l==null?void 0:l.fuzzy)??!1,h.pathname,this.processedTree);return!m||i.params&&!ii(m.rawParams,i.params,{partial:!0})?!1:(l==null?void 0:l.includeSearch)??!0?ii(h.search,f.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??o2,parseSearch:n.parseSearch??l2,protocolAllowlist:n.protocolAllowlist??Qj}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:n,routesByPath:a,processedTree:i}){this.routesById=n,this.routesByPath=a,this.processedTree=i;const l=this.options.notFoundRoute;l&&(l.init({originalIndex:99999999999}),this.routesById[l.id]=l)}getRouteBranch(n){let a=this.routeBranchCache.get(n);return a||(a=Qb(n),this.routeBranchCache.set(n,a)),a}get looseRoutesById(){return this.routesById}getParentContext(n){return n!=null&&n.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,a){var x,v;const i=this.getMatchedRoutes(n.pathname),{foundRoute:l,routeParams:o}=i;let{matchedRoutes:f}=i,h=!1;(l?l.path!=="/"&&o["**"]:Sa(n.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:h=!0);const m=h?A2(this.options.notFoundMode,f):void 0,g=new Array(f.length),p=new Map;for(const b of this.stores.matchStores.values())b.routeId&&p.set(b.routeId,b.get());for(let b=0;b<f.length;b++){const S=f[b],R=g[b-1];let j,E,C;{const ae=(R==null?void 0:R.search)??n.search,de=(R==null?void 0:R._strictSearch)??void 0;try{const B=Pc(S.options.validateSearch,{...ae})??void 0;j={...ae,...B},E={...de,...B},C=void 0}catch(B){let X=B;if(B instanceof Fc||(X=new Fc(B.message,{cause:B})),a!=null&&a.throwOnError)throw X;j=ae,E={},C=X}}const _=((v=(x=S.options).loaderDeps)==null?void 0:v.call(x,{search:j}))??"",U=_?JSON.stringify(_):"",{interpolatedPath:T,usedParams:P}=ex({path:S.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),Y=S.id+T+U,M=this.getMatch(Y),D=p.get(S.id),L=(M==null?void 0:M._strictParams)??P;let q;if(!M)try{ux(S,L)}catch(ae){if(Dt(ae)||Zt(ae)?q=ae:q=new R2(ae.message,{cause:ae}),a!=null&&a.throwOnError)throw q}Object.assign(o,L);const W=D?"stay":"enter";let ee;if(M)ee={...M,cause:W,params:(D==null?void 0:D.params)??o,_strictParams:L,search:Gs(D?D.search:M.search,j),_strictSearch:E};else{const ae=S.options.loader||S.options.beforeLoad||S.lazyFn||Zb(S)?"pending":"success";ee={id:Y,ssr:S.options.ssr,index:b,routeId:S.id,params:(D==null?void 0:D.params)??o,_strictParams:L,pathname:T,updatedAt:Date.now(),search:D?Gs(D.search,j):j,_strictSearch:E,searchError:void 0,status:ae,isFetching:!1,error:void 0,paramsError:q,__routeContext:void 0,_nonReactive:{loadPromise:Nr()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:W,loaderDeps:D?Xs(D.loaderDeps,_):_,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:S.options.staticData||{},fullPath:S.fullPath}}a!=null&&a.preload||(ee.globalNotFound=m===S.id),ee.searchError=C;const ne=this.getParentContext(R);ee.context={...ne,...ee.__routeContext,...ee.__beforeLoadContext},g[b]=ee}for(let b=0;b<g.length;b++){const S=g[b],R=this.looseRoutesById[S.routeId],j=this.getMatch(S.id),E=p.get(S.routeId);if(S.params=E?Gs(E.params,o):o,!j){const C=g[b-1],_=this.getParentContext(C);if(R.options.context){const U={deps:S.loaderDeps,params:S.params,context:_??{},location:n,navigate:T=>this.navigate({...T,_fromLocation:n}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:g,routeId:R.id};S.__routeContext=R.options.context(U)??void 0}S.context={..._,...S.__routeContext,...S.__beforeLoadContext}}}return g}matchRoutesLightweight(n){var p;const{matchedRoutes:a,routeParams:i}=this.getMatchedRoutes(n.pathname),l=kl(a),o={...n.search};for(const x of a)try{Object.assign(o,Pc(x.options.validateSearch,o))}catch{}const f=kl(this.stores.matchesId.get()),h=f&&((p=this.stores.matchStores.get(f))==null?void 0:p.get()),m=h&&h.routeId===l.id&&h.pathname===n.pathname;let g;if(m)g=h.params;else{const x=Object.assign(Object.create(null),i);for(const v of a)try{ux(v,x)}catch{}g=x}return{matchedRoutes:a,fullPath:l.fullPath,search:o,params:g}}},Fc=class extends Error{},R2=class extends Error{};function E2(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function Pc(n,a){if(n==null)return{};if("~standard"in n){const i=n["~standard"].validate(a);if(i instanceof Promise)throw new Fc("Async validation not supported");if(i.issues)throw new Fc(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in n?n.parse(a):typeof n=="function"?n(a):{}}function C2({pathname:n,routesById:a,processedTree:i}){const l=Object.create(null),o=Sa(n);let f;const h=Fj(o,i,!0);return h&&(f=h.route,Object.assign(l,h.rawParams)),{matchedRoutes:(h==null?void 0:h.branch)||[a.__root__],routeParams:l,foundRoute:f}}function T2({search:n,dest:a,destRoutes:i,_includeValidateSearch:l}){return _2(i)(n,a,l??!1)}function _2(n){var o;const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of n){if("search"in f.options)(o=f.options.search)!=null&&o.middlewares&&a.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:m,next:g})=>{let p=m;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(p=f.options.preSearchFilters.reduce((v,b)=>b(v),m));const x=g(p);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((v,b)=>b(v),x):x};a.middlewares.push(h)}if(f.options.validateSearch){const h=({search:m,next:g})=>{const p=g(m);if(!a._includeValidateSearch)return p;try{return{...p,...Pc(f.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(h)}}const i=({search:f})=>{const h=a.dest;return h.search?h.search===!0?f:Ys(h.search,f):{}};a.middlewares.push(i);const l=(f,h,m)=>{if(f>=m.length)return h;const g=m[f];return g({search:h,next:x=>l(f+1,x,m)})};return function(h,m,g){return a.dest=m,a._includeValidateSearch=g,l(0,h,a.middlewares)}}function A2(n,a){if(n!=="root")for(let i=a.length-1;i>=0;i--){const l=a[i];if(l.children)return l.id}return ri}function ux(n,a){var l;const i=((l=n.options.params)==null?void 0:l.parse)??n.options.parseParams;if(i){const o=i(a);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,o)}}function M2(){try{return sessionStorage}catch{return}}const O2="tsr-scroll-restoration-v1_3",or=M2();function D2(){try{return JSON.parse((or==null?void 0:or.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function z2(){try{or==null||or.setItem(O2,JSON.stringify(ns))}catch{}}const ns=D2(),fx="data-scroll-restoration-id",k2=n=>n.state.__TSR_key||n.href;function L2(n){const a=n.getAttribute(fx);if(a)return`[${fx}="${a}"]`;let i="",l=n,o;for(;o=l.parentNode;){let f=1,h=l;for(;h=h.previousElementSibling;)f++;const m=`${l.localName}:nth-child(${f})`;i=i?`${m} > ${i}`:m,l=o}return i}let Rc=!1;const ir="window";function jh(n){try{return typeof n=="function"?n():document.querySelector(n)}catch{}}function dx(n){const a=[];for(const i of n){if(i===ir)continue;const l=jh(i);l&&a.push(l)}return a}function U2(n,a){if(n.options.scrollRestoration&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup)return;n.isScrollRestorationSetup=!0,Rc=!1;const i=n.options.getScrollRestorationKey||k2,l=new Map,o=(m,g,p)=>{const x=l.get(m)||{};x.scrollX=g,x.scrollY=p,l.set(m,x)};history.scrollRestoration="manual";const f=m=>{if(!(Rc||!n.isScrollRestoring))if(m.target===document)o(ir,scrollX,scrollY);else{const g=m.target;o(g,g.scrollLeft,g.scrollTop)}},h=m=>{if(!n.isScrollRestoring)return;const g=ns[m]||(ns[m]={});for(const[p,x]of l)p===ir?g[ir]=x:p.isConnected&&(g[L2(p)]=x)};document.addEventListener("scroll",f,!0),n.subscribe("onBeforeLoad",m=>{m.fromLocation&&h(i(m.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{h(i(n.stores.resolvedLocation.get()??n.stores.location.get())),z2()}),n.subscribe("onRendered",m=>{var R;const g=n.options.scrollRestorationBehavior,p=n.options.scrollToTopSelectors,x=n.resetNextScroll;let v;if(l.clear(),x||(n.resetNextScroll=!0),typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))return;const b=i(m.toLocation),S=m.fromLocation&&i(m.fromLocation);if(n.isScrollRestoring&&S&&S!==b){const j=ns[S];if(j){let E=ns[b];for(const C in j){if(C===ir){if(x)continue}else{const _=jh(C);if(!_||x&&p&&(v??(v=dx(p)),v.includes(_)))continue}E||(E=ns[b]={}),E[C]??(E[C]=j[C])}}}Rc=!0;try{const j=m.toLocation.hash,E=m.toLocation.state.__hashScrollIntoViewOptions??!0;let C=!1;if(x){const _=wh.get(m.toLocation),U=j&&E&&(_==="PUSH"||_==="REPLACE"),T=n.isScrollRestoring?ns[b]:void 0;if(T)for(const P in T){const{scrollX:Y,scrollY:M}=T[P];if(P===ir){if(U)continue;scrollTo({top:M,left:Y,behavior:g}),C=!0}else{const D=jh(P);D&&(D.scrollLeft=Y,D.scrollTop=M)}}if(!C&&!j){const P={top:0,left:0,behavior:g};if(scrollTo(P),p){v??(v=dx(p));for(const Y of v)Y.scrollTo(P)}}}!C&&j&&E&&((R=document.getElementById(j))==null||R.scrollIntoView(E))}finally{Rc=!1}})}const B2="Error preloading route! ☝️";var Wb=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=a=>{var g,p;this.originalIndex=a.originalIndex;const i=this.options,l=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(p=(g=this.options).getParentRoute)==null?void 0:p.call(g),l?this._path=ri:this.parentRoute||wa();let o=l?ri:i==null?void 0:i.path;o&&o!=="/"&&(o=Vb(o));const f=(i==null?void 0:i.id)||o;let h=l?ri:Bc([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=Bc(["/",h]));const m=h==="__root__"?"/":Bc([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=m,this._to=Sa(m)},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.redirect=a=>f2({from:this.fullPath,...a}),this.options=n||{},this.isRoot=!(n!=null&&n.getParentRoute),n!=null&&n.id&&(n!=null&&n.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},H2=class extends Wb{constructor(n){super(n)}};function im(n){const a=n.errorComponent??rm;return u.jsx(P2,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:i,reset:l})=>i?N.createElement(a,{error:i,reset:l}):n.children})}var P2=class extends N.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n,a){const i=n.getResetKey();return a.error&&a.resetKey!==i?{resetKey:i,error:null}:{resetKey:i}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidCatch(n,a){this.props.onCatch&&this.props.onCatch(n,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rm({error:n}){const[a,i]=N.useState(!1);return u.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[u.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),u.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(l=>!l),children:a?"Hide Error":"Show Error"})]}),u.jsx("div",{style:{height:".25rem"}}),a?u.jsx("div",{children:u.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?u.jsx("code",{children:n.message}):null})}):null]})}function q2({children:n,fallback:a=null}){return $b()?u.jsx(oi.Fragment,{children:n}):u.jsx(oi.Fragment,{children:a})}function $b(){return oi.useSyncExternalStore(G2,()=>!0,()=>!1)}function G2(){return()=>{}}var Jb=N.createContext(null);function dn(n){return N.useContext(Jb)}var cu=N.createContext(void 0),Q2=N.createContext(void 0),We=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))(We||{});function V2({update:n,notify:a,unwatched:i}){return{link:l,unlink:o,propagate:f,checkDirty:h,shallowPropagate:m};function l(p,x,v){const b=x.depsTail;if(b!==void 0&&b.dep===p)return;const S=b!==void 0?b.nextDep:x.deps;if(S!==void 0&&S.dep===p){S.version=v,x.depsTail=S;return}const R=p.subsTail;if(R!==void 0&&R.version===v&&R.sub===x)return;const j=x.depsTail=p.subsTail={version:v,dep:p,sub:x,prevDep:b,nextDep:S,prevSub:R,nextSub:void 0};S!==void 0&&(S.prevDep=j),b!==void 0?b.nextDep=j:x.deps=j,R!==void 0?R.nextSub=j:p.subs=j}function o(p,x=p.sub){const v=p.dep,b=p.prevDep,S=p.nextDep,R=p.nextSub,j=p.prevSub;return S!==void 0?S.prevDep=b:x.depsTail=b,b!==void 0?b.nextDep=S:x.deps=S,R!==void 0?R.prevSub=j:v.subsTail=j,j!==void 0?j.nextSub=R:(v.subs=R)===void 0&&i(v),S}function f(p){let x=p.nextSub,v;e:do{const b=p.sub;let S=b.flags;if(S&60?S&12?S&4?!(S&48)&&g(p,b)?(b.flags=S|40,S&=1):S=0:b.flags=S&-9|32:S=0:b.flags=S|32,S&2&&a(b),S&1){const R=b.subs;if(R!==void 0){const j=(p=R).nextSub;j!==void 0&&(v={value:x,prev:v},x=j);continue}}if((p=x)!==void 0){x=p.nextSub;continue}for(;v!==void 0;)if(p=v.value,v=v.prev,p!==void 0){x=p.nextSub;continue e}break}while(!0)}function h(p,x){let v,b=0,S=!1;e:do{const R=p.dep,j=R.flags;if(x.flags&16)S=!0;else if((j&17)===17){if(n(R)){const E=R.subs;E.nextSub!==void 0&&m(E),S=!0}}else if((j&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(v={value:p,prev:v}),p=R.deps,x=R,++b;continue}if(!S){const E=p.nextDep;if(E!==void 0){p=E;continue}}for(;b--;){const E=x.subs,C=E.nextSub!==void 0;if(C?(p=v.value,v=v.prev):p=E,S){if(n(x)){C&&m(E),x=p.sub;continue}S=!1}else x.flags&=-33;x=p.sub;const _=p.nextDep;if(_!==void 0){p=_;continue e}}return S}while(!0)}function m(p){do{const x=p.sub,v=x.flags;(v&48)===32&&(x.flags=v|16,(v&6)===2&&a(x))}while((p=p.nextSub)!==void 0)}function g(p,x){let v=x.depsTail;for(;v!==void 0;){if(v===p)return!0;v=v.prevDep}return!1}}function Y2(n,a,i){var f,h,m;const l=typeof n=="object",o=l?n:void 0;return{next:(f=l?n.next:n)==null?void 0:f.bind(o),error:(h=l?n.error:a)==null?void 0:h.bind(o),complete:(m=l?n.complete:i)==null?void 0:m.bind(o)}}const Nh=[];let qc=0;const{link:hx,unlink:X2,propagate:I2,checkDirty:e0,shallowPropagate:mx}=V2({update(n){return n._update()},notify(n){Nh[Rh++]=n,n.flags&=~We.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=We.Mutable|We.Dirty,Wc(n))}});let Ec=0,Rh=0,Qn,Eh=0;function t0(n){try{++Eh,n()}finally{--Eh||n0()}}function Wc(n){const a=n.depsTail;let i=a!==void 0?a.nextDep:n.deps;for(;i!==void 0;)i=X2(i,n)}function n0(){if(!(Eh>0)){for(;Ec<Rh;){const n=Nh[Ec];Nh[Ec++]=void 0,n.notify()}Ec=0,Rh=0}}function px(n,a){const i=typeof n=="function",l=n,o={_snapshot:i?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?We.None:We.Mutable,get(){return Qn!==void 0&&hx(o,Qn,qc),o._snapshot},subscribe(f){const h=Y2(f),m={current:!1},g=K2(()=>{var p;o.get(),m.current?(p=h.next)==null||p.call(h,o._snapshot):m.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(f){const h=Qn,m=(a==null?void 0:a.compare)??Object.is;if(i)Qn=o,++qc,o.depsTail=void 0;else if(f===void 0)return!1;i&&(o.flags=We.Mutable|We.RecursedCheck);try{const g=o._snapshot,p=typeof f=="function"?f(g):f===void 0&&i?l(g):f;return g===void 0||!m(g,p)?(o._snapshot=p,!0):!1}finally{Qn=h,i&&(o.flags&=~We.RecursedCheck),Wc(o)}}};return i?(o.flags=We.Mutable|We.Dirty,o.get=function(){const f=o.flags;if(f&We.Dirty||f&We.Pending&&e0(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&mx(h)}}else f&We.Pending&&(o.flags=f&~We.Pending);return Qn!==void 0&&hx(o,Qn,qc),o._snapshot}):o.set=function(f){if(o._update(f)){const h=o.subs;h!==void 0&&(I2(h),mx(h),n0())}},o}function K2(n){const a=()=>{const l=Qn;Qn=i,++qc,i.depsTail=void 0,i.flags=We.Watching|We.RecursedCheck;try{return n()}finally{Qn=l,i.flags&=~We.RecursedCheck,Wc(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:We.Watching|We.RecursedCheck,notify(){const l=this.flags;l&We.Dirty||l&We.Pending&&e0(this.deps,this)?a():this.flags=We.Watching},stop(){this.flags=We.None,this.depsTail=void 0,Wc(this)}};return a(),i}var $d={exports:{}},Jd={},eh={exports:{}},th={};/**
|
|
50
|
-
* @license React
|
|
51
|
-
* use-sync-external-store-shim.production.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var gx;function Z2(){if(gx)return th;gx=1;var n=Wl();function a(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var i=typeof Object.is=="function"?Object.is:a,l=n.useState,o=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function m(v,b){var S=b(),R=l({inst:{value:S,getSnapshot:b}}),j=R[0].inst,E=R[1];return f(function(){j.value=S,j.getSnapshot=b,g(j)&&E({inst:j})},[v,S,b]),o(function(){return g(j)&&E({inst:j}),v(function(){g(j)&&E({inst:j})})},[v]),h(S),S}function g(v){var b=v.getSnapshot;v=v.value;try{var S=b();return!i(v,S)}catch{return!0}}function p(v,b){return b()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return th.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,th}var vx;function F2(){return vx||(vx=1,eh.exports=Z2()),eh.exports}/**
|
|
58
|
-
* @license React
|
|
59
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var yx;function W2(){if(yx)return Jd;yx=1;var n=Wl(),a=F2();function i(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var l=typeof Object.is=="function"?Object.is:i,o=a.useSyncExternalStore,f=n.useRef,h=n.useEffect,m=n.useMemo,g=n.useDebugValue;return Jd.useSyncExternalStoreWithSelector=function(p,x,v,b,S){var R=f(null);if(R.current===null){var j={hasValue:!1,value:null};R.current=j}else j=R.current;R=m(function(){function C(Y){if(!_){if(_=!0,U=Y,Y=b(Y),S!==void 0&&j.hasValue){var M=j.value;if(S(M,Y))return T=M}return T=Y}if(M=T,l(U,Y))return M;var D=b(Y);return S!==void 0&&S(M,D)?(U=Y,M):(U=Y,T=D)}var _=!1,U,T,P=v===void 0?null:v;return[function(){return C(x())},P===null?void 0:function(){return C(P())}]},[x,v,b,S]);var E=o(p,R[0],R[1]);return h(function(){j.hasValue=!0,j.value=E},[E]),g(E),E},Jd}var xx;function $2(){return xx||(xx=1,$d.exports=W2()),$d.exports}var J2=$2();function eN(n,a){return n===a}function Ft(n,a,i=eN){const l=N.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:m}=n.subscribe(h);return m},[n]),o=N.useCallback(()=>n==null?void 0:n.get(),[n]);return J2.useSyncExternalStoreWithSelector(l,o,o,a,i)}var tN={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function di(n){const a=dn(),i=N.useContext(n.from?Q2:cu),l=n.from??i,o=l?n.from?a.stores.getRouteMatchStore(l):a.stores.matchStores.get(l):void 0,f=N.useRef(void 0);return Ft(o??tN,h=>{if((n.shouldThrow??!0)&&!h&&wa(),h===void 0)return;const m=n.select?n.select(h):h;if(n.structuralSharing??a.options.defaultStructuralSharing){const g=Xs(f.current,m);return f.current=g,g}return m})}function a0(n){return di({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.loaderData):a.loaderData})}function s0(n){const{select:a,...i}=n;return di({...i,select:l=>a?a(l.loaderDeps):l.loaderDeps})}function uu(n){return di({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:a=>{const i=n.strict===!1?a.params:a._strictParams;return n.select?n.select(i):i}})}function $l(n){return di({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.search):a.search})}function lm(n){const a=dn();return N.useCallback(i=>a.navigate({...i,from:i.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,a])}function i0(n){return di({...n,select:a=>n.select?n.select(a.context):a.context})}var fu=Lb();const nN=em(fu);function aN(n,a){const i=dn(),l=Hj(a),{activeProps:o,inactiveProps:f,activeOptions:h,to:m,preload:g,preloadDelay:p,preloadIntentProximity:x,hashScrollIntoView:v,replace:b,startTransition:S,resetScroll:R,viewTransition:j,children:E,target:C,disabled:_,style:U,className:T,onClick:P,onBlur:Y,onFocus:M,onMouseEnter:D,onMouseLeave:L,onTouchStart:q,ignoreBlocker:W,params:ee,search:ne,hash:ae,state:de,mask:B,reloadDocument:X,unsafeRelative:J,from:pe,_fromLocation:te,...O}=n,Z=$b(),se=N.useMemo(()=>n,[i,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),ie=Ft(i.stores.location,Ge=>Ge,(Ge,bt)=>Ge.href===bt.href),re=N.useMemo(()=>{const Ge={_fromLocation:ie,...se};return i.buildLocation(Ge)},[i,ie,se]),he=re.maskedLocation?re.maskedLocation.publicHref:re.publicHref,Se=re.maskedLocation?re.maskedLocation.external:re.external,Le=N.useMemo(()=>cN(he,Se,i.history,_),[_,Se,he,i.history]),ye=N.useMemo(()=>{if(Le!=null&&Le.external)return Ic(Le.href,i.protocolAllowlist)?void 0:Le.href;if(!uN(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),Ic(m,i.protocolAllowlist)?void 0:m}catch{}},[m,Le,i.protocolAllowlist]),zt=N.useMemo(()=>{if(ye)return!1;if(h!=null&&h.exact){if(!n2(ie.pathname,re.pathname,i.basepath))return!1}else{const Ge=Kc(ie.pathname,i.basepath),bt=Kc(re.pathname,i.basepath);if(!(Ge.startsWith(bt)&&(Ge.length===bt.length||Ge[bt.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!ii(ie.search,re.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?Z&&ie.hash===re.hash:!0},[h==null?void 0:h.exact,h==null?void 0:h.explicitUndefined,h==null?void 0:h.includeHash,h==null?void 0:h.includeSearch,ie,ye,Z,re.hash,re.pathname,re.search,i.basepath]),xt=zt?Ys(o,{})??sN:nh,Tt=zt?nh:Ys(f,{})??nh,kt=[T,xt.className,Tt.className].filter(Boolean).join(" "),mt=(U||xt.style||Tt.style)&&{...U,...xt.style,...Tt.style},[js,_a]=N.useState(!1),pi=N.useRef(!1),Rn=n.reloadDocument||ye?!1:g??i.options.defaultPreload,hn=p??i.options.defaultPreloadDelay??0,En=N.useCallback(()=>{i.preloadRoute({...se,_builtLocation:re}).catch(Ge=>{console.warn(Ge),console.warn(B2)})},[i,se,re]);Bj(l,N.useCallback(Ge=>{Ge!=null&&Ge.isIntersecting&&En()},[En]),oN,{disabled:!!_||Rn!=="viewport"}),N.useEffect(()=>{pi.current||!_&&Rn==="render"&&(En(),pi.current=!0)},[_,En,Rn]);const Dr=Ge=>{const bt=Ge.currentTarget.getAttribute("target"),Un=C!==void 0?C:bt;if(!_&&!fN(Ge)&&!Ge.defaultPrevented&&(!Un||Un==="_self")&&Ge.button===0){Ge.preventDefault(),fu.flushSync(()=>{_a(!0)});const gi=i.subscribe("onResolved",()=>{gi(),_a(!1)});i.navigate({...se,replace:b,resetScroll:R,hashScrollIntoView:v,startTransition:S,viewTransition:j,ignoreBlocker:W})}};if(ye)return{...O,ref:l,href:ye,...E&&{children:E},...C&&{target:C},..._&&{disabled:_},...U&&{style:U},...T&&{className:T},...P&&{onClick:P},...Y&&{onBlur:Y},...M&&{onFocus:M},...D&&{onMouseEnter:D},...L&&{onMouseLeave:L},...q&&{onTouchStart:q}};const so=Ge=>{if(_||Rn!=="intent")return;if(!hn){En();return}const bt=Ge.currentTarget;if(Al.has(bt))return;const Un=setTimeout(()=>{Al.delete(bt),En()},hn);Al.set(bt,Un)},Nu=Ge=>{_||Rn!=="intent"||En()},_t=Ge=>{if(_||!Rn||!hn)return;const bt=Ge.currentTarget,Un=Al.get(bt);Un&&(clearTimeout(Un),Al.delete(bt))};return{...O,...xt,...Tt,href:Le==null?void 0:Le.href,ref:l,onClick:tr([P,Dr]),onBlur:tr([Y,_t]),onFocus:tr([M,so]),onMouseEnter:tr([D,so]),onMouseLeave:tr([L,_t]),onTouchStart:tr([q,Nu]),disabled:!!_,target:C,...mt&&{style:mt},...kt&&{className:kt},..._&&iN,...zt&&rN,...Z&&js&&lN}}var nh={},sN={className:"active"},iN={role:"link","aria-disabled":!0},rN={"data-status":"active","aria-current":"page"},lN={"data-transitioning":"transitioning"},Al=new WeakMap,oN={rootMargin:"100px"},tr=n=>a=>{for(const i of n)if(i){if(a.defaultPrevented)return;i(a)}};function cN(n,a,i,l){if(!l)return a?{href:n,external:!0}:{href:i.createHref(n)||"/",external:!1}}function uN(n){if(typeof n!="string")return!1;const a=n.charCodeAt(0);return a===47?n.charCodeAt(1)!==47:a===46}var dt=N.forwardRef((n,a)=>{const{_asChild:i,...l}=n,{type:o,...f}=aN(l,a),h=typeof l.children=="function"?l.children({isActive:f["data-status"]==="active"}):l.children;if(!i){const{disabled:m,...g}=f;return N.createElement("a",g,h)}return N.createElement(i,f,h)});function fN(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var dN=class extends Wb{constructor(a){super(a),this.useMatch=i=>di({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>i0({...i,from:this.id}),this.useSearch=i=>$l({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>uu({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>s0({...i,from:this.id}),this.useLoaderData=i=>a0({...i,from:this.id}),this.useNavigate=()=>lm({from:this.fullPath}),this.Link=oi.forwardRef((i,l)=>u.jsx(dt,{ref:l,from:this.fullPath,...i}))}};function hN(n){return new dN(n)}function mN(){return n=>gN(n)}var pN=class extends H2{constructor(n){super(n),this.useMatch=a=>di({select:a==null?void 0:a.select,from:this.id,structuralSharing:a==null?void 0:a.structuralSharing}),this.useRouteContext=a=>i0({...a,from:this.id}),this.useSearch=a=>$l({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useParams=a=>uu({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useLoaderDeps=a=>s0({...a,from:this.id}),this.useLoaderData=a=>a0({...a,from:this.id}),this.useNavigate=()=>lm({from:this.fullPath}),this.Link=oi.forwardRef((a,i)=>u.jsx(dt,{ref:i,from:this.fullPath,...a}))}};function gN(n){return new pN(n)}function zn(n){return new vN(n,{silent:!0}).createRoute}var vN=class{constructor(n,a){this.path=n,this.createRoute=i=>{const l=hN(i);return l.isRoot=!1,l},this.silent=a==null?void 0:a.silent}};function yN(n){const a=dn(),i=`not-found-${Ft(a.stores.location,l=>l.pathname)}-${Ft(a.stores.status,l=>l)}`;return u.jsx(im,{getResetKey:()=>i,onCatch:(l,o)=>{var f;if(Dt(l))(f=n.onCatch)==null||f.call(n,l,o);else throw l},errorComponent:({error:l})=>{var o;if(Dt(l))return(o=n.fallback)==null?void 0:o.call(n,l);throw l},children:n.children})}function xN(){return u.jsx("p",{children:"Not Found"})}function rr(n){return u.jsx(u.Fragment,{children:n.children})}function r0(n,a,i){return a.options.notFoundComponent?u.jsx(a.options.notFoundComponent,{...i}):n.options.defaultNotFoundComponent?u.jsx(n.options.defaultNotFoundComponent,{...i}):u.jsx(xN,{})}function bN(n){return null}function SN(){return bN(dn()),null}var l0=N.memo(function({matchId:a}){const i=dn(),l=i.stores.matchStores.get(a);l||wa();const o=Ft(i.stores.loadedAt,h=>h),f=Ft(l,h=>h);return u.jsx(wN,{router:i,matchId:a,resetKey:o,matchState:N.useMemo(()=>{var g;const h=f.routeId,m=(g=i.routesById[h].parentRoute)==null?void 0:g.id;return{routeId:h,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:m}},[f._displayPending,f.routeId,f.ssr,i.routesById])})});function wN({router:n,matchId:a,resetKey:i,matchState:l}){var R,j;const o=n.routesById[l.routeId],f=o.options.pendingComponent??n.options.defaultPendingComponent,h=f?u.jsx(f,{}):null,m=o.options.errorComponent??n.options.defaultErrorComponent,g=o.options.onCatch??n.options.defaultOnCatch,p=o.isRoot?o.options.notFoundComponent??((R=n.options.notFoundRoute)==null?void 0:R.options.component):o.options.notFoundComponent,x=l.ssr===!1||l.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||x)&&(o.options.wrapInSuspense??f??(((j=o.options.errorComponent)==null?void 0:j.preload)||x))?N.Suspense:rr,b=m?im:rr,S=p?yN:rr;return u.jsxs(o.isRoot?o.options.shellComponent??rr:rr,{children:[u.jsx(cu.Provider,{value:a,children:u.jsx(v,{fallback:h,children:u.jsx(b,{getResetKey:()=>i,errorComponent:m||rm,onCatch:(E,C)=>{if(Dt(E))throw E.routeId??(E.routeId=l.routeId),E;g==null||g(E,C)},children:u.jsx(S,{fallback:E=>{if(E.routeId??(E.routeId=l.routeId),!p||E.routeId&&E.routeId!==l.routeId||!E.routeId&&!o.isRoot)throw E;return N.createElement(p,E)},children:x||l._displayPending?u.jsx(q2,{fallback:h,children:u.jsx(bx,{matchId:a})}):u.jsx(bx,{matchId:a})})})})}),l.parentRouteId===ri?u.jsxs(u.Fragment,{children:[u.jsx(jN,{resetKey:i}),n.options.scrollRestoration&&Ub?u.jsx(SN,{}):null]}):null]})}function jN({resetKey:n}){const a=dn(),i=N.useRef(void 0);return Dl(()=>{const l=a.latestLocation.href;(i.current===void 0||i.current!==l)&&(a.emit({type:"onRendered",...lr(a.stores.location.get(),a.stores.resolvedLocation.get())}),i.current=l)},[a.latestLocation.state.__TSR_key,n,a]),null}var bx=N.memo(function({matchId:a}){const i=dn(),l=(x,v)=>{var b;return((b=i.getMatch(x.id))==null?void 0:b._nonReactive[v])??x._nonReactive[v]},o=i.stores.matchStores.get(a);o||wa();const f=Ft(o,x=>x),h=f.routeId,m=i.routesById[h],g=N.useMemo(()=>{var v;const x=(v=i.routesById[h].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:v({routeId:h,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return x?JSON.stringify(x):void 0},[h,f.loaderDeps,f._strictParams,f._strictSearch,i.options.defaultRemountDeps,i.routesById]),p=N.useMemo(()=>{const x=m.options.component??i.options.defaultComponent;return x?u.jsx(x,{},g):u.jsx(du,{})},[g,m.options.component,i.options.defaultComponent]);if(f._displayPending)throw l(f,"displayPendingPromise");if(f._forcePending)throw l(f,"minPendingPromise");if(f.status==="pending"){const x=m.options.pendingMinMs??i.options.defaultPendingMinMs;if(x){const v=i.getMatch(f.id);if(v&&!v._nonReactive.minPendingPromise){const b=Nr();v._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),v._nonReactive.minPendingPromise=void 0},x)}}throw l(f,"loadPromise")}if(f.status==="notFound")return Dt(f.error)||wa(),r0(i,m,f.error);if(f.status==="redirected")throw Zt(f.error)||wa(),l(f,"loadPromise");if(f.status==="error")throw f.error;return p}),du=N.memo(function(){const a=dn(),i=N.useContext(cu);let l,o=!1,f;{const p=i?a.stores.matchStores.get(i):void 0;[l,o]=Ft(p,x=>[x==null?void 0:x.routeId,(x==null?void 0:x.globalNotFound)??!1]),f=Ft(a.stores.matchesId,x=>x[x.findIndex(v=>v===i)+1])}const h=l?a.routesById[l]:void 0,m=a.options.defaultPendingComponent?u.jsx(a.options.defaultPendingComponent,{}):null;if(o)return h||wa(),r0(a,h,void 0);if(!f)return null;const g=u.jsx(l0,{matchId:f});return l===ri?u.jsx(N.Suspense,{fallback:m,children:g}):g});function NN(){const n=dn(),a=N.useRef({router:n,mounted:!1}),[i,l]=N.useState(!1),o=Ft(n.stores.isLoading,v=>v),f=Ft(n.stores.hasPending,v=>v),h=Yd(o),m=o||i||f,g=Yd(m),p=o||f,x=Yd(p);return n.startTransition=v=>{l(!0),N.startTransition(()=>{v(),l(!1)})},N.useEffect(()=>{const v=n.history.subscribe(n.load),b=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Sa(n.latestLocation.publicHref)!==Sa(b.publicHref)&&n.commitLocation({...b,replace:!0}),()=>{v()}},[n,n.history]),Dl(()=>{if(typeof window<"u"&&n.ssr||a.current.router===n&&a.current.mounted)return;a.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(b){console.error(b)}})()},[n]),Dl(()=>{h&&!o&&n.emit({type:"onLoad",...lr(n.stores.location.get(),n.stores.resolvedLocation.get())})},[h,n,o]),Dl(()=>{x&&!p&&n.emit({type:"onBeforeRouteMount",...lr(n.stores.location.get(),n.stores.resolvedLocation.get())})},[p,x,n]),Dl(()=>{if(g&&!m){const v=lr(n.stores.location.get(),n.stores.resolvedLocation.get());n.emit({type:"onResolved",...v}),t0(()=>{n.stores.status.set("idle"),n.stores.resolvedLocation.set(n.stores.location.get())})}},[m,g,n]),null}function RN(){const n=dn(),a=n.routesById[ri].options.pendingComponent??n.options.defaultPendingComponent,i=a?u.jsx(a,{}):null,l=u.jsxs(typeof document<"u"&&n.ssr?rr:N.Suspense,{fallback:i,children:[u.jsx(NN,{}),u.jsx(EN,{})]});return n.options.InnerWrap?u.jsx(n.options.InnerWrap,{children:l}):l}function EN(){const n=dn(),a=Ft(n.stores.firstId,o=>o),i=Ft(n.stores.loadedAt,o=>o),l=a?u.jsx(l0,{matchId:a}):null;return u.jsx(cu.Provider,{value:a,children:n.options.disableGlobalCatchBoundary?l:u.jsx(im,{getResetKey:()=>i,errorComponent:rm,onCatch:void 0,children:l})})}function CN(){const n=dn();return Ft(n.stores.matchRouteDeps,a=>a),N.useCallback(a=>{const{pending:i,caseSensitive:l,fuzzy:o,includeSearch:f,...h}=a;return n.matchRoute(h,{pending:i,caseSensitive:l,fuzzy:o,includeSearch:f})},[n])}var TN=n=>({createMutableStore:px,createReadonlyStore:px,batch:t0}),_N=n=>new AN(n),AN=class extends N2{constructor(n){super(n,TN)}};function MN({router:n,children:a,...i}){Hb(i)&&n.update({...n.options,...i,context:{...n.options.context,...i.context}});const l=u.jsx(Jb.Provider,{value:n,children:a});return n.options.Wrap?u.jsx(n.options.Wrap,{children:l}):l}function ON({router:n,...a}){return u.jsx(MN,{router:n,...a,children:u.jsx(RN,{})})}var Jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fs,rs,fr,Eb,DN=(Eb=class extends Jl{constructor(){super();ge(this,Fs);ge(this,rs);ge(this,fr);le(this,fr,a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){k(this,rs)||this.setEventListener(k(this,fr))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,rs))==null||a.call(this),le(this,rs,void 0))}setEventListener(a){var i;le(this,fr,a),(i=k(this,rs))==null||i.call(this),le(this,rs,a(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(a){k(this,Fs)!==a&&(le(this,Fs,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){var a;return typeof k(this,Fs)=="boolean"?k(this,Fs):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Fs=new WeakMap,rs=new WeakMap,fr=new WeakMap,Eb),om=new DN,zN={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},ls,Jh,Cb,kN=(Cb=class{constructor(){ge(this,ls,zN);ge(this,Jh,!1)}setTimeoutProvider(n){le(this,ls,n)}setTimeout(n,a){return k(this,ls).setTimeout(n,a)}clearTimeout(n){k(this,ls).clearTimeout(n)}setInterval(n,a){return k(this,ls).setInterval(n,a)}clearInterval(n){k(this,ls).clearInterval(n)}},ls=new WeakMap,Jh=new WeakMap,Cb),Ks=new kN;function LN(n){setTimeout(n,0)}var UN=typeof window>"u"||"Deno"in globalThis;function It(){}function BN(n,a){return typeof n=="function"?n(a):n}function Ch(n){return typeof n=="number"&&n>=0&&n!==1/0}function o0(n,a){return Math.max(n+(a||0)-Date.now(),0)}function vs(n,a){return typeof n=="function"?n(a):n}function cn(n,a){return typeof n=="function"?n(a):n}function Sx(n,a){const{type:i="all",exact:l,fetchStatus:o,predicate:f,queryKey:h,stale:m}=n;if(h){if(l){if(a.queryHash!==cm(h,a.options))return!1}else if(!Pl(a.queryKey,h))return!1}if(i!=="all"){const g=a.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||f&&!f(a))}function wx(n,a){const{exact:i,status:l,predicate:o,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(i){if(Hl(a.options.mutationKey)!==Hl(f))return!1}else if(!Pl(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function cm(n,a){return((a==null?void 0:a.queryKeyHashFn)||Hl)(n)}function Hl(n){return JSON.stringify(n,(a,i)=>_h(i)?Object.keys(i).sort().reduce((l,o)=>(l[o]=i[o],l),{}):i)}function Pl(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>Pl(n[i],a[i])):!1}var HN=Object.prototype.hasOwnProperty;function c0(n,a,i=0){if(n===a)return n;if(i>500)return a;const l=jx(n)&&jx(a);if(!l&&!(_h(n)&&_h(a)))return a;const f=(l?n:Object.keys(n)).length,h=l?a:Object.keys(a),m=h.length,g=l?new Array(m):{};let p=0;for(let x=0;x<m;x++){const v=l?x:h[x],b=n[v],S=a[v];if(b===S){g[v]=b,(l?x<f:HN.call(n,v))&&p++;continue}if(b===null||S===null||typeof b!="object"||typeof S!="object"){g[v]=S;continue}const R=c0(b,S,i+1);g[v]=R,R===b&&p++}return f===m&&p===f?n:g}function Th(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const i in n)if(n[i]!==a[i])return!1;return!0}function jx(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function _h(n){if(!Nx(n))return!1;const a=n.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!Nx(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Nx(n){return Object.prototype.toString.call(n)==="[object Object]"}function PN(n){return new Promise(a=>{Ks.setTimeout(a,n)})}function Ah(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?c0(n,a):a}function qN(n,a,i=0){const l=[...n,a];return i&&l.length>i?l.slice(1):l}function GN(n,a,i=0){const l=[a,...n];return i&&l.length>i?l.slice(0,-1):l}var um=Symbol();function u0(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===um?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function f0(n,a){return typeof n=="function"?n(...a):!!n}function QN(n,a,i){let l=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=a()),l||(l=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),n}var ql=(()=>{let n=()=>UN;return{isServer(){return n()},setIsServer(a){n=a}}})();function Mh(){let n,a;const i=new Promise((o,f)=>{n=o,a=f});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}),n(o)},i.reject=o=>{l({status:"rejected",reason:o}),a(o)},i}var VN=LN;function YN(){let n=[],a=0,i=m=>{m()},l=m=>{m()},o=VN;const f=m=>{a?n.push(m):o(()=>{i(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{l(()=>{m.forEach(g=>{i(g)})})})};return{batch:m=>{let g;a++;try{g=m()}finally{a--,a||h()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{i=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{o=m}}}var Ct=YN(),dr,os,hr,Tb,XN=(Tb=class extends Jl{constructor(){super();ge(this,dr,!0);ge(this,os);ge(this,hr);le(this,hr,a=>{if(typeof window<"u"&&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(){k(this,os)||this.setEventListener(k(this,hr))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,os))==null||a.call(this),le(this,os,void 0))}setEventListener(a){var i;le(this,hr,a),(i=k(this,os))==null||i.call(this),le(this,os,a(this.setOnline.bind(this)))}setOnline(a){k(this,dr)!==a&&(le(this,dr,a),this.listeners.forEach(l=>{l(a)}))}isOnline(){return k(this,dr)}},dr=new WeakMap,os=new WeakMap,hr=new WeakMap,Tb),$c=new XN;function IN(n){return Math.min(1e3*2**n,3e4)}function d0(n){return(n??"online")==="online"?$c.isOnline():!0}var Oh=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function h0(n){let a=!1,i=0,l;const o=Mh(),f=()=>o.status!=="pending",h=j=>{var E;if(!f()){const C=new Oh(j);b(C),(E=n.onCancel)==null||E.call(n,C)}},m=()=>{a=!0},g=()=>{a=!1},p=()=>om.isFocused()&&(n.networkMode==="always"||$c.isOnline())&&n.canRun(),x=()=>d0(n.networkMode)&&n.canRun(),v=j=>{f()||(l==null||l(),o.resolve(j))},b=j=>{f()||(l==null||l(),o.reject(j))},S=()=>new Promise(j=>{var E;l=C=>{(f()||p())&&j(C)},(E=n.onPause)==null||E.call(n)}).then(()=>{var j;l=void 0,f()||(j=n.onContinue)==null||j.call(n)}),R=()=>{if(f())return;let j;const E=i===0?n.initialPromise:void 0;try{j=E??n.fn()}catch(C){j=Promise.reject(C)}Promise.resolve(j).then(v).catch(C=>{var Y;if(f())return;const _=n.retry??(ql.isServer()?0:3),U=n.retryDelay??IN,T=typeof U=="function"?U(i,C):U,P=_===!0||typeof _=="number"&&i<_||typeof _=="function"&&_(i,C);if(a||!P){b(C);return}i++,(Y=n.onFail)==null||Y.call(n,i,C),PN(T).then(()=>p()?void 0:S()).then(()=>{a?b(C):R()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(l==null||l(),o),cancelRetry:m,continueRetry:g,canStart:x,start:()=>(x()?R():S().then(R),o)}}var Ws,_b,m0=(_b=class{constructor(){ge(this,Ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ch(this.gcTime)&&le(this,Ws,Ks.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ql.isServer()?1/0:300*1e3))}clearGcTimeout(){k(this,Ws)!==void 0&&(Ks.clearTimeout(k(this,Ws)),le(this,Ws,void 0))}},Ws=new WeakMap,_b);function KN(n){return{onFetch:(a,i)=>{var x,v,b,S,R;const l=a.options,o=(b=(v=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:v.fetchMore)==null?void 0:b.direction,f=((S=a.state.data)==null?void 0:S.pages)||[],h=((R=a.state.data)==null?void 0:R.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let j=!1;const E=U=>{QN(U,()=>a.signal,()=>j=!0)},C=u0(a.options,a.fetchOptions),_=async(U,T,P)=>{if(j)return Promise.reject(a.signal.reason);if(T==null&&U.pages.length)return Promise.resolve(U);const M=(()=>{const W={client:a.client,queryKey:a.queryKey,pageParam:T,direction:P?"backward":"forward",meta:a.options.meta};return E(W),W})(),D=await C(M),{maxPages:L}=a.options,q=P?GN:qN;return{pages:q(U.pages,D,L),pageParams:q(U.pageParams,T,L)}};if(o&&f.length){const U=o==="backward",T=U?ZN:Rx,P={pages:f,pageParams:h},Y=T(l,P);m=await _(P,Y,U)}else{const U=n??f.length;do{const T=g===0?h[0]??l.initialPageParam:Rx(l,m);if(g>0&&T==null)break;m=await _(m,T),g++}while(g<U)}return m};a.options.persister?a.fetchFn=()=>{var j,E;return(E=(j=a.options).persister)==null?void 0:E.call(j,p,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i)}:a.fetchFn=p}}}function Rx(n,{pages:a,pageParams:i}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,i[l],i):void 0}function ZN(n,{pages:a,pageParams:i}){var l;return a.length>0?(l=n.getPreviousPageParam)==null?void 0:l.call(n,a[0],a,i[0],i):void 0}var mr,$s,pr,Nn,Js,vt,Xl,ei,on,p0,va,Ab,FN=(Ab=class extends m0{constructor(a){super();ge(this,on);ge(this,mr);ge(this,$s);ge(this,pr);ge(this,Nn);ge(this,Js);ge(this,vt);ge(this,Xl);ge(this,ei);le(this,ei,!1),le(this,Xl,a.defaultOptions),this.setOptions(a.options),this.observers=[],le(this,Js,a.client),le(this,Nn,k(this,Js).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,le(this,$s,Cx(this.options)),this.state=a.state??k(this,$s),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return k(this,mr)}get promise(){var a;return(a=k(this,vt))==null?void 0:a.promise}setOptions(a){if(this.options={...k(this,Xl),...a},a!=null&&a._type&&le(this,mr,a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Cx(this.options);i.data!==void 0&&(this.setState(Ex(i.data,i.dataUpdatedAt)),le(this,$s,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Nn).remove(this)}setData(a,i){const l=Ah(this.state.data,a,this.options);return Te(this,on,va).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(a){Te(this,on,va).call(this,{type:"setState",state:a})}cancel(a){var l,o;const i=(l=k(this,vt))==null?void 0:l.promise;return(o=k(this,vt))==null||o.cancel(a),i?i.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return k(this,$s)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>cn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===um||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>vs(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:!o0(this.state.dataUpdatedAt,a)}onFocus(){var i;const a=this.observers.find(l=>l.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(i=k(this,vt))==null||i.continue()}onOnline(){var i;const a=this.observers.find(l=>l.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(i=k(this,vt))==null||i.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,Nn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(k(this,vt)&&(k(this,ei)||Te(this,on,p0).call(this)?k(this,vt).cancel({revert:!0}):k(this,vt).cancelRetry()),this.scheduleGc()),k(this,Nn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,on,va).call(this,{type:"invalidate"})}async fetch(a,i){var p,x,v,b,S,R,j,E,C,_,U;if(this.state.fetchStatus!=="idle"&&((p=k(this,vt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(k(this,vt))return k(this,vt).continueRetry(),k(this,vt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const T=this.observers.find(P=>P.options.queryFn);T&&this.setOptions(T.options)}const l=new AbortController,o=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(le(this,ei,!0),l.signal)})},f=()=>{const T=u0(this.options,i),Y=(()=>{const M={client:k(this,Js),queryKey:this.queryKey,meta:this.meta};return o(M),M})();return le(this,ei,!1),this.options.persister?this.options.persister(T,Y,this):T(Y)},m=(()=>{const T={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:k(this,Js),state:this.state,fetchFn:f};return o(T),T})(),g=k(this,mr)==="infinite"?KN(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),le(this,pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&Te(this,on,va).call(this,{type:"fetch",meta:(v=m.fetchOptions)==null?void 0:v.meta}),le(this,vt,h0({initialPromise:i==null?void 0:i.initialPromise,fn:m.fetchFn,onCancel:T=>{T instanceof Oh&&T.revert&&this.setState({...k(this,pr),fetchStatus:"idle"}),l.abort()},onFail:(T,P)=>{Te(this,on,va).call(this,{type:"failed",failureCount:T,error:P})},onPause:()=>{Te(this,on,va).call(this,{type:"pause"})},onContinue:()=>{Te(this,on,va).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const T=await k(this,vt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(S=(b=k(this,Nn).config).onSuccess)==null||S.call(b,T,this),(j=(R=k(this,Nn).config).onSettled)==null||j.call(R,T,this.state.error,this),T}catch(T){if(T instanceof Oh){if(T.silent)return k(this,vt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Te(this,on,va).call(this,{type:"error",error:T}),(C=(E=k(this,Nn).config).onError)==null||C.call(E,T,this),(U=(_=k(this,Nn).config).onSettled)==null||U.call(_,this.state.data,T,this),T}finally{this.scheduleGc()}}},mr=new WeakMap,$s=new WeakMap,pr=new WeakMap,Nn=new WeakMap,Js=new WeakMap,vt=new WeakMap,Xl=new WeakMap,ei=new WeakMap,on=new WeakSet,p0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},va=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,...g0(l.data,this.options),fetchMeta:a.meta??null};case"success":const o={...l,...Ex(a.data,a.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return le(this,pr,a.manual?o:void 0),o;case"error":const f=a.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...a.state}}};this.state=i(this.state),Ct.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),k(this,Nn).notify({query:this,type:"updated",action:a})})},Ab);function g0(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:d0(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Ex(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Cx(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,l=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.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 Xt,Ae,Il,Ut,ti,gr,ya,cs,Kl,vr,yr,ni,ai,us,xr,He,zl,Dh,zh,kh,Lh,Uh,Bh,Hh,v0,Mb,WN=(Mb=class extends Jl{constructor(a,i){super();ge(this,He);ge(this,Xt);ge(this,Ae);ge(this,Il);ge(this,Ut);ge(this,ti);ge(this,gr);ge(this,ya);ge(this,cs);ge(this,Kl);ge(this,vr);ge(this,yr);ge(this,ni);ge(this,ai);ge(this,us);ge(this,xr,new Set);this.options=i,le(this,Xt,a),le(this,cs,null),le(this,ya,Mh()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Ae).addObserver(this),Tx(k(this,Ae),this.options)?Te(this,He,zl).call(this):this.updateResult(),Te(this,He,Lh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ph(k(this,Ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ph(k(this,Ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,He,Uh).call(this),Te(this,He,Bh).call(this),k(this,Ae).removeObserver(this)}setOptions(a){const i=this.options,l=k(this,Ae);if(this.options=k(this,Xt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cn(this.options.enabled,k(this,Ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,He,Hh).call(this),k(this,Ae).setOptions(this.options),i._defaulted&&!Th(this.options,i)&&k(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Ae),observer:this});const o=this.hasListeners();o&&_x(k(this,Ae),l,this.options,i)&&Te(this,He,zl).call(this),this.updateResult(),o&&(k(this,Ae)!==l||cn(this.options.enabled,k(this,Ae))!==cn(i.enabled,k(this,Ae))||vs(this.options.staleTime,k(this,Ae))!==vs(i.staleTime,k(this,Ae)))&&Te(this,He,Dh).call(this);const f=Te(this,He,zh).call(this);o&&(k(this,Ae)!==l||cn(this.options.enabled,k(this,Ae))!==cn(i.enabled,k(this,Ae))||f!==k(this,us))&&Te(this,He,kh).call(this,f)}getOptimisticResult(a){const i=k(this,Xt).getQueryCache().build(k(this,Xt),a),l=this.createResult(i,a);return JN(this,l)&&(le(this,Ut,l),le(this,gr,this.options),le(this,ti,k(this,Ae).state)),l}getCurrentResult(){return k(this,Ut)}trackResult(a,i){return new Proxy(a,{get:(l,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,ya).status==="pending"&&k(this,ya).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(a){k(this,xr).add(a)}getCurrentQuery(){return k(this,Ae)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=k(this,Xt).defaultQueryOptions(a),l=k(this,Xt).getQueryCache().build(k(this,Xt),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(a){return Te(this,He,zl).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ut)))}createResult(a,i){var L;const l=k(this,Ae),o=this.options,f=k(this,Ut),h=k(this,ti),m=k(this,gr),p=a!==l?a.state:k(this,Il),{state:x}=a;let v={...x},b=!1,S;if(i._optimisticResults){const q=this.hasListeners(),W=!q&&Tx(a,i),ee=q&&_x(a,l,i,o);(W||ee)&&(v={...v,...g0(x.data,a.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:R,errorUpdatedAt:j,status:E}=v;S=v.data;let C=!1;if(i.placeholderData!==void 0&&S===void 0&&E==="pending"){let q;f!=null&&f.isPlaceholderData&&i.placeholderData===(m==null?void 0:m.placeholderData)?(q=f.data,C=!0):q=typeof i.placeholderData=="function"?i.placeholderData((L=k(this,yr))==null?void 0:L.state.data,k(this,yr)):i.placeholderData,q!==void 0&&(E="success",S=Ah(f==null?void 0:f.data,q,i),b=!0)}if(i.select&&S!==void 0&&!C)if(f&&S===(h==null?void 0:h.data)&&i.select===k(this,Kl))S=k(this,vr);else try{le(this,Kl,i.select),S=i.select(S),S=Ah(f==null?void 0:f.data,S,i),le(this,vr,S),le(this,cs,null)}catch(q){le(this,cs,q)}k(this,cs)&&(R=k(this,cs),S=k(this,vr),j=Date.now(),E="error");const _=v.fetchStatus==="fetching",U=E==="pending",T=E==="error",P=U&&_,Y=S!==void 0,D={status:E,fetchStatus:v.fetchStatus,isPending:U,isSuccess:E==="success",isError:T,isInitialLoading:P,isLoading:P,data:S,dataUpdatedAt:v.dataUpdatedAt,error:R,errorUpdatedAt:j,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:_,isRefetching:_&&!U,isLoadingError:T&&!Y,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:T&&Y,isStale:fm(a,i),refetch:this.refetch,promise:k(this,ya),isEnabled:cn(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const q=D.data!==void 0,W=D.status==="error"&&!q,ee=de=>{W?de.reject(D.error):q&&de.resolve(D.data)},ne=()=>{const de=le(this,ya,D.promise=Mh());ee(de)},ae=k(this,ya);switch(ae.status){case"pending":a.queryHash===l.queryHash&&ee(ae);break;case"fulfilled":(W||D.data!==ae.value)&&ne();break;case"rejected":(!W||D.error!==ae.reason)&&ne();break}}return D}updateResult(){const a=k(this,Ut),i=this.createResult(k(this,Ae),this.options);if(le(this,ti,k(this,Ae).state),le(this,gr,this.options),k(this,ti).data!==void 0&&le(this,yr,k(this,Ae)),Th(i,a))return;le(this,Ut,i);const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!k(this,xr).size)return!0;const h=new Set(f??k(this,xr));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Ut)).some(m=>{const g=m;return k(this,Ut)[g]!==a[g]&&h.has(g)})};Te(this,He,v0).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,He,Lh).call(this)}},Xt=new WeakMap,Ae=new WeakMap,Il=new WeakMap,Ut=new WeakMap,ti=new WeakMap,gr=new WeakMap,ya=new WeakMap,cs=new WeakMap,Kl=new WeakMap,vr=new WeakMap,yr=new WeakMap,ni=new WeakMap,ai=new WeakMap,us=new WeakMap,xr=new WeakMap,He=new WeakSet,zl=function(a){Te(this,He,Hh).call(this);let i=k(this,Ae).fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(It)),i},Dh=function(){Te(this,He,Uh).call(this);const a=vs(this.options.staleTime,k(this,Ae));if(ql.isServer()||k(this,Ut).isStale||!Ch(a))return;const l=o0(k(this,Ut).dataUpdatedAt,a)+1;le(this,ni,Ks.setTimeout(()=>{k(this,Ut).isStale||this.updateResult()},l))},zh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Ae)):this.options.refetchInterval)??!1},kh=function(a){Te(this,He,Bh).call(this),le(this,us,a),!(ql.isServer()||cn(this.options.enabled,k(this,Ae))===!1||!Ch(k(this,us))||k(this,us)===0)&&le(this,ai,Ks.setInterval(()=>{(this.options.refetchIntervalInBackground||om.isFocused())&&Te(this,He,zl).call(this)},k(this,us)))},Lh=function(){Te(this,He,Dh).call(this),Te(this,He,kh).call(this,Te(this,He,zh).call(this))},Uh=function(){k(this,ni)!==void 0&&(Ks.clearTimeout(k(this,ni)),le(this,ni,void 0))},Bh=function(){k(this,ai)!==void 0&&(Ks.clearInterval(k(this,ai)),le(this,ai,void 0))},Hh=function(){const a=k(this,Xt).getQueryCache().build(k(this,Xt),this.options);if(a===k(this,Ae))return;const i=k(this,Ae);le(this,Ae,a),le(this,Il,a.state),this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))},v0=function(a){Ct.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(k(this,Ut))}),k(this,Xt).getQueryCache().notify({query:k(this,Ae),type:"observerResultsUpdated"})})},Mb);function $N(n,a){return cn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&cn(a.retryOnMount,n)===!1)}function Tx(n,a){return $N(n,a)||n.state.data!==void 0&&Ph(n,a,a.refetchOnMount)}function Ph(n,a,i){if(cn(a.enabled,n)!==!1&&vs(a.staleTime,n)!=="static"){const l=typeof i=="function"?i(n):i;return l==="always"||l!==!1&&fm(n,a)}return!1}function _x(n,a,i,l){return(n!==a||cn(l.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&fm(n,i)}function fm(n,a){return cn(a.enabled,n)!==!1&&n.isStaleByTime(vs(a.staleTime,n))}function JN(n,a){return!Th(n.getCurrentResult(),a)}var Zl,Vn,Mt,si,Yn,as,Ob,eR=(Ob=class extends m0{constructor(a){super();ge(this,Yn);ge(this,Zl);ge(this,Vn);ge(this,Mt);ge(this,si);le(this,Zl,a.client),this.mutationId=a.mutationId,le(this,Mt,a.mutationCache),le(this,Vn,[]),this.state=a.state||tR(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){k(this,Vn).includes(a)||(k(this,Vn).push(a),this.clearGcTimeout(),k(this,Mt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){le(this,Vn,k(this,Vn).filter(i=>i!==a)),this.scheduleGc(),k(this,Mt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Vn).length||(this.state.status==="pending"?this.scheduleGc():k(this,Mt).remove(this))}continue(){var a;return((a=k(this,si))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var h,m,g,p,x,v,b,S,R,j,E,C,_,U,T,P,Y,M;const i=()=>{Te(this,Yn,as).call(this,{type:"continue"})},l={client:k(this,Zl),meta:this.options.meta,mutationKey:this.options.mutationKey};le(this,si,h0({fn:()=>this.options.mutationFn?this.options.mutationFn(a,l):Promise.reject(new Error("No mutationFn found")),onFail:(D,L)=>{Te(this,Yn,as).call(this,{type:"failed",failureCount:D,error:L})},onPause:()=>{Te(this,Yn,as).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Mt).canRun(this)}));const o=this.state.status==="pending",f=!k(this,si).canStart();try{if(o)i();else{Te(this,Yn,as).call(this,{type:"pending",variables:a,isPaused:f}),k(this,Mt).config.onMutate&&await k(this,Mt).config.onMutate(a,this,l);const L=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,a,l));L!==this.state.context&&Te(this,Yn,as).call(this,{type:"pending",context:L,variables:a,isPaused:f})}const D=await k(this,si).start();return await((p=(g=k(this,Mt).config).onSuccess)==null?void 0:p.call(g,D,a,this.state.context,this,l)),await((v=(x=this.options).onSuccess)==null?void 0:v.call(x,D,a,this.state.context,l)),await((S=(b=k(this,Mt).config).onSettled)==null?void 0:S.call(b,D,null,this.state.variables,this.state.context,this,l)),await((j=(R=this.options).onSettled)==null?void 0:j.call(R,D,null,a,this.state.context,l)),Te(this,Yn,as).call(this,{type:"success",data:D}),D}catch(D){try{await((C=(E=k(this,Mt).config).onError)==null?void 0:C.call(E,D,a,this.state.context,this,l))}catch(L){Promise.reject(L)}try{await((U=(_=this.options).onError)==null?void 0:U.call(_,D,a,this.state.context,l))}catch(L){Promise.reject(L)}try{await((P=(T=k(this,Mt).config).onSettled)==null?void 0:P.call(T,void 0,D,this.state.variables,this.state.context,this,l))}catch(L){Promise.reject(L)}try{await((M=(Y=this.options).onSettled)==null?void 0:M.call(Y,void 0,D,a,this.state.context,l))}catch(L){Promise.reject(L)}throw Te(this,Yn,as).call(this,{type:"error",error:D}),D}finally{k(this,Mt).runNext(this)}}},Zl=new WeakMap,Vn=new WeakMap,Mt=new WeakMap,si=new WeakMap,Yn=new WeakSet,as=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),Ct.batch(()=>{k(this,Vn).forEach(l=>{l.onMutationUpdate(a)}),k(this,Mt).notify({mutation:this,type:"updated",action:a})})},Ob);function tR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xa,Mn,Fl,Db,nR=(Db=class extends Jl{constructor(a={}){super();ge(this,xa);ge(this,Mn);ge(this,Fl);this.config=a,le(this,xa,new Set),le(this,Mn,new Map),le(this,Fl,0)}build(a,i,l){const o=new eR({client:a,mutationCache:this,mutationId:++wc(this,Fl)._,options:a.defaultMutationOptions(i),state:l});return this.add(o),o}add(a){k(this,xa).add(a);const i=Cc(a);if(typeof i=="string"){const l=k(this,Mn).get(i);l?l.push(a):k(this,Mn).set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,xa).delete(a)){const i=Cc(a);if(typeof i=="string"){const l=k(this,Mn).get(i);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&k(this,Mn).delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Cc(a);if(typeof i=="string"){const l=k(this,Mn).get(i),o=l==null?void 0:l.find(f=>f.state.status==="pending");return!o||o===a}else return!0}runNext(a){var l;const i=Cc(a);if(typeof i=="string"){const o=(l=k(this,Mn).get(i))==null?void 0:l.find(f=>f!==a&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ct.batch(()=>{k(this,xa).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,xa).clear(),k(this,Mn).clear()})}getAll(){return Array.from(k(this,xa))}find(a){const i={exact:!0,...a};return this.getAll().find(l=>wx(i,l))}findAll(a={}){return this.getAll().filter(i=>wx(a,i))}notify(a){Ct.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Ct.batch(()=>Promise.all(a.map(i=>i.continue().catch(It))))}},xa=new WeakMap,Mn=new WeakMap,Fl=new WeakMap,Db);function Cc(n){var a;return(a=n.options.scope)==null?void 0:a.id}var Xn,zb,aR=(zb=class extends Jl{constructor(a={}){super();ge(this,Xn);this.config=a,le(this,Xn,new Map)}build(a,i,l){const o=i.queryKey,f=i.queryHash??cm(o,i);let h=this.get(f);return h||(h=new FN({client:a,queryKey:o,queryHash:f,options:a.defaultQueryOptions(i),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){k(this,Xn).has(a.queryHash)||(k(this,Xn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=k(this,Xn).get(a.queryHash);i&&(a.destroy(),i===a&&k(this,Xn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Ct.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Xn).get(a)}getAll(){return[...k(this,Xn).values()]}find(a){const i={exact:!0,...a};return this.getAll().find(l=>Sx(i,l))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(l=>Sx(a,l)):i}notify(a){Ct.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Xn=new WeakMap,zb),tt,fs,ds,br,Sr,hs,wr,jr,kb,sR=(kb=class{constructor(n={}){ge(this,tt);ge(this,fs);ge(this,ds);ge(this,br);ge(this,Sr);ge(this,hs);ge(this,wr);ge(this,jr);le(this,tt,n.queryCache||new aR),le(this,fs,n.mutationCache||new nR),le(this,ds,n.defaultOptions||{}),le(this,br,new Map),le(this,Sr,new Map),le(this,hs,0)}mount(){wc(this,hs)._++,k(this,hs)===1&&(le(this,wr,om.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,tt).onFocus())})),le(this,jr,$c.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,tt).onOnline())})))}unmount(){var n,a;wc(this,hs)._--,k(this,hs)===0&&((n=k(this,wr))==null||n.call(this),le(this,wr,void 0),(a=k(this,jr))==null||a.call(this),le(this,jr,void 0))}isFetching(n){return k(this,tt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,fs).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const a=this.defaultQueryOptions({queryKey:n});return(i=k(this,tt).get(a.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),i=k(this,tt).build(this,a),l=i.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(vs(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return k(this,tt).findAll(n).map(({queryKey:a,state:i})=>{const l=i.data;return[a,l]})}setQueryData(n,a,i){const l=this.defaultQueryOptions({queryKey:n}),o=k(this,tt).get(l.queryHash),f=o==null?void 0:o.state.data,h=BN(a,f);if(h!==void 0)return k(this,tt).build(this,l).setData(h,{...i,manual:!0})}setQueriesData(n,a,i){return Ct.batch(()=>k(this,tt).findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,i)]))}getQueryState(n){var i;const a=this.defaultQueryOptions({queryKey:n});return(i=k(this,tt).get(a.queryHash))==null?void 0:i.state}removeQueries(n){const a=k(this,tt);Ct.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=k(this,tt);return Ct.batch(()=>(i.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},l=Ct.batch(()=>k(this,tt).findAll(n).map(o=>o.cancel(i)));return Promise.all(l).then(It).catch(It)}invalidateQueries(n,a={}){return Ct.batch(()=>(k(this,tt).findAll(n).forEach(i=>{i.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},l=Ct.batch(()=>k(this,tt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,i);return i.throwOnError||(f=f.catch(It)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(It)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=k(this,tt).build(this,a);return i.isStaleByTime(vs(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(It).catch(It)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(It).catch(It)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return $c.isOnline()?k(this,fs).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,tt)}getMutationCache(){return k(this,fs)}getDefaultOptions(){return k(this,ds)}setDefaultOptions(n){le(this,ds,n)}setQueryDefaults(n,a){k(this,br).set(Hl(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,br).values()],i={};return a.forEach(l=>{Pl(n,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(n,a){k(this,Sr).set(Hl(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,Sr).values()],i={};return a.forEach(l=>{Pl(n,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,ds).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=cm(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===um&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,ds).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,tt).clear(),k(this,fs).clear()}},tt=new WeakMap,fs=new WeakMap,ds=new WeakMap,br=new WeakMap,Sr=new WeakMap,hs=new WeakMap,wr=new WeakMap,jr=new WeakMap,kb),y0=N.createContext(void 0),eo=n=>{const a=N.useContext(y0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},iR=({client:n,children:a})=>(N.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(y0.Provider,{value:n,children:a})),x0=N.createContext(!1),rR=()=>N.useContext(x0);x0.Provider;function lR(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var oR=N.createContext(lR()),cR=()=>N.useContext(oR),uR=(n,a,i)=>{const l=i!=null&&i.state.error&&typeof n.throwOnError=="function"?f0(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(a.isReset()||(n.retryOnMount=!1))},fR=n=>{N.useEffect(()=>{n.clearReset()},[n])},dR=({result:n,errorResetBoundary:a,throwOnError:i,query:l,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&l&&(o&&n.data===void 0||f0(i,[n.error,l])),hR=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...o)=>i(l(...o)):i(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},mR=(n,a)=>n.isLoading&&n.isFetching&&!a,pR=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,Ax=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function gR(n,a,i){var S,R,j,E;const l=rR(),o=cR(),f=eo(),h=f.defaultQueryOptions(n);(R=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||R.call(S,h);const m=f.getQueryCache().get(h.queryHash),g=n.subscribed!==!1;h._optimisticResults=l?"isRestoring":g?"optimistic":void 0,hR(h),uR(h,o,m),fR(o);const p=!f.getQueryCache().get(h.queryHash),[x]=N.useState(()=>new a(f,h)),v=x.getOptimisticResult(h),b=!l&&g;if(N.useSyncExternalStore(N.useCallback(C=>{const _=b?x.subscribe(Ct.batchCalls(C)):It;return x.updateResult(),_},[x,b]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),N.useEffect(()=>{x.setOptions(h)},[h,x]),pR(h,v))throw Ax(h,x,o);if(dR({result:v,errorResetBoundary:o,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw v.error;if((E=(j=f.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,v),h.experimental_prefetchInRender&&!ql.isServer()&&mR(v,l)){const C=p?Ax(h,x,o):m==null?void 0:m.promise;C==null||C.catch(It).finally(()=>{x.updateResult()})}return h.notifyOnChangeProps?v:x.trackResult(v)}function ci(n,a){return gR(n,WN)}/**
|
|
66
|
-
* @license lucide-react v0.511.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const vR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,l)=>l?l.toUpperCase():i.toLowerCase()),Mx=n=>{const a=yR(n);return a.charAt(0).toUpperCase()+a.slice(1)},b0=(...n)=>n.filter((a,i,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===i).join(" ").trim(),xR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
71
|
-
* @license lucide-react v0.511.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/var bR={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"};/**
|
|
76
|
-
* @license lucide-react v0.511.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const SR=N.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:f,iconNode:h,...m},g)=>N.createElement("svg",{ref:g,...bR,width:a,height:a,stroke:n,strokeWidth:l?Number(i)*24/Number(a):i,className:b0("lucide",o),...!f&&!xR(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,x])=>N.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
|
|
81
|
-
* @license lucide-react v0.511.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const ke=(n,a)=>{const i=N.forwardRef(({className:l,...o},f)=>N.createElement(SR,{ref:f,iconNode:a,className:b0(`lucide-${vR(Mx(n))}`,`lucide-${n}`,l),...o}));return i.displayName=Mx(n),i};/**
|
|
86
|
-
* @license lucide-react v0.511.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const wR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qh=ke("arrow-right",wR);/**
|
|
91
|
-
* @license lucide-react v0.511.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const jR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Rr=ke("chevron-left",jR);/**
|
|
96
|
-
* @license lucide-react v0.511.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const NR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ox=ke("chevron-right",NR);/**
|
|
101
|
-
* @license lucide-react v0.511.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const RR=[["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"}]],S0=ke("circle-alert",RR);/**
|
|
106
|
-
* @license lucide-react v0.511.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const ER=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],to=ke("circle-check",ER);/**
|
|
111
|
-
* @license lucide-react v0.511.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const CR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Dx=ke("circle-x",CR);/**
|
|
116
|
-
* @license lucide-react v0.511.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const TR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],_R=ke("clock-3",TR);/**
|
|
121
|
-
* @license lucide-react v0.511.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const AR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],MR=ke("clock",AR);/**
|
|
126
|
-
* @license lucide-react v0.511.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const OR=[["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"}]],w0=ke("database-zap",OR);/**
|
|
131
|
-
* @license lucide-react v0.511.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const DR=[["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"}]],zR=ke("database",DR);/**
|
|
136
|
-
* @license lucide-react v0.511.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const kR=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],LR=ke("file-code-2",kR);/**
|
|
141
|
-
* @license lucide-react v0.511.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const UR=[["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"}]],dm=ke("file-text",UR);/**
|
|
146
|
-
* @license lucide-react v0.511.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const BR=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],HR=ke("folder-kanban",BR);/**
|
|
151
|
-
* @license lucide-react v0.511.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const PR=[["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"}]],Gh=ke("folder-open",PR);/**
|
|
156
|
-
* @license lucide-react v0.511.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const qR=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],GR=ke("gauge",qR);/**
|
|
161
|
-
* @license lucide-react v0.511.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const QR=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],VR=ke("git-branch",QR);/**
|
|
166
|
-
* @license lucide-react v0.511.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const YR=[["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"}]],XR=ke("globe",YR);/**
|
|
171
|
-
* @license lucide-react v0.511.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const IR=[["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"}]],j0=ke("layers",IR);/**
|
|
176
|
-
* @license lucide-react v0.511.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const KR=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],ZR=ke("layout-dashboard",KR);/**
|
|
181
|
-
* @license lucide-react v0.511.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const FR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gl=ke("loader-circle",FR);/**
|
|
186
|
-
* @license lucide-react v0.511.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const WR=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],$R=ke("message-square",WR);/**
|
|
191
|
-
* @license lucide-react v0.511.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const JR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],eE=ke("moon",JR);/**
|
|
196
|
-
* @license lucide-react v0.511.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const tE=[["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"}]],nE=ke("network",tE);/**
|
|
201
|
-
* @license lucide-react v0.511.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const aE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],sE=ke("panel-left",aE);/**
|
|
206
|
-
* @license lucide-react v0.511.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const iE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],zx=ke("plus",iE);/**
|
|
211
|
-
* @license lucide-react v0.511.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const rE=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],lE=ke("scroll-text",rE);/**
|
|
216
|
-
* @license lucide-react v0.511.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const oE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hm=ke("search",oE);/**
|
|
221
|
-
* @license lucide-react v0.511.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const cE=[["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"}]],uE=ke("settings",cE);/**
|
|
226
|
-
* @license lucide-react v0.511.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const fE=[["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"}]],dE=ke("sun",fE);/**
|
|
231
|
-
* @license lucide-react v0.511.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const hE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],mE=ke("target",hE);/**
|
|
236
|
-
* @license lucide-react v0.511.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const pE=[["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"}]],mm=ke("triangle-alert",pE);/**
|
|
241
|
-
* @license lucide-react v0.511.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const gE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qh=ke("x",gE),vE="/api";async function An(n,a){const i=await fetch(`${vE}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!i.ok){const l=await i.json().catch(()=>({}));throw new Error(l.error??`API error: ${i.status}`)}return i.json()}const ys={getDashboard:()=>An("/dashboard"),listWorkspaces:()=>An("/workspaces"),getWorkspace:n=>An(`/workspaces/${n}`),createWorkspace:n=>An("/workspaces",{method:"POST",body:JSON.stringify(n)}),deleteWorkspace:n=>An(`/workspaces/${n}`,{method:"DELETE"}),getWorkspaceGraph:n=>An(`/workspaces/${n}/graph`),getDocuments:(n={})=>{const a=new URLSearchParams;return n.limit&&a.set("limit",String(n.limit)),n.offset&&a.set("offset",String(n.offset)),An(`/documents?${a}`)},runQuery:n=>An("/query",{method:"POST",body:JSON.stringify(n)}),startIndexRun:(n,a)=>An(`/workspaces/${n}/index`,{method:"POST",body:JSON.stringify({mode:a??"incremental"})}),getIndexStatus:n=>An(`/workspaces/${n}/index`),validatePath:n=>An("/validate-path",{method:"POST",body:JSON.stringify({rootPath:n})})},pm={queryKey:["dashboard"],queryFn:ys.getDashboard},gm={queryKey:["workspaces"],queryFn:ys.listWorkspaces},Er=n=>({queryKey:["workspace",n],queryFn:()=>ys.getWorkspace(n)}),hu=n=>({queryKey:["workspace-graph",n],queryFn:()=>ys.getWorkspaceGraph(n)}),Jc=(n,a)=>({queryKey:["documents",n,a],queryFn:()=>ys.getDocuments({limit:a,offset:(n-1)*a})}),N0={queryKey:["settings","env"],queryFn:async()=>{const n=await fetch("/api/settings/env");if(!n.ok)throw new Error(`Failed to fetch env settings: ${n.status} ${n.statusText}`);return n.json()},staleTime:1/0},Kn=10;function yE(n,a){const i=Math.max(1,Math.ceil(n.length/Kn));return{paged:n.slice((a-1)*Kn,a*Kn),totalPages:i}}function R0({currentPage:n,totalPages:a,basePath:i}){return a<=1?null:u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[n>1?u.jsxs(dt,{to:i,search:{page:n-1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:[u.jsx(Rr,{className:"h-3.5 w-3.5"}),"Previous"]}):u.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:[u.jsx(Rr,{className:"h-3.5 w-3.5"}),"Previous"]}),u.jsxs("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",n," of ",a]}),n<a?u.jsxs(dt,{to:i,search:{page:n+1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:["Next",u.jsx(Ox,{className:"h-3.5 w-3.5"})]}):u.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:["Next",u.jsx(Ox,{className:"h-3.5 w-3.5"})]})]})}function E0(n){var a,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(i=E0(n[a]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function vm(){for(var n,a,i=0,l="",o=arguments.length;i<o;i++)(n=arguments[i])&&(a=E0(n))&&(l&&(l+=" "),l+=a);return l}const kx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Lx=vm,mu=(n,a)=>i=>{var l;if((a==null?void 0:a.variants)==null)return Lx(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:f}=a,h=Object.keys(o).map(p=>{const x=i==null?void 0:i[p],v=f==null?void 0:f[p];if(x===null)return null;const b=kx(x)||kx(v);return o[p][b]}),m=i&&Object.entries(i).reduce((p,x)=>{let[v,b]=x;return b===void 0||(p[v]=b),p},{}),g=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((p,x)=>{let{class:v,className:b,...S}=x;return Object.entries(S).every(R=>{let[j,E]=R;return Array.isArray(E)?E.includes({...f,...m}[j]):{...f,...m}[j]===E})?[...p,v,b]:p},[]);return Lx(n,h,g,i==null?void 0:i.class,i==null?void 0:i.className)},xE=(n,a)=>{const i=new Array(n.length+a.length);for(let l=0;l<n.length;l++)i[l]=n[l];for(let l=0;l<a.length;l++)i[n.length+l]=a[l];return i},bE=(n,a)=>({classGroupId:n,validator:a}),C0=(n=new Map,a=null,i)=>({nextPart:n,validators:a,classGroupId:i}),eu="-",Ux=[],SE="arbitrary..",wE=n=>{const a=NE(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return jE(h);const m=h.split(eu),g=m[0]===""&&m.length>1?1:0;return T0(m,g,a)},getConflictingClassGroupIds:(h,m)=>{if(m){const g=l[h],p=i[h];return g?p?xE(p,g):g:p||Ux}return i[h]||Ux}}},T0=(n,a,i)=>{if(n.length-a===0)return i.classGroupId;const o=n[a],f=i.nextPart.get(o);if(f){const p=T0(n,a+1,f);if(p)return p}const h=i.validators;if(h===null)return;const m=a===0?n.join(eu):n.slice(a).join(eu),g=h.length;for(let p=0;p<g;p++){const x=h[p];if(x.validator(m))return x.classGroupId}},jE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=n.slice(1,-1),i=a.indexOf(":"),l=a.slice(0,i);return l?SE+l:void 0})(),NE=n=>{const{theme:a,classGroups:i}=n;return RE(i,a)},RE=(n,a)=>{const i=C0();for(const l in n){const o=n[l];ym(o,i,l,a)}return i},ym=(n,a,i,l)=>{const o=n.length;for(let f=0;f<o;f++){const h=n[f];EE(h,a,i,l)}},EE=(n,a,i,l)=>{if(typeof n=="string"){CE(n,a,i);return}if(typeof n=="function"){TE(n,a,i,l);return}_E(n,a,i,l)},CE=(n,a,i)=>{const l=n===""?a:_0(a,n);l.classGroupId=i},TE=(n,a,i,l)=>{if(AE(n)){ym(n(l),a,i,l);return}a.validators===null&&(a.validators=[]),a.validators.push(bE(i,n))},_E=(n,a,i,l)=>{const o=Object.entries(n),f=o.length;for(let h=0;h<f;h++){const[m,g]=o[h];ym(g,_0(a,m),i,l)}},_0=(n,a)=>{let i=n;const l=a.split(eu),o=l.length;for(let f=0;f<o;f++){const h=l[f];let m=i.nextPart.get(h);m||(m=C0(),i.nextPart.set(h,m)),i=m}return i},AE=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,ME=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,i=Object.create(null),l=Object.create(null);const o=(f,h)=>{i[f]=h,a++,a>n&&(a=0,l=i,i=Object.create(null))};return{get(f){let h=i[f];if(h!==void 0)return h;if((h=l[f])!==void 0)return o(f,h),h},set(f,h){f in i?i[f]=h:o(f,h)}}},Vh="!",Bx=":",OE=[],Hx=(n,a,i,l,o)=>({modifiers:n,hasImportantModifier:a,baseClassName:i,maybePostfixModifierPosition:l,isExternal:o}),DE=n=>{const{prefix:a,experimentalParseClassName:i}=n;let l=o=>{const f=[];let h=0,m=0,g=0,p;const x=o.length;for(let j=0;j<x;j++){const E=o[j];if(h===0&&m===0){if(E===Bx){f.push(o.slice(g,j)),g=j+1;continue}if(E==="/"){p=j;continue}}E==="["?h++:E==="]"?h--:E==="("?m++:E===")"&&m--}const v=f.length===0?o:o.slice(g);let b=v,S=!1;v.endsWith(Vh)?(b=v.slice(0,-1),S=!0):v.startsWith(Vh)&&(b=v.slice(1),S=!0);const R=p&&p>g?p-g:void 0;return Hx(f,S,b,R)};if(a){const o=a+Bx,f=l;l=h=>h.startsWith(o)?f(h.slice(o.length)):Hx(OE,!1,h,void 0,!0)}if(i){const o=l;l=f=>i({className:f,parseClassName:o})}return l},zE=n=>{const a=new Map;return n.orderSensitiveModifiers.forEach((i,l)=>{a.set(i,1e6+l)}),i=>{const l=[];let o=[];for(let f=0;f<i.length;f++){const h=i[f],m=h[0]==="[",g=a.has(h);m||g?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(h)):o.push(h)}return o.length>0&&(o.sort(),l.push(...o)),l}},kE=n=>({cache:ME(n.cacheSize),parseClassName:DE(n),sortModifiers:zE(n),postfixLookupClassGroupIds:LE(n),...wE(n)}),LE=n=>{const a=Object.create(null),i=n.postfixLookupClassGroups;if(i)for(let l=0;l<i.length;l++)a[i[l]]=!0;return a},UE=/\s+/,BE=(n,a)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:f,postfixLookupClassGroupIds:h}=a,m=[],g=n.trim().split(UE);let p="";for(let x=g.length-1;x>=0;x-=1){const v=g[x],{isExternal:b,modifiers:S,hasImportantModifier:R,baseClassName:j,maybePostfixModifierPosition:E}=i(v);if(b){p=v+(p.length>0?" "+p:p);continue}let C=!!E,_;if(C){const M=j.substring(0,E);_=l(M);const D=_&&h[_]?l(j):void 0;D&&D!==_&&(_=D,C=!1)}else _=l(j);if(!_){if(!C){p=v+(p.length>0?" "+p:p);continue}if(_=l(j),!_){p=v+(p.length>0?" "+p:p);continue}C=!1}const U=S.length===0?"":S.length===1?S[0]:f(S).join(":"),T=R?U+Vh:U,P=T+_;if(m.indexOf(P)>-1)continue;m.push(P);const Y=o(_,C);for(let M=0;M<Y.length;++M){const D=Y[M];m.push(T+D)}p=v+(p.length>0?" "+p:p)}return p},HE=(...n)=>{let a=0,i,l,o="";for(;a<n.length;)(i=n[a++])&&(l=A0(i))&&(o&&(o+=" "),o+=l);return o},A0=n=>{if(typeof n=="string")return n;let a,i="";for(let l=0;l<n.length;l++)n[l]&&(a=A0(n[l]))&&(i&&(i+=" "),i+=a);return i},PE=(n,...a)=>{let i,l,o,f;const h=g=>{const p=a.reduce((x,v)=>v(x),n());return i=kE(p),l=i.cache.get,o=i.cache.set,f=m,m(g)},m=g=>{const p=l(g);if(p)return p;const x=BE(g,i);return o(g,x),x};return f=h,(...g)=>f(HE(...g))},qE=[],ft=n=>{const a=i=>i[n]||qE;return a.isThemeGetter=!0,a},M0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,O0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,GE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,QE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VE=/\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$/,YE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,XE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ts=n=>GE.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),Gn=n=>!!n&&Number.isInteger(Number(n)),ah=n=>n.endsWith("%")&&je(n.slice(0,-1)),ga=n=>QE.test(n),D0=()=>!0,KE=n=>VE.test(n)&&!YE.test(n),xm=()=>!1,ZE=n=>XE.test(n),FE=n=>IE.test(n),WE=n=>!oe(n)&&!ce(n),$E=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),JE=n=>ws(n,L0,xm),oe=n=>M0.test(n),Qs=n=>ws(n,U0,KE),Px=n=>ws(n,lC,je),eC=n=>ws(n,H0,D0),tC=n=>ws(n,B0,xm),qx=n=>ws(n,z0,xm),nC=n=>ws(n,k0,FE),Tc=n=>ws(n,P0,ZE),ce=n=>O0.test(n),Ml=n=>hi(n,U0),aC=n=>hi(n,B0),Gx=n=>hi(n,z0),sC=n=>hi(n,L0),iC=n=>hi(n,k0),_c=n=>hi(n,P0,!0),rC=n=>hi(n,H0,!0),ws=(n,a,i)=>{const l=M0.exec(n);return l?l[1]?a(l[1]):i(l[2]):!1},hi=(n,a,i=!1)=>{const l=O0.exec(n);return l?l[1]?a(l[1]):i:!1},z0=n=>n==="position"||n==="percentage",k0=n=>n==="image"||n==="url",L0=n=>n==="length"||n==="size"||n==="bg-size",U0=n=>n==="length",lC=n=>n==="number",B0=n=>n==="family-name",H0=n=>n==="number"||n==="weight",P0=n=>n==="shadow",oC=()=>{const n=ft("color"),a=ft("font"),i=ft("text"),l=ft("font-weight"),o=ft("tracking"),f=ft("leading"),h=ft("breakpoint"),m=ft("container"),g=ft("spacing"),p=ft("radius"),x=ft("shadow"),v=ft("inset-shadow"),b=ft("text-shadow"),S=ft("drop-shadow"),R=ft("blur"),j=ft("perspective"),E=ft("aspect"),C=ft("ease"),_=ft("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...T(),ce,oe],Y=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],D=()=>[ce,oe,g],L=()=>[ts,"full","auto",...D()],q=()=>[Gn,"none","subgrid",ce,oe],W=()=>["auto",{span:["full",Gn,ce,oe]},Gn,ce,oe],ee=()=>[Gn,"auto",ce,oe],ne=()=>["auto","min","max","fr",ce,oe],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...D()],X=()=>[ts,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],J=()=>[ts,"screen","full","dvw","lvw","svw","min","max","fit",...D()],pe=()=>[ts,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],te=()=>[n,ce,oe],O=()=>[...T(),Gx,qx,{position:[ce,oe]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",sC,JE,{size:[ce,oe]}],ie=()=>[ah,Ml,Qs],re=()=>["","none","full",p,ce,oe],he=()=>["",je,Ml,Qs],Se=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[je,ah,Gx,qx],zt=()=>["","none",R,ce,oe],xt=()=>["none",je,ce,oe],Tt=()=>["none",je,ce,oe],kt=()=>[je,ce,oe],mt=()=>[ts,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ga],breakpoint:[ga],color:[D0],container:[ga],"drop-shadow":[ga],ease:["in","out","in-out"],font:[WE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ga],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ga],shadow:[ga],spacing:["px",je],text:[ga],"text-shadow":[ga],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ts,oe,ce,E]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[$E],columns:[{columns:[je,oe,ce,m]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:P()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Gn,"auto",ce,oe]}],basis:[{basis:[ts,"full","auto",m,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,ts,"auto","initial","none",oe]}],grow:[{grow:["",je,ce,oe]}],shrink:[{shrink:["",je,ce,oe]}],order:[{order:[Gn,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:W()}],"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":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",i,Ml,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,rC,eC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ah,oe]}],"font-family":[{font:[aC,tC,a]}],"font-features":[{"font-features":[oe]}],"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,ce,oe]}],"line-clamp":[{"line-clamp":[je,"none",ce,Px]}],leading:[{leading:[f,...D()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ce,Qs]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[je,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"tab-size":[{tab:[Gn,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gn,ce,oe],radial:["",ce,oe],conic:[Gn,ce,oe]},iC,nC]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ce,oe]}],"outline-w":[{outline:["",je,Ml,Qs]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",x,_c,Tc]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",v,_c,Tc]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[je,Qs]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",b,_c,Tc]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[je,ce,oe]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"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":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:zt()}],brightness:[{brightness:[je,ce,oe]}],contrast:[{contrast:[je,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",S,_c,Tc]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",je,ce,oe]}],"hue-rotate":[{"hue-rotate":[je,ce,oe]}],invert:[{invert:["",je,ce,oe]}],saturate:[{saturate:[je,ce,oe]}],sepia:[{sepia:["",je,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":zt()}],"backdrop-brightness":[{"backdrop-brightness":[je,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[je,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",je,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[je,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[je,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ce,oe]}],ease:[{ease:["linear","initial",C,ce,oe]}],delay:[{delay:[je,ce,oe]}],animate:[{animate:["none",_,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,ce,oe]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:xt()}],"rotate-x":[{"rotate-x":xt()}],"rotate-y":[{"rotate-y":xt()}],"rotate-z":[{"rotate-z":xt()}],scale:[{scale:Tt()}],"scale-x":[{"scale-x":Tt()}],"scale-y":[{"scale-y":Tt()}],"scale-z":[{"scale-z":Tt()}],"scale-3d":["scale-3d"],skew:[{skew:kt()}],"skew-x":[{"skew-x":kt()}],"skew-y":[{"skew-y":kt()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],zoom:[{zoom:[Gn,ce,oe]}],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":te()}],"scrollbar-track-color":[{"scrollbar-track":te()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,oe]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[je,Ml,Qs,Px]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},q0=PE(oC);function ht(...n){return q0(vm(n))}const cC=mu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Bt({className:n,variant:a,...i}){return u.jsx("div",{className:ht(cC({variant:a}),n),...i})}const G0=mu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ot=N.forwardRef(({className:n,variant:a,size:i,...l},o)=>u.jsx("button",{className:ht(G0({variant:a,size:i,className:n})),ref:o,...l}));Ot.displayName="Button";const Me=({className:n,...a})=>u.jsx("section",{className:ht("rounded-lg border bg-card text-card-foreground shadow-sm",n),...a}),st=({className:n,...a})=>u.jsx("div",{className:ht("flex flex-col space-y-1.5 p-6",n),...a}),it=({className:n,...a})=>u.jsx("h3",{className:ht("text-2xl font-semibold leading-none tracking-tight",n),...a}),sh=({className:n,...a})=>u.jsx("p",{className:ht("text-sm text-muted-foreground",n),...a}),Oe=({className:n,...a})=>u.jsx("div",{className:ht("p-6 pt-0",n),...a}),uC=({className:n,children:a,...i})=>u.jsx("pre",{className:ht("rounded-lg border bg-card/50 p-4 overflow-auto text-sm font-mono text-foreground leading-relaxed",n),...i,children:a}),Ql=N.forwardRef(({className:n,type:a,...i},l)=>u.jsx("input",{type:a,className:ht("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",n),ref:l,...i}));Ql.displayName="Input";const Et=N.forwardRef(({className:n,...a},i)=>u.jsx("label",{ref:i,className:ht("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",n),...a}));Et.displayName="Label";const ja=N.forwardRef(({className:n,...a},i)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:i,className:ht("w-full caption-bottom text-sm",n),...a})}));ja.displayName="Table";const Na=N.forwardRef(({className:n,...a},i)=>u.jsx("thead",{ref:i,className:ht("[&_tr]:border-b",n),...a}));Na.displayName="TableHeader";const Ra=N.forwardRef(({className:n,...a},i)=>u.jsx("tbody",{ref:i,className:ht("[&_tr:last-child]:border-0",n),...a}));Ra.displayName="TableBody";const fC=N.forwardRef(({className:n,...a},i)=>u.jsx("tfoot",{ref:i,className:ht("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n),...a}));fC.displayName="TableFooter";const yt=N.forwardRef(({className:n,...a},i)=>u.jsx("tr",{ref:i,className:ht("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...a}));yt.displayName="TableRow";const Xe=N.forwardRef(({className:n,...a},i)=>u.jsx("th",{ref:i,className:ht("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n),...a}));Xe.displayName="TableHead";const Be=N.forwardRef(({className:n,...a},i)=>u.jsx("td",{ref:i,className:ht("p-4 align-middle [&:has([role=checkbox])]:pr-0",n),...a}));Be.displayName="TableCell";const dC=N.forwardRef(({className:n,...a},i)=>u.jsx("caption",{ref:i,className:ht("mt-4 text-sm text-muted-foreground",n),...a}));dC.displayName="TableCaption";const Yh=({className:n,...a})=>u.jsx("textarea",{className:ht("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",n),...a});function Kt(n,a,{checkForDefaultPrevented:i=!0}={}){return function(o){if(n==null||n(o),i===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function Qx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function bm(...n){return a=>{let i=!1;const l=n.map(o=>{const f=Qx(o,a);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let o=0;o<l.length;o++){const f=l[o];typeof f=="function"?f():Qx(n[o],null)}}}}function kn(...n){return N.useCallback(bm(...n),n)}function hC(n,a){const i=N.createContext(a),l=f=>{const{children:h,...m}=f,g=N.useMemo(()=>m,Object.values(m));return u.jsx(i.Provider,{value:g,children:h})};l.displayName=n+"Provider";function o(f){const h=N.useContext(i);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[l,o]}function Sm(n,a=[]){let i=[];function l(f,h){const m=N.createContext(h),g=i.length;i=[...i,h];const p=v=>{var C;const{scope:b,children:S,...R}=v,j=((C=b==null?void 0:b[n])==null?void 0:C[g])||m,E=N.useMemo(()=>R,Object.values(R));return u.jsx(j.Provider,{value:E,children:S})};p.displayName=f+"Provider";function x(v,b){var j;const S=((j=b==null?void 0:b[n])==null?void 0:j[g])||m,R=N.useContext(S);if(R)return R;if(h!==void 0)return h;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[p,x]}const o=()=>{const f=i.map(h=>N.createContext(h));return function(m){const g=(m==null?void 0:m[n])||f;return N.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return o.scopeName=n,[l,mC(o,...a)]}function mC(...n){const a=n[0];if(n.length===1)return a;const i=()=>{const l=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const h=l.reduce((m,{useScope:g,scopeName:p})=>{const v=g(f)[`__scope${p}`];return{...m,...v}},{});return N.useMemo(()=>({[`__scope${a.scopeName}`]:h}),[h])}};return i.scopeName=a.scopeName,i}function Q0(n){const a=pC(n),i=N.forwardRef((l,o)=>{const{children:f,...h}=l,m=N.Children.toArray(f),g=m.find(vC);if(g){const p=g.props.children,x=m.map(v=>v===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:v);return u.jsx(a,{...h,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:f})});return i.displayName=`${n}.Slot`,i}function pC(n){const a=N.forwardRef((i,l)=>{const{children:o,...f}=i;if(N.isValidElement(o)){const h=xC(o),m=yC(f,o.props);return o.type!==N.Fragment&&(m.ref=l?bm(l,h):h),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var V0=Symbol("radix.slottable");function gC(n){const a=({children:i})=>u.jsx(u.Fragment,{children:i});return a.displayName=`${n}.Slottable`,a.__radixId=V0,a}function vC(n){return N.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===V0}function yC(n,a){const i={...a};for(const l in a){const o=n[l],f=a[l];/^on[A-Z]/.test(l)?o&&f?i[l]=(...m)=>{const g=f(...m);return o(...m),g}:o&&(i[l]=o):l==="style"?i[l]={...o,...f}:l==="className"&&(i[l]=[o,f].filter(Boolean).join(" "))}return{...n,...i}}function xC(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var bC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wt=bC.reduce((n,a)=>{const i=Q0(`Primitive.${a}`),l=N.forwardRef((o,f)=>{const{asChild:h,...m}=o,g=h?i:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...m,ref:f})});return l.displayName=`Primitive.${a}`,{...n,[a]:l}},{});function SC(n,a){n&&fu.flushSync(()=>n.dispatchEvent(a))}function Cr(n){const a=N.useRef(n);return N.useEffect(()=>{a.current=n}),N.useMemo(()=>(...i)=>{var l;return(l=a.current)==null?void 0:l.call(a,...i)},[])}function wC(n,a=globalThis==null?void 0:globalThis.document){const i=Cr(n);N.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 jC="DismissableLayer",Xh="dismissableLayer.update",NC="dismissableLayer.pointerDownOutside",RC="dismissableLayer.focusOutside",Vx,Y0=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wm=N.forwardRef((n,a)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...g}=n,p=N.useContext(Y0),[x,v]=N.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=N.useState({}),R=kn(a,M=>v(M)),j=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=j.indexOf(E),_=x?j.indexOf(x):-1,U=p.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,P=TC(M=>{const D=M.target,L=[...p.branches].some(q=>q.contains(D));!T||L||(o==null||o(M),h==null||h(M),M.defaultPrevented||m==null||m())},b),Y=_C(M=>{const D=M.target;[...p.branches].some(q=>q.contains(D))||(f==null||f(M),h==null||h(M),M.defaultPrevented||m==null||m())},b);return wC(M=>{_===p.layers.size-1&&(l==null||l(M),!M.defaultPrevented&&m&&(M.preventDefault(),m()))},b),N.useEffect(()=>{if(x)return i&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Vx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Yx(),()=>{i&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Vx)}},[x,b,i,p]),N.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Yx())},[x,p]),N.useEffect(()=>{const M=()=>S({});return document.addEventListener(Xh,M),()=>document.removeEventListener(Xh,M)},[]),u.jsx(Wt.div,{...g,ref:R,style:{pointerEvents:U?T?"auto":"none":void 0,...n.style},onFocusCapture:Kt(n.onFocusCapture,Y.onFocusCapture),onBlurCapture:Kt(n.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Kt(n.onPointerDownCapture,P.onPointerDownCapture)})});wm.displayName=jC;var EC="DismissableLayerBranch",CC=N.forwardRef((n,a)=>{const i=N.useContext(Y0),l=N.useRef(null),o=kn(a,l);return N.useEffect(()=>{const f=l.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),u.jsx(Wt.div,{...n,ref:o})});CC.displayName=EC;function TC(n,a=globalThis==null?void 0:globalThis.document){const i=Cr(n),l=N.useRef(!1),o=N.useRef(()=>{});return N.useEffect(()=>{const f=m=>{if(m.target&&!l.current){let g=function(){X0(NC,i,p,{discrete:!0})};const p={originalEvent:m};m.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},h=window.setTimeout(()=>{a.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",f),a.removeEventListener("click",o.current)}},[a,i]),{onPointerDownCapture:()=>l.current=!0}}function _C(n,a=globalThis==null?void 0:globalThis.document){const i=Cr(n),l=N.useRef(!1);return N.useEffect(()=>{const o=f=>{f.target&&!l.current&&X0(RC,i,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Yx(){const n=new CustomEvent(Xh);document.dispatchEvent(n)}function X0(n,a,i,{discrete:l}){const o=i.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});a&&o.addEventListener(n,a,{once:!0}),l?SC(o,f):o.dispatchEvent(f)}var xs=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},AC=tm[" useId ".trim().toString()]||(()=>{}),MC=0;function Gc(n){const[a,i]=N.useState(AC());return xs(()=>{i(l=>l??String(MC++))},[n]),n||(a?`radix-${a}`:"")}const OC=["top","right","bottom","left"],bs=Math.min,un=Math.max,tu=Math.round,Ac=Math.floor,Fn=n=>({x:n,y:n}),DC={left:"right",right:"left",bottom:"top",top:"bottom"};function Ih(n,a,i){return un(n,bs(a,i))}function Ea(n,a){return typeof n=="function"?n(a):n}function Ca(n){return n.split("-")[0]}function Ar(n){return n.split("-")[1]}function jm(n){return n==="x"?"y":"x"}function Nm(n){return n==="y"?"height":"width"}function Zn(n){const a=n[0];return a==="t"||a==="b"?"y":"x"}function Rm(n){return jm(Zn(n))}function zC(n,a,i){i===void 0&&(i=!1);const l=Ar(n),o=Rm(n),f=Nm(o);let h=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[f]>a.floating[f]&&(h=nu(h)),[h,nu(h)]}function kC(n){const a=nu(n);return[Kh(n),a,Kh(a)]}function Kh(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Xx=["left","right"],Ix=["right","left"],LC=["top","bottom"],UC=["bottom","top"];function BC(n,a,i){switch(n){case"top":case"bottom":return i?a?Ix:Xx:a?Xx:Ix;case"left":case"right":return a?LC:UC;default:return[]}}function HC(n,a,i,l){const o=Ar(n);let f=BC(Ca(n),i==="start",l);return o&&(f=f.map(h=>h+"-"+o),a&&(f=f.concat(f.map(Kh)))),f}function nu(n){const a=Ca(n);return DC[a]+n.slice(a.length)}function PC(n){return{top:0,right:0,bottom:0,left:0,...n}}function I0(n){return typeof n!="number"?PC(n):{top:n,right:n,bottom:n,left:n}}function au(n){const{x:a,y:i,width:l,height:o}=n;return{width:l,height:o,top:i,left:a,right:a+l,bottom:i+o,x:a,y:i}}function Kx(n,a,i){let{reference:l,floating:o}=n;const f=Zn(a),h=Rm(a),m=Nm(h),g=Ca(a),p=f==="y",x=l.x+l.width/2-o.width/2,v=l.y+l.height/2-o.height/2,b=l[m]/2-o[m]/2;let S;switch(g){case"top":S={x,y:l.y-o.height};break;case"bottom":S={x,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:v};break;case"left":S={x:l.x-o.width,y:v};break;default:S={x:l.x,y:l.y}}switch(Ar(a)){case"start":S[h]-=b*(i&&p?-1:1);break;case"end":S[h]+=b*(i&&p?-1:1);break}return S}async function qC(n,a){var i;a===void 0&&(a={});const{x:l,y:o,platform:f,rects:h,elements:m,strategy:g}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:v="floating",altBoundary:b=!1,padding:S=0}=Ea(a,n),R=I0(S),E=m[b?v==="floating"?"reference":"floating":v],C=au(await f.getClippingRect({element:(i=await(f.isElement==null?void 0:f.isElement(E)))==null||i?E:E.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:x,strategy:g})),_=v==="floating"?{x:l,y:o,width:h.floating.width,height:h.floating.height}:h.reference,U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),T=await(f.isElement==null?void 0:f.isElement(U))?await(f.getScale==null?void 0:f.getScale(U))||{x:1,y:1}:{x:1,y:1},P=au(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:U,strategy:g}):_);return{top:(C.top-P.top+R.top)/T.y,bottom:(P.bottom-C.bottom+R.bottom)/T.y,left:(C.left-P.left+R.left)/T.x,right:(P.right-C.right+R.right)/T.x}}const GC=50,QC=async(n,a,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:f=[],platform:h}=i,m=h.detectOverflow?h:{...h,detectOverflow:qC},g=await(h.isRTL==null?void 0:h.isRTL(a));let p=await h.getElementRects({reference:n,floating:a,strategy:o}),{x,y:v}=Kx(p,l,g),b=l,S=0;const R={};for(let j=0;j<f.length;j++){const E=f[j];if(!E)continue;const{name:C,fn:_}=E,{x:U,y:T,data:P,reset:Y}=await _({x,y:v,initialPlacement:l,placement:b,strategy:o,middlewareData:R,rects:p,platform:m,elements:{reference:n,floating:a}});x=U??x,v=T??v,R[C]={...R[C],...P},Y&&S<GC&&(S++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(p=Y.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:o}):Y.rects),{x,y:v}=Kx(p,b,g)),j=-1)}return{x,y:v,placement:b,strategy:o,middlewareData:R}},VC=n=>({name:"arrow",options:n,async fn(a){const{x:i,y:l,placement:o,rects:f,platform:h,elements:m,middlewareData:g}=a,{element:p,padding:x=0}=Ea(n,a)||{};if(p==null)return{};const v=I0(x),b={x:i,y:l},S=Rm(o),R=Nm(S),j=await h.getDimensions(p),E=S==="y",C=E?"top":"left",_=E?"bottom":"right",U=E?"clientHeight":"clientWidth",T=f.reference[R]+f.reference[S]-b[S]-f.floating[R],P=b[S]-f.reference[S],Y=await(h.getOffsetParent==null?void 0:h.getOffsetParent(p));let M=Y?Y[U]:0;(!M||!await(h.isElement==null?void 0:h.isElement(Y)))&&(M=m.floating[U]||f.floating[R]);const D=T/2-P/2,L=M/2-j[R]/2-1,q=bs(v[C],L),W=bs(v[_],L),ee=q,ne=M-j[R]-W,ae=M/2-j[R]/2+D,de=Ih(ee,ae,ne),B=!g.arrow&&Ar(o)!=null&&ae!==de&&f.reference[R]/2-(ae<ee?q:W)-j[R]/2<0,X=B?ae<ee?ae-ee:ae-ne:0;return{[S]:b[S]+X,data:{[S]:de,centerOffset:ae-de-X,...B&&{alignmentOffset:X}},reset:B}}}),YC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var i,l;const{placement:o,middlewareData:f,rects:h,initialPlacement:m,platform:g,elements:p}=a,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:j=!0,...E}=Ea(n,a);if((i=f.arrow)!=null&&i.alignmentOffset)return{};const C=Ca(o),_=Zn(m),U=Ca(m)===m,T=await(g.isRTL==null?void 0:g.isRTL(p.floating)),P=b||(U||!j?[nu(m)]:kC(m)),Y=R!=="none";!b&&Y&&P.push(...HC(m,j,R,T));const M=[m,...P],D=await g.detectOverflow(a,E),L=[];let q=((l=f.flip)==null?void 0:l.overflows)||[];if(x&&L.push(D[C]),v){const ae=zC(o,h,T);L.push(D[ae[0]],D[ae[1]])}if(q=[...q,{placement:o,overflows:L}],!L.every(ae=>ae<=0)){var W,ee;const ae=(((W=f.flip)==null?void 0:W.index)||0)+1,de=M[ae];if(de&&(!(v==="alignment"?_!==Zn(de):!1)||q.every(J=>Zn(J.placement)===_?J.overflows[0]>0:!0)))return{data:{index:ae,overflows:q},reset:{placement:de}};let B=(ee=q.filter(X=>X.overflows[0]<=0).sort((X,J)=>X.overflows[1]-J.overflows[1])[0])==null?void 0:ee.placement;if(!B)switch(S){case"bestFit":{var ne;const X=(ne=q.filter(J=>{if(Y){const pe=Zn(J.placement);return pe===_||pe==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(pe=>pe>0).reduce((pe,te)=>pe+te,0)]).sort((J,pe)=>J[1]-pe[1])[0])==null?void 0:ne[0];X&&(B=X);break}case"initialPlacement":B=m;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Zx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Fx(n){return OC.some(a=>n[a]>=0)}const XC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:i,platform:l}=a,{strategy:o="referenceHidden",...f}=Ea(n,a);switch(o){case"referenceHidden":{const h=await l.detectOverflow(a,{...f,elementContext:"reference"}),m=Zx(h,i.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Fx(m)}}}case"escaped":{const h=await l.detectOverflow(a,{...f,altBoundary:!0}),m=Zx(h,i.floating);return{data:{escapedOffsets:m,escaped:Fx(m)}}}default:return{}}}}},K0=new Set(["left","top"]);async function IC(n,a){const{placement:i,platform:l,elements:o}=n,f=await(l.isRTL==null?void 0:l.isRTL(o.floating)),h=Ca(i),m=Ar(i),g=Zn(i)==="y",p=K0.has(h)?-1:1,x=f&&g?-1:1,v=Ea(a,n);let{mainAxis:b,crossAxis:S,alignmentAxis:R}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return m&&typeof R=="number"&&(S=m==="end"?R*-1:R),g?{x:S*x,y:b*p}:{x:b*p,y:S*x}}const KC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var i,l;const{x:o,y:f,placement:h,middlewareData:m}=a,g=await IC(a,n);return h===((i=m.offset)==null?void 0:i.placement)&&(l=m.arrow)!=null&&l.alignmentOffset?{}:{x:o+g.x,y:f+g.y,data:{...g,placement:h}}}}},ZC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:i,y:l,placement:o,platform:f}=a,{mainAxis:h=!0,crossAxis:m=!1,limiter:g={fn:C=>{let{x:_,y:U}=C;return{x:_,y:U}}},...p}=Ea(n,a),x={x:i,y:l},v=await f.detectOverflow(a,p),b=Zn(Ca(o)),S=jm(b);let R=x[S],j=x[b];if(h){const C=S==="y"?"top":"left",_=S==="y"?"bottom":"right",U=R+v[C],T=R-v[_];R=Ih(U,R,T)}if(m){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",U=j+v[C],T=j-v[_];j=Ih(U,j,T)}const E=g.fn({...a,[S]:R,[b]:j});return{...E,data:{x:E.x-i,y:E.y-l,enabled:{[S]:h,[b]:m}}}}}},FC=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:i,y:l,placement:o,rects:f,middlewareData:h}=a,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=Ea(n,a),x={x:i,y:l},v=Zn(o),b=jm(v);let S=x[b],R=x[v];const j=Ea(m,a),E=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(g){const U=b==="y"?"height":"width",T=f.reference[b]-f.floating[U]+E.mainAxis,P=f.reference[b]+f.reference[U]-E.mainAxis;S<T?S=T:S>P&&(S=P)}if(p){var C,_;const U=b==="y"?"width":"height",T=K0.has(Ca(o)),P=f.reference[v]-f.floating[U]+(T&&((C=h.offset)==null?void 0:C[v])||0)+(T?0:E.crossAxis),Y=f.reference[v]+f.reference[U]+(T?0:((_=h.offset)==null?void 0:_[v])||0)-(T?E.crossAxis:0);R<P?R=P:R>Y&&(R=Y)}return{[b]:S,[v]:R}}}},WC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var i,l;const{placement:o,rects:f,platform:h,elements:m}=a,{apply:g=()=>{},...p}=Ea(n,a),x=await h.detectOverflow(a,p),v=Ca(o),b=Ar(o),S=Zn(o)==="y",{width:R,height:j}=f.floating;let E,C;v==="top"||v==="bottom"?(E=v,C=b===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(C=v,E=b==="end"?"top":"bottom");const _=j-x.top-x.bottom,U=R-x.left-x.right,T=bs(j-x[E],_),P=bs(R-x[C],U),Y=!a.middlewareData.shift;let M=T,D=P;if((i=a.middlewareData.shift)!=null&&i.enabled.x&&(D=U),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(M=_),Y&&!b){const q=un(x.left,0),W=un(x.right,0),ee=un(x.top,0),ne=un(x.bottom,0);S?D=R-2*(q!==0||W!==0?q+W:un(x.left,x.right)):M=j-2*(ee!==0||ne!==0?ee+ne:un(x.top,x.bottom))}await g({...a,availableWidth:D,availableHeight:M});const L=await h.getDimensions(m.floating);return R!==L.width||j!==L.height?{reset:{rects:!0}}:{}}}};function pu(){return typeof window<"u"}function Mr(n){return Z0(n)?(n.nodeName||"").toLowerCase():"#document"}function fn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Wn(n){var a;return(a=(Z0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Z0(n){return pu()?n instanceof Node||n instanceof fn(n).Node:!1}function On(n){return pu()?n instanceof Element||n instanceof fn(n).Element:!1}function Ta(n){return pu()?n instanceof HTMLElement||n instanceof fn(n).HTMLElement:!1}function Wx(n){return!pu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof fn(n).ShadowRoot}function no(n){const{overflow:a,overflowX:i,overflowY:l,display:o}=Dn(n);return/auto|scroll|overlay|hidden|clip/.test(a+l+i)&&o!=="inline"&&o!=="contents"}function $C(n){return/^(table|td|th)$/.test(Mr(n))}function gu(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const JC=/transform|translate|scale|rotate|perspective|filter/,eT=/paint|layout|strict|content/,Vs=n=>!!n&&n!=="none";let ih;function Em(n){const a=On(n)?Dn(n):n;return Vs(a.transform)||Vs(a.translate)||Vs(a.scale)||Vs(a.rotate)||Vs(a.perspective)||!Cm()&&(Vs(a.backdropFilter)||Vs(a.filter))||JC.test(a.willChange||"")||eT.test(a.contain||"")}function tT(n){let a=Ss(n);for(;Ta(a)&&!Tr(a);){if(Em(a))return a;if(gu(a))return null;a=Ss(a)}return null}function Cm(){return ih==null&&(ih=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ih}function Tr(n){return/^(html|body|#document)$/.test(Mr(n))}function Dn(n){return fn(n).getComputedStyle(n)}function vu(n){return On(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ss(n){if(Mr(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Wx(n)&&n.host||Wn(n);return Wx(a)?a.host:a}function F0(n){const a=Ss(n);return Tr(a)?n.ownerDocument?n.ownerDocument.body:n.body:Ta(a)&&no(a)?a:F0(a)}function Vl(n,a,i){var l;a===void 0&&(a=[]),i===void 0&&(i=!0);const o=F0(n),f=o===((l=n.ownerDocument)==null?void 0:l.body),h=fn(o);if(f){const m=Zh(h);return a.concat(h,h.visualViewport||[],no(o)?o:[],m&&i?Vl(m):[])}else return a.concat(o,Vl(o,[],i))}function Zh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function W0(n){const a=Dn(n);let i=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const o=Ta(n),f=o?n.offsetWidth:i,h=o?n.offsetHeight:l,m=tu(i)!==f||tu(l)!==h;return m&&(i=f,l=h),{width:i,height:l,$:m}}function Tm(n){return On(n)?n:n.contextElement}function cr(n){const a=Tm(n);if(!Ta(a))return Fn(1);const i=a.getBoundingClientRect(),{width:l,height:o,$:f}=W0(a);let h=(f?tu(i.width):i.width)/l,m=(f?tu(i.height):i.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const nT=Fn(0);function $0(n){const a=fn(n);return!Cm()||!a.visualViewport?nT:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function aT(n,a,i){return a===void 0&&(a=!1),!i||a&&i!==fn(n)?!1:a}function ui(n,a,i,l){a===void 0&&(a=!1),i===void 0&&(i=!1);const o=n.getBoundingClientRect(),f=Tm(n);let h=Fn(1);a&&(l?On(l)&&(h=cr(l)):h=cr(n));const m=aT(f,i,l)?$0(f):Fn(0);let g=(o.left+m.x)/h.x,p=(o.top+m.y)/h.y,x=o.width/h.x,v=o.height/h.y;if(f){const b=fn(f),S=l&&On(l)?fn(l):l;let R=b,j=Zh(R);for(;j&&l&&S!==R;){const E=cr(j),C=j.getBoundingClientRect(),_=Dn(j),U=C.left+(j.clientLeft+parseFloat(_.paddingLeft))*E.x,T=C.top+(j.clientTop+parseFloat(_.paddingTop))*E.y;g*=E.x,p*=E.y,x*=E.x,v*=E.y,g+=U,p+=T,R=fn(j),j=Zh(R)}}return au({width:x,height:v,x:g,y:p})}function yu(n,a){const i=vu(n).scrollLeft;return a?a.left+i:ui(Wn(n)).left+i}function J0(n,a){const i=n.getBoundingClientRect(),l=i.left+a.scrollLeft-yu(n,i),o=i.top+a.scrollTop;return{x:l,y:o}}function sT(n){let{elements:a,rect:i,offsetParent:l,strategy:o}=n;const f=o==="fixed",h=Wn(l),m=a?gu(a.floating):!1;if(l===h||m&&f)return i;let g={scrollLeft:0,scrollTop:0},p=Fn(1);const x=Fn(0),v=Ta(l);if((v||!v&&!f)&&((Mr(l)!=="body"||no(h))&&(g=vu(l)),v)){const S=ui(l);p=cr(l),x.x=S.x+l.clientLeft,x.y=S.y+l.clientTop}const b=h&&!v&&!f?J0(h,g):Fn(0);return{width:i.width*p.x,height:i.height*p.y,x:i.x*p.x-g.scrollLeft*p.x+x.x+b.x,y:i.y*p.y-g.scrollTop*p.y+x.y+b.y}}function iT(n){return Array.from(n.getClientRects())}function rT(n){const a=Wn(n),i=vu(n),l=n.ownerDocument.body,o=un(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),f=un(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let h=-i.scrollLeft+yu(n);const m=-i.scrollTop;return Dn(l).direction==="rtl"&&(h+=un(a.clientWidth,l.clientWidth)-o),{width:o,height:f,x:h,y:m}}const $x=25;function lT(n,a){const i=fn(n),l=Wn(n),o=i.visualViewport;let f=l.clientWidth,h=l.clientHeight,m=0,g=0;if(o){f=o.width,h=o.height;const x=Cm();(!x||x&&a==="fixed")&&(m=o.offsetLeft,g=o.offsetTop)}const p=yu(l);if(p<=0){const x=l.ownerDocument,v=x.body,b=getComputedStyle(v),S=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,R=Math.abs(l.clientWidth-v.clientWidth-S);R<=$x&&(f-=R)}else p<=$x&&(f+=p);return{width:f,height:h,x:m,y:g}}function oT(n,a){const i=ui(n,!0,a==="fixed"),l=i.top+n.clientTop,o=i.left+n.clientLeft,f=Ta(n)?cr(n):Fn(1),h=n.clientWidth*f.x,m=n.clientHeight*f.y,g=o*f.x,p=l*f.y;return{width:h,height:m,x:g,y:p}}function Jx(n,a,i){let l;if(a==="viewport")l=lT(n,i);else if(a==="document")l=rT(Wn(n));else if(On(a))l=oT(a,i);else{const o=$0(n);l={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return au(l)}function e1(n,a){const i=Ss(n);return i===a||!On(i)||Tr(i)?!1:Dn(i).position==="fixed"||e1(i,a)}function cT(n,a){const i=a.get(n);if(i)return i;let l=Vl(n,[],!1).filter(m=>On(m)&&Mr(m)!=="body"),o=null;const f=Dn(n).position==="fixed";let h=f?Ss(n):n;for(;On(h)&&!Tr(h);){const m=Dn(h),g=Em(h);!g&&m.position==="fixed"&&(o=null),(f?!g&&!o:!g&&m.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||no(h)&&!g&&e1(n,h))?l=l.filter(x=>x!==h):o=m,h=Ss(h)}return a.set(n,l),l}function uT(n){let{element:a,boundary:i,rootBoundary:l,strategy:o}=n;const h=[...i==="clippingAncestors"?gu(a)?[]:cT(a,this._c):[].concat(i),l],m=Jx(a,h[0],o);let g=m.top,p=m.right,x=m.bottom,v=m.left;for(let b=1;b<h.length;b++){const S=Jx(a,h[b],o);g=un(S.top,g),p=bs(S.right,p),x=bs(S.bottom,x),v=un(S.left,v)}return{width:p-v,height:x-g,x:v,y:g}}function fT(n){const{width:a,height:i}=W0(n);return{width:a,height:i}}function dT(n,a,i){const l=Ta(a),o=Wn(a),f=i==="fixed",h=ui(n,!0,f,a);let m={scrollLeft:0,scrollTop:0};const g=Fn(0);function p(){g.x=yu(o)}if(l||!l&&!f)if((Mr(a)!=="body"||no(o))&&(m=vu(a)),l){const S=ui(a,!0,f,a);g.x=S.x+a.clientLeft,g.y=S.y+a.clientTop}else o&&p();f&&!l&&o&&p();const x=o&&!l&&!f?J0(o,m):Fn(0),v=h.left+m.scrollLeft-g.x-x.x,b=h.top+m.scrollTop-g.y-x.y;return{x:v,y:b,width:h.width,height:h.height}}function rh(n){return Dn(n).position==="static"}function eb(n,a){if(!Ta(n)||Dn(n).position==="fixed")return null;if(a)return a(n);let i=n.offsetParent;return Wn(n)===i&&(i=i.ownerDocument.body),i}function t1(n,a){const i=fn(n);if(gu(n))return i;if(!Ta(n)){let o=Ss(n);for(;o&&!Tr(o);){if(On(o)&&!rh(o))return o;o=Ss(o)}return i}let l=eb(n,a);for(;l&&$C(l)&&rh(l);)l=eb(l,a);return l&&Tr(l)&&rh(l)&&!Em(l)?i:l||tT(n)||i}const hT=async function(n){const a=this.getOffsetParent||t1,i=this.getDimensions,l=await i(n.floating);return{reference:dT(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function mT(n){return Dn(n).direction==="rtl"}const pT={convertOffsetParentRelativeRectToViewportRelativeRect:sT,getDocumentElement:Wn,getClippingRect:uT,getOffsetParent:t1,getElementRects:hT,getClientRects:iT,getDimensions:fT,getScale:cr,isElement:On,isRTL:mT};function n1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function gT(n,a){let i=null,l;const o=Wn(n);function f(){var m;clearTimeout(l),(m=i)==null||m.disconnect(),i=null}function h(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const p=n.getBoundingClientRect(),{left:x,top:v,width:b,height:S}=p;if(m||a(),!b||!S)return;const R=Ac(v),j=Ac(o.clientWidth-(x+b)),E=Ac(o.clientHeight-(v+S)),C=Ac(x),U={rootMargin:-R+"px "+-j+"px "+-E+"px "+-C+"px",threshold:un(0,bs(1,g))||1};let T=!0;function P(Y){const M=Y[0].intersectionRatio;if(M!==g){if(!T)return h();M?h(!1,M):l=setTimeout(()=>{h(!1,1e-7)},1e3)}M===1&&!n1(p,n.getBoundingClientRect())&&h(),T=!1}try{i=new IntersectionObserver(P,{...U,root:o.ownerDocument})}catch{i=new IntersectionObserver(P,U)}i.observe(n)}return h(!0),f}function vT(n,a,i,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=l,p=Tm(n),x=o||f?[...p?Vl(p):[],...a?Vl(a):[]]:[];x.forEach(C=>{o&&C.addEventListener("scroll",i,{passive:!0}),f&&C.addEventListener("resize",i)});const v=p&&m?gT(p,i):null;let b=-1,S=null;h&&(S=new ResizeObserver(C=>{let[_]=C;_&&_.target===p&&S&&a&&(S.unobserve(a),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=S)==null||U.observe(a)})),i()}),p&&!g&&S.observe(p),a&&S.observe(a));let R,j=g?ui(n):null;g&&E();function E(){const C=ui(n);j&&!n1(j,C)&&i(),j=C,R=requestAnimationFrame(E)}return i(),()=>{var C;x.forEach(_=>{o&&_.removeEventListener("scroll",i),f&&_.removeEventListener("resize",i)}),v==null||v(),(C=S)==null||C.disconnect(),S=null,g&&cancelAnimationFrame(R)}}const yT=KC,xT=ZC,bT=YC,ST=WC,wT=XC,tb=VC,jT=FC,NT=(n,a,i)=>{const l=new Map,o={platform:pT,...i},f={...o.platform,_c:l};return QC(n,a,{...o,platform:f})};var RT=typeof document<"u",ET=function(){},Qc=RT?N.useLayoutEffect:ET;function su(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let i,l,o;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==a.length)return!1;for(l=i;l--!==0;)if(!su(n[l],a[l]))return!1;return!0}if(o=Object.keys(n),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 f=o[l];if(!(f==="_owner"&&n.$$typeof)&&!su(n[f],a[f]))return!1}return!0}return n!==n&&a!==a}function a1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function nb(n,a){const i=a1(n);return Math.round(a*i)/i}function lh(n){const a=N.useRef(n);return Qc(()=>{a.current=n}),a}function CT(n){n===void 0&&(n={});const{placement:a="bottom",strategy:i="absolute",middleware:l=[],platform:o,elements:{reference:f,floating:h}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[x,v]=N.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[b,S]=N.useState(l);su(b,l)||S(l);const[R,j]=N.useState(null),[E,C]=N.useState(null),_=N.useCallback(J=>{J!==Y.current&&(Y.current=J,j(J))},[]),U=N.useCallback(J=>{J!==M.current&&(M.current=J,C(J))},[]),T=f||R,P=h||E,Y=N.useRef(null),M=N.useRef(null),D=N.useRef(x),L=g!=null,q=lh(g),W=lh(o),ee=lh(p),ne=N.useCallback(()=>{if(!Y.current||!M.current)return;const J={placement:a,strategy:i,middleware:b};W.current&&(J.platform=W.current),NT(Y.current,M.current,J).then(pe=>{const te={...pe,isPositioned:ee.current!==!1};ae.current&&!su(D.current,te)&&(D.current=te,fu.flushSync(()=>{v(te)}))})},[b,a,i,W,ee]);Qc(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,v(J=>({...J,isPositioned:!1})))},[p]);const ae=N.useRef(!1);Qc(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Qc(()=>{if(T&&(Y.current=T),P&&(M.current=P),T&&P){if(q.current)return q.current(T,P,ne);ne()}},[T,P,ne,q,L]);const de=N.useMemo(()=>({reference:Y,floating:M,setReference:_,setFloating:U}),[_,U]),B=N.useMemo(()=>({reference:T,floating:P}),[T,P]),X=N.useMemo(()=>{const J={position:i,left:0,top:0};if(!B.floating)return J;const pe=nb(B.floating,x.x),te=nb(B.floating,x.y);return m?{...J,transform:"translate("+pe+"px, "+te+"px)",...a1(B.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:pe,top:te}},[i,m,B.floating,x.x,x.y]);return N.useMemo(()=>({...x,update:ne,refs:de,elements:B,floatingStyles:X}),[x,ne,de,B,X])}const TT=n=>{function a(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:l,padding:o}=typeof n=="function"?n(i):n;return l&&a(l)?l.current!=null?tb({element:l.current,padding:o}).fn(i):{}:l?tb({element:l,padding:o}).fn(i):{}}}},_T=(n,a)=>{const i=yT(n);return{name:i.name,fn:i.fn,options:[n,a]}},AT=(n,a)=>{const i=xT(n);return{name:i.name,fn:i.fn,options:[n,a]}},MT=(n,a)=>({fn:jT(n).fn,options:[n,a]}),OT=(n,a)=>{const i=bT(n);return{name:i.name,fn:i.fn,options:[n,a]}},DT=(n,a)=>{const i=ST(n);return{name:i.name,fn:i.fn,options:[n,a]}},zT=(n,a)=>{const i=wT(n);return{name:i.name,fn:i.fn,options:[n,a]}},kT=(n,a)=>{const i=TT(n);return{name:i.name,fn:i.fn,options:[n,a]}};var LT="Arrow",s1=N.forwardRef((n,a)=>{const{children:i,width:l=10,height:o=5,...f}=n;return u.jsx(Wt.svg,{...f,ref:a,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});s1.displayName=LT;var UT=s1;function BT(n){const[a,i]=N.useState(void 0);return xs(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let h,m;if("borderBoxSize"in f){const g=f.borderBoxSize,p=Array.isArray(g)?g[0]:g;h=p.inlineSize,m=p.blockSize}else h=n.offsetWidth,m=n.offsetHeight;i({width:h,height:m})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else i(void 0)},[n]),a}var _m="Popper",[i1,r1]=Sm(_m),[HT,l1]=i1(_m),o1=n=>{const{__scopePopper:a,children:i}=n,[l,o]=N.useState(null);return u.jsx(HT,{scope:a,anchor:l,onAnchorChange:o,children:i})};o1.displayName=_m;var c1="PopperAnchor",u1=N.forwardRef((n,a)=>{const{__scopePopper:i,virtualRef:l,...o}=n,f=l1(c1,i),h=N.useRef(null),m=kn(a,h),g=N.useRef(null);return N.useEffect(()=>{const p=g.current;g.current=(l==null?void 0:l.current)||h.current,p!==g.current&&f.onAnchorChange(g.current)}),l?null:u.jsx(Wt.div,{...o,ref:m})});u1.displayName=c1;var Am="PopperContent",[PT,qT]=i1(Am),f1=N.forwardRef((n,a)=>{var Se,Le,ye,zt,xt,Tt;const{__scopePopper:i,side:l="bottom",sideOffset:o=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:v="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:R,...j}=n,E=l1(Am,i),[C,_]=N.useState(null),U=kn(a,kt=>_(kt)),[T,P]=N.useState(null),Y=BT(T),M=(Y==null?void 0:Y.width)??0,D=(Y==null?void 0:Y.height)??0,L=l+(f!=="center"?"-"+f:""),q=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},W=Array.isArray(p)?p:[p],ee=W.length>0,ne={padding:q,boundary:W.filter(QT),altBoundary:ee},{refs:ae,floatingStyles:de,placement:B,isPositioned:X,middlewareData:J}=CT({strategy:"fixed",placement:L,whileElementsMounted:(...kt)=>vT(...kt,{animationFrame:S==="always"}),elements:{reference:E.anchor},middleware:[_T({mainAxis:o+D,alignmentAxis:h}),g&&AT({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?MT():void 0,...ne}),g&&OT({...ne}),DT({...ne,apply:({elements:kt,rects:mt,availableWidth:js,availableHeight:_a})=>{const{width:pi,height:Rn}=mt.reference,hn=kt.floating.style;hn.setProperty("--radix-popper-available-width",`${js}px`),hn.setProperty("--radix-popper-available-height",`${_a}px`),hn.setProperty("--radix-popper-anchor-width",`${pi}px`),hn.setProperty("--radix-popper-anchor-height",`${Rn}px`)}}),T&&kT({element:T,padding:m}),VT({arrowWidth:M,arrowHeight:D}),b&&zT({strategy:"referenceHidden",...ne})]}),[pe,te]=m1(B),O=Cr(R);xs(()=>{X&&(O==null||O())},[X,O]);const Z=(Se=J.arrow)==null?void 0:Se.x,se=(Le=J.arrow)==null?void 0:Le.y,ie=((ye=J.arrow)==null?void 0:ye.centerOffset)!==0,[re,he]=N.useState();return xs(()=>{C&&he(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:X?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[(zt=J.transformOrigin)==null?void 0:zt.x,(xt=J.transformOrigin)==null?void 0:xt.y].join(" "),...((Tt=J.hide)==null?void 0:Tt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:u.jsx(PT,{scope:i,placedSide:pe,onArrowChange:P,arrowX:Z,arrowY:se,shouldHideArrow:ie,children:u.jsx(Wt.div,{"data-side":pe,"data-align":te,...j,ref:U,style:{...j.style,animation:X?void 0:"none"}})})})});f1.displayName=Am;var d1="PopperArrow",GT={top:"bottom",right:"left",bottom:"top",left:"right"},h1=N.forwardRef(function(a,i){const{__scopePopper:l,...o}=a,f=qT(d1,l),h=GT[f.placedSide];return u.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:u.jsx(UT,{...o,ref:i,style:{...o.style,display:"block"}})})});h1.displayName=d1;function QT(n){return n!==null}var VT=n=>({name:"transformOrigin",options:n,fn(a){var E,C,_;const{placement:i,rects:l,middlewareData:o}=a,h=((E=o.arrow)==null?void 0:E.centerOffset)!==0,m=h?0:n.arrowWidth,g=h?0:n.arrowHeight,[p,x]=m1(i),v={start:"0%",center:"50%",end:"100%"}[x],b=(((C=o.arrow)==null?void 0:C.x)??0)+m/2,S=(((_=o.arrow)==null?void 0:_.y)??0)+g/2;let R="",j="";return p==="bottom"?(R=h?v:`${b}px`,j=`${-g}px`):p==="top"?(R=h?v:`${b}px`,j=`${l.floating.height+g}px`):p==="right"?(R=`${-g}px`,j=h?v:`${S}px`):p==="left"&&(R=`${l.floating.width+g}px`,j=h?v:`${S}px`),{data:{x:R,y:j}}}});function m1(n){const[a,i="center"]=n.split("-");return[a,i]}var YT=o1,XT=u1,IT=f1,KT=h1,ZT="Portal",Mm=N.forwardRef((n,a)=>{var m;const{container:i,...l}=n,[o,f]=N.useState(!1);xs(()=>f(!0),[]);const h=i||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?nN.createPortal(u.jsx(Wt.div,{...l,ref:a}),h):null});Mm.displayName=ZT;function FT(n,a){return N.useReducer((i,l)=>a[i][l]??i,n)}var Or=n=>{const{present:a,children:i}=n,l=WT(a),o=typeof i=="function"?i({present:l.isPresent}):N.Children.only(i),f=kn(l.ref,$T(o));return typeof i=="function"||l.isPresent?N.cloneElement(o,{ref:f}):null};Or.displayName="Presence";function WT(n){const[a,i]=N.useState(),l=N.useRef(null),o=N.useRef(n),f=N.useRef("none"),h=n?"mounted":"unmounted",[m,g]=FT(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const p=Mc(l.current);f.current=m==="mounted"?p:"none"},[m]),xs(()=>{const p=l.current,x=o.current;if(x!==n){const b=f.current,S=Mc(p);n?g("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(x&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,g]),xs(()=>{if(a){let p;const x=a.ownerDocument.defaultView??window,v=S=>{const j=Mc(l.current).includes(CSS.escape(S.animationName));if(S.target===a&&j&&(g("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",p=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},b=S=>{S.target===a&&(f.current=Mc(l.current))};return a.addEventListener("animationstart",b),a.addEventListener("animationcancel",v),a.addEventListener("animationend",v),()=>{x.clearTimeout(p),a.removeEventListener("animationstart",b),a.removeEventListener("animationcancel",v),a.removeEventListener("animationend",v)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:N.useCallback(p=>{l.current=p?getComputedStyle(p):null,i(p)},[])}}function Mc(n){return(n==null?void 0:n.animationName)||"none"}function $T(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var JT=tm[" useInsertionEffect ".trim().toString()]||xs;function p1({prop:n,defaultProp:a,onChange:i=()=>{},caller:l}){const[o,f,h]=e_({defaultProp:a,onChange:i}),m=n!==void 0,g=m?n:o;{const x=N.useRef(n!==void 0);N.useEffect(()=>{const v=x.current;v!==m&&console.warn(`${l} is changing from ${v?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,l])}const p=N.useCallback(x=>{var v;if(m){const b=t_(x)?x(n):x;b!==n&&((v=h.current)==null||v.call(h,b))}else f(x)},[m,n,f,h]);return[g,p]}function e_({defaultProp:n,onChange:a}){const[i,l]=N.useState(n),o=N.useRef(i),f=N.useRef(a);return JT(()=>{f.current=a},[a]),N.useEffect(()=>{var h;o.current!==i&&((h=f.current)==null||h.call(f,i),o.current=i)},[i,o]),[i,l,f]}function t_(n){return typeof n=="function"}var n_=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"}),a_="VisuallyHidden",g1=N.forwardRef((n,a)=>u.jsx(Wt.span,{...n,ref:a,style:{...n_,...n.style}}));g1.displayName=a_;var s_=g1,[xu]=Sm("Tooltip",[r1]),bu=r1(),v1="TooltipProvider",i_=700,Fh="tooltip.open",[r_,Om]=xu(v1),y1=n=>{const{__scopeTooltip:a,delayDuration:i=i_,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:f}=n,h=N.useRef(!0),m=N.useRef(!1),g=N.useRef(0);return N.useEffect(()=>{const p=g.current;return()=>window.clearTimeout(p)},[]),u.jsx(r_,{scope:a,isOpenDelayedRef:h,delayDuration:i,onOpen:N.useCallback(()=>{window.clearTimeout(g.current),h.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>h.current=!0,l)},[l]),isPointerInTransitRef:m,onPointerInTransitChange:N.useCallback(p=>{m.current=p},[]),disableHoverableContent:o,children:f})};y1.displayName=v1;var Yl="Tooltip",[l_,ao]=xu(Yl),x1=n=>{const{__scopeTooltip:a,children:i,open:l,defaultOpen:o,onOpenChange:f,disableHoverableContent:h,delayDuration:m}=n,g=Om(Yl,n.__scopeTooltip),p=bu(a),[x,v]=N.useState(null),b=Gc(),S=N.useRef(0),R=h??g.disableHoverableContent,j=m??g.delayDuration,E=N.useRef(!1),[C,_]=p1({prop:l,defaultProp:o??!1,onChange:M=>{M?(g.onOpen(),document.dispatchEvent(new CustomEvent(Fh))):g.onClose(),f==null||f(M)},caller:Yl}),U=N.useMemo(()=>C?E.current?"delayed-open":"instant-open":"closed",[C]),T=N.useCallback(()=>{window.clearTimeout(S.current),S.current=0,E.current=!1,_(!0)},[_]),P=N.useCallback(()=>{window.clearTimeout(S.current),S.current=0,_(!1)},[_]),Y=N.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{E.current=!0,_(!0),S.current=0},j)},[j,_]);return N.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),u.jsx(YT,{...p,children:u.jsx(l_,{scope:a,contentId:b,open:C,stateAttribute:U,trigger:x,onTriggerChange:v,onTriggerEnter:N.useCallback(()=>{g.isOpenDelayedRef.current?Y():T()},[g.isOpenDelayedRef,Y,T]),onTriggerLeave:N.useCallback(()=>{R?P():(window.clearTimeout(S.current),S.current=0)},[P,R]),onOpen:T,onClose:P,disableHoverableContent:R,children:i})})};x1.displayName=Yl;var Wh="TooltipTrigger",b1=N.forwardRef((n,a)=>{const{__scopeTooltip:i,...l}=n,o=ao(Wh,i),f=Om(Wh,i),h=bu(i),m=N.useRef(null),g=kn(a,m,o.onTriggerChange),p=N.useRef(!1),x=N.useRef(!1),v=N.useCallback(()=>p.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),u.jsx(XT,{asChild:!0,...h,children:u.jsx(Wt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:g,onPointerMove:Kt(n.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!f.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Kt(n.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Kt(n.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:Kt(n.onFocus,()=>{p.current||o.onOpen()}),onBlur:Kt(n.onBlur,o.onClose),onClick:Kt(n.onClick,o.onClose)})})});b1.displayName=Wh;var Dm="TooltipPortal",[o_,c_]=xu(Dm,{forceMount:void 0}),S1=n=>{const{__scopeTooltip:a,forceMount:i,children:l,container:o}=n,f=ao(Dm,a);return u.jsx(o_,{scope:a,forceMount:i,children:u.jsx(Or,{present:i||f.open,children:u.jsx(Mm,{asChild:!0,container:o,children:l})})})};S1.displayName=Dm;var _r="TooltipContent",w1=N.forwardRef((n,a)=>{const i=c_(_r,n.__scopeTooltip),{forceMount:l=i.forceMount,side:o="top",...f}=n,h=ao(_r,n.__scopeTooltip);return u.jsx(Or,{present:l||h.open,children:h.disableHoverableContent?u.jsx(j1,{side:o,...f,ref:a}):u.jsx(u_,{side:o,...f,ref:a})})}),u_=N.forwardRef((n,a)=>{const i=ao(_r,n.__scopeTooltip),l=Om(_r,n.__scopeTooltip),o=N.useRef(null),f=kn(a,o),[h,m]=N.useState(null),{trigger:g,onClose:p}=i,x=o.current,{onPointerInTransitChange:v}=l,b=N.useCallback(()=>{m(null),v(!1)},[v]),S=N.useCallback((R,j)=>{const E=R.currentTarget,C={x:R.clientX,y:R.clientY},_=m_(C,E.getBoundingClientRect()),U=p_(C,_),T=g_(j.getBoundingClientRect()),P=y_([...U,...T]);m(P),v(!0)},[v]);return N.useEffect(()=>()=>b(),[b]),N.useEffect(()=>{if(g&&x){const R=E=>S(E,x),j=E=>S(E,g);return g.addEventListener("pointerleave",R),x.addEventListener("pointerleave",j),()=>{g.removeEventListener("pointerleave",R),x.removeEventListener("pointerleave",j)}}},[g,x,S,b]),N.useEffect(()=>{if(h){const R=j=>{const E=j.target,C={x:j.clientX,y:j.clientY},_=(g==null?void 0:g.contains(E))||(x==null?void 0:x.contains(E)),U=!v_(C,h);_?b():U&&(b(),p())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[g,x,h,p,b]),u.jsx(j1,{...n,ref:f})}),[f_,d_]=xu(Yl,{isInside:!1}),h_=gC("TooltipContent"),j1=N.forwardRef((n,a)=>{const{__scopeTooltip:i,children:l,"aria-label":o,onEscapeKeyDown:f,onPointerDownOutside:h,...m}=n,g=ao(_r,i),p=bu(i),{onClose:x}=g;return N.useEffect(()=>(document.addEventListener(Fh,x),()=>document.removeEventListener(Fh,x)),[x]),N.useEffect(()=>{if(g.trigger){const v=b=>{const S=b.target;S!=null&&S.contains(g.trigger)&&x()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[g.trigger,x]),u.jsx(wm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:v=>v.preventDefault(),onDismiss:x,children:u.jsxs(IT,{"data-state":g.stateAttribute,...p,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(h_,{children:l}),u.jsx(f_,{scope:i,isInside:!0,children:u.jsx(s_,{id:g.contentId,role:"tooltip",children:o||l})})]})})});w1.displayName=_r;var N1="TooltipArrow",R1=N.forwardRef((n,a)=>{const{__scopeTooltip:i,...l}=n,o=bu(i);return d_(N1,i).isInside?null:u.jsx(KT,{...o,...l,ref:a})});R1.displayName=N1;function m_(n,a){const i=Math.abs(a.top-n.y),l=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),f=Math.abs(a.left-n.x);switch(Math.min(i,l,o,f)){case f:return"left";case o:return"right";case i:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function p_(n,a,i=5){const l=[];switch(a){case"top":l.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":l.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":l.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":l.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return l}function g_(n){const{top:a,right:i,bottom:l,left:o}=n;return[{x:o,y:a},{x:i,y:a},{x:i,y:l},{x:o,y:l}]}function v_(n,a){const{x:i,y:l}=n;let o=!1;for(let f=0,h=a.length-1;f<a.length;h=f++){const m=a[f],g=a[h],p=m.x,x=m.y,v=g.x,b=g.y;x>l!=b>l&&i<(v-p)*(l-x)/(b-x)+p&&(o=!o)}return o}function y_(n){const a=n.slice();return a.sort((i,l)=>i.x<l.x?-1:i.x>l.x?1:i.y<l.y?-1:i.y>l.y?1:0),x_(a)}function x_(n){if(n.length<=1)return n.slice();const a=[];for(let l=0;l<n.length;l++){const o=n[l];for(;a.length>=2;){const f=a[a.length-1],h=a[a.length-2];if((f.x-h.x)*(o.y-h.y)>=(f.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const i=[];for(let l=n.length-1;l>=0;l--){const o=n[l];for(;i.length>=2;){const f=i[i.length-1],h=i[i.length-2];if((f.x-h.x)*(o.y-h.y)>=(f.y-h.y)*(o.x-h.x))i.pop();else break}i.push(o)}return i.pop(),a.length===1&&i.length===1&&a[0].x===i[0].x&&a[0].y===i[0].y?a:a.concat(i)}var b_=y1,S_=x1,w_=b1,j_=S1,N_=w1,R_=R1;function $e(...n){return q0(vm(n))}function E_({delayDuration:n=0,...a}){return u.jsx(b_,{"data-slot":"tooltip-provider",delayDuration:n,...a})}function C_({...n}){return u.jsx(S_,{"data-slot":"tooltip",...n})}function T_({...n}){return u.jsx(w_,{"data-slot":"tooltip-trigger",...n})}function __({className:n,sideOffset:a=0,children:i,...l}){return u.jsx(j_,{children:u.jsxs(N_,{"data-slot":"tooltip-content",sideOffset:a,className:$e("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...l,children:[i,u.jsx(R_,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}var A_=Symbol.for("react.lazy"),iu=tm[" use ".trim().toString()];function M_(n){return typeof n=="object"&&n!==null&&"then"in n}function E1(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===A_&&"_payload"in n&&M_(n._payload)}function C1(n){const a=O_(n),i=N.forwardRef((l,o)=>{let{children:f,...h}=l;E1(f)&&typeof iu=="function"&&(f=iu(f._payload));const m=N.Children.toArray(f),g=m.find(z_);if(g){const p=g.props.children,x=m.map(v=>v===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:v);return u.jsx(a,{...h,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:f})});return i.displayName=`${n}.Slot`,i}var zm=C1("Slot");function O_(n){const a=N.forwardRef((i,l)=>{let{children:o,...f}=i;if(E1(o)&&typeof iu=="function"&&(o=iu(o._payload)),N.isValidElement(o)){const h=L_(o),m=k_(f,o.props);return o.type!==N.Fragment&&(m.ref=l?bm(l,h):h),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var D_=Symbol("radix.slottable");function z_(n){return N.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===D_}function k_(n,a){const i={...a};for(const l in a){const o=n[l],f=a[l];/^on[A-Z]/.test(l)?o&&f?i[l]=(...m)=>{const g=f(...m);return o(...m),g}:o&&(i[l]=o):l==="style"?i[l]={...o,...f}:l==="className"&&(i[l]=[o,f].filter(Boolean).join(" "))}return{...n,...i}}function L_(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}const oh=768;function U_(){const[n,a]=N.useState(void 0);return N.useEffect(()=>{const i=window.matchMedia(`(max-width: ${oh-1}px)`),l=()=>{a(window.innerWidth<oh)};return i.addEventListener("change",l),a(window.innerWidth<oh),()=>i.removeEventListener("change",l)},[]),!!n}const B_=mu("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function T1({className:n,variant:a="default",size:i="default",asChild:l=!1,...o}){const f=l?zm:"button";return u.jsx(f,{"data-slot":"button","data-variant":a,"data-size":i,className:$e(B_({variant:a,size:i,className:n})),...o})}var H_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P_=H_.reduce((n,a)=>{const i=C1(`Primitive.${a}`),l=N.forwardRef((o,f)=>{const{asChild:h,...m}=o,g=h?i:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...m,ref:f})});return l.displayName=`Primitive.${a}`,{...n,[a]:l}},{}),q_="Separator",ab="horizontal",G_=["horizontal","vertical"],_1=N.forwardRef((n,a)=>{const{decorative:i,orientation:l=ab,...o}=n,f=Q_(l)?l:ab,m=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return u.jsx(P_.div,{"data-orientation":f,...m,...o,ref:a})});_1.displayName=q_;function Q_(n){return G_.includes(n)}var V_=_1;function Y_({className:n,orientation:a="horizontal",decorative:i=!0,...l}){return u.jsx(V_,{"data-slot":"separator",decorative:i,orientation:a,className:$e("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",n),...l})}var ch="focusScope.autoFocusOnMount",uh="focusScope.autoFocusOnUnmount",sb={bubbles:!1,cancelable:!0},X_="FocusScope",A1=N.forwardRef((n,a)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:f,...h}=n,[m,g]=N.useState(null),p=Cr(o),x=Cr(f),v=N.useRef(null),b=kn(a,j=>g(j)),S=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(l){let j=function(U){if(S.paused||!m)return;const T=U.target;m.contains(T)?v.current=T:ss(v.current,{select:!0})},E=function(U){if(S.paused||!m)return;const T=U.relatedTarget;T!==null&&(m.contains(T)||ss(v.current,{select:!0}))},C=function(U){if(document.activeElement===document.body)for(const P of U)P.removedNodes.length>0&&ss(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",E);const _=new MutationObserver(C);return m&&_.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",E),_.disconnect()}}},[l,m,S.paused]),N.useEffect(()=>{if(m){rb.add(S);const j=document.activeElement;if(!m.contains(j)){const C=new CustomEvent(ch,sb);m.addEventListener(ch,p),m.dispatchEvent(C),C.defaultPrevented||(I_($_(M1(m)),{select:!0}),document.activeElement===j&&ss(m))}return()=>{m.removeEventListener(ch,p),setTimeout(()=>{const C=new CustomEvent(uh,sb);m.addEventListener(uh,x),m.dispatchEvent(C),C.defaultPrevented||ss(j??document.body,{select:!0}),m.removeEventListener(uh,x),rb.remove(S)},0)}}},[m,p,x,S]);const R=N.useCallback(j=>{if(!i&&!l||S.paused)return;const E=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,C=document.activeElement;if(E&&C){const _=j.currentTarget,[U,T]=K_(_);U&&T?!j.shiftKey&&C===T?(j.preventDefault(),i&&ss(U,{select:!0})):j.shiftKey&&C===U&&(j.preventDefault(),i&&ss(T,{select:!0})):C===_&&j.preventDefault()}},[i,l,S.paused]);return u.jsx(Wt.div,{tabIndex:-1,...h,ref:b,onKeyDown:R})});A1.displayName=X_;function I_(n,{select:a=!1}={}){const i=document.activeElement;for(const l of n)if(ss(l,{select:a}),document.activeElement!==i)return}function K_(n){const a=M1(n),i=ib(a,n),l=ib(a.reverse(),n);return[i,l]}function M1(n){const a=[],i=document.createTreeWalker(n,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 ib(n,a){for(const i of n)if(!Z_(i,{upTo:a}))return i}function Z_(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function F_(n){return n instanceof HTMLInputElement&&"select"in n}function ss(n,{select:a=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&F_(n)&&a&&n.select()}}var rb=W_();function W_(){let n=[];return{add(a){const i=n[0];a!==i&&(i==null||i.pause()),n=lb(n,a),n.unshift(a)},remove(a){var i;n=lb(n,a),(i=n[0])==null||i.resume()}}}function lb(n,a){const i=[...n],l=i.indexOf(a);return l!==-1&&i.splice(l,1),i}function $_(n){return n.filter(a=>a.tagName!=="A")}var fh=0;function J_(){N.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??ob()),document.body.insertAdjacentElement("beforeend",n[1]??ob()),fh++,()=>{fh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),fh--}},[])}function ob(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var In=function(){return In=Object.assign||function(a){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(a[f]=i[f])}return a},In.apply(this,arguments)};function O1(n,a){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(n);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(n,l[o])&&(i[l[o]]=n[l[o]]);return i}function eA(n,a,i){if(i||arguments.length===2)for(var l=0,o=a.length,f;l<o;l++)(f||!(l in a))&&(f||(f=Array.prototype.slice.call(a,0,l)),f[l]=a[l]);return n.concat(f||Array.prototype.slice.call(a))}var Vc="right-scroll-bar-position",Yc="width-before-scroll-bar",tA="with-scroll-bars-hidden",nA="--removed-body-scroll-bar-size";function dh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function aA(n,a){var i=N.useState(function(){return{value:n,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 sA=typeof window<"u"?N.useLayoutEffect:N.useEffect,cb=new WeakMap;function iA(n,a){var i=aA(null,function(l){return n.forEach(function(o){return dh(o,l)})});return sA(function(){var l=cb.get(i);if(l){var o=new Set(l),f=new Set(n),h=i.current;o.forEach(function(m){f.has(m)||dh(m,null)}),f.forEach(function(m){o.has(m)||dh(m,h)})}cb.set(i,n)},[n]),i}function rA(n){return n}function lA(n,a){a===void 0&&(a=rA);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]:n},useMedium:function(f){var h=a(f,l);return i.push(h),function(){i=i.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(l=!0;i.length;){var h=i;i=[],h.forEach(f)}i={push:function(m){return f(m)},filter:function(){return i}}},assignMedium:function(f){l=!0;var h=[];if(i.length){var m=i;i=[],m.forEach(f),h=i}var g=function(){var x=h;h=[],x.forEach(f)},p=function(){return Promise.resolve().then(g)};p(),i={push:function(x){h.push(x),p()},filter:function(x){return h=h.filter(x),i}}}};return o}function oA(n){n===void 0&&(n={});var a=lA(null);return a.options=In({async:!0,ssr:!1},n),a}var D1=function(n){var a=n.sideCar,i=O1(n,["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 N.createElement(l,In({},i))};D1.isSideCarExport=!0;function cA(n,a){return n.useMedium(a),D1}var z1=oA(),hh=function(){},Su=N.forwardRef(function(n,a){var i=N.useRef(null),l=N.useState({onScrollCapture:hh,onWheelCapture:hh,onTouchMoveCapture:hh}),o=l[0],f=l[1],h=n.forwardProps,m=n.children,g=n.className,p=n.removeScrollBar,x=n.enabled,v=n.shards,b=n.sideCar,S=n.noRelative,R=n.noIsolation,j=n.inert,E=n.allowPinchZoom,C=n.as,_=C===void 0?"div":C,U=n.gapMode,T=O1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=b,Y=iA([i,a]),M=In(In({},T),o);return N.createElement(N.Fragment,null,x&&N.createElement(P,{sideCar:z1,removeScrollBar:p,shards:v,noRelative:S,noIsolation:R,inert:j,setCallbacks:f,allowPinchZoom:!!E,lockRef:i,gapMode:U}),h?N.cloneElement(N.Children.only(m),In(In({},M),{ref:Y})):N.createElement(_,In({},M,{className:g,ref:Y}),m))});Su.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Su.classNames={fullWidth:Yc,zeroRight:Vc};var uA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fA(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=uA();return a&&n.setAttribute("nonce",a),n}function dA(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function hA(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var mA=function(){var n=0,a=null;return{add:function(i){n==0&&(a=fA())&&(dA(a,i),hA(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},pA=function(){var n=mA();return function(a,i){N.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&i])}},k1=function(){var n=pA(),a=function(i){var l=i.styles,o=i.dynamic;return n(l,o),null};return a},gA={left:0,top:0,right:0,gap:0},mh=function(n){return parseInt(n||"",10)||0},vA=function(n){var a=window.getComputedStyle(document.body),i=a[n==="padding"?"paddingLeft":"marginLeft"],l=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[mh(i),mh(l),mh(o)]},yA=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return gA;var a=vA(n),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])}},xA=k1(),ur="data-scroll-locked",bA=function(n,a,i,l){var o=n.left,f=n.top,h=n.right,m=n.gap;return i===void 0&&(i="margin"),`
|
|
246
|
-
.`.concat(tA,` {
|
|
247
|
-
overflow: hidden `).concat(l,`;
|
|
248
|
-
padding-right: `).concat(m,"px ").concat(l,`;
|
|
249
|
-
}
|
|
250
|
-
body[`).concat(ur,`] {
|
|
251
|
-
overflow: hidden `).concat(l,`;
|
|
252
|
-
overscroll-behavior: contain;
|
|
253
|
-
`).concat([a&&"position: relative ".concat(l,";"),i==="margin"&&`
|
|
254
|
-
padding-left: `.concat(o,`px;
|
|
255
|
-
padding-top: `).concat(f,`px;
|
|
256
|
-
padding-right: `).concat(h,`px;
|
|
257
|
-
margin-left:0;
|
|
258
|
-
margin-top:0;
|
|
259
|
-
margin-right: `).concat(m,"px ").concat(l,`;
|
|
260
|
-
`),i==="padding"&&"padding-right: ".concat(m,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.`).concat(Vc,` {
|
|
264
|
-
right: `).concat(m,"px ").concat(l,`;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.`).concat(Yc,` {
|
|
268
|
-
margin-right: `).concat(m,"px ").concat(l,`;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.`).concat(Vc," .").concat(Vc,` {
|
|
272
|
-
right: 0 `).concat(l,`;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.`).concat(Yc," .").concat(Yc,` {
|
|
276
|
-
margin-right: 0 `).concat(l,`;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
body[`).concat(ur,`] {
|
|
280
|
-
`).concat(nA,": ").concat(m,`px;
|
|
281
|
-
}
|
|
282
|
-
`)},ub=function(){var n=parseInt(document.body.getAttribute(ur)||"0",10);return isFinite(n)?n:0},SA=function(){N.useEffect(function(){return document.body.setAttribute(ur,(ub()+1).toString()),function(){var n=ub()-1;n<=0?document.body.removeAttribute(ur):document.body.setAttribute(ur,n.toString())}},[])},wA=function(n){var a=n.noRelative,i=n.noImportant,l=n.gapMode,o=l===void 0?"margin":l;SA();var f=N.useMemo(function(){return yA(o)},[o]);return N.createElement(xA,{styles:bA(f,!a,o,i?"":"!important")})},$h=!1;if(typeof window<"u")try{var Oc=Object.defineProperty({},"passive",{get:function(){return $h=!0,!0}});window.addEventListener("test",Oc,Oc),window.removeEventListener("test",Oc,Oc)}catch{$h=!1}var nr=$h?{passive:!1}:!1,jA=function(n){return n.tagName==="TEXTAREA"},L1=function(n,a){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[a]!=="hidden"&&!(i.overflowY===i.overflowX&&!jA(n)&&i[a]==="visible")},NA=function(n){return L1(n,"overflowY")},RA=function(n){return L1(n,"overflowX")},fb=function(n,a){var i=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=U1(n,l);if(o){var f=B1(n,l),h=f[1],m=f[2];if(h>m)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},EA=function(n){var a=n.scrollTop,i=n.scrollHeight,l=n.clientHeight;return[a,i,l]},CA=function(n){var a=n.scrollLeft,i=n.scrollWidth,l=n.clientWidth;return[a,i,l]},U1=function(n,a){return n==="v"?NA(a):RA(a)},B1=function(n,a){return n==="v"?EA(a):CA(a)},TA=function(n,a){return n==="h"&&a==="rtl"?-1:1},_A=function(n,a,i,l,o){var f=TA(n,window.getComputedStyle(a).direction),h=f*l,m=i.target,g=a.contains(m),p=!1,x=h>0,v=0,b=0;do{if(!m)break;var S=B1(n,m),R=S[0],j=S[1],E=S[2],C=j-E-f*R;(R||C)&&U1(n,m)&&(v+=C,b+=R);var _=m.parentNode;m=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!g&&m!==document.body||g&&(a.contains(m)||a===m));return(x&&Math.abs(v)<1||!x&&Math.abs(b)<1)&&(p=!0),p},Dc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},db=function(n){return[n.deltaX,n.deltaY]},hb=function(n){return n&&"current"in n?n.current:n},AA=function(n,a){return n[0]===a[0]&&n[1]===a[1]},MA=function(n){return`
|
|
283
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
284
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
285
|
-
`)},OA=0,ar=[];function DA(n){var a=N.useRef([]),i=N.useRef([0,0]),l=N.useRef(),o=N.useState(OA++)[0],f=N.useState(k1)[0],h=N.useRef(n);N.useEffect(function(){h.current=n},[n]),N.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var j=eA([n.lockRef.current],(n.shards||[]).map(hb),!0).filter(Boolean);return j.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var m=N.useCallback(function(j,E){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var C=Dc(j),_=i.current,U="deltaX"in j?j.deltaX:_[0]-C[0],T="deltaY"in j?j.deltaY:_[1]-C[1],P,Y=j.target,M=Math.abs(U)>Math.abs(T)?"h":"v";if("touches"in j&&M==="h"&&Y.type==="range")return!1;var D=window.getSelection(),L=D&&D.anchorNode,q=L?L===Y||L.contains(Y):!1;if(q)return!1;var W=fb(M,Y);if(!W)return!0;if(W?P=M:(P=M==="v"?"h":"v",W=fb(M,Y)),!W)return!1;if(!l.current&&"changedTouches"in j&&(U||T)&&(l.current=P),!P)return!0;var ee=l.current||P;return _A(ee,E,j,ee==="h"?U:T)},[]),g=N.useCallback(function(j){var E=j;if(!(!ar.length||ar[ar.length-1]!==f)){var C="deltaY"in E?db(E):Dc(E),_=a.current.filter(function(P){return P.name===E.type&&(P.target===E.target||E.target===P.shadowParent)&&AA(P.delta,C)})[0];if(_&&_.should){E.cancelable&&E.preventDefault();return}if(!_){var U=(h.current.shards||[]).map(hb).filter(Boolean).filter(function(P){return P.contains(E.target)}),T=U.length>0?m(E,U[0]):!h.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),p=N.useCallback(function(j,E,C,_){var U={name:j,delta:E,target:C,should:_,shadowParent:zA(C)};a.current.push(U),setTimeout(function(){a.current=a.current.filter(function(T){return T!==U})},1)},[]),x=N.useCallback(function(j){i.current=Dc(j),l.current=void 0},[]),v=N.useCallback(function(j){p(j.type,db(j),j.target,m(j,n.lockRef.current))},[]),b=N.useCallback(function(j){p(j.type,Dc(j),j.target,m(j,n.lockRef.current))},[]);N.useEffect(function(){return ar.push(f),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",g,nr),document.addEventListener("touchmove",g,nr),document.addEventListener("touchstart",x,nr),function(){ar=ar.filter(function(j){return j!==f}),document.removeEventListener("wheel",g,nr),document.removeEventListener("touchmove",g,nr),document.removeEventListener("touchstart",x,nr)}},[]);var S=n.removeScrollBar,R=n.inert;return N.createElement(N.Fragment,null,R?N.createElement(f,{styles:MA(o)}):null,S?N.createElement(wA,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function zA(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const kA=cA(z1,DA);var H1=N.forwardRef(function(n,a){return N.createElement(Su,In({},n,{ref:a,sideCar:kA}))});H1.classNames=Su.classNames;var LA=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},sr=new WeakMap,zc=new WeakMap,kc={},ph=0,P1=function(n){return n&&(n.host||P1(n.parentNode))},UA=function(n,a){return a.map(function(i){if(n.contains(i))return i;var l=P1(i);return l&&n.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},BA=function(n,a,i,l){var o=UA(a,Array.isArray(n)?n:[n]);kc[i]||(kc[i]=new WeakMap);var f=kc[i],h=[],m=new Set,g=new Set(o),p=function(v){!v||m.has(v)||(m.add(v),p(v.parentNode))};o.forEach(p);var x=function(v){!v||g.has(v)||Array.prototype.forEach.call(v.children,function(b){if(m.has(b))x(b);else try{var S=b.getAttribute(l),R=S!==null&&S!=="false",j=(sr.get(b)||0)+1,E=(f.get(b)||0)+1;sr.set(b,j),f.set(b,E),h.push(b),j===1&&R&&zc.set(b,!0),E===1&&b.setAttribute(i,"true"),R||b.setAttribute(l,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})};return x(a),m.clear(),ph++,function(){h.forEach(function(v){var b=sr.get(v)-1,S=f.get(v)-1;sr.set(v,b),f.set(v,S),b||(zc.has(v)||v.removeAttribute(l),zc.delete(v)),S||v.removeAttribute(i)}),ph--,ph||(sr=new WeakMap,sr=new WeakMap,zc=new WeakMap,kc={})}},HA=function(n,a,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),o=LA(n);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),BA(l,o,i,"aria-hidden")):function(){return null}},wu="Dialog",[q1]=Sm(wu),[PA,Ln]=q1(wu),G1=n=>{const{__scopeDialog:a,children:i,open:l,defaultOpen:o,onOpenChange:f,modal:h=!0}=n,m=N.useRef(null),g=N.useRef(null),[p,x]=p1({prop:l,defaultProp:o??!1,onChange:f,caller:wu});return u.jsx(PA,{scope:a,triggerRef:m,contentRef:g,contentId:Gc(),titleId:Gc(),descriptionId:Gc(),open:p,onOpenChange:x,onOpenToggle:N.useCallback(()=>x(v=>!v),[x]),modal:h,children:i})};G1.displayName=wu;var Q1="DialogTrigger",qA=N.forwardRef((n,a)=>{const{__scopeDialog:i,...l}=n,o=Ln(Q1,i),f=kn(a,o.triggerRef);return u.jsx(Wt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Um(o.open),...l,ref:f,onClick:Kt(n.onClick,o.onOpenToggle)})});qA.displayName=Q1;var km="DialogPortal",[GA,V1]=q1(km,{forceMount:void 0}),Y1=n=>{const{__scopeDialog:a,forceMount:i,children:l,container:o}=n,f=Ln(km,a);return u.jsx(GA,{scope:a,forceMount:i,children:N.Children.map(l,h=>u.jsx(Or,{present:i||f.open,children:u.jsx(Mm,{asChild:!0,container:o,children:h})}))})};Y1.displayName=km;var ru="DialogOverlay",X1=N.forwardRef((n,a)=>{const i=V1(ru,n.__scopeDialog),{forceMount:l=i.forceMount,...o}=n,f=Ln(ru,n.__scopeDialog);return f.modal?u.jsx(Or,{present:l||f.open,children:u.jsx(VA,{...o,ref:a})}):null});X1.displayName=ru;var QA=Q0("DialogOverlay.RemoveScroll"),VA=N.forwardRef((n,a)=>{const{__scopeDialog:i,...l}=n,o=Ln(ru,i);return u.jsx(H1,{as:QA,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(Wt.div,{"data-state":Um(o.open),...l,ref:a,style:{pointerEvents:"auto",...l.style}})})}),fi="DialogContent",I1=N.forwardRef((n,a)=>{const i=V1(fi,n.__scopeDialog),{forceMount:l=i.forceMount,...o}=n,f=Ln(fi,n.__scopeDialog);return u.jsx(Or,{present:l||f.open,children:f.modal?u.jsx(YA,{...o,ref:a}):u.jsx(XA,{...o,ref:a})})});I1.displayName=fi;var YA=N.forwardRef((n,a)=>{const i=Ln(fi,n.__scopeDialog),l=N.useRef(null),o=kn(a,i.contentRef,l);return N.useEffect(()=>{const f=l.current;if(f)return HA(f)},[]),u.jsx(K1,{...n,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kt(n.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=i.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Kt(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:Kt(n.onFocusOutside,f=>f.preventDefault())})}),XA=N.forwardRef((n,a)=>{const i=Ln(fi,n.__scopeDialog),l=N.useRef(!1),o=N.useRef(!1);return u.jsx(K1,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,f),f.defaultPrevented||(l.current||(m=i.triggerRef.current)==null||m.focus(),f.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:f=>{var g,p;(g=n.onInteractOutside)==null||g.call(n,f),f.defaultPrevented||(l.current=!0,f.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const h=f.target;((p=i.triggerRef.current)==null?void 0:p.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&o.current&&f.preventDefault()}})}),K1=N.forwardRef((n,a)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:f,...h}=n,m=Ln(fi,i),g=N.useRef(null),p=kn(a,g);return J_(),u.jsxs(u.Fragment,{children:[u.jsx(A1,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:f,children:u.jsx(wm,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Um(m.open),...h,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(IA,{titleId:m.titleId}),u.jsx(ZA,{contentRef:g,descriptionId:m.descriptionId})]})]})}),Lm="DialogTitle",Z1=N.forwardRef((n,a)=>{const{__scopeDialog:i,...l}=n,o=Ln(Lm,i);return u.jsx(Wt.h2,{id:o.titleId,...l,ref:a})});Z1.displayName=Lm;var F1="DialogDescription",W1=N.forwardRef((n,a)=>{const{__scopeDialog:i,...l}=n,o=Ln(F1,i);return u.jsx(Wt.p,{id:o.descriptionId,...l,ref:a})});W1.displayName=F1;var $1="DialogClose",J1=N.forwardRef((n,a)=>{const{__scopeDialog:i,...l}=n,o=Ln($1,i);return u.jsx(Wt.button,{type:"button",...l,ref:a,onClick:Kt(n.onClick,()=>o.onOpenChange(!1))})});J1.displayName=$1;function Um(n){return n?"open":"closed"}var eS="DialogTitleWarning",[OO,tS]=hC(eS,{contentName:fi,titleName:Lm,docsSlug:"dialog"}),IA=({titleId:n})=>{const a=tS(eS),i=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
286
|
-
|
|
287
|
-
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
288
|
-
|
|
289
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return N.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},KA="DialogDescriptionWarning",ZA=({contentRef:n,descriptionId:a})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tS(KA).contentName}}.`;return N.useEffect(()=>{var f;const o=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(l))},[l,n,a]),null},FA=G1,WA=Y1,$A=X1,JA=I1,eM=Z1,tM=W1,nM=J1;function aM({...n}){return u.jsx(FA,{"data-slot":"sheet",...n})}function sM({...n}){return u.jsx(WA,{"data-slot":"sheet-portal",...n})}function iM({className:n,...a}){return u.jsx($A,{"data-slot":"sheet-overlay",className:$e("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...a})}function rM({className:n,children:a,side:i="right",showCloseButton:l=!0,...o}){return u.jsxs(sM,{children:[u.jsx(iM,{}),u.jsxs(JA,{"data-slot":"sheet-content","data-side":i,className:$e("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",n),...o,children:[a,l&&u.jsx(nM,{"data-slot":"sheet-close",asChild:!0,children:u.jsxs(T1,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[u.jsx(Qh,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function lM({className:n,...a}){return u.jsx("div",{"data-slot":"sheet-header",className:$e("flex flex-col gap-0.5 p-4",n),...a})}function oM({className:n,...a}){return u.jsx(eM,{"data-slot":"sheet-title",className:$e("font-heading text-base font-medium text-foreground",n),...a})}function cM({className:n,...a}){return u.jsx(tM,{"data-slot":"sheet-description",className:$e("text-sm text-muted-foreground",n),...a})}const uM="sidebar_state",fM=3600*24*7,dM="16rem",hM="18rem",mM="3rem",pM="b",nS=N.createContext(null);function Bm(){const n=N.useContext(nS);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}function gM({defaultOpen:n=!0,open:a,onOpenChange:i,className:l,style:o,children:f,...h}){const m=U_(),[g,p]=N.useState(!1),[x,v]=N.useState(n),b=a??x,S=N.useCallback(C=>{const _=typeof C=="function"?C(b):C;i?i(_):v(_),document.cookie=`${uM}=${_}; path=/; max-age=${fM}`},[i,b]),R=N.useCallback(()=>m?p(C=>!C):S(C=>!C),[m,S,p]);N.useEffect(()=>{const C=_=>{_.key===pM&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),R())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[R]);const j=b?"expanded":"collapsed",E=N.useMemo(()=>({state:j,open:b,setOpen:S,isMobile:m,openMobile:g,setOpenMobile:p,toggleSidebar:R}),[j,b,S,m,g,p,R]);return u.jsx(nS.Provider,{value:E,children:u.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":dM,"--sidebar-width-icon":mM,...o},className:$e("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l),...h,children:f})})}function vM({side:n="left",variant:a="sidebar",collapsible:i="offcanvas",className:l,children:o,dir:f,...h}){const{isMobile:m,state:g,openMobile:p,setOpenMobile:x}=Bm();return i==="none"?u.jsx("div",{"data-slot":"sidebar",className:$e("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",l),...h,children:o}):m?u.jsx(aM,{open:p,onOpenChange:x,...h,children:u.jsxs(rM,{dir:f,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":hM},side:n,children:[u.jsxs(lM,{className:"sr-only",children:[u.jsx(oM,{children:"Sidebar"}),u.jsx(cM,{children:"Displays the mobile sidebar."})]}),u.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):u.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":g,"data-collapsible":g==="collapsed"?i:"","data-variant":a,"data-side":n,"data-slot":"sidebar",children:[u.jsx("div",{"data-slot":"sidebar-gap",className:$e("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),u.jsx("div",{"data-slot":"sidebar-container","data-side":n,className:$e("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",l),...h,children:u.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})]})}function yM({className:n,onClick:a,...i}){const{toggleSidebar:l}=Bm();return u.jsxs(T1,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:$e(n),onClick:o=>{a==null||a(o),l()},...i,children:[u.jsx(sE,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function xM({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:$e("flex flex-col gap-2 p-2",n),...a})}function bM({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:$e("flex flex-col gap-2 p-2",n),...a})}function mb({className:n,...a}){return u.jsx(Y_,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:$e("mx-2 w-auto bg-sidebar-border",n),...a})}function SM({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:$e("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),...a})}function gh({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:$e("relative flex w-full min-w-0 flex-col p-2",n),...a})}function pb({className:n,asChild:a=!1,...i}){const l=a?zm:"div";return u.jsx(l,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:$e("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",n),...i})}function vh({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:$e("w-full text-sm",n),...a})}function Lc({className:n,...a}){return u.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:$e("flex w-full min-w-0 flex-col gap-0.5",n),...a})}function aS({className:n,...a}){return u.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:$e("group/menu-item relative",n),...a})}const wM=mu("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function sS({asChild:n=!1,isActive:a=!1,variant:i="default",size:l="default",tooltip:o,className:f,...h}){const m=n?zm:"button",{isMobile:g,state:p}=Bm(),x=u.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":l,"data-active":a,className:$e(wM({variant:i,size:l}),f),...h});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(C_,{children:[u.jsx(T_,{asChild:!0,children:x}),u.jsx(__,{side:"right",align:"center",hidden:p!=="collapsed"||g,...o})]})):x}const iS=N.createContext(null);function rS(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function gb(n){return n==="system"?rS():n}function jM({children:n,defaultTheme:a="dark"}){const[i,l]=N.useState(()=>typeof window>"u"?a:localStorage.getItem("theme")??a),[o,f]=N.useState(()=>gb(i)),h=N.useCallback(m=>{l(g=>{const p=typeof m=="function"?m(g):m;return localStorage.setItem("theme",p),p})},[]);return N.useEffect(()=>{const m=gb(i);f(m),document.documentElement.classList.toggle("dark",m==="dark")},[i]),N.useEffect(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{if(i==="system"){const p=rS();f(p),document.documentElement.classList.toggle("dark",p==="dark")}};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)},[i]),u.jsx(iS.Provider,{value:{theme:i,resolvedTheme:o,setTheme:h},children:n})}function NM(){const n=N.useContext(iS);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function RM(){const{theme:n,resolvedTheme:a,setTheme:i}=NM();return u.jsxs(Ot,{variant:"ghost",size:"icon",onClick:()=>i((a??n)==="light"?"dark":"light"),className:"h-8 w-8",children:[u.jsx(dE,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),u.jsx(eE,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),u.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const EM=[{href:"/",label:"Overview",icon:ZR,query:pm},{href:"/workspaces",label:"Workspaces",icon:HR,query:gm},{href:"/benchmark",label:"Benchmark",icon:GR}],CM=[{href:"/query",label:"Query",icon:lE},{href:"/documents",label:"Documents",icon:dm,query:()=>Jc(1,Kn)}],TM=[{href:"/settings",label:"Settings",icon:uE,query:N0}];function yh({href:n,label:a,icon:i,query:l}){const o=eo(),h=CN()({to:n,fuzzy:n!=="/"}),m=()=>{if(!l)return;const g=typeof l=="function"?l():l;o.prefetchQuery(g)};return u.jsx(aS,{children:u.jsx(sS,{asChild:!0,isActive:!!h,tooltip:a,children:u.jsxs(dt,{to:n,onMouseEnter:m,children:[u.jsx(i,{className:"h-4 w-4"}),u.jsx("span",{children:a})]})})})}function _M(){return u.jsxs(vM,{collapsible:"icon",children:[u.jsx(xM,{children:u.jsx(Lc,{children:u.jsx(aS,{children:u.jsxs("div",{className:"flex items-center gap-1 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center",children:[u.jsx(sS,{asChild:!0,size:"lg",tooltip:"OpenEZ Graph",children:u.jsxs(dt,{to:"/",className:"flex items-center gap-3",children:[u.jsx("img",{src:"/logo.png",alt:"OpenEZ Graph",className:"h-8 w-8 rounded-lg"}),u.jsx("div",{className:"flex flex-col gap-0 group-data-[collapsible=icon]:hidden",children:u.jsxs("span",{className:"text-sm font-black tracking-tight",style:{fontFamily:"'Archivo Black', sans-serif"},children:["OPEN",u.jsx("span",{className:"text-accent-foreground",children:"EZ"})]})})]})}),u.jsx(yM,{}),u.jsx(RM,{})]})})})}),u.jsxs(SM,{children:[u.jsxs(gh,{children:[u.jsx(pb,{children:"Navigation"}),u.jsx(vh,{children:u.jsx(Lc,{children:EM.map(n=>u.jsx(yh,{...n},n.href))})})]}),u.jsx(mb,{}),u.jsxs(gh,{children:[u.jsx(pb,{children:"Debug"}),u.jsx(vh,{children:u.jsx(Lc,{children:CM.map(n=>u.jsx(yh,{...n},n.href))})})]}),u.jsx(mb,{}),u.jsx(gh,{children:u.jsx(vh,{children:u.jsx(Lc,{children:TM.map(n=>u.jsx(yh,{...n},n.href))})})})]}),u.jsx(bM,{children:u.jsx("div",{className:"px-3 py-2 group-data-[collapsible=icon]:hidden",children:u.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspace config, retrieval debugging, graph inspection."})})})]})}const mi=mN()({component:AM});function AM(){return u.jsx(jM,{defaultTheme:"dark",children:u.jsx(E_,{children:u.jsx(gM,{children:u.jsxs("div",{className:"flex h-svh w-full overflow-hidden",children:[u.jsx(_M,{}),u.jsx("main",{className:"flex-1 overflow-y-auto bg-background p-6",children:u.jsx(du,{})})]})})})})}const MM=zn("/workspaces")({component:()=>u.jsx(du,{})}),OM=zn("/settings")({component:BM}),DM=`{
|
|
290
|
-
"mcpServers": {
|
|
291
|
-
"openez-graph": {
|
|
292
|
-
"command": "pnpm",
|
|
293
|
-
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}`,zM=`{
|
|
297
|
-
"mcpServers": {
|
|
298
|
-
"openez-graph": {
|
|
299
|
-
"command": "pnpm",
|
|
300
|
-
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}`,kM=`{
|
|
304
|
-
"mcpServers": {
|
|
305
|
-
"openez-graph": {
|
|
306
|
-
"command": "pnpm",
|
|
307
|
-
"args": ["--dir", "/path/to/openez", "mcp"]
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}`,LM=`{
|
|
311
|
-
"mcp": {
|
|
312
|
-
"servers": {
|
|
313
|
-
"openez-graph": {
|
|
314
|
-
"type": "local",
|
|
315
|
-
"command": ["pnpm", "--dir", "/path/to/openez", "mcp"]
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}`;function Ol({label:n,value:a}){return u.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border last:border-0",children:[u.jsx("span",{className:"text-sm text-muted-foreground",children:n}),u.jsx("span",{className:"text-sm font-medium text-foreground text-right truncate max-w-[70%] font-mono",children:a??u.jsx("span",{className:"text-muted-foreground italic",children:"not set"})})]})}function UM({children:n}){return u.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground border border-border",children:n})}function Uc({name:n,configPath:a,config:i}){return u.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("h3",{className:"text-sm font-semibold text-foreground",children:n}),u.jsx(Bt,{variant:"secondary",className:"text-xs px-1.5 py-0 h-4",children:"stdio"})]}),u.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Add to ",u.jsx(UM,{children:a})]}),u.jsx(uC,{children:i})]})}function BM(){const{data:n}=ci(N0);return u.jsxs("div",{className:"page container mx-auto px-4 sm:px-6",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Settings"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:"Environment-backed provider configuration."})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"Configuration"})}),u.jsx(Oe,{className:"p-0",children:u.jsxs("div",{className:"px-6 pb-2",children:[u.jsx(Ol,{label:"Redis URL",value:"Not used (SQLite is default)"}),u.jsx(Ol,{label:"Embedding provider",value:n==null?void 0:n.EMBEDDING_PROVIDER}),u.jsx(Ol,{label:"OpenAI base URL",value:(n==null?void 0:n.OPENAI_BASE_URL)??"default"}),u.jsx(Ol,{label:"OpenAI model",value:n==null?void 0:n.OPENAI_EMBEDDING_MODEL}),u.jsx(Ol,{label:"Ollama model",value:n==null?void 0:n.OLLAMA_EMBEDDING_MODEL})]})})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"MCP Server Setup"})}),u.jsxs(Oe,{className:"flex flex-col gap-4",children:[u.jsx(Uc,{name:"Claude Code",configPath:"~/.claude/settings.json",config:DM}),u.jsx(Uc,{name:"Claude Desktop",configPath:"claude_desktop_config.json",config:zM}),u.jsx(Uc,{name:"Cline / VS Code",configPath:"VS Code settings or Cline MCP config",config:kM}),u.jsx(Uc,{name:"OpenCode",configPath:"~/.config/opencode/opencode.json",config:LM})]})]})]})}const HM=zn("/query")({component:PM,validateSearch:n=>({workspaceId:n.workspaceId??""})}),xh={answerContext:"",sources:[],graphNodes:[],graphEdges:[],error:null};function vb(n){switch(n){case"file":return"bg-chart-1/15 text-chart-1 border-chart-1/30";case"chunk":return"bg-chart-2/15 text-chart-2 border-chart-2/30";case"symbol":return"bg-chart-3/15 text-chart-3 border-chart-3/30";case"entity":return"bg-chart-4/15 text-chart-4 border-chart-4/30";default:return"bg-muted text-muted-foreground border-border"}}function PM(){const{workspaceId:n}=$l({from:"/query"}),[a,i]=N.useState(xh),[l,o]=N.useState(!1);async function f(p){p.preventDefault(),o(!0),i({...xh,error:null});try{const x=new FormData(p.currentTarget),v=await ys.runQuery({workspaceId:String(x.get("workspaceId")??"").trim(),query:String(x.get("query")??"").trim()});i({...v,error:null})}catch(x){i({...xh,error:x instanceof Error?x.message:"Query failed"})}finally{o(!1)}}const h=a.graphNodes.filter(p=>p.type==="file"),m=a.graphNodes.filter(p=>p.type==="symbol");a.graphNodes.filter(p=>p.type==="chunk");const g=n.trim().length>0;return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[g&&u.jsx(dt,{to:"/workspaces/$workspaceId",params:{workspaceId:n},children:u.jsx(Ot,{variant:"ghost",size:"icon",children:u.jsx(Rr,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("h1",{children:"Query"}),u.jsx("p",{className:"muted text-sm",children:"Test the retrieval flow against the indexed workspace."})]})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{className:"text-base",children:"Query interface"})}),u.jsx(Oe,{children:u.jsxs("form",{onSubmit:f,className:"query-form",children:[u.jsxs("div",{className:"field",children:[u.jsx(Et,{htmlFor:"workspaceId",children:"Workspace ID"}),u.jsx(Ql,{id:"workspaceId",name:"workspaceId",defaultValue:n,placeholder:"openez"})]}),u.jsxs("div",{className:"field",children:[u.jsx(Et,{htmlFor:"query",children:"Query"}),u.jsx(Yh,{id:"query",name:"query",placeholder:"login session flow, auth design, createSession"})]}),u.jsx(Ot,{type:"submit",disabled:l,children:l?u.jsxs(u.Fragment,{children:[u.jsx(Gl,{className:"h-4 w-4 animate-spin"})," Running..."]}):u.jsxs(u.Fragment,{children:[u.jsx(hm,{className:"h-4 w-4"})," Run query"]})}),a.error&&u.jsx("p",{className:"text-sm text-destructive mt-2",children:a.error})]})})]}),a.answerContext&&u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{className:"text-base",children:"Context"})}),u.jsx(Oe,{children:u.jsx("pre",{className:"text-sm whitespace-pre-wrap font-mono bg-muted/30 rounded-md p-4 overflow-x-auto",children:a.answerContext})})]}),a.sources.length>0&&u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{className:"text-base",children:"Sources"})}),u.jsx(Oe,{children:u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Path"}),u.jsx(Xe,{children:"Lines"}),u.jsx(Xe,{children:"Score"}),u.jsx(Xe,{children:"Reason"})]})}),u.jsx(Ra,{children:a.sources.map(p=>u.jsxs(yt,{children:[u.jsx(Be,{className:"font-mono text-xs",children:p.path}),u.jsxs(Be,{children:[p.startLine??"?","-",p.endLine??"?"]}),u.jsx(Be,{children:p.score.toFixed(3)}),u.jsx(Be,{children:p.reason})]},`${p.path}-${p.startLine}-${p.endLine}`))})]})})]}),a.graphNodes.length>0&&u.jsxs(Me,{children:[u.jsx(st,{children:u.jsxs(it,{className:"text-base flex items-center gap-2",children:[u.jsx(nE,{className:"h-4 w-4"})," Graph Relationships"]})}),u.jsxs(Oe,{className:"grid gap-4",children:[h.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Files"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:h.map(p=>u.jsxs(Bt,{variant:"outline",className:vb("file"),children:[u.jsx(dm,{className:"h-3 w-3 mr-1"})," ",p.label]},p.id))})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Symbols"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.map(p=>u.jsx(Bt,{variant:"outline",className:vb("symbol"),children:p.label},p.id))})]}),a.graphEdges.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Edges"}),u.jsx("div",{className:"flex flex-col gap-1",children:a.graphEdges.slice(0,20).map((p,x)=>{const v=a.graphNodes.find(S=>S.id===p.from_node_id),b=a.graphNodes.find(S=>S.id===p.to_node_id);return u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx("span",{className:"truncate max-w-50 font-mono",children:(v==null?void 0:v.label)??p.from_node_id.slice(0,8)}),u.jsx(qh,{className:"h-3 w-3 shrink-0"}),u.jsx(Bt,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:p.type}),u.jsx(qh,{className:"h-3 w-3 shrink-0"}),u.jsx("span",{className:"truncate max-w-50 font-mono",children:(b==null?void 0:b.label)??p.to_node_id.slice(0,8)})]},x)})})]})]})]})]})}function Zs(n){return n?new Date(n).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const yb={file:"#60a5fa",chunk:"#34d399",symbol:"#fbbf24",memory:"#f472b6",entity:"#c084fc",document:"#22d3ee",default:"#94a3b8"},xb={imports:"#60a5fa",defines:"#fbbf24",contains:"#34d399",mentions:"#c084fc",represented_by:"#f472b6",calls:"#f97316",links_to:"#22d3ee",related_to:"#94a3b8",default:"#64748b"};function qM(n){return yb[n]??yb.default}function GM(n){return xb[n]??xb.default}const QM=zn("/documents")({loader:({context:n})=>n.queryClient.ensureQueryData(Jc(1,Kn)),component:VM,validateSearch:n=>({page:Math.max(1,parseInt(n.page??"",10)||1)})});function VM(){const n=eo(),{page:a}=$l({from:"/documents"}),{data:i,isLoading:l}=ci({...Jc(a,Kn),placeholderData:m=>m}),o=Math.max(1,Math.ceil(((i==null?void 0:i.totalCount)??0)/Kn)),h=(a-1)*Kn+((i==null?void 0:i.items.length)??0);return N.useEffect(()=>{const m=a+1;m<=o&&n.prefetchQuery(Jc(m,Kn))},[a,o,n]),u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Documents"}),u.jsx("p",{className:"muted",children:"Indexed document inventory ordered by latest update."})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"Documents"})}),u.jsx(Oe,{children:l?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",h," of ",(i==null?void 0:i.totalCount)??0," documents"]}),u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Path"}),u.jsx(Xe,{children:"Kind"}),u.jsx(Xe,{children:"Language"}),u.jsx(Xe,{children:"Updated"})]})}),u.jsx(Ra,{children:((i==null?void 0:i.items)??[]).map(m=>u.jsxs(yt,{children:[u.jsx(Be,{children:m.path}),u.jsx(Be,{children:m.kind}),u.jsx(Be,{children:m.language??"-"}),u.jsx(Be,{className:"text-muted-foreground",children:Zs(m.updatedAt)})]},m.id))})]}),u.jsx(R0,{currentPage:a,totalPages:o,basePath:"/documents"})]})})]})]})}const YM=zn("/benchmark")({component:KM}),XM=[{label:"Recall@5",value:"94.44%",detail:"17 of 18 queries",icon:mE},{label:"MRR",value:"0.7009",detail:"Mean reciprocal rank",icon:w0},{label:"Duplicate paths",value:"0%",detail:"Unique source files",icon:to},{label:"FTS latency",value:"17.85 ms",detail:"Average over 54 runs",icon:_R}],IM=[["Recall@5","94.44%","94.44%"],["MRR","0.7009","0.7009"],["Duplicate path rate","0%","0%"],["Average latency","17.85 ms","112.88 ms"],["Latency p50","11.74 ms","90.45 ms"],["Latency p95","51.22 ms","272.30 ms"],["Average context","2,938 tokens","2,938 tokens"]];function KM(){return u.jsxs("div",{className:"page mx-auto w-full max-w-6xl",children:[u.jsxs("header",{className:"flex flex-col gap-3 border-b pb-5 sm:flex-row sm:items-end sm:justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2",children:[u.jsxs(Bt,{className:"gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[u.jsx(to,{className:"h-3.5 w-3.5"})," Quality gate passed"]}),u.jsx(Bt,{variant:"outline",children:"2026-07-22"})]}),u.jsx("h1",{children:"Retrieval benchmark"}),u.jsx("p",{className:"muted mt-1",children:"117 files, 632 chunks, 18 queries, 3 iterations per mode."})]}),u.jsxs("div",{className:"text-left text-sm text-muted-foreground sm:text-right",children:[u.jsx("div",{children:"SQLite FTS5 + graph"}),u.jsx("div",{children:"Ollama nomic-embed-text"})]})]}),u.jsx("section",{className:"grid gap-0 overflow-hidden rounded-lg border sm:grid-cols-2 xl:grid-cols-4",children:XM.map(({label:n,value:a,detail:i,icon:l},o)=>u.jsxs("div",{className:`min-w-0 p-5 ${o===1?"border-t sm:border-l sm:border-t-0":o===2?"border-t sm:border-l-0 xl:border-l xl:border-t-0":o===3?"border-t sm:border-l xl:border-t-0":""}`,children:[u.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3 text-sm text-muted-foreground",children:[u.jsx("span",{children:n}),u.jsx(l,{className:"h-4 w-4 text-foreground"})]}),u.jsx("div",{className:"text-2xl font-semibold tabular-nums",children:a}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:i})]},n))}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Me,{children:[u.jsxs(st,{children:[u.jsx(it,{className:"text-lg",children:"Quality improvement"}),u.jsx(sh,{children:"Current retrieval compared with the previous baseline."})]}),u.jsxs(Oe,{className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[u.jsx("span",{children:"Recall@5"}),u.jsx("span",{className:"font-mono tabular-nums",children:"83.33% → 94.44%"})]}),u.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[94.44%] bg-emerald-500"})})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[u.jsx("span",{children:"MRR"}),u.jsx("span",{className:"font-mono tabular-nums",children:"0.6176 → 0.7009"})]}),u.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[70.09%] bg-cyan-500"})})]}),u.jsxs("div",{className:"flex items-center justify-between border-t pt-4 text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Missed queries"}),u.jsx("span",{className:"font-medium tabular-nums",children:"3 → 1"})]})]})]}),u.jsxs(Me,{children:[u.jsxs(st,{children:[u.jsx(it,{className:"text-lg",children:"Latency cost"}),u.jsx(sh,{children:"Ollama preserves quality but adds local inference time."})]}),u.jsxs(Oe,{className:"space-y-5",children:[u.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[u.jsx("span",{children:"FTS-only"}),u.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[16%] bg-cyan-500"})}),u.jsx("span",{className:"font-mono tabular-nums",children:"17.85 ms"})]}),u.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[u.jsx("span",{children:"Ollama"}),u.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-full bg-amber-500"})}),u.jsx("span",{className:"font-mono tabular-nums",children:"112.88 ms"})]}),u.jsxs("div",{className:"flex items-start gap-3 border-t pt-4 text-sm text-muted-foreground",children:[u.jsx(w0,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-500"}),u.jsx("p",{children:"FTS-only remains the default. Ollama is used as semantic fallback when lexical search has no result."})]})]})]})]}),u.jsxs(Me,{children:[u.jsxs(st,{className:"flex-row items-start justify-between gap-4 space-y-0",children:[u.jsxs("div",{children:[u.jsx(it,{className:"text-lg",children:"Mode comparison"}),u.jsx(sh,{children:"54 measured runs per mode on the same local index."})]}),u.jsx(Bt,{variant:"secondary",children:"0% data leakage"})]}),u.jsx(Oe,{children:u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Metric"}),u.jsx(Xe,{children:"FTS-only"}),u.jsx(Xe,{children:"Ollama embedding"})]})}),u.jsxs(Ra,{children:[IM.map(([n,a,i])=>u.jsxs(yt,{children:[u.jsx(Be,{className:"font-medium",children:n}),u.jsx(Be,{className:"font-mono tabular-nums",children:a}),u.jsx(Be,{className:"font-mono tabular-nums",children:i})]},n)),u.jsxs(yt,{children:[u.jsx(Be,{className:"font-medium",children:"Quality gate"}),u.jsx(Be,{children:u.jsx(Bt,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})}),u.jsx(Be,{children:u.jsx(Bt,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})})]})]})]})})]}),u.jsxs("section",{className:"flex flex-col gap-4 rounded-lg border border-amber-500/30 bg-amber-500/5 p-5 sm:flex-row sm:items-start",children:[u.jsx(mm,{className:"h-5 w-5 shrink-0 text-amber-500"}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("h2",{className:"text-base font-semibold",children:"Remaining miss"}),u.jsx(Bt,{variant:"outline",children:"Rank 7"})]}),u.jsx("p",{className:"mt-2 break-words font-mono text-sm",children:"where are TypeScript symbols extracted?"}),u.jsxs("div",{className:"mt-3 grid gap-1 text-sm text-muted-foreground sm:grid-cols-[92px_1fr]",children:[u.jsx("span",{children:"Expected"}),u.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/code.ts"}),u.jsx("span",{children:"Top result"}),u.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/languages.ts"})]})]})]})]})}const ZM=zn("/")({loader:async({context:n})=>{await n.queryClient.ensureQueryData(pm)},component:FM});function FM(){const{data:n,isLoading:a,error:i}=ci(pm);return a?u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})}):i?u.jsx("div",{className:"page",children:u.jsx("p",{className:"text-destructive",children:i.message})}):n?u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:n.workspace.name}),u.jsx("p",{className:"muted",children:n.workspace.root})]}),u.jsx("section",{className:"-mx-6 border-y bg-muted/20 px-6 py-5",children:u.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsxs(Bt,{className:"mb-3 gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[u.jsx(to,{className:"h-3.5 w-3.5"})," Retrieval benchmark passed"]}),u.jsx("h2",{className:"text-lg font-semibold",children:"Measured retrieval quality"}),u.jsx("p",{className:"muted mt-1 text-sm",children:"18 queries, 3 iterations, 54 measured runs per mode."})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Recall@5"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"94.44%"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"MRR"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"0.6565"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Queries hit"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"17/18"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"FTS average"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"38.68 ms"})]})]}),u.jsxs(dt,{to:"/benchmark",className:G0({variant:"outline",className:"shrink-0"}),children:["Full benchmark ",u.jsx(qh,{className:"h-4 w-4"})]})]})}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"Index state"})}),u.jsxs(Oe,{className:"grid gap-3",children:[u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Documents"}),u.jsx("strong",{children:n.stats.documents})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Chunks"}),u.jsx("strong",{children:n.stats.chunks})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Graph nodes"}),u.jsx("strong",{children:n.stats.graphNodes})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Graph edges"}),u.jsx("strong",{children:n.stats.graphEdges})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Memories"}),u.jsx("strong",{children:n.stats.memories})]})]})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"Latest runs"})}),u.jsx(Oe,{children:n.recentRuns.length===0?u.jsx("p",{className:"muted",children:"No index runs recorded yet."}):u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Mode"}),u.jsx(Xe,{children:"Status"}),u.jsx(Xe,{children:"Files"}),u.jsx(Xe,{children:"Started"})]})}),u.jsx(Ra,{children:n.recentRuns.map(l=>u.jsxs(yt,{children:[u.jsx(Be,{children:l.mode}),u.jsx(Be,{children:l.status}),u.jsxs(Be,{children:[l.filesUpdated,"/",l.filesScanned]}),u.jsx(Be,{children:Zs(l.startedAt)})]},l.id))})]})})]})]}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"Recent documents"})}),u.jsx(Oe,{children:u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Path"}),u.jsx(Xe,{children:"Kind"})]})}),u.jsx(Ra,{children:n.recentDocuments.map(l=>u.jsxs(yt,{children:[u.jsx(Be,{children:l.path}),u.jsx(Be,{children:l.kind})]},l.id))})]})})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{children:"Recent memories"})}),u.jsx(Oe,{children:u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Title"}),u.jsx(Xe,{children:"Source"})]})}),u.jsx(Ra,{children:n.recentMemories.map(l=>u.jsxs(yt,{children:[u.jsx(Be,{children:l.title}),u.jsx(Be,{children:l.source})]},l.id))})]})})]})]})]}):null}const WM={pending:"outline",indexing:"secondary",indexed:"default",error:"destructive",running:"secondary",completed:"default",failed:"destructive"};function ba({status:n,className:a}){return u.jsx(Bt,{variant:WM[n]??"outline",className:a,children:n})}const $M=zn("/workspaces/")({loader:({context:n})=>n.queryClient.ensureQueryData(gm),component:JM,validateSearch:n=>({page:Math.max(1,parseInt(n.page??"",10)||1)})});function JM(){const n=eo(),{page:a}=$l({from:"/workspaces/"}),{data:i,isLoading:l,error:o}=ci(gm);if(l)return u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})});if(o||i&&!i.ok){const p=i&&!i.ok?i:null;return u.jsxs("div",{className:"page",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs("div",{children:[u.jsx("h1",{children:"Workspaces"}),u.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]})}),u.jsx(Me,{className:"border-destructive",children:u.jsxs(Oe,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(mm,{className:"h-12 w-12 text-destructive mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),u.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),p&&"error"in p&&u.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:p.error})]})})]})}const f=(i==null?void 0:i.data)??[],h=Math.max(1,Math.ceil(f.length/Kn)),m=Math.min(a,h),{paged:g}=yE(f,m);return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Workspaces"}),u.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]}),u.jsx(dt,{to:"/workspaces/new",children:u.jsxs(Ot,{children:[u.jsx(zx,{className:"h-4 w-4"}),"New Workspace"]})})]}),f.length===0?u.jsx(Me,{children:u.jsxs(Oe,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(Gh,{className:"h-12 w-12 text-muted-foreground mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"No workspaces yet"}),u.jsx("p",{className:"muted text-center mb-6 max-w-sm",children:"Create your first workspace to start indexing a codebase."}),u.jsx(dt,{to:"/workspaces/new",children:u.jsxs(Ot,{children:[u.jsx(zx,{className:"h-4 w-4"}),"Create Workspace"]})})]})}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",g.length," of ",f.length," workspaces"]}),u.jsx("div",{className:"space-y-4",children:g.map(p=>u.jsx(dt,{to:"/workspaces/$workspaceId",params:{workspaceId:p.id},className:"block",onMouseEnter:()=>n.prefetchQuery(Er(p.id)),children:u.jsx(Me,{className:"hover:bg-muted/50 transition-colors",children:u.jsx(Oe,{className:"p-4",children:u.jsxs("div",{className:"flex items-start justify-between",children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("h2",{className:"text-lg font-medium truncate",children:p.name}),u.jsx(ba,{status:p.status})]}),u.jsx("p",{className:"muted text-sm truncate mb-3",children:p.rootPath}),u.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(j0,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsxs("span",{className:"text-muted-foreground",children:[p.documentCount??0," docs"]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(hm,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsxs("span",{className:"text-muted-foreground",children:[p.chunkCount??0," chunks"]})]}),(p.nodeCount??0)>0&&u.jsx("div",{className:"flex items-center gap-1.5",children:u.jsxs("span",{className:"text-muted-foreground",children:[p.nodeCount," nodes"]})})]})]}),u.jsxs("div",{className:"text-right text-sm",children:[u.jsxs("div",{className:"flex gap-2 mb-1",children:[u.jsx(ba,{status:p.indexingStatus}),u.jsx(ba,{status:p.graphStatus})]}),u.jsxs("p",{className:"muted text-xs",children:["Last indexed: ",Zs(p.lastIndexedAt)]})]})]})})})},p.id))}),u.jsx(R0,{currentPage:m,totalPages:h,basePath:"/workspaces/"})]})]})}const eO=zn("/workspaces/new")({component:tO}),bb=`src/**/*.{ts,tsx,js,jsx}
|
|
320
|
-
app/**/*.{ts,tsx}
|
|
321
|
-
pages/**/*.{ts,tsx}
|
|
322
|
-
lib/**/*.{ts,tsx}
|
|
323
|
-
**/*.md`,Sb=`node_modules/**
|
|
324
|
-
**/node_modules/**
|
|
325
|
-
.next/**
|
|
326
|
-
dist/**
|
|
327
|
-
build/**
|
|
328
|
-
.git/**
|
|
329
|
-
coverage/**
|
|
330
|
-
**/.turbo/**`;function tO(){const n=lm(),[a,i]=N.useState(!1),[l,o]=N.useState(null),[f,h]=N.useState(null),[m,g]=N.useState(null);async function p(v){if(!v.trim()){h(null),g(null);return}try{const b=await ys.validatePath(v);h(b.valid),g(b.valid?null:b.error??"Invalid path")}catch{h(!1),g("Validation failed")}}async function x(v){v.preventDefault(),i(!0),o(null);try{const b=new FormData(v.currentTarget),S=await ys.createWorkspace({name:b.get("name"),rootPath:b.get("rootPath"),includeGlobs:(b.get("includeGlobs")||bb).split(`
|
|
331
|
-
`).map(R=>R.trim()).filter(Boolean),excludeGlobs:(b.get("excludeGlobs")||Sb).split(`
|
|
332
|
-
`).map(R=>R.trim()).filter(Boolean)});S.success&&S.workspace?n({to:"/workspaces/$workspaceId",params:{workspaceId:S.workspace.id}}):o(S.error??"Failed to create workspace")}catch(b){o(b instanceof Error?b.message:"Failed to create workspace")}finally{i(!1)}}return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[u.jsx(dt,{to:"/workspaces",search:{page:1},children:u.jsx(Ot,{variant:"ghost",size:"icon",children:u.jsx(Rr,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("h1",{children:"New Workspace"}),u.jsx("p",{className:"muted",children:"Register a local codebase for indexing."})]})]}),u.jsx("form",{onSubmit:x,children:u.jsxs(Me,{children:[u.jsx(st,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Gh,{className:"h-5 w-5 text-muted-foreground"}),u.jsx(it,{children:"Workspace Configuration"})]})}),u.jsxs(Oe,{className:"space-y-8",children:[l&&u.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-md",children:l}),u.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx(Et,{htmlFor:"name",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(XR,{className:"h-3.5 w-3.5"}),"Workspace Name"]})}),u.jsx(Ql,{id:"name",name:"name",placeholder:"my-project",required:!0,pattern:"[a-zA-Z0-9_-]+",title:"Letters, numbers, hyphens, and underscores only"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Used as the workspace ID. Letters, numbers, hyphens, and underscores."})]}),u.jsxs("div",{children:[u.jsx(Et,{htmlFor:"rootPath",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Gh,{className:"h-3.5 w-3.5"}),"Root Path"]})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(Ql,{id:"rootPath",name:"rootPath",placeholder:"/path/to/project",required:!0,onBlur:v=>p(v.target.value),className:"pr-10"}),f===!0&&u.jsx(to,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-primary"}),f===!1&&u.jsx(Dx,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-destructive"})]}),u.jsx(Ot,{type:"button",variant:"secondary",className:"shrink-0",onClick:()=>{const v=document.getElementById("rootPath");v!=null&&v.value&&p(v.value)},children:"Validate"})]}),m&&u.jsx("p",{className:"mt-2 text-xs text-destructive",children:m}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Absolute path to the project root directory."})]})]}),u.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx(Et,{htmlFor:"includeGlobs",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(LR,{className:"h-3.5 w-3.5"}),"Include Patterns"]})}),u.jsx(Yh,{id:"includeGlobs",name:"includeGlobs",defaultValue:bb,rows:6,className:"font-mono text-sm"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to index. One per line."})]}),u.jsxs("div",{children:[u.jsxs(Et,{htmlFor:"excludeGlobs",className:"mb-2 block",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Dx,{className:"h-3.5 w-3.5"}),"Exclude Patterns"]}),u.jsx(Bt,{variant:"outline",className:"ml-2 text-xs px-1 py-0",children:"optional"})]}),u.jsx(Yh,{id:"excludeGlobs",name:"excludeGlobs",defaultValue:Sb,rows:6,className:"font-mono text-sm"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to exclude. One per line."})]})]}),u.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-2",children:[u.jsx(dt,{to:"/workspaces",search:{page:1},className:"sm:order-1",children:u.jsx(Ot,{type:"button",variant:"secondary",className:"w-full sm:w-auto",children:"Cancel"})}),u.jsxs(Ot,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&u.jsx(Gl,{className:"h-4 w-4 animate-spin"}),"Create Workspace"]})]})]})]})})]})}const nO=zn("/workspaces/$workspaceId")({component:aO});function aO(){return u.jsx(du,{})}const sO=zn("/workspaces/$workspaceId/")({loader:async({context:n,params:a})=>{await n.queryClient.ensureQueryData(Er(a.workspaceId)),n.queryClient.prefetchQuery(hu(a.workspaceId))},component:iO});function wb({status:n}){return n==="running"?u.jsx(Gl,{className:"h-4 w-4 animate-spin text-muted-foreground"}):n==="completed"?u.jsx(to,{className:"h-4 w-4 text-primary"}):n==="failed"?u.jsx(S0,{className:"h-4 w-4 text-destructive"}):u.jsx(MR,{className:"h-4 w-4 text-muted-foreground"})}function jb(n,a){if(!a)return"Running...";const i=new Date(a).getTime()-new Date(n).getTime();return i<1e3?"<1s":i<6e4?`${Math.round(i/1e3)}s`:`${Math.round(i/6e4)}m ${Math.round(i%6e4/1e3)}s`}function iO(){const{workspaceId:n}=uu({from:"/workspaces/$workspaceId"}),a=eo(),{data:i,isLoading:l}=ci(Er(n)),o=()=>{a.prefetchQuery(Er(n))},f=()=>{a.prefetchQuery(hu(n))};if(l)return u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})});if(!i||!i.ok)return u.jsx("div",{className:"page",children:u.jsx(Me,{className:"border-destructive",children:u.jsxs(Oe,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(mm,{className:"h-12 w-12 text-destructive mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),u.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),u.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:i&&"error"in i?i.error:"Unknown error"})]})})});const h=i.data;if(!h)return u.jsx("div",{className:"page",children:u.jsx(Me,{children:u.jsxs(Oe,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"}),u.jsx("p",{className:"muted",children:"Workspace not found."}),u.jsx(dt,{to:"/workspaces",search:{page:1},children:u.jsx(Ot,{variant:"secondary",className:"mt-4",children:"Back to workspaces"})})]})})});const m=h.nodeCount>0||h.edgeCount>0;return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[u.jsx(dt,{to:"/workspaces",search:{page:1},children:u.jsx(Ot,{variant:"ghost",size:"icon",children:u.jsx(Rr,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h1",{children:h.name}),u.jsx(ba,{status:h.status})]}),u.jsx("p",{className:"muted text-sm",children:h.rootPath})]})]}),u.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[u.jsx(Me,{children:u.jsx(Oe,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(dm,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.documentCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Documents"})]})]})})}),u.jsx(Me,{children:u.jsx(Oe,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(j0,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.chunkCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Chunks"})]})]})})}),u.jsx(Me,{children:u.jsx(Oe,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(VR,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.nodeCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Nodes"})]})]})})}),u.jsx(Me,{children:u.jsx(Oe,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(zR,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.edgeCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Edges"})]})]})})})]}),u.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[u.jsx(dt,{to:"/query",search:{workspaceId:n},onMouseEnter:o,children:u.jsxs(Ot,{variant:"outline",children:[u.jsx($R,{className:"h-4 w-4"})," Try Query"]})}),m&&u.jsx(dt,{to:"/workspaces/$workspaceId/graph",params:{workspaceId:n},onMouseEnter:f,children:u.jsx(Ot,{variant:"secondary",children:"Open Graph Explorer"})})]}),u.jsxs(Me,{className:"mb-6",children:[u.jsx(st,{className:"pb-3",children:u.jsx(it,{className:"text-base",children:"Indexing Control"})}),u.jsxs(Oe,{className:"space-y-3",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"The default local workflow uses the CLI to index a workspace."}),u.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 font-mono text-sm",children:[u.jsxs("div",{children:["openez index ",h.rootPath]}),u.jsxs("div",{children:["openez status ",h.rootPath]})]})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2 mb-6",children:[u.jsxs(Me,{children:[u.jsx(st,{className:"pb-3",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(it,{className:"text-base",children:"Indexing"}),u.jsx(ba,{status:h.indexingStatus})]})}),u.jsx(Oe,{children:h.latestIndexRun?u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(wb,{status:h.latestIndexRun.status}),u.jsxs("span",{className:"text-sm",children:[h.latestIndexRun.mode," —"," ",h.latestIndexRun.status]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Files scanned:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.filesScanned})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Files updated:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.filesUpdated})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Chunks written:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.chunksWritten??0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Embeddings:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.embeddingsWritten??0})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",Zs(h.latestIndexRun.startedAt),h.latestIndexRun.finishedAt&&u.jsxs(u.Fragment,{children:[" ","· Duration:"," ",jb(h.latestIndexRun.startedAt,h.latestIndexRun.finishedAt)]})]}),h.latestIndexRun.errorMessage&&u.jsx("p",{className:"text-xs text-destructive",children:h.latestIndexRun.errorMessage})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No indexing runs yet."})})]}),u.jsxs(Me,{children:[u.jsx(st,{className:"pb-3",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(it,{className:"text-base",children:"Graph"}),u.jsx(ba,{status:h.graphStatus})]})}),u.jsx(Oe,{children:h.latestGraphRun?u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(wb,{status:h.latestGraphRun.status}),u.jsxs("span",{className:"text-sm",children:[h.latestGraphRun.mode," —"," ",h.latestGraphRun.status]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Nodes:"})," ",u.jsx("span",{className:"font-medium",children:h.latestGraphRun.nodesCreated??0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Edges:"})," ",u.jsx("span",{className:"font-medium",children:h.latestGraphRun.edgesCreated??0})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",Zs(h.latestGraphRun.startedAt),h.latestGraphRun.finishedAt&&u.jsxs(u.Fragment,{children:[" ","· Duration:"," ",jb(h.latestGraphRun.startedAt,h.latestGraphRun.finishedAt)]})]}),h.latestGraphRun.errorMessage&&u.jsx("p",{className:"text-xs text-destructive",children:h.latestGraphRun.errorMessage})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:h.indexingStatus==="completed"?"Graph data is derived during indexing.":"Index workspace first to populate graph data."})})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{className:"text-base",children:"Recent Index Runs"})}),u.jsx(Oe,{children:h.recentIndexRuns.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs yet."}):u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Mode"}),u.jsx(Xe,{children:"Status"}),u.jsx(Xe,{children:"Files"}),u.jsx(Xe,{children:"Started"})]})}),u.jsx(Ra,{children:h.recentIndexRuns.map(g=>u.jsxs(yt,{children:[u.jsx(Be,{children:g.mode}),u.jsx(Be,{children:u.jsx(ba,{status:g.status})}),u.jsxs(Be,{children:[g.filesUpdated,"/",g.filesScanned]}),u.jsx(Be,{className:"text-muted-foreground",children:Zs(g.startedAt)})]},g.id))})]})})]}),u.jsxs(Me,{children:[u.jsx(st,{children:u.jsx(it,{className:"text-base",children:"Recent Graph Runs"})}),u.jsx(Oe,{children:h.recentGraphRuns.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph runs yet."}):u.jsxs(ja,{children:[u.jsx(Na,{children:u.jsxs(yt,{children:[u.jsx(Xe,{children:"Mode"}),u.jsx(Xe,{children:"Status"}),u.jsx(Xe,{children:"Nodes"}),u.jsx(Xe,{children:"Started"})]})}),u.jsx(Ra,{children:h.recentGraphRuns.map(g=>u.jsxs(yt,{children:[u.jsx(Be,{children:g.mode}),u.jsx(Be,{children:u.jsx(ba,{status:g.status})}),u.jsx(Be,{children:g.nodesCreated}),u.jsx(Be,{className:"text-muted-foreground",children:Zs(g.startedAt)})]},g.id))})]})})]})]}),h.lastError&&u.jsx(Me,{className:"mt-4 border-destructive",children:u.jsx(Oe,{className:"p-4",children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx(S0,{className:"h-4 w-4 text-destructive mt-0.5"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-destructive",children:"Last Error"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:h.lastError})]})]})})})]})}const rO="modulepreload",lO=function(n){return"/"+n},Nb={},oO=function(a,i,l){let o=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=h(i.map(p=>{if(p=lO(p),p in Nb)return;Nb[p]=!0;const x=p.endsWith(".css"),v=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const b=document.createElement("link");if(b.rel=x?"stylesheet":rO,x||(b.as="script"),b.crossOrigin="",b.href=p,g&&b.setAttribute("nonce",g),document.head.appendChild(b),x)return new Promise((S,R)=>{b.addEventListener("load",S),b.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&f(m.reason);return a().catch(f)})};function cO({nodeTypes:n,edgeTypes:a}){return u.jsxs("div",{className:"flex flex-wrap gap-4 text-xs",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"font-medium text-muted-foreground",children:"Nodes"}),n.map(i=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"h-3 w-3 rounded-full",style:{backgroundColor:qM(i)}}),u.jsx("span",{className:"text-muted-foreground",children:i})]},i))]}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"font-medium text-muted-foreground",children:"Edges"}),a.slice(0,6).map(i=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"h-0.5 w-3 rounded-full",style:{backgroundColor:GM(i)}}),u.jsx("span",{className:"text-muted-foreground",children:i})]},i))]})]})}const uO=N.lazy(()=>oO(()=>import("./WorkspaceGraph-Ri1UihNc.js"),[]).then(n=>({default:n.WorkspaceGraph})));function fO({graphData:n}){const[a,i]=N.useState(!1),[l,o]=N.useState(null),[f,h]=N.useState(""),[m,g]=N.useState(()=>new Set(n.nodeTypes)),[p,x]=N.useState(()=>new Set(n.edgeTypes)),[v,b]=N.useState(null),[S,R]=N.useState(null);N.useEffect(()=>{i(!0)},[]);const j=N.useMemo(()=>{const L=new Map;for(const q of n.nodes)L.set(q.id,q);return L},[n.nodes]),E=N.useMemo(()=>{const L=new Map;for(const q of n.edges){const W=L.get(q.target);W?W.push(q):L.set(q.target,[q])}return L},[n.edges]),C=N.useMemo(()=>{const L=new Map;for(const q of n.edges){const W=L.get(q.source);W?W.push(q):L.set(q.source,[q])}return L},[n.edges]),_=N.useMemo(()=>{if(!l)return null;const L=E.get(l)??[],q=C.get(l)??[];return{incoming:L,outgoing:q}},[l,E,C]),U=N.useMemo(()=>n.nodes.filter(L=>!(f&&!L.label.toLowerCase().includes(f.toLowerCase())||m.size>0&&!m.has(L.type))),[n.nodes,f,m]),T=N.useMemo(()=>{const L=new Set(U.map(q=>q.id));return n.edges.filter(q=>!(!L.has(q.source)||!L.has(q.target)||p.size>0&&!p.has(q.type)))},[n.edges,U,p]),P=N.useCallback(L=>{if(!L){o(null),R(null);return}o(L),R(j.get(L)??null)},[j]),Y=N.useCallback(L=>{b(L)},[]),M=L=>{const q=new Set(m);q.has(L)?q.delete(L):q.add(L),g(q)},D=L=>{const q=new Set(p);q.has(L)?q.delete(L):q.add(L),x(q)};return a?u.jsxs("div",{className:"relative flex-1 min-h-0 overflow-hidden bg-[#171717]",children:[u.jsx("div",{className:"absolute left-3 top-3 z-10 max-h-[calc(100%-1.5rem)] w-64 overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 p-3 shadow-2xl backdrop-blur-xl",children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Et,{htmlFor:"search",className:"text-xs",children:"Search"}),u.jsxs("div",{className:"relative",children:[u.jsx(hm,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),u.jsx(Ql,{id:"search",placeholder:"Node label...",value:f,onChange:L=>h(L.target.value),className:"pl-8 h-8 text-sm"}),f&&u.jsx("button",{type:"button",onClick:()=>h(""),"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2",children:u.jsx(Qh,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Et,{className:"text-xs",children:"Node Types"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:n.nodeTypes.map(L=>u.jsx("button",{type:"button",onClick:()=>M(L),"aria-pressed":m.has(L),className:`px-2 py-0.5 text-xs rounded border transition-colors ${m.has(L)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:L},L))})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Et,{className:"text-xs",children:"Edge Types"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:n.edgeTypes.map(L=>u.jsx("button",{type:"button",onClick:()=>D(L),"aria-pressed":p.has(L),className:`px-2 py-0.5 text-xs rounded border transition-colors ${p.has(L)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:L},L))})]}),u.jsxs("div",{className:"pt-2 border-t",children:[u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",U.length.toLocaleString()," of ",n.totalNodes.toLocaleString()," nodes"]}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:[T.length.toLocaleString()," of ",n.totalEdges.toLocaleString()," edges"]}),n.totalNodes>n.nodes.length&&u.jsxs("p",{className:"text-xs text-amber-500/80 mt-1",children:[n.nodes.length.toLocaleString()," nodes loaded (limit)"]})]}),u.jsx("div",{className:"pt-2 border-t",children:u.jsx(cO,{nodeTypes:n.nodeTypes,edgeTypes:n.edgeTypes})})]})}),u.jsxs("div",{className:"absolute inset-0",children:[u.jsx(N.Suspense,{fallback:u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#171717]",children:u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Gl,{className:"h-4 w-4 animate-spin"}),u.jsx("span",{children:"Loading graph renderer..."})]})}),children:u.jsx(uO,{nodes:U,edges:T,selectedNodeId:l,onNodeClick:P,onNodeHover:Y,className:"absolute inset-0"})}),v&&!l&&(()=>{const L=j.get(v);return L?u.jsxs("div",{className:"pointer-events-none absolute bottom-4 left-4 max-w-sm rounded-md border border-white/10 bg-[#202020]/95 px-3 py-2 shadow-xl backdrop-blur-xl",children:[u.jsx("p",{className:"text-sm font-medium",children:L.label}),u.jsx("p",{className:"text-xs text-muted-foreground",children:L.type})]}):null})()]}),S&&u.jsxs("div",{className:"absolute bottom-3 right-3 top-3 z-20 w-[min(20rem,calc(100%-1.5rem))] overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 shadow-2xl backdrop-blur-xl",children:[u.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[u.jsx("h3",{className:"font-medium text-sm",children:"Inspector"}),u.jsx("button",{type:"button","aria-label":"Close inspector",onClick:()=>{o(null),R(null)},className:"text-muted-foreground hover:text-foreground",children:u.jsx(Qh,{className:"h-4 w-4"})})]}),u.jsxs("div",{className:"p-4 space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Label"}),u.jsx("p",{className:"text-sm font-mono break-all",children:S.label})]}),u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Type"}),u.jsx("p",{className:"text-sm",children:u.jsx(Bt,{variant:"outline",children:S.type})})]}),u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Degree"}),u.jsxs("p",{className:"text-sm",children:[S.degree," connections"]})]}),S.path&&u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Path"}),u.jsx("p",{className:"text-sm font-mono text-xs break-all",children:S.path})]}),(S.startLine||S.endLine)&&u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Lines"}),u.jsxs("p",{className:"text-sm font-mono",children:[S.startLine??"?","-",S.endLine??"?"]})]})]}),_&&u.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[u.jsxs(Et,{className:"text-xs text-muted-foreground",children:["Connections (",_.incoming.length+_.outgoing.length,")"]}),_.incoming.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Incoming"}),_.incoming.slice(0,5).map(L=>{const q=j.get(L.source);return u.jsxs("button",{type:"button",onClick:()=>P(L.source),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[u.jsxs("span",{className:"text-muted-foreground",children:[L.type,":"]})," ",u.jsx("span",{className:"font-mono truncate",children:(q==null?void 0:q.label)??L.source})]},L.id)})]}),_.outgoing.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Outgoing"}),_.outgoing.slice(0,5).map(L=>{const q=j.get(L.target);return u.jsxs("button",{type:"button",onClick:()=>P(L.target),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[u.jsxs("span",{className:"text-muted-foreground",children:[L.type,":"]})," ",u.jsx("span",{className:"font-mono truncate",children:(q==null?void 0:q.label)??L.target})]},L.id)})]})]}),Object.keys(S.metadata??{}).length>0&&u.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Metadata"}),u.jsx("pre",{className:"text-xs bg-muted rounded p-2 overflow-auto max-h-40",children:JSON.stringify(S.metadata,null,2)})]})]})]})]}):u.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Gl,{className:"h-4 w-4 animate-spin"}),u.jsx("span",{children:"Loading graph interface..."})]})})}const dO=zn("/workspaces/$workspaceId/graph")({loader:async({context:n,params:a})=>{await Promise.all([n.queryClient.ensureQueryData(Er(a.workspaceId)),n.queryClient.ensureQueryData(hu(a.workspaceId))])},component:hO});function hO(){const{workspaceId:n}=uu({from:"/workspaces/$workspaceId/graph"}),{data:a}=ci(Er(n)),{data:i}=ci(hu(n));if(!(a!=null&&a.ok))return u.jsx("div",{className:"page",children:u.jsx(Me,{className:"border-destructive",children:u.jsx(Oe,{className:"flex flex-col items-center justify-center py-16",children:u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"})})})});const l=a.data;if(!l)return u.jsx("div",{className:"page",children:u.jsx(Me,{children:u.jsx(Oe,{className:"flex flex-col items-center justify-center py-16",children:u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"})})})});const o=!!i&&i.nodes.length>0;return u.jsxs("div",{className:"-m-6 flex h-svh flex-col overflow-hidden bg-[#171717]",children:[u.jsx("div",{className:"z-20 border-b border-white/10 bg-[#202020]/95 backdrop-blur-xl",children:u.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(dt,{to:"/workspaces/$workspaceId",params:{workspaceId:n},children:u.jsx(Ot,{variant:"ghost",size:"icon",children:u.jsx(Rr,{className:"h-4 w-4"})})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("h1",{className:"text-sm font-semibold",children:"Graph view"}),u.jsx(Bt,{variant:"outline",children:l.name})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:i?u.jsxs(u.Fragment,{children:[i.totalNodes.toLocaleString()," nodes ·"," ",i.totalEdges.toLocaleString()," edges"]}):u.jsx(u.Fragment,{children:"No graph data"})})]})]}),u.jsx(ba,{status:l.graphStatus})]})}),o?i&&i.nodes.length>0?u.jsx(fO,{graphData:i}):null:u.jsx("div",{className:"flex-1 flex items-center justify-center",children:u.jsxs(Me,{className:"max-w-md",children:[u.jsx(st,{children:u.jsx(it,{children:"No Graph Data"})}),u.jsxs(Oe,{className:"space-y-4",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph data was found for this workspace."}),u.jsx(dt,{to:"/workspaces/$workspaceId",params:{workspaceId:n},children:u.jsx(Ot,{variant:"secondary",children:"Go to Workspace"})})]})]})})]})}const ju=MM.update({id:"/workspaces",path:"/workspaces",getParentRoute:()=>mi}),mO=OM.update({id:"/settings",path:"/settings",getParentRoute:()=>mi}),pO=HM.update({id:"/query",path:"/query",getParentRoute:()=>mi}),gO=QM.update({id:"/documents",path:"/documents",getParentRoute:()=>mi}),vO=YM.update({id:"/benchmark",path:"/benchmark",getParentRoute:()=>mi}),yO=ZM.update({id:"/",path:"/",getParentRoute:()=>mi}),xO=$M.update({id:"/",path:"/",getParentRoute:()=>ju}),bO=eO.update({id:"/new",path:"/new",getParentRoute:()=>ju}),Hm=nO.update({id:"/$workspaceId",path:"/$workspaceId",getParentRoute:()=>ju}),SO=sO.update({id:"/",path:"/",getParentRoute:()=>Hm}),wO=dO.update({id:"/graph",path:"/graph",getParentRoute:()=>Hm}),jO={WorkspacesWorkspaceIdGraphRoute:wO,WorkspacesWorkspaceIdIndexRoute:SO},NO=Hm._addFileChildren(jO),RO={WorkspacesWorkspaceIdRoute:NO,WorkspacesNewRoute:bO,WorkspacesIndexRoute:xO},EO=ju._addFileChildren(RO),CO={IndexRoute:yO,BenchmarkRoute:vO,DocumentsRoute:gO,QueryRoute:pO,SettingsRoute:mO,WorkspacesRoute:EO},TO=mi._addFileChildren(CO)._addFileTypes(),lS=new sR({defaultOptions:{queries:{staleTime:1e3*60*60,refetchOnMount:!1,refetchOnWindowFocus:!1}}}),_O=_N({routeTree:TO,context:{queryClient:lS}}),Rb=document.getElementById("root");Rb.innerHTML||Uj.createRoot(Rb).render(u.jsx(oi.StrictMode,{children:u.jsx(iR,{client:lS,children:u.jsx(ON,{router:_O})})}));export{qM as a,GM as g,u as j,N as r};
|