@openez-graph/cli 0.8.0 → 0.9.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.
@@ -1,362 +0,0 @@
1
- var ab=t=>{throw TypeError(t)};var ah=(t,a,r)=>a.has(t)||ab("Cannot "+r);var M=(t,a,r)=>(ah(t,a,"read from private field"),r?r.call(t):a.get(t)),pe=(t,a,r)=>a.has(t)?ab("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,r),oe=(t,a,r,i)=>(ah(t,a,"write to private field"),i?i.call(t,r):a.set(t,r),r),Ee=(t,a,r)=>(ah(t,a,"access private method"),r);var Oc=(t,a,r,i)=>({set _(o){oe(t,a,o,r)},get _(){return M(t,a,i)}});function nE(t,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const d=Object.getOwnPropertyDescriptor(i,o);d&&Object.defineProperty(t,o,d.get?d:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function r(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(o){if(o.ep)return;o.ep=!0;const d=r(o);fetch(o.href,d)}})();function xm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sh={exports:{}},Fl={};/**
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 sb;function aE(){if(sb)return Fl;sb=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,d){var f=null;if(d!==void 0&&(f=""+d),o.key!==void 0&&(f=""+o.key),"key"in o){d={};for(var m in o)m!=="key"&&(d[m]=o[m])}else d=o;return o=d.ref,{$$typeof:t,type:i,key:f,ref:o!==void 0?o:null,props:d}}return Fl.Fragment=a,Fl.jsx=r,Fl.jsxs=r,Fl}var rb;function sE(){return rb||(rb=1,sh.exports=aE()),sh.exports}var c=sE(),rh={exports:{}},Se={};/**
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 ib;function rE(){if(ib)return Se;ib=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function j(L){return L===null||typeof L!="object"?null:(L=x&&L[x]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function _(L,Z,re){this.props=L,this.context=Z,this.refs=E,this.updater=re||w}_.prototype.isReactComponent={},_.prototype.setState=function(L,Z){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,Z,"setState")},_.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function C(){}C.prototype=_.prototype;function T(L,Z,re){this.props=L,this.context=Z,this.refs=E,this.updater=re||w}var A=T.prototype=new C;A.constructor=T,S(A,_.prototype),A.isPureReactComponent=!0;var B=Array.isArray;function q(){}var k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(L,Z,re){var ie=re.ref;return{$$typeof:t,type:L,key:Z,ref:ie!==void 0?ie:null,props:re}}function H(L,Z){return z(L.type,Z,L.props)}function X(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function ne(L){var Z={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return Z[re]})}var se=/\/+/g;function te(L,Z){return typeof L=="object"&&L!==null&&L.key!=null?ne(""+L.key):Z.toString(36)}function ce(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(q,q):(L.status="pending",L.then(function(Z){L.status==="pending"&&(L.status="fulfilled",L.value=Z)},function(Z){L.status==="pending"&&(L.status="rejected",L.reason=Z)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function P(L,Z,re,ie,le){var he=typeof L;(he==="undefined"||he==="boolean")&&(L=null);var xe=!1;if(L===null)xe=!0;else switch(he){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(L.$$typeof){case t:case a:xe=!0;break;case v:return xe=L._init,P(xe(L._payload),Z,re,ie,le)}}if(xe)return le=le(L),xe=ie===""?"."+te(L,0):ie,B(le)?(re="",xe!=null&&(re=xe.replace(se,"$&/")+"/"),P(le,Z,re,"",function(Bt){return Bt})):le!=null&&(X(le)&&(le=H(le,re+(le.key==null||L&&L.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+xe)),Z.push(le)),1;xe=0;var ze=ie===""?".":ie+":";if(B(L))for(var ve=0;ve<L.length;ve++)ie=L[ve],he=ze+te(ie,ve),xe+=P(ie,Z,re,he,le);else if(ve=j(L),typeof ve=="function")for(L=ve.call(L),ve=0;!(ie=L.next()).done;)ie=ie.value,he=ze+te(ie,ve++),xe+=P(ie,Z,re,he,le);else if(he==="object"){if(typeof L.then=="function")return P(ce(L),Z,re,ie,le);throw Z=String(L),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return xe}function V(L,Z,re){if(L==null)return L;var ie=[],le=0;return P(L,ie,"","",function(he){return Z.call(re,he,le++)}),ie}function ee(L){if(L._status===-1){var Z=L._result;Z=Z(),Z.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=Z)}if(L._status===1)return L._result.default;throw L._result}var ye=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ae={map:V,forEach:function(L,Z,re){V(L,function(){Z.apply(this,arguments)},re)},count:function(L){var Z=0;return V(L,function(){Z++}),Z},toArray:function(L){return V(L,function(Z){return Z})||[]},only:function(L){if(!X(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Se.Activity=y,Se.Children=ae,Se.Component=_,Se.Fragment=r,Se.Profiler=o,Se.PureComponent=T,Se.StrictMode=i,Se.Suspense=g,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Se.__COMPILER_RUNTIME={__proto__:null,c:function(L){return k.H.useMemoCache(L)}},Se.cache=function(L){return function(){return L.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(L,Z,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ie=S({},L.props),le=L.key;if(Z!=null)for(he in Z.key!==void 0&&(le=""+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=re;else if(1<he){for(var xe=Array(he),ze=0;ze<he;ze++)xe[ze]=arguments[ze+2];ie.children=xe}return z(L.type,le,ie)},Se.createContext=function(L){return L={$$typeof:f,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:d,_context:L},L},Se.createElement=function(L,Z,re){var ie,le={},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"&&(le[ie]=Z[ie]);var xe=arguments.length-2;if(xe===1)le.children=re;else if(1<xe){for(var ze=Array(xe),ve=0;ve<xe;ve++)ze[ve]=arguments[ve+2];le.children=ze}if(L&&L.defaultProps)for(ie in xe=L.defaultProps,xe)le[ie]===void 0&&(le[ie]=xe[ie]);return z(L,he,le)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(L){return{$$typeof:m,render:L}},Se.isValidElement=X,Se.lazy=function(L){return{$$typeof:v,_payload:{_status:-1,_result:L},_init:ee}},Se.memo=function(L,Z){return{$$typeof:p,type:L,compare:Z===void 0?null:Z}},Se.startTransition=function(L){var Z=k.T,re={};k.T=re;try{var ie=L(),le=k.S;le!==null&&le(re,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(q,ye)}catch(he){ye(he)}finally{Z!==null&&re.types!==null&&(Z.types=re.types),k.T=Z}},Se.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Se.use=function(L){return k.H.use(L)},Se.useActionState=function(L,Z,re){return k.H.useActionState(L,Z,re)},Se.useCallback=function(L,Z){return k.H.useCallback(L,Z)},Se.useContext=function(L){return k.H.useContext(L)},Se.useDebugValue=function(){},Se.useDeferredValue=function(L,Z){return k.H.useDeferredValue(L,Z)},Se.useEffect=function(L,Z){return k.H.useEffect(L,Z)},Se.useEffectEvent=function(L){return k.H.useEffectEvent(L)},Se.useId=function(){return k.H.useId()},Se.useImperativeHandle=function(L,Z,re){return k.H.useImperativeHandle(L,Z,re)},Se.useInsertionEffect=function(L,Z){return k.H.useInsertionEffect(L,Z)},Se.useLayoutEffect=function(L,Z){return k.H.useLayoutEffect(L,Z)},Se.useMemo=function(L,Z){return k.H.useMemo(L,Z)},Se.useOptimistic=function(L,Z){return k.H.useOptimistic(L,Z)},Se.useReducer=function(L,Z,re){return k.H.useReducer(L,Z,re)},Se.useRef=function(L){return k.H.useRef(L)},Se.useState=function(L){return k.H.useState(L)},Se.useSyncExternalStore=function(L,Z,re){return k.H.useSyncExternalStore(L,Z,re)},Se.useTransition=function(){return k.H.useTransition()},Se.version="19.2.7",Se}var lb;function co(){return lb||(lb=1,rh.exports=rE()),rh.exports}var N=co();const br=xm(N),Sm=nE({__proto__:null,default:br},[N]);var ih={exports:{}},Hl={},lh={exports:{}},oh={};/**
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 ob;function iE(){return ob||(ob=1,(function(t){function a(P,V){var ee=P.length;P.push(V);e:for(;0<ee;){var ye=ee-1>>>1,ae=P[ye];if(0<o(ae,V))P[ye]=V,P[ee]=ae,ee=ye;else break e}}function r(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var V=P[0],ee=P.pop();if(ee!==V){P[0]=ee;e:for(var ye=0,ae=P.length,L=ae>>>1;ye<L;){var Z=2*(ye+1)-1,re=P[Z],ie=Z+1,le=P[ie];if(0>o(re,ee))ie<ae&&0>o(le,re)?(P[ye]=le,P[ie]=ee,ye=ie):(P[ye]=re,P[Z]=ee,ye=Z);else if(ie<ae&&0>o(le,ee))P[ye]=le,P[ie]=ee,ye=ie;else break e}}return V}function o(P,V){var ee=P.sortIndex-V.sortIndex;return ee!==0?ee:P.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();t.unstable_now=function(){return f.now()-m}}var g=[],p=[],v=1,y=null,x=3,j=!1,w=!1,S=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(P){for(var V=r(p);V!==null;){if(V.callback===null)i(p);else if(V.startTime<=P)i(p),V.sortIndex=V.expirationTime,a(g,V);else break;V=r(p)}}function B(P){if(S=!1,A(P),!w)if(r(g)!==null)w=!0,q||(q=!0,ne());else{var V=r(p);V!==null&&ce(B,V.startTime-P)}}var q=!1,k=-1,D=5,z=-1;function H(){return E?!0:!(t.unstable_now()-z<D)}function X(){if(E=!1,q){var P=t.unstable_now();z=P;var V=!0;try{e:{w=!1,S&&(S=!1,C(k),k=-1),j=!0;var ee=x;try{t:{for(A(P),y=r(g);y!==null&&!(y.expirationTime>P&&H());){var ye=y.callback;if(typeof ye=="function"){y.callback=null,x=y.priorityLevel;var ae=ye(y.expirationTime<=P);if(P=t.unstable_now(),typeof ae=="function"){y.callback=ae,A(P),V=!0;break t}y===r(g)&&i(g),A(P)}else i(g);y=r(g)}if(y!==null)V=!0;else{var L=r(p);L!==null&&ce(B,L.startTime-P),V=!1}}break e}finally{y=null,x=ee,j=!1}V=void 0}}finally{V?ne():q=!1}}}var ne;if(typeof T=="function")ne=function(){T(X)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,te=se.port2;se.port1.onmessage=X,ne=function(){te.postMessage(null)}}else ne=function(){_(X,0)};function ce(P,V){k=_(function(){P(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(P){switch(x){case 1:case 2:case 3:var V=3;break;default:V=x}var ee=x;x=V;try{return P()}finally{x=ee}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(P,V){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ee=x;x=P;try{return V()}finally{x=ee}},t.unstable_scheduleCallback=function(P,V,ee){var ye=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,P){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=ee+ae,P={id:v++,callback:V,priorityLevel:P,startTime:ee,expirationTime:ae,sortIndex:-1},ee>ye?(P.sortIndex=ee,a(p,P),r(g)===null&&P===r(p)&&(S?(C(k),k=-1):S=!0,ce(B,ee-ye))):(P.sortIndex=ae,a(g,P),w||j||(w=!0,q||(q=!0,ne()))),P},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(P){var V=x;return function(){var ee=x;x=V;try{return P.apply(this,arguments)}finally{x=ee}}}})(oh)),oh}var cb;function lE(){return cb||(cb=1,lh.exports=iE()),lh.exports}var ch={exports:{}},Mt={};/**
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 ub;function oE(){if(ub)return Mt;ub=1;var t=co();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(g,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:g,containerInfo:p,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mt.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return d(g,p,null,v)},Mt.flushSync=function(g){var p=f.T,v=i.p;try{if(f.T=null,i.p=2,g)return g()}finally{f.T=p,i.p=v,i.d.f()}},Mt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(g,p))},Mt.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},Mt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?i.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:j}):v==="script"&&i.d.X(g,{crossOrigin:y,integrity:x,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Mt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);i.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(g)},Mt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin);i.d.L(g,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Mt.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);i.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(g)},Mt.requestFormReset=function(g){i.d.r(g)},Mt.unstable_batchedUpdates=function(g,p){return g(p)},Mt.useFormState=function(g,p,v){return f.H.useFormState(g,p,v)},Mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Mt.version="19.2.7",Mt}var db;function i0(){if(db)return ch.exports;db=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),ch.exports=oE(),ch.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 fb;function cE(){if(fb)return Hl;fb=1;var t=lE(),a=co(),r=i0();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(i(188))}function p(e){var n=e.alternate;if(!n){if(n=d(e),n===null)throw Error(i(188));return n!==e?null:e}for(var s=e,l=n;;){var u=s.return;if(u===null)break;var h=u.alternate;if(h===null){if(l=u.return,l!==null){s=l;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===s)return g(u),e;if(h===l)return g(u),n;h=h.sibling}throw Error(i(188))}if(s.return!==l.return)s=u,l=h;else{for(var b=!1,R=u.child;R;){if(R===s){b=!0,s=u,l=h;break}if(R===l){b=!0,l=u,s=h;break}R=R.sibling}if(!b){for(R=h.child;R;){if(R===s){b=!0,s=h,l=u;break}if(R===l){b=!0,l=h,s=u;break}R=R.sibling}if(!b)throw Error(i(189))}}if(s.alternate!==l)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case B:return"Suspense";case q:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case T:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case A:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case D:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var ce=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ye=[],ae=-1;function L(e){return{current:e}}function Z(e){0>ae||(e.current=ye[ae],ye[ae]=null,ae--)}function re(e,n){ae++,ye[ae]=e.current,e.current=n}var ie=L(null),le=L(null),he=L(null),xe=L(null);function ze(e,n){switch(re(he,n),re(le,e),re(ie,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Rv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Rv(n),e=Cv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ie),re(ie,e)}function ve(){Z(ie),Z(le),Z(he)}function Bt(e){e.memoizedState!==null&&re(xe,e);var n=ie.current,s=Cv(n,e.type);n!==s&&(re(le,e),re(ie,s))}function Et(e){le.current===e&&(Z(ie),Z(le)),xe.current===e&&(Z(xe),zl._currentValue=ee)}var kt,Ut;function xt(e){if(kt===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);kt=n&&n[1]||"",Ut=-1<s.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+kt+e+Ut}var Ls=!1;function Fa(e,n){if(!e||Ls)return"";Ls=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Y){var Q=Y}Reflect.construct(e,[],W)}else{try{W.call()}catch(Y){Q=Y}e.call(W.prototype)}}else{try{throw Error()}catch(Y){Q=Y}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(Y){if(Y&&Q&&typeof Y.stack=="string")return[Y.stack,Q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),b=h[0],R=h[1];if(b&&R){var O=b.split(`
44
- `),I=R.split(`
45
- `);for(u=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;u<I.length&&!I[u].includes("DetermineComponentFrameRoot");)u++;if(l===O.length||u===I.length)for(l=O.length-1,u=I.length-1;1<=l&&0<=u&&O[l]!==I[u];)u--;for(;1<=l&&0<=u;l--,u--)if(O[l]!==I[u]){if(l!==1||u!==1)do if(l--,u--,0>u||O[l]!==I[u]){var $=`
46
- `+O[l].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=l&&0<=u);break}}}finally{Ls=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?xt(s):""}function Rr(e,n){switch(e.tag){case 26:case 27:case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return e.child!==n&&n!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return Fa(e.type,!1);case 11:return Fa(e.type.render,!1);case 1:return Fa(e.type,!0);case 31:return xt("Activity");default:return""}}function On(e){try{var n="",s=null;do n+=Rr(e,s),s=e,e=e.return;while(e);return n}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var xn=Object.prototype.hasOwnProperty,Mn=t.unstable_scheduleCallback,Yi=t.unstable_cancelCallback,po=t.unstable_shouldYield,Gu=t.unstable_requestPaint,Ot=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Nt=t.unstable_ImmediatePriority,qn=t.unstable_UserBlockingPriority,Cr=t.unstable_NormalPriority,BS=t.unstable_LowPriority,ip=t.unstable_IdlePriority,US=t.log,PS=t.unstable_setDisableYieldValue,$i=null,nn=null;function Ha(e){if(typeof US=="function"&&PS(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode($i,e)}catch{}}var an=Math.clz32?Math.clz32:qS,FS=Math.log,HS=Math.LN2;function qS(e){return e>>>=0,e===0?32:31-(FS(e)/HS|0)|0}var go=256,yo=262144,vo=4194304;function zs(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 bo(e,n,s){var l=e.pendingLanes;if(l===0)return 0;var u=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var R=l&134217727;return R!==0?(l=R&~h,l!==0?u=zs(l):(b&=R,b!==0?u=zs(b):s||(s=R&~e,s!==0&&(u=zs(s))))):(R=l&~h,R!==0?u=zs(R):b!==0?u=zs(b):s||(s=l&~e,s!==0&&(u=zs(s)))),u===0?0:n!==0&&n!==u&&(n&h)===0&&(h=u&-u,s=n&-n,h>=s||h===32&&(s&4194048)!==0)?n:u}function Xi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function GS(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lp(){var e=vo;return vo<<=1,(vo&62914560)===0&&(vo=4194304),e}function Iu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Zi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function IS(e,n,s,l,u,h){var b=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 R=e.entanglements,O=e.expirationTimes,I=e.hiddenUpdates;for(s=b&~s;0<s;){var $=31-an(s),W=1<<$;R[$]=0,O[$]=-1;var Q=I[$];if(Q!==null)for(I[$]=null,$=0;$<Q.length;$++){var Y=Q[$];Y!==null&&(Y.lane&=-536870913)}s&=~W}l!==0&&op(e,l,0),h!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function op(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-an(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function cp(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var l=31-an(s),u=1<<l;u&n|e[l]&n&&(e[l]|=n),s&=~u}}function up(e,n){var s=n&-n;return s=(s&42)!==0?1:Qu(s),(s&(e.suspendedLanes|n))!==0?0:s}function Qu(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 Vu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dp(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Zv(e.type))}function fp(e,n){var s=V.p;try{return V.p=e,n()}finally{V.p=s}}var qa=Math.random().toString(36).slice(2),Rt="__reactFiber$"+qa,Gt="__reactProps$"+qa,_r="__reactContainer$"+qa,Yu="__reactEvents$"+qa,QS="__reactListeners$"+qa,VS="__reactHandles$"+qa,hp="__reactResources$"+qa,Ki="__reactMarker$"+qa;function $u(e){delete e[Rt],delete e[Gt],delete e[Yu],delete e[QS],delete e[VS]}function Ar(e){var n=e[Rt];if(n)return n;for(var s=e.parentNode;s;){if(n=s[_r]||s[Rt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Dv(e);e!==null;){if(s=e[Rt])return s;e=Dv(e)}return n}e=s,s=e.parentNode}return null}function Tr(e){if(e=e[Rt]||e[_r]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Wi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function kr(e){var n=e[hp];return n||(n=e[hp]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function St(e){e[Ki]=!0}var mp=new Set,pp={};function Bs(e,n){Or(e,n),Or(e+"Capture",n)}function Or(e,n){for(pp[e]=n,e=0;e<n.length;e++)mp.add(n[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]*$"),gp={},yp={};function $S(e){return xn.call(yp,e)?!0:xn.call(gp,e)?!1:YS.test(e)?yp[e]=!0:(gp[e]=!0,!1)}function xo(e,n,s){if($S(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function So(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function la(e,n,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+l)}}function Sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function XS(e,n,s){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,h=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){s=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(b){s=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Xu(e){if(!e._valueTracker){var n=vp(e)?"checked":"value";e._valueTracker=XS(e,n,""+e[n])}}function bp(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),l="";return e&&(l=vp(e)?e.checked?"true":"false":e.value),e=l,e!==s?(n.setValue(e),!0):!1}function wo(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 ZS=/[\n"\\]/g;function wn(e){return e.replace(ZS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Zu(e,n,s,l,u,h,b,R){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Sn(n)):e.value!==""+Sn(n)&&(e.value=""+Sn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Ku(e,b,Sn(n)):s!=null?Ku(e,b,Sn(s)):l!=null&&e.removeAttribute("value"),u==null&&h!=null&&(e.defaultChecked=!!h),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+Sn(R):e.removeAttribute("name")}function xp(e,n,s,l,u,h,b,R){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Xu(e);return}s=s!=null?""+Sn(s):"",n=n!=null?""+Sn(n):s,R||n===e.value||(e.value=n),e.defaultValue=n}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=R?e.checked:!!l,e.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Xu(e)}function Ku(e,n,s){n==="number"&&wo(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Mr(e,n,s,l){if(e=e.options,n){n={};for(var u=0;u<s.length;u++)n["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=n.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&l&&(e[s].defaultSelected=!0)}else{for(s=""+Sn(s),n=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Sp(e,n,s){if(n!=null&&(n=""+Sn(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+Sn(s):""}function wp(e,n,s,l){if(n==null){if(l!=null){if(s!=null)throw Error(i(92));if(ce(l)){if(1<l.length)throw Error(i(93));l=l[0]}s=l}s==null&&(s=""),n=s}s=Sn(n),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),Xu(e)}function Dr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var KS=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 jp(e,n,s){var l=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,s):typeof s!="number"||s===0||KS.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function Ep(e,n,s){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in n)l=n[u],n.hasOwnProperty(u)&&s[u]!==l&&jp(e,u,l)}else for(var h in n)n.hasOwnProperty(h)&&jp(e,h,n[h])}function Wu(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 WS=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"]]),JS=/^[\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 jo(e){return JS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Ju=null;function ed(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lr=null,zr=null;function Np(e){var n=Tr(e);if(n&&(e=n.stateNode)){var s=e[Gt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Zu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+wn(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var l=s[n];if(l!==e&&l.form===e.form){var u=l[Gt]||null;if(!u)throw Error(i(90));Zu(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<s.length;n++)l=s[n],l.form===e.form&&bp(l)}break e;case"textarea":Sp(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&Mr(e,!!s.multiple,n,!1)}}}var td=!1;function Rp(e,n,s){if(td)return e(n,s);td=!0;try{var l=e(n);return l}finally{if(td=!1,(Lr!==null||zr!==null)&&(uc(),Lr&&(n=Lr,e=zr,zr=Lr=null,Np(n),e)))for(n=0;n<e.length;n++)Np(e[n])}}function Ji(e,n){var s=e.stateNode;if(s===null)return null;var l=s[Gt]||null;if(l===null)return null;s=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(i(231,n,typeof s));return s}var ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nd=!1;if(ca)try{var el={};Object.defineProperty(el,"passive",{get:function(){nd=!0}}),window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{nd=!1}var Ga=null,ad=null,Eo=null;function Cp(){if(Eo)return Eo;var e,n=ad,s=n.length,l,u="value"in Ga?Ga.value:Ga.textContent,h=u.length;for(e=0;e<s&&n[e]===u[e];e++);var b=s-e;for(l=1;l<=b&&n[s-l]===u[h-l];l++);return Eo=u.slice(e,1<l?1-l:void 0)}function No(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ro(){return!0}function _p(){return!1}function It(e){function n(s,l,u,h,b){this._reactName=s,this._targetInst=u,this.type=l,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(s=e[R],this[R]=s?s(h):h[R]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ro:_p,this.isPropagationStopped=_p,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ro)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ro)},persist:function(){},isPersistent:Ro}),n}var Us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=It(Us),tl=y({},Us,{view:0,detail:0}),ew=It(tl),sd,rd,nl,_o=y({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ld,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!==nl&&(nl&&e.type==="mousemove"?(sd=e.screenX-nl.screenX,rd=e.screenY-nl.screenY):rd=sd=0,nl=e),sd)},movementY:function(e){return"movementY"in e?e.movementY:rd}}),Ap=It(_o),tw=y({},_o,{dataTransfer:0}),nw=It(tw),aw=y({},tl,{relatedTarget:0}),id=It(aw),sw=y({},Us,{animationName:0,elapsedTime:0,pseudoElement:0}),rw=It(sw),iw=y({},Us,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lw=It(iw),ow=y({},Us,{data:0}),Tp=It(ow),cw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uw={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"},dw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fw(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=dw[e])?!!n[e]:!1}function ld(){return fw}var hw=y({},tl,{key:function(e){if(e.key){var n=cw[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=No(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ld,charCode:function(e){return e.type==="keypress"?No(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?No(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mw=It(hw),pw=y({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kp=It(pw),gw=y({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ld}),yw=It(gw),vw=y({},Us,{propertyName:0,elapsedTime:0,pseudoElement:0}),bw=It(vw),xw=y({},_o,{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}),Sw=It(xw),ww=y({},Us,{newState:0,oldState:0}),jw=It(ww),Ew=[9,13,27,32],od=ca&&"CompositionEvent"in window,al=null;ca&&"documentMode"in document&&(al=document.documentMode);var Nw=ca&&"TextEvent"in window&&!al,Op=ca&&(!od||al&&8<al&&11>=al),Mp=" ",Dp=!1;function Lp(e,n){switch(e){case"keyup":return Ew.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function Rw(e,n){switch(e){case"compositionend":return zp(n);case"keypress":return n.which!==32?null:(Dp=!0,Mp);case"textInput":return e=n.data,e===Mp&&Dp?null:e;default:return null}}function Cw(e,n){if(Br)return e==="compositionend"||!od&&Lp(e,n)?(e=Cp(),Eo=ad=Ga=null,Br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Op&&n.locale!=="ko"?null:n.data;default:return null}}var _w={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 Bp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!_w[e.type]:n==="textarea"}function Up(e,n,s,l){Lr?zr?zr.push(l):zr=[l]:Lr=l,n=yc(n,"onChange"),0<n.length&&(s=new Co("onChange","change",null,s,l),e.push({event:s,listeners:n}))}var sl=null,rl=null;function Aw(e){xv(e,0)}function Ao(e){var n=Wi(e);if(bp(n))return e}function Pp(e,n){if(e==="change")return n}var Fp=!1;if(ca){var cd;if(ca){var ud="oninput"in document;if(!ud){var Hp=document.createElement("div");Hp.setAttribute("oninput","return;"),ud=typeof Hp.oninput=="function"}cd=ud}else cd=!1;Fp=cd&&(!document.documentMode||9<document.documentMode)}function qp(){sl&&(sl.detachEvent("onpropertychange",Gp),rl=sl=null)}function Gp(e){if(e.propertyName==="value"&&Ao(rl)){var n=[];Up(n,rl,e,ed(e)),Rp(Aw,n)}}function Tw(e,n,s){e==="focusin"?(qp(),sl=n,rl=s,sl.attachEvent("onpropertychange",Gp)):e==="focusout"&&qp()}function kw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ao(rl)}function Ow(e,n){if(e==="click")return Ao(n)}function Mw(e,n){if(e==="input"||e==="change")return Ao(n)}function Dw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var sn=typeof Object.is=="function"?Object.is:Dw;function il(e,n){if(sn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var u=s[l];if(!xn.call(n,u)||!sn(e[u],n[u]))return!1}return!0}function Ip(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qp(e,n){var s=Ip(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=n&&l>=n)return{node:s,offset:n-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Ip(s)}}function Vp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Yp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=wo(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=wo(e.document)}return n}function dd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Lw=ca&&"documentMode"in document&&11>=document.documentMode,Ur=null,fd=null,ll=null,hd=!1;function $p(e,n,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;hd||Ur==null||Ur!==wo(l)||(l=Ur,"selectionStart"in l&&dd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ll&&il(ll,l)||(ll=l,l=yc(fd,"onSelect"),0<l.length&&(n=new Co("onSelect","select",null,n,s),e.push({event:n,listeners:l}),n.target=Ur)))}function Ps(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var Pr={animationend:Ps("Animation","AnimationEnd"),animationiteration:Ps("Animation","AnimationIteration"),animationstart:Ps("Animation","AnimationStart"),transitionrun:Ps("Transition","TransitionRun"),transitionstart:Ps("Transition","TransitionStart"),transitioncancel:Ps("Transition","TransitionCancel"),transitionend:Ps("Transition","TransitionEnd")},md={},Xp={};ca&&(Xp=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Fs(e){if(md[e])return md[e];if(!Pr[e])return e;var n=Pr[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Xp)return md[e]=n[s];return e}var Zp=Fs("animationend"),Kp=Fs("animationiteration"),Wp=Fs("animationstart"),zw=Fs("transitionrun"),Bw=Fs("transitionstart"),Uw=Fs("transitioncancel"),Jp=Fs("transitionend"),eg=new Map,pd="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(" ");pd.push("scrollEnd");function Dn(e,n){eg.set(e,n),Bs(n,[e])}var To=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jn=[],Fr=0,gd=0;function ko(){for(var e=Fr,n=gd=Fr=0;n<e;){var s=jn[n];jn[n++]=null;var l=jn[n];jn[n++]=null;var u=jn[n];jn[n++]=null;var h=jn[n];if(jn[n++]=null,l!==null&&u!==null){var b=l.pending;b===null?u.next=u:(u.next=b.next,b.next=u),l.pending=u}h!==0&&tg(s,u,h)}}function Oo(e,n,s,l){jn[Fr++]=e,jn[Fr++]=n,jn[Fr++]=s,jn[Fr++]=l,gd|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function yd(e,n,s,l){return Oo(e,n,s,l),Mo(e)}function Hs(e,n){return Oo(e,null,null,n),Mo(e)}function tg(e,n,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var u=!1,h=e.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(u=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,u&&n!==null&&(u=31-an(s),e=h.hiddenUpdates,l=e[u],l===null?e[u]=[n]:l.push(n),n.lane=s|536870912),h):null}function Mo(e){if(50<Al)throw Al=0,Cf=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Hr={};function Pw(e,n,s,l){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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,n,s,l){return new Pw(e,n,s,l)}function vd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,n){var s=e.alternate;return s===null?(s=rn(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,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,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function ng(e,n){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=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,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Do(e,n,s,l,u,h){var b=0;if(l=e,typeof e=="function")vd(e)&&(b=1);else if(typeof e=="string")b=Ij(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=rn(31,s,n,u),e.elementType=z,e.lanes=h,e;case S:return qs(s.children,u,h,n);case E:b=8,u|=24;break;case _:return e=rn(12,s,n,u|2),e.elementType=_,e.lanes=h,e;case B:return e=rn(13,s,n,u),e.elementType=B,e.lanes=h,e;case q:return e=rn(19,s,n,u),e.elementType=q,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:b=10;break e;case C:b=9;break e;case A:b=11;break e;case k:b=14;break e;case D:b=16,l=null;break e}b=29,s=Error(i(130,e===null?"null":typeof e,"")),l=null}return n=rn(b,s,n,u),n.elementType=e,n.type=l,n.lanes=h,n}function qs(e,n,s,l){return e=rn(7,e,l,n),e.lanes=s,e}function bd(e,n,s){return e=rn(6,e,null,n),e.lanes=s,e}function ag(e){var n=rn(18,null,null,0);return n.stateNode=e,n}function xd(e,n,s){return n=rn(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var sg=new WeakMap;function En(e,n){if(typeof e=="object"&&e!==null){var s=sg.get(e);return s!==void 0?s:(n={value:e,source:n,stack:On(n)},sg.set(e,n),n)}return{value:e,source:n,stack:On(n)}}var qr=[],Gr=0,Lo=null,ol=0,Nn=[],Rn=0,Ia=null,Gn=1,In="";function da(e,n){qr[Gr++]=ol,qr[Gr++]=Lo,Lo=e,ol=n}function rg(e,n,s){Nn[Rn++]=Gn,Nn[Rn++]=In,Nn[Rn++]=Ia,Ia=e;var l=Gn;e=In;var u=32-an(l)-1;l&=~(1<<u),s+=1;var h=32-an(n)+u;if(30<h){var b=u-u%5;h=(l&(1<<b)-1).toString(32),l>>=b,u-=b,Gn=1<<32-an(n)+u|s<<u|l,In=h+e}else Gn=1<<h|s<<u|l,In=e}function Sd(e){e.return!==null&&(da(e,1),rg(e,1,0))}function wd(e){for(;e===Lo;)Lo=qr[--Gr],qr[Gr]=null,ol=qr[--Gr],qr[Gr]=null;for(;e===Ia;)Ia=Nn[--Rn],Nn[Rn]=null,In=Nn[--Rn],Nn[Rn]=null,Gn=Nn[--Rn],Nn[Rn]=null}function ig(e,n){Nn[Rn++]=Gn,Nn[Rn++]=In,Nn[Rn++]=Ia,Gn=n.id,In=n.overflow,Ia=e}var Ct=null,Xe=null,Me=!1,Qa=null,Cn=!1,jd=Error(i(519));function Va(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cl(En(n,e)),jd}function lg(e){var n=e.stateNode,s=e.type,l=e.memoizedProps;switch(n[Rt]=e,n[Gt]=l,s){case"dialog":Ae("cancel",n),Ae("close",n);break;case"iframe":case"object":case"embed":Ae("load",n);break;case"video":case"audio":for(s=0;s<kl.length;s++)Ae(kl[s],n);break;case"source":Ae("error",n);break;case"img":case"image":case"link":Ae("error",n),Ae("load",n);break;case"details":Ae("toggle",n);break;case"input":Ae("invalid",n),xp(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ae("invalid",n);break;case"textarea":Ae("invalid",n),wp(n,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||l.suppressHydrationWarning===!0||Ev(n.textContent,s)?(l.popover!=null&&(Ae("beforetoggle",n),Ae("toggle",n)),l.onScroll!=null&&Ae("scroll",n),l.onScrollEnd!=null&&Ae("scrollend",n),l.onClick!=null&&(n.onclick=oa),n=!0):n=!1,n||Va(e,!0)}function og(e){for(Ct=e.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:Cn=!1;return;case 27:case 3:Cn=!0;return;default:Ct=Ct.return}}function Ir(e){if(e!==Ct)return!1;if(!Me)return og(e),Me=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||qf(e.type,e.memoizedProps)),s=!s),s&&Xe&&Va(e),og(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Xe=Mv(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Xe=Mv(e)}else n===27?(n=Xe,is(e.type)?(e=Yf,Yf=null,Xe=e):Xe=n):Xe=Ct?An(e.stateNode.nextSibling):null;return!0}function Gs(){Xe=Ct=null,Me=!1}function Ed(){var e=Qa;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),Qa=null),e}function cl(e){Qa===null?Qa=[e]:Qa.push(e)}var Nd=L(null),Is=null,fa=null;function Ya(e,n,s){re(Nd,n._currentValue),n._currentValue=s}function ha(e){e._currentValue=Nd.current,Z(Nd)}function Rd(e,n,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===s)break;e=e.return}}function Cd(e,n,s,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var h=u.dependencies;if(h!==null){var b=u.child;h=h.firstContext;e:for(;h!==null;){var R=h;h=u;for(var O=0;O<n.length;O++)if(R.context===n[O]){h.lanes|=s,R=h.alternate,R!==null&&(R.lanes|=s),Rd(h.return,s,e),l||(b=null);break e}h=R.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(i(341));b.lanes|=s,h=b.alternate,h!==null&&(h.lanes|=s),Rd(b,s,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function Qr(e,n,s,l){e=null;for(var u=n,h=!1;u!==null;){if(!h){if((u.flags&524288)!==0)h=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var R=u.type;sn(u.pendingProps.value,b.value)||(e!==null?e.push(R):e=[R])}}else if(u===xe.current){if(b=u.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(zl):e=[zl])}u=u.return}e!==null&&Cd(n,e,s,l),n.flags|=262144}function zo(e){for(e=e.firstContext;e!==null;){if(!sn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qs(e){Is=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return cg(Is,e)}function Bo(e,n){return Is===null&&Qs(e),cg(e,n)}function cg(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},fa===null){if(e===null)throw Error(i(308));fa=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fa=fa.next=n;return s}var Fw=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},Hw=t.unstable_scheduleCallback,qw=t.unstable_NormalPriority,lt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _d(){return{controller:new Fw,data:new Map,refCount:0}}function ul(e){e.refCount--,e.refCount===0&&Hw(qw,function(){e.controller.abort()})}var dl=null,Ad=0,Vr=0,Yr=null;function Gw(e,n){if(dl===null){var s=dl=[];Ad=0,Vr=Mf(),Yr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Ad++,n.then(ug,ug),n}function ug(){if(--Ad===0&&dl!==null){Yr!==null&&(Yr.status="fulfilled");var e=dl;dl=null,Vr=0,Yr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Iw(e,n){var s=[],l={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var u=0;u<s.length;u++)(0,s[u])(n)},function(u){for(l.status="rejected",l.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),l}var dg=P.S;P.S=function(e,n){$y=Ot(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Gw(e,n),dg!==null&&dg(e,n)};var Vs=L(null);function Td(){var e=Vs.current;return e!==null?e:$e.pooledCache}function Uo(e,n){n===null?re(Vs,Vs.current):re(Vs,n.pool)}function fg(){var e=Td();return e===null?null:{parent:lt._currentValue,pool:e}}var $r=Error(i(460)),kd=Error(i(474)),Po=Error(i(542)),Fo={then:function(){}};function hg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mg(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(oa,oa),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,gg(e),e;default:if(typeof n.status=="string")n.then(oa,oa);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=l}},function(l){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,gg(e),e}throw $s=n,$r}}function Ys(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?($s=s,$r):s}}var $s=null;function pg(){if($s===null)throw Error(i(459));var e=$s;return $s=null,e}function gg(e){if(e===$r||e===Po)throw Error(i(483))}var Xr=null,fl=0;function Ho(e){var n=fl;return fl+=1,Xr===null&&(Xr=[]),mg(Xr,e,n)}function hl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function qo(e,n){throw n.$$typeof===x?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function yg(e){function n(F,U){if(e){var G=F.deletions;G===null?(F.deletions=[U],F.flags|=16):G.push(U)}}function s(F,U){if(!e)return null;for(;U!==null;)n(F,U),U=U.sibling;return null}function l(F){for(var U=new Map;F!==null;)F.key!==null?U.set(F.key,F):U.set(F.index,F),F=F.sibling;return U}function u(F,U){return F=ua(F,U),F.index=0,F.sibling=null,F}function h(F,U,G){return F.index=G,e?(G=F.alternate,G!==null?(G=G.index,G<U?(F.flags|=67108866,U):G):(F.flags|=67108866,U)):(F.flags|=1048576,U)}function b(F){return e&&F.alternate===null&&(F.flags|=67108866),F}function R(F,U,G,K){return U===null||U.tag!==6?(U=bd(G,F.mode,K),U.return=F,U):(U=u(U,G),U.return=F,U)}function O(F,U,G,K){var ge=G.type;return ge===S?$(F,U,G.props.children,K,G.key):U!==null&&(U.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===D&&Ys(ge)===U.type)?(U=u(U,G.props),hl(U,G),U.return=F,U):(U=Do(G.type,G.key,G.props,null,F.mode,K),hl(U,G),U.return=F,U)}function I(F,U,G,K){return U===null||U.tag!==4||U.stateNode.containerInfo!==G.containerInfo||U.stateNode.implementation!==G.implementation?(U=xd(G,F.mode,K),U.return=F,U):(U=u(U,G.children||[]),U.return=F,U)}function $(F,U,G,K,ge){return U===null||U.tag!==7?(U=qs(G,F.mode,K,ge),U.return=F,U):(U=u(U,G),U.return=F,U)}function W(F,U,G){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=bd(""+U,F.mode,G),U.return=F,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return G=Do(U.type,U.key,U.props,null,F.mode,G),hl(G,U),G.return=F,G;case w:return U=xd(U,F.mode,G),U.return=F,U;case D:return U=Ys(U),W(F,U,G)}if(ce(U)||ne(U))return U=qs(U,F.mode,G,null),U.return=F,U;if(typeof U.then=="function")return W(F,Ho(U),G);if(U.$$typeof===T)return W(F,Bo(F,U),G);qo(F,U)}return null}function Q(F,U,G,K){var ge=U!==null?U.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return ge!==null?null:R(F,U,""+G,K);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case j:return G.key===ge?O(F,U,G,K):null;case w:return G.key===ge?I(F,U,G,K):null;case D:return G=Ys(G),Q(F,U,G,K)}if(ce(G)||ne(G))return ge!==null?null:$(F,U,G,K,null);if(typeof G.then=="function")return Q(F,U,Ho(G),K);if(G.$$typeof===T)return Q(F,U,Bo(F,G),K);qo(F,G)}return null}function Y(F,U,G,K,ge){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return F=F.get(G)||null,R(U,F,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return F=F.get(K.key===null?G:K.key)||null,O(U,F,K,ge);case w:return F=F.get(K.key===null?G:K.key)||null,I(U,F,K,ge);case D:return K=Ys(K),Y(F,U,G,K,ge)}if(ce(K)||ne(K))return F=F.get(G)||null,$(U,F,K,ge,null);if(typeof K.then=="function")return Y(F,U,G,Ho(K),ge);if(K.$$typeof===T)return Y(F,U,G,Bo(U,K),ge);qo(U,K)}return null}function fe(F,U,G,K){for(var ge=null,Ue=null,me=U,je=U=0,ke=null;me!==null&&je<G.length;je++){me.index>je?(ke=me,me=null):ke=me.sibling;var Pe=Q(F,me,G[je],K);if(Pe===null){me===null&&(me=ke);break}e&&me&&Pe.alternate===null&&n(F,me),U=h(Pe,U,je),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe,me=ke}if(je===G.length)return s(F,me),Me&&da(F,je),ge;if(me===null){for(;je<G.length;je++)me=W(F,G[je],K),me!==null&&(U=h(me,U,je),Ue===null?ge=me:Ue.sibling=me,Ue=me);return Me&&da(F,je),ge}for(me=l(me);je<G.length;je++)ke=Y(me,F,je,G[je],K),ke!==null&&(e&&ke.alternate!==null&&me.delete(ke.key===null?je:ke.key),U=h(ke,U,je),Ue===null?ge=ke:Ue.sibling=ke,Ue=ke);return e&&me.forEach(function(ds){return n(F,ds)}),Me&&da(F,je),ge}function be(F,U,G,K){if(G==null)throw Error(i(151));for(var ge=null,Ue=null,me=U,je=U=0,ke=null,Pe=G.next();me!==null&&!Pe.done;je++,Pe=G.next()){me.index>je?(ke=me,me=null):ke=me.sibling;var ds=Q(F,me,Pe.value,K);if(ds===null){me===null&&(me=ke);break}e&&me&&ds.alternate===null&&n(F,me),U=h(ds,U,je),Ue===null?ge=ds:Ue.sibling=ds,Ue=ds,me=ke}if(Pe.done)return s(F,me),Me&&da(F,je),ge;if(me===null){for(;!Pe.done;je++,Pe=G.next())Pe=W(F,Pe.value,K),Pe!==null&&(U=h(Pe,U,je),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe);return Me&&da(F,je),ge}for(me=l(me);!Pe.done;je++,Pe=G.next())Pe=Y(me,F,je,Pe.value,K),Pe!==null&&(e&&Pe.alternate!==null&&me.delete(Pe.key===null?je:Pe.key),U=h(Pe,U,je),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe);return e&&me.forEach(function(tE){return n(F,tE)}),Me&&da(F,je),ge}function Ye(F,U,G,K){if(typeof G=="object"&&G!==null&&G.type===S&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case j:e:{for(var ge=G.key;U!==null;){if(U.key===ge){if(ge=G.type,ge===S){if(U.tag===7){s(F,U.sibling),K=u(U,G.props.children),K.return=F,F=K;break e}}else if(U.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===D&&Ys(ge)===U.type){s(F,U.sibling),K=u(U,G.props),hl(K,G),K.return=F,F=K;break e}s(F,U);break}else n(F,U);U=U.sibling}G.type===S?(K=qs(G.props.children,F.mode,K,G.key),K.return=F,F=K):(K=Do(G.type,G.key,G.props,null,F.mode,K),hl(K,G),K.return=F,F=K)}return b(F);case w:e:{for(ge=G.key;U!==null;){if(U.key===ge)if(U.tag===4&&U.stateNode.containerInfo===G.containerInfo&&U.stateNode.implementation===G.implementation){s(F,U.sibling),K=u(U,G.children||[]),K.return=F,F=K;break e}else{s(F,U);break}else n(F,U);U=U.sibling}K=xd(G,F.mode,K),K.return=F,F=K}return b(F);case D:return G=Ys(G),Ye(F,U,G,K)}if(ce(G))return fe(F,U,G,K);if(ne(G)){if(ge=ne(G),typeof ge!="function")throw Error(i(150));return G=ge.call(G),be(F,U,G,K)}if(typeof G.then=="function")return Ye(F,U,Ho(G),K);if(G.$$typeof===T)return Ye(F,U,Bo(F,G),K);qo(F,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,U!==null&&U.tag===6?(s(F,U.sibling),K=u(U,G),K.return=F,F=K):(s(F,U),K=bd(G,F.mode,K),K.return=F,F=K),b(F)):s(F,U)}return function(F,U,G,K){try{fl=0;var ge=Ye(F,U,G,K);return Xr=null,ge}catch(me){if(me===$r||me===Po)throw me;var Ue=rn(29,me,null,F.mode);return Ue.lanes=K,Ue.return=F,Ue}finally{}}}var Xs=yg(!0),vg=yg(!1),$a=!1;function Od(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Md(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,n,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Fe&2)!==0){var u=l.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n,n=Mo(e),tg(e,null,s),n}return Oo(e,l,n,s),Mo(e)}function ml(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,cp(e,s)}}function Dd(e,n){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var u=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var b={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?u=h=b:h=h.next=b,s=s.next}while(s!==null);h===null?u=h=n:h=h.next=n}else u=h=n;s={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var Ld=!1;function pl(){if(Ld){var e=Yr;if(e!==null)throw e}}function gl(e,n,s,l){Ld=!1;var u=e.updateQueue;$a=!1;var h=u.firstBaseUpdate,b=u.lastBaseUpdate,R=u.shared.pending;if(R!==null){u.shared.pending=null;var O=R,I=O.next;O.next=null,b===null?h=I:b.next=I,b=O;var $=e.alternate;$!==null&&($=$.updateQueue,R=$.lastBaseUpdate,R!==b&&(R===null?$.firstBaseUpdate=I:R.next=I,$.lastBaseUpdate=O))}if(h!==null){var W=u.baseState;b=0,$=I=O=null,R=h;do{var Q=R.lane&-536870913,Y=Q!==R.lane;if(Y?(Te&Q)===Q:(l&Q)===Q){Q!==0&&Q===Vr&&(Ld=!0),$!==null&&($=$.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var fe=e,be=R;Q=n;var Ye=s;switch(be.tag){case 1:if(fe=be.payload,typeof fe=="function"){W=fe.call(Ye,W,Q);break e}W=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=be.payload,Q=typeof fe=="function"?fe.call(Ye,W,Q):fe,Q==null)break e;W=y({},W,Q);break e;case 2:$a=!0}}Q=R.callback,Q!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=u.callbacks,Y===null?u.callbacks=[Q]:Y.push(Q))}else Y={lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},$===null?(I=$=Y,O=W):$=$.next=Y,b|=Q;if(R=R.next,R===null){if(R=u.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,u.lastBaseUpdate=Y,u.shared.pending=null}}while(!0);$===null&&(O=W),u.baseState=O,u.firstBaseUpdate=I,u.lastBaseUpdate=$,h===null&&(u.shared.lanes=0),ts|=b,e.lanes=b,e.memoizedState=W}}function bg(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function xg(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)bg(s[e],n)}var Zr=L(null),Go=L(0);function Sg(e,n){e=wa,re(Go,e),re(Zr,n),wa=e|n.baseLanes}function zd(){re(Go,wa),re(Zr,Zr.current)}function Bd(){wa=Go.current,Z(Zr),Z(Go)}var ln=L(null),_n=null;function Ka(e){var n=e.alternate;re(rt,rt.current&1),re(ln,e),_n===null&&(n===null||Zr.current!==null||n.memoizedState!==null)&&(_n=e)}function Ud(e){re(rt,rt.current),re(ln,e),_n===null&&(_n=e)}function wg(e){e.tag===22?(re(rt,rt.current),re(ln,e),_n===null&&(_n=e)):Wa()}function Wa(){re(rt,rt.current),re(ln,ln.current)}function on(e){Z(ln),_n===e&&(_n=null),Z(rt)}var rt=L(0);function Io(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Qf(s)||Vf(s)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ma=0,we=null,Qe=null,ot=null,Qo=!1,Kr=!1,Zs=!1,Vo=0,yl=0,Wr=null,Qw=0;function nt(){throw Error(i(321))}function Pd(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!sn(e[s],n[s]))return!1;return!0}function Fd(e,n,s,l,u,h){return ma=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=e===null||e.memoizedState===null?ry:tf,Zs=!1,h=s(l,u),Zs=!1,Kr&&(h=Eg(n,s,l,u)),jg(e),h}function jg(e){P.H=xl;var n=Qe!==null&&Qe.next!==null;if(ma=0,ot=Qe=we=null,Qo=!1,yl=0,Wr=null,n)throw Error(i(300));e===null||ct||(e=e.dependencies,e!==null&&zo(e)&&(ct=!0))}function Eg(e,n,s,l){we=e;var u=0;do{if(Kr&&(Wr=null),yl=0,Kr=!1,25<=u)throw Error(i(301));if(u+=1,ot=Qe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}P.H=iy,h=n(s,l)}while(Kr);return h}function Vw(){var e=P.H,n=e.useState()[0];return n=typeof n.then=="function"?vl(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(we.flags|=1024),n}function Hd(){var e=Vo!==0;return Vo=0,e}function qd(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}function Gd(e){if(Qo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Qo=!1}ma=0,ot=Qe=we=null,Kr=!1,yl=Vo=0,Wr=null}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?we.memoizedState=ot=e:ot=ot.next=e,ot}function it(){if(Qe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=ot===null?we.memoizedState:ot.next;if(n!==null)ot=n,Qe=e;else{if(e===null)throw we.alternate===null?Error(i(467)):Error(i(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},ot===null?we.memoizedState=ot=e:ot=ot.next=e}return ot}function Yo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vl(e){var n=yl;return yl+=1,Wr===null&&(Wr=[]),e=mg(Wr,e,n),n=we,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?ry:tf),e}function $o(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vl(e);if(e.$$typeof===T)return _t(e)}throw Error(i(438,String(e)))}function Id(e){var n=null,s=we.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var l=we.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Yo(),we.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),l=0;l<e;l++)s[l]=H;return n.index++,s}function pa(e,n){return typeof n=="function"?n(e):n}function Xo(e){var n=it();return Qd(n,Qe,e)}function Qd(e,n,s){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=s;var u=e.baseQueue,h=l.pending;if(h!==null){if(u!==null){var b=u.next;u.next=h.next,h.next=b}n.baseQueue=u=h,l.pending=null}if(h=e.baseState,u===null)e.memoizedState=h;else{n=u.next;var R=b=null,O=null,I=n,$=!1;do{var W=I.lane&-536870913;if(W!==I.lane?(Te&W)===W:(ma&W)===W){var Q=I.revertLane;if(Q===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),W===Vr&&($=!0);else if((ma&Q)===Q){I=I.next,Q===Vr&&($=!0);continue}else W={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(R=O=W,b=h):O=O.next=W,we.lanes|=Q,ts|=Q;W=I.action,Zs&&s(h,W),h=I.hasEagerState?I.eagerState:s(h,W)}else Q={lane:W,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(R=O=Q,b=h):O=O.next=Q,we.lanes|=W,ts|=W;I=I.next}while(I!==null&&I!==n);if(O===null?b=h:O.next=R,!sn(h,e.memoizedState)&&(ct=!0,$&&(s=Yr,s!==null)))throw s;e.memoizedState=h,e.baseState=b,e.baseQueue=O,l.lastRenderedState=h}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Vd(e){var n=it(),s=n.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=s.dispatch,u=s.pending,h=n.memoizedState;if(u!==null){s.pending=null;var b=u=u.next;do h=e(h,b.action),b=b.next;while(b!==u);sn(h,n.memoizedState)||(ct=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),s.lastRenderedState=h}return[h,l]}function Ng(e,n,s){var l=we,u=it(),h=Me;if(h){if(s===void 0)throw Error(i(407));s=s()}else s=n();var b=!sn((Qe||u).memoizedState,s);if(b&&(u.memoizedState=s,ct=!0),u=u.queue,Xd(_g.bind(null,l,u,e),[e]),u.getSnapshot!==n||b||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,Jr(9,{destroy:void 0},Cg.bind(null,l,u,s,n),null),$e===null)throw Error(i(349));h||(ma&127)!==0||Rg(l,n,s)}return s}function Rg(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=we.updateQueue,n===null?(n=Yo(),we.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function Cg(e,n,s,l){n.value=s,n.getSnapshot=l,Ag(n)&&Tg(e)}function _g(e,n,s){return s(function(){Ag(n)&&Tg(e)})}function Ag(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!sn(e,s)}catch{return!0}}function Tg(e){var n=Hs(e,2);n!==null&&Xt(n,e,2)}function Yd(e){var n=Pt();if(typeof e=="function"){var s=e;if(e=s(),Zs){Ha(!0);try{s()}finally{Ha(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},n}function kg(e,n,s,l){return e.baseState=s,Qd(e,Qe,typeof l=="function"?l:pa)}function Yw(e,n,s,l,u){if(Wo(e))throw Error(i(485));if(e=n.action,e!==null){var h={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};P.T!==null?s(!0):h.isTransition=!1,l(h),s=n.pending,s===null?(h.next=n.pending=h,Og(n,h)):(h.next=s.next,n.pending=s.next=h)}}function Og(e,n){var s=n.action,l=n.payload,u=e.state;if(n.isTransition){var h=P.T,b={};P.T=b;try{var R=s(u,l),O=P.S;O!==null&&O(b,R),Mg(e,n,R)}catch(I){$d(e,n,I)}finally{h!==null&&b.types!==null&&(h.types=b.types),P.T=h}}else try{h=s(u,l),Mg(e,n,h)}catch(I){$d(e,n,I)}}function Mg(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Dg(e,n,l)},function(l){return $d(e,n,l)}):Dg(e,n,s)}function Dg(e,n,s){n.status="fulfilled",n.value=s,Lg(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,Og(e,s)))}function $d(e,n,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=s,Lg(n),n=n.next;while(n!==l)}e.action=null}function Lg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function zg(e,n){return n}function Bg(e,n){if(Me){var s=$e.formState;if(s!==null){e:{var l=we;if(Me){if(Xe){t:{for(var u=Xe,h=Cn;u.nodeType!==8;){if(!h){u=null;break t}if(u=An(u.nextSibling),u===null){u=null;break t}}h=u.data,u=h==="F!"||h==="F"?u:null}if(u){Xe=An(u.nextSibling),l=u.data==="F!";break e}}Va(l)}l=!1}l&&(n=s[0])}}return s=Pt(),s.memoizedState=s.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zg,lastRenderedState:n},s.queue=l,s=ny.bind(null,we,l),l.dispatch=s,l=Yd(!1),h=ef.bind(null,we,!1,l.queue),l=Pt(),u={state:n,dispatch:null,action:e,pending:null},l.queue=u,s=Yw.bind(null,we,u,h,s),u.dispatch=s,l.memoizedState=e,[n,s,!1]}function Ug(e){var n=it();return Pg(n,Qe,e)}function Pg(e,n,s){if(n=Qd(e,n,zg)[0],e=Xo(pa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=vl(n)}catch(b){throw b===$r?Po:b}else l=n;n=it();var u=n.queue,h=u.dispatch;return s!==n.memoizedState&&(we.flags|=2048,Jr(9,{destroy:void 0},$w.bind(null,u,s),null)),[l,h,e]}function $w(e,n){e.action=n}function Fg(e){var n=it(),s=Qe;if(s!==null)return Pg(n,s,e);it(),n=n.memoizedState,s=it();var l=s.queue.dispatch;return s.memoizedState=e,[n,l,!1]}function Jr(e,n,s,l){return e={tag:e,create:s,deps:l,inst:n,next:null},n=we.updateQueue,n===null&&(n=Yo(),we.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,n.lastEffect=e),e}function Hg(){return it().memoizedState}function Zo(e,n,s,l){var u=Pt();we.flags|=e,u.memoizedState=Jr(1|n,{destroy:void 0},s,l===void 0?null:l)}function Ko(e,n,s,l){var u=it();l=l===void 0?null:l;var h=u.memoizedState.inst;Qe!==null&&l!==null&&Pd(l,Qe.memoizedState.deps)?u.memoizedState=Jr(n,h,s,l):(we.flags|=e,u.memoizedState=Jr(1|n,h,s,l))}function qg(e,n){Zo(8390656,8,e,n)}function Xd(e,n){Ko(2048,8,e,n)}function Xw(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=Yo(),we.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function Gg(e){var n=it().memoizedState;return Xw({ref:n,nextImpl:e}),function(){if((Fe&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Ig(e,n){return Ko(4,2,e,n)}function Qg(e,n){return Ko(4,4,e,n)}function Vg(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Yg(e,n,s){s=s!=null?s.concat([e]):null,Ko(4,4,Vg.bind(null,n,e),s)}function Zd(){}function $g(e,n){var s=it();n=n===void 0?null:n;var l=s.memoizedState;return n!==null&&Pd(n,l[1])?l[0]:(s.memoizedState=[e,n],e)}function Xg(e,n){var s=it();n=n===void 0?null:n;var l=s.memoizedState;if(n!==null&&Pd(n,l[1]))return l[0];if(l=e(),Zs){Ha(!0);try{e()}finally{Ha(!1)}}return s.memoizedState=[l,n],l}function Kd(e,n,s){return s===void 0||(ma&1073741824)!==0&&(Te&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=Zy(),we.lanes|=e,ts|=e,s)}function Zg(e,n,s,l){return sn(s,n)?s:Zr.current!==null?(e=Kd(e,s,l),sn(e,n)||(ct=!0),e):(ma&42)===0||(ma&1073741824)!==0&&(Te&261930)===0?(ct=!0,e.memoizedState=s):(e=Zy(),we.lanes|=e,ts|=e,n)}function Kg(e,n,s,l,u){var h=V.p;V.p=h!==0&&8>h?h:8;var b=P.T,R={};P.T=R,ef(e,!1,n,s);try{var O=u(),I=P.S;if(I!==null&&I(R,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var $=Iw(O,l);bl(e,n,$,dn(e))}else bl(e,n,l,dn(e))}catch(W){bl(e,n,{then:function(){},status:"rejected",reason:W},dn())}finally{V.p=h,b!==null&&R.types!==null&&(b.types=R.types),P.T=b}}function Zw(){}function Wd(e,n,s,l){if(e.tag!==5)throw Error(i(476));var u=Wg(e).queue;Kg(e,u,n,ee,s===null?Zw:function(){return Jg(e),s(l)})}function Wg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ee},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Jg(e){var n=Wg(e);n.next===null&&(n=e.alternate.memoizedState),bl(e,n.next.queue,{},dn())}function Jd(){return _t(zl)}function ey(){return it().memoizedState}function ty(){return it().memoizedState}function Kw(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=dn();e=Xa(s);var l=Za(n,e,s);l!==null&&(Xt(l,n,s),ml(l,n,s)),n={cache:_d()},e.payload=n;return}n=n.return}}function Ww(e,n,s){var l=dn();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Wo(e)?ay(n,s):(s=yd(e,n,s,l),s!==null&&(Xt(s,e,l),sy(s,n,l)))}function ny(e,n,s){var l=dn();bl(e,n,s,l)}function bl(e,n,s,l){var u={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Wo(e))ay(n,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,R=h(b,s);if(u.hasEagerState=!0,u.eagerState=R,sn(R,b))return Oo(e,n,u,0),$e===null&&ko(),!1}catch{}finally{}if(s=yd(e,n,u,l),s!==null)return Xt(s,e,l),sy(s,n,l),!0}return!1}function ef(e,n,s,l){if(l={lane:2,revertLane:Mf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Wo(e)){if(n)throw Error(i(479))}else n=yd(e,s,l,2),n!==null&&Xt(n,e,2)}function Wo(e){var n=e.alternate;return e===we||n!==null&&n===we}function ay(e,n){Kr=Qo=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function sy(e,n,s){if((s&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,cp(e,s)}}var xl={readContext:_t,use:$o,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};xl.useEffectEvent=nt;var ry={readContext:_t,use:$o,useCallback:function(e,n){return Pt().memoizedState=[e,n===void 0?null:n],e},useContext:_t,useEffect:qg,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,Zo(4194308,4,Vg.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Zo(4194308,4,e,n)},useInsertionEffect:function(e,n){Zo(4,2,e,n)},useMemo:function(e,n){var s=Pt();n=n===void 0?null:n;var l=e();if(Zs){Ha(!0);try{e()}finally{Ha(!1)}}return s.memoizedState=[l,n],l},useReducer:function(e,n,s){var l=Pt();if(s!==void 0){var u=s(n);if(Zs){Ha(!0);try{s(n)}finally{Ha(!1)}}}else u=n;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Ww.bind(null,we,e),[l.memoizedState,e]},useRef:function(e){var n=Pt();return e={current:e},n.memoizedState=e},useState:function(e){e=Yd(e);var n=e.queue,s=ny.bind(null,we,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:Zd,useDeferredValue:function(e,n){var s=Pt();return Kd(s,e,n)},useTransition:function(){var e=Yd(!1);return e=Kg.bind(null,we,e.queue,!0,!1),Pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var l=we,u=Pt();if(Me){if(s===void 0)throw Error(i(407));s=s()}else{if(s=n(),$e===null)throw Error(i(349));(Te&127)!==0||Rg(l,n,s)}u.memoizedState=s;var h={value:s,getSnapshot:n};return u.queue=h,qg(_g.bind(null,l,h,e),[e]),l.flags|=2048,Jr(9,{destroy:void 0},Cg.bind(null,l,h,s,n),null),s},useId:function(){var e=Pt(),n=$e.identifierPrefix;if(Me){var s=In,l=Gn;s=(l&~(1<<32-an(l)-1)).toString(32)+s,n="_"+n+"R_"+s,s=Vo++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=Qw++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Jd,useFormState:Bg,useActionState:Bg,useOptimistic:function(e){var n=Pt();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=ef.bind(null,we,!0,s),s.dispatch=n,[e,n]},useMemoCache:Id,useCacheRefresh:function(){return Pt().memoizedState=Kw.bind(null,we)},useEffectEvent:function(e){var n=Pt(),s={impl:e};return n.memoizedState=s,function(){if((Fe&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},tf={readContext:_t,use:$o,useCallback:$g,useContext:_t,useEffect:Xd,useImperativeHandle:Yg,useInsertionEffect:Ig,useLayoutEffect:Qg,useMemo:Xg,useReducer:Xo,useRef:Hg,useState:function(){return Xo(pa)},useDebugValue:Zd,useDeferredValue:function(e,n){var s=it();return Zg(s,Qe.memoizedState,e,n)},useTransition:function(){var e=Xo(pa)[0],n=it().memoizedState;return[typeof e=="boolean"?e:vl(e),n]},useSyncExternalStore:Ng,useId:ey,useHostTransitionStatus:Jd,useFormState:Ug,useActionState:Ug,useOptimistic:function(e,n){var s=it();return kg(s,Qe,e,n)},useMemoCache:Id,useCacheRefresh:ty};tf.useEffectEvent=Gg;var iy={readContext:_t,use:$o,useCallback:$g,useContext:_t,useEffect:Xd,useImperativeHandle:Yg,useInsertionEffect:Ig,useLayoutEffect:Qg,useMemo:Xg,useReducer:Vd,useRef:Hg,useState:function(){return Vd(pa)},useDebugValue:Zd,useDeferredValue:function(e,n){var s=it();return Qe===null?Kd(s,e,n):Zg(s,Qe.memoizedState,e,n)},useTransition:function(){var e=Vd(pa)[0],n=it().memoizedState;return[typeof e=="boolean"?e:vl(e),n]},useSyncExternalStore:Ng,useId:ey,useHostTransitionStatus:Jd,useFormState:Fg,useActionState:Fg,useOptimistic:function(e,n){var s=it();return Qe!==null?kg(s,Qe,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Id,useCacheRefresh:ty};iy.useEffectEvent=Gg;function nf(e,n,s,l){n=e.memoizedState,s=s(l,n),s=s==null?n:y({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var af={enqueueSetState:function(e,n,s){e=e._reactInternals;var l=dn(),u=Xa(l);u.payload=n,s!=null&&(u.callback=s),n=Za(e,u,l),n!==null&&(Xt(n,e,l),ml(n,e,l))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var l=dn(),u=Xa(l);u.tag=1,u.payload=n,s!=null&&(u.callback=s),n=Za(e,u,l),n!==null&&(Xt(n,e,l),ml(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=dn(),l=Xa(s);l.tag=2,n!=null&&(l.callback=n),n=Za(e,l,s),n!==null&&(Xt(n,e,s),ml(n,e,s))}};function ly(e,n,s,l,u,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,b):n.prototype&&n.prototype.isPureReactComponent?!il(s,l)||!il(u,h):!0}function oy(e,n,s,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,l),n.state!==e&&af.enqueueReplaceState(n,n.state,null)}function Ks(e,n){var s=n;if("ref"in n){s={};for(var l in n)l!=="ref"&&(s[l]=n[l])}if(e=e.defaultProps){s===n&&(s=y({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}function cy(e){To(e)}function uy(e){console.error(e)}function dy(e){To(e)}function Jo(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function fy(e,n,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function sf(e,n,s){return s=Xa(s),s.tag=3,s.payload={element:null},s.callback=function(){Jo(e,n)},s}function hy(e){return e=Xa(e),e.tag=3,e}function my(e,n,s,l){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var h=l.value;e.payload=function(){return u(h)},e.callback=function(){fy(n,s,l)}}var b=s.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){fy(n,s,l),typeof u!="function"&&(ns===null?ns=new Set([this]):ns.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function Jw(e,n,s,l,u){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=s.alternate,n!==null&&Qr(n,s,u,!0),s=ln.current,s!==null){switch(s.tag){case 31:case 13:return _n===null?dc():s.alternate===null&&at===0&&(at=3),s.flags&=-257,s.flags|=65536,s.lanes=u,l===Fo?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([l]):n.add(l),Tf(e,l,u)),!1;case 22:return s.flags|=65536,l===Fo?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([l]):s.add(l)),Tf(e,l,u)),!1}throw Error(i(435,s.tag))}return Tf(e,l,u),dc(),!1}if(Me)return n=ln.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,l!==jd&&(e=Error(i(422),{cause:l}),cl(En(e,s)))):(l!==jd&&(n=Error(i(423),{cause:l}),cl(En(n,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=En(l,s),u=sf(e.stateNode,l,u),Dd(e,u),at!==4&&(at=2)),!1;var h=Error(i(520),{cause:l});if(h=En(h,s),_l===null?_l=[h]:_l.push(h),at!==4&&(at=2),n===null)return!0;l=En(l,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=sf(s.stateNode,l,e),Dd(s,e),!1;case 1:if(n=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ns===null||!ns.has(h))))return s.flags|=65536,u&=-u,s.lanes|=u,u=hy(u),my(u,e,s,l),Dd(s,u),!1}s=s.return}while(s!==null);return!1}var rf=Error(i(461)),ct=!1;function At(e,n,s,l){n.child=e===null?vg(n,null,s,l):Xs(n,e.child,s,l)}function py(e,n,s,l,u){s=s.render;var h=n.ref;if("ref"in l){var b={};for(var R in l)R!=="ref"&&(b[R]=l[R])}else b=l;return Qs(n),l=Fd(e,n,s,b,h,u),R=Hd(),e!==null&&!ct?(qd(e,n,u),ga(e,n,u)):(Me&&R&&Sd(n),n.flags|=1,At(e,n,l,u),n.child)}function gy(e,n,s,l,u){if(e===null){var h=s.type;return typeof h=="function"&&!vd(h)&&h.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=h,yy(e,n,h,l,u)):(e=Do(s.type,null,l,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!mf(e,u)){var b=h.memoizedProps;if(s=s.compare,s=s!==null?s:il,s(b,l)&&e.ref===n.ref)return ga(e,n,u)}return n.flags|=1,e=ua(h,l),e.ref=n.ref,e.return=n,n.child=e}function yy(e,n,s,l,u){if(e!==null){var h=e.memoizedProps;if(il(h,l)&&e.ref===n.ref)if(ct=!1,n.pendingProps=l=h,mf(e,u))(e.flags&131072)!==0&&(ct=!0);else return n.lanes=e.lanes,ga(e,n,u)}return lf(e,n,s,l,u)}function vy(e,n,s,l){var u=l.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|s:s,e!==null){for(l=n.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~h}else l=0,n.child=null;return by(e,n,h,s,l)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uo(n,h!==null?h.cachePool:null),h!==null?Sg(n,h):zd(),wg(n);else return l=n.lanes=536870912,by(e,n,h!==null?h.baseLanes|s:s,s,l)}else h!==null?(Uo(n,h.cachePool),Sg(n,h),Wa(),n.memoizedState=null):(e!==null&&Uo(n,null),zd(),Wa());return At(e,n,u,s),n.child}function Sl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function by(e,n,s,l,u){var h=Td();return h=h===null?null:{parent:lt._currentValue,pool:h},n.memoizedState={baseLanes:s,cachePool:h},e!==null&&Uo(n,null),zd(),wg(n),e!==null&&Qr(e,n,l,!0),n.childLanes=u,null}function ec(e,n){return n=nc({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function xy(e,n,s){return Xs(n,e.child,null,s),e=ec(n,n.pendingProps),e.flags|=2,on(n),n.memoizedState=null,e}function ej(e,n,s){var l=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Me){if(l.mode==="hidden")return e=ec(n,l),n.lanes=536870912,Sl(null,e);if(Ud(n),(e=Xe)?(e=Ov(e,Cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ia!==null?{id:Gn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},s=ag(e),s.return=n,n.child=s,Ct=n,Xe=null)):e=null,e===null)throw Va(n);return n.lanes=536870912,null}return ec(n,l)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(Ud(n),u)if(n.flags&256)n.flags&=-257,n=xy(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(ct||Qr(e,n,s,!1),u=(s&e.childLanes)!==0,ct||u){if(l=$e,l!==null&&(b=up(l,s),b!==0&&b!==h.retryLane))throw h.retryLane=b,Hs(e,b),Xt(l,e,b),rf;dc(),n=xy(e,n,s)}else e=h.treeContext,Xe=An(b.nextSibling),Ct=n,Me=!0,Qa=null,Cn=!1,e!==null&&ig(n,e),n=ec(n,l),n.flags|=4096;return n}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function tc(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function lf(e,n,s,l,u){return Qs(n),s=Fd(e,n,s,l,void 0,u),l=Hd(),e!==null&&!ct?(qd(e,n,u),ga(e,n,u)):(Me&&l&&Sd(n),n.flags|=1,At(e,n,s,u),n.child)}function Sy(e,n,s,l,u,h){return Qs(n),n.updateQueue=null,s=Eg(n,l,s,u),jg(e),l=Hd(),e!==null&&!ct?(qd(e,n,h),ga(e,n,h)):(Me&&l&&Sd(n),n.flags|=1,At(e,n,s,h),n.child)}function wy(e,n,s,l,u){if(Qs(n),n.stateNode===null){var h=Hr,b=s.contextType;typeof b=="object"&&b!==null&&(h=_t(b)),h=new s(l,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=af,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=l,h.state=n.memoizedState,h.refs={},Od(n),b=s.contextType,h.context=typeof b=="object"&&b!==null?_t(b):Hr,h.state=n.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(nf(n,s,b,l),h.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&af.enqueueReplaceState(h,h.state,null),gl(n,l,h,u),pl(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){h=n.stateNode;var R=n.memoizedProps,O=Ks(s,R);h.props=O;var I=h.context,$=s.contextType;b=Hr,typeof $=="object"&&$!==null&&(b=_t($));var W=s.getDerivedStateFromProps;$=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,$||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(R||I!==b)&&oy(n,h,l,b),$a=!1;var Q=n.memoizedState;h.state=Q,gl(n,l,h,u),pl(),I=n.memoizedState,R||Q!==I||$a?(typeof W=="function"&&(nf(n,s,W,l),I=n.memoizedState),(O=$a||ly(n,s,O,l,Q,I,b))?($||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=I),h.props=l,h.state=I,h.context=b,l=O):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{h=n.stateNode,Md(e,n),b=n.memoizedProps,$=Ks(s,b),h.props=$,W=n.pendingProps,Q=h.context,I=s.contextType,O=Hr,typeof I=="object"&&I!==null&&(O=_t(I)),R=s.getDerivedStateFromProps,(I=typeof R=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==W||Q!==O)&&oy(n,h,l,O),$a=!1,Q=n.memoizedState,h.state=Q,gl(n,l,h,u),pl();var Y=n.memoizedState;b!==W||Q!==Y||$a||e!==null&&e.dependencies!==null&&zo(e.dependencies)?(typeof R=="function"&&(nf(n,s,R,l),Y=n.memoizedState),($=$a||ly(n,s,$,l,Q,Y,O)||e!==null&&e.dependencies!==null&&zo(e.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,Y,O),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,Y,O)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=Y),h.props=l,h.state=Y,h.context=O,l=$):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),l=!1)}return h=l,tc(e,n),l=(n.flags&128)!==0,h||l?(h=n.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&l?(n.child=Xs(n,e.child,null,u),n.child=Xs(n,null,s,u)):At(e,n,s,u),n.memoizedState=h.state,e=n.child):e=ga(e,n,u),e}function jy(e,n,s,l){return Gs(),n.flags|=256,At(e,n,s,l),n.child}var of={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cf(e){return{baseLanes:e,cachePool:fg()}}function uf(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=un),e}function Ey(e,n,s){var l=n.pendingProps,u=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Me){if(u?Ka(n):Wa(),(e=Xe)?(e=Ov(e,Cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ia!==null?{id:Gn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},s=ag(e),s.return=n,n.child=s,Ct=n,Xe=null)):e=null,e===null)throw Va(n);return Vf(e)?n.lanes=32:n.lanes=536870912,null}var R=l.children;return l=l.fallback,u?(Wa(),u=n.mode,R=nc({mode:"hidden",children:R},u),l=qs(l,u,s,null),R.return=n,l.return=n,R.sibling=l,n.child=R,l=n.child,l.memoizedState=cf(s),l.childLanes=uf(e,b,s),n.memoizedState=of,Sl(null,l)):(Ka(n),df(n,R))}var O=e.memoizedState;if(O!==null&&(R=O.dehydrated,R!==null)){if(h)n.flags&256?(Ka(n),n.flags&=-257,n=ff(e,n,s)):n.memoizedState!==null?(Wa(),n.child=e.child,n.flags|=128,n=null):(Wa(),R=l.fallback,u=n.mode,l=nc({mode:"visible",children:l.children},u),R=qs(R,u,s,null),R.flags|=2,l.return=n,R.return=n,l.sibling=R,n.child=l,Xs(n,e.child,null,s),l=n.child,l.memoizedState=cf(s),l.childLanes=uf(e,b,s),n.memoizedState=of,n=Sl(null,l));else if(Ka(n),Vf(R)){if(b=R.nextSibling&&R.nextSibling.dataset,b)var I=b.dgst;b=I,l=Error(i(419)),l.stack="",l.digest=b,cl({value:l,source:null,stack:null}),n=ff(e,n,s)}else if(ct||Qr(e,n,s,!1),b=(s&e.childLanes)!==0,ct||b){if(b=$e,b!==null&&(l=up(b,s),l!==0&&l!==O.retryLane))throw O.retryLane=l,Hs(e,l),Xt(b,e,l),rf;Qf(R)||dc(),n=ff(e,n,s)}else Qf(R)?(n.flags|=192,n.child=e.child,n=null):(e=O.treeContext,Xe=An(R.nextSibling),Ct=n,Me=!0,Qa=null,Cn=!1,e!==null&&ig(n,e),n=df(n,l.children),n.flags|=4096);return n}return u?(Wa(),R=l.fallback,u=n.mode,O=e.child,I=O.sibling,l=ua(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,I!==null?R=ua(I,R):(R=qs(R,u,s,null),R.flags|=2),R.return=n,l.return=n,l.sibling=R,n.child=l,Sl(null,l),l=n.child,R=e.child.memoizedState,R===null?R=cf(s):(u=R.cachePool,u!==null?(O=lt._currentValue,u=u.parent!==O?{parent:O,pool:O}:u):u=fg(),R={baseLanes:R.baseLanes|s,cachePool:u}),l.memoizedState=R,l.childLanes=uf(e,b,s),n.memoizedState=of,Sl(e.child,l)):(Ka(n),s=e.child,e=s.sibling,s=ua(s,{mode:"visible",children:l.children}),s.return=n,s.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=s,n.memoizedState=null,s)}function df(e,n){return n=nc({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function nc(e,n){return e=rn(22,e,null,n),e.lanes=0,e}function ff(e,n,s){return Xs(n,e.child,null,s),e=df(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ny(e,n,s){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Rd(e.return,n,s)}function hf(e,n,s,l,u,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:u,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=s,b.tailMode=u,b.treeForkCount=h)}function Ry(e,n,s){var l=n.pendingProps,u=l.revealOrder,h=l.tail;l=l.children;var b=rt.current,R=(b&2)!==0;if(R?(b=b&1|2,n.flags|=128):b&=1,re(rt,b),At(e,n,l,s),l=Me?ol:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ny(e,s,n);else if(e.tag===19)Ny(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(s=n.child,u=null;s!==null;)e=s.alternate,e!==null&&Io(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=n.child,n.child=null):(u=s.sibling,s.sibling=null),hf(n,!1,u,s,h,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Io(e)===null){n.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}hf(n,!0,s,null,h,l);break;case"together":hf(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function ga(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),ts|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(Qr(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,s=ua(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=ua(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function mf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&zo(e)))}function tj(e,n,s){switch(n.tag){case 3:ze(n,n.stateNode.containerInfo),Ya(n,lt,e.memoizedState.cache),Gs();break;case 27:case 5:Bt(n);break;case 4:ze(n,n.stateNode.containerInfo);break;case 10:Ya(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ud(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Ka(n),n.flags|=128,null):(s&n.child.childLanes)!==0?Ey(e,n,s):(Ka(n),e=ga(e,n,s),e!==null?e.sibling:null);Ka(n);break;case 19:var u=(e.flags&128)!==0;if(l=(s&n.childLanes)!==0,l||(Qr(e,n,s,!1),l=(s&n.childLanes)!==0),u){if(l)return Ry(e,n,s);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),re(rt,rt.current),l)break;return null;case 22:return n.lanes=0,vy(e,n,s,n.pendingProps);case 24:Ya(n,lt,e.memoizedState.cache)}return ga(e,n,s)}function Cy(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)ct=!0;else{if(!mf(e,s)&&(n.flags&128)===0)return ct=!1,tj(e,n,s);ct=(e.flags&131072)!==0}else ct=!1,Me&&(n.flags&1048576)!==0&&rg(n,ol,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=Ys(n.elementType),n.type=e,typeof e=="function")vd(e)?(l=Ks(e,l),n.tag=1,n=wy(null,n,e,l,s)):(n.tag=0,n=lf(null,n,e,l,s));else{if(e!=null){var u=e.$$typeof;if(u===A){n.tag=11,n=py(null,n,e,l,s);break e}else if(u===k){n.tag=14,n=gy(null,n,e,l,s);break e}}throw n=te(e)||e,Error(i(306,n,""))}}return n;case 0:return lf(e,n,n.type,n.pendingProps,s);case 1:return l=n.type,u=Ks(l,n.pendingProps),wy(e,n,l,u,s);case 3:e:{if(ze(n,n.stateNode.containerInfo),e===null)throw Error(i(387));l=n.pendingProps;var h=n.memoizedState;u=h.element,Md(e,n),gl(n,l,null,s);var b=n.memoizedState;if(l=b.cache,Ya(n,lt,l),l!==h.cache&&Cd(n,[lt],s,!0),pl(),l=b.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=jy(e,n,l,s);break e}else if(l!==u){u=En(Error(i(424)),n),cl(u),n=jy(e,n,l,s);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Xe=An(e.firstChild),Ct=n,Me=!0,Qa=null,Cn=!0,s=vg(n,null,l,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Gs(),l===u){n=ga(e,n,s);break e}At(e,n,l,s)}n=n.child}return n;case 26:return tc(e,n),e===null?(s=Uv(n.type,null,n.pendingProps,null))?n.memoizedState=s:Me||(s=n.type,e=n.pendingProps,l=vc(he.current).createElement(s),l[Rt]=n,l[Gt]=e,Tt(l,s,e),St(l),n.stateNode=l):n.memoizedState=Uv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Bt(n),e===null&&Me&&(l=n.stateNode=Lv(n.type,n.pendingProps,he.current),Ct=n,Cn=!0,u=Xe,is(n.type)?(Yf=u,Xe=An(l.firstChild)):Xe=u),At(e,n,n.pendingProps.children,s),tc(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Me&&((u=l=Xe)&&(l=kj(l,n.type,n.pendingProps,Cn),l!==null?(n.stateNode=l,Ct=n,Xe=An(l.firstChild),Cn=!1,u=!0):u=!1),u||Va(n)),Bt(n),u=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,l=h.children,qf(u,h)?l=null:b!==null&&qf(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=Fd(e,n,Vw,null,null,s),zl._currentValue=u),tc(e,n),At(e,n,l,s),n.child;case 6:return e===null&&Me&&((e=s=Xe)&&(s=Oj(s,n.pendingProps,Cn),s!==null?(n.stateNode=s,Ct=n,Xe=null,e=!0):e=!1),e||Va(n)),null;case 13:return Ey(e,n,s);case 4:return ze(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Xs(n,null,l,s):At(e,n,l,s),n.child;case 11:return py(e,n,n.type,n.pendingProps,s);case 7:return At(e,n,n.pendingProps,s),n.child;case 8:return At(e,n,n.pendingProps.children,s),n.child;case 12:return At(e,n,n.pendingProps.children,s),n.child;case 10:return l=n.pendingProps,Ya(n,n.type,l.value),At(e,n,l.children,s),n.child;case 9:return u=n.type._context,l=n.pendingProps.children,Qs(n),u=_t(u),l=l(u),n.flags|=1,At(e,n,l,s),n.child;case 14:return gy(e,n,n.type,n.pendingProps,s);case 15:return yy(e,n,n.type,n.pendingProps,s);case 19:return Ry(e,n,s);case 31:return ej(e,n,s);case 22:return vy(e,n,s,n.pendingProps);case 24:return Qs(n),l=_t(lt),e===null?(u=Td(),u===null&&(u=$e,h=_d(),u.pooledCache=h,h.refCount++,h!==null&&(u.pooledCacheLanes|=s),u=h),n.memoizedState={parent:l,cache:u},Od(n),Ya(n,lt,u)):((e.lanes&s)!==0&&(Md(e,n),gl(n,null,null,s),pl()),u=e.memoizedState,h=n.memoizedState,u.parent!==l?(u={parent:l,cache:l},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Ya(n,lt,l)):(l=h.cache,Ya(n,lt,l),l!==u.cache&&Cd(n,[lt],s,!0))),At(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function ya(e){e.flags|=4}function pf(e,n,s,l,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(ev())e.flags|=8192;else throw $s=Fo,kd}else e.flags&=-16777217}function _y(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gv(n))if(ev())e.flags|=8192;else throw $s=Fo,kd}function ac(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?lp():536870912,e.lanes|=n,ai|=n)}function wl(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ze(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(n)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=s,n}function nj(e,n,s){var l=n.pendingProps;switch(wd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(n),null;case 1:return Ze(n),null;case 3:return s=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),ha(lt),ve(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ir(n)?ya(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ed())),Ze(n),null;case 26:var u=n.type,h=n.memoizedState;return e===null?(ya(n),h!==null?(Ze(n),_y(n,h)):(Ze(n),pf(n,u,null,l,s))):h?h!==e.memoizedState?(ya(n),Ze(n),_y(n,h)):(Ze(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&ya(n),Ze(n),pf(n,u,e,l,s)),null;case 27:if(Et(n),s=he.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ya(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Ze(n),null}e=ie.current,Ir(n)?lg(n):(e=Lv(u,l,s),n.stateNode=e,ya(n))}return Ze(n),null;case 5:if(Et(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ya(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Ze(n),null}if(h=ie.current,Ir(n))lg(n);else{var b=vc(he.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?b.createElement(u,{is:l.is}):b.createElement(u)}}h[Rt]=n,h[Gt]=l;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(Tt(h,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ya(n)}}return Ze(n),pf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&ya(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=he.current,Ir(n)){if(e=n.stateNode,s=n.memoizedProps,l=null,u=Ct,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[Rt]=n,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Ev(e.nodeValue,s)),e||Va(n,!0)}else e=vc(e).createTextNode(l),e[Rt]=n,n.stateNode=e}return Ze(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(l=Ir(n),s!==null){if(e===null){if(!l)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Rt]=n}else Gs(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ze(n),e=!1}else s=Ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(on(n),n):(on(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Ze(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ir(n),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[Rt]=n}else Gs(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ze(n),u=!1}else u=Ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(on(n),n):(on(n),null)}return on(n),(n.flags&128)!==0?(n.lanes=s,n):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=n.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==u&&(l.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),ac(n,n.updateQueue),Ze(n),null);case 4:return ve(),e===null&&Bf(n.stateNode.containerInfo),Ze(n),null;case 10:return ha(n.type),Ze(n),null;case 19:if(Z(rt),l=n.memoizedState,l===null)return Ze(n),null;if(u=(n.flags&128)!==0,h=l.rendering,h===null)if(u)wl(l,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=Io(e),h!==null){for(n.flags|=128,wl(l,!1),e=h.updateQueue,n.updateQueue=e,ac(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)ng(s,e),s=s.sibling;return re(rt,rt.current&1|2),Me&&da(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&Ot()>oc&&(n.flags|=128,u=!0,wl(l,!1),n.lanes=4194304)}else{if(!u)if(e=Io(h),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,ac(n,e),wl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!Me)return Ze(n),null}else 2*Ot()-l.renderingStartTime>oc&&s!==536870912&&(n.flags|=128,u=!0,wl(l,!1),n.lanes=4194304);l.isBackwards?(h.sibling=n.child,n.child=h):(e=l.last,e!==null?e.sibling=h:n.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ot(),e.sibling=null,s=rt.current,re(rt,u?s&1|2:s&1),Me&&da(n,l.treeForkCount),e):(Ze(n),null);case 22:case 23:return on(n),Bd(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(s&536870912)!==0&&(n.flags&128)===0&&(Ze(n),n.subtreeFlags&6&&(n.flags|=8192)):Ze(n),s=n.updateQueue,s!==null&&ac(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==s&&(n.flags|=2048),e!==null&&Z(Vs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),ha(lt),Ze(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function aj(e,n){switch(wd(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ha(lt),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Et(n),null;case 31:if(n.memoizedState!==null){if(on(n),n.alternate===null)throw Error(i(340));Gs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(on(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Gs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Z(rt),null;case 4:return ve(),null;case 10:return ha(n.type),null;case 22:case 23:return on(n),Bd(),e!==null&&Z(Vs),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ha(lt),null;case 25:return null;default:return null}}function Ay(e,n){switch(wd(n),n.tag){case 3:ha(lt),ve();break;case 26:case 27:case 5:Et(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&on(n);break;case 13:on(n);break;case 19:Z(rt);break;case 10:ha(n.type);break;case 22:case 23:on(n),Bd(),e!==null&&Z(Vs);break;case 24:ha(lt)}}function jl(e,n){try{var s=n.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var u=l.next;s=u;do{if((s.tag&e)===e){l=void 0;var h=s.create,b=s.inst;l=h(),b.destroy=l}s=s.next}while(s!==u)}}catch(R){Ge(n,n.return,R)}}function Ja(e,n,s){try{var l=n.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next;l=h;do{if((l.tag&e)===e){var b=l.inst,R=b.destroy;if(R!==void 0){b.destroy=void 0,u=n;var O=s,I=R;try{I()}catch($){Ge(u,O,$)}}}l=l.next}while(l!==h)}}catch($){Ge(n,n.return,$)}}function Ty(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{xg(n,s)}catch(l){Ge(e,e.return,l)}}}function ky(e,n,s){s.props=Ks(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Ge(e,n,l)}}function El(e,n){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof s=="function"?e.refCleanup=s(l):s.current=l}}catch(u){Ge(e,n,u)}}function Qn(e,n){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(u){Ge(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Ge(e,n,u)}else s.current=null}function Oy(e){var n=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(u){Ge(e,e.return,u)}}function gf(e,n,s){try{var l=e.stateNode;Nj(l,e.type,s,n),l[Gt]=n}catch(u){Ge(e,e.return,u)}}function My(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&is(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||My(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&&is(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 vf(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,n):(n=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,n.appendChild(e),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=oa));else if(l!==4&&(l===27&&is(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(vf(e,n,s),e=e.sibling;e!==null;)vf(e,n,s),e=e.sibling}function sc(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(l!==4&&(l===27&&is(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(sc(e,n,s),e=e.sibling;e!==null;)sc(e,n,s),e=e.sibling}function Dy(e){var n=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);Tt(n,l,s),n[Rt]=e,n[Gt]=s}catch(h){Ge(e,e.return,h)}}var va=!1,ut=!1,bf=!1,Ly=typeof WeakSet=="function"?WeakSet:Set,wt=null;function sj(e,n){if(e=e.containerInfo,Ff=Nc,e=Yp(e),dd(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var u=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var b=0,R=-1,O=-1,I=0,$=0,W=e,Q=null;t:for(;;){for(var Y;W!==s||u!==0&&W.nodeType!==3||(R=b+u),W!==h||l!==0&&W.nodeType!==3||(O=b+l),W.nodeType===3&&(b+=W.nodeValue.length),(Y=W.firstChild)!==null;)Q=W,W=Y;for(;;){if(W===e)break t;if(Q===s&&++I===u&&(R=b),Q===h&&++$===l&&(O=b),(Y=W.nextSibling)!==null)break;W=Q,Q=W.parentNode}W=Y}s=R===-1||O===-1?null:{start:R,end:O}}else s=null}s=s||{start:0,end:0}}else s=null;for(Hf={focusedElem:e,selectionRange:s},Nc=!1,wt=n;wt!==null;)if(n=wt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,wt=e;else for(;wt!==null;){switch(n=wt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)u=e[s],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,s=n,u=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var fe=Ks(s.type,u);e=l.getSnapshotBeforeUpdate(fe,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ge(s,s.return,be)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)If(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":If(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,wt=e;break}wt=n.return}}function zy(e,n,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:xa(e,s),l&4&&jl(5,s);break;case 1:if(xa(e,s),l&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(b){Ge(s,s.return,b)}else{var u=Ks(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(s,s.return,b)}}l&64&&Ty(s),l&512&&El(s,s.return);break;case 3:if(xa(e,s),l&64&&(e=s.updateQueue,e!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{xg(e,n)}catch(b){Ge(s,s.return,b)}}break;case 27:n===null&&l&4&&Dy(s);case 26:case 5:xa(e,s),n===null&&l&4&&Oy(s),l&512&&El(s,s.return);break;case 12:xa(e,s);break;case 31:xa(e,s),l&4&&Py(e,s);break;case 13:xa(e,s),l&4&&Fy(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=hj.bind(null,s),Mj(e,s))));break;case 22:if(l=s.memoizedState!==null||va,!l){n=n!==null&&n.memoizedState!==null||ut,u=va;var h=ut;va=l,(ut=n)&&!h?Sa(e,s,(s.subtreeFlags&8772)!==0):xa(e,s),va=u,ut=h}break;case 30:break;default:xa(e,s)}}function By(e){var n=e.alternate;n!==null&&(e.alternate=null,By(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&$u(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,Qt=!1;function ba(e,n,s){for(s=s.child;s!==null;)Uy(e,n,s),s=s.sibling}function Uy(e,n,s){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount($i,s)}catch{}switch(s.tag){case 26:ut||Qn(s,n),ba(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ut||Qn(s,n);var l=Je,u=Qt;is(s.type)&&(Je=s.stateNode,Qt=!1),ba(e,n,s),Ml(s.stateNode),Je=l,Qt=u;break;case 5:ut||Qn(s,n);case 6:if(l=Je,u=Qt,Je=null,ba(e,n,s),Je=l,Qt=u,Je!==null)if(Qt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(s.stateNode)}catch(h){Ge(s,n,h)}else try{Je.removeChild(s.stateNode)}catch(h){Ge(s,n,h)}break;case 18:Je!==null&&(Qt?(e=Je,Tv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),di(e)):Tv(Je,s.stateNode));break;case 4:l=Je,u=Qt,Je=s.stateNode.containerInfo,Qt=!0,ba(e,n,s),Je=l,Qt=u;break;case 0:case 11:case 14:case 15:Ja(2,s,n),ut||Ja(4,s,n),ba(e,n,s);break;case 1:ut||(Qn(s,n),l=s.stateNode,typeof l.componentWillUnmount=="function"&&ky(s,n,l)),ba(e,n,s);break;case 21:ba(e,n,s);break;case 22:ut=(l=ut)||s.memoizedState!==null,ba(e,n,s),ut=l;break;default:ba(e,n,s)}}function Py(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{di(e)}catch(s){Ge(n,n.return,s)}}}function Fy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{di(e)}catch(s){Ge(n,n.return,s)}}function rj(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ly),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ly),n;default:throw Error(i(435,e.tag))}}function rc(e,n){var s=rj(e);n.forEach(function(l){if(!s.has(l)){s.add(l);var u=mj.bind(null,e,l);l.then(u,u)}})}function Vt(e,n){var s=n.deletions;if(s!==null)for(var l=0;l<s.length;l++){var u=s[l],h=e,b=n,R=b;e:for(;R!==null;){switch(R.tag){case 27:if(is(R.type)){Je=R.stateNode,Qt=!1;break e}break;case 5:Je=R.stateNode,Qt=!1;break e;case 3:case 4:Je=R.stateNode.containerInfo,Qt=!0;break e}R=R.return}if(Je===null)throw Error(i(160));Uy(h,b,u),Je=null,Qt=!1,h=u.alternate,h!==null&&(h.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Hy(n,e),n=n.sibling}var Ln=null;function Hy(e,n){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(n,e),Yt(e),l&4&&(Ja(3,e,e.return),jl(3,e),Ja(5,e,e.return));break;case 1:Vt(n,e),Yt(e),l&512&&(ut||s===null||Qn(s,s.return)),l&64&&va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var u=Ln;if(Vt(n,e),Yt(e),l&512&&(ut||s===null||Qn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":h=u.getElementsByTagName("title")[0],(!h||h[Ki]||h[Rt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=u.createElement(l),u.head.insertBefore(h,u.querySelector("head > title"))),Tt(h,l,s),h[Rt]=e,St(h),l=h;break e;case"link":var b=Hv("link","href",u).get(l+(s.href||""));if(b){for(var R=0;R<b.length;R++)if(h=b[R],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){b.splice(R,1);break t}}h=u.createElement(l),Tt(h,l,s),u.head.appendChild(h);break;case"meta":if(b=Hv("meta","content",u).get(l+(s.content||""))){for(R=0;R<b.length;R++)if(h=b[R],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){b.splice(R,1);break t}}h=u.createElement(l),Tt(h,l,s),u.head.appendChild(h);break;default:throw Error(i(468,l))}h[Rt]=e,St(h),l=h}e.stateNode=l}else qv(u,e.type,e.stateNode);else e.stateNode=Fv(u,l,e.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?qv(u,e.type,e.stateNode):Fv(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&gf(e,e.memoizedProps,s.memoizedProps)}break;case 27:Vt(n,e),Yt(e),l&512&&(ut||s===null||Qn(s,s.return)),s!==null&&l&4&&gf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Vt(n,e),Yt(e),l&512&&(ut||s===null||Qn(s,s.return)),e.flags&32){u=e.stateNode;try{Dr(u,"")}catch(fe){Ge(e,e.return,fe)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,gf(e,u,s!==null?s.memoizedProps:u)),l&1024&&(bf=!0);break;case 6:if(Vt(n,e),Yt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(fe){Ge(e,e.return,fe)}}break;case 3:if(Sc=null,u=Ln,Ln=bc(n.containerInfo),Vt(n,e),Ln=u,Yt(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{di(n.containerInfo)}catch(fe){Ge(e,e.return,fe)}bf&&(bf=!1,qy(e));break;case 4:l=Ln,Ln=bc(e.stateNode.containerInfo),Vt(n,e),Yt(e),Ln=l;break;case 12:Vt(n,e),Yt(e);break;case 31:Vt(n,e),Yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 13:Vt(n,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(lc=Ot()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 22:u=e.memoizedState!==null;var O=s!==null&&s.memoizedState!==null,I=va,$=ut;if(va=I||u,ut=$||O,Vt(n,e),ut=$,va=I,Yt(e),l&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(s===null||O||va||ut||Ws(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){O=s=n;try{if(h=O.stateNode,u)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=O.stateNode;var W=O.memoizedProps.style,Q=W!=null&&W.hasOwnProperty("display")?W.display:null;R.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){Ge(O,O.return,fe)}}}else if(n.tag===6){if(s===null){O=n;try{O.stateNode.nodeValue=u?"":O.memoizedProps}catch(fe){Ge(O,O.return,fe)}}}else if(n.tag===18){if(s===null){O=n;try{var Y=O.stateNode;u?kv(Y,!0):kv(O.stateNode,!1)}catch(fe){Ge(O,O.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,rc(e,s))));break;case 19:Vt(n,e),Yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 30:break;case 21:break;default:Vt(n,e),Yt(e)}}function Yt(e){var n=e.flags;if(n&2){try{for(var s,l=e.return;l!==null;){if(My(l)){s=l;break}l=l.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var u=s.stateNode,h=yf(e);sc(e,h,u);break;case 5:var b=s.stateNode;s.flags&32&&(Dr(b,""),s.flags&=-33);var R=yf(e);sc(e,R,b);break;case 3:case 4:var O=s.stateNode.containerInfo,I=yf(e);vf(e,I,O);break;default:throw Error(i(161))}}catch($){Ge(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function qy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;qy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function xa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)zy(e,n.alternate,n),n=n.sibling}function Ws(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ja(4,n,n.return),Ws(n);break;case 1:Qn(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&ky(n,n.return,s),Ws(n);break;case 27:Ml(n.stateNode);case 26:case 5:Qn(n,n.return),Ws(n);break;case 22:n.memoizedState===null&&Ws(n);break;case 30:Ws(n);break;default:Ws(n)}e=e.sibling}}function Sa(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,u=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Sa(u,h,s),jl(4,h);break;case 1:if(Sa(u,h,s),l=h,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(I){Ge(l,l.return,I)}if(l=h,u=l.updateQueue,u!==null){var R=l.stateNode;try{var O=u.shared.hiddenCallbacks;if(O!==null)for(u.shared.hiddenCallbacks=null,u=0;u<O.length;u++)bg(O[u],R)}catch(I){Ge(l,l.return,I)}}s&&b&64&&Ty(h),El(h,h.return);break;case 27:Dy(h);case 26:case 5:Sa(u,h,s),s&&l===null&&b&4&&Oy(h),El(h,h.return);break;case 12:Sa(u,h,s);break;case 31:Sa(u,h,s),s&&b&4&&Py(u,h);break;case 13:Sa(u,h,s),s&&b&4&&Fy(u,h);break;case 22:h.memoizedState===null&&Sa(u,h,s),El(h,h.return);break;case 30:break;default:Sa(u,h,s)}n=n.sibling}}function xf(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&ul(s))}function Sf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ul(e))}function zn(e,n,s,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Gy(e,n,s,l),n=n.sibling}function Gy(e,n,s,l){var u=n.flags;switch(n.tag){case 0:case 11:case 15:zn(e,n,s,l),u&2048&&jl(9,n);break;case 1:zn(e,n,s,l);break;case 3:zn(e,n,s,l),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ul(e)));break;case 12:if(u&2048){zn(e,n,s,l),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,R=h.onPostCommit;typeof R=="function"&&R(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Ge(n,n.return,O)}}else zn(e,n,s,l);break;case 31:zn(e,n,s,l);break;case 13:zn(e,n,s,l);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?zn(e,n,s,l):Nl(e,n):h._visibility&2?zn(e,n,s,l):(h._visibility|=2,ei(e,n,s,l,(n.subtreeFlags&10256)!==0||!1)),u&2048&&xf(b,n);break;case 24:zn(e,n,s,l),u&2048&&Sf(n.alternate,n);break;default:zn(e,n,s,l)}}function ei(e,n,s,l,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,R=s,O=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:ei(h,b,R,O,u),jl(8,b);break;case 23:break;case 22:var $=b.stateNode;b.memoizedState!==null?$._visibility&2?ei(h,b,R,O,u):Nl(h,b):($._visibility|=2,ei(h,b,R,O,u)),u&&I&2048&&xf(b.alternate,b);break;case 24:ei(h,b,R,O,u),u&&I&2048&&Sf(b.alternate,b);break;default:ei(h,b,R,O,u)}n=n.sibling}}function Nl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,l=n,u=l.flags;switch(l.tag){case 22:Nl(s,l),u&2048&&xf(l.alternate,l);break;case 24:Nl(s,l),u&2048&&Sf(l.alternate,l);break;default:Nl(s,l)}n=n.sibling}}var Rl=8192;function ti(e,n,s){if(e.subtreeFlags&Rl)for(e=e.child;e!==null;)Iy(e,n,s),e=e.sibling}function Iy(e,n,s){switch(e.tag){case 26:ti(e,n,s),e.flags&Rl&&e.memoizedState!==null&&Qj(s,Ln,e.memoizedState,e.memoizedProps);break;case 5:ti(e,n,s);break;case 3:case 4:var l=Ln;Ln=bc(e.stateNode.containerInfo),ti(e,n,s),Ln=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Rl,Rl=16777216,ti(e,n,s),Rl=l):ti(e,n,s));break;default:ti(e,n,s)}}function Qy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Cl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];wt=l,Yy(l,e)}Qy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vy(e),e=e.sibling}function Vy(e){switch(e.tag){case 0:case 11:case 15:Cl(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:Cl(e);break;case 12:Cl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,ic(e)):Cl(e);break;default:Cl(e)}}function ic(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];wt=l,Yy(l,e)}Qy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ja(8,n,n.return),ic(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,ic(n));break;default:ic(n)}e=e.sibling}}function Yy(e,n){for(;wt!==null;){var s=wt;switch(s.tag){case 0:case 11:case 15:Ja(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ul(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,wt=l;else e:for(s=e;wt!==null;){l=wt;var u=l.sibling,h=l.return;if(By(l),l===s){wt=null;break e}if(u!==null){u.return=h,wt=u;break e}wt=h}}}var ij={getCacheForType:function(e){var n=_t(lt),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return _t(lt).controller.signal}},lj=typeof WeakMap=="function"?WeakMap:Map,Fe=0,$e=null,_e=null,Te=0,qe=0,cn=null,es=!1,ni=!1,wf=!1,wa=0,at=0,ts=0,Js=0,jf=0,un=0,ai=0,_l=null,$t=null,Ef=!1,lc=0,$y=0,oc=1/0,cc=null,ns=null,pt=0,as=null,si=null,ja=0,Nf=0,Rf=null,Xy=null,Al=0,Cf=null;function dn(){return(Fe&2)!==0&&Te!==0?Te&-Te:P.T!==null?Mf():dp()}function Zy(){if(un===0)if((Te&536870912)===0||Me){var e=yo;yo<<=1,(yo&3932160)===0&&(yo=262144),un=e}else un=536870912;return e=ln.current,e!==null&&(e.flags|=32),un}function Xt(e,n,s){(e===$e&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ri(e,0),ss(e,Te,un,!1)),Zi(e,s),((Fe&2)===0||e!==$e)&&(e===$e&&((Fe&2)===0&&(Js|=s),at===4&&ss(e,Te,un,!1)),Vn(e))}function Ky(e,n,s){if((Fe&6)!==0)throw Error(i(327));var l=!s&&(n&127)===0&&(n&e.expiredLanes)===0||Xi(e,n),u=l?uj(e,n):Af(e,n,!0),h=l;do{if(u===0){ni&&!l&&ss(e,n,0,!1);break}else{if(s=e.current.alternate,h&&!oj(s)){u=Af(e,n,!1),h=!1;continue}if(u===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var R=e;u=_l;var O=R.current.memoizedState.isDehydrated;if(O&&(ri(R,b).flags|=256),b=Af(R,b,!1),b!==2){if(wf&&!O){R.errorRecoveryDisabledLanes|=h,Js|=h,u=4;break e}h=$t,$t=u,h!==null&&($t===null?$t=h:$t.push.apply($t,h))}u=b}if(h=!1,u!==2)continue}}if(u===1){ri(e,0),ss(e,n,0,!0);break}e:{switch(l=e,h=u,h){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:ss(l,n,un,!es);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(u=lc+300-Ot(),10<u)){if(ss(l,n,un,!es),bo(l,0,!0)!==0)break e;ja=n,l.timeoutHandle=_v(Wy.bind(null,l,s,$t,cc,Ef,n,un,Js,ai,es,h,"Throttled",-0,0),u);break e}Wy(l,s,$t,cc,Ef,n,un,Js,ai,es,h,null,-0,0)}}break}while(!0);Vn(e)}function Wy(e,n,s,l,u,h,b,R,O,I,$,W,Q,Y){if(e.timeoutHandle=-1,W=n.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},Iy(n,h,W);var fe=(h&62914560)===h?lc-Ot():(h&4194048)===h?$y-Ot():0;if(fe=Vj(W,fe),fe!==null){ja=h,e.cancelPendingCommit=fe(iv.bind(null,e,n,h,s,l,u,b,R,O,$,W,null,Q,Y)),ss(e,h,b,!I);return}}iv(e,n,h,s,l,u,b,R,O)}function oj(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var u=s[l],h=u.getSnapshot;u=u.value;try{if(!sn(h(),u))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ss(e,n,s,l){n&=~jf,n&=~Js,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var u=n;0<u;){var h=31-an(u),b=1<<h;l[h]=-1,u&=~b}s!==0&&op(e,s,n)}function uc(){return(Fe&6)===0?(Tl(0),!1):!0}function _f(){if(_e!==null){if(qe===0)var e=_e.return;else e=_e,fa=Is=null,Gd(e),Xr=null,fl=0,e=_e;for(;e!==null;)Ay(e.alternate,e),e=e.return;_e=null}}function ri(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,_j(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),ja=0,_f(),$e=e,_e=s=ua(e.current,null),Te=n,qe=0,cn=null,es=!1,ni=Xi(e,n),wf=!1,ai=un=jf=Js=ts=at=0,$t=_l=null,Ef=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var u=31-an(l),h=1<<u;n|=e[u],l&=~h}return wa=n,ko(),s}function Jy(e,n){we=null,P.H=xl,n===$r||n===Po?(n=pg(),qe=3):n===kd?(n=pg(),qe=4):qe=n===rf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,cn=n,_e===null&&(at=1,Jo(e,En(n,e.current)))}function ev(){var e=ln.current;return e===null?!0:(Te&4194048)===Te?_n===null:(Te&62914560)===Te||(Te&536870912)!==0?e===_n:!1}function tv(){var e=P.H;return P.H=xl,e===null?xl:e}function nv(){var e=P.A;return P.A=ij,e}function dc(){at=4,es||(Te&4194048)!==Te&&ln.current!==null||(ni=!0),(ts&134217727)===0&&(Js&134217727)===0||$e===null||ss($e,Te,un,!1)}function Af(e,n,s){var l=Fe;Fe|=2;var u=tv(),h=nv();($e!==e||Te!==n)&&(cc=null,ri(e,n)),n=!1;var b=at;e:do try{if(qe!==0&&_e!==null){var R=_e,O=cn;switch(qe){case 8:_f(),b=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(n=!0);var I=qe;if(qe=0,cn=null,ii(e,R,O,I),s&&ni){b=0;break e}break;default:I=qe,qe=0,cn=null,ii(e,R,O,I)}}cj(),b=at;break}catch($){Jy(e,$)}while(!0);return n&&e.shellSuspendCounter++,fa=Is=null,Fe=l,P.H=u,P.A=h,_e===null&&($e=null,Te=0,ko()),b}function cj(){for(;_e!==null;)av(_e)}function uj(e,n){var s=Fe;Fe|=2;var l=tv(),u=nv();$e!==e||Te!==n?(cc=null,oc=Ot()+500,ri(e,n)):ni=Xi(e,n);e:do try{if(qe!==0&&_e!==null){n=_e;var h=cn;t:switch(qe){case 1:qe=0,cn=null,ii(e,n,h,1);break;case 2:case 9:if(hg(h)){qe=0,cn=null,sv(n);break}n=function(){qe!==2&&qe!==9||$e!==e||(qe=7),Vn(e)},h.then(n,n);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:hg(h)?(qe=0,cn=null,sv(n)):(qe=0,cn=null,ii(e,n,h,7));break;case 5:var b=null;switch(_e.tag){case 26:b=_e.memoizedState;case 5:case 27:var R=_e;if(b?Gv(b):R.stateNode.complete){qe=0,cn=null;var O=R.sibling;if(O!==null)_e=O;else{var I=R.return;I!==null?(_e=I,fc(I)):_e=null}break t}}qe=0,cn=null,ii(e,n,h,5);break;case 6:qe=0,cn=null,ii(e,n,h,6);break;case 8:_f(),at=6;break e;default:throw Error(i(462))}}dj();break}catch($){Jy(e,$)}while(!0);return fa=Is=null,P.H=l,P.A=u,Fe=s,_e!==null?0:($e=null,Te=0,ko(),at)}function dj(){for(;_e!==null&&!po();)av(_e)}function av(e){var n=Cy(e.alternate,e,wa);e.memoizedProps=e.pendingProps,n===null?fc(e):_e=n}function sv(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=Sy(s,n,n.pendingProps,n.type,void 0,Te);break;case 11:n=Sy(s,n,n.pendingProps,n.type.render,n.ref,Te);break;case 5:Gd(n);default:Ay(s,n),n=_e=ng(n,wa),n=Cy(s,n,wa)}e.memoizedProps=e.pendingProps,n===null?fc(e):_e=n}function ii(e,n,s,l){fa=Is=null,Gd(n),Xr=null,fl=0;var u=n.return;try{if(Jw(e,u,n,s,Te)){at=1,Jo(e,En(s,e.current)),_e=null;return}}catch(h){if(u!==null)throw _e=u,h;at=1,Jo(e,En(s,e.current)),_e=null;return}n.flags&32768?(Me||l===1?e=!0:ni||(Te&536870912)!==0?e=!1:(es=e=!0,(l===2||l===9||l===3||l===6)&&(l=ln.current,l!==null&&l.tag===13&&(l.flags|=16384))),rv(n,e)):fc(n)}function fc(e){var n=e;do{if((n.flags&32768)!==0){rv(n,es);return}e=n.return;var s=nj(n.alternate,n,wa);if(s!==null){_e=s;return}if(n=n.sibling,n!==null){_e=n;return}_e=n=e}while(n!==null);at===0&&(at=5)}function rv(e,n){do{var s=aj(e.alternate,e);if(s!==null){s.flags&=32767,_e=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){_e=e;return}_e=e=s}while(e!==null);at=6,_e=null}function iv(e,n,s,l,u,h,b,R,O){e.cancelPendingCommit=null;do hc();while(pt!==0);if((Fe&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(h=n.lanes|n.childLanes,h|=gd,IS(e,s,h,b,R,O),e===$e&&(_e=$e=null,Te=0),si=n,as=e,ja=s,Nf=h,Rf=u,Xy=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pj(Cr,function(){return dv(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=P.T,P.T=null,u=V.p,V.p=2,b=Fe,Fe|=4;try{sj(e,n,s)}finally{Fe=b,V.p=u,P.T=l}}pt=1,lv(),ov(),cv()}}function lv(){if(pt===1){pt=0;var e=as,n=si,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var l=V.p;V.p=2;var u=Fe;Fe|=4;try{Hy(n,e);var h=Hf,b=Yp(e.containerInfo),R=h.focusedElem,O=h.selectionRange;if(b!==R&&R&&R.ownerDocument&&Vp(R.ownerDocument.documentElement,R)){if(O!==null&&dd(R)){var I=O.start,$=O.end;if($===void 0&&($=I),"selectionStart"in R)R.selectionStart=I,R.selectionEnd=Math.min($,R.value.length);else{var W=R.ownerDocument||document,Q=W&&W.defaultView||window;if(Q.getSelection){var Y=Q.getSelection(),fe=R.textContent.length,be=Math.min(O.start,fe),Ye=O.end===void 0?be:Math.min(O.end,fe);!Y.extend&&be>Ye&&(b=Ye,Ye=be,be=b);var F=Qp(R,be),U=Qp(R,Ye);if(F&&U&&(Y.rangeCount!==1||Y.anchorNode!==F.node||Y.anchorOffset!==F.offset||Y.focusNode!==U.node||Y.focusOffset!==U.offset)){var G=W.createRange();G.setStart(F.node,F.offset),Y.removeAllRanges(),be>Ye?(Y.addRange(G),Y.extend(U.node,U.offset)):(G.setEnd(U.node,U.offset),Y.addRange(G))}}}}for(W=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&W.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<W.length;R++){var K=W[R];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Nc=!!Ff,Hf=Ff=null}finally{Fe=u,V.p=l,P.T=s}}e.current=n,pt=2}}function ov(){if(pt===2){pt=0;var e=as,n=si,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var l=V.p;V.p=2;var u=Fe;Fe|=4;try{zy(e,n.alternate,n)}finally{Fe=u,V.p=l,P.T=s}}pt=3}}function cv(){if(pt===4||pt===3){pt=0,Gu();var e=as,n=si,s=ja,l=Xy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?pt=5:(pt=0,si=as=null,uv(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ns=null),Vu(s),n=n.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot($i,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=P.T,u=V.p,V.p=2,P.T=null;try{for(var h=e.onRecoverableError,b=0;b<l.length;b++){var R=l[b];h(R.value,{componentStack:R.stack})}}finally{P.T=n,V.p=u}}(ja&3)!==0&&hc(),Vn(e),u=e.pendingLanes,(s&261930)!==0&&(u&42)!==0?e===Cf?Al++:(Al=0,Cf=e):Al=0,Tl(0)}}function uv(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ul(n)))}function hc(){return lv(),ov(),cv(),dv()}function dv(){if(pt!==5)return!1;var e=as,n=Nf;Nf=0;var s=Vu(ja),l=P.T,u=V.p;try{V.p=32>s?32:s,P.T=null,s=Rf,Rf=null;var h=as,b=ja;if(pt=0,si=as=null,ja=0,(Fe&6)!==0)throw Error(i(331));var R=Fe;if(Fe|=4,Vy(h.current),Gy(h,h.current,b,s),Fe=R,Tl(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot($i,h)}catch{}return!0}finally{V.p=u,P.T=l,uv(e,n)}}function fv(e,n,s){n=En(s,n),n=sf(e.stateNode,n,2),e=Za(e,n,2),e!==null&&(Zi(e,2),Vn(e))}function Ge(e,n,s){if(e.tag===3)fv(e,e,s);else for(;n!==null;){if(n.tag===3){fv(n,e,s);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ns===null||!ns.has(l))){e=En(s,e),s=hy(2),l=Za(n,s,2),l!==null&&(my(s,l,n,e),Zi(l,2),Vn(l));break}}n=n.return}}function Tf(e,n,s){var l=e.pingCache;if(l===null){l=e.pingCache=new lj;var u=new Set;l.set(n,u)}else u=l.get(n),u===void 0&&(u=new Set,l.set(n,u));u.has(s)||(wf=!0,u.add(s),e=fj.bind(null,e,n,s),n.then(e,e))}function fj(e,n,s){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,$e===e&&(Te&s)===s&&(at===4||at===3&&(Te&62914560)===Te&&300>Ot()-lc?(Fe&2)===0&&ri(e,0):jf|=s,ai===Te&&(ai=0)),Vn(e)}function hv(e,n){n===0&&(n=lp()),e=Hs(e,n),e!==null&&(Zi(e,n),Vn(e))}function hj(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),hv(e,s)}function mj(e,n){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(n),hv(e,s)}function pj(e,n){return Mn(e,n)}var mc=null,li=null,kf=!1,pc=!1,Of=!1,rs=0;function Vn(e){e!==li&&e.next===null&&(li===null?mc=li=e:li=li.next=e),pc=!0,kf||(kf=!0,yj())}function Tl(e,n){if(!Of&&pc){Of=!0;do for(var s=!1,l=mc;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var h=0;else{var b=l.suspendedLanes,R=l.pingedLanes;h=(1<<31-an(42|e)+1)-1,h&=u&~(b&~R),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,yv(l,h))}else h=Te,h=bo(l,l===$e?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Xi(l,h)||(s=!0,yv(l,h));l=l.next}while(s);Of=!1}}function gj(){mv()}function mv(){pc=kf=!1;var e=0;rs!==0&&Cj()&&(e=rs);for(var n=Ot(),s=null,l=mc;l!==null;){var u=l.next,h=pv(l,n);h===0?(l.next=null,s===null?mc=u:s.next=u,u===null&&(li=s)):(s=l,(e!==0||(h&3)!==0)&&(pc=!0)),l=u}pt!==0&&pt!==5||Tl(e),rs!==0&&(rs=0)}function pv(e,n){for(var s=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-an(h),R=1<<b,O=u[b];O===-1?((R&s)===0||(R&l)!==0)&&(u[b]=GS(R,n)):O<=n&&(e.expiredLanes|=R),h&=~R}if(n=$e,s=Te,s=bo(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===n&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Yi(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Xi(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(l!==null&&Yi(l),Vu(s)){case 2:case 8:s=qn;break;case 32:s=Cr;break;case 268435456:s=ip;break;default:s=Cr}return l=gv.bind(null,e),s=Mn(s,l),e.callbackPriority=n,e.callbackNode=s,n}return l!==null&&l!==null&&Yi(l),e.callbackPriority=2,e.callbackNode=null,2}function gv(e,n){if(pt!==0&&pt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(hc()&&e.callbackNode!==s)return null;var l=Te;return l=bo(e,e===$e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ky(e,l,n),pv(e,Ot()),e.callbackNode!=null&&e.callbackNode===s?gv.bind(null,e):null)}function yv(e,n){if(hc())return null;Ky(e,n,!0)}function yj(){Aj(function(){(Fe&6)!==0?Mn(Nt,gj):mv()})}function Mf(){if(rs===0){var e=Vr;e===0&&(e=go,go<<=1,(go&261888)===0&&(go=256)),rs=e}return rs}function vv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jo(""+e)}function bv(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function vj(e,n,s,l,u){if(n==="submit"&&s&&s.stateNode===u){var h=vv((u[Gt]||null).action),b=l.submitter;b&&(n=(n=b[Gt]||null)?vv(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var R=new Co("action","action",null,l,u);e.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(rs!==0){var O=b?bv(u,b):new FormData(u);Wd(s,{pending:!0,data:O,method:u.method,action:h},null,O)}}else typeof h=="function"&&(R.preventDefault(),O=b?bv(u,b):new FormData(u),Wd(s,{pending:!0,data:O,method:u.method,action:h},h,O))},currentTarget:u}]})}}for(var Df=0;Df<pd.length;Df++){var Lf=pd[Df],bj=Lf.toLowerCase(),xj=Lf[0].toUpperCase()+Lf.slice(1);Dn(bj,"on"+xj)}Dn(Zp,"onAnimationEnd"),Dn(Kp,"onAnimationIteration"),Dn(Wp,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(zw,"onTransitionRun"),Dn(Bw,"onTransitionStart"),Dn(Uw,"onTransitionCancel"),Dn(Jp,"onTransitionEnd"),Or("onMouseEnter",["mouseout","mouseover"]),Or("onMouseLeave",["mouseout","mouseover"]),Or("onPointerEnter",["pointerout","pointerover"]),Or("onPointerLeave",["pointerout","pointerover"]),Bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),Sj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function xv(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],u=l.event;l=l.listeners;e:{var h=void 0;if(n)for(var b=l.length-1;0<=b;b--){var R=l[b],O=R.instance,I=R.currentTarget;if(R=R.listener,O!==h&&u.isPropagationStopped())break e;h=R,u.currentTarget=I;try{h(u)}catch($){To($)}u.currentTarget=null,h=O}else for(b=0;b<l.length;b++){if(R=l[b],O=R.instance,I=R.currentTarget,R=R.listener,O!==h&&u.isPropagationStopped())break e;h=R,u.currentTarget=I;try{h(u)}catch($){To($)}u.currentTarget=null,h=O}}}}function Ae(e,n){var s=n[Yu];s===void 0&&(s=n[Yu]=new Set);var l=e+"__bubble";s.has(l)||(Sv(n,e,2,!1),s.add(l))}function zf(e,n,s){var l=0;n&&(l|=4),Sv(s,e,l,n)}var gc="_reactListening"+Math.random().toString(36).slice(2);function Bf(e){if(!e[gc]){e[gc]=!0,mp.forEach(function(s){s!=="selectionchange"&&(Sj.has(s)||zf(s,!1,e),zf(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[gc]||(n[gc]=!0,zf("selectionchange",!1,n))}}function Sv(e,n,s,l){switch(Zv(n)){case 2:var u=Xj;break;case 8:u=Zj;break;default:u=Wf}s=u.bind(null,n,s,e),u=void 0,!nd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(n,s,{capture:!0,passive:u}):e.addEventListener(n,s,!0):u!==void 0?e.addEventListener(n,s,{passive:u}):e.addEventListener(n,s,!1)}function Uf(e,n,s,l,u){var h=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var R=l.stateNode.containerInfo;if(R===u)break;if(b===4)for(b=l.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;R!==null;){if(b=Ar(R),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){l=h=b;continue e}R=R.parentNode}}l=l.return}Rp(function(){var I=h,$=ed(s),W=[];e:{var Q=eg.get(e);if(Q!==void 0){var Y=Co,fe=e;switch(e){case"keypress":if(No(s)===0)break e;case"keydown":case"keyup":Y=mw;break;case"focusin":fe="focus",Y=id;break;case"focusout":fe="blur",Y=id;break;case"beforeblur":case"afterblur":Y=id;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":Y=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=nw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=yw;break;case Zp:case Kp:case Wp:Y=rw;break;case Jp:Y=bw;break;case"scroll":case"scrollend":Y=ew;break;case"wheel":Y=Sw;break;case"copy":case"cut":case"paste":Y=lw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=kp;break;case"toggle":case"beforetoggle":Y=jw}var be=(n&4)!==0,Ye=!be&&(e==="scroll"||e==="scrollend"),F=be?Q!==null?Q+"Capture":null:Q;be=[];for(var U=I,G;U!==null;){var K=U;if(G=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||G===null||F===null||(K=Ji(U,F),K!=null&&be.push(Ol(U,K,G))),Ye)break;U=U.return}0<be.length&&(Q=new Y(Q,fe,null,s,$),W.push({event:Q,listeners:be}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",Q&&s!==Ju&&(fe=s.relatedTarget||s.fromElement)&&(Ar(fe)||fe[_r]))break e;if((Y||Q)&&(Q=$.window===$?$:(Q=$.ownerDocument)?Q.defaultView||Q.parentWindow:window,Y?(fe=s.relatedTarget||s.toElement,Y=I,fe=fe?Ar(fe):null,fe!==null&&(Ye=d(fe),be=fe.tag,fe!==Ye||be!==5&&be!==27&&be!==6)&&(fe=null)):(Y=null,fe=I),Y!==fe)){if(be=Ap,K="onMouseLeave",F="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(be=kp,K="onPointerLeave",F="onPointerEnter",U="pointer"),Ye=Y==null?Q:Wi(Y),G=fe==null?Q:Wi(fe),Q=new be(K,U+"leave",Y,s,$),Q.target=Ye,Q.relatedTarget=G,K=null,Ar($)===I&&(be=new be(F,U+"enter",fe,s,$),be.target=G,be.relatedTarget=Ye,K=be),Ye=K,Y&&fe)t:{for(be=wj,F=Y,U=fe,G=0,K=F;K;K=be(K))G++;K=0;for(var ge=U;ge;ge=be(ge))K++;for(;0<G-K;)F=be(F),G--;for(;0<K-G;)U=be(U),K--;for(;G--;){if(F===U||U!==null&&F===U.alternate){be=F;break t}F=be(F),U=be(U)}be=null}else be=null;Y!==null&&wv(W,Q,Y,be,!1),fe!==null&&Ye!==null&&wv(W,Ye,fe,be,!0)}}e:{if(Q=I?Wi(I):window,Y=Q.nodeName&&Q.nodeName.toLowerCase(),Y==="select"||Y==="input"&&Q.type==="file")var Ue=Pp;else if(Bp(Q))if(Fp)Ue=Mw;else{Ue=kw;var me=Tw}else Y=Q.nodeName,!Y||Y.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?I&&Wu(I.elementType)&&(Ue=Pp):Ue=Ow;if(Ue&&(Ue=Ue(e,I))){Up(W,Ue,s,$);break e}me&&me(e,Q,I),e==="focusout"&&I&&Q.type==="number"&&I.memoizedProps.value!=null&&Ku(Q,"number",Q.value)}switch(me=I?Wi(I):window,e){case"focusin":(Bp(me)||me.contentEditable==="true")&&(Ur=me,fd=I,ll=null);break;case"focusout":ll=fd=Ur=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,$p(W,s,$);break;case"selectionchange":if(Lw)break;case"keydown":case"keyup":$p(W,s,$)}var je;if(od)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Br?Lp(e,s)&&(ke="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ke="onCompositionStart");ke&&(Op&&s.locale!=="ko"&&(Br||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Br&&(je=Cp()):(Ga=$,ad="value"in Ga?Ga.value:Ga.textContent,Br=!0)),me=yc(I,ke),0<me.length&&(ke=new Tp(ke,e,null,s,$),W.push({event:ke,listeners:me}),je?ke.data=je:(je=zp(s),je!==null&&(ke.data=je)))),(je=Nw?Rw(e,s):Cw(e,s))&&(ke=yc(I,"onBeforeInput"),0<ke.length&&(me=new Tp("onBeforeInput","beforeinput",null,s,$),W.push({event:me,listeners:ke}),me.data=je)),vj(W,e,I,s,$)}xv(W,n)})}function Ol(e,n,s){return{instance:e,listener:n,currentTarget:s}}function yc(e,n){for(var s=n+"Capture",l=[];e!==null;){var u=e,h=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||h===null||(u=Ji(e,s),u!=null&&l.unshift(Ol(e,u,h)),u=Ji(e,n),u!=null&&l.push(Ol(e,u,h))),e.tag===3)return l;e=e.return}return[]}function wj(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wv(e,n,s,l,u){for(var h=n._reactName,b=[];s!==null&&s!==l;){var R=s,O=R.alternate,I=R.stateNode;if(R=R.tag,O!==null&&O===l)break;R!==5&&R!==26&&R!==27||I===null||(O=I,u?(I=Ji(s,h),I!=null&&b.unshift(Ol(s,I,O))):u||(I=Ji(s,h),I!=null&&b.push(Ol(s,I,O)))),s=s.return}b.length!==0&&e.push({event:n,listeners:b})}var jj=/\r\n?/g,Ej=/\u0000|\uFFFD/g;function jv(e){return(typeof e=="string"?e:""+e).replace(jj,`
49
- `).replace(Ej,"")}function Ev(e,n){return n=jv(n),jv(e)===n}function Ve(e,n,s,l,u,h){switch(s){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Dr(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Dr(e,""+l);break;case"className":So(e,"class",l);break;case"tabIndex":So(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":So(e,s,l);break;case"style":Ep(e,l,h);break;case"data":if(n!=="object"){So(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=jo(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="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 h=="function"&&(s==="formAction"?(n!=="input"&&Ve(e,n,"name",u.name,u,null),Ve(e,n,"formEncType",u.formEncType,u,null),Ve(e,n,"formMethod",u.formMethod,u,null),Ve(e,n,"formTarget",u.formTarget,u,null)):(Ve(e,n,"encType",u.encType,u,null),Ve(e,n,"method",u.method,u,null),Ve(e,n,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=jo(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=oa);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=s}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}s=jo(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),xo(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=WS.get(s)||s,xo(e,s,l))}}function Pf(e,n,s,l,u,h){switch(s){case"style":Ep(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=s}}break;case"children":typeof l=="string"?Dr(e,l):(typeof l=="number"||typeof l=="bigint")&&Dr(e,""+l);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"onClick":l!=null&&(e.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pp.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),n=s.slice(2,u?s.length-7:void 0),h=e[Gt]||null,h=h!=null?h[s]:null,typeof h=="function"&&e.removeEventListener(n,h,u),typeof l=="function")){typeof h!="function"&&h!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,l,u);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):xo(e,s,l)}}}function Tt(e,n,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var l=!1,u=!1,h;for(h in s)if(s.hasOwnProperty(h)){var b=s[h];if(b!=null)switch(h){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ve(e,n,h,b,s,null)}}u&&Ve(e,n,"srcSet",s.srcSet,s,null),l&&Ve(e,n,"src",s.src,s,null);return;case"input":Ae("invalid",e);var R=h=b=u=null,O=null,I=null;for(l in s)if(s.hasOwnProperty(l)){var $=s[l];if($!=null)switch(l){case"name":u=$;break;case"type":b=$;break;case"checked":O=$;break;case"defaultChecked":I=$;break;case"value":h=$;break;case"defaultValue":R=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:Ve(e,n,l,$,s,null)}}xp(e,h,R,O,I,b,u,!1);return;case"select":Ae("invalid",e),l=b=h=null;for(u in s)if(s.hasOwnProperty(u)&&(R=s[u],R!=null))switch(u){case"value":h=R;break;case"defaultValue":b=R;break;case"multiple":l=R;default:Ve(e,n,u,R,s,null)}n=h,s=b,e.multiple=!!l,n!=null?Mr(e,!!l,n,!1):s!=null&&Mr(e,!!l,s,!0);return;case"textarea":Ae("invalid",e),h=u=l=null;for(b in s)if(s.hasOwnProperty(b)&&(R=s[b],R!=null))switch(b){case"value":l=R;break;case"defaultValue":u=R;break;case"children":h=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ve(e,n,b,R,s,null)}wp(e,l,u,h);return;case"option":for(O in s)if(s.hasOwnProperty(O)&&(l=s[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ve(e,n,O,l,s,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(l=0;l<kl.length;l++)Ae(kl[l],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in s)if(s.hasOwnProperty(I)&&(l=s[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ve(e,n,I,l,s,null)}return;default:if(Wu(n)){for($ in s)s.hasOwnProperty($)&&(l=s[$],l!==void 0&&Pf(e,n,$,l,s,void 0));return}}for(R in s)s.hasOwnProperty(R)&&(l=s[R],l!=null&&Ve(e,n,R,l,s,null))}function Nj(e,n,s,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,h=null,b=null,R=null,O=null,I=null,$=null;for(Y in s){var W=s[Y];if(s.hasOwnProperty(Y)&&W!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":O=W;default:l.hasOwnProperty(Y)||Ve(e,n,Y,null,l,W)}}for(var Q in l){var Y=l[Q];if(W=s[Q],l.hasOwnProperty(Q)&&(Y!=null||W!=null))switch(Q){case"type":h=Y;break;case"name":u=Y;break;case"checked":I=Y;break;case"defaultChecked":$=Y;break;case"value":b=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:Y!==W&&Ve(e,n,Q,Y,l,W)}}Zu(e,b,R,O,I,$,h,u);return;case"select":Y=b=R=Q=null;for(h in s)if(O=s[h],s.hasOwnProperty(h)&&O!=null)switch(h){case"value":break;case"multiple":Y=O;default:l.hasOwnProperty(h)||Ve(e,n,h,null,l,O)}for(u in l)if(h=l[u],O=s[u],l.hasOwnProperty(u)&&(h!=null||O!=null))switch(u){case"value":Q=h;break;case"defaultValue":R=h;break;case"multiple":b=h;default:h!==O&&Ve(e,n,u,h,l,O)}n=R,s=b,l=Y,Q!=null?Mr(e,!!s,Q,!1):!!l!=!!s&&(n!=null?Mr(e,!!s,n,!0):Mr(e,!!s,s?[]:"",!1));return;case"textarea":Y=Q=null;for(R in s)if(u=s[R],s.hasOwnProperty(R)&&u!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ve(e,n,R,null,l,u)}for(b in l)if(u=l[b],h=s[b],l.hasOwnProperty(b)&&(u!=null||h!=null))switch(b){case"value":Q=u;break;case"defaultValue":Y=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==h&&Ve(e,n,b,u,l,h)}Sp(e,Q,Y);return;case"option":for(var fe in s)if(Q=s[fe],s.hasOwnProperty(fe)&&Q!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ve(e,n,fe,null,l,Q)}for(O in l)if(Q=l[O],Y=s[O],l.hasOwnProperty(O)&&Q!==Y&&(Q!=null||Y!=null))switch(O){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Ve(e,n,O,Q,l,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in s)Q=s[be],s.hasOwnProperty(be)&&Q!=null&&!l.hasOwnProperty(be)&&Ve(e,n,be,null,l,Q);for(I in l)if(Q=l[I],Y=s[I],l.hasOwnProperty(I)&&Q!==Y&&(Q!=null||Y!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,n));break;default:Ve(e,n,I,Q,l,Y)}return;default:if(Wu(n)){for(var Ye in s)Q=s[Ye],s.hasOwnProperty(Ye)&&Q!==void 0&&!l.hasOwnProperty(Ye)&&Pf(e,n,Ye,void 0,l,Q);for($ in l)Q=l[$],Y=s[$],!l.hasOwnProperty($)||Q===Y||Q===void 0&&Y===void 0||Pf(e,n,$,Q,l,Y);return}}for(var F in s)Q=s[F],s.hasOwnProperty(F)&&Q!=null&&!l.hasOwnProperty(F)&&Ve(e,n,F,null,l,Q);for(W in l)Q=l[W],Y=s[W],!l.hasOwnProperty(W)||Q===Y||Q==null&&Y==null||Ve(e,n,W,Q,l,Y)}function Nv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rj(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var u=s[l],h=u.transferSize,b=u.initiatorType,R=u.duration;if(h&&R&&Nv(b)){for(b=0,R=u.responseEnd,l+=1;l<s.length;l++){var O=s[l],I=O.startTime;if(I>R)break;var $=O.transferSize,W=O.initiatorType;$&&Nv(W)&&(O=O.responseEnd,b+=$*(O<R?1:(R-I)/(O-I)))}if(--l,n+=8*(h+b)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ff=null,Hf=null;function vc(e){return e.nodeType===9?e:e.ownerDocument}function Rv(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 Cv(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function qf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Gf=null;function Cj(){var e=window.event;return e&&e.type==="popstate"?e===Gf?!1:(Gf=e,!0):(Gf=null,!1)}var _v=typeof setTimeout=="function"?setTimeout:void 0,_j=typeof clearTimeout=="function"?clearTimeout:void 0,Av=typeof Promise=="function"?Promise:void 0,Aj=typeof queueMicrotask=="function"?queueMicrotask:typeof Av<"u"?function(e){return Av.resolve(null).then(e).catch(Tj)}:_v;function Tj(e){setTimeout(function(){throw e})}function is(e){return e==="head"}function Tv(e,n){var s=n,l=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(u),di(n);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Ml(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Ml(s);for(var h=s.firstChild;h;){var b=h.nextSibling,R=h.nodeName;h[Ki]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&h.rel.toLowerCase()==="stylesheet"||s.removeChild(h),h=b}}else s==="body"&&Ml(e.ownerDocument.body);s=u}while(s);di(n)}function kv(e,n){var s=e;e=0;do{var l=s.nextSibling;if(s.nodeType===1?n?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(n?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=l}while(s)}function If(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":If(s),$u(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function kj(e,n,s,l){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ki])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=An(e.nextSibling),e===null)break}return null}function Oj(e,n,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=An(e.nextSibling),e===null))return null;return e}function Ov(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=An(e.nextSibling),e===null))return null;return e}function Qf(e){return e.data==="$?"||e.data==="$~"}function Vf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Mj(e,n){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||s.readyState!=="loading")n();else{var l=function(){n(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function An(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Yf=null;function Mv(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return An(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function Dv(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(n===0)return e;n--}else s!=="/$"&&s!=="/&"||n++}e=e.previousSibling}return null}function Lv(e,n,s){switch(n=vc(s),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ml(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);$u(e)}var Tn=new Map,zv=new Set;function bc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=V.d;V.d={f:Dj,r:Lj,D:zj,C:Bj,L:Uj,m:Pj,X:Hj,S:Fj,M:qj};function Dj(){var e=Ea.f(),n=uc();return e||n}function Lj(e){var n=Tr(e);n!==null&&n.tag===5&&n.type==="form"?Jg(n):Ea.r(e)}var oi=typeof document>"u"?null:document;function Bv(e,n,s){var l=oi;if(l&&typeof n=="string"&&n){var u=wn(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),zv.has(u)||(zv.add(u),e={rel:e,crossOrigin:s,href:n},l.querySelector(u)===null&&(n=l.createElement("link"),Tt(n,"link",e),St(n),l.head.appendChild(n)))}}function zj(e){Ea.D(e),Bv("dns-prefetch",e,null)}function Bj(e,n){Ea.C(e,n),Bv("preconnect",e,n)}function Uj(e,n,s){Ea.L(e,n,s);var l=oi;if(l&&e&&n){var u='link[rel="preload"][as="'+wn(n)+'"]';n==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+wn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+wn(s.imageSizes)+'"]')):u+='[href="'+wn(e)+'"]';var h=u;switch(n){case"style":h=ci(e);break;case"script":h=ui(e)}Tn.has(h)||(e=y({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),Tn.set(h,e),l.querySelector(u)!==null||n==="style"&&l.querySelector(Dl(h))||n==="script"&&l.querySelector(Ll(h))||(n=l.createElement("link"),Tt(n,"link",e),St(n),l.head.appendChild(n)))}}function Pj(e,n){Ea.m(e,n);var s=oi;if(s&&e){var l=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+wn(l)+'"][href="'+wn(e)+'"]',h=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ui(e)}if(!Tn.has(h)&&(e=y({rel:"modulepreload",href:e},n),Tn.set(h,e),s.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ll(h)))return}l=s.createElement("link"),Tt(l,"link",e),St(l),s.head.appendChild(l)}}}function Fj(e,n,s){Ea.S(e,n,s);var l=oi;if(l&&e){var u=kr(l).hoistableStyles,h=ci(e);n=n||"default";var b=u.get(h);if(!b){var R={loading:0,preload:null};if(b=l.querySelector(Dl(h)))R.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},s),(s=Tn.get(h))&&$f(e,s);var O=b=l.createElement("link");St(O),Tt(O,"link",e),O._p=new Promise(function(I,$){O.onload=I,O.onerror=$}),O.addEventListener("load",function(){R.loading|=1}),O.addEventListener("error",function(){R.loading|=2}),R.loading|=4,xc(b,n,l)}b={type:"stylesheet",instance:b,count:1,state:R},u.set(h,b)}}}function Hj(e,n){Ea.X(e,n);var s=oi;if(s&&e){var l=kr(s).hoistableScripts,u=ui(e),h=l.get(u);h||(h=s.querySelector(Ll(u)),h||(e=y({src:e,async:!0},n),(n=Tn.get(u))&&Xf(e,n),h=s.createElement("script"),St(h),Tt(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(u,h))}}function qj(e,n){Ea.M(e,n);var s=oi;if(s&&e){var l=kr(s).hoistableScripts,u=ui(e),h=l.get(u);h||(h=s.querySelector(Ll(u)),h||(e=y({src:e,async:!0,type:"module"},n),(n=Tn.get(u))&&Xf(e,n),h=s.createElement("script"),St(h),Tt(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(u,h))}}function Uv(e,n,s,l){var u=(u=he.current)?bc(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=ci(s.href),s=kr(u).hoistableStyles,l=s.get(n),l||(l={type:"style",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=ci(s.href);var h=kr(u).hoistableStyles,b=h.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=u.querySelector(Dl(e)))&&!h._p&&(b.instance=h,b.state.loading=5),Tn.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},Tn.set(e,s),h||Gj(u,e,s,b.state))),n&&l===null)throw Error(i(528,""));return b}if(n&&l!==null)throw Error(i(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ui(s),s=kr(u).hoistableScripts,l=s.get(n),l||(l={type:"script",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ci(e){return'href="'+wn(e)+'"'}function Dl(e){return'link[rel="stylesheet"]['+e+"]"}function Pv(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Gj(e,n,s,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Tt(n,"link",s),St(n),e.head.appendChild(n))}function ui(e){return'[src="'+wn(e)+'"]'}function Ll(e){return"script[async]"+e}function Fv(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+wn(s.href)+'"]');if(l)return n.instance=l,St(l),l;var u=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),St(l),Tt(l,"style",u),xc(l,s.precedence,e),n.instance=l;case"stylesheet":u=ci(s.href);var h=e.querySelector(Dl(u));if(h)return n.state.loading|=4,n.instance=h,St(h),h;l=Pv(s),(u=Tn.get(u))&&$f(l,u),h=(e.ownerDocument||e).createElement("link"),St(h);var b=h;return b._p=new Promise(function(R,O){b.onload=R,b.onerror=O}),Tt(h,"link",l),n.state.loading|=4,xc(h,s.precedence,e),n.instance=h;case"script":return h=ui(s.src),(u=e.querySelector(Ll(h)))?(n.instance=u,St(u),u):(l=s,(u=Tn.get(h))&&(l=y({},s),Xf(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),St(u),Tt(u,"link",l),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,xc(l,s.precedence,e));return n.instance}function xc(e,n,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,h=u,b=0;b<l.length;b++){var R=l[b];if(R.dataset.precedence===n)h=R;else if(h!==u)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function $f(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Xf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Sc=null;function Hv(e,n,s){if(Sc===null){var l=new Map,u=Sc=new Map;u.set(s,l)}else u=Sc,l=u.get(s),l||(l=new Map,u.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var h=s[u];if(!(h[Ki]||h[Rt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var R=l.get(b);R?R.push(h):l.set(b,[h])}}return l}function qv(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function Ij(e,n,s){if(s===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Gv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Qj(e,n,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var u=ci(l.href),h=n.querySelector(Dl(u));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=wc.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=h,St(h);return}h=n.ownerDocument||n,l=Pv(l),(u=Tn.get(u))&&$f(l,u),h=h.createElement("link"),St(h);var b=h;b._p=new Promise(function(R,O){b.onload=R,b.onerror=O}),Tt(h,"link",l),s.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=wc.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var Zf=0;function Vj(e,n){return e.stylesheets&&e.count===0&&Ec(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&Ec(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Zf===0&&(Zf=62500*Rj());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ec(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Zf?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function wc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ec(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var jc=null;function Ec(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,jc=new Map,n.forEach(Yj,e),jc=null,wc.call(e))}function Yj(e,n){if(!(n.state.loading&4)){var s=jc.get(e);if(s)var l=s.get(null);else{s=new Map,jc.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<u.length;h++){var b=u[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(s.set(b.dataset.precedence,b),l=b)}l&&s.set(null,l)}u=n.instance,b=u.getAttribute("data-precedence"),h=s.get(b)||l,h===l&&s.set(null,u),s.set(b,u),this.count++,l=wc.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),h?h.parentNode.insertBefore(u,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var zl={$$typeof:T,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function $j(e,n,s,l,u,h,b,R,O){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=Iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.hiddenUpdates=Iu(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Iv(e,n,s,l,u,h,b,R,O,I,$,W){return e=new $j(e,n,s,b,O,I,$,W,R),n=1,h===!0&&(n|=24),h=rn(3,null,null,n),e.current=h,h.stateNode=e,n=_d(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:n},Od(h),e}function Qv(e){return e?(e=Hr,e):Hr}function Vv(e,n,s,l,u,h){u=Qv(u),l.context===null?l.context=u:l.pendingContext=u,l=Xa(n),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Za(e,l,n),s!==null&&(Xt(s,e,n),ml(s,e,n))}function Yv(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function Kf(e,n){Yv(e,n),(e=e.alternate)&&Yv(e,n)}function $v(e){if(e.tag===13||e.tag===31){var n=Hs(e,67108864);n!==null&&Xt(n,e,67108864),Kf(e,67108864)}}function Xv(e){if(e.tag===13||e.tag===31){var n=dn();n=Qu(n);var s=Hs(e,n);s!==null&&Xt(s,e,n),Kf(e,n)}}var Nc=!0;function Xj(e,n,s,l){var u=P.T;P.T=null;var h=V.p;try{V.p=2,Wf(e,n,s,l)}finally{V.p=h,P.T=u}}function Zj(e,n,s,l){var u=P.T;P.T=null;var h=V.p;try{V.p=8,Wf(e,n,s,l)}finally{V.p=h,P.T=u}}function Wf(e,n,s,l){if(Nc){var u=Jf(l);if(u===null)Uf(e,n,l,Rc,s),Kv(e,l);else if(Wj(u,e,n,s,l))l.stopPropagation();else if(Kv(e,l),n&4&&-1<Kj.indexOf(e)){for(;u!==null;){var h=Tr(u);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=zs(h.pendingLanes);if(b!==0){var R=h;for(R.pendingLanes|=2,R.entangledLanes|=2;b;){var O=1<<31-an(b);R.entanglements[1]|=O,b&=~O}Vn(h),(Fe&6)===0&&(oc=Ot()+500,Tl(0))}}break;case 31:case 13:R=Hs(h,2),R!==null&&Xt(R,h,2),uc(),Kf(h,2)}if(h=Jf(l),h===null&&Uf(e,n,l,Rc,s),h===u)break;u=h}u!==null&&l.stopPropagation()}else Uf(e,n,l,null,s)}}function Jf(e){return e=ed(e),eh(e)}var Rc=null;function eh(e){if(Rc=null,e=Ar(e),e!==null){var n=d(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=f(n),e!==null)return e;e=null}else if(s===31){if(e=m(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Rc=e,null}function Zv(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(Ie()){case Nt:return 2;case qn:return 8;case Cr:case BS:return 32;case ip:return 268435456;default:return 32}default:return 32}}var th=!1,ls=null,os=null,cs=null,Bl=new Map,Ul=new Map,us=[],Kj="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 Kv(e,n){switch(e){case"focusin":case"focusout":ls=null;break;case"dragenter":case"dragleave":os=null;break;case"mouseover":case"mouseout":cs=null;break;case"pointerover":case"pointerout":Bl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(n.pointerId)}}function Pl(e,n,s,l,u,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[u]},n!==null&&(n=Tr(n),n!==null&&$v(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function Wj(e,n,s,l,u){switch(n){case"focusin":return ls=Pl(ls,e,n,s,l,u),!0;case"dragenter":return os=Pl(os,e,n,s,l,u),!0;case"mouseover":return cs=Pl(cs,e,n,s,l,u),!0;case"pointerover":var h=u.pointerId;return Bl.set(h,Pl(Bl.get(h)||null,e,n,s,l,u)),!0;case"gotpointercapture":return h=u.pointerId,Ul.set(h,Pl(Ul.get(h)||null,e,n,s,l,u)),!0}return!1}function Wv(e){var n=Ar(e.target);if(n!==null){var s=d(n);if(s!==null){if(n=s.tag,n===13){if(n=f(s),n!==null){e.blockedOn=n,fp(e.priority,function(){Xv(s)});return}}else if(n===31){if(n=m(s),n!==null){e.blockedOn=n,fp(e.priority,function(){Xv(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Jf(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Ju=l,s.target.dispatchEvent(l),Ju=null}else return n=Tr(s),n!==null&&$v(n),e.blockedOn=s,!1;n.shift()}return!0}function Jv(e,n,s){Cc(e)&&s.delete(n)}function Jj(){th=!1,ls!==null&&Cc(ls)&&(ls=null),os!==null&&Cc(os)&&(os=null),cs!==null&&Cc(cs)&&(cs=null),Bl.forEach(Jv),Ul.forEach(Jv)}function _c(e,n){e.blockedOn===n&&(e.blockedOn=null,th||(th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Jj)))}var Ac=null;function eb(e){Ac!==e&&(Ac=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ac===e&&(Ac=null);for(var n=0;n<e.length;n+=3){var s=e[n],l=e[n+1],u=e[n+2];if(typeof l!="function"){if(eh(l||s)===null)continue;break}var h=Tr(s);h!==null&&(e.splice(n,3),n-=3,Wd(h,{pending:!0,data:u,method:s.method,action:l},l,u))}}))}function di(e){function n(O){return _c(O,e)}ls!==null&&_c(ls,e),os!==null&&_c(os,e),cs!==null&&_c(cs,e),Bl.forEach(n),Ul.forEach(n);for(var s=0;s<us.length;s++){var l=us[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<us.length&&(s=us[0],s.blockedOn===null);)Wv(s),s.blockedOn===null&&us.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var u=s[l],h=s[l+1],b=u[Gt]||null;if(typeof h=="function")b||eb(s);else if(b){var R=null;if(h&&h.hasAttribute("formAction")){if(u=h,b=h[Gt]||null)R=b.formAction;else if(eh(u)!==null)continue}else R=b.action;typeof R=="function"?s[l+1]=R:(s.splice(l,3),l-=3),eb(s)}}}function tb(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function nh(e){this._internalRoot=e}Tc.prototype.render=nh.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var s=n.current,l=dn();Vv(s,l,e,n,null,null)},Tc.prototype.unmount=nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Vv(e.current,2,null,e,null,null),uc(),n[_r]=null}};function Tc(e){this._internalRoot=e}Tc.prototype.unstable_scheduleHydration=function(e){if(e){var n=dp();e={blockedOn:null,target:e,priority:n};for(var s=0;s<us.length&&n!==0&&n<us[s].priority;s++);us.splice(s,0,e),s===0&&Wv(e)}};var nb=a.version;if(nb!=="19.2.7")throw Error(i(527,nb,"19.2.7"));V.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var eE={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kc.isDisabled&&kc.supportsFiber)try{$i=kc.inject(eE),nn=kc}catch{}}return Hl.createRoot=function(e,n){if(!o(e))throw Error(i(299));var s=!1,l="",u=cy,h=uy,b=dy;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Iv(e,1,!1,null,null,s,l,null,u,h,b,tb),e[_r]=n.current,Bf(e),new nh(n)},Hl.hydrateRoot=function(e,n,s){if(!o(e))throw Error(i(299));var l=!1,u="",h=cy,b=uy,R=dy,O=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.formState!==void 0&&(O=s.formState)),n=Iv(e,1,!0,n,s??null,l,u,O,h,b,R,tb),n.context=Qv(null),s=n.current,l=dn(),l=Qu(l),u=Xa(l),u.callback=null,Za(s,u,l),s=l,n.current.lanes=s,Zi(n,s),Vn(n),e[_r]=n.current,Bf(e),new Tc(n)},Hl.version="19.2.7",Hl}var hb;function uE(){if(hb)return ih.exports;hb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),ih.exports=cE(),ih.exports}var dE=uE();const fE=xm(dE);var Yl=typeof window<"u"?N.useLayoutEffect:N.useEffect;function uh(t){const a=N.useRef({value:t,prev:null}),r=a.current.value;return t!==r&&(a.current={value:t,prev:r}),a.current.prev}function hE(t,a,r={},i={}){N.useEffect(()=>{if(!t.current||i.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([d])=>{a(d)},r);return o.observe(t.current),()=>{o.disconnect()}},[a,r,i.disabled,t])}function mE(t){const a=N.useRef(null);return N.useImperativeHandle(t,()=>a.current,[]),a}const l0=!1;function Xl(t){return t[t.length-1]}function pE(t){return typeof t=="function"}function ar(t,a){return pE(t)?t(a):t}const o0=Object.prototype.hasOwnProperty,mb=Object.prototype.propertyIsEnumerable;function c0(t){for(const a in t)if(o0.call(t,a))return!0;return!1}const gE=()=>Object.create(null),er=(t,a)=>sr(t,a,gE);function sr(t,a,r=()=>({}),i=0){if(t===a)return t;if(i>500)return a;const o=a,d=yb(t)&&yb(o);if(!d&&!(au(t)&&au(o)))return o;const f=d?t:pb(t);if(!f)return o;const m=d?o:pb(o);if(!m)return o;const g=f.length,p=m.length,v=d?new Array(p):r();let y=0;for(let x=0;x<p;x++){const j=d?x:m[x],w=t[j],S=o[j];if(w===S){v[j]=w,(d?x<g:o0.call(t,j))&&y++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){v[j]=S;continue}const E=sr(w,S,r,i+1);v[j]=E,E===w&&y++}return g===p&&y===g?t:v}function pb(t){const a=Object.getOwnPropertyNames(t);for(const o of a)if(!mb.call(t,o))return!1;const r=Object.getOwnPropertySymbols(t);if(r.length===0)return a;const i=a;for(const o of r){if(!mb.call(t,o))return!1;i.push(o)}return i}function au(t){if(!gb(t))return!1;const a=t.constructor;if(typeof a>"u")return!0;const r=a.prototype;return!(!gb(r)||!r.hasOwnProperty("isPrototypeOf"))}function gb(t){return Object.prototype.toString.call(t)==="[object Object]"}function yb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function gr(t,a,r){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(Array.isArray(t)&&Array.isArray(a)){if(t.length!==a.length)return!1;for(let i=0,o=t.length;i<o;i++)if(!gr(t[i],a[i],r))return!1;return!0}if(au(t)&&au(a)){const i=(r==null?void 0:r.ignoreUndefined)??!0;if(r!=null&&r.partial){for(const f in a)if((!i||a[f]!==void 0)&&!gr(t[f],a[f],r))return!1;return!0}let o=0;if(!i)o=Object.keys(t).length;else for(const f in t)t[f]!==void 0&&o++;let d=0;for(const f in a)if((!i||a[f]!==void 0)&&(d++,d>o||!gr(t[f],a[f],r)))return!1;return o===d}return!1}function Li(t){let a,r;const i=new Promise((o,d)=>{a=o,r=d});return i.status="pending",i.resolve=o=>{i.status="resolved",i.value=o,a(o),t==null||t(o)},i.reject=o=>{i.status="rejected",r(o)},i}function Zl(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function yE(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function vb(t){let a;try{a=decodeURI(t)}catch{a=t.replaceAll(/%[0-9A-F]{2}/gi,r=>{try{return decodeURI(r)}catch{return r}})}return yE(a)}const vE=["http:","https:","mailto:","tel:"];function su(t,a){if(!t)return!1;try{const r=new URL(t);return!a.has(r.protocol)}catch{return!1}}function ql(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let r=0,i="",o;for(;(o=a.exec(t))!==null;)i+=vb(t.slice(r,o.index))+o[0],r=a.lastIndex;i=i+vb(r?t.slice(r):t);let d=!1;return i.startsWith("//")&&(d=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:d}}function bE(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function xE(t,a){if(t===a)return!0;if(t.length!==a.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==a[r])return!1;return!0}function Ma(){throw new Error("Invariant failed")}function Kl(t){const a=new Map;let r,i;const o=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,i&&(i.next=d,d.prev=i)):(d.next.prev=void 0,r=d.next,d.next=void 0,i&&(d.prev=i,i.next=d)),i=d)};return{get(d){const f=a.get(d);if(f)return o(f),f.value},set(d,f){if(a.size>=t&&r){const g=r;a.delete(g.key),g.next&&(r=g.next,g.next.prev=void 0),g===i&&(i=void 0)}const m=a.get(d);if(m)m.value=f,o(m);else{const g={key:d,value:f,prev:i};i&&(i.next=g),i=g,r||(r=g),a.set(d,g)}},clear(){a.clear(),r=void 0,i=void 0}}}const Rs=4,u0=5;function SE(t){const a=t.indexOf("{");if(a===-1)return null;const r=t.indexOf("}",a);return r===-1||a+1>=t.length?null:[a,r]}function d0(t,a,r=new Uint16Array(6)){const i=t.indexOf("/",a),o=i===-1?t.length:i,d=t.substring(a,o);if(!d||!d.includes("$"))return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r;if(d==="$"){const m=t.length;return r[0]=2,r[1]=a,r[2]=a,r[3]=m,r[4]=m,r[5]=m,r}if(d.charCodeAt(0)===36)return r[0]=1,r[1]=a,r[2]=a+1,r[3]=o,r[4]=o,r[5]=o,r;const f=SE(d);if(f){const[m,g]=f,p=d.charCodeAt(m+1);if(p===45){if(m+2<d.length&&d.charCodeAt(m+2)===36){const v=m+3,y=g;if(v<y)return r[0]=3,r[1]=a+m,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=o,r}}else if(p===36){const v=m+1,y=m+2;return y===g?(r[0]=2,r[1]=a+m,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=t.length,r):(r[0]=1,r[1]=a+m,r[2]=a+y,r[3]=a+g,r[4]=a+g+1,r[5]=o,r)}}return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r}function wu(t,a,r,i,o,d,f){var g,p,v,y,x,j,w,S,E,_;f==null||f(r);let m=i;{const C=r.fullPath??r.from,T=C.length,A=((g=r.options)==null?void 0:g.caseSensitive)??t,B=((v=(p=r.options)==null?void 0:p.params)==null?void 0:v.parse)??((y=r.options)==null?void 0:y.parseParams);for(;m<T;){const k=d0(C,m,a);let D;const z=m,H=k[5];switch(m=H+1,d++,k[0]){case 0:{const X=C.substring(k[2],k[3]);if(A){const ne=(x=o.static)==null?void 0:x.get(X);if(ne)D=ne;else{o.static??(o.static=new Map);const se=rr(r.fullPath??r.from);se.parent=o,se.depth=d,D=se,o.static.set(X,se)}}else{const ne=X.toLowerCase(),se=(j=o.staticInsensitive)==null?void 0:j.get(ne);if(se)D=se;else{o.staticInsensitive??(o.staticInsensitive=new Map);const te=rr(r.fullPath??r.from);te.parent=o,te.depth=d,D=te,o.staticInsensitive.set(ne,te)}}break}case 1:{const X=C.substring(z,k[1]),ne=C.substring(k[4],H),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,P=!B&&((w=o.dynamic)==null?void 0:w.find(V=>!V.parse&&V.caseSensitive===se&&V.prefix===te&&V.suffix===ce));if(P)D=P;else{const V=fh(1,r.fullPath??r.from,se,te,ce);D=V,V.depth=d,V.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(V)}break}case 3:{const X=C.substring(z,k[1]),ne=C.substring(k[4],H),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,P=!B&&((S=o.optional)==null?void 0:S.find(V=>!V.parse&&V.caseSensitive===se&&V.prefix===te&&V.suffix===ce));if(P)D=P;else{const V=fh(3,r.fullPath??r.from,se,te,ce);D=V,V.parent=o,V.depth=d,o.optional??(o.optional=[]),o.optional.push(V)}break}case 2:{const X=C.substring(z,k[1]),ne=C.substring(k[4],H),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,P=fh(2,r.fullPath??r.from,se,te,ce);D=P,P.parent=o,P.depth=d,o.wildcard??(o.wildcard=[]),o.wildcard.push(P)}}o=D}if(B&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const k=rr(r.fullPath??r.from);k.kind=u0,k.parent=o,d++,k.depth=d,o.pathless??(o.pathless=[]),o.pathless.push(k),o=k}const q=(r.path||!r.children)&&!r.isRoot;if(q&&C.endsWith("/")){const k=rr(r.fullPath??r.from);k.kind=Rs,k.parent=o,d++,k.depth=d,o.index=k,o=k}o.parse=B??null,o.priority=((_=(E=r.options)==null?void 0:E.params)==null?void 0:_.priority)??0,q&&!o.route&&(o.route=r,o.fullPath=r.fullPath??r.from)}if(r.children)for(const C of r.children)wu(t,a,C,m,o,d,f)}function dh(t,a){if(t.parse&&!a.parse)return-1;if(!t.parse&&a.parse)return 1;if(t.parse&&a.parse&&(t.priority||a.priority))return a.priority-t.priority;if(t.prefix&&a.prefix&&t.prefix!==a.prefix){if(t.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(t.prefix))return 1}if(t.suffix&&a.suffix&&t.suffix!==a.suffix){if(t.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(t.suffix))return 1}return t.prefix&&!a.prefix?-1:!t.prefix&&a.prefix?1:t.suffix&&!a.suffix?-1:!t.suffix&&a.suffix?1:t.caseSensitive&&!a.caseSensitive?-1:!t.caseSensitive&&a.caseSensitive?1:0}function gs(t){var a,r,i;if(t.pathless)for(const o of t.pathless)gs(o);if(t.static)for(const o of t.static.values())gs(o);if(t.staticInsensitive)for(const o of t.staticInsensitive.values())gs(o);if((a=t.dynamic)!=null&&a.length){t.dynamic.sort(dh);for(const o of t.dynamic)gs(o)}if((r=t.optional)!=null&&r.length){t.optional.sort(dh);for(const o of t.optional)gs(o)}if((i=t.wildcard)!=null&&i.length){t.wildcard.sort(dh);for(const o of t.wildcard)gs(o)}}function rr(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}function fh(t,a,r,i,o){return{kind:t,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:r,prefix:i,suffix:o}}function wE(t,a){const r=rr("/"),i=new Uint16Array(6);for(const o of t)wu(!1,i,o,1,r,0);gs(r),a.masksTree=r,a.flatCache=Kl(1e3)}function jE(t,a){t||(t="/");const r=a.flatCache.get(t);if(r)return r;const i=wm(t,a.masksTree);return a.flatCache.set(t,i),i}function EE(t,a,r,i,o){t||(t="/"),i||(i="/");const d=a?`case\0${t}`:t;let f=o.singleCache.get(d);return f||(f=rr("/"),wu(a,new Uint16Array(6),{from:t},1,f,0),o.singleCache.set(d,f)),wm(i,f,r)}function NE(t,a,r=!1){const i=r?t:`nofuzz\0${t}`,o=a.matchCache.get(i);if(o!==void 0)return o;t||(t="/");let d;try{d=wm(t,a.segmentTree,r)}catch(f){if(f instanceof URIError)d=null;else throw f}return d&&(d.branch=h0(d.route)),a.matchCache.set(i,d),d}function RE(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function CE(t,a=!1,r){const i=rr(t.fullPath),o=new Uint16Array(6),d={},f={};let m=0;return wu(a,o,t,1,i,0,g=>{if(r==null||r(g,m),g.id in d&&Ma(),d[g.id]=g,m!==0&&g.path){const p=RE(g.fullPath);(!f[p]||g.fullPath.endsWith("/"))&&(f[p]=g)}m++}),gs(i),{processedTree:{segmentTree:i,singleCache:Kl(1e3),matchCache:Kl(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:f}}function wm(t,a,r=!1){const i=t.split("/"),o=AE(t,i,a,r);if(!o)return null;const[d]=f0(t,i,o);return{route:o.node.route,rawParams:d}}function f0(t,a,r){var v,y,x,j,w,S,E,_,C,T;const i=_E(r.node);let o=null;const d=Object.create(null);let f=((v=r.extract)==null?void 0:v.part)??0,m=((y=r.extract)==null?void 0:y.node)??0,g=((x=r.extract)==null?void 0:x.path)??0,p=((j=r.extract)==null?void 0:j.segment)??0;for(;m<i.length;f++,m++,g++,p++){const A=i[m];if(A.kind===Rs)break;if(A.kind===u0){p--,f--,g--;continue}const B=a[f],q=g;if(B&&(g+=B.length),A.kind===1){o??(o=r.node.fullPath.split("/"));const k=o[p],D=((w=A.prefix)==null?void 0:w.length)??0;if(k.charCodeAt(D)===123){const z=((S=A.suffix)==null?void 0:S.length)??0,H=k.substring(D+2,k.length-z-1),X=B.substring(D,B.length-z);d[H]=decodeURIComponent(X)}else{const z=k.substring(1);d[z]=decodeURIComponent(B)}}else if(A.kind===3){if(r.skipped&1<<m){f--,g=q-1;continue}o??(o=r.node.fullPath.split("/"));const k=o[p],D=((E=A.prefix)==null?void 0:E.length)??0,z=((_=A.suffix)==null?void 0:_.length)??0,H=k.substring(D+3,k.length-z-1),X=A.suffix||A.prefix?B.substring(D,B.length-z):B;X&&(d[H]=decodeURIComponent(X))}else if(A.kind===2){const k=A,D=t.substring(q+(((C=k.prefix)==null?void 0:C.length)??0),t.length-(((T=k.suffix)==null?void 0:T.length)??0)),z=decodeURIComponent(D);d["*"]=z,d._splat=z;break}}return r.rawParams&&Object.assign(d,r.rawParams),[d,{part:f,node:m,path:g,segment:p}]}function h0(t){const a=[t];for(;t.parentRoute;)t=t.parentRoute,a.push(t);return a.reverse(),a}function _E(t){const a=Array(t.depth+1);do a[t.depth]=t,t=t.parent;while(t);return a}function AE(t,a,r,i){if(t==="/"&&r.index)return{node:r.index,skipped:0};const o=!Xl(a),d=o&&t!=="/",f=a.length-(o?1:0),m=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let g=null,p=null;for(;m.length;){const v=m.pop(),{node:y,index:x,skipped:j,depth:w,statics:S,dynamics:E,optionals:_}=v;let{extract:C,rawParams:T}=v;if(y.kind===2&&y.route&&!Dc(p,v))continue;if(y.parse){if(!bb(t,a,v))continue;T=v.rawParams,C=v.extract}i&&y.route&&y.kind!==Rs&&Dc(g,v)&&(g=v);const A=x===f;if(A&&(y.route&&(!d||y.kind===Rs||y.kind===2)&&Dc(p,v)&&(p=v),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const B=A?void 0:a[x];let q;if(A&&y.index){const k={node:y.index,index:x,skipped:j,depth:w+1,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T};let D=!0;if(y.index.parse&&(bb(t,a,k)||(D=!1)),D){if(!E&&!_&&!j&&TE(S,f))return k;Dc(p,k)&&(p=k)}}if(y.wildcard)for(let k=y.wildcard.length-1;k>=0;k--){const D=y.wildcard[k],{prefix:z,suffix:H}=D;if(!(z&&(A||!(D.caseSensitive?B:q??(q=B.toLowerCase())).startsWith(z)))){if(H){if(A)continue;const X=a.slice(x).join("/").slice(-H.length);if((D.caseSensitive?X:X.toLowerCase())!==H)continue}m.push({node:D,index:f,skipped:j,depth:w+1,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T})}}if(y.optional){const k=j|1<<w,D=w+1;for(let z=y.optional.length-1;z>=0;z--){const H=y.optional[z];m.push({node:H,index:x,skipped:k,depth:D,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T})}if(!A)for(let z=y.optional.length-1;z>=0;z--){const H=y.optional[z],{prefix:X,suffix:ne}=H;if(X||ne){const se=H.caseSensitive?B:q??(q=B.toLowerCase());if(X&&!se.startsWith(X)||ne&&!se.endsWith(ne))continue}m.push({node:H,index:x+1,skipped:j,depth:D,statics:S,dynamics:E,optionals:_+Mc(f,x),extract:C,rawParams:T})}}if(!A&&y.dynamic&&B)for(let k=y.dynamic.length-1;k>=0;k--){const D=y.dynamic[k],{prefix:z,suffix:H}=D;if(z||H){const X=D.caseSensitive?B:q??(q=B.toLowerCase());if(z&&!X.startsWith(z)||H&&!X.endsWith(H))continue}m.push({node:D,index:x+1,skipped:j,depth:w+1,statics:S,dynamics:E+Mc(f,x),optionals:_,extract:C,rawParams:T})}if(!A&&y.staticInsensitive){const k=y.staticInsensitive.get(q??(q=B.toLowerCase()));k&&m.push({node:k,index:x+1,skipped:j,depth:w+1,statics:S+Mc(f,x),dynamics:E,optionals:_,extract:C,rawParams:T})}if(!A&&y.static){const k=y.static.get(B);k&&m.push({node:k,index:x+1,skipped:j,depth:w+1,statics:S+Mc(f,x),dynamics:E,optionals:_,extract:C,rawParams:T})}if(y.pathless){const k=w+1;for(let D=y.pathless.length-1;D>=0;D--){const z=y.pathless[D];m.push({node:z,index:x,skipped:j,depth:k,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T})}}}if(p)return p;if(i&&g){let v=g.index;for(let x=0;x<g.index;x++)v+=a[x].length;const y=v===t.length?"/":t.slice(v);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(y),g}return null}function Mc(t,a){return 2**(t-a-1)}function TE(t,a){return t===2**(a-1)-1}function bb(t,a,r){let i,o;try{[i,o]=f0(t,a,r)}catch{return null}if(r.rawParams=i,r.extract=o,!r.node.parse)return!0;try{if(r.node.parse(i)===!1)return null}catch{}return!0}function Dc(t,a){return t?a.statics>t.statics||a.statics===t.statics&&(a.dynamics>t.dynamics||a.dynamics===t.dynamics&&(a.optionals>t.optionals||a.optionals===t.optionals&&((a.node.kind===Rs)>(t.node.kind===Rs)||a.node.kind===Rs==(t.node.kind===Rs)&&a.depth>t.depth))):!0}function $c(t){return jm(t.filter(a=>a!==void 0).join("/"))}function jm(t){return t.replace(/\/{2,}/g,"/")}function m0(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function Oa(t){const a=t.length;return a>1&&t[a-1]==="/"?t.replace(/\/{1,}$/,""):t}function p0(t){return Oa(m0(t))}function ru(t,a){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${a}/`?t.slice(0,-1):t}function kE(t,a,r){return ru(t,r)===ru(a,r)}function OE({base:t,to:a,trailingSlash:r="never",cache:i}){const o=a.startsWith("/"),d=!o&&a===".";let f;if(i){f=o?a:d?t:t+"\0"+a;const p=i.get(f);if(p)return p}let m;if(d)m=t.split("/");else if(o)m=a.split("/");else{for(m=t.split("/");m.length>1&&Xl(m)==="";)m.pop();const p=a.split("/");for(let v=0,y=p.length;v<y;v++){const x=p[v];x===""?v?v===y-1&&m.push(x):m=[x]:x===".."?m.pop():x==="."||m.push(x)}}m.length>1&&(Xl(m)===""?r==="never"&&m.pop():r==="always"&&m.push(""));const g=jm(m.join("/"))||"/";return f&&i&&i.set(f,g),g}function ME(t){const a=new Map(t.map(o=>[encodeURIComponent(o),o])),r=Array.from(a.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(r,"g");return o=>o.replace(i,d=>a.get(d)??d)}function hh(t,a,r){const i=a[t];return typeof i!="string"?i:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(o=>Sb(o,r)).join("/"):Sb(i,r)}function xb({path:t,params:a,decoder:r,...i}){let o=!1;const d=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:d,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:d,isMissingParams:o};const f=t.length;let m=0,g,p="";for(;m<f;){const v=m;g=d0(t,v,g);const y=g[5];if(m=y+1,v===y)continue;const x=g[0];if(x===0){p+="/"+t.substring(v,y);continue}if(x===2){const j=a._splat;d._splat=j,d["*"]=j;const w=t.substring(v,g[1]),S=t.substring(g[4],y);if(!j){o=!0,(w||S)&&(p+="/"+w+S);continue}const E=hh("_splat",a,r);p+="/"+w+E+S;continue}if(x===1){const j=t.substring(g[2],g[3]);!o&&!(j in a)&&(o=!0),d[j]=a[j];const w=t.substring(v,g[1]),S=t.substring(g[4],y),E=hh(j,a,r)??"undefined";p+="/"+w+E+S;continue}if(x===3){const j=t.substring(g[2],g[3]),w=a[j];if(w==null)continue;d[j]=w;const S=t.substring(v,g[1]),E=t.substring(g[4],y),_=hh(j,a,r)??"";p+="/"+S+_+E;continue}}return t.endsWith("/")&&(p+="/"),{usedParams:d,interpolatedPath:p||"/",isMissingParams:o}}function Sb(t,a){const r=encodeURIComponent(t);return(a==null?void 0:a(r))??r}function zt(t){return(t==null?void 0:t.isNotFound)===!0}function DE(t,a=String){const r=new URLSearchParams;for(const i in t){const o=t[i];o!==void 0&&r.set(i,a(o))}return r.toString()}function mh(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function LE(t){const a=new URLSearchParams(t),r=Object.create(null);for(const[i,o]of a.entries()){const d=r[i];d==null?r[i]=mh(o):Array.isArray(d)?d.push(mh(o)):r[i]=[d,mh(o)]}return r}const zE=UE(JSON.parse),BE=PE(JSON.stringify,JSON.parse);function UE(t){return a=>{a[0]==="?"&&(a=a.substring(1));const r=LE(a);for(const i in r){const o=r[i];if(typeof o=="string")try{r[i]=t(o)}catch{}}return r}}function PE(t,a){const r=typeof a=="function";function i(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(r&&typeof o=="string")try{return a(o),t(o)}catch{}return o}return o=>{const d=DE(o,i);return d?`?${d}`:""}}const yr="__root__";function FE(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const a=new Headers(t.headers);t.href&&a.get("Location")===null&&a.set("Location",t.href);const r=new Response(null,{status:t.statusCode,headers:a});if(r.options=t,t.throw)throw r;return r}function Jt(t){return t instanceof Response&&!!t.options}const Fh=t=>{var a;if(!t.rendered)return t.rendered=!0,(a=t.onReady)==null?void 0:a.call(t)},HE=t=>t.stores.matchesId.get().some(a=>{var r;return(r=t.stores.matchStores.get(a))==null?void 0:r.get()._forcePending}),ju=(t,a)=>!!(t.preload&&!t.router.stores.matchStores.has(a)),vr=(t,a,r=!0)=>{const i={...t.router.options.context??{}},o=r?a:a-1;for(let d=0;d<=o;d++){const f=t.matches[d];if(!f)continue;const m=t.router.getMatch(f.id);m&&Object.assign(i,m.__routeContext,m.__beforeLoadContext)}return i},wb=(t,a)=>{if(!t.matches.length)return;const r=a.routeId,i=t.matches.findIndex(f=>f.routeId===t.router.routeTree.id),o=i>=0?i:0;let d=r?t.matches.findIndex(f=>f.routeId===r):t.firstBadMatchIndex??t.matches.length-1;d<0&&(d=o);for(let f=d;f>=0;f--){const m=t.matches[f];if(t.router.looseRoutesById[m.routeId].options.notFoundComponent)return f}return r?d:o},Cs=(t,a,r)=>{var i,o,d;if(!(!Jt(r)&&!zt(r)))throw Jt(r)&&r.redirectHandled&&!r.options.reloadDocument||(a&&((i=a._nonReactive.beforeLoadPromise)==null||i.resolve(),(o=a._nonReactive.loaderPromise)==null||o.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=r,t.updateMatch(a.id,f=>({...f,status:Jt(r)?"redirected":zt(r)?"notFound":f.status==="pending"?"success":f.status,context:vr(t,a.index),isFetching:!1,error:r})),zt(r)&&!r.routeId&&(r.routeId=a.routeId),(d=a._nonReactive.loadPromise)==null||d.resolve()),Jt(r)&&(t.rendered=!0,r.options._fromLocation=t.location,r.redirectHandled=!0,r=t.router.resolveRedirect(r))),r},g0=(t,a)=>{const r=t.router.getMatch(a);return!!(!r||r._nonReactive.dehydrated)},jb=(t,a,r)=>{const i=vr(t,r);t.updateMatch(a,o=>({...o,context:i}))},Gl=(t,a,r)=>{var f,m;const{id:i,routeId:o}=t.matches[a],d=t.router.looseRoutesById[o];if(r instanceof Promise)throw r;t.firstBadMatchIndex??(t.firstBadMatchIndex=a),Cs(t,t.router.getMatch(i),r);try{(m=(f=d.options).onError)==null||m.call(f,r)}catch(g){r=g,Cs(t,t.router.getMatch(i),r)}t.updateMatch(i,g=>{var p,v;return(p=g._nonReactive.beforeLoadPromise)==null||p.resolve(),g._nonReactive.beforeLoadPromise=void 0,(v=g._nonReactive.loadPromise)==null||v.resolve(),{...g,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!t.preload&&!Jt(r)&&!zt(r)&&(t.serialError??(t.serialError=r))},y0=(t,a,r,i)=>{var d;if(i._nonReactive.pendingTimeout!==void 0)return;const o=r.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!ju(t,a)&&(r.options.loader||r.options.beforeLoad||b0(r))&&typeof o=="number"&&o!==1/0&&(r.options.pendingComponent??((d=t.router.options)==null?void 0:d.defaultPendingComponent))){const f=setTimeout(()=>{Fh(t)},o);i._nonReactive.pendingTimeout=f}},qE=(t,a,r)=>{const i=t.router.getMatch(a);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;y0(t,a,r,i);const o=()=>{const d=t.router.getMatch(a);d.preload&&(d.status==="redirected"||d.status==="notFound")&&Cs(t,d,d.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(o):o()},GE=(t,a,r,i)=>{const o=t.router.getMatch(a);let d=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Li(()=>{d==null||d.resolve(),d=void 0});const{paramsError:f,searchError:m}=o;f&&Gl(t,r,f),m&&Gl(t,r,m),y0(t,a,i,o);const g=new AbortController;let p=!1;const v=()=>{p||(p=!0,t.updateMatch(a,A=>({...A,isFetching:"beforeLoad",fetchCount:A.fetchCount+1,abortController:g})))},y=()=>{var A;(A=o._nonReactive.beforeLoadPromise)==null||A.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(a,B=>({...B,isFetching:!1}))};if(!i.options.beforeLoad){t.router.batch(()=>{v(),y()});return}o._nonReactive.beforeLoadPromise=Li();const x={...vr(t,r,!1),...o.__routeContext},{search:j,params:w,cause:S}=o,E=ju(t,a),_={search:j,abortController:g,params:w,preload:E,context:x,location:t.location,navigate:A=>t.router.navigate({...A,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:E?"preload":S,matches:t.matches,routeId:i.id,...t.router.options.additionalContext},C=A=>{if(A===void 0){t.router.batch(()=>{v(),y()});return}(Jt(A)||zt(A))&&(v(),Gl(t,r,A)),t.router.batch(()=>{v(),t.updateMatch(a,B=>({...B,__beforeLoadContext:A})),y()})};let T;try{if(T=i.options.beforeLoad(_),Zl(T))return v(),T.catch(A=>{Gl(t,r,A)}).then(C)}catch(A){v(),Gl(t,r,A)}C(T)},IE=(t,a)=>{const{id:r,routeId:i}=t.matches[a],o=t.router.looseRoutesById[i],d=()=>m(),f=()=>GE(t,r,a,o),m=()=>{if(g0(t,r))return;const g=qE(t,r,o);return Zl(g)?g.then(f):f()};return d()},QE=(t,a,r)=>{var d,f,m,g,p,v;const i=t.router.getMatch(a);if(!i||!r.options.head&&!r.options.scripts&&!r.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(f=(d=r.options).head)==null?void 0:f.call(d,o),(g=(m=r.options).scripts)==null?void 0:g.call(m,o),(v=(p=r.options).headers)==null?void 0:v.call(p,o)]).then(([y,x,j])=>({meta:y==null?void 0:y.meta,links:y==null?void 0:y.links,headScripts:y==null?void 0:y.scripts,headers:j,scripts:x,styles:y==null?void 0:y.styles}))},v0=(t,a,r,i,o)=>{const d=a[i-1],{params:f,loaderDeps:m,abortController:g,cause:p}=t.router.getMatch(r),v=vr(t,i),y=ju(t,r);return{params:f,deps:m,preload:!!y,parentMatchPromise:d,abortController:g,context:v,location:t.location,navigate:x=>t.router.navigate({...x,_fromLocation:t.location}),cause:y?"preload":p,route:o,...t.router.options.additionalContext}},Eb=async(t,a,r,i,o)=>{var d,f,m,g,p;try{const v=t.router.getMatch(r);try{(!(l0??t.router.isServer)||v.ssr===!0)&&Wl(o);const y=o.options.loader,x=typeof y=="function"?y:y==null?void 0:y.handler,j=x==null?void 0:x(v0(t,a,r,i,o)),w=!!x&&Zl(j);if((w||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||v._nonReactive.minPendingPromise)&&t.updateMatch(r,E=>({...E,isFetching:"loader"})),x){const E=w?await j:j;Cs(t,t.router.getMatch(r),E),E!==void 0&&t.updateMatch(r,_=>({..._,loaderData:E}))}o._lazyPromise&&await o._lazyPromise;const S=v._nonReactive.minPendingPromise;S&&await S,o._componentsPromise&&await o._componentsPromise,t.updateMatch(r,E=>({...E,error:void 0,context:vr(t,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(y){let x=y;if((x==null?void 0:x.name)==="AbortError"){if(v.abortController.signal.aborted){(d=v._nonReactive.loaderPromise)==null||d.resolve(),v._nonReactive.loaderPromise=void 0;return}t.updateMatch(r,w=>({...w,status:w.status==="pending"?"success":w.status,isFetching:!1,context:vr(t,i)}));return}const j=v._nonReactive.minPendingPromise;j&&await j,zt(y)&&await((m=(f=o.options.notFoundComponent)==null?void 0:f.preload)==null?void 0:m.call(f)),Cs(t,t.router.getMatch(r),y);try{(p=(g=o.options).onError)==null||p.call(g,y)}catch(w){x=w,Cs(t,t.router.getMatch(r),w)}!Jt(x)&&!zt(x)&&await Wl(o,["errorComponent"]),t.updateMatch(r,w=>({...w,error:x,context:vr(t,i),status:"error",isFetching:!1}))}}catch(v){const y=t.router.getMatch(r);y&&(y._nonReactive.loaderPromise=void 0),Cs(t,y,v)}},VE=async(t,a,r)=>{var j,w,S,E;async function i(_,C,T,A,B){const q=Date.now()-C.updatedAt,k=_?B.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:B.options.staleTime??t.router.options.defaultStaleTime??0,D=B.options.shouldReload,z=typeof D=="function"?D(v0(t,a,o,r,B)):D,{status:H,invalid:X}=A,ne=q>=k&&(!!t.forceStaleReload||A.cause==="enter"||T!==void 0&&T!==A.id);f=H==="success"&&(X||(z??ne)),_&&B.options.preload===!1||(f&&!t.sync&&v?(m=!0,(async()=>{var se,te;try{await Eb(t,a,o,r,B);const ce=t.router.getMatch(o);(se=ce._nonReactive.loaderPromise)==null||se.resolve(),(te=ce._nonReactive.loadPromise)==null||te.resolve(),ce._nonReactive.loaderPromise=void 0,ce._nonReactive.loadPromise=void 0}catch(ce){Jt(ce)&&await t.router.navigate(ce.options)}})()):H!=="success"||f?await Eb(t,a,o,r,B):jb(t,o,r))}const{id:o,routeId:d}=t.matches[r];let f=!1,m=!1;const g=t.router.looseRoutesById[d],p=g.options.loader,v=((typeof p=="function"||p==null?void 0:p.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(g0(t,o)){if(!t.router.getMatch(o))return t.matches[r];jb(t,o,r)}else{const _=t.router.getMatch(o),C=t.router.stores.matchesId.get()[r],T=((j=C&&t.router.stores.matchStores.get(C)||null)==null?void 0:j.routeId)===d?C:(w=t.router.stores.matches.get().find(B=>B.routeId===d))==null?void 0:w.id,A=ju(t,o);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!t.sync&&!_.preload&&v)return _;await _._nonReactive.loaderPromise;const B=t.router.getMatch(o),q=B._nonReactive.error||B.error;q&&Cs(t,B,q),B.status==="pending"&&await i(A,_,T,B,g)}else{const B=A&&!t.router.stores.matchStores.has(o),q=t.router.getMatch(o);q._nonReactive.loaderPromise=Li(),B!==q.preload&&t.updateMatch(o,k=>({...k,preload:B})),await i(A,_,T,q,g)}}const y=t.router.getMatch(o);m||((S=y._nonReactive.loaderPromise)==null||S.resolve(),(E=y._nonReactive.loadPromise)==null||E.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,m||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const x=m?y.isFetching:!1;return x!==y.isFetching||y.invalid!==!1?(t.updateMatch(o,_=>({..._,isFetching:x,invalid:!1})),t.router.getMatch(o)):y};async function Nb(t){var x,j;const a=t,r=[];HE(a.router)&&Fh(a);let i;for(let w=0;w<a.matches.length;w++){try{const S=IE(a,w);Zl(S)&&await S}catch(S){if(Jt(S))throw S;if(zt(S))i=S;else if(!a.preload)throw S;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const o=a.firstBadMatchIndex??a.matches.length,d=i&&!a.preload?wb(a,i):void 0,f=i&&a.preload?0:d!==void 0?Math.min(d+1,o):o;let m,g;for(let w=0;w<f;w++)r.push(VE(a,r,w));try{await Promise.all(r)}catch{const w=await Promise.allSettled(r);for(const S of w){if(S.status!=="rejected")continue;const E=S.reason;if(Jt(E))throw E;zt(E)?m??(m=E):g??(g=E)}if(g!==void 0)throw g}const p=m??(i&&!a.preload?i:void 0);let v=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!p&&i&&a.preload)return a.matches;if(p){const w=wb(a,p);w===void 0&&Ma();const S=a.matches[w],E=a.router.looseRoutesById[S.routeId],_=(x=a.router.options)==null?void 0:x.defaultNotFoundComponent;!E.options.notFoundComponent&&_&&(E.options.notFoundComponent=_),p.routeId=S.routeId;const C=S.routeId===a.router.routeTree.id;a.updateMatch(S.id,T=>({...T,...C?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),v=w,await Wl(E,["notFoundComponent"])}else if(!a.preload){const w=a.matches[0];w.globalNotFound||(j=a.router.getMatch(w.id))!=null&&j.globalNotFound&&a.updateMatch(w.id,S=>({...S,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const w=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Wl(w,["errorComponent"])}for(let w=0;w<=v;w++){const{id:S,routeId:E}=a.matches[w],_=a.router.looseRoutesById[E];try{const C=QE(a,S,_);if(C){const T=await C;a.updateMatch(S,A=>({...A,...T}))}}catch(C){console.error(`Error executing head for route ${E}:`,C)}}const y=Fh(a);if(Zl(y)&&await y,p)throw p;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function Rb(t,a){const r=a.map(i=>{var o,d;return(d=(o=t.options[i])==null?void 0:o.preload)==null?void 0:d.call(o)}).filter(Boolean);if(r.length!==0)return Promise.all(r)}function Wl(t,a=Xc){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(i=>{const{id:o,...d}=i.options;Object.assign(t.options,d),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const r=()=>t._componentsLoaded?void 0:a===Xc?(()=>{if(t._componentsPromise===void 0){const i=Rb(t,Xc);i?t._componentsPromise=i.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():Rb(t,a);return t._lazyPromise?t._lazyPromise.then(r):r()}function b0(t){var a;for(const r of Xc)if((a=t.options[r])!=null&&a.preload)return!0;return!1}const Xc=["component","errorComponent","pendingComponent","notFoundComponent"];function YE(t){return{input:({url:a})=>{for(const r of t)a=Hh(r,a);return a},output:({url:a})=>{for(let r=t.length-1;r>=0;r--)a=x0(t[r],a);return a}}}function $E(t){const a=p0(t.basepath),r=`/${a}`,i=t.caseSensitive?r:r.toLowerCase(),o=`${i}/`;return{input:({url:d})=>{const f=t.caseSensitive?d.pathname:d.pathname.toLowerCase();return f===i?d.pathname="/":f.startsWith(o)&&(d.pathname=d.pathname.slice(r.length)),d},output:({url:d})=>(d.pathname=$c(["/",a,d.pathname]),d)}}function Hh(t,a){var i;const r=(i=t==null?void 0:t.input)==null?void 0:i.call(t,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function x0(t,a){var i;const r=(i=t==null?void 0:t.output)==null?void 0:i.call(t,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function XE(t,a){const{createMutableStore:r,createReadonlyStore:i,batch:o,init:d}=a,f=new Map,m=new Map,g=new Map,p=r(t.status),v=r(t.loadedAt),y=r(t.isLoading),x=r(t.isTransitioning),j=r(t.location),w=r(t.resolvedLocation),S=r(t.statusCode),E=r(t.redirect),_=r([]),C=r([]),T=r([]),A=i(()=>ph(f,_.get())),B=i(()=>ph(m,C.get())),q=i(()=>ph(g,T.get())),k=i(()=>_.get()[0]),D=i(()=>_.get().some(V=>{var ee;return((ee=f.get(V))==null?void 0:ee.get().status)==="pending"})),z=i(()=>{var V;return{locationHref:j.get().href,resolvedLocationHref:(V=w.get())==null?void 0:V.href,status:p.get()}}),H=i(()=>({status:p.get(),loadedAt:v.get(),isLoading:y.get(),isTransitioning:x.get(),matches:A.get(),location:j.get(),resolvedLocation:w.get(),statusCode:S.get(),redirect:E.get()})),X=Kl(64);function ne(V){let ee=X.get(V);return ee||(ee=i(()=>{const ye=_.get();for(const ae of ye){const L=f.get(ae);if(L&&L.routeId===V)return L.get()}}),X.set(V,ee)),ee}const se={status:p,loadedAt:v,isLoading:y,isTransitioning:x,location:j,resolvedLocation:w,statusCode:S,redirect:E,matchesId:_,pendingIds:C,cachedIds:T,matches:A,pendingMatches:B,cachedMatches:q,firstId:k,hasPending:D,matchRouteDeps:z,matchStores:f,pendingMatchStores:m,cachedMatchStores:g,__store:H,getRouteMatchStore:ne,setMatches:te,setPending:ce,setCached:P};te(t.matches),d==null||d(se);function te(V){gh(V,f,_,r,o)}function ce(V){gh(V,m,C,r,o)}function P(V){gh(V,g,T,r,o)}return se}function ph(t,a){const r=[];for(const i of a){const o=t.get(i);o&&r.push(o.get())}return r}function gh(t,a,r,i,o){const d=t.map(m=>m.id),f=new Set(d);o(()=>{for(const m of a.keys())f.has(m)||a.delete(m);for(const m of t){const g=a.get(m.id);if(!g){const p=i(m);p.routeId=m.routeId,a.set(m.id,p);continue}g.routeId=m.routeId,g.get()!==m&&g.set(m)}xE(r.get(),d)||r.set(d)})}var _s="__TSR_index",Cb="popstate",_b="beforeunload";function ZE(t){let a=t.getLocation();const r=new Set,i=f=>{a=t.getLocation(),r.forEach(m=>m({location:a,action:f}))},o=f=>{t.notifyOnIndexChange??!0?i(f):a=t.getLocation()},d=async({task:f,navigateOpts:m,...g})=>{var y,x;if((m==null?void 0:m.ignoreBlocker)??!1){f();return}const p=((y=t.getBlockers)==null?void 0:y.call(t))??[],v=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&p.length&&v)for(const j of p){const w=iu(g.path,g.state);if(await j.blockerFn({currentLocation:a,nextLocation:w,action:g.type})){(x=t.onBlocked)==null||x.call(t);return}}f()};return{get location(){return a},get length(){return t.getLength()},subscribers:r,subscribe:f=>(r.add(f),()=>{r.delete(f)}),push:(f,m,g)=>{const p=a.state[_s];m=Ab(p+1,m),d({task:()=>{t.pushState(f,m),i({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:f,state:m})},replace:(f,m,g)=>{const p=a.state[_s];m=Ab(p,m),d({task:()=>{t.replaceState(f,m),i({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:f,state:m})},go:(f,m)=>{d({task:()=>{t.go(f),o({type:"GO",index:f})},navigateOpts:m,type:"GO"})},back:f=>{d({task:()=>{t.back((f==null?void 0:f.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:f,type:"BACK"})},forward:f=>{d({task:()=>{t.forward((f==null?void 0:f.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:f,type:"FORWARD"})},canGoBack:()=>a.state[_s]!==0,createHref:f=>t.createHref(f),block:f=>{var g;if(!t.setBlockers)return()=>{};const m=((g=t.getBlockers)==null?void 0:g.call(t))??[];return t.setBlockers([...m,f]),()=>{var v,y;const p=((v=t.getBlockers)==null?void 0:v.call(t))??[];(y=t.setBlockers)==null||y.call(t,p.filter(x=>x!==f))}},flush:()=>{var f;return(f=t.flush)==null?void 0:f.call(t)},destroy:()=>{var f;return(f=t.destroy)==null?void 0:f.call(t)},notify:i}}function Ab(t,a){a||(a={});const r=Em();return{...a,key:r,__TSR_key:r,[_s]:t}}function KE(t){var D,z;const a=typeof document<"u"?window:void 0,r=a.history.pushState,i=a.history.replaceState;let o=[];const d=()=>o,f=H=>o=H,m=(H=>H),g=(()=>iu(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!((D=a.history.state)!=null&&D.__TSR_key)&&!((z=a.history.state)!=null&&z.key)){const H=Em();a.history.replaceState({[_s]:0,key:H,__TSR_key:H},"")}let p=g(),v,y=!1,x=!1,j=!1,w=!1;const S=()=>p;let E,_;const C=()=>{E&&(k._ignoreSubscribers=!0,(E.isPush?a.history.pushState:a.history.replaceState)(E.state,"",E.href),k._ignoreSubscribers=!1,E=void 0,_=void 0,v=void 0)},T=(H,X,ne)=>{const se=m(X);_||(v=p),p=iu(X,ne),E={href:se,state:ne,isPush:(E==null?void 0:E.isPush)||H==="push"},_||(_=Promise.resolve().then(()=>C()))},A=H=>{p=g(),k.notify({type:H})},B=async()=>{if(x){x=!1;return}const H=g(),X=H.state[_s]-p.state[_s],ne=X===1,se=X===-1,te=!ne&&!se||y;y=!1;const ce=te?"GO":se?"BACK":"FORWARD",P=te?{type:"GO",index:X}:{type:se?"BACK":"FORWARD"};if(j)j=!1;else{const V=d();if(typeof document<"u"&&V.length){for(const ee of V)if(await ee.blockerFn({currentLocation:p,nextLocation:H,action:ce})){x=!0,a.history.go(1),k.notify(P);return}}}p=g(),k.notify(P)},q=H=>{if(w){w=!1;return}let X=!1;const ne=d();if(typeof document<"u"&&ne.length)for(const se of ne){const te=se.enableBeforeUnload??!0;if(te===!0){X=!0;break}if(typeof te=="function"&&te()===!0){X=!0;break}}if(X)return H.preventDefault(),H.returnValue=""},k=ZE({getLocation:S,getLength:()=>a.history.length,pushState:(H,X)=>T("push",H,X),replaceState:(H,X)=>T("replace",H,X),back:H=>(H&&(j=!0),w=!0,a.history.back()),forward:H=>{H&&(j=!0),w=!0,a.history.forward()},go:H=>{y=!0,a.history.go(H)},createHref:H=>m(H),flush:C,destroy:()=>{a.history.pushState=r,a.history.replaceState=i,a.removeEventListener(_b,q,{capture:!0}),a.removeEventListener(Cb,B)},onBlocked:()=>{v&&p!==v&&(p=v)},getBlockers:d,setBlockers:f,notifyOnIndexChange:!1});return a.addEventListener(_b,q,{capture:!0}),a.addEventListener(Cb,B),a.history.pushState=function(...H){const X=r.apply(a.history,H);return k._ignoreSubscribers||A("PUSH"),X},a.history.replaceState=function(...H){const X=i.apply(a.history,H);return k._ignoreSubscribers||A("REPLACE"),X},k}function WE(t){let a=t.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function iu(t,a){const r=WE(t),i=r.indexOf("#"),o=r.indexOf("?"),d=Em();return{href:r,pathname:r.substring(0,i>0?o>0?Math.min(i,o):i:o>0?o:r.length),hash:i>-1?r.substring(i):"",search:o>-1?r.slice(o,i===-1?void 0:i):"",state:a||{[_s]:0,key:d,__TSR_key:d}}}function Em(){return(Math.random()+1).toString(36).substring(7)}function vi(t,a){const r=a,i=t;return{fromLocation:r,toLocation:i,pathChanged:(r==null?void 0:r.pathname)!==i.pathname,hrefChanged:(r==null?void 0:r.href)!==i.href,hashChanged:(r==null?void 0:r.hash)!==i.hash}}const qh=new WeakMap;var JE=class{constructor(t,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=r=>r(),this.update=r=>{var v;const i=this.options,o=this.basepath??(i==null?void 0:i.basepath)??"/",d=this.basepath===void 0,f=i==null?void 0:i.rewrite;if(this.options={...i,...r},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=ME(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=KE()),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 y;this.resolvePathCache=Kl(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=XE(t2(this.latestLocation),y),f2(this)}let m=!1;const g=this.options.basepath??"/",p=this.options.rewrite;if(d||o!==g||f!==p){this.basepath=g;const y=[],x=p0(g);x&&x!=="/"&&y.push($E({basepath:g})),p&&y.push(p),this.rewrite=y.length===0?void 0:y.length===1?y[0]:YE(y),this.history&&this.updateLatestLocation(),m=!0}m&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.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 r=CE(this.routeTree,this.options.caseSensitive,(i,o)=>{i.init({originalIndex:o})});return this.options.routeMasks&&wE(this.options.routeMasks,r.processedTree),r},this.subscribe=(r,i)=>{const o={eventType:r,fn:i};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=r=>{this.subscribers.forEach(i=>{i.eventType===r.type&&i.fn(r)})},this.parseLocation=(r,i)=>{const o=({pathname:g,search:p,hash:v,href:y,state:x})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const _=this.options.parseSearch(p),C=this.options.stringifySearch(_);return{href:g+C+v,publicHref:g+C+v,pathname:ql(g).path,external:!1,searchStr:C,search:er(i==null?void 0:i.search,_),hash:ql(v.slice(1)).path,state:sr(i==null?void 0:i.state,x)}}const j=new URL(y,this.origin),w=Hh(this.rewrite,j),S=this.options.parseSearch(w.search),E=this.options.stringifySearch(S);return w.search=E,{href:w.href.replace(w.origin,""),publicHref:y,pathname:ql(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:E,search:er(i==null?void 0:i.search,S),hash:ql(w.hash.slice(1)).path,state:sr(i==null?void 0:i.state,x)}},d=o(r),{__tempLocation:f,__tempKey:m}=d.state;if(f&&(!m||m===this.tempLocationKey)){const g=o(f);return g.state.key=d.state.key,g.state.__TSR_key=d.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:d}}return d},this.resolvePathWithBase=(r,i)=>OE({base:r,to:i.includes("//")?jm(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(r,i,o)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:i},o):this.matchRoutesInternal(r,i),this.getMatchedRoutes=r=>n2({pathname:r,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=r=>{const i=this.getMatch(r);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(r=>{this.cancelMatch(r)}),this.stores.matchesId.get().forEach(r=>{var o;if(this.stores.pendingMatchStores.has(r))return;const i=(o=this.stores.matchStores.get(r))==null?void 0:o.get();i&&(i.status==="pending"||i.isFetching==="loader")&&this.cancelMatch(r)})},this.buildLocation=r=>{const i=(d={})=>{var X,ne;const f=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(f);d.from;const g=d.unsafeRelative==="path"?f.pathname:d.from??m.fullPath,p=d.to?`${d.to}`:void 0,v=m.search,y=Object.assign(Object.create(null),m.params),x=(p==null?void 0:p.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),j=p?this.resolvePathWithBase(x,p):x,w=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?y:Object.assign(y,ar(d.params,y)),S=this.routesByPath[Oa(j)];let E;if(S)E=this.getRouteBranch(S);else if(j.includes("$"))E=[];else{const se=this.getMatchedRoutes(j);E=se.matchedRoutes,this.options.notFoundRoute&&(!se.foundRoute||se.foundRoute.path!=="/"&&se.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&c0(w))for(const se of E){const te=((X=se.options.params)==null?void 0:X.stringify)??se.options.stringifyParams;if(te)try{Object.assign(w,te(w))}catch{}}const _=r.leaveParams?j:ql(xb({path:j,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=v;if(r._includeValidateSearch&&((ne=this.options.search)!=null&&ne.strict)){const se={};E.forEach(te=>{if(te.options.validateSearch)try{Object.assign(se,Zc(te.options.validateSearch,{...se,...C}))}catch{}}),C=se}C=a2({search:C,dest:d,destRoutes:E,_includeValidateSearch:r._includeValidateSearch}),C=er(v,C);const T=this.options.stringifySearch(C),A=d.hash===!0?f.hash:d.hash?ar(d.hash,f.hash):void 0,B=A?`#${A}`:"";let q=d.state===!0?f.state:d.state?ar(d.state,f.state):{};q=sr(f.state,q);const k=`${_}${T}${B}`;let D,z,H=!1;if(this.rewrite){const se=new URL(k,this.origin),te=x0(this.rewrite,se);D=se.href.replace(se.origin,""),te.origin!==this.origin?(z=te.href,H=!0):z=te.pathname+te.search+te.hash}else D=bE(k),z=D;return{publicHref:z,href:D,pathname:_,search:C,searchStr:T,state:q,hash:A??"",external:H,unmaskOnReload:d.unmaskOnReload}},o=(d={},f)=>{const m=i(d);let g=f?i(f):void 0;if(!g){const p=Object.create(null);if(this.options.routeMasks){const v=jE(m.pathname,this.processedTree);if(v){Object.assign(p,v.rawParams);const{from:y,params:x,...j}=v.route,w=x===!1||x===null?Object.create(null):(x??!0)===!0?p:Object.assign(p,ar(x,p));f={from:r.from,...j,params:w},g=i(f)}}}return g&&(m.maskedLocation=g),m};return r.mask?o(r,{from:r.from,...r.mask}):o(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:i,...o})=>{let d;const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const v=gr(o.state,this.latestLocation.state);return p.forEach(y=>{delete o.state[y]}),v},m=Oa(this.latestLocation.href)===Oa(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=Li(()=>{g==null||g.resolve(),g=void 0}),m&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:v,...y}=o;p&&(y={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,d=o.replace?"REPLACE":"PUSH",this.history[d==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(d?{action:{type:d}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:i,hashScrollIntoView:o,viewTransition:d,ignoreBlocker:f,href:m,...g}={})=>{if(m){const y=this.history.location.state.__TSR_index,x=iu(m,{__TSR_index:r?y:y+1}),j=new URL(x.pathname,this.origin);g.to=Hh(this.rewrite,j).pathname,g.search=this.options.parseSearch(x.search),g.hash=x.hash.slice(1)}const p=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const v=this.commitLocation({...p,viewTransition:d,replace:r,resetScroll:i,hashScrollIntoView:o,ignoreBlocker:f});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:r,reloadDocument:i,href:o,publicHref:d,...f})=>{var g,p;let m=!1;if(o)try{new URL(`${o}`),m=!0}catch{}if(m&&!i&&(i=!0),i){if(r!==void 0||!o){const y=this.buildLocation({to:r,...f});o=o??y.publicHref,d=d??y.publicHref}const v=!m&&d?d:o;if(su(v,this.protocolAllowlist))return Promise.resolve();if(!f.ignoreBlocker){const y=((p=(g=this.history).getBlockers)==null?void 0:p.call(g))??[];for(const x of y)if(x!=null&&x.blockerFn&&await x.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return f.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...f,href:o,to:r,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const r=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter(o=>!r.some(d=>d.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(r),this.stores.setCached(i)})},this.load=async r=>{var p;const i=(p=r==null?void 0:r.action)==null?void 0:p.type;let o,d,f;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(f=new Promise(v=>{this.startTransition(async()=>{var y;try{this.beforeLoad(),i?qh.set(this.latestLocation,i):qh.delete(this.latestLocation);const x=this.latestLocation,j=vi(x,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...j}),this.emit({type:"onBeforeLoad",...j}),await Nb({router:this,sync:r==null?void 0:r.sync,forceStaleReload:m.href===x.href,matches:this.stores.pendingMatches.get(),location:x,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var C,T;let w=null,S=null,E=null,_=null;this.batch(()=>{const A=this.stores.pendingMatches.get(),B=A.length,q=this.stores.matches.get();w=B?q.filter(z=>!this.stores.pendingMatchStores.has(z.id)):null;const k=new Set;for(const z of this.stores.pendingMatchStores.values())z.routeId&&k.add(z.routeId);const D=new Set;for(const z of this.stores.matchStores.values())z.routeId&&D.add(z.routeId);S=B?q.filter(z=>!k.has(z.routeId)):null,E=B?A.filter(z=>!D.has(z.routeId)):null,_=B?A.filter(z=>D.has(z.routeId)):q,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),B&&(this.stores.setMatches(A),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...w.filter(z=>z.status!=="error"&&z.status!=="notFound"&&z.status!=="redirected")]),this.clearExpiredCache())});for(const[A,B]of[[S,"onLeave"],[E,"onEnter"],[_,"onStay"]])if(A)for(const q of A)(T=(C=this.looseRoutesById[q.routeId].options)[B])==null||T.call(C,q)})})}})}catch(x){Jt(x)?(o=x,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):zt(x)&&(d=x);const j=o?o.status:d?404:this.stores.matches.get().some(w=>w.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(j),this.stores.redirect.set(o)})}this.latestLoadPromise===f&&((y=this.commitLocationPromise)==null||y.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.matches.get().some(v=>v.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.set(g)},this.startViewTransition=r=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,f=this.stores.resolvedLocation.get(),m=typeof i.types=="function"?i.types(vi(d,f)):i.types;if(m===!1){r();return}o={update:r,types:m}}else o=r;document.startViewTransition(o)}else r()},this.updateMatch=(r,i)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(r);if(o){o.set(i);return}const d=this.stores.matchStores.get(r);if(d){d.set(i);return}const f=this.stores.cachedMatchStores.get(r);if(f){const m=i(f.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(g=>g.filter(p=>p!==r)):f.set(m)}})},this.getMatch=r=>{var i,o,d;return((i=this.stores.cachedMatchStores.get(r))==null?void 0:i.get())??((o=this.stores.pendingMatchStores.get(r))==null?void 0:o.get())??((d=this.stores.matchStores.get(r))==null?void 0:d.get())},this.invalidate=r=>{const i=o=>{var d;return((d=r==null?void 0:r.filter)==null?void 0:d.call(r,o))??!0?{...o,invalid:!0,...r!=null&&r.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(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.getParsedLocationHref=r=>r.publicHref||"/",this.resolveRedirect=r=>{const i=r.headers.get("Location");if(!r.options.href||r.options._builtLocation){const o=r.options._builtLocation??this.buildLocation(r.options),d=this.getParsedLocationHref(o);r.options.href=d,r.headers.set("Location",d)}else if(i)try{const o=new URL(i);if(this.origin&&o.origin===this.origin){const d=o.pathname+o.search+o.hash;r.options.href=d,r.headers.set("Location",d)}}catch{}if(r.options.href&&!r.options._builtLocation&&su(r.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return r.headers.get("Location")||r.headers.set("Location",r.options.href),r},this.clearCache=r=>{const i=r==null?void 0:r.filter;i!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!i(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const r=Date.now(),i=o=>{const d=this.looseRoutesById[o.routeId];if(!d.options.loader)return!0;const f=(o.preload?d.options.preloadGcTime??this.options.defaultPreloadGcTime:d.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:r-o.updatedAt>=f};this.clearCache({filter:i})},this.loadRouteChunk=Wl,this.preloadRoute=async r=>{const i=r._builtLocation??this.buildLocation(r);let o=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:r});const d=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),f=new Set([...d,...this.stores.cachedIds.get()]),m=o.filter(g=>!f.has(g.id));if(m.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...m])}try{return o=await Nb({router:this,matches:o,location:i,preload:!0,updateMatch:(g,p)=>{d.has(g)?o=o.map(v=>v.id===g?p(v):v):this.updateMatch(g,p)}}),o}catch(g){if(Jt(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:i});zt(g)||console.error(g);return}},this.matchRoute=(r,i)=>{const o={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},d=this.buildLocation(o);if(i!=null&&i.pending&&this.stores.status.get()!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),m=EE(d.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!m||r.params&&!gr(m.rawParams,r.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?gr(f.search,d.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(r=>r.status==="notFound"||r.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??BE,parseSearch:t.parseSearch??zE,protocolAllowlist:t.protocolAllowlist??vE}),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:t,routesByPath:a,processedTree:r}){this.routesById=t,this.routesByPath=a,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(t){let a=this.routeBranchCache.get(t);return a||(a=h0(t),this.routeBranchCache.set(t,a)),a}get looseRoutesById(){return this.routesById}getParentContext(t){return t!=null&&t.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,a){var v,y;const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:o}=r;let{matchedRoutes:d}=r,f=!1;(i?i.path!=="/"&&o["**"]:Oa(t.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:f=!0);const m=f?r2(this.options.notFoundMode,d):void 0,g=new Array(d.length),p=new Map;for(const x of this.stores.matchStores.values())x.routeId&&p.set(x.routeId,x.get());for(let x=0;x<d.length;x++){const j=d[x],w=g[x-1];let S,E,_;{const te=(w==null?void 0:w.search)??t.search,ce=(w==null?void 0:w._strictSearch)??void 0;try{const P=Zc(j.options.validateSearch,{...te})??void 0;S={...te,...P},E={...ce,...P},_=void 0}catch(P){let V=P;if(P instanceof lu||(V=new lu(P.message,{cause:P})),a!=null&&a.throwOnError)throw V;S=te,E={},_=V}}const C=((y=(v=j.options).loaderDeps)==null?void 0:y.call(v,{search:S}))??"",T=C?JSON.stringify(C):"",{interpolatedPath:A,usedParams:B}=xb({path:j.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),q=j.id+A+T,k=this.getMatch(q),D=p.get(j.id),z=(k==null?void 0:k._strictParams)??B;let H;if(!k)try{Tb(j,z)}catch(te){if(zt(te)||Jt(te)?H=te:H=new e2(te.message,{cause:te}),a!=null&&a.throwOnError)throw H}Object.assign(o,z);const X=D?"stay":"enter";let ne;if(k)ne={...k,cause:X,params:(D==null?void 0:D.params)??o,_strictParams:z,search:er(D?D.search:k.search,S),_strictSearch:E};else{const te=j.options.loader||j.options.beforeLoad||j.lazyFn||b0(j)?"pending":"success";ne={id:q,ssr:j.options.ssr,index:x,routeId:j.id,params:(D==null?void 0:D.params)??o,_strictParams:z,pathname:A,updatedAt:Date.now(),search:D?er(D.search,S):S,_strictSearch:E,searchError:void 0,status:te,isFetching:!1,error:void 0,paramsError:H,__routeContext:void 0,_nonReactive:{loadPromise:Li()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:D?sr(D.loaderDeps,C):C,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:j.options.staticData||{},fullPath:j.fullPath}}a!=null&&a.preload||(ne.globalNotFound=m===j.id),ne.searchError=_;const se=this.getParentContext(w);ne.context={...se,...ne.__routeContext,...ne.__beforeLoadContext},g[x]=ne}for(let x=0;x<g.length;x++){const j=g[x],w=this.looseRoutesById[j.routeId],S=this.getMatch(j.id),E=p.get(j.routeId);if(j.params=E?er(E.params,o):o,!S){const _=g[x-1],C=this.getParentContext(_);if(w.options.context){const T={deps:j.loaderDeps,params:j.params,context:C??{},location:t,navigate:A=>this.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:j.cause,abortController:j.abortController,preload:!!j.preload,matches:g,routeId:w.id};j.__routeContext=w.options.context(T)??void 0}j.context={...C,...j.__routeContext,...j.__beforeLoadContext}}}return g}matchRoutesLightweight(t){var p;const{matchedRoutes:a,routeParams:r}=this.getMatchedRoutes(t.pathname),i=Xl(a),o={...t.search};for(const v of a)try{Object.assign(o,Zc(v.options.validateSearch,o))}catch{}const d=Xl(this.stores.matchesId.get()),f=d&&((p=this.stores.matchStores.get(d))==null?void 0:p.get()),m=f&&f.routeId===i.id&&f.pathname===t.pathname;let g;if(m)g=f.params;else{const v=Object.assign(Object.create(null),r);for(const y of a)try{Tb(y,v)}catch{}g=v}return{matchedRoutes:a,fullPath:i.fullPath,search:o,params:g}}},lu=class extends Error{},e2=class extends Error{};function t2(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Zc(t,a){if(t==null)return{};if("~standard"in t){const r=t["~standard"].validate(a);if(r instanceof Promise)throw new lu("Async validation not supported");if(r.issues)throw new lu(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in t?t.parse(a):typeof t=="function"?t(a):{}}function n2({pathname:t,routesById:a,processedTree:r}){const i=Object.create(null),o=Oa(t);let d;const f=NE(o,r,!0);return f&&(d=f.route,Object.assign(i,f.rawParams)),{matchedRoutes:(f==null?void 0:f.branch)||[a.__root__],routeParams:i,foundRoute:d}}function a2({search:t,dest:a,destRoutes:r,_includeValidateSearch:i}){return s2(r)(t,a,i??!1)}function s2(t){var o;const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const d of t){if("search"in d.options)(o=d.options.search)!=null&&o.middlewares&&a.middlewares.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const f=({search:m,next:g})=>{let p=m;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(p=d.options.preSearchFilters.reduce((y,x)=>x(y),m));const v=g(p);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((y,x)=>x(y),v):v};a.middlewares.push(f)}if(d.options.validateSearch){const f=({search:m,next:g})=>{const p=g(m);if(!a._includeValidateSearch)return p;try{return{...p,...Zc(d.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(f)}}const r=({search:d})=>{const f=a.dest;return f.search?f.search===!0?d:ar(f.search,d):{}};a.middlewares.push(r);const i=(d,f,m)=>{if(d>=m.length)return f;const g=m[d];return g({search:f,next:v=>i(d+1,v,m)})};return function(f,m,g){return a.dest=m,a._includeValidateSearch=g,i(0,f,a.middlewares)}}function r2(t,a){if(t!=="root")for(let r=a.length-1;r>=0;r--){const i=a[r];if(i.children)return i.id}return yr}function Tb(t,a){var i;const r=((i=t.options.params)==null?void 0:i.parse)??t.options.parseParams;if(r){const o=r(a);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,o)}}function i2(){try{return sessionStorage}catch{return}}const l2="tsr-scroll-restoration-v1_3",bi=i2();function o2(){try{return JSON.parse((bi==null?void 0:bi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function c2(){try{bi==null||bi.setItem(l2,JSON.stringify(hs))}catch{}}const hs=o2(),kb="data-scroll-restoration-id",u2=t=>t.state.__TSR_key||t.href;function d2(t){const a=t.getAttribute(kb);if(a)return`[${kb}="${a}"]`;let r="",i=t,o;for(;o=i.parentNode;){let d=1,f=i;for(;f=f.previousElementSibling;)d++;const m=`${i.localName}:nth-child(${d})`;r=r?`${m} > ${r}`:m,i=o}return r}let Lc=!1;const gi="window";function Gh(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Ob(t){const a=[];for(const r of t){if(r===gi)continue;const i=Gh(r);i&&a.push(i)}return a}function f2(t,a){if(t.options.scrollRestoration&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,Lc=!1;const r=t.options.getScrollRestorationKey||u2,i=new Map,o=(m,g,p)=>{const v=i.get(m)||{};v.scrollX=g,v.scrollY=p,i.set(m,v)};history.scrollRestoration="manual";const d=m=>{if(!(Lc||!t.isScrollRestoring))if(m.target===document)o(gi,scrollX,scrollY);else{const g=m.target;o(g,g.scrollLeft,g.scrollTop)}},f=m=>{if(!t.isScrollRestoring)return;const g=hs[m]||(hs[m]={});for(const[p,v]of i)p===gi?g[gi]=v:p.isConnected&&(g[d2(p)]=v)};document.addEventListener("scroll",d,!0),t.subscribe("onBeforeLoad",m=>{m.fromLocation&&f(r(m.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{f(r(t.stores.resolvedLocation.get()??t.stores.location.get())),c2()}),t.subscribe("onRendered",m=>{var w;const g=t.options.scrollRestorationBehavior,p=t.options.scrollToTopSelectors,v=t.resetNextScroll;let y;if(i.clear(),v||(t.resetNextScroll=!0),typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const x=r(m.toLocation),j=m.fromLocation&&r(m.fromLocation);if(t.isScrollRestoring&&j&&j!==x){const S=hs[j];if(S){let E=hs[x];for(const _ in S){if(_===gi){if(v)continue}else{const C=Gh(_);if(!C||v&&p&&(y??(y=Ob(p)),y.includes(C)))continue}E||(E=hs[x]={}),E[_]??(E[_]=S[_])}}}Lc=!0;try{const S=m.toLocation.hash,E=m.toLocation.state.__hashScrollIntoViewOptions??!0;let _=!1;if(v){const C=qh.get(m.toLocation),T=S&&E&&(C==="PUSH"||C==="REPLACE"),A=t.isScrollRestoring?hs[x]:void 0;if(A)for(const B in A){const{scrollX:q,scrollY:k}=A[B];if(B===gi){if(T)continue;scrollTo({top:k,left:q,behavior:g}),_=!0}else{const D=Gh(B);D&&(D.scrollLeft=q,D.scrollTop=k)}}if(!_&&!S){const B={top:0,left:0,behavior:g};if(scrollTo(B),p){y??(y=Ob(p));for(const q of y)q.scrollTo(B)}}}!_&&S&&E&&((w=document.getElementById(S))==null||w.scrollIntoView(E))}finally{Lc=!1}})}const h2="Error preloading route! ☝️";var S0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=a=>{var g,p;this.originalIndex=a.originalIndex;const r=this.options,i=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(p=(g=this.options).getParentRoute)==null?void 0:p.call(g),i?this._path=yr:this.parentRoute||Ma();let o=i?yr:r==null?void 0:r.path;o&&o!=="/"&&(o=m0(o));const d=(r==null?void 0:r.id)||o;let f=i?yr:$c([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);o==="__root__"&&(o="/"),f!=="__root__"&&(f=$c(["/",f]));const m=f==="__root__"?"/":$c([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=m,this._to=Oa(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=>FE({from:this.fullPath,...a}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},m2=class extends S0{constructor(t){super(t)}};function Nm(t){const a=t.errorComponent??Rm;return c.jsx(p2,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:r,reset:i})=>r?N.createElement(a,{error:r,reset:i}):t.children})}var p2=class extends N.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,a){const r=t.getResetKey();return a.error&&a.resetKey!==r?{resetKey:r,error:null}:{resetKey:r}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,a){this.props.onCatch&&this.props.onCatch(t,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Rm({error:t}){const[a,r]=N.useState(!1);return c.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[c.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),c.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(i=>!i),children:a?"Hide Error":"Show Error"})]}),c.jsx("div",{style:{height:".25rem"}}),a?c.jsx("div",{children:c.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?c.jsx("code",{children:t.message}):null})}):null]})}function g2({children:t,fallback:a=null}){return w0()?c.jsx(br.Fragment,{children:t}):c.jsx(br.Fragment,{children:a})}function w0(){return br.useSyncExternalStore(y2,()=>!0,()=>!1)}function y2(){return()=>{}}var j0=N.createContext(null);function vn(t){return N.useContext(j0)}var Eu=N.createContext(void 0),v2=N.createContext(void 0),et=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(et||{});function b2({update:t,notify:a,unwatched:r}){return{link:i,unlink:o,propagate:d,checkDirty:f,shallowPropagate:m};function i(p,v,y){const x=v.depsTail;if(x!==void 0&&x.dep===p)return;const j=x!==void 0?x.nextDep:v.deps;if(j!==void 0&&j.dep===p){j.version=y,v.depsTail=j;return}const w=p.subsTail;if(w!==void 0&&w.version===y&&w.sub===v)return;const S=v.depsTail=p.subsTail={version:y,dep:p,sub:v,prevDep:x,nextDep:j,prevSub:w,nextSub:void 0};j!==void 0&&(j.prevDep=S),x!==void 0?x.nextDep=S:v.deps=S,w!==void 0?w.nextSub=S:p.subs=S}function o(p,v=p.sub){const y=p.dep,x=p.prevDep,j=p.nextDep,w=p.nextSub,S=p.prevSub;return j!==void 0?j.prevDep=x:v.depsTail=x,x!==void 0?x.nextDep=j:v.deps=j,w!==void 0?w.prevSub=S:y.subsTail=S,S!==void 0?S.nextSub=w:(y.subs=w)===void 0&&r(y),j}function d(p){let v=p.nextSub,y;e:do{const x=p.sub;let j=x.flags;if(j&60?j&12?j&4?!(j&48)&&g(p,x)?(x.flags=j|40,j&=1):j=0:x.flags=j&-9|32:j=0:x.flags=j|32,j&2&&a(x),j&1){const w=x.subs;if(w!==void 0){const S=(p=w).nextSub;S!==void 0&&(y={value:v,prev:y},v=S);continue}}if((p=v)!==void 0){v=p.nextSub;continue}for(;y!==void 0;)if(p=y.value,y=y.prev,p!==void 0){v=p.nextSub;continue e}break}while(!0)}function f(p,v){let y,x=0,j=!1;e:do{const w=p.dep,S=w.flags;if(v.flags&16)j=!0;else if((S&17)===17){if(t(w)){const E=w.subs;E.nextSub!==void 0&&m(E),j=!0}}else if((S&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(y={value:p,prev:y}),p=w.deps,v=w,++x;continue}if(!j){const E=p.nextDep;if(E!==void 0){p=E;continue}}for(;x--;){const E=v.subs,_=E.nextSub!==void 0;if(_?(p=y.value,y=y.prev):p=E,j){if(t(v)){_&&m(E),v=p.sub;continue}j=!1}else v.flags&=-33;v=p.sub;const C=p.nextDep;if(C!==void 0){p=C;continue e}}return j}while(!0)}function m(p){do{const v=p.sub,y=v.flags;(y&48)===32&&(v.flags=y|16,(y&6)===2&&a(v))}while((p=p.nextSub)!==void 0)}function g(p,v){let y=v.depsTail;for(;y!==void 0;){if(y===p)return!0;y=y.prevDep}return!1}}function x2(t,a,r){var d,f,m;const i=typeof t=="object",o=i?t:void 0;return{next:(d=i?t.next:t)==null?void 0:d.bind(o),error:(f=i?t.error:a)==null?void 0:f.bind(o),complete:(m=i?t.complete:r)==null?void 0:m.bind(o)}}const Ih=[];let Kc=0;const{link:Mb,unlink:S2,propagate:w2,checkDirty:E0,shallowPropagate:Db}=b2({update(t){return t._update()},notify(t){Ih[Qh++]=t,t.flags&=~et.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=et.Mutable|et.Dirty,ou(t))}});let zc=0,Qh=0,$n,Vh=0;function N0(t){try{++Vh,t()}finally{--Vh||R0()}}function ou(t){const a=t.depsTail;let r=a!==void 0?a.nextDep:t.deps;for(;r!==void 0;)r=S2(r,t)}function R0(){if(!(Vh>0)){for(;zc<Qh;){const t=Ih[zc];Ih[zc++]=void 0,t.notify()}zc=0,Qh=0}}function Lb(t,a){const r=typeof t=="function",i=t,o={_snapshot:r?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?et.None:et.Mutable,get(){return $n!==void 0&&Mb(o,$n,Kc),o._snapshot},subscribe(d){const f=x2(d),m={current:!1},g=j2(()=>{var p;o.get(),m.current?(p=f.next)==null||p.call(f,o._snapshot):m.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(d){const f=$n,m=(a==null?void 0:a.compare)??Object.is;if(r)$n=o,++Kc,o.depsTail=void 0;else if(d===void 0)return!1;r&&(o.flags=et.Mutable|et.RecursedCheck);try{const g=o._snapshot,p=typeof d=="function"?d(g):d===void 0&&r?i(g):d;return g===void 0||!m(g,p)?(o._snapshot=p,!0):!1}finally{$n=f,r&&(o.flags&=~et.RecursedCheck),ou(o)}}};return r?(o.flags=et.Mutable|et.Dirty,o.get=function(){const d=o.flags;if(d&et.Dirty||d&et.Pending&&E0(o.deps,o)){if(o._update()){const f=o.subs;f!==void 0&&Db(f)}}else d&et.Pending&&(o.flags=d&~et.Pending);return $n!==void 0&&Mb(o,$n,Kc),o._snapshot}):o.set=function(d){if(o._update(d)){const f=o.subs;f!==void 0&&(w2(f),Db(f),R0())}},o}function j2(t){const a=()=>{const i=$n;$n=r,++Kc,r.depsTail=void 0,r.flags=et.Watching|et.RecursedCheck;try{return t()}finally{$n=i,r.flags&=~et.RecursedCheck,ou(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:et.Watching|et.RecursedCheck,notify(){const i=this.flags;i&et.Dirty||i&et.Pending&&E0(this.deps,this)?a():this.flags=et.Watching},stop(){this.flags=et.None,this.depsTail=void 0,ou(this)}};return a(),r}var yh={exports:{}},vh={},bh={exports:{}},xh={};/**
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 zb;function E2(){if(zb)return xh;zb=1;var t=co();function a(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var r=typeof Object.is=="function"?Object.is:a,i=t.useState,o=t.useEffect,d=t.useLayoutEffect,f=t.useDebugValue;function m(y,x){var j=x(),w=i({inst:{value:j,getSnapshot:x}}),S=w[0].inst,E=w[1];return d(function(){S.value=j,S.getSnapshot=x,g(S)&&E({inst:S})},[y,j,x]),o(function(){return g(S)&&E({inst:S}),y(function(){g(S)&&E({inst:S})})},[y]),f(j),j}function g(y){var x=y.getSnapshot;y=y.value;try{var j=x();return!r(y,j)}catch{return!0}}function p(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return xh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,xh}var Bb;function N2(){return Bb||(Bb=1,bh.exports=E2()),bh.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 Ub;function R2(){if(Ub)return vh;Ub=1;var t=co(),a=N2();function r(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:r,o=a.useSyncExternalStore,d=t.useRef,f=t.useEffect,m=t.useMemo,g=t.useDebugValue;return vh.useSyncExternalStoreWithSelector=function(p,v,y,x,j){var w=d(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;w=m(function(){function _(q){if(!C){if(C=!0,T=q,q=x(q),j!==void 0&&S.hasValue){var k=S.value;if(j(k,q))return A=k}return A=q}if(k=A,i(T,q))return k;var D=x(q);return j!==void 0&&j(k,D)?(T=q,k):(T=q,A=D)}var C=!1,T,A,B=y===void 0?null:y;return[function(){return _(v())},B===null?void 0:function(){return _(B())}]},[v,y,x,j]);var E=o(p,w[0],w[1]);return f(function(){S.hasValue=!0,S.value=E},[E]),g(E),E},vh}var Pb;function C2(){return Pb||(Pb=1,yh.exports=R2()),yh.exports}var _2=C2();function A2(t,a){return t===a}function en(t,a,r=A2){const i=N.useCallback(f=>{if(!t)return()=>{};const{unsubscribe:m}=t.subscribe(f);return m},[t]),o=N.useCallback(()=>t==null?void 0:t.get(),[t]);return _2.useSyncExternalStoreWithSelector(i,o,o,a,r)}var T2={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function jr(t){const a=vn(),r=N.useContext(t.from?v2:Eu),i=t.from??r,o=i?t.from?a.stores.getRouteMatchStore(i):a.stores.matchStores.get(i):void 0,d=N.useRef(void 0);return en(o??T2,f=>{if((t.shouldThrow??!0)&&!f&&Ma(),f===void 0)return;const m=t.select?t.select(f):f;if(t.structuralSharing??a.options.defaultStructuralSharing){const g=sr(d.current,m);return d.current=g,g}return m})}function C0(t){return jr({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.loaderData):a.loaderData})}function _0(t){const{select:a,...r}=t;return jr({...r,select:i=>a?a(i.loaderDeps):i.loaderDeps})}function Nu(t){return jr({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:a=>{const r=t.strict===!1?a.params:a._strictParams;return t.select?t.select(r):r}})}function qi(t){return jr({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.search):a.search})}function Cm(t){const a=vn();return N.useCallback(r=>a.navigate({...r,from:r.from??(t==null?void 0:t.from)}),[t==null?void 0:t.from,a])}function A0(t){return jr({...t,select:a=>t.select?t.select(a.context):a.context})}var Ru=i0();const k2=xm(Ru);function O2(t,a){const r=vn(),i=mE(a),{activeProps:o,inactiveProps:d,activeOptions:f,to:m,preload:g,preloadDelay:p,preloadIntentProximity:v,hashScrollIntoView:y,replace:x,startTransition:j,resetScroll:w,viewTransition:S,children:E,target:_,disabled:C,style:T,className:A,onClick:B,onBlur:q,onFocus:k,onMouseEnter:D,onMouseLeave:z,onTouchStart:H,ignoreBlocker:X,params:ne,search:se,hash:te,state:ce,mask:P,reloadDocument:V,unsafeRelative:ee,from:ye,_fromLocation:ae,...L}=t,Z=w0(),re=N.useMemo(()=>t,[r,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),ie=en(r.stores.location,Ie=>Ie,(Ie,Nt)=>Ie.href===Nt.href),le=N.useMemo(()=>{const Ie={_fromLocation:ie,...re};return r.buildLocation(Ie)},[r,ie,re]),he=le.maskedLocation?le.maskedLocation.publicHref:le.publicHref,xe=le.maskedLocation?le.maskedLocation.external:le.external,ze=N.useMemo(()=>U2(he,xe,r.history,C),[C,xe,he,r.history]),ve=N.useMemo(()=>{if(ze!=null&&ze.external)return su(ze.href,r.protocolAllowlist)?void 0:ze.href;if(!P2(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),su(m,r.protocolAllowlist)?void 0:m}catch{}},[m,ze,r.protocolAllowlist]),Bt=N.useMemo(()=>{if(ve)return!1;if(f!=null&&f.exact){if(!kE(ie.pathname,le.pathname,r.basepath))return!1}else{const Ie=ru(ie.pathname,r.basepath),Nt=ru(le.pathname,r.basepath);if(!(Ie.startsWith(Nt)&&(Ie.length===Nt.length||Ie[Nt.length]==="/")))return!1}return((f==null?void 0:f.includeSearch)??!0)&&!gr(ie.search,le.search,{partial:!(f!=null&&f.exact),ignoreUndefined:!(f!=null&&f.explicitUndefined)})?!1:f!=null&&f.includeHash?Z&&ie.hash===le.hash:!0},[f==null?void 0:f.exact,f==null?void 0:f.explicitUndefined,f==null?void 0:f.includeHash,f==null?void 0:f.includeSearch,ie,ve,Z,le.hash,le.pathname,le.search,r.basepath]),Et=Bt?ar(o,{})??M2:Sh,kt=Bt?Sh:ar(d,{})??Sh,Ut=[A,Et.className,kt.className].filter(Boolean).join(" "),xt=(T||Et.style||kt.style)&&{...T,...Et.style,...kt.style},[Ls,Fa]=N.useState(!1),Rr=N.useRef(!1),On=t.reloadDocument||ve?!1:g??r.options.defaultPreload,xn=p??r.options.defaultPreloadDelay??0,Mn=N.useCallback(()=>{r.preloadRoute({...re,_builtLocation:le}).catch(Ie=>{console.warn(Ie),console.warn(h2)})},[r,re,le]);hE(i,N.useCallback(Ie=>{Ie!=null&&Ie.isIntersecting&&Mn()},[Mn]),B2,{disabled:!!C||On!=="viewport"}),N.useEffect(()=>{Rr.current||!C&&On==="render"&&(Mn(),Rr.current=!0)},[C,Mn,On]);const Yi=Ie=>{const Nt=Ie.currentTarget.getAttribute("target"),qn=_!==void 0?_:Nt;if(!C&&!F2(Ie)&&!Ie.defaultPrevented&&(!qn||qn==="_self")&&Ie.button===0){Ie.preventDefault(),Ru.flushSync(()=>{Fa(!0)});const Cr=r.subscribe("onResolved",()=>{Cr(),Fa(!1)});r.navigate({...re,replace:x,resetScroll:w,hashScrollIntoView:y,startTransition:j,viewTransition:S,ignoreBlocker:X})}};if(ve)return{...L,ref:i,href:ve,...E&&{children:E},..._&&{target:_},...C&&{disabled:C},...T&&{style:T},...A&&{className:A},...B&&{onClick:B},...q&&{onBlur:q},...k&&{onFocus:k},...D&&{onMouseEnter:D},...z&&{onMouseLeave:z},...H&&{onTouchStart:H}};const po=Ie=>{if(C||On!=="intent")return;if(!xn){Mn();return}const Nt=Ie.currentTarget;if(Il.has(Nt))return;const qn=setTimeout(()=>{Il.delete(Nt),Mn()},xn);Il.set(Nt,qn)},Gu=Ie=>{C||On!=="intent"||Mn()},Ot=Ie=>{if(C||!On||!xn)return;const Nt=Ie.currentTarget,qn=Il.get(Nt);qn&&(clearTimeout(qn),Il.delete(Nt))};return{...L,...Et,...kt,href:ze==null?void 0:ze.href,ref:i,onClick:fi([B,Yi]),onBlur:fi([q,Ot]),onFocus:fi([k,po]),onMouseEnter:fi([D,po]),onMouseLeave:fi([z,Ot]),onTouchStart:fi([H,Gu]),disabled:!!C,target:_,...xt&&{style:xt},...Ut&&{className:Ut},...C&&D2,...Bt&&L2,...Z&&Ls&&z2}}var Sh={},M2={className:"active"},D2={role:"link","aria-disabled":!0},L2={"data-status":"active","aria-current":"page"},z2={"data-transitioning":"transitioning"},Il=new WeakMap,B2={rootMargin:"100px"},fi=t=>a=>{for(const r of t)if(r){if(a.defaultPrevented)return;r(a)}};function U2(t,a,r,i){if(!i)return a?{href:t,external:!0}:{href:r.createHref(t)||"/",external:!1}}function P2(t){if(typeof t!="string")return!1;const a=t.charCodeAt(0);return a===47?t.charCodeAt(1)!==47:a===46}var vt=N.forwardRef((t,a)=>{const{_asChild:r,...i}=t,{type:o,...d}=O2(i,a),f=typeof i.children=="function"?i.children({isActive:d["data-status"]==="active"}):i.children;if(!r){const{disabled:m,...g}=d;return N.createElement("a",g,f)}return N.createElement(r,d,f)});function F2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var H2=class extends S0{constructor(a){super(a),this.useMatch=r=>jr({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>A0({...r,from:this.id}),this.useSearch=r=>qi({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>Nu({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>_0({...r,from:this.id}),this.useLoaderData=r=>C0({...r,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=br.forwardRef((r,i)=>c.jsx(vt,{ref:i,from:this.fullPath,...r}))}};function q2(t){return new H2(t)}function G2(){return t=>Q2(t)}var I2=class extends m2{constructor(t){super(t),this.useMatch=a=>jr({select:a==null?void 0:a.select,from:this.id,structuralSharing:a==null?void 0:a.structuralSharing}),this.useRouteContext=a=>A0({...a,from:this.id}),this.useSearch=a=>qi({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useParams=a=>Nu({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useLoaderDeps=a=>_0({...a,from:this.id}),this.useLoaderData=a=>C0({...a,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=br.forwardRef((a,r)=>c.jsx(vt,{ref:r,from:this.fullPath,...a}))}};function Q2(t){return new I2(t)}function bn(t){return new V2(t,{silent:!0}).createRoute}var V2=class{constructor(t,a){this.path=t,this.createRoute=r=>{const i=q2(r);return i.isRoot=!1,i},this.silent=a==null?void 0:a.silent}};function Y2(t){const a=vn(),r=`not-found-${en(a.stores.location,i=>i.pathname)}-${en(a.stores.status,i=>i)}`;return c.jsx(Nm,{getResetKey:()=>r,onCatch:(i,o)=>{var d;if(zt(i))(d=t.onCatch)==null||d.call(t,i,o);else throw i},errorComponent:({error:i})=>{var o;if(zt(i))return(o=t.fallback)==null?void 0:o.call(t,i);throw i},children:t.children})}function $2(){return c.jsx("p",{children:"Not Found"})}function yi(t){return c.jsx(c.Fragment,{children:t.children})}function T0(t,a,r){return a.options.notFoundComponent?c.jsx(a.options.notFoundComponent,{...r}):t.options.defaultNotFoundComponent?c.jsx(t.options.defaultNotFoundComponent,{...r}):c.jsx($2,{})}function X2(t){return null}function Z2(){return X2(vn()),null}var k0=N.memo(function({matchId:a}){const r=vn(),i=r.stores.matchStores.get(a);i||Ma();const o=en(r.stores.loadedAt,f=>f),d=en(i,f=>f);return c.jsx(K2,{router:r,matchId:a,resetKey:o,matchState:N.useMemo(()=>{var g;const f=d.routeId,m=(g=r.routesById[f].parentRoute)==null?void 0:g.id;return{routeId:f,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:m}},[d._displayPending,d.routeId,d.ssr,r.routesById])})});function K2({router:t,matchId:a,resetKey:r,matchState:i}){var w,S;const o=t.routesById[i.routeId],d=o.options.pendingComponent??t.options.defaultPendingComponent,f=d?c.jsx(d,{}):null,m=o.options.errorComponent??t.options.defaultErrorComponent,g=o.options.onCatch??t.options.defaultOnCatch,p=o.isRoot?o.options.notFoundComponent??((w=t.options.notFoundRoute)==null?void 0:w.options.component):o.options.notFoundComponent,v=i.ssr===!1||i.ssr==="data-only",y=(!o.isRoot||o.options.wrapInSuspense||v)&&(o.options.wrapInSuspense??d??(((S=o.options.errorComponent)==null?void 0:S.preload)||v))?N.Suspense:yi,x=m?Nm:yi,j=p?Y2:yi;return c.jsxs(o.isRoot?o.options.shellComponent??yi:yi,{children:[c.jsx(Eu.Provider,{value:a,children:c.jsx(y,{fallback:f,children:c.jsx(x,{getResetKey:()=>r,errorComponent:m||Rm,onCatch:(E,_)=>{if(zt(E))throw E.routeId??(E.routeId=i.routeId),E;g==null||g(E,_)},children:c.jsx(j,{fallback:E=>{if(E.routeId??(E.routeId=i.routeId),!p||E.routeId&&E.routeId!==i.routeId||!E.routeId&&!o.isRoot)throw E;return N.createElement(p,E)},children:v||i._displayPending?c.jsx(g2,{fallback:f,children:c.jsx(Fb,{matchId:a})}):c.jsx(Fb,{matchId:a})})})})}),i.parentRouteId===yr?c.jsxs(c.Fragment,{children:[c.jsx(W2,{resetKey:r}),t.options.scrollRestoration&&l0?c.jsx(Z2,{}):null]}):null]})}function W2({resetKey:t}){const a=vn(),r=N.useRef(void 0);return Yl(()=>{const i=a.latestLocation.href;(r.current===void 0||r.current!==i)&&(a.emit({type:"onRendered",...vi(a.stores.location.get(),a.stores.resolvedLocation.get())}),r.current=i)},[a.latestLocation.state.__TSR_key,t,a]),null}var Fb=N.memo(function({matchId:a}){const r=vn(),i=(v,y)=>{var x;return((x=r.getMatch(v.id))==null?void 0:x._nonReactive[y])??v._nonReactive[y]},o=r.stores.matchStores.get(a);o||Ma();const d=en(o,v=>v),f=d.routeId,m=r.routesById[f],g=N.useMemo(()=>{var y;const v=(y=r.routesById[f].options.remountDeps??r.options.defaultRemountDeps)==null?void 0:y({routeId:f,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return v?JSON.stringify(v):void 0},[f,d.loaderDeps,d._strictParams,d._strictSearch,r.options.defaultRemountDeps,r.routesById]),p=N.useMemo(()=>{const v=m.options.component??r.options.defaultComponent;return v?c.jsx(v,{},g):c.jsx(Cu,{})},[g,m.options.component,r.options.defaultComponent]);if(d._displayPending)throw i(d,"displayPendingPromise");if(d._forcePending)throw i(d,"minPendingPromise");if(d.status==="pending"){const v=m.options.pendingMinMs??r.options.defaultPendingMinMs;if(v){const y=r.getMatch(d.id);if(y&&!y._nonReactive.minPendingPromise){const x=Li();y._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),y._nonReactive.minPendingPromise=void 0},v)}}throw i(d,"loadPromise")}if(d.status==="notFound")return zt(d.error)||Ma(),T0(r,m,d.error);if(d.status==="redirected")throw Jt(d.error)||Ma(),i(d,"loadPromise");if(d.status==="error")throw d.error;return p}),Cu=N.memo(function(){const a=vn(),r=N.useContext(Eu);let i,o=!1,d;{const p=r?a.stores.matchStores.get(r):void 0;[i,o]=en(p,v=>[v==null?void 0:v.routeId,(v==null?void 0:v.globalNotFound)??!1]),d=en(a.stores.matchesId,v=>v[v.findIndex(y=>y===r)+1])}const f=i?a.routesById[i]:void 0,m=a.options.defaultPendingComponent?c.jsx(a.options.defaultPendingComponent,{}):null;if(o)return f||Ma(),T0(a,f,void 0);if(!d)return null;const g=c.jsx(k0,{matchId:d});return i===yr?c.jsx(N.Suspense,{fallback:m,children:g}):g});function J2(){const t=vn(),a=N.useRef({router:t,mounted:!1}),[r,i]=N.useState(!1),o=en(t.stores.isLoading,y=>y),d=en(t.stores.hasPending,y=>y),f=uh(o),m=o||r||d,g=uh(m),p=o||d,v=uh(p);return t.startTransition=y=>{i(!0),N.startTransition(()=>{y(),i(!1)})},N.useEffect(()=>{const y=t.history.subscribe(t.load),x=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Oa(t.latestLocation.publicHref)!==Oa(x.publicHref)&&t.commitLocation({...x,replace:!0}),()=>{y()}},[t,t.history]),Yl(()=>{if(typeof window<"u"&&t.ssr||a.current.router===t&&a.current.mounted)return;a.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(x){console.error(x)}})()},[t]),Yl(()=>{f&&!o&&t.emit({type:"onLoad",...vi(t.stores.location.get(),t.stores.resolvedLocation.get())})},[f,t,o]),Yl(()=>{v&&!p&&t.emit({type:"onBeforeRouteMount",...vi(t.stores.location.get(),t.stores.resolvedLocation.get())})},[p,v,t]),Yl(()=>{if(g&&!m){const y=vi(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...y}),N0(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[m,g,t]),null}function eN(){const t=vn(),a=t.routesById[yr].options.pendingComponent??t.options.defaultPendingComponent,r=a?c.jsx(a,{}):null,i=c.jsxs(typeof document<"u"&&t.ssr?yi:N.Suspense,{fallback:r,children:[c.jsx(J2,{}),c.jsx(tN,{})]});return t.options.InnerWrap?c.jsx(t.options.InnerWrap,{children:i}):i}function tN(){const t=vn(),a=en(t.stores.firstId,o=>o),r=en(t.stores.loadedAt,o=>o),i=a?c.jsx(k0,{matchId:a}):null;return c.jsx(Eu.Provider,{value:a,children:t.options.disableGlobalCatchBoundary?i:c.jsx(Nm,{getResetKey:()=>r,errorComponent:Rm,onCatch:void 0,children:i})})}function nN(){const t=vn();return en(t.stores.matchRouteDeps,a=>a),N.useCallback(a=>{const{pending:r,caseSensitive:i,fuzzy:o,includeSearch:d,...f}=a;return t.matchRoute(f,{pending:r,caseSensitive:i,fuzzy:o,includeSearch:d})},[t])}var aN=t=>({createMutableStore:Lb,createReadonlyStore:Lb,batch:N0}),sN=t=>new rN(t),rN=class extends JE{constructor(t){super(t,aN)}};function iN({router:t,children:a,...r}){c0(r)&&t.update({...t.options,...r,context:{...t.options.context,...r.context}});const i=c.jsx(j0.Provider,{value:t,children:a});return t.options.Wrap?c.jsx(t.options.Wrap,{children:i}):i}function lN({router:t,...a}){return c.jsx(iN,{router:t,...a,children:c.jsx(eN,{})})}var Gi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lr,ys,wi,Xx,oN=(Xx=class extends Gi{constructor(){super();pe(this,lr);pe(this,ys);pe(this,wi);oe(this,wi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){M(this,ys)||this.setEventListener(M(this,wi))}onUnsubscribe(){var a;this.hasListeners()||((a=M(this,ys))==null||a.call(this),oe(this,ys,void 0))}setEventListener(a){var r;oe(this,wi,a),(r=M(this,ys))==null||r.call(this),oe(this,ys,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){M(this,lr)!==a&&(oe(this,lr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof M(this,lr)=="boolean"?M(this,lr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},lr=new WeakMap,ys=new WeakMap,wi=new WeakMap,Xx),_m=new oN,cN={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},vs,bm,Zx,uN=(Zx=class{constructor(){pe(this,vs,cN);pe(this,bm,!1)}setTimeoutProvider(t){oe(this,vs,t)}setTimeout(t,a){return M(this,vs).setTimeout(t,a)}clearTimeout(t){M(this,vs).clearTimeout(t)}setInterval(t,a){return M(this,vs).setInterval(t,a)}clearInterval(t){M(this,vs).clearInterval(t)}},vs=new WeakMap,bm=new WeakMap,Zx),ir=new uN;function dN(t){setTimeout(t,0)}var fN=typeof window>"u"||"Deno"in globalThis;function Ht(){}function hN(t,a){return typeof t=="function"?t(a):t}function Yh(t){return typeof t=="number"&&t>=0&&t!==1/0}function O0(t,a){return Math.max(t+(a||0)-Date.now(),0)}function As(t,a){return typeof t=="function"?t(a):t}function mn(t,a){return typeof t=="function"?t(a):t}function Hb(t,a){const{type:r="all",exact:i,fetchStatus:o,predicate:d,queryKey:f,stale:m}=t;if(f){if(i){if(a.queryHash!==Am(f,a.options))return!1}else if(!Jl(a.queryKey,f))return!1}if(r!=="all"){const g=a.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||d&&!d(a))}function qb(t,a){const{exact:r,status:i,predicate:o,mutationKey:d}=t;if(d){if(!a.options.mutationKey)return!1;if(r){if(xr(a.options.mutationKey)!==xr(d))return!1}else if(!Jl(a.options.mutationKey,d))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function Am(t,a){return((a==null?void 0:a.queryKeyHashFn)||xr)(t)}function xr(t){return JSON.stringify(t,(a,r)=>$h(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Jl(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(r=>Jl(t[r],a[r])):!1}var mN=Object.prototype.hasOwnProperty;function M0(t,a,r=0){if(t===a)return t;if(r>500)return a;const i=Gb(t)&&Gb(a);if(!i&&!($h(t)&&$h(a)))return a;const d=(i?t:Object.keys(t)).length,f=i?a:Object.keys(a),m=f.length,g=i?new Array(m):{};let p=0;for(let v=0;v<m;v++){const y=i?v:f[v],x=t[y],j=a[y];if(x===j){g[y]=x,(i?v<d:mN.call(t,y))&&p++;continue}if(x===null||j===null||typeof x!="object"||typeof j!="object"){g[y]=j;continue}const w=M0(x,j,r+1);g[y]=w,w===x&&p++}return d===m&&p===d?t:g}function cu(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const r in t)if(t[r]!==a[r])return!1;return!0}function Gb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function $h(t){if(!Ib(t))return!1;const a=t.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!Ib(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ib(t){return Object.prototype.toString.call(t)==="[object Object]"}function pN(t){return new Promise(a=>{ir.setTimeout(a,t)})}function Xh(t,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,a):r.structuralSharing!==!1?M0(t,a):a}function gN(t,a,r=0){const i=[...t,a];return r&&i.length>r?i.slice(1):i}function yN(t,a,r=0){const i=[a,...t];return r&&i.length>r?i.slice(0,-1):i}var Tm=Symbol();function D0(t,a){return!t.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!t.queryFn||t.queryFn===Tm?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function km(t,a){return typeof t=="function"?t(...a):!!t}function vN(t,a,r){let i=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??(o=a()),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var eo=(()=>{let t=()=>fN;return{isServer(){return t()},setIsServer(a){t=a}}})();function Zh(){let t,a;const r=new Promise((o,d)=>{t=o,a=d});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}var bN=dN;function xN(){let t=[],a=0,r=m=>{m()},i=m=>{m()},o=bN;const d=m=>{a?t.push(m):o(()=>{r(m)})},f=()=>{const m=t;t=[],m.length&&o(()=>{i(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;a++;try{g=m()}finally{a--,a||f()}return g},batchCalls:m=>(...g)=>{d(()=>{m(...g)})},schedule:d,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{o=m}}}var yt=xN(),ji,bs,Ei,Kx,SN=(Kx=class extends Gi{constructor(){super();pe(this,ji,!0);pe(this,bs);pe(this,Ei);oe(this,Ei,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){M(this,bs)||this.setEventListener(M(this,Ei))}onUnsubscribe(){var a;this.hasListeners()||((a=M(this,bs))==null||a.call(this),oe(this,bs,void 0))}setEventListener(a){var r;oe(this,Ei,a),(r=M(this,bs))==null||r.call(this),oe(this,bs,a(this.setOnline.bind(this)))}setOnline(a){M(this,ji)!==a&&(oe(this,ji,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return M(this,ji)}},ji=new WeakMap,bs=new WeakMap,Ei=new WeakMap,Kx),uu=new SN;function wN(t){return Math.min(1e3*2**t,3e4)}function L0(t){return(t??"online")==="online"?uu.isOnline():!0}var Kh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function z0(t){let a=!1,r=0,i;const o=Zh(),d=()=>o.status!=="pending",f=S=>{var E;if(!d()){const _=new Kh(S);x(_),(E=t.onCancel)==null||E.call(t,_)}},m=()=>{a=!0},g=()=>{a=!1},p=()=>_m.isFocused()&&(t.networkMode==="always"||uu.isOnline())&&t.canRun(),v=()=>L0(t.networkMode)&&t.canRun(),y=S=>{d()||(i==null||i(),o.resolve(S))},x=S=>{d()||(i==null||i(),o.reject(S))},j=()=>new Promise(S=>{var E;i=_=>{(d()||p())&&S(_)},(E=t.onPause)==null||E.call(t)}).then(()=>{var S;i=void 0,d()||(S=t.onContinue)==null||S.call(t)}),w=()=>{if(d())return;let S;const E=r===0?t.initialPromise:void 0;try{S=E??t.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(y).catch(_=>{var q;if(d())return;const C=t.retry??(eo.isServer()?0:3),T=t.retryDelay??wN,A=typeof T=="function"?T(r,_):T,B=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,_);if(a||!B){x(_);return}r++,(q=t.onFail)==null||q.call(t,r,_),pN(A).then(()=>p()?void 0:j()).then(()=>{a?x(_):w()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(i==null||i(),o),cancelRetry:m,continueRetry:g,canStart:v,start:()=>(v()?w():j().then(w),o)}}var or,Wx,B0=(Wx=class{constructor(){pe(this,or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yh(this.gcTime)&&oe(this,or,ir.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(eo.isServer()?1/0:300*1e3))}clearGcTimeout(){M(this,or)!==void 0&&(ir.clearTimeout(M(this,or)),oe(this,or,void 0))}},or=new WeakMap,Wx);function jN(t){return{onFetch:(a,r)=>{var v,y,x,j,w;const i=a.options,o=(x=(y=(v=a.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,d=((j=a.state.data)==null?void 0:j.pages)||[],f=((w=a.state.data)==null?void 0:w.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let S=!1;const E=T=>{vN(T,()=>a.signal,()=>S=!0)},_=D0(a.options,a.fetchOptions),C=async(T,A,B)=>{if(S)return Promise.reject(a.signal.reason);if(A==null&&T.pages.length)return Promise.resolve(T);const k=(()=>{const X={client:a.client,queryKey:a.queryKey,pageParam:A,direction:B?"backward":"forward",meta:a.options.meta};return E(X),X})(),D=await _(k),{maxPages:z}=a.options,H=B?yN:gN;return{pages:H(T.pages,D,z),pageParams:H(T.pageParams,A,z)}};if(o&&d.length){const T=o==="backward",A=T?EN:Qb,B={pages:d,pageParams:f},q=A(i,B);m=await C(B,q,T)}else{const T=t??d.length;do{const A=g===0?f[0]??i.initialPageParam:Qb(i,m);if(g>0&&A==null)break;m=await C(m,A),g++}while(g<T)}return m};a.options.persister?a.fetchFn=()=>{var S,E;return(E=(S=a.options).persister)==null?void 0:E.call(S,p,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=p}}}function Qb(t,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?t.getNextPageParam(a[i],a,r[i],r):void 0}function EN(t,{pages:a,pageParams:r}){var i;return a.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,a[0],a,r[0],r):void 0}var Ni,cr,Ri,kn,ur,jt,so,dr,hn,U0,Ra,Jx,NN=(Jx=class extends B0{constructor(a){super();pe(this,hn);pe(this,Ni);pe(this,cr);pe(this,Ri);pe(this,kn);pe(this,ur);pe(this,jt);pe(this,so);pe(this,dr);oe(this,dr,!1),oe(this,so,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,ur,a.client),oe(this,kn,M(this,ur).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,cr,Yb(this.options)),this.state=a.state??M(this,cr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return M(this,Ni)}get promise(){var a;return(a=M(this,jt))==null?void 0:a.promise}setOptions(a){if(this.options={...M(this,so),...a},a!=null&&a._type&&oe(this,Ni,a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Yb(this.options);r.data!==void 0&&(this.setState(Vb(r.data,r.dataUpdatedAt)),oe(this,cr,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,kn).remove(this)}setData(a,r){const i=Xh(this.state.data,a,this.options);return Ee(this,hn,Ra).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a){Ee(this,hn,Ra).call(this,{type:"setState",state:a})}cancel(a){var i,o;const r=(i=M(this,jt))==null?void 0:i.promise;return(o=M(this,jt))==null||o.cancel(a),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return M(this,cr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>mn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>As(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 r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=M(this,jt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=M(this,jt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),M(this,kn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(M(this,jt)&&(M(this,dr)||Ee(this,hn,U0).call(this)?M(this,jt).cancel({revert:!0}):M(this,jt).cancelRetry()),this.scheduleGc()),M(this,kn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,hn,Ra).call(this,{type:"invalidate"})}async fetch(a,r){var p,v,y,x,j,w,S,E,_,C,T;if(this.state.fetchStatus!=="idle"&&((p=M(this,jt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(M(this,jt))return M(this,jt).continueRetry(),M(this,jt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const A=this.observers.find(B=>B.options.queryFn);A&&this.setOptions(A.options)}const i=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(oe(this,dr,!0),i.signal)})},d=()=>{const A=D0(this.options,r),q=(()=>{const k={client:M(this,ur),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return oe(this,dr,!1),this.options.persister?this.options.persister(A,q,this):A(q)},m=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:M(this,ur),state:this.state,fetchFn:d};return o(A),A})(),g=M(this,Ni)==="infinite"?jN(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),oe(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=m.fetchOptions)==null?void 0:v.meta))&&Ee(this,hn,Ra).call(this,{type:"fetch",meta:(y=m.fetchOptions)==null?void 0:y.meta}),oe(this,jt,z0({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:A=>{A instanceof Kh&&A.revert&&this.setState({...M(this,Ri),fetchStatus:"idle"}),i.abort()},onFail:(A,B)=>{Ee(this,hn,Ra).call(this,{type:"failed",failureCount:A,error:B})},onPause:()=>{Ee(this,hn,Ra).call(this,{type:"pause"})},onContinue:()=>{Ee(this,hn,Ra).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const A=await M(this,jt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(j=(x=M(this,kn).config).onSuccess)==null||j.call(x,A,this),(S=(w=M(this,kn).config).onSettled)==null||S.call(w,A,this.state.error,this),A}catch(A){if(A instanceof Kh){if(A.silent)return M(this,jt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Ee(this,hn,Ra).call(this,{type:"error",error:A}),(_=(E=M(this,kn).config).onError)==null||_.call(E,A,this),(T=(C=M(this,kn).config).onSettled)==null||T.call(C,this.state.data,A,this),A}finally{this.scheduleGc()}}},Ni=new WeakMap,cr=new WeakMap,Ri=new WeakMap,kn=new WeakMap,ur=new WeakMap,jt=new WeakMap,so=new WeakMap,dr=new WeakMap,hn=new WeakSet,U0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ra=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...P0(i.data,this.options),fetchMeta:a.meta??null};case"success":const o={...i,...Vb(a.data,a.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return oe(this,Ri,a.manual?o:void 0),o;case"error":const d=a.error;return{...i,error:d,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),yt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),M(this,kn).notify({query:this,type:"updated",action:a})})},Jx);function P0(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L0(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Vb(t,a){return{data:t,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Yb(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,r=a!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Zt,De,ro,Ft,fr,Ci,Ca,xs,io,_i,Ai,hr,mr,Ss,Ti,He,$l,Wh,Jh,em,tm,nm,am,sm,F0,e0,RN=(e0=class extends Gi{constructor(a,r){super();pe(this,He);pe(this,Zt);pe(this,De);pe(this,ro);pe(this,Ft);pe(this,fr);pe(this,Ci);pe(this,Ca);pe(this,xs);pe(this,io);pe(this,_i);pe(this,Ai);pe(this,hr);pe(this,mr);pe(this,Ss);pe(this,Ti,new Set);this.options=r,oe(this,Zt,a),oe(this,xs,null),oe(this,Ca,Zh()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,De).addObserver(this),$b(M(this,De),this.options)?Ee(this,He,$l).call(this):this.updateResult(),Ee(this,He,tm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rm(M(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rm(M(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ee(this,He,nm).call(this),Ee(this,He,am).call(this),M(this,De).removeObserver(this)}setOptions(a){const r=this.options,i=M(this,De);if(this.options=M(this,Zt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mn(this.options.enabled,M(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ee(this,He,sm).call(this),M(this,De).setOptions(this.options),r._defaulted&&!cu(this.options,r)&&M(this,Zt).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,De),observer:this});const o=this.hasListeners();o&&Xb(M(this,De),i,this.options,r)&&Ee(this,He,$l).call(this),this.updateResult(),o&&(M(this,De)!==i||mn(this.options.enabled,M(this,De))!==mn(r.enabled,M(this,De))||As(this.options.staleTime,M(this,De))!==As(r.staleTime,M(this,De)))&&Ee(this,He,Wh).call(this);const d=Ee(this,He,Jh).call(this);o&&(M(this,De)!==i||mn(this.options.enabled,M(this,De))!==mn(r.enabled,M(this,De))||d!==M(this,Ss))&&Ee(this,He,em).call(this,d)}getOptimisticResult(a){const r=M(this,Zt).getQueryCache().build(M(this,Zt),a),i=this.createResult(r,a);return _N(this,i)&&(oe(this,Ft,i),oe(this,Ci,this.options),oe(this,fr,M(this,De).state)),i}getCurrentResult(){return M(this,Ft)}trackResult(a,r){return new Proxy(a,{get:(i,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Ca).status==="pending"&&M(this,Ca).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,o))})}trackProp(a){M(this,Ti).add(a)}getCurrentQuery(){return M(this,De)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=M(this,Zt).defaultQueryOptions(a),i=M(this,Zt).getQueryCache().build(M(this,Zt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Ee(this,He,$l).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ft)))}createResult(a,r){var z;const i=M(this,De),o=this.options,d=M(this,Ft),f=M(this,fr),m=M(this,Ci),p=a!==i?a.state:M(this,ro),{state:v}=a;let y={...v},x=!1,j;if(r._optimisticResults){const H=this.hasListeners(),X=!H&&$b(a,r),ne=H&&Xb(a,i,r,o);(X||ne)&&(y={...y,...P0(v.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:S,status:E}=y;j=y.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&E==="pending"){let H;d!=null&&d.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(H=d.data,_=!0):H=typeof r.placeholderData=="function"?r.placeholderData((z=M(this,Ai))==null?void 0:z.state.data,M(this,Ai)):r.placeholderData,H!==void 0&&(E="success",j=Xh(d==null?void 0:d.data,H,r),x=!0)}if(r.select&&j!==void 0&&!_)if(d&&j===(f==null?void 0:f.data)&&r.select===M(this,io))j=M(this,_i);else try{oe(this,io,r.select),j=r.select(j),j=Xh(d==null?void 0:d.data,j,r),oe(this,_i,j),oe(this,xs,null)}catch(H){oe(this,xs,H)}M(this,xs)&&(w=M(this,xs),j=M(this,_i),S=Date.now(),E="error");const C=y.fetchStatus==="fetching",T=E==="pending",A=E==="error",B=T&&C,q=j!==void 0,D={status:E,fetchStatus:y.fetchStatus,isPending:T,isSuccess:E==="success",isError:A,isInitialLoading:B,isLoading:B,data:j,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:S,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:A&&!q,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:A&&q,isStale:Om(a,r),refetch:this.refetch,promise:M(this,Ca),isEnabled:mn(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const H=D.data!==void 0,X=D.status==="error"&&!H,ne=ce=>{X?ce.reject(D.error):H&&ce.resolve(D.data)},se=()=>{const ce=oe(this,Ca,D.promise=Zh());ne(ce)},te=M(this,Ca);switch(te.status){case"pending":a.queryHash===i.queryHash&&ne(te);break;case"fulfilled":(X||D.data!==te.value)&&se();break;case"rejected":(!X||D.error!==te.reason)&&se();break}}return D}updateResult(){const a=M(this,Ft),r=this.createResult(M(this,De),this.options);if(oe(this,fr,M(this,De).state),oe(this,Ci,this.options),M(this,fr).data!==void 0&&oe(this,Ai,M(this,De)),cu(r,a))return;oe(this,Ft,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!M(this,Ti).size)return!0;const f=new Set(d??M(this,Ti));return this.options.throwOnError&&f.add("error"),Object.keys(M(this,Ft)).some(m=>{const g=m;return M(this,Ft)[g]!==a[g]&&f.has(g)})};Ee(this,He,F0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ee(this,He,tm).call(this)}},Zt=new WeakMap,De=new WeakMap,ro=new WeakMap,Ft=new WeakMap,fr=new WeakMap,Ci=new WeakMap,Ca=new WeakMap,xs=new WeakMap,io=new WeakMap,_i=new WeakMap,Ai=new WeakMap,hr=new WeakMap,mr=new WeakMap,Ss=new WeakMap,Ti=new WeakMap,He=new WeakSet,$l=function(a){Ee(this,He,sm).call(this);let r=M(this,De).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Ht)),r},Wh=function(){Ee(this,He,nm).call(this);const a=As(this.options.staleTime,M(this,De));if(eo.isServer()||M(this,Ft).isStale||!Yh(a))return;const i=O0(M(this,Ft).dataUpdatedAt,a)+1;oe(this,hr,ir.setTimeout(()=>{M(this,Ft).isStale||this.updateResult()},i))},Jh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,De)):this.options.refetchInterval)??!1},em=function(a){Ee(this,He,am).call(this),oe(this,Ss,a),!(eo.isServer()||mn(this.options.enabled,M(this,De))===!1||!Yh(M(this,Ss))||M(this,Ss)===0)&&oe(this,mr,ir.setInterval(()=>{(this.options.refetchIntervalInBackground||_m.isFocused())&&Ee(this,He,$l).call(this)},M(this,Ss)))},tm=function(){Ee(this,He,Wh).call(this),Ee(this,He,em).call(this,Ee(this,He,Jh).call(this))},nm=function(){M(this,hr)!==void 0&&(ir.clearTimeout(M(this,hr)),oe(this,hr,void 0))},am=function(){M(this,mr)!==void 0&&(ir.clearInterval(M(this,mr)),oe(this,mr,void 0))},sm=function(){const a=M(this,Zt).getQueryCache().build(M(this,Zt),this.options);if(a===M(this,De))return;const r=M(this,De);oe(this,De,a),oe(this,ro,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},F0=function(a){yt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(M(this,Ft))}),M(this,Zt).getQueryCache().notify({query:M(this,De),type:"observerResultsUpdated"})})},e0);function CN(t,a){return mn(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&mn(a.retryOnMount,t)===!1)}function $b(t,a){return CN(t,a)||t.state.data!==void 0&&rm(t,a,a.refetchOnMount)}function rm(t,a,r){if(mn(a.enabled,t)!==!1&&As(a.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&Om(t,a)}return!1}function Xb(t,a,r,i){return(t!==a||mn(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Om(t,r)}function Om(t,a){return mn(a.enabled,t)!==!1&&t.isStaleByTime(As(a.staleTime,t))}function _N(t,a){return!cu(t.getCurrentResult(),a)}var lo,Xn,Lt,pr,Zn,ms,t0,AN=(t0=class extends B0{constructor(a){super();pe(this,Zn);pe(this,lo);pe(this,Xn);pe(this,Lt);pe(this,pr);oe(this,lo,a.client),this.mutationId=a.mutationId,oe(this,Lt,a.mutationCache),oe(this,Xn,[]),this.state=a.state||H0(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){M(this,Xn).includes(a)||(M(this,Xn).push(a),this.clearGcTimeout(),M(this,Lt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,Xn,M(this,Xn).filter(r=>r!==a)),this.scheduleGc(),M(this,Lt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){M(this,Xn).length||(this.state.status==="pending"?this.scheduleGc():M(this,Lt).remove(this))}continue(){var a;return((a=M(this,pr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var f,m,g,p,v,y,x,j,w,S,E,_,C,T,A,B,q,k;const r=()=>{Ee(this,Zn,ms).call(this,{type:"continue"})},i={client:M(this,lo),meta:this.options.meta,mutationKey:this.options.mutationKey};oe(this,pr,z0({fn:()=>this.options.mutationFn?this.options.mutationFn(a,i):Promise.reject(new Error("No mutationFn found")),onFail:(D,z)=>{Ee(this,Zn,ms).call(this,{type:"failed",failureCount:D,error:z})},onPause:()=>{Ee(this,Zn,ms).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Lt).canRun(this)}));const o=this.state.status==="pending",d=!M(this,pr).canStart();try{if(o)r();else{Ee(this,Zn,ms).call(this,{type:"pending",variables:a,isPaused:d}),M(this,Lt).config.onMutate&&await M(this,Lt).config.onMutate(a,this,i);const z=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,a,i));z!==this.state.context&&Ee(this,Zn,ms).call(this,{type:"pending",context:z,variables:a,isPaused:d})}const D=await M(this,pr).start();return await((p=(g=M(this,Lt).config).onSuccess)==null?void 0:p.call(g,D,a,this.state.context,this,i)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,D,a,this.state.context,i)),await((j=(x=M(this,Lt).config).onSettled)==null?void 0:j.call(x,D,null,this.state.variables,this.state.context,this,i)),await((S=(w=this.options).onSettled)==null?void 0:S.call(w,D,null,a,this.state.context,i)),Ee(this,Zn,ms).call(this,{type:"success",data:D}),D}catch(D){try{await((_=(E=M(this,Lt).config).onError)==null?void 0:_.call(E,D,a,this.state.context,this,i))}catch(z){Promise.reject(z)}try{await((T=(C=this.options).onError)==null?void 0:T.call(C,D,a,this.state.context,i))}catch(z){Promise.reject(z)}try{await((B=(A=M(this,Lt).config).onSettled)==null?void 0:B.call(A,void 0,D,this.state.variables,this.state.context,this,i))}catch(z){Promise.reject(z)}try{await((k=(q=this.options).onSettled)==null?void 0:k.call(q,void 0,D,a,this.state.context,i))}catch(z){Promise.reject(z)}throw Ee(this,Zn,ms).call(this,{type:"error",error:D}),D}finally{M(this,Lt).runNext(this)}}},lo=new WeakMap,Xn=new WeakMap,Lt=new WeakMap,pr=new WeakMap,Zn=new WeakSet,ms=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),yt.batch(()=>{M(this,Xn).forEach(i=>{i.onMutationUpdate(a)}),M(this,Lt).notify({mutation:this,type:"updated",action:a})})},t0);function H0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _a,Bn,oo,n0,TN=(n0=class extends Gi{constructor(a={}){super();pe(this,_a);pe(this,Bn);pe(this,oo);this.config=a,oe(this,_a,new Set),oe(this,Bn,new Map),oe(this,oo,0)}build(a,r,i){const o=new AN({client:a,mutationCache:this,mutationId:++Oc(this,oo)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){M(this,_a).add(a);const r=Bc(a);if(typeof r=="string"){const i=M(this,Bn).get(r);i?i.push(a):M(this,Bn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(M(this,_a).delete(a)){const r=Bc(a);if(typeof r=="string"){const i=M(this,Bn).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&M(this,Bn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Bc(a);if(typeof r=="string"){const i=M(this,Bn).get(r),o=i==null?void 0:i.find(d=>d.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=Bc(a);if(typeof r=="string"){const o=(i=M(this,Bn).get(r))==null?void 0:i.find(d=>d!==a&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{M(this,_a).forEach(a=>{this.notify({type:"removed",mutation:a})}),M(this,_a).clear(),M(this,Bn).clear()})}getAll(){return Array.from(M(this,_a))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>qb(r,i))}findAll(a={}){return this.getAll().filter(r=>qb(a,r))}notify(a){yt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return yt.batch(()=>Promise.all(a.map(r=>r.continue().catch(Ht))))}},_a=new WeakMap,Bn=new WeakMap,oo=new WeakMap,n0);function Bc(t){var a;return(a=t.options.scope)==null?void 0:a.id}var Aa,ws,Kt,Ta,Da,Wc,im,a0,kN=(a0=class extends Gi{constructor(r,i){super();pe(this,Da);pe(this,Aa);pe(this,ws);pe(this,Kt);pe(this,Ta);oe(this,Aa,r),this.setOptions(i),this.bindMethods(),Ee(this,Da,Wc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=M(this,Aa).defaultMutationOptions(r),cu(this.options,i)||M(this,Aa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,Kt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&xr(i.mutationKey)!==xr(this.options.mutationKey)?this.reset():((o=M(this,Kt))==null?void 0:o.state.status)==="pending"&&M(this,Kt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=M(this,Kt))==null||r.removeObserver(this)}onMutationUpdate(r){Ee(this,Da,Wc).call(this),Ee(this,Da,im).call(this,r)}getCurrentResult(){return M(this,ws)}reset(){var r;(r=M(this,Kt))==null||r.removeObserver(this),oe(this,Kt,void 0),Ee(this,Da,Wc).call(this),Ee(this,Da,im).call(this)}mutate(r,i){var o;return oe(this,Ta,i),(o=M(this,Kt))==null||o.removeObserver(this),oe(this,Kt,M(this,Aa).getMutationCache().build(M(this,Aa),this.options)),M(this,Kt).addObserver(this),M(this,Kt).execute(r)}},Aa=new WeakMap,ws=new WeakMap,Kt=new WeakMap,Ta=new WeakMap,Da=new WeakSet,Wc=function(){var i;const r=((i=M(this,Kt))==null?void 0:i.state)??H0();oe(this,ws,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},im=function(r){yt.batch(()=>{var i,o,d,f,m,g,p,v;if(M(this,Ta)&&this.hasListeners()){const y=M(this,ws).variables,x=M(this,ws).context,j={client:M(this,Aa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(o=(i=M(this,Ta)).onSuccess)==null||o.call(i,r.data,y,x,j)}catch(w){Promise.reject(w)}try{(f=(d=M(this,Ta)).onSettled)==null||f.call(d,r.data,null,y,x,j)}catch(w){Promise.reject(w)}}else if((r==null?void 0:r.type)==="error"){try{(g=(m=M(this,Ta)).onError)==null||g.call(m,r.error,y,x,j)}catch(w){Promise.reject(w)}try{(v=(p=M(this,Ta)).onSettled)==null||v.call(p,void 0,r.error,y,x,j)}catch(w){Promise.reject(w)}}}this.listeners.forEach(y=>{y(M(this,ws))})})},a0),Kn,s0,ON=(s0=class extends Gi{constructor(a={}){super();pe(this,Kn);this.config=a,oe(this,Kn,new Map)}build(a,r,i){const o=r.queryKey,d=r.queryHash??Am(o,r);let f=this.get(d);return f||(f=new NN({client:a,queryKey:o,queryHash:d,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(f)),f}add(a){M(this,Kn).has(a.queryHash)||(M(this,Kn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=M(this,Kn).get(a.queryHash);r&&(a.destroy(),r===a&&M(this,Kn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){yt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return M(this,Kn).get(a)}getAll(){return[...M(this,Kn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>Hb(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>Hb(a,i)):r}notify(a){yt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Kn=new WeakMap,s0),st,js,Es,ki,Oi,Ns,Mi,Di,r0,MN=(r0=class{constructor(t={}){pe(this,st);pe(this,js);pe(this,Es);pe(this,ki);pe(this,Oi);pe(this,Ns);pe(this,Mi);pe(this,Di);oe(this,st,t.queryCache||new ON),oe(this,js,t.mutationCache||new TN),oe(this,Es,t.defaultOptions||{}),oe(this,ki,new Map),oe(this,Oi,new Map),oe(this,Ns,0)}mount(){Oc(this,Ns)._++,M(this,Ns)===1&&(oe(this,Mi,_m.subscribe(async t=>{t&&(await this.resumePausedMutations(),M(this,st).onFocus())})),oe(this,Di,uu.subscribe(async t=>{t&&(await this.resumePausedMutations(),M(this,st).onOnline())})))}unmount(){var t,a;Oc(this,Ns)._--,M(this,Ns)===0&&((t=M(this,Mi))==null||t.call(this),oe(this,Mi,void 0),(a=M(this,Di))==null||a.call(this),oe(this,Di,void 0))}isFetching(t){return M(this,st).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return M(this,js).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=M(this,st).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),r=M(this,st).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(As(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(t){return M(this,st).findAll(t).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(t,a,r){const i=this.defaultQueryOptions({queryKey:t}),o=M(this,st).get(i.queryHash),d=o==null?void 0:o.state.data,f=hN(a,d);if(f!==void 0)return M(this,st).build(this,i).setData(f,{...r,manual:!0})}setQueriesData(t,a,r){return yt.batch(()=>M(this,st).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=M(this,st).get(a.queryHash))==null?void 0:r.state}removeQueries(t){const a=M(this,st);yt.batch(()=>{a.findAll(t).forEach(r=>{a.remove(r)})})}resetQueries(t,a){const r=M(this,st);return yt.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const r={revert:!0,...a},i=yt.batch(()=>M(this,st).findAll(t).map(o=>o.cancel(r)));return Promise.all(i).then(Ht).catch(Ht)}invalidateQueries(t,a={}){return yt.batch(()=>(M(this,st).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},a)))}refetchQueries(t,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=yt.batch(()=>M(this,st).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,r);return r.throwOnError||(d=d.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(i).then(Ht)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const r=M(this,st).build(this,a);return r.isStaleByTime(As(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ht).catch(Ht)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ht).catch(Ht)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return uu.isOnline()?M(this,js).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,st)}getMutationCache(){return M(this,js)}getDefaultOptions(){return M(this,Es)}setDefaultOptions(t){oe(this,Es,t)}setQueryDefaults(t,a){M(this,ki).set(xr(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...M(this,ki).values()],r={};return a.forEach(i=>{Jl(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,a){M(this,Oi).set(xr(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...M(this,Oi).values()],r={};return a.forEach(i=>{Jl(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const a={...M(this,Es).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=Am(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===Tm&&(a.enabled=!1),a}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...M(this,Es).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){M(this,st).clear(),M(this,js).clear()}},st=new WeakMap,js=new WeakMap,Es=new WeakMap,ki=new WeakMap,Oi=new WeakMap,Ns=new WeakMap,Mi=new WeakMap,Di=new WeakMap,r0),q0=N.createContext(void 0),Er=t=>{const a=N.useContext(q0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},DN=({client:t,children:a})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(q0.Provider,{value:t,children:a})),G0=N.createContext(!1),LN=()=>N.useContext(G0);G0.Provider;function zN(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var BN=N.createContext(zN()),UN=()=>N.useContext(BN),PN=(t,a,r)=>{const i=r!=null&&r.state.error&&typeof t.throwOnError=="function"?km(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(a.isReset()||(t.retryOnMount=!1))},FN=t=>{N.useEffect(()=>{t.clearReset()},[t])},HN=({result:t,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||km(r,[t.error,i])),qN=t=>{if(t.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...o)=>r(i(...o)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},GN=(t,a)=>t.isLoading&&t.isFetching&&!a,IN=(t,a)=>(t==null?void 0:t.suspense)&&a.isPending,Zb=(t,a,r)=>a.fetchOptimistic(t).catch(()=>{r.clearReset()});function QN(t,a,r){var j,w,S,E;const i=LN(),o=UN(),d=Er(),f=d.defaultQueryOptions(t);(w=(j=d.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||w.call(j,f);const m=d.getQueryCache().get(f.queryHash),g=t.subscribed!==!1;f._optimisticResults=i?"isRestoring":g?"optimistic":void 0,qN(f),PN(f,o,m),FN(o);const p=!d.getQueryCache().get(f.queryHash),[v]=N.useState(()=>new a(d,f)),y=v.getOptimisticResult(f),x=!i&&g;if(N.useSyncExternalStore(N.useCallback(_=>{const C=x?v.subscribe(yt.batchCalls(_)):Ht;return v.updateResult(),C},[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),N.useEffect(()=>{v.setOptions(f)},[f,v]),IN(f,y))throw Zb(f,v,o);if(HN({result:y,errorResetBoundary:o,throwOnError:f.throwOnError,query:m,suspense:f.suspense}))throw y.error;if((E=(S=d.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||E.call(S,f,y),f.experimental_prefetchInRender&&!eo.isServer()&&GN(y,i)){const _=p?Zb(f,v,o):m==null?void 0:m.promise;_==null||_.catch(Ht).finally(()=>{v.updateResult()})}return f.notifyOnChangeProps?y:v.trackResult(y)}function La(t,a){return QN(t,RN)}function I0(t,a){const r=Er(),[i]=N.useState(()=>new kN(r,t));N.useEffect(()=>{i.setOptions(t)},[i,t]);const o=N.useSyncExternalStore(N.useCallback(f=>i.subscribe(yt.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),d=N.useCallback((f,m)=>{i.mutate(f,m).catch(Ht)},[i]);if(o.error&&km(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}/**
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 VN=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),YN=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),Kb=t=>{const a=YN(t);return a.charAt(0).toUpperCase()+a.slice(1)},Q0=(...t)=>t.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),$N=t=>{for(const a in t)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 XN={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 ZN=N.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:d,iconNode:f,...m},g)=>N.createElement("svg",{ref:g,...XN,width:a,height:a,stroke:t,strokeWidth:i?Number(r)*24/Number(a):r,className:Q0("lucide",o),...!d&&!$N(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,v])=>N.createElement(p,v)),...Array.isArray(d)?d:[d]]));/**
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 Le=(t,a)=>{const r=N.forwardRef(({className:i,...o},d)=>N.createElement(ZN,{ref:d,iconNode:a,className:Q0(`lucide-${VN(Kb(t))}`,`lucide-${t}`,i),...o}));return r.displayName=Kb(t),r};/**
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 KN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],lm=Le("arrow-right",KN);/**
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 WN=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],JN=Le("brain",WN);/**
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 eR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zi=Le("chevron-left",eR);/**
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 tR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wb=Le("chevron-right",tR);/**
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 nR=[["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"}]],V0=Le("circle-alert",nR);/**
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 aR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uo=Le("circle-check",aR);/**
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 sR=[["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"}]],Jb=Le("circle-x",sR);/**
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 rR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],iR=Le("clock-3",rR);/**
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 lR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],oR=Le("clock",lR);/**
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 cR=[["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"}]],Y0=Le("database-zap",cR);/**
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 uR=[["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"}]],dR=Le("database",uR);/**
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 fR=[["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"}]],hR=Le("file-code-2",fR);/**
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 mR=[["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"}]],_u=Le("file-text",mR);/**
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:"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"}]],gR=Le("folder-kanban",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 yR=[["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"}]],om=Le("folder-open",yR);/**
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 vR=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],bR=Le("gauge",vR);/**
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 xR=[["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"}]],SR=Le("git-branch",xR);/**
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 wR=[["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"}]],jR=Le("globe",wR);/**
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 ER=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],NR=Le("history",ER);/**
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 RR=[["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"}]],$0=Le("layers",RR);/**
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 CR=[["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"}]],_R=Le("layout-dashboard",CR);/**
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 AR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],to=Le("loader-circle",AR);/**
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 TR=[["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"}]],kR=Le("message-square",TR);/**
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 OR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],MR=Le("moon",OR);/**
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 DR=[["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"}]],LR=Le("network",DR);/**
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 zR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],BR=Le("panel-left",zR);/**
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 UR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],cm=Le("plus",UR);/**
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 PR=[["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"}]],FR=Le("scroll-text",PR);/**
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 HR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Au=Le("search",HR);/**
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 qR=[["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"}]],GR=Le("settings",qR);/**
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 IR=[["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"}]],QR=Le("sun",IR);/**
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 VR=[["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"}]],YR=Le("target",VR);/**
246
- * @license lucide-react v0.511.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const $R=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],X0=Le("trash-2",$R);/**
251
- * @license lucide-react v0.511.0 - ISC
252
- *
253
- * This source code is licensed under the ISC license.
254
- * See the LICENSE file in the root directory of this source tree.
255
- */const XR=[["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=Le("triangle-alert",XR);/**
256
- * @license lucide-react v0.511.0 - ISC
257
- *
258
- * This source code is licensed under the ISC license.
259
- * See the LICENSE file in the root directory of this source tree.
260
- */const ZR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bi=Le("x",ZR),KR="/api";async function Dt(t,a){const r=await fetch(`${KR}${t}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`API error: ${r.status}`)}return r.json()}const yn={getDashboard:()=>Dt("/dashboard"),listWorkspaces:()=>Dt("/workspaces"),getWorkspace:t=>Dt(`/workspaces/${t}`),createWorkspace:t=>Dt("/workspaces",{method:"POST",body:JSON.stringify(t)}),deleteWorkspace:t=>Dt(`/workspaces/${t}`,{method:"DELETE"}),getWorkspaceGraph:t=>Dt(`/workspaces/${t}/graph`),getDocuments:(t={})=>{const a=new URLSearchParams;return t.limit&&a.set("limit",String(t.limit)),t.offset&&a.set("offset",String(t.offset)),Dt(`/documents?${a}`)},runQuery:t=>Dt("/query",{method:"POST",body:JSON.stringify(t)}),startIndexRun:(t,a)=>Dt(`/workspaces/${t}/index`,{method:"POST",body:JSON.stringify({mode:a??"incremental"})}),getIndexStatus:t=>Dt(`/workspaces/${t}/index`),validatePath:t=>Dt("/validate-path",{method:"POST",body:JSON.stringify({rootPath:t})}),getChangelog:()=>Dt("/changelog"),getMemories:(t={})=>{const a=new URLSearchParams;return t.q&&a.set("q",t.q),t.limit&&a.set("limit",String(t.limit)),t.offset&&a.set("offset",String(t.offset)),Dt(`/memories?${a}`)},getMemory:t=>Dt(`/memories/${t}`),createMemory:t=>Dt("/memories",{method:"POST",body:JSON.stringify(t)}),deleteMemory:t=>Dt(`/memories/${t}`,{method:"DELETE"})},Dm={queryKey:["dashboard"],queryFn:yn.getDashboard},Lm={queryKey:["workspaces"],queryFn:yn.listWorkspaces},Ui=t=>({queryKey:["workspace",t],queryFn:()=>yn.getWorkspace(t)}),Tu=t=>({queryKey:["workspace-graph",t],queryFn:()=>yn.getWorkspaceGraph(t)}),du=(t,a)=>({queryKey:["documents",t,a],queryFn:()=>yn.getDocuments({limit:a,offset:(t-1)*a})}),Z0={queryKey:["settings","env"],queryFn:async()=>{const t=await fetch("/api/settings/env");if(!t.ok)throw new Error(`Failed to fetch env settings: ${t.status} ${t.statusText}`);return t.json()},staleTime:1/0},fu=(t,a)=>({queryKey:["memories",t,a],queryFn:()=>yn.getMemories({limit:a,offset:(t-1)*a})}),WR=t=>({queryKey:["memories","search",t],queryFn:()=>yn.getMemories({q:t,limit:100})}),qt=10;function JR(t,a){const r=Math.max(1,Math.ceil(t.length/qt));return{paged:t.slice((a-1)*qt,a*qt),totalPages:r}}function zm({currentPage:t,totalPages:a,basePath:r}){return a<=1?null:c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[t>1?c.jsxs(vt,{to:r,search:{page:t-1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:[c.jsx(zi,{className:"h-3.5 w-3.5"}),"Previous"]}):c.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:[c.jsx(zi,{className:"h-3.5 w-3.5"}),"Previous"]}),c.jsxs("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",t," of ",a]}),t<a?c.jsxs(vt,{to:r,search:{page:t+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",c.jsx(Wb,{className:"h-3.5 w-3.5"})]}):c.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",c.jsx(Wb,{className:"h-3.5 w-3.5"})]})]})}function K0(t){var a,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(r=K0(t[a]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function fo(){for(var t,a,r=0,i="",o=arguments.length;r<o;r++)(t=arguments[r])&&(a=K0(t))&&(i&&(i+=" "),i+=a);return i}const ex=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,tx=fo,ku=(t,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return tx(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:d}=a,f=Object.keys(o).map(p=>{const v=r==null?void 0:r[p],y=d==null?void 0:d[p];if(v===null)return null;const x=ex(v)||ex(y);return o[p][x]}),m=r&&Object.entries(r).reduce((p,v)=>{let[y,x]=v;return x===void 0||(p[y]=x),p},{}),g=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((p,v)=>{let{class:y,className:x,...j}=v;return Object.entries(j).every(w=>{let[S,E]=w;return Array.isArray(E)?E.includes({...d,...m}[S]):{...d,...m}[S]===E})?[...p,y,x]:p},[]);return tx(t,f,g,r==null?void 0:r.class,r==null?void 0:r.className)},eC=(t,a)=>{const r=new Array(t.length+a.length);for(let i=0;i<t.length;i++)r[i]=t[i];for(let i=0;i<a.length;i++)r[t.length+i]=a[i];return r},tC=(t,a)=>({classGroupId:t,validator:a}),W0=(t=new Map,a=null,r)=>({nextPart:t,validators:a,classGroupId:r}),hu="-",nx=[],nC="arbitrary..",aC=t=>{const a=rC(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return sC(f);const m=f.split(hu),g=m[0]===""&&m.length>1?1:0;return J0(m,g,a)},getConflictingClassGroupIds:(f,m)=>{if(m){const g=i[f],p=r[f];return g?p?eC(p,g):g:p||nx}return r[f]||nx}}},J0=(t,a,r)=>{if(t.length-a===0)return r.classGroupId;const o=t[a],d=r.nextPart.get(o);if(d){const p=J0(t,a+1,d);if(p)return p}const f=r.validators;if(f===null)return;const m=a===0?t.join(hu):t.slice(a).join(hu),g=f.length;for(let p=0;p<g;p++){const v=f[p];if(v.validator(m))return v.classGroupId}},sC=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),r=a.indexOf(":"),i=a.slice(0,r);return i?nC+i:void 0})(),rC=t=>{const{theme:a,classGroups:r}=t;return iC(r,a)},iC=(t,a)=>{const r=W0();for(const i in t){const o=t[i];Bm(o,r,i,a)}return r},Bm=(t,a,r,i)=>{const o=t.length;for(let d=0;d<o;d++){const f=t[d];lC(f,a,r,i)}},lC=(t,a,r,i)=>{if(typeof t=="string"){oC(t,a,r);return}if(typeof t=="function"){cC(t,a,r,i);return}uC(t,a,r,i)},oC=(t,a,r)=>{const i=t===""?a:e1(a,t);i.classGroupId=r},cC=(t,a,r,i)=>{if(dC(t)){Bm(t(i),a,r,i);return}a.validators===null&&(a.validators=[]),a.validators.push(tC(r,t))},uC=(t,a,r,i)=>{const o=Object.entries(t),d=o.length;for(let f=0;f<d;f++){const[m,g]=o[f];Bm(g,e1(a,m),r,i)}},e1=(t,a)=>{let r=t;const i=a.split(hu),o=i.length;for(let d=0;d<o;d++){const f=i[d];let m=r.nextPart.get(f);m||(m=W0(),r.nextPart.set(f,m)),r=m}return r},dC=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,fC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),i=Object.create(null);const o=(d,f)=>{r[d]=f,a++,a>t&&(a=0,i=r,r=Object.create(null))};return{get(d){let f=r[d];if(f!==void 0)return f;if((f=i[d])!==void 0)return o(d,f),f},set(d,f){d in r?r[d]=f:o(d,f)}}},um="!",ax=":",hC=[],sx=(t,a,r,i,o)=>({modifiers:t,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:i,isExternal:o}),mC=t=>{const{prefix:a,experimentalParseClassName:r}=t;let i=o=>{const d=[];let f=0,m=0,g=0,p;const v=o.length;for(let S=0;S<v;S++){const E=o[S];if(f===0&&m===0){if(E===ax){d.push(o.slice(g,S)),g=S+1;continue}if(E==="/"){p=S;continue}}E==="["?f++:E==="]"?f--:E==="("?m++:E===")"&&m--}const y=d.length===0?o:o.slice(g);let x=y,j=!1;y.endsWith(um)?(x=y.slice(0,-1),j=!0):y.startsWith(um)&&(x=y.slice(1),j=!0);const w=p&&p>g?p-g:void 0;return sx(d,j,x,w)};if(a){const o=a+ax,d=i;i=f=>f.startsWith(o)?d(f.slice(o.length)):sx(hC,!1,f,void 0,!0)}if(r){const o=i;i=d=>r({className:d,parseClassName:o})}return i},pC=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((r,i)=>{a.set(r,1e6+i)}),r=>{const i=[];let o=[];for(let d=0;d<r.length;d++){const f=r[d],m=f[0]==="[",g=a.has(f);m||g?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(f)):o.push(f)}return o.length>0&&(o.sort(),i.push(...o)),i}},gC=t=>({cache:fC(t.cacheSize),parseClassName:mC(t),sortModifiers:pC(t),postfixLookupClassGroupIds:yC(t),...aC(t)}),yC=t=>{const a=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let i=0;i<r.length;i++)a[r[i]]=!0;return a},vC=/\s+/,bC=(t,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:d,postfixLookupClassGroupIds:f}=a,m=[],g=t.trim().split(vC);let p="";for(let v=g.length-1;v>=0;v-=1){const y=g[v],{isExternal:x,modifiers:j,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:E}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let _=!!E,C;if(_){const k=S.substring(0,E);C=i(k);const D=C&&f[C]?i(S):void 0;D&&D!==C&&(C=D,_=!1)}else C=i(S);if(!C){if(!_){p=y+(p.length>0?" "+p:p);continue}if(C=i(S),!C){p=y+(p.length>0?" "+p:p);continue}_=!1}const T=j.length===0?"":j.length===1?j[0]:d(j).join(":"),A=w?T+um:T,B=A+C;if(m.indexOf(B)>-1)continue;m.push(B);const q=o(C,_);for(let k=0;k<q.length;++k){const D=q[k];m.push(A+D)}p=y+(p.length>0?" "+p:p)}return p},xC=(...t)=>{let a=0,r,i,o="";for(;a<t.length;)(r=t[a++])&&(i=t1(r))&&(o&&(o+=" "),o+=i);return o},t1=t=>{if(typeof t=="string")return t;let a,r="";for(let i=0;i<t.length;i++)t[i]&&(a=t1(t[i]))&&(r&&(r+=" "),r+=a);return r},SC=(t,...a)=>{let r,i,o,d;const f=g=>{const p=a.reduce((v,y)=>y(v),t());return r=gC(p),i=r.cache.get,o=r.cache.set,d=m,m(g)},m=g=>{const p=i(g);if(p)return p;const v=bC(g,r);return o(g,v),v};return d=f,(...g)=>d(xC(...g))},wC=[],gt=t=>{const a=r=>r[t]||wC;return a.isThemeGetter=!0,a},n1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,a1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,EC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NC=/\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$/,RC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,CC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_C=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=t=>jC.test(t),Ne=t=>!!t&&!Number.isNaN(Number(t)),Yn=t=>!!t&&Number.isInteger(Number(t)),wh=t=>t.endsWith("%")&&Ne(t.slice(0,-1)),Na=t=>EC.test(t),s1=()=>!0,AC=t=>NC.test(t)&&!RC.test(t),Um=()=>!1,TC=t=>CC.test(t),kC=t=>_C.test(t),OC=t=>!ue(t)&&!de(t),MC=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),DC=t=>Ds(t,l1,Um),ue=t=>n1.test(t),tr=t=>Ds(t,o1,AC),rx=t=>Ds(t,qC,Ne),LC=t=>Ds(t,u1,s1),zC=t=>Ds(t,c1,Um),ix=t=>Ds(t,r1,Um),BC=t=>Ds(t,i1,kC),Uc=t=>Ds(t,d1,TC),de=t=>a1.test(t),Ql=t=>Nr(t,o1),UC=t=>Nr(t,c1),lx=t=>Nr(t,r1),PC=t=>Nr(t,l1),FC=t=>Nr(t,i1),Pc=t=>Nr(t,d1,!0),HC=t=>Nr(t,u1,!0),Ds=(t,a,r)=>{const i=n1.exec(t);return i?i[1]?a(i[1]):r(i[2]):!1},Nr=(t,a,r=!1)=>{const i=a1.exec(t);return i?i[1]?a(i[1]):r:!1},r1=t=>t==="position"||t==="percentage",i1=t=>t==="image"||t==="url",l1=t=>t==="length"||t==="size"||t==="bg-size",o1=t=>t==="length",qC=t=>t==="number",c1=t=>t==="family-name",u1=t=>t==="number"||t==="weight",d1=t=>t==="shadow",GC=()=>{const t=gt("color"),a=gt("font"),r=gt("text"),i=gt("font-weight"),o=gt("tracking"),d=gt("leading"),f=gt("breakpoint"),m=gt("container"),g=gt("spacing"),p=gt("radius"),v=gt("shadow"),y=gt("inset-shadow"),x=gt("text-shadow"),j=gt("drop-shadow"),w=gt("blur"),S=gt("perspective"),E=gt("aspect"),_=gt("ease"),C=gt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),de,ue],q=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],D=()=>[de,ue,g],z=()=>[fs,"full","auto",...D()],H=()=>[Yn,"none","subgrid",de,ue],X=()=>["auto",{span:["full",Yn,de,ue]},Yn,de,ue],ne=()=>[Yn,"auto",de,ue],se=()=>["auto","min","max","fr",de,ue],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...D()],V=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ee=()=>[fs,"screen","full","dvw","lvw","svw","min","max","fit",...D()],ye=()=>[fs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],ae=()=>[t,de,ue],L=()=>[...A(),lx,ix,{position:[de,ue]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",PC,DC,{size:[de,ue]}],ie=()=>[wh,Ql,tr],le=()=>["","none","full",p,de,ue],he=()=>["",Ne,Ql,tr],xe=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Ne,wh,lx,ix],Bt=()=>["","none",w,de,ue],Et=()=>["none",Ne,de,ue],kt=()=>["none",Ne,de,ue],Ut=()=>[Ne,de,ue],xt=()=>[fs,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Na],breakpoint:[Na],color:[s1],container:[Na],"drop-shadow":[Na],ease:["in","out","in-out"],font:[OC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Na],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Na],shadow:[Na],spacing:["px",Ne],text:[Na],"text-shadow":[Na],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,ue,de,E]}],container:["container"],"container-type":[{"@container":["","normal","size",de,ue]}],"container-named":[MC],columns:[{columns:[Ne,ue,de,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:B()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Yn,"auto",de,ue]}],basis:[{basis:[fs,"full","auto",m,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,fs,"auto","initial","none",ue]}],grow:[{grow:["",Ne,de,ue]}],shrink:[{shrink:["",Ne,de,ue]}],order:[{order:[Yn,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],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:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...ye()]}],"min-block-size":[{"min-block":["auto",...ye()]}],"max-block-size":[{"max-block":["none",...ye()]}],w:[{w:[m,"screen",...V()]}],"min-w":[{"min-w":[m,"screen","none",...V()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,Ql,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,HC,LC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wh,ue]}],"font-family":[{font:[UC,zC,a]}],"font-features":[{"font-features":[ue]}],"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,de,ue]}],"line-clamp":[{"line-clamp":[Ne,"none",de,rx]}],leading:[{leading:[d,...D()]}],"list-image":[{"list-image":["none",de,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ae()}],"text-color":[{text:ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",de,tr]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[Ne,"auto",de,ue]}],"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:[Yn,de,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ue]}],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",de,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yn,de,ue],radial:["",de,ue],conic:[Yn,de,ue]},FC,BC]}],"bg-color":[{bg:ae()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:ae()}],"gradient-via":[{via:ae()}],"gradient-to":[{to:ae()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"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:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:ae()}],"border-color-x":[{"border-x":ae()}],"border-color-y":[{"border-y":ae()}],"border-color-s":[{"border-s":ae()}],"border-color-e":[{"border-e":ae()}],"border-color-bs":[{"border-bs":ae()}],"border-color-be":[{"border-be":ae()}],"border-color-t":[{"border-t":ae()}],"border-color-r":[{"border-r":ae()}],"border-color-b":[{"border-b":ae()}],"border-color-l":[{"border-l":ae()}],"divide-color":[{divide:ae()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,de,ue]}],"outline-w":[{outline:["",Ne,Ql,tr]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",v,Pc,Uc]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",y,Pc,Uc]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[Ne,tr]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",x,Pc,Uc]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[Ne,de,ue]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"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":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":ae()}],"mask-image-linear-to-color":[{"mask-linear-to":ae()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":ae()}],"mask-image-t-to-color":[{"mask-t-to":ae()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":ae()}],"mask-image-r-to-color":[{"mask-r-to":ae()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":ae()}],"mask-image-b-to-color":[{"mask-b-to":ae()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":ae()}],"mask-image-l-to-color":[{"mask-l-to":ae()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":ae()}],"mask-image-x-to-color":[{"mask-x-to":ae()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":ae()}],"mask-image-y-to-color":[{"mask-y-to":ae()}],"mask-image-radial":[{"mask-radial":[de,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":ae()}],"mask-image-radial-to-color":[{"mask-radial-to":ae()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":ae()}],"mask-image-conic-to-color":[{"mask-conic-to":ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ue]}],filter:[{filter:["","none",de,ue]}],blur:[{blur:Bt()}],brightness:[{brightness:[Ne,de,ue]}],contrast:[{contrast:[Ne,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",j,Pc,Uc]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",Ne,de,ue]}],"hue-rotate":[{"hue-rotate":[Ne,de,ue]}],invert:[{invert:["",Ne,de,ue]}],saturate:[{saturate:[Ne,de,ue]}],sepia:[{sepia:["",Ne,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":Bt()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ne,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,de,ue]}],"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",de,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",de,ue]}],ease:[{ease:["linear","initial",_,de,ue]}],delay:[{delay:[Ne,de,ue]}],animate:[{animate:["none",C,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,de,ue]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Et()}],"rotate-x":[{"rotate-x":Et()}],"rotate-y":[{"rotate-y":Et()}],"rotate-z":[{"rotate-z":Et()}],scale:[{scale:kt()}],"scale-x":[{"scale-x":kt()}],"scale-y":[{"scale-y":kt()}],"scale-z":[{"scale-z":kt()}],"scale-3d":["scale-3d"],skew:[{skew:Ut()}],"skew-x":[{"skew-x":Ut()}],"skew-y":[{"skew-y":Ut()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],zoom:[{zoom:[Yn,de,ue]}],accent:[{accent:ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ae()}],"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",de,ue]}],"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":ae()}],"scrollbar-track-color":[{"scrollbar-track":ae()}],"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",de,ue]}],fill:[{fill:["none",...ae()]}],"stroke-w":[{stroke:[Ne,Ql,tr,rx]}],stroke:[{stroke:["none",...ae()]}],"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"]}},f1=SC(GC);function bt(...t){return f1(fo(t))}const IC=ku("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 ft({className:t,variant:a,...r}){return c.jsx("div",{className:bt(IC({variant:a}),t),...r})}const h1=ku("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"}}),mt=N.forwardRef(({className:t,variant:a,size:r,...i},o)=>c.jsx("button",{className:bt(h1({variant:a,size:r,className:t})),ref:o,...i}));mt.displayName="Button";const Re=({className:t,...a})=>c.jsx("section",{className:bt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a}),Ke=({className:t,...a})=>c.jsx("div",{className:bt("flex flex-col space-y-1.5 p-6",t),...a}),We=({className:t,...a})=>c.jsx("h3",{className:bt("text-2xl font-semibold leading-none tracking-tight",t),...a}),jh=({className:t,...a})=>c.jsx("p",{className:bt("text-sm text-muted-foreground",t),...a}),Ce=({className:t,...a})=>c.jsx("div",{className:bt("p-6 pt-0",t),...a}),QC=({className:t,children:a,...r})=>c.jsx("pre",{className:bt("rounded-lg border bg-card/50 p-4 overflow-auto text-sm font-mono text-foreground leading-relaxed",t),...r,children:a}),Ts=N.forwardRef(({className:t,type:a,...r},i)=>c.jsx("input",{type:a,className:bt("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",t),ref:i,...r}));Ts.displayName="Input";const dt=N.forwardRef(({className:t,...a},r)=>c.jsx("label",{ref:r,className:bt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),...a}));dt.displayName="Label";const ta=N.forwardRef(({className:t,...a},r)=>c.jsx("div",{className:"relative w-full overflow-auto",children:c.jsx("table",{ref:r,className:bt("w-full caption-bottom text-sm",t),...a})}));ta.displayName="Table";const na=N.forwardRef(({className:t,...a},r)=>c.jsx("thead",{ref:r,className:bt("[&_tr]:border-b",t),...a}));na.displayName="TableHeader";const aa=N.forwardRef(({className:t,...a},r)=>c.jsx("tbody",{ref:r,className:bt("[&_tr:last-child]:border-0",t),...a}));aa.displayName="TableBody";const VC=N.forwardRef(({className:t,...a},r)=>c.jsx("tfoot",{ref:r,className:bt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...a}));VC.displayName="TableFooter";const ht=N.forwardRef(({className:t,...a},r)=>c.jsx("tr",{ref:r,className:bt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...a}));ht.displayName="TableRow";const Be=N.forwardRef(({className:t,...a},r)=>c.jsx("th",{ref:r,className:bt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...a}));Be.displayName="TableHead";const Oe=N.forwardRef(({className:t,...a},r)=>c.jsx("td",{ref:r,className:bt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a}));Oe.displayName="TableCell";const YC=N.forwardRef(({className:t,...a},r)=>c.jsx("caption",{ref:r,className:bt("mt-4 text-sm text-muted-foreground",t),...a}));YC.displayName="TableCaption";const mu=({className:t,...a})=>c.jsx("textarea",{className:bt("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",t),...a});function Wt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function ox(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function Pm(...t){return a=>{let r=!1;const i=t.map(o=>{const d=ox(o,a);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let o=0;o<i.length;o++){const d=i[o];typeof d=="function"?d():ox(t[o],null)}}}}function Fn(...t){return N.useCallback(Pm(...t),t)}function $C(t,a){const r=N.createContext(a),i=d=>{const{children:f,...m}=d,g=N.useMemo(()=>m,Object.values(m));return c.jsx(r.Provider,{value:g,children:f})};i.displayName=t+"Provider";function o(d){const f=N.useContext(r);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${t}\``)}return[i,o]}function Fm(t,a=[]){let r=[];function i(d,f){const m=N.createContext(f),g=r.length;r=[...r,f];const p=y=>{var _;const{scope:x,children:j,...w}=y,S=((_=x==null?void 0:x[t])==null?void 0:_[g])||m,E=N.useMemo(()=>w,Object.values(w));return c.jsx(S.Provider,{value:E,children:j})};p.displayName=d+"Provider";function v(y,x){var S;const j=((S=x==null?void 0:x[t])==null?void 0:S[g])||m,w=N.useContext(j);if(w)return w;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${d}\``)}return[p,v]}const o=()=>{const d=r.map(f=>N.createContext(f));return function(m){const g=(m==null?void 0:m[t])||d;return N.useMemo(()=>({[`__scope${t}`]:{...m,[t]:g}}),[m,g])}};return o.scopeName=t,[i,XC(o,...a)]}function XC(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(d){const f=i.reduce((m,{useScope:g,scopeName:p})=>{const y=g(d)[`__scope${p}`];return{...m,...y}},{});return N.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return r.scopeName=a.scopeName,r}function m1(t){const a=ZC(t),r=N.forwardRef((i,o)=>{const{children:d,...f}=i,m=N.Children.toArray(d),g=m.find(WC);if(g){const p=g.props.children,v=m.map(y=>y===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:y);return c.jsx(a,{...f,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,v):null})}return c.jsx(a,{...f,ref:o,children:d})});return r.displayName=`${t}.Slot`,r}function ZC(t){const a=N.forwardRef((r,i)=>{const{children:o,...d}=r;if(N.isValidElement(o)){const f=e_(o),m=JC(d,o.props);return o.type!==N.Fragment&&(m.ref=i?Pm(i,f):f),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var p1=Symbol("radix.slottable");function KC(t){const a=({children:r})=>c.jsx(c.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=p1,a}function WC(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===p1}function JC(t,a){const r={...a};for(const i in a){const o=t[i],d=a[i];/^on[A-Z]/.test(i)?o&&d?r[i]=(...m)=>{const g=d(...m);return o(...m),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...d}:i==="className"&&(r[i]=[o,d].filter(Boolean).join(" "))}return{...t,...r}}function e_(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var t_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tn=t_.reduce((t,a)=>{const r=m1(`Primitive.${a}`),i=N.forwardRef((o,d)=>{const{asChild:f,...m}=o,g=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(g,{...m,ref:d})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{});function n_(t,a){t&&Ru.flushSync(()=>t.dispatchEvent(a))}function Pi(t){const a=N.useRef(t);return N.useEffect(()=>{a.current=t}),N.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}function a_(t,a=globalThis==null?void 0:globalThis.document){const r=Pi(t);N.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var s_="DismissableLayer",dm="dismissableLayer.update",r_="dismissableLayer.pointerDownOutside",i_="dismissableLayer.focusOutside",cx,g1=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hm=N.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d,onInteractOutside:f,onDismiss:m,...g}=t,p=N.useContext(g1),[v,y]=N.useState(null),x=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=N.useState({}),w=Fn(a,k=>y(k)),S=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(E),C=v?S.indexOf(v):-1,T=p.layersWithOutsidePointerEventsDisabled.size>0,A=C>=_,B=c_(k=>{const D=k.target,z=[...p.branches].some(H=>H.contains(D));!A||z||(o==null||o(k),f==null||f(k),k.defaultPrevented||m==null||m())},x),q=u_(k=>{const D=k.target;[...p.branches].some(H=>H.contains(D))||(d==null||d(k),f==null||f(k),k.defaultPrevented||m==null||m())},x);return a_(k=>{C===p.layers.size-1&&(i==null||i(k),!k.defaultPrevented&&m&&(k.preventDefault(),m()))},x),N.useEffect(()=>{if(v)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(cx=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),ux(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=cx)}},[v,x,r,p]),N.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),ux())},[v,p]),N.useEffect(()=>{const k=()=>j({});return document.addEventListener(dm,k),()=>document.removeEventListener(dm,k)},[]),c.jsx(tn.div,{...g,ref:w,style:{pointerEvents:T?A?"auto":"none":void 0,...t.style},onFocusCapture:Wt(t.onFocusCapture,q.onFocusCapture),onBlurCapture:Wt(t.onBlurCapture,q.onBlurCapture),onPointerDownCapture:Wt(t.onPointerDownCapture,B.onPointerDownCapture)})});Hm.displayName=s_;var l_="DismissableLayerBranch",o_=N.forwardRef((t,a)=>{const r=N.useContext(g1),i=N.useRef(null),o=Fn(a,i);return N.useEffect(()=>{const d=i.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),c.jsx(tn.div,{...t,ref:o})});o_.displayName=l_;function c_(t,a=globalThis==null?void 0:globalThis.document){const r=Pi(t),i=N.useRef(!1),o=N.useRef(()=>{});return N.useEffect(()=>{const d=m=>{if(m.target&&!i.current){let g=function(){y1(r_,r,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);i.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",d),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function u_(t,a=globalThis==null?void 0:globalThis.document){const r=Pi(t),i=N.useRef(!1);return N.useEffect(()=>{const o=d=>{d.target&&!i.current&&y1(i_,r,{originalEvent:d},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function ux(){const t=new CustomEvent(dm);document.dispatchEvent(t)}function y1(t,a,r,{discrete:i}){const o=r.originalEvent.target,d=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(t,a,{once:!0}),i?n_(o,d):o.dispatchEvent(d)}var ks=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},d_=Sm[" useId ".trim().toString()]||(()=>{}),f_=0;function Jc(t){const[a,r]=N.useState(d_());return ks(()=>{r(i=>i??String(f_++))},[t]),t||(a?`radix-${a}`:"")}const h_=["top","right","bottom","left"],Os=Math.min,pn=Math.max,pu=Math.round,Fc=Math.floor,sa=t=>({x:t,y:t}),m_={left:"right",right:"left",bottom:"top",top:"bottom"};function fm(t,a,r){return pn(t,Os(a,r))}function za(t,a){return typeof t=="function"?t(a):t}function Ba(t){return t.split("-")[0]}function Ii(t){return t.split("-")[1]}function qm(t){return t==="x"?"y":"x"}function Gm(t){return t==="y"?"height":"width"}function Jn(t){const a=t[0];return a==="t"||a==="b"?"y":"x"}function Im(t){return qm(Jn(t))}function p_(t,a,r){r===void 0&&(r=!1);const i=Ii(t),o=Im(t),d=Gm(o);let f=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[d]>a.floating[d]&&(f=gu(f)),[f,gu(f)]}function g_(t){const a=gu(t);return[hm(t),a,hm(a)]}function hm(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const dx=["left","right"],fx=["right","left"],y_=["top","bottom"],v_=["bottom","top"];function b_(t,a,r){switch(t){case"top":case"bottom":return r?a?fx:dx:a?dx:fx;case"left":case"right":return a?y_:v_;default:return[]}}function x_(t,a,r,i){const o=Ii(t);let d=b_(Ba(t),r==="start",i);return o&&(d=d.map(f=>f+"-"+o),a&&(d=d.concat(d.map(hm)))),d}function gu(t){const a=Ba(t);return m_[a]+t.slice(a.length)}function S_(t){return{top:0,right:0,bottom:0,left:0,...t}}function v1(t){return typeof t!="number"?S_(t):{top:t,right:t,bottom:t,left:t}}function yu(t){const{x:a,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function hx(t,a,r){let{reference:i,floating:o}=t;const d=Jn(a),f=Im(a),m=Gm(f),g=Ba(a),p=d==="y",v=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,x=i[m]/2-o[m]/2;let j;switch(g){case"top":j={x:v,y:i.y-o.height};break;case"bottom":j={x:v,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y};break;case"left":j={x:i.x-o.width,y};break;default:j={x:i.x,y:i.y}}switch(Ii(a)){case"start":j[f]-=x*(r&&p?-1:1);break;case"end":j[f]+=x*(r&&p?-1:1);break}return j}async function w_(t,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:d,rects:f,elements:m,strategy:g}=t,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:j=0}=za(a,t),w=v1(j),E=m[x?y==="floating"?"reference":"floating":y],_=yu(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(E)))==null||r?E:E.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(m.floating)),boundary:p,rootBoundary:v,strategy:g})),C=y==="floating"?{x:i,y:o,width:f.floating.width,height:f.floating.height}:f.reference,T=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m.floating)),A=await(d.isElement==null?void 0:d.isElement(T))?await(d.getScale==null?void 0:d.getScale(T))||{x:1,y:1}:{x:1,y:1},B=yu(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:C,offsetParent:T,strategy:g}):C);return{top:(_.top-B.top+w.top)/A.y,bottom:(B.bottom-_.bottom+w.bottom)/A.y,left:(_.left-B.left+w.left)/A.x,right:(B.right-_.right+w.right)/A.x}}const j_=50,E_=async(t,a,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:d=[],platform:f}=r,m=f.detectOverflow?f:{...f,detectOverflow:w_},g=await(f.isRTL==null?void 0:f.isRTL(a));let p=await f.getElementRects({reference:t,floating:a,strategy:o}),{x:v,y}=hx(p,i,g),x=i,j=0;const w={};for(let S=0;S<d.length;S++){const E=d[S];if(!E)continue;const{name:_,fn:C}=E,{x:T,y:A,data:B,reset:q}=await C({x:v,y,initialPlacement:i,placement:x,strategy:o,middlewareData:w,rects:p,platform:m,elements:{reference:t,floating:a}});v=T??v,y=A??y,w[_]={...w[_],...B},q&&j<j_&&(j++,typeof q=="object"&&(q.placement&&(x=q.placement),q.rects&&(p=q.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:o}):q.rects),{x:v,y}=hx(p,x,g)),S=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:w}},N_=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:i,placement:o,rects:d,platform:f,elements:m,middlewareData:g}=a,{element:p,padding:v=0}=za(t,a)||{};if(p==null)return{};const y=v1(v),x={x:r,y:i},j=Im(o),w=Gm(j),S=await f.getDimensions(p),E=j==="y",_=E?"top":"left",C=E?"bottom":"right",T=E?"clientHeight":"clientWidth",A=d.reference[w]+d.reference[j]-x[j]-d.floating[w],B=x[j]-d.reference[j],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let k=q?q[T]:0;(!k||!await(f.isElement==null?void 0:f.isElement(q)))&&(k=m.floating[T]||d.floating[w]);const D=A/2-B/2,z=k/2-S[w]/2-1,H=Os(y[_],z),X=Os(y[C],z),ne=H,se=k-S[w]-X,te=k/2-S[w]/2+D,ce=fm(ne,te,se),P=!g.arrow&&Ii(o)!=null&&te!==ce&&d.reference[w]/2-(te<ne?H:X)-S[w]/2<0,V=P?te<ne?te-ne:te-se:0;return{[j]:x[j]+V,data:{[j]:ce,centerOffset:te-ce-V,...P&&{alignmentOffset:V}},reset:P}}}),R_=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,i;const{placement:o,middlewareData:d,rects:f,initialPlacement:m,platform:g,elements:p}=a,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:S=!0,...E}=za(t,a);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const _=Ba(o),C=Jn(m),T=Ba(m)===m,A=await(g.isRTL==null?void 0:g.isRTL(p.floating)),B=x||(T||!S?[gu(m)]:g_(m)),q=w!=="none";!x&&q&&B.push(...x_(m,S,w,A));const k=[m,...B],D=await g.detectOverflow(a,E),z=[];let H=((i=d.flip)==null?void 0:i.overflows)||[];if(v&&z.push(D[_]),y){const te=p_(o,f,A);z.push(D[te[0]],D[te[1]])}if(H=[...H,{placement:o,overflows:z}],!z.every(te=>te<=0)){var X,ne;const te=(((X=d.flip)==null?void 0:X.index)||0)+1,ce=k[te];if(ce&&(!(y==="alignment"?C!==Jn(ce):!1)||H.every(ee=>Jn(ee.placement)===C?ee.overflows[0]>0:!0)))return{data:{index:te,overflows:H},reset:{placement:ce}};let P=(ne=H.filter(V=>V.overflows[0]<=0).sort((V,ee)=>V.overflows[1]-ee.overflows[1])[0])==null?void 0:ne.placement;if(!P)switch(j){case"bestFit":{var se;const V=(se=H.filter(ee=>{if(q){const ye=Jn(ee.placement);return ye===C||ye==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ye=>ye>0).reduce((ye,ae)=>ye+ae,0)]).sort((ee,ye)=>ee[1]-ye[1])[0])==null?void 0:se[0];V&&(P=V);break}case"initialPlacement":P=m;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function mx(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function px(t){return h_.some(a=>t[a]>=0)}const C_=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r,platform:i}=a,{strategy:o="referenceHidden",...d}=za(t,a);switch(o){case"referenceHidden":{const f=await i.detectOverflow(a,{...d,elementContext:"reference"}),m=mx(f,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:px(m)}}}case"escaped":{const f=await i.detectOverflow(a,{...d,altBoundary:!0}),m=mx(f,r.floating);return{data:{escapedOffsets:m,escaped:px(m)}}}default:return{}}}}},b1=new Set(["left","top"]);async function __(t,a){const{placement:r,platform:i,elements:o}=t,d=await(i.isRTL==null?void 0:i.isRTL(o.floating)),f=Ba(r),m=Ii(r),g=Jn(r)==="y",p=b1.has(f)?-1:1,v=d&&g?-1:1,y=za(a,t);let{mainAxis:x,crossAxis:j,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof w=="number"&&(j=m==="end"?w*-1:w),g?{x:j*v,y:x*p}:{x:x*p,y:j*v}}const A_=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,i;const{x:o,y:d,placement:f,middlewareData:m}=a,g=await __(a,t);return f===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+g.x,y:d+g.y,data:{...g,placement:f}}}}},T_=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:i,placement:o,platform:d}=a,{mainAxis:f=!0,crossAxis:m=!1,limiter:g={fn:_=>{let{x:C,y:T}=_;return{x:C,y:T}}},...p}=za(t,a),v={x:r,y:i},y=await d.detectOverflow(a,p),x=Jn(Ba(o)),j=qm(x);let w=v[j],S=v[x];if(f){const _=j==="y"?"top":"left",C=j==="y"?"bottom":"right",T=w+y[_],A=w-y[C];w=fm(T,w,A)}if(m){const _=x==="y"?"top":"left",C=x==="y"?"bottom":"right",T=S+y[_],A=S-y[C];S=fm(T,S,A)}const E=g.fn({...a,[j]:w,[x]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[j]:f,[x]:m}}}}}},k_=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:i,placement:o,rects:d,middlewareData:f}=a,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=za(t,a),v={x:r,y:i},y=Jn(o),x=qm(y);let j=v[x],w=v[y];const S=za(m,a),E=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(g){const T=x==="y"?"height":"width",A=d.reference[x]-d.floating[T]+E.mainAxis,B=d.reference[x]+d.reference[T]-E.mainAxis;j<A?j=A:j>B&&(j=B)}if(p){var _,C;const T=x==="y"?"width":"height",A=b1.has(Ba(o)),B=d.reference[y]-d.floating[T]+(A&&((_=f.offset)==null?void 0:_[y])||0)+(A?0:E.crossAxis),q=d.reference[y]+d.reference[T]+(A?0:((C=f.offset)==null?void 0:C[y])||0)-(A?E.crossAxis:0);w<B?w=B:w>q&&(w=q)}return{[x]:j,[y]:w}}}},O_=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,i;const{placement:o,rects:d,platform:f,elements:m}=a,{apply:g=()=>{},...p}=za(t,a),v=await f.detectOverflow(a,p),y=Ba(o),x=Ii(o),j=Jn(o)==="y",{width:w,height:S}=d.floating;let E,_;y==="top"||y==="bottom"?(E=y,_=x===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(_=y,E=x==="end"?"top":"bottom");const C=S-v.top-v.bottom,T=w-v.left-v.right,A=Os(S-v[E],C),B=Os(w-v[_],T),q=!a.middlewareData.shift;let k=A,D=B;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(D=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(k=C),q&&!x){const H=pn(v.left,0),X=pn(v.right,0),ne=pn(v.top,0),se=pn(v.bottom,0);j?D=w-2*(H!==0||X!==0?H+X:pn(v.left,v.right)):k=S-2*(ne!==0||se!==0?ne+se:pn(v.top,v.bottom))}await g({...a,availableWidth:D,availableHeight:k});const z=await f.getDimensions(m.floating);return w!==z.width||S!==z.height?{reset:{rects:!0}}:{}}}};function Ou(){return typeof window<"u"}function Qi(t){return x1(t)?(t.nodeName||"").toLowerCase():"#document"}function gn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function ia(t){var a;return(a=(x1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function x1(t){return Ou()?t instanceof Node||t instanceof gn(t).Node:!1}function Un(t){return Ou()?t instanceof Element||t instanceof gn(t).Element:!1}function Ua(t){return Ou()?t instanceof HTMLElement||t instanceof gn(t).HTMLElement:!1}function gx(t){return!Ou()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof gn(t).ShadowRoot}function ho(t){const{overflow:a,overflowX:r,overflowY:i,display:o}=Pn(t);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&o!=="inline"&&o!=="contents"}function M_(t){return/^(table|td|th)$/.test(Qi(t))}function Mu(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const D_=/transform|translate|scale|rotate|perspective|filter/,L_=/paint|layout|strict|content/,nr=t=>!!t&&t!=="none";let Eh;function Qm(t){const a=Un(t)?Pn(t):t;return nr(a.transform)||nr(a.translate)||nr(a.scale)||nr(a.rotate)||nr(a.perspective)||!Vm()&&(nr(a.backdropFilter)||nr(a.filter))||D_.test(a.willChange||"")||L_.test(a.contain||"")}function z_(t){let a=Ms(t);for(;Ua(a)&&!Fi(a);){if(Qm(a))return a;if(Mu(a))return null;a=Ms(a)}return null}function Vm(){return Eh==null&&(Eh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Eh}function Fi(t){return/^(html|body|#document)$/.test(Qi(t))}function Pn(t){return gn(t).getComputedStyle(t)}function Du(t){return Un(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ms(t){if(Qi(t)==="html")return t;const a=t.assignedSlot||t.parentNode||gx(t)&&t.host||ia(t);return gx(a)?a.host:a}function S1(t){const a=Ms(t);return Fi(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ua(a)&&ho(a)?a:S1(a)}function no(t,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=S1(t),d=o===((i=t.ownerDocument)==null?void 0:i.body),f=gn(o);if(d){const m=mm(f);return a.concat(f,f.visualViewport||[],ho(o)?o:[],m&&r?no(m):[])}else return a.concat(o,no(o,[],r))}function mm(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function w1(t){const a=Pn(t);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=Ua(t),d=o?t.offsetWidth:r,f=o?t.offsetHeight:i,m=pu(r)!==d||pu(i)!==f;return m&&(r=d,i=f),{width:r,height:i,$:m}}function Ym(t){return Un(t)?t:t.contextElement}function xi(t){const a=Ym(t);if(!Ua(a))return sa(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:d}=w1(a);let f=(d?pu(r.width):r.width)/i,m=(d?pu(r.height):r.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const B_=sa(0);function j1(t){const a=gn(t);return!Vm()||!a.visualViewport?B_:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function U_(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==gn(t)?!1:a}function Sr(t,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),d=Ym(t);let f=sa(1);a&&(i?Un(i)&&(f=xi(i)):f=xi(t));const m=U_(d,r,i)?j1(d):sa(0);let g=(o.left+m.x)/f.x,p=(o.top+m.y)/f.y,v=o.width/f.x,y=o.height/f.y;if(d){const x=gn(d),j=i&&Un(i)?gn(i):i;let w=x,S=mm(w);for(;S&&i&&j!==w;){const E=xi(S),_=S.getBoundingClientRect(),C=Pn(S),T=_.left+(S.clientLeft+parseFloat(C.paddingLeft))*E.x,A=_.top+(S.clientTop+parseFloat(C.paddingTop))*E.y;g*=E.x,p*=E.y,v*=E.x,y*=E.y,g+=T,p+=A,w=gn(S),S=mm(w)}}return yu({width:v,height:y,x:g,y:p})}function Lu(t,a){const r=Du(t).scrollLeft;return a?a.left+r:Sr(ia(t)).left+r}function E1(t,a){const r=t.getBoundingClientRect(),i=r.left+a.scrollLeft-Lu(t,r),o=r.top+a.scrollTop;return{x:i,y:o}}function P_(t){let{elements:a,rect:r,offsetParent:i,strategy:o}=t;const d=o==="fixed",f=ia(i),m=a?Mu(a.floating):!1;if(i===f||m&&d)return r;let g={scrollLeft:0,scrollTop:0},p=sa(1);const v=sa(0),y=Ua(i);if((y||!y&&!d)&&((Qi(i)!=="body"||ho(f))&&(g=Du(i)),y)){const j=Sr(i);p=xi(i),v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}const x=f&&!y&&!d?E1(f,g):sa(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+v.x+x.x,y:r.y*p.y-g.scrollTop*p.y+v.y+x.y}}function F_(t){return Array.from(t.getClientRects())}function H_(t){const a=ia(t),r=Du(t),i=t.ownerDocument.body,o=pn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),d=pn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-r.scrollLeft+Lu(t);const m=-r.scrollTop;return Pn(i).direction==="rtl"&&(f+=pn(a.clientWidth,i.clientWidth)-o),{width:o,height:d,x:f,y:m}}const yx=25;function q_(t,a){const r=gn(t),i=ia(t),o=r.visualViewport;let d=i.clientWidth,f=i.clientHeight,m=0,g=0;if(o){d=o.width,f=o.height;const v=Vm();(!v||v&&a==="fixed")&&(m=o.offsetLeft,g=o.offsetTop)}const p=Lu(i);if(p<=0){const v=i.ownerDocument,y=v.body,x=getComputedStyle(y),j=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,w=Math.abs(i.clientWidth-y.clientWidth-j);w<=yx&&(d-=w)}else p<=yx&&(d+=p);return{width:d,height:f,x:m,y:g}}function G_(t,a){const r=Sr(t,!0,a==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,d=Ua(t)?xi(t):sa(1),f=t.clientWidth*d.x,m=t.clientHeight*d.y,g=o*d.x,p=i*d.y;return{width:f,height:m,x:g,y:p}}function vx(t,a,r){let i;if(a==="viewport")i=q_(t,r);else if(a==="document")i=H_(ia(t));else if(Un(a))i=G_(a,r);else{const o=j1(t);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return yu(i)}function N1(t,a){const r=Ms(t);return r===a||!Un(r)||Fi(r)?!1:Pn(r).position==="fixed"||N1(r,a)}function I_(t,a){const r=a.get(t);if(r)return r;let i=no(t,[],!1).filter(m=>Un(m)&&Qi(m)!=="body"),o=null;const d=Pn(t).position==="fixed";let f=d?Ms(t):t;for(;Un(f)&&!Fi(f);){const m=Pn(f),g=Qm(f);!g&&m.position==="fixed"&&(o=null),(d?!g&&!o:!g&&m.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ho(f)&&!g&&N1(t,f))?i=i.filter(v=>v!==f):o=m,f=Ms(f)}return a.set(t,i),i}function Q_(t){let{element:a,boundary:r,rootBoundary:i,strategy:o}=t;const f=[...r==="clippingAncestors"?Mu(a)?[]:I_(a,this._c):[].concat(r),i],m=vx(a,f[0],o);let g=m.top,p=m.right,v=m.bottom,y=m.left;for(let x=1;x<f.length;x++){const j=vx(a,f[x],o);g=pn(j.top,g),p=Os(j.right,p),v=Os(j.bottom,v),y=pn(j.left,y)}return{width:p-y,height:v-g,x:y,y:g}}function V_(t){const{width:a,height:r}=w1(t);return{width:a,height:r}}function Y_(t,a,r){const i=Ua(a),o=ia(a),d=r==="fixed",f=Sr(t,!0,d,a);let m={scrollLeft:0,scrollTop:0};const g=sa(0);function p(){g.x=Lu(o)}if(i||!i&&!d)if((Qi(a)!=="body"||ho(o))&&(m=Du(a)),i){const j=Sr(a,!0,d,a);g.x=j.x+a.clientLeft,g.y=j.y+a.clientTop}else o&&p();d&&!i&&o&&p();const v=o&&!i&&!d?E1(o,m):sa(0),y=f.left+m.scrollLeft-g.x-v.x,x=f.top+m.scrollTop-g.y-v.y;return{x:y,y:x,width:f.width,height:f.height}}function Nh(t){return Pn(t).position==="static"}function bx(t,a){if(!Ua(t)||Pn(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return ia(t)===r&&(r=r.ownerDocument.body),r}function R1(t,a){const r=gn(t);if(Mu(t))return r;if(!Ua(t)){let o=Ms(t);for(;o&&!Fi(o);){if(Un(o)&&!Nh(o))return o;o=Ms(o)}return r}let i=bx(t,a);for(;i&&M_(i)&&Nh(i);)i=bx(i,a);return i&&Fi(i)&&Nh(i)&&!Qm(i)?r:i||z_(t)||r}const $_=async function(t){const a=this.getOffsetParent||R1,r=this.getDimensions,i=await r(t.floating);return{reference:Y_(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function X_(t){return Pn(t).direction==="rtl"}const Z_={convertOffsetParentRelativeRectToViewportRelativeRect:P_,getDocumentElement:ia,getClippingRect:Q_,getOffsetParent:R1,getElementRects:$_,getClientRects:F_,getDimensions:V_,getScale:xi,isElement:Un,isRTL:X_};function C1(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function K_(t,a){let r=null,i;const o=ia(t);function d(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function f(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),d();const p=t.getBoundingClientRect(),{left:v,top:y,width:x,height:j}=p;if(m||a(),!x||!j)return;const w=Fc(y),S=Fc(o.clientWidth-(v+x)),E=Fc(o.clientHeight-(y+j)),_=Fc(v),T={rootMargin:-w+"px "+-S+"px "+-E+"px "+-_+"px",threshold:pn(0,Os(1,g))||1};let A=!0;function B(q){const k=q[0].intersectionRatio;if(k!==g){if(!A)return f();k?f(!1,k):i=setTimeout(()=>{f(!1,1e-7)},1e3)}k===1&&!C1(p,t.getBoundingClientRect())&&f(),A=!1}try{r=new IntersectionObserver(B,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(B,T)}r.observe(t)}return f(!0),d}function W_(t,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,p=Ym(t),v=o||d?[...p?no(p):[],...a?no(a):[]]:[];v.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),d&&_.addEventListener("resize",r)});const y=p&&m?K_(p,r):null;let x=-1,j=null;f&&(j=new ResizeObserver(_=>{let[C]=_;C&&C.target===p&&j&&a&&(j.unobserve(a),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(a)})),r()}),p&&!g&&j.observe(p),a&&j.observe(a));let w,S=g?Sr(t):null;g&&E();function E(){const _=Sr(t);S&&!C1(S,_)&&r(),S=_,w=requestAnimationFrame(E)}return r(),()=>{var _;v.forEach(C=>{o&&C.removeEventListener("scroll",r),d&&C.removeEventListener("resize",r)}),y==null||y(),(_=j)==null||_.disconnect(),j=null,g&&cancelAnimationFrame(w)}}const J_=A_,eA=T_,tA=R_,nA=O_,aA=C_,xx=N_,sA=k_,rA=(t,a,r)=>{const i=new Map,o={platform:Z_,...r},d={...o.platform,_c:i};return E_(t,a,{...o,platform:d})};var iA=typeof document<"u",lA=function(){},eu=iA?N.useLayoutEffect:lA;function vu(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,i,o;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!vu(t[i],a[i]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const d=o[i];if(!(d==="_owner"&&t.$$typeof)&&!vu(t[d],a[d]))return!1}return!0}return t!==t&&a!==a}function _1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Sx(t,a){const r=_1(t);return Math.round(a*r)/r}function Rh(t){const a=N.useRef(t);return eu(()=>{a.current=t}),a}function oA(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:d,floating:f}={},transform:m=!0,whileElementsMounted:g,open:p}=t,[v,y]=N.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[x,j]=N.useState(i);vu(x,i)||j(i);const[w,S]=N.useState(null),[E,_]=N.useState(null),C=N.useCallback(ee=>{ee!==q.current&&(q.current=ee,S(ee))},[]),T=N.useCallback(ee=>{ee!==k.current&&(k.current=ee,_(ee))},[]),A=d||w,B=f||E,q=N.useRef(null),k=N.useRef(null),D=N.useRef(v),z=g!=null,H=Rh(g),X=Rh(o),ne=Rh(p),se=N.useCallback(()=>{if(!q.current||!k.current)return;const ee={placement:a,strategy:r,middleware:x};X.current&&(ee.platform=X.current),rA(q.current,k.current,ee).then(ye=>{const ae={...ye,isPositioned:ne.current!==!1};te.current&&!vu(D.current,ae)&&(D.current=ae,Ru.flushSync(()=>{y(ae)}))})},[x,a,r,X,ne]);eu(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,y(ee=>({...ee,isPositioned:!1})))},[p]);const te=N.useRef(!1);eu(()=>(te.current=!0,()=>{te.current=!1}),[]),eu(()=>{if(A&&(q.current=A),B&&(k.current=B),A&&B){if(H.current)return H.current(A,B,se);se()}},[A,B,se,H,z]);const ce=N.useMemo(()=>({reference:q,floating:k,setReference:C,setFloating:T}),[C,T]),P=N.useMemo(()=>({reference:A,floating:B}),[A,B]),V=N.useMemo(()=>{const ee={position:r,left:0,top:0};if(!P.floating)return ee;const ye=Sx(P.floating,v.x),ae=Sx(P.floating,v.y);return m?{...ee,transform:"translate("+ye+"px, "+ae+"px)",..._1(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ye,top:ae}},[r,m,P.floating,v.x,v.y]);return N.useMemo(()=>({...v,update:se,refs:ce,elements:P,floatingStyles:V}),[v,se,ce,P,V])}const cA=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:o}=typeof t=="function"?t(r):t;return i&&a(i)?i.current!=null?xx({element:i.current,padding:o}).fn(r):{}:i?xx({element:i,padding:o}).fn(r):{}}}},uA=(t,a)=>{const r=J_(t);return{name:r.name,fn:r.fn,options:[t,a]}},dA=(t,a)=>{const r=eA(t);return{name:r.name,fn:r.fn,options:[t,a]}},fA=(t,a)=>({fn:sA(t).fn,options:[t,a]}),hA=(t,a)=>{const r=tA(t);return{name:r.name,fn:r.fn,options:[t,a]}},mA=(t,a)=>{const r=nA(t);return{name:r.name,fn:r.fn,options:[t,a]}},pA=(t,a)=>{const r=aA(t);return{name:r.name,fn:r.fn,options:[t,a]}},gA=(t,a)=>{const r=cA(t);return{name:r.name,fn:r.fn,options:[t,a]}};var yA="Arrow",A1=N.forwardRef((t,a)=>{const{children:r,width:i=10,height:o=5,...d}=t;return c.jsx(tn.svg,{...d,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});A1.displayName=yA;var vA=A1;function bA(t){const[a,r]=N.useState(void 0);return ks(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const d=o[0];let f,m;if("borderBoxSize"in d){const g=d.borderBoxSize,p=Array.isArray(g)?g[0]:g;f=p.inlineSize,m=p.blockSize}else f=t.offsetWidth,m=t.offsetHeight;r({width:f,height:m})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),a}var $m="Popper",[T1,k1]=Fm($m),[xA,O1]=T1($m),M1=t=>{const{__scopePopper:a,children:r}=t,[i,o]=N.useState(null);return c.jsx(xA,{scope:a,anchor:i,onAnchorChange:o,children:r})};M1.displayName=$m;var D1="PopperAnchor",L1=N.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:i,...o}=t,d=O1(D1,r),f=N.useRef(null),m=Fn(a,f),g=N.useRef(null);return N.useEffect(()=>{const p=g.current;g.current=(i==null?void 0:i.current)||f.current,p!==g.current&&d.onAnchorChange(g.current)}),i?null:c.jsx(tn.div,{...o,ref:m})});L1.displayName=D1;var Xm="PopperContent",[SA,wA]=T1(Xm),z1=N.forwardRef((t,a)=>{var xe,ze,ve,Bt,Et,kt;const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:d="center",alignOffset:f=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:j="optimized",onPlaced:w,...S}=t,E=O1(Xm,r),[_,C]=N.useState(null),T=Fn(a,Ut=>C(Ut)),[A,B]=N.useState(null),q=bA(A),k=(q==null?void 0:q.width)??0,D=(q==null?void 0:q.height)??0,z=i+(d!=="center"?"-"+d:""),H=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(p)?p:[p],ne=X.length>0,se={padding:H,boundary:X.filter(EA),altBoundary:ne},{refs:te,floatingStyles:ce,placement:P,isPositioned:V,middlewareData:ee}=oA({strategy:"fixed",placement:z,whileElementsMounted:(...Ut)=>W_(...Ut,{animationFrame:j==="always"}),elements:{reference:E.anchor},middleware:[uA({mainAxis:o+D,alignmentAxis:f}),g&&dA({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?fA():void 0,...se}),g&&hA({...se}),mA({...se,apply:({elements:Ut,rects:xt,availableWidth:Ls,availableHeight:Fa})=>{const{width:Rr,height:On}=xt.reference,xn=Ut.floating.style;xn.setProperty("--radix-popper-available-width",`${Ls}px`),xn.setProperty("--radix-popper-available-height",`${Fa}px`),xn.setProperty("--radix-popper-anchor-width",`${Rr}px`),xn.setProperty("--radix-popper-anchor-height",`${On}px`)}}),A&&gA({element:A,padding:m}),NA({arrowWidth:k,arrowHeight:D}),x&&pA({strategy:"referenceHidden",...se})]}),[ye,ae]=P1(P),L=Pi(w);ks(()=>{V&&(L==null||L())},[V,L]);const Z=(xe=ee.arrow)==null?void 0:xe.x,re=(ze=ee.arrow)==null?void 0:ze.y,ie=((ve=ee.arrow)==null?void 0:ve.centerOffset)!==0,[le,he]=N.useState();return ks(()=>{_&&he(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:V?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(Bt=ee.transformOrigin)==null?void 0:Bt.x,(Et=ee.transformOrigin)==null?void 0:Et.y].join(" "),...((kt=ee.hide)==null?void 0:kt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(SA,{scope:r,placedSide:ye,onArrowChange:B,arrowX:Z,arrowY:re,shouldHideArrow:ie,children:c.jsx(tn.div,{"data-side":ye,"data-align":ae,...S,ref:T,style:{...S.style,animation:V?void 0:"none"}})})})});z1.displayName=Xm;var B1="PopperArrow",jA={top:"bottom",right:"left",bottom:"top",left:"right"},U1=N.forwardRef(function(a,r){const{__scopePopper:i,...o}=a,d=wA(B1,i),f=jA[d.placedSide];return c.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:c.jsx(vA,{...o,ref:r,style:{...o.style,display:"block"}})})});U1.displayName=B1;function EA(t){return t!==null}var NA=t=>({name:"transformOrigin",options:t,fn(a){var E,_,C;const{placement:r,rects:i,middlewareData:o}=a,f=((E=o.arrow)==null?void 0:E.centerOffset)!==0,m=f?0:t.arrowWidth,g=f?0:t.arrowHeight,[p,v]=P1(r),y={start:"0%",center:"50%",end:"100%"}[v],x=(((_=o.arrow)==null?void 0:_.x)??0)+m/2,j=(((C=o.arrow)==null?void 0:C.y)??0)+g/2;let w="",S="";return p==="bottom"?(w=f?y:`${x}px`,S=`${-g}px`):p==="top"?(w=f?y:`${x}px`,S=`${i.floating.height+g}px`):p==="right"?(w=`${-g}px`,S=f?y:`${j}px`):p==="left"&&(w=`${i.floating.width+g}px`,S=f?y:`${j}px`),{data:{x:w,y:S}}}});function P1(t){const[a,r="center"]=t.split("-");return[a,r]}var RA=M1,CA=L1,_A=z1,AA=U1,TA="Portal",Zm=N.forwardRef((t,a)=>{var m;const{container:r,...i}=t,[o,d]=N.useState(!1);ks(()=>d(!0),[]);const f=r||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return f?k2.createPortal(c.jsx(tn.div,{...i,ref:a}),f):null});Zm.displayName=TA;function kA(t,a){return N.useReducer((r,i)=>a[r][i]??r,t)}var Vi=t=>{const{present:a,children:r}=t,i=OA(a),o=typeof r=="function"?r({present:i.isPresent}):N.Children.only(r),d=Fn(i.ref,MA(o));return typeof r=="function"||i.isPresent?N.cloneElement(o,{ref:d}):null};Vi.displayName="Presence";function OA(t){const[a,r]=N.useState(),i=N.useRef(null),o=N.useRef(t),d=N.useRef("none"),f=t?"mounted":"unmounted",[m,g]=kA(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const p=Hc(i.current);d.current=m==="mounted"?p:"none"},[m]),ks(()=>{const p=i.current,v=o.current;if(v!==t){const x=d.current,j=Hc(p);t?g("MOUNT"):j==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(v&&x!==j?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),ks(()=>{if(a){let p;const v=a.ownerDocument.defaultView??window,y=j=>{const S=Hc(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&S&&(g("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",p=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},x=j=>{j.target===a&&(d.current=Hc(i.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{v.clearTimeout(p),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:N.useCallback(p=>{i.current=p?getComputedStyle(p):null,r(p)},[])}}function Hc(t){return(t==null?void 0:t.animationName)||"none"}function MA(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var DA=Sm[" useInsertionEffect ".trim().toString()]||ks;function F1({prop:t,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,d,f]=LA({defaultProp:a,onChange:r}),m=t!==void 0,g=m?t:o;{const v=N.useRef(t!==void 0);N.useEffect(()=>{const y=v.current;y!==m&&console.warn(`${i} is changing from ${y?"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.`),v.current=m},[m,i])}const p=N.useCallback(v=>{var y;if(m){const x=zA(v)?v(t):v;x!==t&&((y=f.current)==null||y.call(f,x))}else d(v)},[m,t,d,f]);return[g,p]}function LA({defaultProp:t,onChange:a}){const[r,i]=N.useState(t),o=N.useRef(r),d=N.useRef(a);return DA(()=>{d.current=a},[a]),N.useEffect(()=>{var f;o.current!==r&&((f=d.current)==null||f.call(d,r),o.current=r)},[r,o]),[r,i,d]}function zA(t){return typeof t=="function"}var BA=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"}),UA="VisuallyHidden",H1=N.forwardRef((t,a)=>c.jsx(tn.span,{...t,ref:a,style:{...BA,...t.style}}));H1.displayName=UA;var PA=H1,[zu]=Fm("Tooltip",[k1]),Bu=k1(),q1="TooltipProvider",FA=700,pm="tooltip.open",[HA,Km]=zu(q1),G1=t=>{const{__scopeTooltip:a,delayDuration:r=FA,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:d}=t,f=N.useRef(!0),m=N.useRef(!1),g=N.useRef(0);return N.useEffect(()=>{const p=g.current;return()=>window.clearTimeout(p)},[]),c.jsx(HA,{scope:a,isOpenDelayedRef:f,delayDuration:r,onOpen:N.useCallback(()=>{window.clearTimeout(g.current),f.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>f.current=!0,i)},[i]),isPointerInTransitRef:m,onPointerInTransitChange:N.useCallback(p=>{m.current=p},[]),disableHoverableContent:o,children:d})};G1.displayName=q1;var ao="Tooltip",[qA,mo]=zu(ao),I1=t=>{const{__scopeTooltip:a,children:r,open:i,defaultOpen:o,onOpenChange:d,disableHoverableContent:f,delayDuration:m}=t,g=Km(ao,t.__scopeTooltip),p=Bu(a),[v,y]=N.useState(null),x=Jc(),j=N.useRef(0),w=f??g.disableHoverableContent,S=m??g.delayDuration,E=N.useRef(!1),[_,C]=F1({prop:i,defaultProp:o??!1,onChange:k=>{k?(g.onOpen(),document.dispatchEvent(new CustomEvent(pm))):g.onClose(),d==null||d(k)},caller:ao}),T=N.useMemo(()=>_?E.current?"delayed-open":"instant-open":"closed",[_]),A=N.useCallback(()=>{window.clearTimeout(j.current),j.current=0,E.current=!1,C(!0)},[C]),B=N.useCallback(()=>{window.clearTimeout(j.current),j.current=0,C(!1)},[C]),q=N.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{E.current=!0,C(!0),j.current=0},S)},[S,C]);return N.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),c.jsx(RA,{...p,children:c.jsx(qA,{scope:a,contentId:x,open:_,stateAttribute:T,trigger:v,onTriggerChange:y,onTriggerEnter:N.useCallback(()=>{g.isOpenDelayedRef.current?q():A()},[g.isOpenDelayedRef,q,A]),onTriggerLeave:N.useCallback(()=>{w?B():(window.clearTimeout(j.current),j.current=0)},[B,w]),onOpen:A,onClose:B,disableHoverableContent:w,children:r})})};I1.displayName=ao;var gm="TooltipTrigger",Q1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=mo(gm,r),d=Km(gm,r),f=Bu(r),m=N.useRef(null),g=Fn(a,m,o.onTriggerChange),p=N.useRef(!1),v=N.useRef(!1),y=N.useCallback(()=>p.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),c.jsx(CA,{asChild:!0,...f,children:c.jsx(tn.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:g,onPointerMove:Wt(t.onPointerMove,x=>{x.pointerType!=="touch"&&!v.current&&!d.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:Wt(t.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:Wt(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Wt(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Wt(t.onBlur,o.onClose),onClick:Wt(t.onClick,o.onClose)})})});Q1.displayName=gm;var Wm="TooltipPortal",[GA,IA]=zu(Wm,{forceMount:void 0}),V1=t=>{const{__scopeTooltip:a,forceMount:r,children:i,container:o}=t,d=mo(Wm,a);return c.jsx(GA,{scope:a,forceMount:r,children:c.jsx(Vi,{present:r||d.open,children:c.jsx(Zm,{asChild:!0,container:o,children:i})})})};V1.displayName=Wm;var Hi="TooltipContent",Y1=N.forwardRef((t,a)=>{const r=IA(Hi,t.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...d}=t,f=mo(Hi,t.__scopeTooltip);return c.jsx(Vi,{present:i||f.open,children:f.disableHoverableContent?c.jsx($1,{side:o,...d,ref:a}):c.jsx(QA,{side:o,...d,ref:a})})}),QA=N.forwardRef((t,a)=>{const r=mo(Hi,t.__scopeTooltip),i=Km(Hi,t.__scopeTooltip),o=N.useRef(null),d=Fn(a,o),[f,m]=N.useState(null),{trigger:g,onClose:p}=r,v=o.current,{onPointerInTransitChange:y}=i,x=N.useCallback(()=>{m(null),y(!1)},[y]),j=N.useCallback((w,S)=>{const E=w.currentTarget,_={x:w.clientX,y:w.clientY},C=XA(_,E.getBoundingClientRect()),T=ZA(_,C),A=KA(S.getBoundingClientRect()),B=JA([...T,...A]);m(B),y(!0)},[y]);return N.useEffect(()=>()=>x(),[x]),N.useEffect(()=>{if(g&&v){const w=E=>j(E,v),S=E=>j(E,g);return g.addEventListener("pointerleave",w),v.addEventListener("pointerleave",S),()=>{g.removeEventListener("pointerleave",w),v.removeEventListener("pointerleave",S)}}},[g,v,j,x]),N.useEffect(()=>{if(f){const w=S=>{const E=S.target,_={x:S.clientX,y:S.clientY},C=(g==null?void 0:g.contains(E))||(v==null?void 0:v.contains(E)),T=!WA(_,f);C?x():T&&(x(),p())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[g,v,f,p,x]),c.jsx($1,{...t,ref:d})}),[VA,YA]=zu(ao,{isInside:!1}),$A=KC("TooltipContent"),$1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:d,onPointerDownOutside:f,...m}=t,g=mo(Hi,r),p=Bu(r),{onClose:v}=g;return N.useEffect(()=>(document.addEventListener(pm,v),()=>document.removeEventListener(pm,v)),[v]),N.useEffect(()=>{if(g.trigger){const y=x=>{const j=x.target;j!=null&&j.contains(g.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[g.trigger,v]),c.jsx(Hm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:c.jsxs(_A,{"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:[c.jsx($A,{children:i}),c.jsx(VA,{scope:r,isInside:!0,children:c.jsx(PA,{id:g.contentId,role:"tooltip",children:o||i})})]})})});Y1.displayName=Hi;var X1="TooltipArrow",Z1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=Bu(r);return YA(X1,r).isInside?null:c.jsx(AA,{...o,...i,ref:a})});Z1.displayName=X1;function XA(t,a){const r=Math.abs(a.top-t.y),i=Math.abs(a.bottom-t.y),o=Math.abs(a.right-t.x),d=Math.abs(a.left-t.x);switch(Math.min(r,i,o,d)){case d:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function ZA(t,a,r=5){const i=[];switch(a){case"top":i.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":i.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":i.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":i.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return i}function KA(t){const{top:a,right:r,bottom:i,left:o}=t;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function WA(t,a){const{x:r,y:i}=t;let o=!1;for(let d=0,f=a.length-1;d<a.length;f=d++){const m=a[d],g=a[f],p=m.x,v=m.y,y=g.x,x=g.y;v>i!=x>i&&r<(y-p)*(i-v)/(x-v)+p&&(o=!o)}return o}function JA(t){const a=t.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),eT(a)}function eT(t){if(t.length<=1)return t.slice();const a=[];for(let i=0;i<t.length;i++){const o=t[i];for(;a.length>=2;){const d=a[a.length-1],f=a[a.length-2];if((d.x-f.x)*(o.y-f.y)>=(d.y-f.y)*(o.x-f.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;r.length>=2;){const d=r[r.length-1],f=r[r.length-2];if((d.x-f.x)*(o.y-f.y)>=(d.y-f.y)*(o.x-f.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var tT=G1,nT=I1,aT=Q1,sT=V1,rT=Y1,iT=Z1;function tt(...t){return f1(fo(t))}function lT({delayDuration:t=0,...a}){return c.jsx(tT,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function oT({...t}){return c.jsx(nT,{"data-slot":"tooltip",...t})}function cT({...t}){return c.jsx(aT,{"data-slot":"tooltip-trigger",...t})}function uT({className:t,sideOffset:a=0,children:r,...i}){return c.jsx(sT,{children:c.jsxs(rT,{"data-slot":"tooltip-content",sideOffset:a,className:tt("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",t),...i,children:[r,c.jsx(iT,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}var dT=Symbol.for("react.lazy"),bu=Sm[" use ".trim().toString()];function fT(t){return typeof t=="object"&&t!==null&&"then"in t}function K1(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===dT&&"_payload"in t&&fT(t._payload)}function W1(t){const a=hT(t),r=N.forwardRef((i,o)=>{let{children:d,...f}=i;K1(d)&&typeof bu=="function"&&(d=bu(d._payload));const m=N.Children.toArray(d),g=m.find(pT);if(g){const p=g.props.children,v=m.map(y=>y===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:y);return c.jsx(a,{...f,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,v):null})}return c.jsx(a,{...f,ref:o,children:d})});return r.displayName=`${t}.Slot`,r}var Jm=W1("Slot");function hT(t){const a=N.forwardRef((r,i)=>{let{children:o,...d}=r;if(K1(o)&&typeof bu=="function"&&(o=bu(o._payload)),N.isValidElement(o)){const f=yT(o),m=gT(d,o.props);return o.type!==N.Fragment&&(m.ref=i?Pm(i,f):f),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var mT=Symbol("radix.slottable");function pT(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===mT}function gT(t,a){const r={...a};for(const i in a){const o=t[i],d=a[i];/^on[A-Z]/.test(i)?o&&d?r[i]=(...m)=>{const g=d(...m);return o(...m),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...d}:i==="className"&&(r[i]=[o,d].filter(Boolean).join(" "))}return{...t,...r}}function yT(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const Ch=768;function vT(){const[t,a]=N.useState(void 0);return N.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Ch-1}px)`),i=()=>{a(window.innerWidth<Ch)};return r.addEventListener("change",i),a(window.innerWidth<Ch),()=>r.removeEventListener("change",i)},[]),!!t}const bT=ku("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 J1({className:t,variant:a="default",size:r="default",asChild:i=!1,...o}){const d=i?Jm:"button";return c.jsx(d,{"data-slot":"button","data-variant":a,"data-size":r,className:tt(bT({variant:a,size:r,className:t})),...o})}var xT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ST=xT.reduce((t,a)=>{const r=W1(`Primitive.${a}`),i=N.forwardRef((o,d)=>{const{asChild:f,...m}=o,g=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(g,{...m,ref:d})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{}),wT="Separator",wx="horizontal",jT=["horizontal","vertical"],eS=N.forwardRef((t,a)=>{const{decorative:r,orientation:i=wx,...o}=t,d=ET(i)?i:wx,m=r?{role:"none"}:{"aria-orientation":d==="vertical"?d:void 0,role:"separator"};return c.jsx(ST.div,{"data-orientation":d,...m,...o,ref:a})});eS.displayName=wT;function ET(t){return jT.includes(t)}var NT=eS;function RT({className:t,orientation:a="horizontal",decorative:r=!0,...i}){return c.jsx(NT,{"data-slot":"separator",decorative:r,orientation:a,className:tt("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",t),...i})}var _h="focusScope.autoFocusOnMount",Ah="focusScope.autoFocusOnUnmount",jx={bubbles:!1,cancelable:!0},CT="FocusScope",tS=N.forwardRef((t,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:d,...f}=t,[m,g]=N.useState(null),p=Pi(o),v=Pi(d),y=N.useRef(null),x=Fn(a,S=>g(S)),j=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(i){let S=function(T){if(j.paused||!m)return;const A=T.target;m.contains(A)?y.current=A:ps(y.current,{select:!0})},E=function(T){if(j.paused||!m)return;const A=T.relatedTarget;A!==null&&(m.contains(A)||ps(y.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const B of T)B.removedNodes.length>0&&ps(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",E);const C=new MutationObserver(_);return m&&C.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",E),C.disconnect()}}},[i,m,j.paused]),N.useEffect(()=>{if(m){Nx.add(j);const S=document.activeElement;if(!m.contains(S)){const _=new CustomEvent(_h,jx);m.addEventListener(_h,p),m.dispatchEvent(_),_.defaultPrevented||(_T(MT(nS(m)),{select:!0}),document.activeElement===S&&ps(m))}return()=>{m.removeEventListener(_h,p),setTimeout(()=>{const _=new CustomEvent(Ah,jx);m.addEventListener(Ah,v),m.dispatchEvent(_),_.defaultPrevented||ps(S??document.body,{select:!0}),m.removeEventListener(Ah,v),Nx.remove(j)},0)}}},[m,p,v,j]);const w=N.useCallback(S=>{if(!r&&!i||j.paused)return;const E=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(E&&_){const C=S.currentTarget,[T,A]=AT(C);T&&A?!S.shiftKey&&_===A?(S.preventDefault(),r&&ps(T,{select:!0})):S.shiftKey&&_===T&&(S.preventDefault(),r&&ps(A,{select:!0})):_===C&&S.preventDefault()}},[r,i,j.paused]);return c.jsx(tn.div,{tabIndex:-1,...f,ref:x,onKeyDown:w})});tS.displayName=CT;function _T(t,{select:a=!1}={}){const r=document.activeElement;for(const i of t)if(ps(i,{select:a}),document.activeElement!==r)return}function AT(t){const a=nS(t),r=Ex(a,t),i=Ex(a.reverse(),t);return[r,i]}function nS(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Ex(t,a){for(const r of t)if(!TT(r,{upTo:a}))return r}function TT(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function kT(t){return t instanceof HTMLInputElement&&"select"in t}function ps(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&kT(t)&&a&&t.select()}}var Nx=OT();function OT(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=Rx(t,a),t.unshift(a)},remove(a){var r;t=Rx(t,a),(r=t[0])==null||r.resume()}}}function Rx(t,a){const r=[...t],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function MT(t){return t.filter(a=>a.tagName!=="A")}var Th=0;function DT(){N.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Cx()),document.body.insertAdjacentElement("beforeend",t[1]??Cx()),Th++,()=>{Th===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Th--}},[])}function Cx(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Wn=function(){return Wn=Object.assign||function(a){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(a[d]=r[d])}return a},Wn.apply(this,arguments)};function aS(t,a){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(r[i[o]]=t[i[o]]);return r}function LT(t,a,r){if(r||arguments.length===2)for(var i=0,o=a.length,d;i<o;i++)(d||!(i in a))&&(d||(d=Array.prototype.slice.call(a,0,i)),d[i]=a[i]);return t.concat(d||Array.prototype.slice.call(a))}var tu="right-scroll-bar-position",nu="width-before-scroll-bar",zT="with-scroll-bars-hidden",BT="--removed-body-scroll-bar-size";function kh(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function UT(t,a){var r=N.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var PT=typeof window<"u"?N.useLayoutEffect:N.useEffect,_x=new WeakMap;function FT(t,a){var r=UT(null,function(i){return t.forEach(function(o){return kh(o,i)})});return PT(function(){var i=_x.get(r);if(i){var o=new Set(i),d=new Set(t),f=r.current;o.forEach(function(m){d.has(m)||kh(m,null)}),d.forEach(function(m){o.has(m)||kh(m,f)})}_x.set(r,t)},[t]),r}function HT(t){return t}function qT(t,a){a===void 0&&(a=HT);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(d){var f=a(d,i);return r.push(f),function(){r=r.filter(function(m){return m!==f})}},assignSyncMedium:function(d){for(i=!0;r.length;){var f=r;r=[],f.forEach(d)}r={push:function(m){return d(m)},filter:function(){return r}}},assignMedium:function(d){i=!0;var f=[];if(r.length){var m=r;r=[],m.forEach(d),f=r}var g=function(){var v=f;f=[],v.forEach(d)},p=function(){return Promise.resolve().then(g)};p(),r={push:function(v){f.push(v),p()},filter:function(v){return f=f.filter(v),r}}}};return o}function GT(t){t===void 0&&(t={});var a=qT(null);return a.options=Wn({async:!0,ssr:!1},t),a}var sS=function(t){var a=t.sideCar,r=aS(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return N.createElement(i,Wn({},r))};sS.isSideCarExport=!0;function IT(t,a){return t.useMedium(a),sS}var rS=GT(),Oh=function(){},Uu=N.forwardRef(function(t,a){var r=N.useRef(null),i=N.useState({onScrollCapture:Oh,onWheelCapture:Oh,onTouchMoveCapture:Oh}),o=i[0],d=i[1],f=t.forwardProps,m=t.children,g=t.className,p=t.removeScrollBar,v=t.enabled,y=t.shards,x=t.sideCar,j=t.noRelative,w=t.noIsolation,S=t.inert,E=t.allowPinchZoom,_=t.as,C=_===void 0?"div":_,T=t.gapMode,A=aS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=x,q=FT([r,a]),k=Wn(Wn({},A),o);return N.createElement(N.Fragment,null,v&&N.createElement(B,{sideCar:rS,removeScrollBar:p,shards:y,noRelative:j,noIsolation:w,inert:S,setCallbacks:d,allowPinchZoom:!!E,lockRef:r,gapMode:T}),f?N.cloneElement(N.Children.only(m),Wn(Wn({},k),{ref:q})):N.createElement(C,Wn({},k,{className:g,ref:q}),m))});Uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Uu.classNames={fullWidth:nu,zeroRight:tu};var QT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=QT();return a&&t.setAttribute("nonce",a),t}function YT(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function $T(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var XT=function(){var t=0,a=null;return{add:function(r){t==0&&(a=VT())&&(YT(a,r),$T(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},ZT=function(){var t=XT();return function(a,r){N.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},iS=function(){var t=ZT(),a=function(r){var i=r.styles,o=r.dynamic;return t(i,o),null};return a},KT={left:0,top:0,right:0,gap:0},Mh=function(t){return parseInt(t||"",10)||0},WT=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],i=a[t==="padding"?"paddingTop":"marginTop"],o=a[t==="padding"?"paddingRight":"marginRight"];return[Mh(r),Mh(i),Mh(o)]},JT=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return KT;var a=WT(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},ek=iS(),Si="data-scroll-locked",tk=function(t,a,r,i){var o=t.left,d=t.top,f=t.right,m=t.gap;return r===void 0&&(r="margin"),`
261
- .`.concat(zT,` {
262
- overflow: hidden `).concat(i,`;
263
- padding-right: `).concat(m,"px ").concat(i,`;
264
- }
265
- body[`).concat(Si,`] {
266
- overflow: hidden `).concat(i,`;
267
- overscroll-behavior: contain;
268
- `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
269
- padding-left: `.concat(o,`px;
270
- padding-top: `).concat(d,`px;
271
- padding-right: `).concat(f,`px;
272
- margin-left:0;
273
- margin-top:0;
274
- margin-right: `).concat(m,"px ").concat(i,`;
275
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
276
- }
277
-
278
- .`).concat(tu,` {
279
- right: `).concat(m,"px ").concat(i,`;
280
- }
281
-
282
- .`).concat(nu,` {
283
- margin-right: `).concat(m,"px ").concat(i,`;
284
- }
285
-
286
- .`).concat(tu," .").concat(tu,` {
287
- right: 0 `).concat(i,`;
288
- }
289
-
290
- .`).concat(nu," .").concat(nu,` {
291
- margin-right: 0 `).concat(i,`;
292
- }
293
-
294
- body[`).concat(Si,`] {
295
- `).concat(BT,": ").concat(m,`px;
296
- }
297
- `)},Ax=function(){var t=parseInt(document.body.getAttribute(Si)||"0",10);return isFinite(t)?t:0},nk=function(){N.useEffect(function(){return document.body.setAttribute(Si,(Ax()+1).toString()),function(){var t=Ax()-1;t<=0?document.body.removeAttribute(Si):document.body.setAttribute(Si,t.toString())}},[])},ak=function(t){var a=t.noRelative,r=t.noImportant,i=t.gapMode,o=i===void 0?"margin":i;nk();var d=N.useMemo(function(){return JT(o)},[o]);return N.createElement(ek,{styles:tk(d,!a,o,r?"":"!important")})},ym=!1;if(typeof window<"u")try{var qc=Object.defineProperty({},"passive",{get:function(){return ym=!0,!0}});window.addEventListener("test",qc,qc),window.removeEventListener("test",qc,qc)}catch{ym=!1}var hi=ym?{passive:!1}:!1,sk=function(t){return t.tagName==="TEXTAREA"},lS=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!sk(t)&&r[a]==="visible")},rk=function(t){return lS(t,"overflowY")},ik=function(t){return lS(t,"overflowX")},Tx=function(t,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=oS(t,i);if(o){var d=cS(t,i),f=d[1],m=d[2];if(f>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},lk=function(t){var a=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[a,r,i]},ok=function(t){var a=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[a,r,i]},oS=function(t,a){return t==="v"?rk(a):ik(a)},cS=function(t,a){return t==="v"?lk(a):ok(a)},ck=function(t,a){return t==="h"&&a==="rtl"?-1:1},uk=function(t,a,r,i,o){var d=ck(t,window.getComputedStyle(a).direction),f=d*i,m=r.target,g=a.contains(m),p=!1,v=f>0,y=0,x=0;do{if(!m)break;var j=cS(t,m),w=j[0],S=j[1],E=j[2],_=S-E-d*w;(w||_)&&oS(t,m)&&(y+=_,x+=w);var C=m.parentNode;m=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!g&&m!==document.body||g&&(a.contains(m)||a===m));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(p=!0),p},Gc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},kx=function(t){return[t.deltaX,t.deltaY]},Ox=function(t){return t&&"current"in t?t.current:t},dk=function(t,a){return t[0]===a[0]&&t[1]===a[1]},fk=function(t){return`
298
- .block-interactivity-`.concat(t,` {pointer-events: none;}
299
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
300
- `)},hk=0,mi=[];function mk(t){var a=N.useRef([]),r=N.useRef([0,0]),i=N.useRef(),o=N.useState(hk++)[0],d=N.useState(iS)[0],f=N.useRef(t);N.useEffect(function(){f.current=t},[t]),N.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var S=LT([t.lockRef.current],(t.shards||[]).map(Ox),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var m=N.useCallback(function(S,E){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var _=Gc(S),C=r.current,T="deltaX"in S?S.deltaX:C[0]-_[0],A="deltaY"in S?S.deltaY:C[1]-_[1],B,q=S.target,k=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in S&&k==="h"&&q.type==="range")return!1;var D=window.getSelection(),z=D&&D.anchorNode,H=z?z===q||z.contains(q):!1;if(H)return!1;var X=Tx(k,q);if(!X)return!0;if(X?B=k:(B=k==="v"?"h":"v",X=Tx(k,q)),!X)return!1;if(!i.current&&"changedTouches"in S&&(T||A)&&(i.current=B),!B)return!0;var ne=i.current||B;return uk(ne,E,S,ne==="h"?T:A)},[]),g=N.useCallback(function(S){var E=S;if(!(!mi.length||mi[mi.length-1]!==d)){var _="deltaY"in E?kx(E):Gc(E),C=a.current.filter(function(B){return B.name===E.type&&(B.target===E.target||E.target===B.shadowParent)&&dk(B.delta,_)})[0];if(C&&C.should){E.cancelable&&E.preventDefault();return}if(!C){var T=(f.current.shards||[]).map(Ox).filter(Boolean).filter(function(B){return B.contains(E.target)}),A=T.length>0?m(E,T[0]):!f.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),p=N.useCallback(function(S,E,_,C){var T={name:S,delta:E,target:_,should:C,shadowParent:pk(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(A){return A!==T})},1)},[]),v=N.useCallback(function(S){r.current=Gc(S),i.current=void 0},[]),y=N.useCallback(function(S){p(S.type,kx(S),S.target,m(S,t.lockRef.current))},[]),x=N.useCallback(function(S){p(S.type,Gc(S),S.target,m(S,t.lockRef.current))},[]);N.useEffect(function(){return mi.push(d),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",g,hi),document.addEventListener("touchmove",g,hi),document.addEventListener("touchstart",v,hi),function(){mi=mi.filter(function(S){return S!==d}),document.removeEventListener("wheel",g,hi),document.removeEventListener("touchmove",g,hi),document.removeEventListener("touchstart",v,hi)}},[]);var j=t.removeScrollBar,w=t.inert;return N.createElement(N.Fragment,null,w?N.createElement(d,{styles:fk(o)}):null,j?N.createElement(ak,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function pk(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const gk=IT(rS,mk);var uS=N.forwardRef(function(t,a){return N.createElement(Uu,Wn({},t,{ref:a,sideCar:gk}))});uS.classNames=Uu.classNames;var yk=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},pi=new WeakMap,Ic=new WeakMap,Qc={},Dh=0,dS=function(t){return t&&(t.host||dS(t.parentNode))},vk=function(t,a){return a.map(function(r){if(t.contains(r))return r;var i=dS(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},bk=function(t,a,r,i){var o=vk(a,Array.isArray(t)?t:[t]);Qc[r]||(Qc[r]=new WeakMap);var d=Qc[r],f=[],m=new Set,g=new Set(o),p=function(y){!y||m.has(y)||(m.add(y),p(y.parentNode))};o.forEach(p);var v=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(x){if(m.has(x))v(x);else try{var j=x.getAttribute(i),w=j!==null&&j!=="false",S=(pi.get(x)||0)+1,E=(d.get(x)||0)+1;pi.set(x,S),d.set(x,E),f.push(x),S===1&&w&&Ic.set(x,!0),E===1&&x.setAttribute(r,"true"),w||x.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",x,_)}})};return v(a),m.clear(),Dh++,function(){f.forEach(function(y){var x=pi.get(y)-1,j=d.get(y)-1;pi.set(y,x),d.set(y,j),x||(Ic.has(y)||y.removeAttribute(i),Ic.delete(y)),j||y.removeAttribute(r)}),Dh--,Dh||(pi=new WeakMap,pi=new WeakMap,Ic=new WeakMap,Qc={})}},xk=function(t,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),o=yk(t);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),bk(i,o,r,"aria-hidden")):function(){return null}},Pu="Dialog",[fS]=Fm(Pu),[Sk,Hn]=fS(Pu),hS=t=>{const{__scopeDialog:a,children:r,open:i,defaultOpen:o,onOpenChange:d,modal:f=!0}=t,m=N.useRef(null),g=N.useRef(null),[p,v]=F1({prop:i,defaultProp:o??!1,onChange:d,caller:Pu});return c.jsx(Sk,{scope:a,triggerRef:m,contentRef:g,contentId:Jc(),titleId:Jc(),descriptionId:Jc(),open:p,onOpenChange:v,onOpenToggle:N.useCallback(()=>v(y=>!y),[v]),modal:f,children:r})};hS.displayName=Pu;var mS="DialogTrigger",wk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Hn(mS,r),d=Fn(a,o.triggerRef);return c.jsx(tn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":np(o.open),...i,ref:d,onClick:Wt(t.onClick,o.onOpenToggle)})});wk.displayName=mS;var ep="DialogPortal",[jk,pS]=fS(ep,{forceMount:void 0}),gS=t=>{const{__scopeDialog:a,forceMount:r,children:i,container:o}=t,d=Hn(ep,a);return c.jsx(jk,{scope:a,forceMount:r,children:N.Children.map(i,f=>c.jsx(Vi,{present:r||d.open,children:c.jsx(Zm,{asChild:!0,container:o,children:f})}))})};gS.displayName=ep;var xu="DialogOverlay",yS=N.forwardRef((t,a)=>{const r=pS(xu,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,d=Hn(xu,t.__scopeDialog);return d.modal?c.jsx(Vi,{present:i||d.open,children:c.jsx(Nk,{...o,ref:a})}):null});yS.displayName=xu;var Ek=m1("DialogOverlay.RemoveScroll"),Nk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Hn(xu,r);return c.jsx(uS,{as:Ek,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(tn.div,{"data-state":np(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),wr="DialogContent",vS=N.forwardRef((t,a)=>{const r=pS(wr,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,d=Hn(wr,t.__scopeDialog);return c.jsx(Vi,{present:i||d.open,children:d.modal?c.jsx(Rk,{...o,ref:a}):c.jsx(Ck,{...o,ref:a})})});vS.displayName=wr;var Rk=N.forwardRef((t,a)=>{const r=Hn(wr,t.__scopeDialog),i=N.useRef(null),o=Fn(a,r.contentRef,i);return N.useEffect(()=>{const d=i.current;if(d)return xk(d)},[]),c.jsx(bS,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,d=>{const f=d.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0;(f.button===2||m)&&d.preventDefault()}),onFocusOutside:Wt(t.onFocusOutside,d=>d.preventDefault())})}),Ck=N.forwardRef((t,a)=>{const r=Hn(wr,t.__scopeDialog),i=N.useRef(!1),o=N.useRef(!1);return c.jsx(bS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var f,m;(f=t.onCloseAutoFocus)==null||f.call(t,d),d.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),d.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:d=>{var g,p;(g=t.onInteractOutside)==null||g.call(t,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const f=d.target;((p=r.triggerRef.current)==null?void 0:p.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&o.current&&d.preventDefault()}})}),bS=N.forwardRef((t,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:d,...f}=t,m=Hn(wr,r),g=N.useRef(null),p=Fn(a,g);return DT(),c.jsxs(c.Fragment,{children:[c.jsx(tS,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:d,children:c.jsx(Hm,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":np(m.open),...f,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(_k,{titleId:m.titleId}),c.jsx(Tk,{contentRef:g,descriptionId:m.descriptionId})]})]})}),tp="DialogTitle",xS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Hn(tp,r);return c.jsx(tn.h2,{id:o.titleId,...i,ref:a})});xS.displayName=tp;var SS="DialogDescription",wS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Hn(SS,r);return c.jsx(tn.p,{id:o.descriptionId,...i,ref:a})});wS.displayName=SS;var jS="DialogClose",ES=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Hn(jS,r);return c.jsx(tn.button,{type:"button",...i,ref:a,onClick:Wt(t.onClick,()=>o.onOpenChange(!1))})});ES.displayName=jS;function np(t){return t?"open":"closed"}var NS="DialogTitleWarning",[O3,RS]=$C(NS,{contentName:wr,titleName:tp,docsSlug:"dialog"}),_k=({titleId:t})=>{const a=RS(NS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
301
-
302
- If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
303
-
304
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return N.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},Ak="DialogDescriptionWarning",Tk=({contentRef:t,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RS(Ak).contentName}}.`;return N.useEffect(()=>{var d;const o=(d=t.current)==null?void 0:d.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(i))},[i,t,a]),null},kk=hS,Ok=gS,Mk=yS,Dk=vS,Lk=xS,zk=wS,Bk=ES;function Uk({...t}){return c.jsx(kk,{"data-slot":"sheet",...t})}function Pk({...t}){return c.jsx(Ok,{"data-slot":"sheet-portal",...t})}function Fk({className:t,...a}){return c.jsx(Mk,{"data-slot":"sheet-overlay",className:tt("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",t),...a})}function Hk({className:t,children:a,side:r="right",showCloseButton:i=!0,...o}){return c.jsxs(Pk,{children:[c.jsx(Fk,{}),c.jsxs(Dk,{"data-slot":"sheet-content","data-side":r,className:tt("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",t),...o,children:[a,i&&c.jsx(Bk,{"data-slot":"sheet-close",asChild:!0,children:c.jsxs(J1,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[c.jsx(Bi,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function qk({className:t,...a}){return c.jsx("div",{"data-slot":"sheet-header",className:tt("flex flex-col gap-0.5 p-4",t),...a})}function Gk({className:t,...a}){return c.jsx(Lk,{"data-slot":"sheet-title",className:tt("font-heading text-base font-medium text-foreground",t),...a})}function Ik({className:t,...a}){return c.jsx(zk,{"data-slot":"sheet-description",className:tt("text-sm text-muted-foreground",t),...a})}const Qk="sidebar_state",Vk=3600*24*7,Yk="16rem",$k="18rem",Xk="3rem",Zk="b",CS=N.createContext(null);function ap(){const t=N.useContext(CS);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Kk({defaultOpen:t=!0,open:a,onOpenChange:r,className:i,style:o,children:d,...f}){const m=vT(),[g,p]=N.useState(!1),[v,y]=N.useState(t),x=a??v,j=N.useCallback(_=>{const C=typeof _=="function"?_(x):_;r?r(C):y(C),document.cookie=`${Qk}=${C}; path=/; max-age=${Vk}`},[r,x]),w=N.useCallback(()=>m?p(_=>!_):j(_=>!_),[m,j,p]);N.useEffect(()=>{const _=C=>{C.key===Zk&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),w())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[w]);const S=x?"expanded":"collapsed",E=N.useMemo(()=>({state:S,open:x,setOpen:j,isMobile:m,openMobile:g,setOpenMobile:p,toggleSidebar:w}),[S,x,j,m,g,p,w]);return c.jsx(CS.Provider,{value:E,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Yk,"--sidebar-width-icon":Xk,...o},className:tt("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),...f,children:d})})}function Wk({side:t="left",variant:a="sidebar",collapsible:r="offcanvas",className:i,children:o,dir:d,...f}){const{isMobile:m,state:g,openMobile:p,setOpenMobile:v}=ap();return r==="none"?c.jsx("div",{"data-slot":"sidebar",className:tt("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...f,children:o}):m?c.jsx(Uk,{open:p,onOpenChange:v,...f,children:c.jsxs(Hk,{dir:d,"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":$k},side:t,children:[c.jsxs(qk,{className:"sr-only",children:[c.jsx(Gk,{children:"Sidebar"}),c.jsx(Ik,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":g,"data-collapsible":g==="collapsed"?r:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:tt("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)")}),c.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:tt("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",i),...f,children:c.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 Jk({className:t,onClick:a,...r}){const{toggleSidebar:i}=ap();return c.jsxs(J1,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:tt(t),onClick:o=>{a==null||a(o),i()},...r,children:[c.jsx(BR,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function eO({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:tt("flex flex-col gap-2 p-2",t),...a})}function tO({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:tt("flex flex-col gap-2 p-2",t),...a})}function Mx({className:t,...a}){return c.jsx(RT,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:tt("mx-2 w-auto bg-sidebar-border",t),...a})}function nO({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:tt("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function Lh({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:tt("relative flex w-full min-w-0 flex-col p-2",t),...a})}function Dx({className:t,asChild:a=!1,...r}){const i=a?Jm:"div";return c.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:tt("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",t),...r})}function zh({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:tt("w-full text-sm",t),...a})}function Vc({className:t,...a}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:tt("flex w-full min-w-0 flex-col gap-0.5",t),...a})}function _S({className:t,...a}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:tt("group/menu-item relative",t),...a})}const aO=ku("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 AS({asChild:t=!1,isActive:a=!1,variant:r="default",size:i="default",tooltip:o,className:d,...f}){const m=t?Jm:"button",{isMobile:g,state:p}=ap(),v=c.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":a,className:tt(aO({variant:r,size:i}),d),...f});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(oT,{children:[c.jsx(cT,{asChild:!0,children:v}),c.jsx(uT,{side:"right",align:"center",hidden:p!=="collapsed"||g,...o})]})):v}const TS=N.createContext(null);function kS(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Lx(t){return t==="system"?kS():t}function sO({children:t,defaultTheme:a="dark"}){const[r,i]=N.useState(()=>typeof window>"u"?a:localStorage.getItem("theme")??a),[o,d]=N.useState(()=>Lx(r)),f=N.useCallback(m=>{i(g=>{const p=typeof m=="function"?m(g):m;return localStorage.setItem("theme",p),p})},[]);return N.useEffect(()=>{const m=Lx(r);d(m),document.documentElement.classList.toggle("dark",m==="dark")},[r]),N.useEffect(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{if(r==="system"){const p=kS();d(p),document.documentElement.classList.toggle("dark",p==="dark")}};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)},[r]),c.jsx(TS.Provider,{value:{theme:r,resolvedTheme:o,setTheme:f},children:t})}function rO(){const t=N.useContext(TS);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function iO(){const{theme:t,resolvedTheme:a,setTheme:r}=rO();return c.jsxs(mt,{variant:"ghost",size:"icon",onClick:()=>r((a??t)==="light"?"dark":"light"),className:"h-8 w-8",children:[c.jsx(QR,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),c.jsx(MR,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),c.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const lO=[{href:"/",label:"Overview",icon:_R,query:Dm},{href:"/workspaces",label:"Workspaces",icon:gR,query:Lm},{href:"/benchmark",label:"Benchmark",icon:bR}],oO=[{href:"/query",label:"Query",icon:FR},{href:"/documents",label:"Documents",icon:_u,query:()=>du(1,qt)},{href:"/memories",label:"Memories",icon:JN,query:()=>fu(1,qt)}],cO=[{href:"/changelog",label:"Changelog",icon:NR},{href:"/settings",label:"Settings",icon:GR,query:Z0}];function Bh({href:t,label:a,icon:r,query:i}){const o=Er(),f=nN()({to:t,fuzzy:t!=="/"}),m=()=>{if(!i)return;const g=typeof i=="function"?i():i;o.prefetchQuery(g)};return c.jsx(_S,{children:c.jsx(AS,{asChild:!0,isActive:!!f,tooltip:a,children:c.jsxs(vt,{to:t,onMouseEnter:m,children:[c.jsx(r,{className:"h-4 w-4"}),c.jsx("span",{children:a})]})})})}function uO(){return c.jsxs(Wk,{collapsible:"icon",children:[c.jsx(eO,{children:c.jsx(Vc,{children:c.jsx(_S,{children:c.jsxs("div",{className:"flex items-center gap-1 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center",children:[c.jsx(AS,{asChild:!0,size:"lg",tooltip:"OpenEZ Graph",children:c.jsxs(vt,{to:"/",className:"flex items-center gap-3",children:[c.jsx("img",{src:"/logo.png",alt:"OpenEZ Graph",className:"h-8 w-8 rounded-lg"}),c.jsx("div",{className:"flex flex-col gap-0 group-data-[collapsible=icon]:hidden",children:c.jsxs("span",{className:"text-sm font-black tracking-tight",style:{fontFamily:"'Archivo Black', sans-serif"},children:["OPEN",c.jsx("span",{className:"text-accent-foreground",children:"EZ"})]})})]})}),c.jsx(Jk,{}),c.jsx(iO,{})]})})})}),c.jsxs(nO,{children:[c.jsxs(Lh,{children:[c.jsx(Dx,{children:"Navigation"}),c.jsx(zh,{children:c.jsx(Vc,{children:lO.map(t=>c.jsx(Bh,{...t},t.href))})})]}),c.jsx(Mx,{}),c.jsxs(Lh,{children:[c.jsx(Dx,{children:"Debug"}),c.jsx(zh,{children:c.jsx(Vc,{children:oO.map(t=>c.jsx(Bh,{...t},t.href))})})]}),c.jsx(Mx,{}),c.jsx(Lh,{children:c.jsx(zh,{children:c.jsx(Vc,{children:cO.map(t=>c.jsx(Bh,{...t},t.href))})})})]}),c.jsx(tO,{children:c.jsx("div",{className:"px-3 py-2 group-data-[collapsible=icon]:hidden",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspace config, retrieval debugging, graph inspection."})})})]})}const Pa=G2()({component:dO});function dO(){return c.jsx(sO,{defaultTheme:"dark",children:c.jsx(lT,{children:c.jsx(Kk,{children:c.jsxs("div",{className:"flex h-svh w-full overflow-hidden",children:[c.jsx(uO,{}),c.jsx("main",{className:"flex-1 overflow-y-auto bg-background p-6",children:c.jsx(Cu,{})})]})})})})}const fO=bn("/workspaces")({component:()=>c.jsx(Cu,{})}),hO=bn("/settings")({component:bO}),mO=`{
305
- "mcpServers": {
306
- "openez-graph": {
307
- "command": "pnpm",
308
- "args": ["--dir", "/path/to/openez", "mcp"]
309
- }
310
- }
311
- }`,pO=`{
312
- "mcpServers": {
313
- "openez-graph": {
314
- "command": "pnpm",
315
- "args": ["--dir", "/path/to/openez", "mcp"]
316
- }
317
- }
318
- }`,gO=`{
319
- "mcpServers": {
320
- "openez-graph": {
321
- "command": "pnpm",
322
- "args": ["--dir", "/path/to/openez", "mcp"]
323
- }
324
- }
325
- }`,yO=`{
326
- "mcp": {
327
- "servers": {
328
- "openez-graph": {
329
- "type": "local",
330
- "command": ["pnpm", "--dir", "/path/to/openez", "mcp"]
331
- }
332
- }
333
- }
334
- }`;function Vl({label:t,value:a}){return c.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border last:border-0",children:[c.jsx("span",{className:"text-sm text-muted-foreground",children:t}),c.jsx("span",{className:"text-sm font-medium text-foreground text-right truncate max-w-[70%] font-mono",children:a??c.jsx("span",{className:"text-muted-foreground italic",children:"not set"})})]})}function vO({children:t}){return c.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground border border-border",children:t})}function Yc({name:t,configPath:a,config:r}){return c.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t}),c.jsx(ft,{variant:"secondary",className:"text-xs px-1.5 py-0 h-4",children:"stdio"})]}),c.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Add to ",c.jsx(vO,{children:a})]}),c.jsx(QC,{children:r})]})}function bO(){const{data:t}=La(Z0);return c.jsxs("div",{className:"page container mx-auto px-4 sm:px-6",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Settings"}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"Environment-backed provider configuration."})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"Configuration"})}),c.jsx(Ce,{className:"p-0",children:c.jsxs("div",{className:"px-6 pb-2",children:[c.jsx(Vl,{label:"Redis URL",value:"Not used (SQLite is default)"}),c.jsx(Vl,{label:"Embedding provider",value:t==null?void 0:t.EMBEDDING_PROVIDER}),c.jsx(Vl,{label:"OpenAI base URL",value:(t==null?void 0:t.OPENAI_BASE_URL)??"default"}),c.jsx(Vl,{label:"OpenAI model",value:t==null?void 0:t.OPENAI_EMBEDDING_MODEL}),c.jsx(Vl,{label:"Ollama model",value:t==null?void 0:t.OLLAMA_EMBEDDING_MODEL})]})})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"MCP Server Setup"})}),c.jsxs(Ce,{className:"flex flex-col gap-4",children:[c.jsx(Yc,{name:"Claude Code",configPath:"~/.claude/settings.json",config:mO}),c.jsx(Yc,{name:"Claude Desktop",configPath:"claude_desktop_config.json",config:pO}),c.jsx(Yc,{name:"Cline / VS Code",configPath:"VS Code settings or Cline MCP config",config:gO}),c.jsx(Yc,{name:"OpenCode",configPath:"~/.config/opencode/opencode.json",config:yO})]})]})]})}var xO=Object.create,Fu=Object.defineProperty,SO=Object.defineProperties,wO=Object.getOwnPropertyDescriptor,jO=Object.getOwnPropertyDescriptors,OS=Object.getOwnPropertyNames,Su=Object.getOwnPropertySymbols,EO=Object.getPrototypeOf,sp=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,zx=(t,a,r)=>a in t?Fu(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,ra=(t,a)=>{for(var r in a||(a={}))sp.call(a,r)&&zx(t,r,a[r]);if(Su)for(var r of Su(a))MS.call(a,r)&&zx(t,r,a[r]);return t},Hu=(t,a)=>SO(t,jO(a)),DS=(t,a)=>{var r={};for(var i in t)sp.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&Su)for(var i of Su(t))a.indexOf(i)<0&&MS.call(t,i)&&(r[i]=t[i]);return r},NO=(t,a)=>function(){return a||(0,t[OS(t)[0]])((a={exports:{}}).exports,a),a.exports},RO=(t,a)=>{for(var r in a)Fu(t,r,{get:a[r],enumerable:!0})},CO=(t,a,r,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of OS(a))!sp.call(t,o)&&o!==r&&Fu(t,o,{get:()=>a[o],enumerable:!(i=wO(a,o))||i.enumerable});return t},_O=(t,a,r)=>(r=t!=null?xO(EO(t)):{},CO(!t||!t.__esModule?Fu(r,"default",{value:t,enumerable:!0}):r,t)),AO=NO({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(t,a){var r=(function(){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,d={},f={util:{encode:function w(S){return S instanceof m?new m(S.type,w(S.content),S.alias):Array.isArray(S)?S.map(w):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(S,E){E=E||{};var _,C;switch(f.util.type(S)){case"Object":if(C=f.util.objId(S),E[C])return E[C];_={},E[C]=_;for(var T in S)S.hasOwnProperty(T)&&(_[T]=w(S[T],E));return _;case"Array":return C=f.util.objId(S),E[C]?E[C]:(_=[],E[C]=_,S.forEach(function(A,B){_[B]=w(A,E)}),_);default:return S}},getLanguage:function(w){for(;w;){var S=i.exec(w.className);if(S)return S[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,S){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+S)},isActive:function(w,S,E){for(var _="no-"+S;w;){var C=w.classList;if(C.contains(S))return!0;if(C.contains(_))return!1;w=w.parentElement}return!!E}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(w,S){var E=f.util.clone(f.languages[w]);for(var _ in S)E[_]=S[_];return E},insertBefore:function(w,S,E,_){_=_||f.languages;var C=_[w],T={};for(var A in C)if(C.hasOwnProperty(A)){if(A==S)for(var B in E)E.hasOwnProperty(B)&&(T[B]=E[B]);E.hasOwnProperty(A)||(T[A]=C[A])}var q=_[w];return _[w]=T,f.languages.DFS(f.languages,function(k,D){D===q&&k!=w&&(this[k]=T)}),T},DFS:function w(S,E,_,C){C=C||{};var T=f.util.objId;for(var A in S)if(S.hasOwnProperty(A)){E.call(S,A,S[A],_||A);var B=S[A],q=f.util.type(B);q==="Object"&&!C[T(B)]?(C[T(B)]=!0,w(B,E,null,C)):q==="Array"&&!C[T(B)]&&(C[T(B)]=!0,w(B,E,A,C))}}},plugins:{},highlight:function(w,S,E){var _={code:w,grammar:S,language:E};if(f.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=f.tokenize(_.code,_.grammar),f.hooks.run("after-tokenize",_),m.stringify(f.util.encode(_.tokens),_.language)},tokenize:function(w,S){var E=S.rest;if(E){for(var _ in E)S[_]=E[_];delete S.rest}var C=new v;return y(C,C.head,w),p(w,C,S,C.head,0),j(C)},hooks:{all:{},add:function(w,S){var E=f.hooks.all;E[w]=E[w]||[],E[w].push(S)},run:function(w,S){var E=f.hooks.all[w];if(!(!E||!E.length))for(var _=0,C;C=E[_++];)C(S)}},Token:m};function m(w,S,E,_){this.type=w,this.content=S,this.alias=E,this.length=(_||"").length|0}m.stringify=function w(S,E){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(q){_+=w(q,E)}),_}var C={type:S.type,content:w(S.content,E),tag:"span",classes:["token",S.type],attributes:{},language:E},T=S.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(C.classes,T):C.classes.push(T)),f.hooks.run("wrap",C);var A="";for(var B in C.attributes)A+=" "+B+'="'+(C.attributes[B]||"").replace(/"/g,"&quot;")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+A+">"+C.content+"</"+C.tag+">"};function g(w,S,E,_){w.lastIndex=S;var C=w.exec(E);if(C&&_&&C[1]){var T=C[1].length;C.index+=T,C[0]=C[0].slice(T)}return C}function p(w,S,E,_,C,T){for(var A in E)if(!(!E.hasOwnProperty(A)||!E[A])){var B=E[A];B=Array.isArray(B)?B:[B];for(var q=0;q<B.length;++q){if(T&&T.cause==A+","+q)return;var k=B[q],D=k.inside,z=!!k.lookbehind,H=!!k.greedy,X=k.alias;if(H&&!k.pattern.global){var ne=k.pattern.toString().match(/[imsuy]*$/)[0];k.pattern=RegExp(k.pattern.source,ne+"g")}for(var se=k.pattern||k,te=_.next,ce=C;te!==S.tail&&!(T&&ce>=T.reach);ce+=te.value.length,te=te.next){var P=te.value;if(S.length>w.length)return;if(!(P instanceof m)){var V=1,ee;if(H){if(ee=g(se,ce,w,z),!ee||ee.index>=w.length)break;var Z=ee.index,ye=ee.index+ee[0].length,ae=ce;for(ae+=te.value.length;Z>=ae;)te=te.next,ae+=te.value.length;if(ae-=te.value.length,ce=ae,te.value instanceof m)continue;for(var L=te;L!==S.tail&&(ae<ye||typeof L.value=="string");L=L.next)V++,ae+=L.value.length;V--,P=w.slice(ce,ae),ee.index-=ce}else if(ee=g(se,0,P,z),!ee)continue;var Z=ee.index,re=ee[0],ie=P.slice(0,Z),le=P.slice(Z+re.length),he=ce+P.length;T&&he>T.reach&&(T.reach=he);var xe=te.prev;ie&&(xe=y(S,xe,ie),ce+=ie.length),x(S,xe,V);var ze=new m(A,D?f.tokenize(re,D):re,X,re);if(te=y(S,xe,ze),le&&y(S,te,le),V>1){var ve={cause:A+","+q,reach:he};p(w,S,E,te.prev,ce,ve),T&&ve.reach>T.reach&&(T.reach=ve.reach)}}}}}}function v(){var w={value:null,prev:null,next:null},S={value:null,prev:w,next:null};w.next=S,this.head=w,this.tail=S,this.length=0}function y(w,S,E){var _=S.next,C={value:E,prev:S,next:_};return S.next=C,_.prev=C,w.length++,C}function x(w,S,E){for(var _=S.next,C=0;C<E&&_!==w.tail;C++)_=_.next;S.next=_,_.prev=S,w.length-=C}function j(w){for(var S=[],E=w.head.next;E!==w.tail;)S.push(E.value),E=E.next;return S}return f})();a.exports=r,r.default=r}}),J=_O(AO());J.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},J.languages.markup.tag.inside["attr-value"].inside.entity=J.languages.markup.entity,J.languages.markup.doctype.inside["internal-subset"].inside=J.languages.markup,J.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(J.languages.markup.tag,"addInlined",{value:function(t,i){var r={},r=(r["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:J.languages[i]},r.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}}),i=(r["language-"+i]={pattern:/[\s\S]+/,inside:J.languages[i]},{});i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},J.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(J.languages.markup.tag,"addAttribute",{value:function(t,a){J.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:J.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),J.languages.html=J.languages.markup,J.languages.mathml=J.languages.markup,J.languages.svg=J.languages.markup,J.languages.xml=J.languages.extend("markup",{}),J.languages.ssml=J.languages.xml,J.languages.atom=J.languages.xml,J.languages.rss=J.languages.xml,(function(t){var a={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i="(?:[^\\\\-]|"+r.source+")",i=RegExp(i+"-"+i),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":a,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:r}},"special-escape":a,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(J),J.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},J.languages.javascript=J.languages.extend("clike",{"class-name":[J.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),J.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,J.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:J.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:J.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:J.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:J.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:J.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),J.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:J.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),J.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),J.languages.markup&&(J.languages.markup.tag.addInlined("script","javascript"),J.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),J.languages.js=J.languages.javascript,J.languages.actionscript=J.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),J.languages.actionscript["class-name"].alias="function",delete J.languages.actionscript.parameter,delete J.languages.actionscript["literal-property"],J.languages.markup&&J.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:J.languages.markup}}),(function(t){var a=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:a,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:a,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(J),(function(t){var a=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(a,"addSupport",{value:function(r,i){(r=typeof r=="string"?[r]:r).forEach(function(o){var d=function(y){y.inside||(y.inside={}),y.inside.rest=i},f="doc-comment";if(m=t.languages[o]){var m,g=m[f];if((g=g||(m=t.languages.insertBefore(o,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[f])instanceof RegExp&&(g=m[f]={pattern:g}),Array.isArray(g))for(var p=0,v=g.length;p<v;p++)g[p]instanceof RegExp&&(g[p]={pattern:g[p]}),d(g[p]);else d(g)}})}}),a.addSupport(["java","javascript","php"],a)})(J),(function(t){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,a=(t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,t.languages.markup);a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(J),(function(t){var a=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a=(t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+a.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[a,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=a,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:r})})(J),(function(t){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function f(m,g){g=(g||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return m});return RegExp(p,g)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:f(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:f(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:f(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:f(d),lookbehind:!0,greedy:!0},number:{pattern:f(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(J),(function(t){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(p){return p=p.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,f=(t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+d+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+d+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(v){p!==v&&(t.languages.markdown[p].inside.content.inside[v]=t.languages.markdown[v])})}),t.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function v(y){if(y&&typeof y!="string")for(var x=0,j=y.length;x<j;x++){var w,S=y[x];S.type!=="code"?v(S.content):(w=S.content[1],S=S.content[3],w&&S&&w.type==="code-language"&&S.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),S.alias?typeof S.alias=="string"?S.alias=[S.alias,w]:S.alias.push(w):S.alias=[w]))}})(p.tokens)}),t.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var v="",y=0,x=p.classes.length;y<x;y++){var j=p.classes[y],j=/language-(.+)/.exec(j);if(j){v=j[1];break}}var w,S=t.languages[v];S?p.content=t.highlight((function(E){return E=E.replace(f,""),E=E.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(_,C){var T;return(C=C.toLowerCase())[0]==="#"?(T=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),g(T)):m[C]||_})})(p.content),S,v):v&&v!=="none"&&t.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=w,t.plugins.autoloader.loadLanguages(v,function(){var E=document.getElementById(w);E&&(E.innerHTML=t.highlight(E.textContent,t.languages[v],v))}))}}),RegExp(t.languages.markup.tag.pattern.source,"gi")),m={amp:"&",lt:"<",gt:">",quot:'"'},g=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown})(J),J.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:J.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},J.hooks.add("after-tokenize",function(t){if(t.language==="graphql")for(var a=t.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),r=0;r<a.length;){var i=a[r++];if(i.type==="keyword"&&i.content==="mutation"){var o=[];if(y(["definition-mutation","punctuation"])&&v(1).content==="("){r+=2;var d=x(/^\($/,/^\)$/);if(d===-1)continue;for(;r<d;r++){var f=v(0);f.type==="variable"&&(j(f,"variable-input"),o.push(f.content))}r=d+1}if(y(["punctuation","property-query"])&&v(0).content==="{"&&(r++,j(v(0),"property-mutation"),0<o.length)){var m=x(/^\{$/,/^\}$/);if(m!==-1)for(var g=r;g<m;g++){var p=a[g];p.type==="variable"&&0<=o.indexOf(p.content)&&j(p,"variable-input")}}}}function v(w){return a[r+w]}function y(w,S){S=S||0;for(var E=0;E<w.length;E++){var _=v(E+S);if(!_||_.type!==w[E])return}return 1}function x(w,S){for(var E=1,_=r;_<a.length;_++){var C=a[_],T=C.content;if(C.type==="punctuation"&&typeof T=="string"){if(w.test(T))E++;else if(S.test(T)&&--E===0)return _}}return-1}function j(w,S){var E=w.alias;E?Array.isArray(E)||(w.alias=E=[E]):w.alias=E=[],E.push(S)}}),J.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(t){var a=t.languages.javascript["template-string"],r=a.pattern.source,i=a.inside.interpolation,o=i.inside["interpolation-punctuation"],d=i.pattern.source;function f(y,x){if(t.languages[y])return{pattern:RegExp("((?:"+x+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}function m(y,x,j){return y={code:y,grammar:x,language:j},t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function g(y,x,j){var E=t.tokenize(y,{interpolation:{pattern:RegExp(d),lookbehind:!0}}),w=0,S={},E=m(E.map(function(C){if(typeof C=="string")return C;for(var T,A,C=C.content;y.indexOf((A=w++,T="___"+j.toUpperCase()+"_"+A+"___"))!==-1;);return S[T]=C,T}).join(""),x,j),_=Object.keys(S);return w=0,(function C(T){for(var A=0;A<T.length;A++){if(w>=_.length)return;var B,q,k,D,z,H,X,ne=T[A];typeof ne=="string"||typeof ne.content=="string"?(B=_[w],(X=(H=typeof ne=="string"?ne:ne.content).indexOf(B))!==-1&&(++w,q=H.substring(0,X),z=S[B],k=void 0,(D={})["interpolation-punctuation"]=o,(D=t.tokenize(z,D)).length===3&&((k=[1,1]).push.apply(k,m(D[1],t.languages.javascript,"javascript")),D.splice.apply(D,k)),k=new t.Token("interpolation",D,i.alias,z),D=H.substring(X+B.length),z=[],q&&z.push(q),z.push(k),D&&(C(H=[D]),z.push.apply(z,H)),typeof ne=="string"?(T.splice.apply(T,[A,1].concat(z)),A+=z.length-1):ne.content=z)):(X=ne.content,Array.isArray(X)?C(X):C([X]))}})(E),new t.Token(j,E,"language-"+j,y)}t.languages.javascript["template-string"]=[f("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),f("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),f("svg",/\bsvg/.source),f("markdown",/\b(?:markdown|md)/.source),f("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),f("sql",/\bsql/.source),a].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function v(y){return typeof y=="string"?y:Array.isArray(y)?y.map(v).join(""):v(y.content)}t.hooks.add("after-tokenize",function(y){y.language in p&&(function x(j){for(var w=0,S=j.length;w<S;w++){var E,_,C,T=j[w];typeof T!="string"&&(E=T.content,Array.isArray(E)?T.type==="template-string"?(T=E[1],E.length===3&&typeof T!="string"&&T.type==="embedded-code"&&(_=v(T),T=T.alias,T=Array.isArray(T)?T[0]:T,C=t.languages[T])&&(E[1]=g(_,C,T))):x(E):typeof E!="string"&&x([E]))}})(y.tokens)})})(J),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var a=t.languages.extend("typescript",{});delete a["class-name"],t.languages.typescript["class-name"].inside=a,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),t.languages.ts=t.languages.typescript})(J),(function(t){var a=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,i="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(J),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(J),J.languages.n4js=J.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),J.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),J.languages.n4jsd=J.languages.n4js,(function(t){function a(f,m){return RegExp(f.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:a(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:a(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:a(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i<r.length;i++){var d=r[i],o=t.languages.javascript[d],d=(o=t.util.type(o)==="RegExp"?t.languages.javascript[d]={pattern:o}:o).inside||{};(o.inside=d)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(J),(function(t){var a=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function d(g,p){return g=g.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(g,p)}o=d(o).source,t.languages.jsx=t.languages.extend("markup",a),t.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=a.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:d(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function f(g){for(var p=[],v=0;v<g.length;v++){var y=g[v],x=!1;typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===m(y.content[0].content[1])&&p.pop():y.content[y.content.length-1].content!=="/>"&&p.push({tagName:m(y.content[0].content[1]),openedBraces:0}):0<p.length&&y.type==="punctuation"&&y.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&y.type==="punctuation"&&y.content==="}"?p[p.length-1].openedBraces--:x=!0),(x||typeof y=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(x=m(y),v<g.length-1&&(typeof g[v+1]=="string"||g[v+1].type==="plain-text")&&(x+=m(g[v+1]),g.splice(v+1,1)),0<v&&(typeof g[v-1]=="string"||g[v-1].type==="plain-text")&&(x=m(g[v-1])+x,g.splice(v-1,1),v--),g[v]=new t.Token("plain-text",x,null,x)),y.content&&typeof y.content!="string"&&f(y.content)}}var m=function(g){return g?typeof g=="string"?g:typeof g.content=="string"?g.content:g.content.map(m).join(""):""};t.hooks.add("after-tokenize",function(g){g.language!=="jsx"&&g.language!=="tsx"||f(g.tokens)})})(J),(function(t){var a=t.util.clone(t.languages.typescript),a=(t.languages.tsx=t.languages.extend("jsx",a),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"],t.languages.tsx.tag);a.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+a.pattern.source+")",a.pattern.flags),a.lookbehind=!0})(J),J.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},J.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=J.languages.swift}),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var a={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:a},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:a},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(J),J.languages.c=J.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),J.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),J.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},J.languages.c.string],char:J.languages.c.char,comment:J.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:J.languages.c}}}}),J.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete J.languages.c.boolean,J.languages.objectivec=J.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete J.languages.objectivec["class-name"],J.languages.objc=J.languages.objectivec,J.languages.reason=J.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),J.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete J.languages.reason.function,(function(t){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(J),J.languages.go=J.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),J.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete J.languages.go["class-name"],(function(t){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return a.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(J),J.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},J.languages.python["string-interpolation"].inside.interpolation.inside.rest=J.languages.python,J.languages.py=J.languages.python,J.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},J.languages.webmanifest=J.languages.json;var vm={};RO(vm,{dracula:()=>kO,duotoneDark:()=>MO,duotoneLight:()=>LO,github:()=>BO,gruvboxMaterialDark:()=>fM,gruvboxMaterialLight:()=>mM,jettwaveDark:()=>sM,jettwaveLight:()=>iM,nightOwl:()=>PO,nightOwlLight:()=>HO,oceanicNext:()=>GO,okaidia:()=>QO,oneDark:()=>oM,oneLight:()=>uM,palenight:()=>YO,shadesOfPurple:()=>XO,synthwave84:()=>KO,ultramin:()=>JO,vsDark:()=>LS,vsLight:()=>nM});var TO={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},kO=TO,OO={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},MO=OO,DO={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},LO=DO,zO={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},BO=zO,UO={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},PO=UO,FO={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},HO=FO,fn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},qO={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:fn.keyword}},{types:["attr-value"],style:{color:fn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:fn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:fn.primitive}},{types:["boolean"],style:{color:fn.boolean}},{types:["tag"],style:{color:fn.tag}},{types:["string"],style:{color:fn.string}},{types:["punctuation"],style:{color:fn.string}},{types:["selector","char","builtin","inserted"],style:{color:fn.char}},{types:["function"],style:{color:fn.function}},{types:["operator","entity","url","variable"],style:{color:fn.variable}},{types:["keyword"],style:{color:fn.keyword}},{types:["atrule","class-name"],style:{color:fn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},GO=qO,IO={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},QO=IO,VO={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},YO=VO,$O={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},XO=$O,ZO={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},KO=ZO,WO={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},JO=WO,eM={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},LS=eM,tM={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},nM=tM,aM={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},sM=aM,rM={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},iM=rM,lM={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},oM=lM,cM={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},uM=cM,dM={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},fM=dM,hM={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},mM=hM,pM=t=>N.useCallback(a=>{var r=a,{className:i,style:o,line:d}=r,f=DS(r,["className","style","line"]);const m=Hu(ra({},f),{className:fo("token-line",i)});return typeof t=="object"&&"plain"in t&&(m.style=t.plain),typeof o=="object"&&(m.style=ra(ra({},m.style||{}),o)),m},[t]),gM=t=>{const a=N.useCallback(({types:r,empty:i})=>{if(t!=null){{if(r.length===1&&r[0]==="plain")return i!=null?{display:"inline-block"}:void 0;if(r.length===1&&i!=null)return t[r[0]]}return Object.assign(i!=null?{display:"inline-block"}:{},...r.map(o=>t[o]))}},[t]);return N.useCallback(r=>{var i=r,{token:o,className:d,style:f}=i,m=DS(i,["token","className","style"]);const g=Hu(ra({},m),{className:fo("token",...o.types,d),children:o.content,style:a(o)});return f!=null&&(g.style=ra(ra({},g.style||{}),f)),g},[a])},yM=/\r\n|\r|\n/,Bx=t=>{t.length===0?t.push({types:["plain"],content:`
335
- `,empty:!0}):t.length===1&&t[0].content===""&&(t[0].content=`
336
- `,t[0].empty=!0)},Ux=(t,a)=>{const r=t.length;return r>0&&t[r-1]===a?t:t.concat(a)},vM=t=>{const a=[[]],r=[t],i=[0],o=[t.length];let d=0,f=0,m=[];const g=[m];for(;f>-1;){for(;(d=i[f]++)<o[f];){let p,v=a[f];const x=r[f][d];if(typeof x=="string"?(v=f>0?v:["plain"],p=x):(v=Ux(v,x.type),x.alias&&(v=Ux(v,x.alias)),p=x.content),typeof p!="string"){f++,a.push(v),r.push(p),i.push(0),o.push(p.length);continue}const j=p.split(yM),w=j.length;m.push({types:v,content:j[0]});for(let S=1;S<w;S++)Bx(m),g.push(m=[]),m.push({types:v,content:j[S]})}f--,a.pop(),r.pop(),i.pop(),o.pop()}return Bx(m),g},Px=vM,bM=({prism:t,code:a,grammar:r,language:i})=>N.useMemo(()=>{if(r==null)return Px([a]);const o={code:a,grammar:r,language:i,tokens:[]};return t.hooks.run("before-tokenize",o),o.tokens=t.tokenize(a,r),t.hooks.run("after-tokenize",o),Px(o.tokens)},[a,r,i,t]),xM=(t,a)=>{const{plain:r}=t,i=t.styles.reduce((o,d)=>{const{languages:f,style:m}=d;return f&&!f.includes(a)||d.types.forEach(g=>{const p=ra(ra({},o[g]),m);o[g]=p}),o},{});return i.root=r,i.plain=Hu(ra({},r),{backgroundColor:void 0}),i},SM=xM,wM=({children:t,language:a,code:r,theme:i,prism:o})=>{const d=a.toLowerCase(),f=SM(i,d),m=pM(f),g=gM(f),p=o.languages[d],v=bM({prism:o,language:d,code:r,grammar:p});return t({tokens:v,className:`prism-code language-${d}`,style:f!=null?f.root:{},getLineProps:m,getTokenProps:g})},jM=t=>N.createElement(wM,Hu(ra({},t),{prism:t.prism||J,theme:t.theme||LS,code:t.code,language:t.language}));/*! Bundled license information:
337
-
338
- prismjs/prism.js:
339
- (**
340
- * Prism: Lightweight, robust, elegant syntax highlighting
341
- *
342
- * @license MIT <https://opensource.org/licenses/MIT>
343
- * @author Lea Verou <https://lea.verou.me>
344
- * @namespace
345
- * @public
346
- *)
347
- */const EM={...vm.nightOwl,styles:vm.nightOwl.styles.map(t=>({...t,style:Object.fromEntries(Object.entries(t.style??{}).filter(([a])=>a!=="background"&&a!=="backgroundColor"))}))};function NM(t){const a=[],r=/\[source:\s*(.+?):(\d+|\?)-(\d+|\?)\s*\|\s*score:\s*([\d.]+)\]\n([\s\S]*?)(?=\n\[source:|$)/g;let i;for(;(i=r.exec(t))!==null;)a.push({path:i[1],startLine:i[2],endLine:i[3],score:i[4],code:i[5].trimEnd()});return a}function RM(t){var i;const a=((i=t.split(".").pop())==null?void 0:i.toLowerCase())??"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",py:"python",go:"go",rs:"rust",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",bash:"bash"}[a]??"text"}function CM(t){const a=[],r=/```(\w+)?\n([\s\S]*?)```/g;let i=0,o;for(;(o=r.exec(t))!==null;)o.index>i&&a.push({language:"markdown",code:t.slice(i,o.index),fenced:!1}),a.push({language:o[1]??"text",code:o[2].trimEnd(),fenced:!0}),i=o.index+o[0].length;return i<t.length&&a.push({language:"markdown",code:t.slice(i),fenced:!1}),a.filter(d=>d.code.trim().length>0)}function Uh({code:t,language:a}){return c.jsx(jM,{theme:EM,code:t,language:a,children:({className:r,style:i,tokens:o,getLineProps:d,getTokenProps:f})=>c.jsx("pre",{className:`${r} text-xs overflow-x-auto p-3 m-0`,style:{...i,background:"transparent"},children:o.map((m,g)=>{const p=d({line:m,key:g});return c.jsxs("div",{...p,className:`${p.className} table-row`,children:[c.jsx("span",{className:"table-cell pr-3 text-right select-none opacity-30 text-xs",children:g+1}),c.jsx("span",{className:"table-cell",children:m.map((v,y)=>c.jsx("span",{...f({token:v,key:y})},y))})]},g)})})})}function _M({raw:t}){const a=NM(t);return a.length===0?c.jsx("pre",{className:"text-sm whitespace-pre-wrap font-mono bg-muted/30 rounded-md p-4 overflow-x-auto",children:t}):c.jsx("div",{className:"flex flex-col gap-4",children:a.map((r,i)=>{const o=RM(r.path),d=o==="markdown"?CM(r.code):null;return c.jsxs("div",{className:"rounded-lg border border-border overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 bg-muted/50 border-b border-border",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(_u,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("span",{className:"font-mono text-xs truncate",children:r.path}),c.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[":",r.startLine,"-",r.endLine]})]}),c.jsx(ft,{variant:"outline",className:"text-xs shrink-0",children:r.score})]}),d?d.map((f,m)=>f.fenced?c.jsx("div",{className:"bg-muted/30 border-y border-border/50",children:c.jsx(Uh,{code:f.code,language:f.language})},m):c.jsx(Uh,{code:f.code,language:"markdown"},m)):c.jsx(Uh,{code:r.code,language:o})]},i)})})}const AM=bn("/query")({component:TM,validateSearch:t=>({workspaceId:t.workspaceId??""})}),Ph={answerContext:"",sources:[],graphNodes:[],graphEdges:[],error:null};function Fx(t){switch(t){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 TM(){const{workspaceId:t}=qi({from:"/query"}),[a,r]=N.useState(Ph),[i,o]=N.useState(!1);async function d(p){p.preventDefault(),o(!0),r({...Ph,error:null});try{const v=new FormData(p.currentTarget),y=await yn.runQuery({workspaceId:String(v.get("workspaceId")??"").trim(),query:String(v.get("query")??"").trim()});r({...y,error:null})}catch(v){r({...Ph,error:v instanceof Error?v.message:"Query failed"})}finally{o(!1)}}const f=a.graphNodes.filter(p=>p.type==="file"),m=a.graphNodes.filter(p=>p.type==="symbol");a.graphNodes.filter(p=>p.type==="chunk");const g=t.trim().length>0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[g&&c.jsx(vt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(mt,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h1",{children:"Query"}),c.jsx("p",{className:"muted text-sm",children:"Test the retrieval flow against the indexed workspace."})]})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{className:"text-base",children:"Query interface"})}),c.jsx(Ce,{children:c.jsxs("form",{onSubmit:d,className:"query-form",children:[c.jsxs("div",{className:"field",children:[c.jsx(dt,{htmlFor:"workspaceId",children:"Workspace ID"}),c.jsx(Ts,{id:"workspaceId",name:"workspaceId",defaultValue:t,placeholder:"openez"})]}),c.jsxs("div",{className:"field",children:[c.jsx(dt,{htmlFor:"query",children:"Query"}),c.jsx(mu,{id:"query",name:"query",placeholder:"login session flow, auth design, createSession"})]}),c.jsx(mt,{type:"submit",disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(to,{className:"h-4 w-4 animate-spin"})," Running..."]}):c.jsxs(c.Fragment,{children:[c.jsx(Au,{className:"h-4 w-4"})," Run query"]})}),a.error&&c.jsx("p",{className:"text-sm text-destructive mt-2",children:a.error})]})})]}),a.answerContext&&c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{className:"text-base",children:"Context"})}),c.jsx(Ce,{children:c.jsx(_M,{raw:a.answerContext})})]}),a.sources.length>0&&c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{className:"text-base",children:"Sources"})}),c.jsx(Ce,{children:c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Path"}),c.jsx(Be,{children:"Lines"}),c.jsx(Be,{children:"Score"}),c.jsx(Be,{children:"Reason"})]})}),c.jsx(aa,{children:a.sources.map(p=>c.jsxs(ht,{children:[c.jsx(Oe,{className:"font-mono text-xs",children:p.path}),c.jsxs(Oe,{children:[p.startLine??"?","-",p.endLine??"?"]}),c.jsx(Oe,{children:p.score.toFixed(3)}),c.jsx(Oe,{children:p.reason})]},`${p.path}-${p.startLine}-${p.endLine}`))})]})})]}),a.graphNodes.length>0&&c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsxs(We,{className:"text-base flex items-center gap-2",children:[c.jsx(LR,{className:"h-4 w-4"})," Graph Relationships"]})}),c.jsxs(Ce,{className:"grid gap-4",children:[f.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Files"}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:f.map(p=>c.jsxs(ft,{variant:"outline",className:Fx("file"),children:[c.jsx(_u,{className:"h-3 w-3 mr-1"})," ",p.label]},p.id))})]}),m.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Symbols"}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.map(p=>c.jsx(ft,{variant:"outline",className:Fx("symbol"),children:p.label},p.id))})]}),a.graphEdges.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Edges"}),c.jsx("div",{className:"flex flex-col gap-1",children:a.graphEdges.slice(0,20).map((p,v)=>{const y=a.graphNodes.find(j=>j.id===p.from_node_id),x=a.graphNodes.find(j=>j.id===p.to_node_id);return c.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[c.jsx("span",{className:"truncate max-w-50 font-mono",children:(y==null?void 0:y.label)??p.from_node_id.slice(0,8)}),c.jsx(lm,{className:"h-3 w-3 shrink-0"}),c.jsx(ft,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:p.type}),c.jsx(lm,{className:"h-3 w-3 shrink-0"}),c.jsx("span",{className:"truncate max-w-50 font-mono",children:(x==null?void 0:x.label)??p.to_node_id.slice(0,8)})]},v)})})]})]})]})]})}function ea(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const Hx={file:"#60a5fa",chunk:"#34d399",symbol:"#fbbf24",memory:"#f472b6",entity:"#c084fc",document:"#22d3ee",default:"#94a3b8"},qx={imports:"#60a5fa",defines:"#fbbf24",contains:"#34d399",mentions:"#c084fc",represented_by:"#f472b6",calls:"#f97316",links_to:"#22d3ee",related_to:"#94a3b8",default:"#64748b"};function kM(t){return Hx[t]??Hx.default}function OM(t){return qx[t]??qx.default}const MM=bn("/memories")({loader:({context:t})=>t.queryClient.ensureQueryData(fu(1,qt)),component:DM,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function DM(){const t=Er(),{page:a}=qi({from:"/memories"}),[r,i]=N.useState(""),[o,d]=N.useState(""),[f,m]=N.useState(!1),[g,p]=N.useState(null);N.useEffect(()=>{const C=setTimeout(()=>d(r),300);return()=>clearTimeout(C)},[r]);const v=o.trim().length>0,y=v?WR(o):fu(a,qt),{data:x,isLoading:j}=La({queryKey:y.queryKey,queryFn:y.queryFn,placeholderData:C=>C}),w=v?1:Math.max(1,Math.ceil(((x==null?void 0:x.totalCount)??0)/qt));N.useEffect(()=>{if(!v){const C=a+1;C<=w&&t.prefetchQuery(fu(C,qt))}},[a,w,t,v]);const S=I0({mutationFn:C=>yn.deleteMemory(C),onSuccess:()=>{t.invalidateQueries({queryKey:["memories"]}),t.invalidateQueries({queryKey:["dashboard"]}),p(null)}}),E=(x==null?void 0:x.items)??[],_=(x==null?void 0:x.totalCount)??0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Memories"}),c.jsx("p",{className:"muted text-sm",children:"Technical decisions and agent notes persisted across sessions."})]}),c.jsxs(mt,{onClick:()=>m(!0),size:"sm",children:[c.jsx(cm,{className:"h-4 w-4 mr-1"}),"New Memory"]})]}),c.jsx(Re,{className:"mb-4",children:c.jsx(Ce,{className:"pt-4",children:c.jsxs("div",{className:"relative",children:[c.jsx(Au,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),c.jsx(Ts,{placeholder:"Search memories by title or content...",value:r,onChange:C=>i(C.target.value),className:"pl-9"}),r&&c.jsx("button",{onClick:()=>i(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]})})}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:v?`Search results (${E.length})`:`Memories (${_})`})}),c.jsx(Ce,{children:j?c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):E.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:v?"No memories match your search.":"No memories yet. Create one to get started."}):c.jsxs(c.Fragment,{children:[c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Title"}),c.jsx(Be,{children:"Tags"}),c.jsx(Be,{children:"Source"}),c.jsx(Be,{children:"Updated"}),c.jsx(Be,{className:"w-10"})]})}),c.jsx(aa,{children:E.map(C=>c.jsxs(ht,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>p(C),children:[c.jsx(Oe,{className:"font-medium",children:C.title}),c.jsx(Oe,{children:c.jsx("div",{className:"flex gap-1 flex-wrap",children:C.tags.length===0?c.jsx("span",{className:"text-xs text-muted-foreground",children:"—"}):C.tags.map(T=>c.jsx(ft,{variant:"secondary",className:"text-xs",children:T},T))})}),c.jsx(Oe,{children:c.jsx(ft,{variant:"outline",className:"text-xs",children:C.source})}),c.jsx(Oe,{className:"text-muted-foreground text-sm",children:ea(C.updatedAt)}),c.jsx(Oe,{children:c.jsx("button",{onClick:T=>{T.stopPropagation(),S.mutate(C.id)},className:"text-muted-foreground hover:text-destructive transition-colors",children:c.jsx(X0,{className:"h-4 w-4"})})})]},C.id))})]}),!v&&c.jsx(zm,{currentPage:a,totalPages:w,basePath:"/memories"})]})})]}),f&&c.jsx(LM,{onClose:()=>m(!1),onCreated:()=>{m(!1),t.invalidateQueries({queryKey:["memories"]}),t.invalidateQueries({queryKey:["dashboard"]})}}),g&&c.jsx(zM,{memory:g,onClose:()=>p(null),onDelete:()=>S.mutate(g.id),deleting:S.isPending})]})}function LM({onClose:t,onCreated:a}){const[r,i]=N.useState(""),[o,d]=N.useState(""),[f,m]=N.useState(""),[g,p]=N.useState(null),v=I0({mutationFn:()=>yn.createMemory({title:r.trim(),content:o.trim(),tags:f.split(",").map(x=>x.trim()).filter(Boolean)}),onSuccess:x=>{x.ok&&x.data?a():p("Failed to create memory")},onError:x=>p(x.message)}),y=x=>{if(x.preventDefault(),!r.trim()||!o.trim()){p("Title and content are required");return}v.mutate()};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:t,children:c.jsxs(Re,{className:"w-full max-w-lg max-h-[80vh] overflow-y-auto",onClick:x=>x.stopPropagation(),children:[c.jsx(Ke,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(We,{children:"New Memory"}),c.jsx("button",{onClick:t,className:"text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]})}),c.jsx(Ce,{children:c.jsxs("form",{onSubmit:y,className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(dt,{htmlFor:"memory-title",children:"Title"}),c.jsx(Ts,{id:"memory-title",value:r,onChange:x=>i(x.target.value),placeholder:"e.g. Use SQLite WAL mode for all workspaces",autoFocus:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(dt,{htmlFor:"memory-content",children:"Content"}),c.jsx(mu,{id:"memory-content",value:o,onChange:x=>d(x.target.value),placeholder:"Describe the technical decision or note...",rows:6})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(dt,{htmlFor:"memory-tags",children:"Tags (comma-separated)"}),c.jsx(Ts,{id:"memory-tags",value:f,onChange:x=>m(x.target.value),placeholder:"e.g. architecture, storage, decision"})]}),g&&c.jsx("p",{className:"text-sm text-destructive",children:g}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(mt,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),c.jsx(mt,{type:"submit",disabled:v.isPending,children:v.isPending?"Creating...":"Create"})]})]})})]})})}function zM({memory:t,onClose:a,onDelete:r,deleting:i}){return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:a,children:c.jsxs(Re,{className:"w-full max-w-lg max-h-[80vh] overflow-y-auto",onClick:o=>o.stopPropagation(),children:[c.jsx(Ke,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(We,{children:t.title}),c.jsx("button",{onClick:a,className:"text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]})}),c.jsx(Ce,{children:c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex gap-2 flex-wrap",children:[t.tags.map(o=>c.jsx(ft,{variant:"secondary",className:"text-xs",children:o},o)),c.jsx(ft,{variant:"outline",className:"text-xs",children:t.source})]}),c.jsx("div",{className:"text-sm whitespace-pre-wrap",children:t.content}),c.jsxs("div",{className:"flex items-center justify-between border-t pt-3",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:[c.jsxs("div",{children:["Created: ",ea(t.createdAt)]}),c.jsxs("div",{children:["Updated: ",ea(t.updatedAt)]})]}),c.jsxs(mt,{variant:"destructive",size:"sm",onClick:r,disabled:i,children:[c.jsx(X0,{className:"h-4 w-4 mr-1"}),i?"Deleting...":"Delete"]})]})]})})]})})}const BM=bn("/documents")({loader:({context:t})=>t.queryClient.ensureQueryData(du(1,qt)),component:UM,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function UM(){const t=Er(),{page:a}=qi({from:"/documents"}),{data:r,isLoading:i}=La({...du(a,qt),placeholderData:m=>m}),o=Math.max(1,Math.ceil(((r==null?void 0:r.totalCount)??0)/qt)),f=(a-1)*qt+((r==null?void 0:r.items.length)??0);return N.useEffect(()=>{const m=a+1;m<=o&&t.prefetchQuery(du(m,qt))},[a,o,t]),c.jsxs("div",{className:"page",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Documents"}),c.jsx("p",{className:"muted",children:"Indexed document inventory ordered by latest update."})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"Documents"})}),c.jsx(Ce,{children:i?c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",f," of ",(r==null?void 0:r.totalCount)??0," documents"]}),c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Path"}),c.jsx(Be,{children:"Kind"}),c.jsx(Be,{children:"Language"}),c.jsx(Be,{children:"Updated"})]})}),c.jsx(aa,{children:((r==null?void 0:r.items)??[]).map(m=>c.jsxs(ht,{children:[c.jsx(Oe,{children:m.path}),c.jsx(Oe,{children:m.kind}),c.jsx(Oe,{children:m.language??"-"}),c.jsx(Oe,{className:"text-muted-foreground",children:ea(m.updatedAt)})]},m.id))})]}),c.jsx(zm,{currentPage:a,totalPages:o,basePath:"/documents"})]})})]})]})}const PM=bn("/changelog")({component:FM});function FM(){const{data:t,isLoading:a,error:r}=La({queryKey:["changelog"],queryFn:()=>yn.getChangelog()});if(a)return c.jsxs("div",{className:"page",children:[c.jsx("h1",{children:"Changelog"}),c.jsx("p",{className:"muted text-sm",children:"Loading..."})]});if(r||!(t!=null&&t.content))return c.jsxs("div",{className:"page",children:[c.jsx("h1",{children:"Changelog"}),c.jsx(Re,{children:c.jsx(Ce,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:r?r.message:"No changelog found."})})})]});const i=HM(t.content);return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{children:"Changelog"}),c.jsx("p",{className:"muted text-sm",children:"Release history for OpenEZ Graph."})]}),c.jsx("div",{className:"flex flex-col gap-4",children:i.map(o=>c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(We,{className:"text-base font-mono",children:o.version}),o.date&&c.jsx("span",{className:"text-xs text-muted-foreground",children:o.date}),o.summary&&c.jsx("span",{className:"text-sm text-muted-foreground",children:o.summary})]})}),c.jsx(Ce,{children:c.jsx("div",{className:"flex flex-col gap-3",children:o.groups.map(d=>c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-1.5 uppercase tracking-wider",children:d.label}),c.jsx("ul",{className:"flex flex-col gap-1",children:d.items.map((f,m)=>c.jsxs("li",{className:"text-sm flex gap-2",children:[c.jsx("span",{className:"text-muted-foreground shrink-0",children:"•"}),c.jsx("span",{children:f})]},m))})]},d.label))})})]},o.version))})]})}function HM(t){var f,m;const a=[],r=/^##\s+\[([^\]]+)\](?:\s*-\s*(\d{4}-\d{2}-\d{2}))?(.*)$/gm,i=["Added","Changed","Deprecated","Removed","Fixed","Security"];let o;const d=[];for(;(o=r.exec(t))!==null;)d.push({version:o[1],date:((f=o[2])==null?void 0:f.trim())||void 0,summary:((m=o[3])==null?void 0:m.trim())||void 0,start:o.index+o[0].length});for(let g=0;g<d.length;g++){const p=g+1<d.length?t.indexOf("## ",d[g+1].start-200):t.length,v=t.slice(d[g].start,p>d[g].start?p:t.length).trim(),y=[],x=new RegExp(`^###\\s+(${i.join("|")})\\s*$`,"gm");let j;const w=[];for(;(j=x.exec(v))!==null;)w.push({label:j[1],start:j.index+j[0].length});if(w.length===0){const S=v.split(`
348
- `).filter(E=>E.trim().startsWith("-")).map(E=>E.trim().slice(1).trim());S.length>0&&y.push({label:"Changes",items:S})}else for(let S=0;S<w.length;S++){const E=S+1<w.length?v.indexOf("### ",w[S+1].start-10):v.length,C=v.slice(w[S].start,E>w[S].start?E:v.length).trim().split(`
349
- `).filter(T=>T.trim().startsWith("-")).map(T=>T.trim().slice(1).trim());C.length>0&&y.push({label:w[S].label,items:C})}a.push({version:d[g].version,date:d[g].date,summary:d[g].summary,groups:y})}return a}const qM=bn("/benchmark")({component:QM}),GM=[{label:"Recall@5",value:"94.44%",detail:"17 of 18 queries",icon:YR},{label:"MRR",value:"0.7009",detail:"Mean reciprocal rank",icon:Y0},{label:"Duplicate paths",value:"0%",detail:"Unique source files",icon:uo},{label:"FTS latency",value:"17.85 ms",detail:"Average over 54 runs",icon:iR}],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 QM(){return c.jsxs("div",{className:"page mx-auto w-full max-w-6xl",children:[c.jsxs("header",{className:"flex flex-col gap-3 border-b pb-5 sm:flex-row sm:items-end sm:justify-between",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2",children:[c.jsxs(ft,{className:"gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[c.jsx(uo,{className:"h-3.5 w-3.5"})," Quality gate passed"]}),c.jsx(ft,{variant:"outline",children:"2026-07-22"})]}),c.jsx("h1",{children:"Retrieval benchmark"}),c.jsx("p",{className:"muted mt-1",children:"117 files, 632 chunks, 18 queries, 3 iterations per mode."})]}),c.jsxs("div",{className:"text-left text-sm text-muted-foreground sm:text-right",children:[c.jsx("div",{children:"SQLite FTS5 + graph"}),c.jsx("div",{children:"Ollama nomic-embed-text"})]})]}),c.jsx("section",{className:"grid gap-0 overflow-hidden rounded-lg border sm:grid-cols-2 xl:grid-cols-4",children:GM.map(({label:t,value:a,detail:r,icon:i},o)=>c.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:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3 text-sm text-muted-foreground",children:[c.jsx("span",{children:t}),c.jsx(i,{className:"h-4 w-4 text-foreground"})]}),c.jsx("div",{className:"text-2xl font-semibold tabular-nums",children:a}),c.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:r})]},t))}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Re,{children:[c.jsxs(Ke,{children:[c.jsx(We,{className:"text-lg",children:"Quality improvement"}),c.jsx(jh,{children:"Current retrieval compared with the previous baseline."})]}),c.jsxs(Ce,{className:"space-y-5",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[c.jsx("span",{children:"Recall@5"}),c.jsx("span",{className:"font-mono tabular-nums",children:"83.33% → 94.44%"})]}),c.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:c.jsx("div",{className:"h-full w-[94.44%] bg-emerald-500"})})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[c.jsx("span",{children:"MRR"}),c.jsx("span",{className:"font-mono tabular-nums",children:"0.6176 → 0.7009"})]}),c.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:c.jsx("div",{className:"h-full w-[70.09%] bg-cyan-500"})})]}),c.jsxs("div",{className:"flex items-center justify-between border-t pt-4 text-sm",children:[c.jsx("span",{className:"text-muted-foreground",children:"Missed queries"}),c.jsx("span",{className:"font-medium tabular-nums",children:"3 → 1"})]})]})]}),c.jsxs(Re,{children:[c.jsxs(Ke,{children:[c.jsx(We,{className:"text-lg",children:"Latency cost"}),c.jsx(jh,{children:"Ollama preserves quality but adds local inference time."})]}),c.jsxs(Ce,{className:"space-y-5",children:[c.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[c.jsx("span",{children:"FTS-only"}),c.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:c.jsx("div",{className:"h-full w-[16%] bg-cyan-500"})}),c.jsx("span",{className:"font-mono tabular-nums",children:"17.85 ms"})]}),c.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[c.jsx("span",{children:"Ollama"}),c.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:c.jsx("div",{className:"h-full w-full bg-amber-500"})}),c.jsx("span",{className:"font-mono tabular-nums",children:"112.88 ms"})]}),c.jsxs("div",{className:"flex items-start gap-3 border-t pt-4 text-sm text-muted-foreground",children:[c.jsx(Y0,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-500"}),c.jsx("p",{children:"FTS-only remains the default. Ollama is used as semantic fallback when lexical search has no result."})]})]})]})]}),c.jsxs(Re,{children:[c.jsxs(Ke,{className:"flex-row items-start justify-between gap-4 space-y-0",children:[c.jsxs("div",{children:[c.jsx(We,{className:"text-lg",children:"Mode comparison"}),c.jsx(jh,{children:"54 measured runs per mode on the same local index."})]}),c.jsx(ft,{variant:"secondary",children:"0% data leakage"})]}),c.jsx(Ce,{children:c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Metric"}),c.jsx(Be,{children:"FTS-only"}),c.jsx(Be,{children:"Ollama embedding"})]})}),c.jsxs(aa,{children:[IM.map(([t,a,r])=>c.jsxs(ht,{children:[c.jsx(Oe,{className:"font-medium",children:t}),c.jsx(Oe,{className:"font-mono tabular-nums",children:a}),c.jsx(Oe,{className:"font-mono tabular-nums",children:r})]},t)),c.jsxs(ht,{children:[c.jsx(Oe,{className:"font-medium",children:"Quality gate"}),c.jsx(Oe,{children:c.jsx(ft,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})}),c.jsx(Oe,{children:c.jsx(ft,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})})]})]})]})})]}),c.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:[c.jsx(Mm,{className:"h-5 w-5 shrink-0 text-amber-500"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("h2",{className:"text-base font-semibold",children:"Remaining miss"}),c.jsx(ft,{variant:"outline",children:"Rank 7"})]}),c.jsx("p",{className:"mt-2 break-words font-mono text-sm",children:"where are TypeScript symbols extracted?"}),c.jsxs("div",{className:"mt-3 grid gap-1 text-sm text-muted-foreground sm:grid-cols-[92px_1fr]",children:[c.jsx("span",{children:"Expected"}),c.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/code.ts"}),c.jsx("span",{children:"Top result"}),c.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/languages.ts"})]})]})]})]})}const VM=bn("/")({loader:async({context:t})=>{await t.queryClient.ensureQueryData(Dm)},component:YM});function YM(){const{data:t,isLoading:a,error:r}=La(Dm);return a?c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})}):r?c.jsx("div",{className:"page",children:c.jsx("p",{className:"text-destructive",children:r.message})}):t?c.jsxs("div",{className:"page",children:[c.jsxs("div",{children:[c.jsx("h1",{children:t.workspace.name}),c.jsx("p",{className:"muted",children:t.workspace.root})]}),c.jsx("section",{className:"-mx-6 border-y bg-muted/20 px-6 py-5",children:c.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs(ft,{className:"mb-3 gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[c.jsx(uo,{className:"h-3.5 w-3.5"})," Retrieval benchmark passed"]}),c.jsx("h2",{className:"text-lg font-semibold",children:"Measured retrieval quality"}),c.jsx("p",{className:"muted mt-1 text-sm",children:"18 queries, 3 iterations, 54 measured runs per mode."})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Recall@5"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"94.44%"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"MRR"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"0.6565"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Queries hit"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"17/18"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"FTS average"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"38.68 ms"})]})]}),c.jsxs(vt,{to:"/benchmark",className:h1({variant:"outline",className:"shrink-0"}),children:["Full benchmark ",c.jsx(lm,{className:"h-4 w-4"})]})]})}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"Index state"})}),c.jsxs(Ce,{className:"grid gap-3",children:[c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Documents"}),c.jsx("strong",{children:t.stats.documents})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Chunks"}),c.jsx("strong",{children:t.stats.chunks})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Graph nodes"}),c.jsx("strong",{children:t.stats.graphNodes})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Graph edges"}),c.jsx("strong",{children:t.stats.graphEdges})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Memories"}),c.jsx("strong",{children:t.stats.memories})]})]})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"Latest runs"})}),c.jsx(Ce,{children:t.recentRuns.length===0?c.jsx("p",{className:"muted",children:"No index runs recorded yet."}):c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Mode"}),c.jsx(Be,{children:"Status"}),c.jsx(Be,{children:"Files"}),c.jsx(Be,{children:"Started"})]})}),c.jsx(aa,{children:t.recentRuns.map(i=>c.jsxs(ht,{children:[c.jsx(Oe,{children:i.mode}),c.jsx(Oe,{children:i.status}),c.jsxs(Oe,{children:[i.filesUpdated,"/",i.filesScanned]}),c.jsx(Oe,{children:ea(i.startedAt)})]},i.id))})]})})]})]}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"Recent documents"})}),c.jsx(Ce,{children:c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Path"}),c.jsx(Be,{children:"Kind"})]})}),c.jsx(aa,{children:t.recentDocuments.map(i=>c.jsxs(ht,{children:[c.jsx(Oe,{children:i.path}),c.jsx(Oe,{children:i.kind})]},i.id))})]})})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{children:"Recent memories"})}),c.jsx(Ce,{children:c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Title"}),c.jsx(Be,{children:"Source"})]})}),c.jsx(aa,{children:t.recentMemories.map(i=>c.jsxs(ht,{children:[c.jsx(Oe,{children:i.title}),c.jsx(Oe,{children:i.source})]},i.id))})]})})]})]})]}):null}const $M={pending:"outline",indexing:"secondary",indexed:"default",error:"destructive",running:"secondary",completed:"default",failed:"destructive"};function ka({status:t,className:a}){return c.jsx(ft,{variant:$M[t]??"outline",className:a,children:t})}const XM=bn("/workspaces/")({loader:({context:t})=>t.queryClient.ensureQueryData(Lm),component:ZM,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function ZM(){const t=Er(),{page:a}=qi({from:"/workspaces/"}),{data:r,isLoading:i,error:o}=La(Lm);if(i)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})});if(o||r&&!r.ok){const p=r&&!r.ok?r:null;return c.jsxs("div",{className:"page",children:[c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{children:[c.jsx("h1",{children:"Workspaces"}),c.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]})}),c.jsx(Re,{className:"border-destructive",children:c.jsxs(Ce,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(Mm,{className:"h-12 w-12 text-destructive mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),c.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),p&&"error"in p&&c.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:p.error})]})})]})}const d=(r==null?void 0:r.data)??[],f=Math.max(1,Math.ceil(d.length/qt)),m=Math.min(a,f),{paged:g}=JR(d,m);return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Workspaces"}),c.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]}),c.jsx(vt,{to:"/workspaces/new",children:c.jsxs(mt,{children:[c.jsx(cm,{className:"h-4 w-4"}),"New Workspace"]})})]}),d.length===0?c.jsx(Re,{children:c.jsxs(Ce,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(om,{className:"h-12 w-12 text-muted-foreground mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"No workspaces yet"}),c.jsx("p",{className:"muted text-center mb-6 max-w-sm",children:"Create your first workspace to start indexing a codebase."}),c.jsx(vt,{to:"/workspaces/new",children:c.jsxs(mt,{children:[c.jsx(cm,{className:"h-4 w-4"}),"Create Workspace"]})})]})}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",g.length," of ",d.length," workspaces"]}),c.jsx("div",{className:"space-y-4",children:g.map(p=>c.jsx(vt,{to:"/workspaces/$workspaceId",params:{workspaceId:p.id},className:"block",onMouseEnter:()=>t.prefetchQuery(Ui(p.id)),children:c.jsx(Re,{className:"hover:bg-muted/50 transition-colors",children:c.jsx(Ce,{className:"p-4",children:c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h2",{className:"text-lg font-medium truncate",children:p.name}),c.jsx(ka,{status:p.status})]}),c.jsx("p",{className:"muted text-sm truncate mb-3",children:p.rootPath}),c.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx($0,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-muted-foreground",children:[p.documentCount??0," docs"]})]}),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Au,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-muted-foreground",children:[p.chunkCount??0," chunks"]})]}),(p.nodeCount??0)>0&&c.jsx("div",{className:"flex items-center gap-1.5",children:c.jsxs("span",{className:"text-muted-foreground",children:[p.nodeCount," nodes"]})})]})]}),c.jsxs("div",{className:"text-right text-sm",children:[c.jsxs("div",{className:"flex gap-2 mb-1",children:[c.jsx(ka,{status:p.indexingStatus}),c.jsx(ka,{status:p.graphStatus})]}),c.jsxs("p",{className:"muted text-xs",children:["Last indexed: ",ea(p.lastIndexedAt)]})]})]})})})},p.id))}),c.jsx(zm,{currentPage:m,totalPages:f,basePath:"/workspaces/"})]})]})}const KM=bn("/workspaces/new")({component:WM}),Gx=`src/**/*.{ts,tsx,js,jsx}
350
- app/**/*.{ts,tsx}
351
- pages/**/*.{ts,tsx}
352
- lib/**/*.{ts,tsx}
353
- **/*.md`,Ix=`node_modules/**
354
- **/node_modules/**
355
- .next/**
356
- dist/**
357
- build/**
358
- .git/**
359
- coverage/**
360
- **/.turbo/**`;function WM(){const t=Cm(),[a,r]=N.useState(!1),[i,o]=N.useState(null),[d,f]=N.useState(null),[m,g]=N.useState(null);async function p(y){if(!y.trim()){f(null),g(null);return}try{const x=await yn.validatePath(y);f(x.valid),g(x.valid?null:x.error??"Invalid path")}catch{f(!1),g("Validation failed")}}async function v(y){y.preventDefault(),r(!0),o(null);try{const x=new FormData(y.currentTarget),j=await yn.createWorkspace({name:x.get("name"),rootPath:x.get("rootPath"),includeGlobs:(x.get("includeGlobs")||Gx).split(`
361
- `).map(w=>w.trim()).filter(Boolean),excludeGlobs:(x.get("excludeGlobs")||Ix).split(`
362
- `).map(w=>w.trim()).filter(Boolean)});j.success&&j.workspace?t({to:"/workspaces/$workspaceId",params:{workspaceId:j.workspace.id}}):o(j.error??"Failed to create workspace")}catch(x){o(x instanceof Error?x.message:"Failed to create workspace")}finally{r(!1)}}return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[c.jsx(vt,{to:"/workspaces",search:{page:1},children:c.jsx(mt,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h1",{children:"New Workspace"}),c.jsx("p",{className:"muted",children:"Register a local codebase for indexing."})]})]}),c.jsx("form",{onSubmit:v,children:c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(om,{className:"h-5 w-5 text-muted-foreground"}),c.jsx(We,{children:"Workspace Configuration"})]})}),c.jsxs(Ce,{className:"space-y-8",children:[i&&c.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-md",children:i}),c.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx(dt,{htmlFor:"name",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(jR,{className:"h-3.5 w-3.5"}),"Workspace Name"]})}),c.jsx(Ts,{id:"name",name:"name",placeholder:"my-project",required:!0,pattern:"[a-zA-Z0-9_-]+",title:"Letters, numbers, hyphens, and underscores only"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Used as the workspace ID. Letters, numbers, hyphens, and underscores."})]}),c.jsxs("div",{children:[c.jsx(dt,{htmlFor:"rootPath",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(om,{className:"h-3.5 w-3.5"}),"Root Path"]})}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(Ts,{id:"rootPath",name:"rootPath",placeholder:"/path/to/project",required:!0,onBlur:y=>p(y.target.value),className:"pr-10"}),d===!0&&c.jsx(uo,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-primary"}),d===!1&&c.jsx(Jb,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-destructive"})]}),c.jsx(mt,{type:"button",variant:"secondary",className:"shrink-0",onClick:()=>{const y=document.getElementById("rootPath");y!=null&&y.value&&p(y.value)},children:"Validate"})]}),m&&c.jsx("p",{className:"mt-2 text-xs text-destructive",children:m}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Absolute path to the project root directory."})]})]}),c.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx(dt,{htmlFor:"includeGlobs",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(hR,{className:"h-3.5 w-3.5"}),"Include Patterns"]})}),c.jsx(mu,{id:"includeGlobs",name:"includeGlobs",defaultValue:Gx,rows:6,className:"font-mono text-sm"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to index. One per line."})]}),c.jsxs("div",{children:[c.jsxs(dt,{htmlFor:"excludeGlobs",className:"mb-2 block",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(Jb,{className:"h-3.5 w-3.5"}),"Exclude Patterns"]}),c.jsx(ft,{variant:"outline",className:"ml-2 text-xs px-1 py-0",children:"optional"})]}),c.jsx(mu,{id:"excludeGlobs",name:"excludeGlobs",defaultValue:Ix,rows:6,className:"font-mono text-sm"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to exclude. One per line."})]})]}),c.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-2",children:[c.jsx(vt,{to:"/workspaces",search:{page:1},className:"sm:order-1",children:c.jsx(mt,{type:"button",variant:"secondary",className:"w-full sm:w-auto",children:"Cancel"})}),c.jsxs(mt,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&c.jsx(to,{className:"h-4 w-4 animate-spin"}),"Create Workspace"]})]})]})]})})]})}const JM=bn("/workspaces/$workspaceId")({component:e3});function e3(){return c.jsx(Cu,{})}const t3=bn("/workspaces/$workspaceId/")({loader:async({context:t,params:a})=>{await t.queryClient.ensureQueryData(Ui(a.workspaceId)),t.queryClient.prefetchQuery(Tu(a.workspaceId))},component:n3});function Qx({status:t}){return t==="running"?c.jsx(to,{className:"h-4 w-4 animate-spin text-muted-foreground"}):t==="completed"?c.jsx(uo,{className:"h-4 w-4 text-primary"}):t==="failed"?c.jsx(V0,{className:"h-4 w-4 text-destructive"}):c.jsx(oR,{className:"h-4 w-4 text-muted-foreground"})}function Vx(t,a){if(!a)return"Running...";const r=new Date(a).getTime()-new Date(t).getTime();return r<1e3?"<1s":r<6e4?`${Math.round(r/1e3)}s`:`${Math.round(r/6e4)}m ${Math.round(r%6e4/1e3)}s`}function n3(){const{workspaceId:t}=Nu({from:"/workspaces/$workspaceId"}),a=Er(),{data:r,isLoading:i}=La(Ui(t)),o=()=>{a.prefetchQuery(Ui(t))},d=()=>{a.prefetchQuery(Tu(t))};if(i)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})});if(!r||!r.ok)return c.jsx("div",{className:"page",children:c.jsx(Re,{className:"border-destructive",children:c.jsxs(Ce,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(Mm,{className:"h-12 w-12 text-destructive mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),c.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),c.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:r&&"error"in r?r.error:"Unknown error"})]})})});const f=r.data;if(!f)return c.jsx("div",{className:"page",children:c.jsx(Re,{children:c.jsxs(Ce,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"}),c.jsx("p",{className:"muted",children:"Workspace not found."}),c.jsx(vt,{to:"/workspaces",search:{page:1},children:c.jsx(mt,{variant:"secondary",className:"mt-4",children:"Back to workspaces"})})]})})});const m=f.nodeCount>0||f.edgeCount>0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[c.jsx(vt,{to:"/workspaces",search:{page:1},children:c.jsx(mt,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("h1",{children:f.name}),c.jsx(ka,{status:f.status})]}),c.jsx("p",{className:"muted text-sm",children:f.rootPath})]})]}),c.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[c.jsx(Re,{children:c.jsx(Ce,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(_u,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:f.documentCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Documents"})]})]})})}),c.jsx(Re,{children:c.jsx(Ce,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx($0,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:f.chunkCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Chunks"})]})]})})}),c.jsx(Re,{children:c.jsx(Ce,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(SR,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:f.nodeCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Nodes"})]})]})})}),c.jsx(Re,{children:c.jsx(Ce,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(dR,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:f.edgeCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Edges"})]})]})})})]}),c.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[c.jsx(vt,{to:"/query",search:{workspaceId:t},onMouseEnter:o,children:c.jsxs(mt,{variant:"outline",children:[c.jsx(kR,{className:"h-4 w-4"})," Try Query"]})}),m&&c.jsx(vt,{to:"/workspaces/$workspaceId/graph",params:{workspaceId:t},onMouseEnter:d,children:c.jsx(mt,{variant:"secondary",children:"Open Graph Explorer"})})]}),c.jsxs(Re,{className:"mb-6",children:[c.jsx(Ke,{className:"pb-3",children:c.jsx(We,{className:"text-base",children:"Indexing Control"})}),c.jsxs(Ce,{className:"space-y-3",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"The default local workflow uses the CLI to index a workspace."}),c.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 font-mono text-sm",children:[c.jsxs("div",{children:["openez index ",f.rootPath]}),c.jsxs("div",{children:["openez status ",f.rootPath]})]})]})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2 mb-6",children:[c.jsxs(Re,{children:[c.jsx(Ke,{className:"pb-3",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(We,{className:"text-base",children:"Indexing"}),c.jsx(ka,{status:f.indexingStatus})]})}),c.jsx(Ce,{children:f.latestIndexRun?c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Qx,{status:f.latestIndexRun.status}),c.jsxs("span",{className:"text-sm",children:[f.latestIndexRun.mode," —"," ",f.latestIndexRun.status]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Files scanned:"})," ",c.jsx("span",{className:"font-medium",children:f.latestIndexRun.filesScanned})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Files updated:"})," ",c.jsx("span",{className:"font-medium",children:f.latestIndexRun.filesUpdated})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Chunks written:"})," ",c.jsx("span",{className:"font-medium",children:f.latestIndexRun.chunksWritten??0})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Embeddings:"})," ",c.jsx("span",{className:"font-medium",children:f.latestIndexRun.embeddingsWritten??0})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",ea(f.latestIndexRun.startedAt),f.latestIndexRun.finishedAt&&c.jsxs(c.Fragment,{children:[" ","· Duration:"," ",Vx(f.latestIndexRun.startedAt,f.latestIndexRun.finishedAt)]})]}),f.latestIndexRun.errorMessage&&c.jsx("p",{className:"text-xs text-destructive",children:f.latestIndexRun.errorMessage})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"No indexing runs yet."})})]}),c.jsxs(Re,{children:[c.jsx(Ke,{className:"pb-3",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(We,{className:"text-base",children:"Graph"}),c.jsx(ka,{status:f.graphStatus})]})}),c.jsx(Ce,{children:f.latestGraphRun?c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Qx,{status:f.latestGraphRun.status}),c.jsxs("span",{className:"text-sm",children:[f.latestGraphRun.mode," —"," ",f.latestGraphRun.status]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Nodes:"})," ",c.jsx("span",{className:"font-medium",children:f.latestGraphRun.nodesCreated??0})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Edges:"})," ",c.jsx("span",{className:"font-medium",children:f.latestGraphRun.edgesCreated??0})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",ea(f.latestGraphRun.startedAt),f.latestGraphRun.finishedAt&&c.jsxs(c.Fragment,{children:[" ","· Duration:"," ",Vx(f.latestGraphRun.startedAt,f.latestGraphRun.finishedAt)]})]}),f.latestGraphRun.errorMessage&&c.jsx("p",{className:"text-xs text-destructive",children:f.latestGraphRun.errorMessage})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:f.indexingStatus==="completed"?"Graph data is derived during indexing.":"Index workspace first to populate graph data."})})]})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{className:"text-base",children:"Recent Index Runs"})}),c.jsx(Ce,{children:f.recentIndexRuns.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs yet."}):c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Mode"}),c.jsx(Be,{children:"Status"}),c.jsx(Be,{children:"Files"}),c.jsx(Be,{children:"Started"})]})}),c.jsx(aa,{children:f.recentIndexRuns.map(g=>c.jsxs(ht,{children:[c.jsx(Oe,{children:g.mode}),c.jsx(Oe,{children:c.jsx(ka,{status:g.status})}),c.jsxs(Oe,{children:[g.filesUpdated,"/",g.filesScanned]}),c.jsx(Oe,{className:"text-muted-foreground",children:ea(g.startedAt)})]},g.id))})]})})]}),c.jsxs(Re,{children:[c.jsx(Ke,{children:c.jsx(We,{className:"text-base",children:"Recent Graph Runs"})}),c.jsx(Ce,{children:f.recentGraphRuns.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph runs yet."}):c.jsxs(ta,{children:[c.jsx(na,{children:c.jsxs(ht,{children:[c.jsx(Be,{children:"Mode"}),c.jsx(Be,{children:"Status"}),c.jsx(Be,{children:"Nodes"}),c.jsx(Be,{children:"Started"})]})}),c.jsx(aa,{children:f.recentGraphRuns.map(g=>c.jsxs(ht,{children:[c.jsx(Oe,{children:g.mode}),c.jsx(Oe,{children:c.jsx(ka,{status:g.status})}),c.jsx(Oe,{children:g.nodesCreated}),c.jsx(Oe,{className:"text-muted-foreground",children:ea(g.startedAt)})]},g.id))})]})})]})]}),f.lastError&&c.jsx(Re,{className:"mt-4 border-destructive",children:c.jsx(Ce,{className:"p-4",children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(V0,{className:"h-4 w-4 text-destructive mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-destructive",children:"Last Error"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:f.lastError})]})]})})})]})}const a3="modulepreload",s3=function(t){return"/"+t},Yx={},r3=function(a,r,i){let o=Promise.resolve();if(r&&r.length>0){let f=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};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=f(r.map(p=>{if(p=s3(p),p in Yx)return;Yx[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":a3,v||(x.as="script"),x.crossOrigin="",x.href=p,g&&x.setAttribute("nonce",g),document.head.appendChild(x),v)return new Promise((j,w)=>{x.addEventListener("load",j),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(f){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=f,window.dispatchEvent(m),!m.defaultPrevented)throw f}return o.then(f=>{for(const m of f||[])m.status==="rejected"&&d(m.reason);return a().catch(d)})};function i3({nodeTypes:t,edgeTypes:a}){return c.jsxs("div",{className:"flex flex-wrap gap-4 text-xs",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"font-medium text-muted-foreground",children:"Nodes"}),t.map(r=>c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-3 w-3 rounded-full",style:{backgroundColor:kM(r)}}),c.jsx("span",{className:"text-muted-foreground",children:r})]},r))]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"font-medium text-muted-foreground",children:"Edges"}),a.slice(0,6).map(r=>c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-0.5 w-3 rounded-full",style:{backgroundColor:OM(r)}}),c.jsx("span",{className:"text-muted-foreground",children:r})]},r))]})]})}const l3=N.lazy(()=>r3(()=>import("./WorkspaceGraph-CCcuZFwT.js"),[]).then(t=>({default:t.WorkspaceGraph})));function o3({graphData:t}){const[a,r]=N.useState(!1),[i,o]=N.useState(null),[d,f]=N.useState(""),[m,g]=N.useState(()=>new Set(t.nodeTypes)),[p,v]=N.useState(()=>new Set(t.edgeTypes)),[y,x]=N.useState(null),[j,w]=N.useState(null);N.useEffect(()=>{r(!0)},[]);const S=N.useMemo(()=>{const z=new Map;for(const H of t.nodes)z.set(H.id,H);return z},[t.nodes]),E=N.useMemo(()=>{const z=new Map;for(const H of t.edges){const X=z.get(H.target);X?X.push(H):z.set(H.target,[H])}return z},[t.edges]),_=N.useMemo(()=>{const z=new Map;for(const H of t.edges){const X=z.get(H.source);X?X.push(H):z.set(H.source,[H])}return z},[t.edges]),C=N.useMemo(()=>{if(!i)return null;const z=E.get(i)??[],H=_.get(i)??[];return{incoming:z,outgoing:H}},[i,E,_]),T=N.useMemo(()=>t.nodes.filter(z=>!(d&&!z.label.toLowerCase().includes(d.toLowerCase())||m.size>0&&!m.has(z.type))),[t.nodes,d,m]),A=N.useMemo(()=>{const z=new Set(T.map(H=>H.id));return t.edges.filter(H=>!(!z.has(H.source)||!z.has(H.target)||p.size>0&&!p.has(H.type)))},[t.edges,T,p]),B=N.useCallback(z=>{if(!z){o(null),w(null);return}o(z),w(S.get(z)??null)},[S]),q=N.useCallback(z=>{x(z)},[]),k=z=>{const H=new Set(m);H.has(z)?H.delete(z):H.add(z),g(H)},D=z=>{const H=new Set(p);H.has(z)?H.delete(z):H.add(z),v(H)};return a?c.jsxs("div",{className:"relative flex-1 min-h-0 overflow-hidden bg-[#171717]",children:[c.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:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(dt,{htmlFor:"search",className:"text-xs",children:"Search"}),c.jsxs("div",{className:"relative",children:[c.jsx(Au,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),c.jsx(Ts,{id:"search",placeholder:"Node label...",value:d,onChange:z=>f(z.target.value),className:"pl-8 h-8 text-sm"}),d&&c.jsx("button",{type:"button",onClick:()=>f(""),"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Bi,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(dt,{className:"text-xs",children:"Node Types"}),c.jsx("div",{className:"flex flex-wrap gap-1",children:t.nodeTypes.map(z=>c.jsx("button",{type:"button",onClick:()=>k(z),"aria-pressed":m.has(z),className:`px-2 py-0.5 text-xs rounded border transition-colors ${m.has(z)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:z},z))})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(dt,{className:"text-xs",children:"Edge Types"}),c.jsx("div",{className:"flex flex-wrap gap-1",children:t.edgeTypes.map(z=>c.jsx("button",{type:"button",onClick:()=>D(z),"aria-pressed":p.has(z),className:`px-2 py-0.5 text-xs rounded border transition-colors ${p.has(z)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:z},z))})]}),c.jsxs("div",{className:"pt-2 border-t",children:[c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",T.length.toLocaleString()," of ",t.totalNodes.toLocaleString()," nodes"]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:[A.length.toLocaleString()," of ",t.totalEdges.toLocaleString()," edges"]}),t.totalNodes>t.nodes.length&&c.jsxs("p",{className:"text-xs text-amber-500/80 mt-1",children:[t.nodes.length.toLocaleString()," nodes loaded (limit)"]})]}),c.jsx("div",{className:"pt-2 border-t",children:c.jsx(i3,{nodeTypes:t.nodeTypes,edgeTypes:t.edgeTypes})})]})}),c.jsxs("div",{className:"absolute inset-0",children:[c.jsx(N.Suspense,{fallback:c.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#171717]",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(to,{className:"h-4 w-4 animate-spin"}),c.jsx("span",{children:"Loading graph renderer..."})]})}),children:c.jsx(l3,{nodes:T,edges:A,selectedNodeId:i,onNodeClick:B,onNodeHover:q,className:"absolute inset-0"})}),y&&!i&&(()=>{const z=S.get(y);return z?c.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:[c.jsx("p",{className:"text-sm font-medium",children:z.label}),c.jsx("p",{className:"text-xs text-muted-foreground",children:z.type})]}):null})()]}),j&&c.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:[c.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[c.jsx("h3",{className:"font-medium text-sm",children:"Inspector"}),c.jsx("button",{type:"button","aria-label":"Close inspector",onClick:()=>{o(null),w(null)},className:"text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"p-4 space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{children:[c.jsx(dt,{className:"text-xs text-muted-foreground",children:"Label"}),c.jsx("p",{className:"text-sm font-mono break-all",children:j.label})]}),c.jsxs("div",{children:[c.jsx(dt,{className:"text-xs text-muted-foreground",children:"Type"}),c.jsx("p",{className:"text-sm",children:c.jsx(ft,{variant:"outline",children:j.type})})]}),c.jsxs("div",{children:[c.jsx(dt,{className:"text-xs text-muted-foreground",children:"Degree"}),c.jsxs("p",{className:"text-sm",children:[j.degree," connections"]})]}),j.path&&c.jsxs("div",{children:[c.jsx(dt,{className:"text-xs text-muted-foreground",children:"Path"}),c.jsx("p",{className:"text-sm font-mono text-xs break-all",children:j.path})]}),(j.startLine||j.endLine)&&c.jsxs("div",{children:[c.jsx(dt,{className:"text-xs text-muted-foreground",children:"Lines"}),c.jsxs("p",{className:"text-sm font-mono",children:[j.startLine??"?","-",j.endLine??"?"]})]})]}),C&&c.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[c.jsxs(dt,{className:"text-xs text-muted-foreground",children:["Connections (",C.incoming.length+C.outgoing.length,")"]}),C.incoming.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Incoming"}),C.incoming.slice(0,5).map(z=>{const H=S.get(z.source);return c.jsxs("button",{type:"button",onClick:()=>B(z.source),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[c.jsxs("span",{className:"text-muted-foreground",children:[z.type,":"]})," ",c.jsx("span",{className:"font-mono truncate",children:(H==null?void 0:H.label)??z.source})]},z.id)})]}),C.outgoing.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Outgoing"}),C.outgoing.slice(0,5).map(z=>{const H=S.get(z.target);return c.jsxs("button",{type:"button",onClick:()=>B(z.target),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[c.jsxs("span",{className:"text-muted-foreground",children:[z.type,":"]})," ",c.jsx("span",{className:"font-mono truncate",children:(H==null?void 0:H.label)??z.target})]},z.id)})]})]}),Object.keys(j.metadata??{}).length>0&&c.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[c.jsx(dt,{className:"text-xs text-muted-foreground",children:"Metadata"}),c.jsx("pre",{className:"text-xs bg-muted rounded p-2 overflow-auto max-h-40",children:JSON.stringify(j.metadata,null,2)})]})]})]})]}):c.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(to,{className:"h-4 w-4 animate-spin"}),c.jsx("span",{children:"Loading graph interface..."})]})})}const c3=bn("/workspaces/$workspaceId/graph")({loader:async({context:t,params:a})=>{await Promise.all([t.queryClient.ensureQueryData(Ui(a.workspaceId)),t.queryClient.ensureQueryData(Tu(a.workspaceId))])},component:u3});function u3(){const{workspaceId:t}=Nu({from:"/workspaces/$workspaceId/graph"}),{data:a}=La(Ui(t)),{data:r}=La(Tu(t));if(!(a!=null&&a.ok))return c.jsx("div",{className:"page",children:c.jsx(Re,{className:"border-destructive",children:c.jsx(Ce,{className:"flex flex-col items-center justify-center py-16",children:c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"})})})});const i=a.data;if(!i)return c.jsx("div",{className:"page",children:c.jsx(Re,{children:c.jsx(Ce,{className:"flex flex-col items-center justify-center py-16",children:c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"})})})});const o=!!r&&r.nodes.length>0;return c.jsxs("div",{className:"-m-6 flex h-svh flex-col overflow-hidden bg-[#171717]",children:[c.jsx("div",{className:"z-20 border-b border-white/10 bg-[#202020]/95 backdrop-blur-xl",children:c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(vt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(mt,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h1",{className:"text-sm font-semibold",children:"Graph view"}),c.jsx(ft,{variant:"outline",children:i.name})]}),c.jsx("p",{className:"text-xs text-muted-foreground",children:r?c.jsxs(c.Fragment,{children:[r.totalNodes.toLocaleString()," nodes ·"," ",r.totalEdges.toLocaleString()," edges"]}):c.jsx(c.Fragment,{children:"No graph data"})})]})]}),c.jsx(ka,{status:i.graphStatus})]})}),o?r&&r.nodes.length>0?c.jsx(o3,{graphData:r}):null:c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs(Re,{className:"max-w-md",children:[c.jsx(Ke,{children:c.jsx(We,{children:"No Graph Data"})}),c.jsxs(Ce,{className:"space-y-4",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph data was found for this workspace."}),c.jsx(vt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(mt,{variant:"secondary",children:"Go to Workspace"})})]})]})})]})}const qu=fO.update({id:"/workspaces",path:"/workspaces",getParentRoute:()=>Pa}),d3=hO.update({id:"/settings",path:"/settings",getParentRoute:()=>Pa}),f3=AM.update({id:"/query",path:"/query",getParentRoute:()=>Pa}),h3=MM.update({id:"/memories",path:"/memories",getParentRoute:()=>Pa}),m3=BM.update({id:"/documents",path:"/documents",getParentRoute:()=>Pa}),p3=PM.update({id:"/changelog",path:"/changelog",getParentRoute:()=>Pa}),g3=qM.update({id:"/benchmark",path:"/benchmark",getParentRoute:()=>Pa}),y3=VM.update({id:"/",path:"/",getParentRoute:()=>Pa}),v3=XM.update({id:"/",path:"/",getParentRoute:()=>qu}),b3=KM.update({id:"/new",path:"/new",getParentRoute:()=>qu}),rp=JM.update({id:"/$workspaceId",path:"/$workspaceId",getParentRoute:()=>qu}),x3=t3.update({id:"/",path:"/",getParentRoute:()=>rp}),S3=c3.update({id:"/graph",path:"/graph",getParentRoute:()=>rp}),w3={WorkspacesWorkspaceIdGraphRoute:S3,WorkspacesWorkspaceIdIndexRoute:x3},j3=rp._addFileChildren(w3),E3={WorkspacesWorkspaceIdRoute:j3,WorkspacesNewRoute:b3,WorkspacesIndexRoute:v3},N3=qu._addFileChildren(E3),R3={IndexRoute:y3,BenchmarkRoute:g3,ChangelogRoute:p3,DocumentsRoute:m3,MemoriesRoute:h3,QueryRoute:f3,SettingsRoute:d3,WorkspacesRoute:N3},C3=Pa._addFileChildren(R3)._addFileTypes(),zS=new MN({defaultOptions:{queries:{staleTime:1e3*60*60,refetchOnMount:!1,refetchOnWindowFocus:!1}}}),_3=sN({routeTree:C3,context:{queryClient:zS}}),$x=document.getElementById("root");$x.innerHTML||fE.createRoot($x).render(c.jsx(br.StrictMode,{children:c.jsx(DN,{client:zS,children:c.jsx(lN,{router:_3})})}));export{kM as a,OM as g,c as j,N as r};