LightRAG/lightrag/api/webui/assets/index-DYCpH32b.js
2025-07-14 17:19:28 +08:00

151 lines
262 KiB
JavaScript
Generated
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{j as o,Z as hd,O as Ag,k as Dg,u as gd,$ as Ng,c as Mg,l as Eg,h as zg,b as Og,T as Cg,n as Rg,m as pd,o as jg,p as _g,a0 as yd,a1 as vd,a2 as bd,a3 as Ug}from"./ui-vendor-DaJTMqwy.js";import{f as Bg,h as qg,r as E,u as Sd,H as Lg,i as Hg,j as ud}from"./react-vendor-CgPb4pW_.js";import{z as Ve,c as we,ac as Td,u as Ul,y as Ot,ad as xd,ae as Ad,I as cs,B as xn,D as Gg,i as Yg,j as Kg,k as Xg,l as Qg,af as Vg,ag as wg,ah as Zg,ai as kg,aj as _l,ak as Dd,al as rs,am as ss,W as Jg,Y as Fg,Z as Pg,_ as $g,an as Wg,ao as Ig,ap as Nd,aq as ep,ar as lp,as as Md,at as tp,au as Ed,C as ap,J as np,K as up,d as bn,av as ip,aw as cp,ax as sp}from"./feature-graph-D68hhnYC.js";import{S as id,a as cd,b as sd,c as od,d as ot,R as op}from"./feature-retrieval-D7g3nMgj.js";import{D as rp}from"./feature-documents-C5UJveNV.js";import{i as os}from"./utils-vendor-elCzPYZl.js";import"./graph-vendor-BC3frDkq.js";import"./mermaid-vendor-DOoA-Fcm.js";import"./markdown-vendor-7kCcHxQn.js";(function(){const v=document.createElement("link").relList;if(v&&v.supports&&v.supports("modulepreload"))return;for(const M of document.querySelectorAll('link[rel="modulepreload"]'))f(M);new MutationObserver(M=>{for(const O of M)if(O.type==="childList")for(const q of O.addedNodes)q.tagName==="LINK"&&q.rel==="modulepreload"&&f(q)}).observe(document,{childList:!0,subtree:!0});function A(M){const O={};return M.integrity&&(O.integrity=M.integrity),M.referrerPolicy&&(O.referrerPolicy=M.referrerPolicy),M.crossOrigin==="use-credentials"?O.credentials="include":M.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function f(M){if(M.ep)return;M.ep=!0;const O=A(M);fetch(M.href,O)}})();var ns={exports:{}},Sn={},us={exports:{}},is={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rd;function fp(){return rd||(rd=1,function(h){function v(T,D){var U=T.length;T.push(D);e:for(;0<U;){var te=U-1>>>1,ae=T[te];if(0<M(ae,D))T[te]=D,T[U]=ae,U=te;else break e}}function A(T){return T.length===0?null:T[0]}function f(T){if(T.length===0)return null;var D=T[0],U=T.pop();if(U!==D){T[0]=U;e:for(var te=0,ae=T.length,Ee=ae>>>1;te<Ee;){var ie=2*(te+1)-1,J=T[ie],ye=ie+1,ol=T[ye];if(0>M(J,U))ye<ae&&0>M(ol,J)?(T[te]=ol,T[ye]=U,te=ye):(T[te]=J,T[ie]=U,te=ie);else if(ye<ae&&0>M(ol,U))T[te]=ol,T[ye]=U,te=ye;else break e}}return D}function M(T,D){var U=T.sortIndex-D.sortIndex;return U!==0?U:T.id-D.id}if(h.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;h.unstable_now=function(){return O.now()}}else{var q=Date,ne=q.now();h.unstable_now=function(){return q.now()-ne}}var w=[],W=[],B=1,he=null,K=3,Oe=!1,ee=!1,C=!1,cl=!1,ba=typeof setTimeout=="function"?setTimeout:null,ql=typeof clearTimeout=="function"?clearTimeout:null,Ze=typeof setImmediate<"u"?setImmediate:null;function Ll(T){for(var D=A(W);D!==null;){if(D.callback===null)f(W);else if(D.startTime<=T)f(W),D.sortIndex=D.expirationTime,v(w,D);else break;D=A(W)}}function rt(T){if(C=!1,Ll(T),!ee)if(A(w)!==null)ee=!0,sl||(sl=!0,ke());else{var D=A(W);D!==null&&yl(rt,D.startTime-T)}}var sl=!1,pl=-1,al=5,Ct=-1;function An(){return cl?!0:!(h.unstable_now()-Ct<al)}function Rt(){if(cl=!1,sl){var T=h.unstable_now();Ct=T;var D=!0;try{e:{ee=!1,C&&(C=!1,ql(pl),pl=-1),Oe=!0;var U=K;try{l:{for(Ll(T),he=A(w);he!==null&&!(he.expirationTime>T&&An());){var te=he.callback;if(typeof te=="function"){he.callback=null,K=he.priorityLevel;var ae=te(he.expirationTime<=T);if(T=h.unstable_now(),typeof ae=="function"){he.callback=ae,Ll(T),D=!0;break l}he===A(w)&&f(w),Ll(T)}else f(w);he=A(w)}if(he!==null)D=!0;else{var Ee=A(W);Ee!==null&&yl(rt,Ee.startTime-T),D=!1}}break e}finally{he=null,K=U,Oe=!1}D=void 0}}finally{D?ke():sl=!1}}}var ke;if(typeof Ze=="function")ke=function(){Ze(Rt)};else if(typeof MessageChannel<"u"){var Dn=new MessageChannel,Sa=Dn.port2;Dn.port1.onmessage=Rt,ke=function(){Sa.postMessage(null)}}else ke=function(){ba(Rt,0)};function yl(T,D){pl=ba(function(){T(h.unstable_now())},D)}h.unstable_IdlePriority=5,h.unstable_ImmediatePriority=1,h.unstable_LowPriority=4,h.unstable_NormalPriority=3,h.unstable_Profiling=null,h.unstable_UserBlockingPriority=2,h.unstable_cancelCallback=function(T){T.callback=null},h.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):al=0<T?Math.floor(1e3/T):5},h.unstable_getCurrentPriorityLevel=function(){return K},h.unstable_next=function(T){switch(K){case 1:case 2:case 3:var D=3;break;default:D=K}var U=K;K=D;try{return T()}finally{K=U}},h.unstable_requestPaint=function(){cl=!0},h.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var U=K;K=T;try{return D()}finally{K=U}},h.unstable_scheduleCallback=function(T,D,U){var te=h.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?te+U:te):U=te,T){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=U+ae,T={id:B++,callback:D,priorityLevel:T,startTime:U,expirationTime:ae,sortIndex:-1},U>te?(T.sortIndex=U,v(W,T),A(w)===null&&T===A(W)&&(C?(ql(pl),pl=-1):C=!0,yl(rt,U-te))):(T.sortIndex=ae,v(w,T),ee||Oe||(ee=!0,sl||(sl=!0,ke()))),T},h.unstable_shouldYield=An,h.unstable_wrapCallback=function(T){var D=K;return function(){var U=K;K=D;try{return T.apply(this,arguments)}finally{K=U}}}}(is)),is}var fd;function dp(){return fd||(fd=1,us.exports=fp()),us.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var dd;function mp(){if(dd)return Sn;dd=1;var h=dp(),v=Bg(),A=qg();function f(e){var l="https://react.dev/errors/"+e;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)l+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function M(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function O(e){var l=e,t=e;if(e.alternate)for(;l.return;)l=l.return;else{e=l;do l=e,(l.flags&4098)!==0&&(t=l.return),e=l.return;while(e)}return l.tag===3?t:null}function q(e){if(e.tag===13){var l=e.memoizedState;if(l===null&&(e=e.alternate,e!==null&&(l=e.memoizedState)),l!==null)return l.dehydrated}return null}function ne(e){if(O(e)!==e)throw Error(f(188))}function w(e){var l=e.alternate;if(!l){if(l=O(e),l===null)throw Error(f(188));return l!==e?null:e}for(var t=e,a=l;;){var n=t.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){t=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===t)return ne(n),e;if(u===a)return ne(n),l;u=u.sibling}throw Error(f(188))}if(t.return!==a.return)t=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===t){i=!0,t=n,a=u;break}if(c===a){i=!0,a=n,t=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===t){i=!0,t=u,a=n;break}if(c===a){i=!0,a=u,t=n;break}c=c.sibling}if(!i)throw Error(f(189))}}if(t.alternate!==a)throw Error(f(190))}if(t.tag!==3)throw Error(f(188));return t.stateNode.current===t?e:l}function W(e){var l=e.tag;if(l===5||l===26||l===27||l===6)return e;for(e=e.child;e!==null;){if(l=W(e),l!==null)return l;e=e.sibling}return null}var B=Object.assign,he=Symbol.for("react.element"),K=Symbol.for("react.transitional.element"),Oe=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),cl=Symbol.for("react.profiler"),ba=Symbol.for("react.provider"),ql=Symbol.for("react.consumer"),Ze=Symbol.for("react.context"),Ll=Symbol.for("react.forward_ref"),rt=Symbol.for("react.suspense"),sl=Symbol.for("react.suspense_list"),pl=Symbol.for("react.memo"),al=Symbol.for("react.lazy"),Ct=Symbol.for("react.activity"),An=Symbol.for("react.memo_cache_sentinel"),Rt=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=Rt&&e[Rt]||e["@@iterator"],typeof e=="function"?e:null)}var Dn=Symbol.for("react.client.reference");function Sa(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Dn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ee:return"Fragment";case cl:return"Profiler";case C:return"StrictMode";case rt:return"Suspense";case sl:return"SuspenseList";case Ct:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Oe:return"Portal";case Ze:return(e.displayName||"Context")+".Provider";case ql:return(e._context.displayName||"Context")+".Consumer";case Ll:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pl:return l=e.displayName||null,l!==null?l:Sa(e.type)||"Memo";case al:l=e._payload,e=e._init;try{return Sa(e(l))}catch{}}return null}var yl=Array.isArray,T=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},te=[],ae=-1;function Ee(e){return{current:e}}function ie(e){0>ae||(e.current=te[ae],te[ae]=null,ae--)}function J(e,l){ae++,te[ae]=e.current,e.current=l}var ye=Ee(null),ol=Ee(null),Hl=Ee(null),Nn=Ee(null);function Mn(e,l){switch(J(Hl,l),J(ol,e),J(ye,null),l.nodeType){case 9:case 11:e=(e=l.documentElement)&&(e=e.namespaceURI)?_f(e):0;break;default:if(e=l.tagName,l=l.namespaceURI)l=_f(l),e=Uf(l,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(ye),J(ye,e)}function jt(){ie(ye),ie(ol),ie(Hl)}function Qu(e){e.memoizedState!==null&&J(Nn,e);var l=ye.current,t=Uf(l,e.type);l!==t&&(J(ol,e),J(ye,t))}function En(e){ol.current===e&&(ie(ye),ie(ol)),Nn.current===e&&(ie(Nn),hn._currentValue=U)}var Vu=Object.prototype.hasOwnProperty,wu=h.unstable_scheduleCallback,Zu=h.unstable_cancelCallback,lm=h.unstable_shouldYield,tm=h.unstable_requestPaint,rl=h.unstable_now,am=h.unstable_getCurrentPriorityLevel,fs=h.unstable_ImmediatePriority,ds=h.unstable_UserBlockingPriority,zn=h.unstable_NormalPriority,nm=h.unstable_LowPriority,ms=h.unstable_IdlePriority,um=h.log,im=h.unstable_setDisableYieldValue,Ta=null,Be=null;function Gl(e){if(typeof um=="function"&&im(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Ta,e)}catch{}}var qe=Math.clz32?Math.clz32:om,cm=Math.log,sm=Math.LN2;function om(e){return e>>>=0,e===0?32:31-(cm(e)/sm|0)|0}var On=256,Cn=4194304;function ft(e){var l=e&42;if(l!==0)return l;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rn(e,l,t){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=ft(a):(i&=c,i!==0?n=ft(i):t||(t=c&~e,t!==0&&(n=ft(t))))):(c=a&~u,c!==0?n=ft(c):i!==0?n=ft(i):t||(t=a&~e,t!==0&&(n=ft(t)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,t=l&-l,u>=t||u===32&&(t&4194048)!==0)?l:n}function xa(e,l){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&l)===0}function rm(e,l){switch(e){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 hs(){var e=On;return On<<=1,(On&4194048)===0&&(On=256),e}function gs(){var e=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),e}function ku(e){for(var l=[],t=0;31>t;t++)l.push(e);return l}function Aa(e,l){e.pendingLanes|=l,l!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fm(e,l,t,a,n,u){var i=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var c=e.entanglements,s=e.expirationTimes,g=e.hiddenUpdates;for(t=i&~t;0<t;){var b=31-qe(t),x=1<<b;c[b]=0,s[b]=-1;var p=g[b];if(p!==null)for(g[b]=null,b=0;b<p.length;b++){var y=p[b];y!==null&&(y.lane&=-536870913)}t&=~x}a!==0&&ps(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~l))}function ps(e,l,t){e.pendingLanes|=l,e.suspendedLanes&=~l;var a=31-qe(l);e.entangledLanes|=l,e.entanglements[a]=e.entanglements[a]|1073741824|t&4194090}function ys(e,l){var t=e.entangledLanes|=l;for(e=e.entanglements;t;){var a=31-qe(t),n=1<<a;n&l|e[a]&l&&(e[a]|=l),t&=~n}}function Ju(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 Fu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vs(){var e=D.p;return e!==0?e:(e=window.event,e===void 0?32:If(e.type))}function dm(e,l){var t=D.p;try{return D.p=e,l()}finally{D.p=t}}var Yl=Math.random().toString(36).slice(2),Ne="__reactFiber$"+Yl,Ce="__reactProps$"+Yl,_t="__reactContainer$"+Yl,Pu="__reactEvents$"+Yl,mm="__reactListeners$"+Yl,hm="__reactHandles$"+Yl,bs="__reactResources$"+Yl,Da="__reactMarker$"+Yl;function $u(e){delete e[Ne],delete e[Ce],delete e[Pu],delete e[mm],delete e[hm]}function Ut(e){var l=e[Ne];if(l)return l;for(var t=e.parentNode;t;){if(l=t[_t]||t[Ne]){if(t=l.alternate,l.child!==null||t!==null&&t.child!==null)for(e=Hf(e);e!==null;){if(t=e[Ne])return t;e=Hf(e)}return l}e=t,t=e.parentNode}return null}function Bt(e){if(e=e[Ne]||e[_t]){var l=e.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return e}return null}function Na(e){var l=e.tag;if(l===5||l===26||l===27||l===6)return e.stateNode;throw Error(f(33))}function qt(e){var l=e[bs];return l||(l=e[bs]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ve(e){e[Da]=!0}var Ss=new Set,Ts={};function dt(e,l){Lt(e,l),Lt(e+"Capture",l)}function Lt(e,l){for(Ts[e]=l,e=0;e<l.length;e++)Ss.add(l[e])}var gm=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]*$"),xs={},As={};function pm(e){return Vu.call(As,e)?!0:Vu.call(xs,e)?!1:gm.test(e)?As[e]=!0:(xs[e]=!0,!1)}function jn(e,l,t){if(pm(l))if(t===null)e.removeAttribute(l);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(l);return}}e.setAttribute(l,""+t)}}function _n(e,l,t){if(t===null)e.removeAttribute(l);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttribute(l,""+t)}}function vl(e,l,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttributeNS(l,t,""+a)}}var Wu,Ds;function Ht(e){if(Wu===void 0)try{throw Error()}catch(t){var l=t.stack.trim().match(/\n( *(at )?)/);Wu=l&&l[1]||"",Ds=-1<t.stack.indexOf(`
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Wu+e+Ds}var Iu=!1;function ei(e,l){if(!e||Iu)return"";Iu=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(y){var p=y}Reflect.construct(e,[],x)}else{try{x.call()}catch(y){p=y}e.call(x.prototype)}}else{try{throw Error()}catch(y){p=y}(x=e())&&typeof x.catch=="function"&&x.catch(function(){})}}catch(y){if(y&&p&&typeof y.stack=="string")return[y.stack,p.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var s=i.split(`
`),g=c.split(`
`);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===g.length)for(a=s.length-1,n=g.length-1;1<=a&&0<=n&&s[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==g[n]){var b=`
`+s[a].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),b}while(1<=a&&0<=n);break}}}finally{Iu=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?Ht(t):""}function ym(e){switch(e.tag){case 26:case 27:case 5:return Ht(e.type);case 16:return Ht("Lazy");case 13:return Ht("Suspense");case 19:return Ht("SuspenseList");case 0:case 15:return ei(e.type,!1);case 11:return ei(e.type.render,!1);case 1:return ei(e.type,!0);case 31:return Ht("Activity");default:return""}}function Ns(e){try{var l="";do l+=ym(e),e=e.return;while(e);return l}catch(t){return`
Error generating stack: `+t.message+`
`+t.stack}}function Je(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ms(e){var l=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function vm(e){var l=Ms(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,l),a=""+e[l];if(!e.hasOwnProperty(l)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var n=t.get,u=t.set;return Object.defineProperty(e,l,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,u.call(this,i)}}),Object.defineProperty(e,l,{enumerable:t.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[l]}}}}function Un(e){e._valueTracker||(e._valueTracker=vm(e))}function Es(e){if(!e)return!1;var l=e._valueTracker;if(!l)return!0;var t=l.getValue(),a="";return e&&(a=Ms(e)?e.checked?"true":"false":e.value),e=a,e!==t?(l.setValue(e),!0):!1}function Bn(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 bm=/[\n"\\]/g;function Fe(e){return e.replace(bm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function li(e,l,t,a,n,u,i,c){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),l!=null?i==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+Je(l)):e.value!==""+Je(l)&&(e.value=""+Je(l)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),l!=null?ti(e,i,Je(l)):t!=null?ti(e,i,Je(t)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+Je(c):e.removeAttribute("name")}function zs(e,l,t,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),l!=null||t!=null){if(!(u!=="submit"&&u!=="reset"||l!=null))return;t=t!=null?""+Je(t):"",l=l!=null?""+Je(l):t,c||l===e.value||(e.value=l),e.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=c?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i)}function ti(e,l,t){l==="number"&&Bn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Gt(e,l,t,a){if(e=e.options,l){l={};for(var n=0;n<t.length;n++)l["$"+t[n]]=!0;for(t=0;t<e.length;t++)n=l.hasOwnProperty("$"+e[t].value),e[t].selected!==n&&(e[t].selected=n),n&&a&&(e[t].defaultSelected=!0)}else{for(t=""+Je(t),l=null,n=0;n<e.length;n++){if(e[n].value===t){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}l!==null||e[n].disabled||(l=e[n])}l!==null&&(l.selected=!0)}}function Os(e,l,t){if(l!=null&&(l=""+Je(l),l!==e.value&&(e.value=l),t==null)){e.defaultValue!==l&&(e.defaultValue=l);return}e.defaultValue=t!=null?""+Je(t):""}function Cs(e,l,t,a){if(l==null){if(a!=null){if(t!=null)throw Error(f(92));if(yl(a)){if(1<a.length)throw Error(f(93));a=a[0]}t=a}t==null&&(t=""),l=t}t=Je(l),e.defaultValue=t,a=e.textContent,a===t&&a!==""&&a!==null&&(e.value=a)}function Yt(e,l){if(l){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=l;return}}e.textContent=l}var Sm=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 Rs(e,l,t){var a=l.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?a?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="":a?e.setProperty(l,t):typeof t!="number"||t===0||Sm.has(l)?l==="float"?e.cssFloat=t:e[l]=(""+t).trim():e[l]=t+"px"}function js(e,l,t){if(l!=null&&typeof l!="object")throw Error(f(62));if(e=e.style,t!=null){for(var a in t)!t.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&t[n]!==a&&Rs(e,n,a)}else for(var u in l)l.hasOwnProperty(u)&&Rs(e,u,l[u])}function ai(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 Tm=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"]]),xm=/^[\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 qn(e){return xm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var ni=null;function ui(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kt=null,Xt=null;function _s(e){var l=Bt(e);if(l&&(e=l.stateNode)){var t=e[Ce]||null;e:switch(e=l.stateNode,l.type){case"input":if(li(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),l=t.name,t.type==="radio"&&l!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+Fe(""+l)+'"][type="radio"]'),l=0;l<t.length;l++){var a=t[l];if(a!==e&&a.form===e.form){var n=a[Ce]||null;if(!n)throw Error(f(90));li(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<t.length;l++)a=t[l],a.form===e.form&&Es(a)}break e;case"textarea":Os(e,t.value,t.defaultValue);break e;case"select":l=t.value,l!=null&&Gt(e,!!t.multiple,l,!1)}}}var ii=!1;function Us(e,l,t){if(ii)return e(l,t);ii=!0;try{var a=e(l);return a}finally{if(ii=!1,(Kt!==null||Xt!==null)&&(Tu(),Kt&&(l=Kt,e=Xt,Xt=Kt=null,_s(l),e)))for(l=0;l<e.length;l++)_s(e[l])}}function Ma(e,l){var t=e.stateNode;if(t===null)return null;var a=t[Ce]||null;if(a===null)return null;t=a[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(f(231,l,typeof t));return t}var bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ci=!1;if(bl)try{var Ea={};Object.defineProperty(Ea,"passive",{get:function(){ci=!0}}),window.addEventListener("test",Ea,Ea),window.removeEventListener("test",Ea,Ea)}catch{ci=!1}var Kl=null,si=null,Ln=null;function Bs(){if(Ln)return Ln;var e,l=si,t=l.length,a,n="value"in Kl?Kl.value:Kl.textContent,u=n.length;for(e=0;e<t&&l[e]===n[e];e++);var i=t-e;for(a=1;a<=i&&l[t-a]===n[u-a];a++);return Ln=n.slice(e,1<a?1-a:void 0)}function Hn(e){var l=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&l===13&&(e=13)):e=l,e===10&&(e=13),32<=e||e===13?e:0}function Gn(){return!0}function qs(){return!1}function Re(e){function l(t,a,n,u,i){this._reactName=t,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(t=e[c],this[c]=t?t(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Gn:qs,this.isPropagationStopped=qs,this}return B(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Gn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Gn)},persist:function(){},isPersistent:Gn}),l}var mt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yn=Re(mt),za=B({},mt,{view:0,detail:0}),Am=Re(za),oi,ri,Oa,Kn=B({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:di,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!==Oa&&(Oa&&e.type==="mousemove"?(oi=e.screenX-Oa.screenX,ri=e.screenY-Oa.screenY):ri=oi=0,Oa=e),oi)},movementY:function(e){return"movementY"in e?e.movementY:ri}}),Ls=Re(Kn),Dm=B({},Kn,{dataTransfer:0}),Nm=Re(Dm),Mm=B({},za,{relatedTarget:0}),fi=Re(Mm),Em=B({},mt,{animationName:0,elapsedTime:0,pseudoElement:0}),zm=Re(Em),Om=B({},mt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cm=Re(Om),Rm=B({},mt,{data:0}),Hs=Re(Rm),jm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_m={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"},Um={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bm(e){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(e):(e=Um[e])?!!l[e]:!1}function di(){return Bm}var qm=B({},za,{key:function(e){if(e.key){var l=jm[e.key]||e.key;if(l!=="Unidentified")return l}return e.type==="keypress"?(e=Hn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_m[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:di,charCode:function(e){return e.type==="keypress"?Hn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lm=Re(qm),Hm=B({},Kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gs=Re(Hm),Gm=B({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),Ym=Re(Gm),Km=B({},mt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xm=Re(Km),Qm=B({},Kn,{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}),Vm=Re(Qm),wm=B({},mt,{newState:0,oldState:0}),Zm=Re(wm),km=[9,13,27,32],mi=bl&&"CompositionEvent"in window,Ca=null;bl&&"documentMode"in document&&(Ca=document.documentMode);var Jm=bl&&"TextEvent"in window&&!Ca,Ys=bl&&(!mi||Ca&&8<Ca&&11>=Ca),Ks=" ",Xs=!1;function Qs(e,l){switch(e){case"keyup":return km.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Fm(e,l){switch(e){case"compositionend":return Vs(l);case"keypress":return l.which!==32?null:(Xs=!0,Ks);case"textInput":return e=l.data,e===Ks&&Xs?null:e;default:return null}}function Pm(e,l){if(Qt)return e==="compositionend"||!mi&&Qs(e,l)?(e=Bs(),Ln=si=Kl=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Ys&&l.locale!=="ko"?null:l.data;default:return null}}var $m={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 ws(e){var l=e&&e.nodeName&&e.nodeName.toLowerCase();return l==="input"?!!$m[e.type]:l==="textarea"}function Zs(e,l,t,a){Kt?Xt?Xt.push(a):Xt=[a]:Kt=a,l=Eu(l,"onChange"),0<l.length&&(t=new Yn("onChange","change",null,t,a),e.push({event:t,listeners:l}))}var Ra=null,ja=null;function Wm(e){zf(e,0)}function Xn(e){var l=Na(e);if(Es(l))return e}function ks(e,l){if(e==="change")return l}var Js=!1;if(bl){var hi;if(bl){var gi="oninput"in document;if(!gi){var Fs=document.createElement("div");Fs.setAttribute("oninput","return;"),gi=typeof Fs.oninput=="function"}hi=gi}else hi=!1;Js=hi&&(!document.documentMode||9<document.documentMode)}function Ps(){Ra&&(Ra.detachEvent("onpropertychange",$s),ja=Ra=null)}function $s(e){if(e.propertyName==="value"&&Xn(ja)){var l=[];Zs(l,ja,e,ui(e)),Us(Wm,l)}}function Im(e,l,t){e==="focusin"?(Ps(),Ra=l,ja=t,Ra.attachEvent("onpropertychange",$s)):e==="focusout"&&Ps()}function eh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xn(ja)}function lh(e,l){if(e==="click")return Xn(l)}function th(e,l){if(e==="input"||e==="change")return Xn(l)}function ah(e,l){return e===l&&(e!==0||1/e===1/l)||e!==e&&l!==l}var Le=typeof Object.is=="function"?Object.is:ah;function _a(e,l){if(Le(e,l))return!0;if(typeof e!="object"||e===null||typeof l!="object"||l===null)return!1;var t=Object.keys(e),a=Object.keys(l);if(t.length!==a.length)return!1;for(a=0;a<t.length;a++){var n=t[a];if(!Vu.call(l,n)||!Le(e[n],l[n]))return!1}return!0}function Ws(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Is(e,l){var t=Ws(e);e=0;for(var a;t;){if(t.nodeType===3){if(a=e+t.textContent.length,e<=l&&a>=l)return{node:t,offset:l-e};e=a}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ws(t)}}function eo(e,l){return e&&l?e===l?!0:e&&e.nodeType===3?!1:l&&l.nodeType===3?eo(e,l.parentNode):"contains"in e?e.contains(l):e.compareDocumentPosition?!!(e.compareDocumentPosition(l)&16):!1:!1}function lo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var l=Bn(e.document);l instanceof e.HTMLIFrameElement;){try{var t=typeof l.contentWindow.location.href=="string"}catch{t=!1}if(t)e=l.contentWindow;else break;l=Bn(e.document)}return l}function pi(e){var l=e&&e.nodeName&&e.nodeName.toLowerCase();return l&&(l==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||l==="textarea"||e.contentEditable==="true")}var nh=bl&&"documentMode"in document&&11>=document.documentMode,Vt=null,yi=null,Ua=null,vi=!1;function to(e,l,t){var a=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;vi||Vt==null||Vt!==Bn(a)||(a=Vt,"selectionStart"in a&&pi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ua&&_a(Ua,a)||(Ua=a,a=Eu(yi,"onSelect"),0<a.length&&(l=new Yn("onSelect","select",null,l,t),e.push({event:l,listeners:a}),l.target=Vt)))}function ht(e,l){var t={};return t[e.toLowerCase()]=l.toLowerCase(),t["Webkit"+e]="webkit"+l,t["Moz"+e]="moz"+l,t}var wt={animationend:ht("Animation","AnimationEnd"),animationiteration:ht("Animation","AnimationIteration"),animationstart:ht("Animation","AnimationStart"),transitionrun:ht("Transition","TransitionRun"),transitionstart:ht("Transition","TransitionStart"),transitioncancel:ht("Transition","TransitionCancel"),transitionend:ht("Transition","TransitionEnd")},bi={},ao={};bl&&(ao=document.createElement("div").style,"AnimationEvent"in window||(delete wt.animationend.animation,delete wt.animationiteration.animation,delete wt.animationstart.animation),"TransitionEvent"in window||delete wt.transitionend.transition);function gt(e){if(bi[e])return bi[e];if(!wt[e])return e;var l=wt[e],t;for(t in l)if(l.hasOwnProperty(t)&&t in ao)return bi[e]=l[t];return e}var no=gt("animationend"),uo=gt("animationiteration"),io=gt("animationstart"),uh=gt("transitionrun"),ih=gt("transitionstart"),ch=gt("transitioncancel"),co=gt("transitionend"),so=new Map,Si="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(" ");Si.push("scrollEnd");function nl(e,l){so.set(e,l),dt(l,[e])}var oo=new WeakMap;function Pe(e,l){if(typeof e=="object"&&e!==null){var t=oo.get(e);return t!==void 0?t:(l={value:e,source:l,stack:Ns(l)},oo.set(e,l),l)}return{value:e,source:l,stack:Ns(l)}}var $e=[],Zt=0,Ti=0;function Qn(){for(var e=Zt,l=Ti=Zt=0;l<e;){var t=$e[l];$e[l++]=null;var a=$e[l];$e[l++]=null;var n=$e[l];$e[l++]=null;var u=$e[l];if($e[l++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&ro(t,n,u)}}function Vn(e,l,t,a){$e[Zt++]=e,$e[Zt++]=l,$e[Zt++]=t,$e[Zt++]=a,Ti|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function xi(e,l,t,a){return Vn(e,l,t,a),wn(e)}function kt(e,l){return Vn(e,null,null,l),wn(e)}function ro(e,l,t){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t);for(var n=!1,u=e.return;u!==null;)u.childLanes|=t,a=u.alternate,a!==null&&(a.childLanes|=t),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&l!==null&&(n=31-qe(t),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[l]:a.push(l),l.lane=t|536870912),u):null}function wn(e){if(50<un)throw un=0,zc=null,Error(f(185));for(var l=e.return;l!==null;)e=l,l=e.return;return e.tag===3?e.stateNode:null}var Jt={};function sh(e,l,t,a){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function He(e,l,t,a){return new sh(e,l,t,a)}function Ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sl(e,l){var t=e.alternate;return t===null?(t=He(e.tag,l,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=l,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function fo(e,l){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=l,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),e}function Zn(e,l,t,a,n,u){var i=0;if(a=e,typeof e=="function")Ai(e)&&(i=1);else if(typeof e=="string")i=rg(e,t,ye.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ct:return e=He(31,t,l,n),e.elementType=Ct,e.lanes=u,e;case ee:return pt(t.children,n,u,l);case C:i=8,n|=24;break;case cl:return e=He(12,t,l,n|2),e.elementType=cl,e.lanes=u,e;case rt:return e=He(13,t,l,n),e.elementType=rt,e.lanes=u,e;case sl:return e=He(19,t,l,n),e.elementType=sl,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ba:case Ze:i=10;break e;case ql:i=9;break e;case Ll:i=11;break e;case pl:i=14;break e;case al:i=16,a=null;break e}i=29,t=Error(f(130,e===null?"null":typeof e,"")),a=null}return l=He(i,t,l,n),l.elementType=e,l.type=a,l.lanes=u,l}function pt(e,l,t,a){return e=He(7,e,a,l),e.lanes=t,e}function Di(e,l,t){return e=He(6,e,null,l),e.lanes=t,e}function Ni(e,l,t){return l=He(4,e.children!==null?e.children:[],e.key,l),l.lanes=t,l.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},l}var Ft=[],Pt=0,kn=null,Jn=0,We=[],Ie=0,yt=null,Tl=1,xl="";function vt(e,l){Ft[Pt++]=Jn,Ft[Pt++]=kn,kn=e,Jn=l}function mo(e,l,t){We[Ie++]=Tl,We[Ie++]=xl,We[Ie++]=yt,yt=e;var a=Tl;e=xl;var n=32-qe(a)-1;a&=~(1<<n),t+=1;var u=32-qe(l)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Tl=1<<32-qe(l)+n|t<<n|a,xl=u+e}else Tl=1<<u|t<<n|a,xl=e}function Mi(e){e.return!==null&&(vt(e,1),mo(e,1,0))}function Ei(e){for(;e===kn;)kn=Ft[--Pt],Ft[Pt]=null,Jn=Ft[--Pt],Ft[Pt]=null;for(;e===yt;)yt=We[--Ie],We[Ie]=null,xl=We[--Ie],We[Ie]=null,Tl=We[--Ie],We[Ie]=null}var ze=null,se=null,V=!1,bt=null,fl=!1,zi=Error(f(519));function St(e){var l=Error(f(418,""));throw La(Pe(l,e)),zi}function ho(e){var l=e.stateNode,t=e.type,a=e.memoizedProps;switch(l[Ne]=e,l[Ce]=a,t){case"dialog":Y("cancel",l),Y("close",l);break;case"iframe":case"object":case"embed":Y("load",l);break;case"video":case"audio":for(t=0;t<sn.length;t++)Y(sn[t],l);break;case"source":Y("error",l);break;case"img":case"image":case"link":Y("error",l),Y("load",l);break;case"details":Y("toggle",l);break;case"input":Y("invalid",l),zs(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Un(l);break;case"select":Y("invalid",l);break;case"textarea":Y("invalid",l),Cs(l,a.value,a.defaultValue,a.children),Un(l)}t=a.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||l.textContent===""+t||a.suppressHydrationWarning===!0||jf(l.textContent,t)?(a.popover!=null&&(Y("beforetoggle",l),Y("toggle",l)),a.onScroll!=null&&Y("scroll",l),a.onScrollEnd!=null&&Y("scrollend",l),a.onClick!=null&&(l.onclick=zu),l=!0):l=!1,l||St(e)}function go(e){for(ze=e.return;ze;)switch(ze.tag){case 5:case 13:fl=!1;return;case 27:case 3:fl=!0;return;default:ze=ze.return}}function Ba(e){if(e!==ze)return!1;if(!V)return go(e),V=!0,!1;var l=e.tag,t;if((t=l!==3&&l!==27)&&((t=l===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||Vc(e.type,e.memoizedProps)),t=!t),t&&se&&St(e),go(e),l===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));e:{for(e=e.nextSibling,l=0;e;){if(e.nodeType===8)if(t=e.data,t==="/$"){if(l===0){se=il(e.nextSibling);break e}l--}else t!=="$"&&t!=="$!"&&t!=="$?"||l++;e=e.nextSibling}se=null}}else l===27?(l=se,at(e.type)?(e=Jc,Jc=null,se=e):se=l):se=ze?il(e.stateNode.nextSibling):null;return!0}function qa(){se=ze=null,V=!1}function po(){var e=bt;return e!==null&&(Ue===null?Ue=e:Ue.push.apply(Ue,e),bt=null),e}function La(e){bt===null?bt=[e]:bt.push(e)}var Oi=Ee(null),Tt=null,Al=null;function Xl(e,l,t){J(Oi,l._currentValue),l._currentValue=t}function Dl(e){e._currentValue=Oi.current,ie(Oi)}function Ci(e,l,t){for(;e!==null;){var a=e.alternate;if((e.childLanes&l)!==l?(e.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),e===t)break;e=e.return}}function Ri(e,l,t,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var c=u;u=n;for(var s=0;s<l.length;s++)if(c.context===l[s]){u.lanes|=t,c=u.alternate,c!==null&&(c.lanes|=t),Ci(u.return,t,e),a||(i=null);break e}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(f(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),Ci(i,t,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function Ha(e,l,t,a){e=null;for(var n=l,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(f(387));if(i=i.memoizedProps,i!==null){var c=n.type;Le(n.pendingProps.value,i.value)||(e!==null?e.push(c):e=[c])}}else if(n===Nn.current){if(i=n.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(hn):e=[hn])}n=n.return}e!==null&&Ri(l,e,t,a),l.flags|=262144}function Fn(e){for(e=e.firstContext;e!==null;){if(!Le(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xt(e){Tt=e,Al=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Me(e){return yo(Tt,e)}function Pn(e,l){return Tt===null&&xt(e),yo(e,l)}function yo(e,l){var t=l._currentValue;if(l={context:l,memoizedValue:t,next:null},Al===null){if(e===null)throw Error(f(308));Al=l,e.dependencies={lanes:0,firstContext:l},e.flags|=524288}else Al=Al.next=l;return t}var oh=typeof AbortController<"u"?AbortController:function(){var e=[],l=this.signal={aborted:!1,addEventListener:function(t,a){e.push(a)}};this.abort=function(){l.aborted=!0,e.forEach(function(t){return t()})}},rh=h.unstable_scheduleCallback,fh=h.unstable_NormalPriority,ge={$$typeof:Ze,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ji(){return{controller:new oh,data:new Map,refCount:0}}function Ga(e){e.refCount--,e.refCount===0&&rh(fh,function(){e.controller.abort()})}var Ya=null,_i=0,$t=0,Wt=null;function dh(e,l){if(Ya===null){var t=Ya=[];_i=0,$t=Bc(),Wt={status:"pending",value:void 0,then:function(a){t.push(a)}}}return _i++,l.then(vo,vo),l}function vo(){if(--_i===0&&Ya!==null){Wt!==null&&(Wt.status="fulfilled");var e=Ya;Ya=null,$t=0,Wt=null;for(var l=0;l<e.length;l++)(0,e[l])()}}function mh(e,l){var t=[],a={status:"pending",value:null,reason:null,then:function(n){t.push(n)}};return e.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<t.length;n++)(0,t[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<t.length;n++)(0,t[n])(void 0)}),a}var bo=T.S;T.S=function(e,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&dh(e,l),bo!==null&&bo(e,l)};var At=Ee(null);function Ui(){var e=At.current;return e!==null?e:le.pooledCache}function $n(e,l){l===null?J(At,At.current):J(At,l.pool)}function So(){var e=Ui();return e===null?null:{parent:ge._currentValue,pool:e}}var Ka=Error(f(460)),To=Error(f(474)),Wn=Error(f(542)),Bi={then:function(){}};function xo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function In(){}function Ao(e,l,t){switch(t=e[t],t===void 0?e.push(l):t!==l&&(l.then(In,In),l=t),l.status){case"fulfilled":return l.value;case"rejected":throw e=l.reason,No(e),e;default:if(typeof l.status=="string")l.then(In,In);else{if(e=le,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=l,e.status="pending",e.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw e=l.reason,No(e),e}throw Xa=l,Ka}}var Xa=null;function Do(){if(Xa===null)throw Error(f(459));var e=Xa;return Xa=null,e}function No(e){if(e===Ka||e===Wn)throw Error(f(483))}var Ql=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Li(e,l){e=e.updateQueue,l.updateQueue===e&&(l.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wl(e,l,t){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Z&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=wn(e),ro(e,null,t),l}return Vn(e,a,l,t),wn(e)}function Qa(e,l,t){if(l=l.updateQueue,l!==null&&(l=l.shared,(t&4194048)!==0)){var a=l.lanes;a&=e.pendingLanes,t|=a,l.lanes=t,ys(e,t)}}function Hi(e,l){var t=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,t===a)){var n=null,u=null;if(t=t.firstBaseUpdate,t!==null){do{var i={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,t=t.next}while(t!==null);u===null?n=u=l:u=u.next=l}else n=u=l;t={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=l:e.next=l,t.lastBaseUpdate=l}var Gi=!1;function Va(){if(Gi){var e=Wt;if(e!==null)throw e}}function wa(e,l,t,a){Gi=!1;var n=e.updateQueue;Ql=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,g=s.next;s.next=null,i===null?u=g:i.next=g,i=s;var b=e.alternate;b!==null&&(b=b.updateQueue,c=b.lastBaseUpdate,c!==i&&(c===null?b.firstBaseUpdate=g:c.next=g,b.lastBaseUpdate=s))}if(u!==null){var x=n.baseState;i=0,b=g=s=null,c=u;do{var p=c.lane&-536870913,y=p!==c.lane;if(y?(X&p)===p:(a&p)===p){p!==0&&p===$t&&(Gi=!0),b!==null&&(b=b.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var _=e,R=c;p=l;var $=t;switch(R.tag){case 1:if(_=R.payload,typeof _=="function"){x=_.call($,x,p);break e}x=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=R.payload,p=typeof _=="function"?_.call($,x,p):_,p==null)break e;x=B({},x,p);break e;case 2:Ql=!0}}p=c.callback,p!==null&&(e.flags|=64,y&&(e.flags|=8192),y=n.callbacks,y===null?n.callbacks=[p]:y.push(p))}else y={lane:p,tag:c.tag,payload:c.payload,callback:c.callback,next:null},b===null?(g=b=y,s=x):b=b.next=y,i|=p;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;y=c,c=y.next,y.next=null,n.lastBaseUpdate=y,n.shared.pending=null}}while(!0);b===null&&(s=x),n.baseState=s,n.firstBaseUpdate=g,n.lastBaseUpdate=b,u===null&&(n.shared.lanes=0),Il|=i,e.lanes=i,e.memoizedState=x}}function Mo(e,l){if(typeof e!="function")throw Error(f(191,e));e.call(l)}function Eo(e,l){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)Mo(t[e],l)}var It=Ee(null),eu=Ee(0);function zo(e,l){e=Rl,J(eu,e),J(It,l),Rl=e|l.baseLanes}function Yi(){J(eu,Rl),J(It,It.current)}function Ki(){Rl=eu.current,ie(It),ie(eu)}var Zl=0,L=null,F=null,de=null,lu=!1,ea=!1,Dt=!1,tu=0,Za=0,la=null,hh=0;function re(){throw Error(f(321))}function Xi(e,l){if(l===null)return!1;for(var t=0;t<l.length&&t<e.length;t++)if(!Le(e[t],l[t]))return!1;return!0}function Qi(e,l,t,a,n,u){return Zl=u,L=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,T.H=e===null||e.memoizedState===null?fr:dr,Dt=!1,u=t(a,n),Dt=!1,ea&&(u=Co(l,t,a,n)),Oo(e),u}function Oo(e){T.H=su;var l=F!==null&&F.next!==null;if(Zl=0,de=F=L=null,lu=!1,Za=0,la=null,l)throw Error(f(300));e===null||be||(e=e.dependencies,e!==null&&Fn(e)&&(be=!0))}function Co(e,l,t,a){L=e;var n=0;do{if(ea&&(la=null),Za=0,ea=!1,25<=n)throw Error(f(301));if(n+=1,de=F=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=Th,u=l(t,a)}while(ea);return u}function gh(){var e=T.H,l=e.useState()[0];return l=typeof l.then=="function"?ka(l):l,e=e.useState()[0],(F!==null?F.memoizedState:null)!==e&&(L.flags|=1024),l}function Vi(){var e=tu!==0;return tu=0,e}function wi(e,l,t){l.updateQueue=e.updateQueue,l.flags&=-2053,e.lanes&=~t}function Zi(e){if(lu){for(e=e.memoizedState;e!==null;){var l=e.queue;l!==null&&(l.pending=null),e=e.next}lu=!1}Zl=0,de=F=L=null,ea=!1,Za=tu=0,la=null}function je(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?L.memoizedState=de=e:de=de.next=e,de}function me(){if(F===null){var e=L.alternate;e=e!==null?e.memoizedState:null}else e=F.next;var l=de===null?L.memoizedState:de.next;if(l!==null)de=l,F=e;else{if(e===null)throw L.alternate===null?Error(f(467)):Error(f(310));F=e,e={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue,queue:F.queue,next:null},de===null?L.memoizedState=de=e:de=de.next=e}return de}function ki(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ka(e){var l=Za;return Za+=1,la===null&&(la=[]),e=Ao(la,e,l),l=L,(de===null?l.memoizedState:de.next)===null&&(l=l.alternate,T.H=l===null||l.memoizedState===null?fr:dr),e}function au(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ka(e);if(e.$$typeof===Ze)return Me(e)}throw Error(f(438,String(e)))}function Ji(e){var l=null,t=L.updateQueue;if(t!==null&&(l=t.memoCache),l==null){var a=L.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),t===null&&(t=ki(),L.updateQueue=t),t.memoCache=l,t=l.data[l.index],t===void 0)for(t=l.data[l.index]=Array(e),a=0;a<e;a++)t[a]=An;return l.index++,t}function Nl(e,l){return typeof l=="function"?l(e):l}function nu(e){var l=me();return Fi(l,F,e)}function Fi(e,l,t){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=t;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}l.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{l=n.next;var c=i=null,s=null,g=l,b=!1;do{var x=g.lane&-536870913;if(x!==g.lane?(X&x)===x:(Zl&x)===x){var p=g.revertLane;if(p===0)s!==null&&(s=s.next={lane:0,revertLane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),x===$t&&(b=!0);else if((Zl&p)===p){g=g.next,p===$t&&(b=!0);continue}else x={lane:0,revertLane:g.revertLane,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},s===null?(c=s=x,i=u):s=s.next=x,L.lanes|=p,Il|=p;x=g.action,Dt&&t(u,x),u=g.hasEagerState?g.eagerState:t(u,x)}else p={lane:x,revertLane:g.revertLane,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},s===null?(c=s=p,i=u):s=s.next=p,L.lanes|=x,Il|=x;g=g.next}while(g!==null&&g!==l);if(s===null?i=u:s.next=c,!Le(u,e.memoizedState)&&(be=!0,b&&(t=Wt,t!==null)))throw t;e.memoizedState=u,e.baseState=i,e.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Pi(e){var l=me(),t=l.queue;if(t===null)throw Error(f(311));t.lastRenderedReducer=e;var a=t.dispatch,n=t.pending,u=l.memoizedState;if(n!==null){t.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);Le(u,l.memoizedState)||(be=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),t.lastRenderedState=u}return[u,a]}function Ro(e,l,t){var a=L,n=me(),u=V;if(u){if(t===void 0)throw Error(f(407));t=t()}else t=l();var i=!Le((F||n).memoizedState,t);i&&(n.memoizedState=t,be=!0),n=n.queue;var c=Uo.bind(null,a,n,e);if(Ja(2048,8,c,[e]),n.getSnapshot!==l||i||de!==null&&de.memoizedState.tag&1){if(a.flags|=2048,ta(9,uu(),_o.bind(null,a,n,t,l),null),le===null)throw Error(f(349));u||(Zl&124)!==0||jo(a,l,t)}return t}function jo(e,l,t){e.flags|=16384,e={getSnapshot:l,value:t},l=L.updateQueue,l===null?(l=ki(),L.updateQueue=l,l.stores=[e]):(t=l.stores,t===null?l.stores=[e]:t.push(e))}function _o(e,l,t,a){l.value=t,l.getSnapshot=a,Bo(l)&&qo(e)}function Uo(e,l,t){return t(function(){Bo(l)&&qo(e)})}function Bo(e){var l=e.getSnapshot;e=e.value;try{var t=l();return!Le(e,t)}catch{return!0}}function qo(e){var l=kt(e,2);l!==null&&Qe(l,e,2)}function $i(e){var l=je();if(typeof e=="function"){var t=e;if(e=t(),Dt){Gl(!0);try{t()}finally{Gl(!1)}}}return l.memoizedState=l.baseState=e,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:e},l}function Lo(e,l,t,a){return e.baseState=t,Fi(e,F,typeof a=="function"?a:Nl)}function ph(e,l,t,a,n){if(cu(e))throw Error(f(485));if(e=l.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};T.T!==null?t(!0):u.isTransition=!1,a(u),t=l.pending,t===null?(u.next=l.pending=u,Ho(l,u)):(u.next=t.next,l.pending=t.next=u)}}function Ho(e,l){var t=l.action,a=l.payload,n=e.state;if(l.isTransition){var u=T.T,i={};T.T=i;try{var c=t(n,a),s=T.S;s!==null&&s(i,c),Go(e,l,c)}catch(g){Wi(e,l,g)}finally{T.T=u}}else try{u=t(n,a),Go(e,l,u)}catch(g){Wi(e,l,g)}}function Go(e,l,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(a){Yo(e,l,a)},function(a){return Wi(e,l,a)}):Yo(e,l,t)}function Yo(e,l,t){l.status="fulfilled",l.value=t,Ko(l),e.state=t,l=e.pending,l!==null&&(t=l.next,t===l?e.pending=null:(t=t.next,l.next=t,Ho(e,t)))}function Wi(e,l,t){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=t,Ko(l),l=l.next;while(l!==a)}e.action=null}function Ko(e){e=e.listeners;for(var l=0;l<e.length;l++)(0,e[l])()}function Xo(e,l){return l}function Qo(e,l){if(V){var t=le.formState;if(t!==null){e:{var a=L;if(V){if(se){l:{for(var n=se,u=fl;n.nodeType!==8;){if(!u){n=null;break l}if(n=il(n.nextSibling),n===null){n=null;break l}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){se=il(n.nextSibling),a=n.data==="F!";break e}}St(a)}a=!1}a&&(l=t[0])}}return t=je(),t.memoizedState=t.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:l},t.queue=a,t=sr.bind(null,L,a),a.dispatch=t,a=$i(!1),u=ac.bind(null,L,!1,a.queue),a=je(),n={state:l,dispatch:null,action:e,pending:null},a.queue=n,t=ph.bind(null,L,n,u,t),n.dispatch=t,a.memoizedState=e,[l,t,!1]}function Vo(e){var l=me();return wo(l,F,e)}function wo(e,l,t){if(l=Fi(e,l,Xo)[0],e=nu(Nl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=ka(l)}catch(i){throw i===Ka?Wn:i}else a=l;l=me();var n=l.queue,u=n.dispatch;return t!==l.memoizedState&&(L.flags|=2048,ta(9,uu(),yh.bind(null,n,t),null)),[a,u,e]}function yh(e,l){e.action=l}function Zo(e){var l=me(),t=F;if(t!==null)return wo(l,t,e);me(),l=l.memoizedState,t=me();var a=t.queue.dispatch;return t.memoizedState=e,[l,a,!1]}function ta(e,l,t,a){return e={tag:e,create:t,deps:a,inst:l,next:null},l=L.updateQueue,l===null&&(l=ki(),L.updateQueue=l),t=l.lastEffect,t===null?l.lastEffect=e.next=e:(a=t.next,t.next=e,e.next=a,l.lastEffect=e),e}function uu(){return{destroy:void 0,resource:void 0}}function ko(){return me().memoizedState}function iu(e,l,t,a){var n=je();a=a===void 0?null:a,L.flags|=e,n.memoizedState=ta(1|l,uu(),t,a)}function Ja(e,l,t,a){var n=me();a=a===void 0?null:a;var u=n.memoizedState.inst;F!==null&&a!==null&&Xi(a,F.memoizedState.deps)?n.memoizedState=ta(l,u,t,a):(L.flags|=e,n.memoizedState=ta(1|l,u,t,a))}function Jo(e,l){iu(8390656,8,e,l)}function Fo(e,l){Ja(2048,8,e,l)}function Po(e,l){return Ja(4,2,e,l)}function $o(e,l){return Ja(4,4,e,l)}function Wo(e,l){if(typeof l=="function"){e=e();var t=l(e);return function(){typeof t=="function"?t():l(null)}}if(l!=null)return e=e(),l.current=e,function(){l.current=null}}function Io(e,l,t){t=t!=null?t.concat([e]):null,Ja(4,4,Wo.bind(null,l,e),t)}function Ii(){}function er(e,l){var t=me();l=l===void 0?null:l;var a=t.memoizedState;return l!==null&&Xi(l,a[1])?a[0]:(t.memoizedState=[e,l],e)}function lr(e,l){var t=me();l=l===void 0?null:l;var a=t.memoizedState;if(l!==null&&Xi(l,a[1]))return a[0];if(a=e(),Dt){Gl(!0);try{e()}finally{Gl(!1)}}return t.memoizedState=[a,l],a}function ec(e,l,t){return t===void 0||(Zl&1073741824)!==0?e.memoizedState=l:(e.memoizedState=t,e=nf(),L.lanes|=e,Il|=e,t)}function tr(e,l,t,a){return Le(t,l)?t:It.current!==null?(e=ec(e,t,a),Le(e,l)||(be=!0),e):(Zl&42)===0?(be=!0,e.memoizedState=t):(e=nf(),L.lanes|=e,Il|=e,l)}function ar(e,l,t,a,n){var u=D.p;D.p=u!==0&&8>u?u:8;var i=T.T,c={};T.T=c,ac(e,!1,l,t);try{var s=n(),g=T.S;if(g!==null&&g(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var b=mh(s,a);Fa(e,l,b,Xe(e))}else Fa(e,l,a,Xe(e))}catch(x){Fa(e,l,{then:function(){},status:"rejected",reason:x},Xe())}finally{D.p=u,T.T=i}}function vh(){}function lc(e,l,t,a){if(e.tag!==5)throw Error(f(476));var n=nr(e).queue;ar(e,n,l,U,t===null?vh:function(){return ur(e),t(a)})}function nr(e){var l=e.memoizedState;if(l!==null)return l;l={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:U},next:null};var t={};return l.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:t},next:null},e.memoizedState=l,e=e.alternate,e!==null&&(e.memoizedState=l),l}function ur(e){var l=nr(e).next.queue;Fa(e,l,{},Xe())}function tc(){return Me(hn)}function ir(){return me().memoizedState}function cr(){return me().memoizedState}function bh(e){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var t=Xe();e=Vl(t);var a=wl(l,e,t);a!==null&&(Qe(a,l,t),Qa(a,l,t)),l={cache:ji()},e.payload=l;return}l=l.return}}function Sh(e,l,t){var a=Xe();t={lane:a,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},cu(e)?or(l,t):(t=xi(e,l,t,a),t!==null&&(Qe(t,e,a),rr(t,l,a)))}function sr(e,l,t){var a=Xe();Fa(e,l,t,a)}function Fa(e,l,t,a){var n={lane:a,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(cu(e))or(l,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,c=u(i,t);if(n.hasEagerState=!0,n.eagerState=c,Le(c,i))return Vn(e,l,n,0),le===null&&Qn(),!1}catch{}finally{}if(t=xi(e,l,n,a),t!==null)return Qe(t,e,a),rr(t,l,a),!0}return!1}function ac(e,l,t,a){if(a={lane:2,revertLane:Bc(),action:a,hasEagerState:!1,eagerState:null,next:null},cu(e)){if(l)throw Error(f(479))}else l=xi(e,t,a,2),l!==null&&Qe(l,e,2)}function cu(e){var l=e.alternate;return e===L||l!==null&&l===L}function or(e,l){ea=lu=!0;var t=e.pending;t===null?l.next=l:(l.next=t.next,t.next=l),e.pending=l}function rr(e,l,t){if((t&4194048)!==0){var a=l.lanes;a&=e.pendingLanes,t|=a,l.lanes=t,ys(e,t)}}var su={readContext:Me,use:au,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useLayoutEffect:re,useInsertionEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useSyncExternalStore:re,useId:re,useHostTransitionStatus:re,useFormState:re,useActionState:re,useOptimistic:re,useMemoCache:re,useCacheRefresh:re},fr={readContext:Me,use:au,useCallback:function(e,l){return je().memoizedState=[e,l===void 0?null:l],e},useContext:Me,useEffect:Jo,useImperativeHandle:function(e,l,t){t=t!=null?t.concat([e]):null,iu(4194308,4,Wo.bind(null,l,e),t)},useLayoutEffect:function(e,l){return iu(4194308,4,e,l)},useInsertionEffect:function(e,l){iu(4,2,e,l)},useMemo:function(e,l){var t=je();l=l===void 0?null:l;var a=e();if(Dt){Gl(!0);try{e()}finally{Gl(!1)}}return t.memoizedState=[a,l],a},useReducer:function(e,l,t){var a=je();if(t!==void 0){var n=t(l);if(Dt){Gl(!0);try{t(l)}finally{Gl(!1)}}}else n=l;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Sh.bind(null,L,e),[a.memoizedState,e]},useRef:function(e){var l=je();return e={current:e},l.memoizedState=e},useState:function(e){e=$i(e);var l=e.queue,t=sr.bind(null,L,l);return l.dispatch=t,[e.memoizedState,t]},useDebugValue:Ii,useDeferredValue:function(e,l){var t=je();return ec(t,e,l)},useTransition:function(){var e=$i(!1);return e=ar.bind(null,L,e.queue,!0,!1),je().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,l,t){var a=L,n=je();if(V){if(t===void 0)throw Error(f(407));t=t()}else{if(t=l(),le===null)throw Error(f(349));(X&124)!==0||jo(a,l,t)}n.memoizedState=t;var u={value:t,getSnapshot:l};return n.queue=u,Jo(Uo.bind(null,a,u,e),[e]),a.flags|=2048,ta(9,uu(),_o.bind(null,a,u,t,l),null),t},useId:function(){var e=je(),l=le.identifierPrefix;if(V){var t=xl,a=Tl;t=(a&~(1<<32-qe(a)-1)).toString(32)+t,l="«"+l+"R"+t,t=tu++,0<t&&(l+="H"+t.toString(32)),l+="»"}else t=hh++,l="«"+l+"r"+t.toString(32)+"»";return e.memoizedState=l},useHostTransitionStatus:tc,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var l=je();l.memoizedState=l.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=t,l=ac.bind(null,L,!0,t),t.dispatch=l,[e,l]},useMemoCache:Ji,useCacheRefresh:function(){return je().memoizedState=bh.bind(null,L)}},dr={readContext:Me,use:au,useCallback:er,useContext:Me,useEffect:Fo,useImperativeHandle:Io,useInsertionEffect:Po,useLayoutEffect:$o,useMemo:lr,useReducer:nu,useRef:ko,useState:function(){return nu(Nl)},useDebugValue:Ii,useDeferredValue:function(e,l){var t=me();return tr(t,F.memoizedState,e,l)},useTransition:function(){var e=nu(Nl)[0],l=me().memoizedState;return[typeof e=="boolean"?e:ka(e),l]},useSyncExternalStore:Ro,useId:ir,useHostTransitionStatus:tc,useFormState:Vo,useActionState:Vo,useOptimistic:function(e,l){var t=me();return Lo(t,F,e,l)},useMemoCache:Ji,useCacheRefresh:cr},Th={readContext:Me,use:au,useCallback:er,useContext:Me,useEffect:Fo,useImperativeHandle:Io,useInsertionEffect:Po,useLayoutEffect:$o,useMemo:lr,useReducer:Pi,useRef:ko,useState:function(){return Pi(Nl)},useDebugValue:Ii,useDeferredValue:function(e,l){var t=me();return F===null?ec(t,e,l):tr(t,F.memoizedState,e,l)},useTransition:function(){var e=Pi(Nl)[0],l=me().memoizedState;return[typeof e=="boolean"?e:ka(e),l]},useSyncExternalStore:Ro,useId:ir,useHostTransitionStatus:tc,useFormState:Zo,useActionState:Zo,useOptimistic:function(e,l){var t=me();return F!==null?Lo(t,F,e,l):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:Ji,useCacheRefresh:cr},aa=null,Pa=0;function ou(e){var l=Pa;return Pa+=1,aa===null&&(aa=[]),Ao(aa,e,l)}function $a(e,l){l=l.props.ref,e.ref=l!==void 0?l:null}function ru(e,l){throw l.$$typeof===he?Error(f(525)):(e=Object.prototype.toString.call(l),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":e)))}function mr(e){var l=e._init;return l(e._payload)}function hr(e){function l(d,r){if(e){var m=d.deletions;m===null?(d.deletions=[r],d.flags|=16):m.push(r)}}function t(d,r){if(!e)return null;for(;r!==null;)l(d,r),r=r.sibling;return null}function a(d){for(var r=new Map;d!==null;)d.key!==null?r.set(d.key,d):r.set(d.index,d),d=d.sibling;return r}function n(d,r){return d=Sl(d,r),d.index=0,d.sibling=null,d}function u(d,r,m){return d.index=m,e?(m=d.alternate,m!==null?(m=m.index,m<r?(d.flags|=67108866,r):m):(d.flags|=67108866,r)):(d.flags|=1048576,r)}function i(d){return e&&d.alternate===null&&(d.flags|=67108866),d}function c(d,r,m,S){return r===null||r.tag!==6?(r=Di(m,d.mode,S),r.return=d,r):(r=n(r,m),r.return=d,r)}function s(d,r,m,S){var N=m.type;return N===ee?b(d,r,m.props.children,S,m.key):r!==null&&(r.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===al&&mr(N)===r.type)?(r=n(r,m.props),$a(r,m),r.return=d,r):(r=Zn(m.type,m.key,m.props,null,d.mode,S),$a(r,m),r.return=d,r)}function g(d,r,m,S){return r===null||r.tag!==4||r.stateNode.containerInfo!==m.containerInfo||r.stateNode.implementation!==m.implementation?(r=Ni(m,d.mode,S),r.return=d,r):(r=n(r,m.children||[]),r.return=d,r)}function b(d,r,m,S,N){return r===null||r.tag!==7?(r=pt(m,d.mode,S,N),r.return=d,r):(r=n(r,m),r.return=d,r)}function x(d,r,m){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=Di(""+r,d.mode,m),r.return=d,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case K:return m=Zn(r.type,r.key,r.props,null,d.mode,m),$a(m,r),m.return=d,m;case Oe:return r=Ni(r,d.mode,m),r.return=d,r;case al:var S=r._init;return r=S(r._payload),x(d,r,m)}if(yl(r)||ke(r))return r=pt(r,d.mode,m,null),r.return=d,r;if(typeof r.then=="function")return x(d,ou(r),m);if(r.$$typeof===Ze)return x(d,Pn(d,r),m);ru(d,r)}return null}function p(d,r,m,S){var N=r!==null?r.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return N!==null?null:c(d,r,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case K:return m.key===N?s(d,r,m,S):null;case Oe:return m.key===N?g(d,r,m,S):null;case al:return N=m._init,m=N(m._payload),p(d,r,m,S)}if(yl(m)||ke(m))return N!==null?null:b(d,r,m,S,null);if(typeof m.then=="function")return p(d,r,ou(m),S);if(m.$$typeof===Ze)return p(d,r,Pn(d,m),S);ru(d,m)}return null}function y(d,r,m,S,N){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return d=d.get(m)||null,c(r,d,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case K:return d=d.get(S.key===null?m:S.key)||null,s(r,d,S,N);case Oe:return d=d.get(S.key===null?m:S.key)||null,g(r,d,S,N);case al:var H=S._init;return S=H(S._payload),y(d,r,m,S,N)}if(yl(S)||ke(S))return d=d.get(m)||null,b(r,d,S,N,null);if(typeof S.then=="function")return y(d,r,m,ou(S),N);if(S.$$typeof===Ze)return y(d,r,m,Pn(r,S),N);ru(r,S)}return null}function _(d,r,m,S){for(var N=null,H=null,z=r,j=r=0,Te=null;z!==null&&j<m.length;j++){z.index>j?(Te=z,z=null):Te=z.sibling;var Q=p(d,z,m[j],S);if(Q===null){z===null&&(z=Te);break}e&&z&&Q.alternate===null&&l(d,z),r=u(Q,r,j),H===null?N=Q:H.sibling=Q,H=Q,z=Te}if(j===m.length)return t(d,z),V&&vt(d,j),N;if(z===null){for(;j<m.length;j++)z=x(d,m[j],S),z!==null&&(r=u(z,r,j),H===null?N=z:H.sibling=z,H=z);return V&&vt(d,j),N}for(z=a(z);j<m.length;j++)Te=y(z,d,j,m[j],S),Te!==null&&(e&&Te.alternate!==null&&z.delete(Te.key===null?j:Te.key),r=u(Te,r,j),H===null?N=Te:H.sibling=Te,H=Te);return e&&z.forEach(function(st){return l(d,st)}),V&&vt(d,j),N}function R(d,r,m,S){if(m==null)throw Error(f(151));for(var N=null,H=null,z=r,j=r=0,Te=null,Q=m.next();z!==null&&!Q.done;j++,Q=m.next()){z.index>j?(Te=z,z=null):Te=z.sibling;var st=p(d,z,Q.value,S);if(st===null){z===null&&(z=Te);break}e&&z&&st.alternate===null&&l(d,z),r=u(st,r,j),H===null?N=st:H.sibling=st,H=st,z=Te}if(Q.done)return t(d,z),V&&vt(d,j),N;if(z===null){for(;!Q.done;j++,Q=m.next())Q=x(d,Q.value,S),Q!==null&&(r=u(Q,r,j),H===null?N=Q:H.sibling=Q,H=Q);return V&&vt(d,j),N}for(z=a(z);!Q.done;j++,Q=m.next())Q=y(z,d,j,Q.value,S),Q!==null&&(e&&Q.alternate!==null&&z.delete(Q.key===null?j:Q.key),r=u(Q,r,j),H===null?N=Q:H.sibling=Q,H=Q);return e&&z.forEach(function(xg){return l(d,xg)}),V&&vt(d,j),N}function $(d,r,m,S){if(typeof m=="object"&&m!==null&&m.type===ee&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case K:e:{for(var N=m.key;r!==null;){if(r.key===N){if(N=m.type,N===ee){if(r.tag===7){t(d,r.sibling),S=n(r,m.props.children),S.return=d,d=S;break e}}else if(r.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===al&&mr(N)===r.type){t(d,r.sibling),S=n(r,m.props),$a(S,m),S.return=d,d=S;break e}t(d,r);break}else l(d,r);r=r.sibling}m.type===ee?(S=pt(m.props.children,d.mode,S,m.key),S.return=d,d=S):(S=Zn(m.type,m.key,m.props,null,d.mode,S),$a(S,m),S.return=d,d=S)}return i(d);case Oe:e:{for(N=m.key;r!==null;){if(r.key===N)if(r.tag===4&&r.stateNode.containerInfo===m.containerInfo&&r.stateNode.implementation===m.implementation){t(d,r.sibling),S=n(r,m.children||[]),S.return=d,d=S;break e}else{t(d,r);break}else l(d,r);r=r.sibling}S=Ni(m,d.mode,S),S.return=d,d=S}return i(d);case al:return N=m._init,m=N(m._payload),$(d,r,m,S)}if(yl(m))return _(d,r,m,S);if(ke(m)){if(N=ke(m),typeof N!="function")throw Error(f(150));return m=N.call(m),R(d,r,m,S)}if(typeof m.then=="function")return $(d,r,ou(m),S);if(m.$$typeof===Ze)return $(d,r,Pn(d,m),S);ru(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,r!==null&&r.tag===6?(t(d,r.sibling),S=n(r,m),S.return=d,d=S):(t(d,r),S=Di(m,d.mode,S),S.return=d,d=S),i(d)):t(d,r)}return function(d,r,m,S){try{Pa=0;var N=$(d,r,m,S);return aa=null,N}catch(z){if(z===Ka||z===Wn)throw z;var H=He(29,z,null,d.mode);return H.lanes=S,H.return=d,H}finally{}}}var na=hr(!0),gr=hr(!1),el=Ee(null),dl=null;function kl(e){var l=e.alternate;J(pe,pe.current&1),J(el,e),dl===null&&(l===null||It.current!==null||l.memoizedState!==null)&&(dl=e)}function pr(e){if(e.tag===22){if(J(pe,pe.current),J(el,e),dl===null){var l=e.alternate;l!==null&&l.memoizedState!==null&&(dl=e)}}else Jl()}function Jl(){J(pe,pe.current),J(el,el.current)}function Ml(e){ie(el),dl===e&&(dl=null),ie(pe)}var pe=Ee(0);function fu(e){for(var l=e;l!==null;){if(l.tag===13){var t=l.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||kc(t)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function nc(e,l,t,a){l=e.memoizedState,t=t(a,l),t=t==null?l:B({},l,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var uc={enqueueSetState:function(e,l,t){e=e._reactInternals;var a=Xe(),n=Vl(a);n.payload=l,t!=null&&(n.callback=t),l=wl(e,n,a),l!==null&&(Qe(l,e,a),Qa(l,e,a))},enqueueReplaceState:function(e,l,t){e=e._reactInternals;var a=Xe(),n=Vl(a);n.tag=1,n.payload=l,t!=null&&(n.callback=t),l=wl(e,n,a),l!==null&&(Qe(l,e,a),Qa(l,e,a))},enqueueForceUpdate:function(e,l){e=e._reactInternals;var t=Xe(),a=Vl(t);a.tag=2,l!=null&&(a.callback=l),l=wl(e,a,t),l!==null&&(Qe(l,e,t),Qa(l,e,t))}};function yr(e,l,t,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):l.prototype&&l.prototype.isPureReactComponent?!_a(t,a)||!_a(n,u):!0}function vr(e,l,t,a){e=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(t,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(t,a),l.state!==e&&uc.enqueueReplaceState(l,l.state,null)}function Nt(e,l){var t=l;if("ref"in l){t={};for(var a in l)a!=="ref"&&(t[a]=l[a])}if(e=e.defaultProps){t===l&&(t=B({},t));for(var n in e)t[n]===void 0&&(t[n]=e[n])}return t}var du=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=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(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function br(e){du(e)}function Sr(e){console.error(e)}function Tr(e){du(e)}function mu(e,l){try{var t=e.onUncaughtError;t(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function xr(e,l,t){try{var a=e.onCaughtError;a(t.value,{componentStack:t.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ic(e,l,t){return t=Vl(t),t.tag=3,t.payload={element:null},t.callback=function(){mu(e,l)},t}function Ar(e){return e=Vl(e),e.tag=3,e}function Dr(e,l,t,a){var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){xr(l,t,a)}}var i=t.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){xr(l,t,a),typeof n!="function"&&(et===null?et=new Set([this]):et.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function xh(e,l,t,a,n){if(t.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=t.alternate,l!==null&&Ha(l,t,n,!0),t=el.current,t!==null){switch(t.tag){case 13:return dl===null?Cc():t.alternate===null&&oe===0&&(oe=3),t.flags&=-257,t.flags|=65536,t.lanes=n,a===Bi?t.flags|=16384:(l=t.updateQueue,l===null?t.updateQueue=new Set([a]):l.add(a),jc(e,a,n)),!1;case 22:return t.flags|=65536,a===Bi?t.flags|=16384:(l=t.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},t.updateQueue=l):(t=l.retryQueue,t===null?l.retryQueue=new Set([a]):t.add(a)),jc(e,a,n)),!1}throw Error(f(435,t.tag))}return jc(e,a,n),Cc(),!1}if(V)return l=el.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==zi&&(e=Error(f(422),{cause:a}),La(Pe(e,t)))):(a!==zi&&(l=Error(f(423),{cause:a}),La(Pe(l,t))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Pe(a,t),n=ic(e.stateNode,a,n),Hi(e,n),oe!==4&&(oe=2)),!1;var u=Error(f(520),{cause:a});if(u=Pe(u,t),nn===null?nn=[u]:nn.push(u),oe!==4&&(oe=2),l===null)return!0;a=Pe(a,t),t=l;do{switch(t.tag){case 3:return t.flags|=65536,e=n&-n,t.lanes|=e,e=ic(t.stateNode,a,e),Hi(t,e),!1;case 1:if(l=t.type,u=t.stateNode,(t.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(et===null||!et.has(u))))return t.flags|=65536,n&=-n,t.lanes|=n,n=Ar(n),Dr(n,e,t,a),Hi(t,n),!1}t=t.return}while(t!==null);return!1}var Nr=Error(f(461)),be=!1;function xe(e,l,t,a){l.child=e===null?gr(l,null,t,a):na(l,e.child,t,a)}function Mr(e,l,t,a,n){t=t.render;var u=l.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return xt(l),a=Qi(e,l,t,i,u,n),c=Vi(),e!==null&&!be?(wi(e,l,n),El(e,l,n)):(V&&c&&Mi(l),l.flags|=1,xe(e,l,a,n),l.child)}function Er(e,l,t,a,n){if(e===null){var u=t.type;return typeof u=="function"&&!Ai(u)&&u.defaultProps===void 0&&t.compare===null?(l.tag=15,l.type=u,zr(e,l,u,a,n)):(e=Zn(t.type,null,a,l,l.mode,n),e.ref=l.ref,e.return=l,l.child=e)}if(u=e.child,!hc(e,n)){var i=u.memoizedProps;if(t=t.compare,t=t!==null?t:_a,t(i,a)&&e.ref===l.ref)return El(e,l,n)}return l.flags|=1,e=Sl(u,a),e.ref=l.ref,e.return=l,l.child=e}function zr(e,l,t,a,n){if(e!==null){var u=e.memoizedProps;if(_a(u,a)&&e.ref===l.ref)if(be=!1,l.pendingProps=a=u,hc(e,n))(e.flags&131072)!==0&&(be=!0);else return l.lanes=e.lanes,El(e,l,n)}return cc(e,l,t,a,n)}function Or(e,l,t){var a=l.pendingProps,n=a.children,u=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((l.flags&128)!==0){if(a=u!==null?u.baseLanes|t:t,e!==null){for(n=l.child=e.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;l.childLanes=u&~a}else l.childLanes=0,l.child=null;return Cr(e,l,a,t)}if((t&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},e!==null&&$n(l,u!==null?u.cachePool:null),u!==null?zo(l,u):Yi(),pr(l);else return l.lanes=l.childLanes=536870912,Cr(e,l,u!==null?u.baseLanes|t:t,t)}else u!==null?($n(l,u.cachePool),zo(l,u),Jl(),l.memoizedState=null):(e!==null&&$n(l,null),Yi(),Jl());return xe(e,l,n,t),l.child}function Cr(e,l,t,a){var n=Ui();return n=n===null?null:{parent:ge._currentValue,pool:n},l.memoizedState={baseLanes:t,cachePool:n},e!==null&&$n(l,null),Yi(),pr(l),e!==null&&Ha(e,l,a,!0),null}function hu(e,l){var t=l.ref;if(t===null)e!==null&&e.ref!==null&&(l.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(f(284));(e===null||e.ref!==t)&&(l.flags|=4194816)}}function cc(e,l,t,a,n){return xt(l),t=Qi(e,l,t,a,void 0,n),a=Vi(),e!==null&&!be?(wi(e,l,n),El(e,l,n)):(V&&a&&Mi(l),l.flags|=1,xe(e,l,t,n),l.child)}function Rr(e,l,t,a,n,u){return xt(l),l.updateQueue=null,t=Co(l,a,t,n),Oo(e),a=Vi(),e!==null&&!be?(wi(e,l,u),El(e,l,u)):(V&&a&&Mi(l),l.flags|=1,xe(e,l,t,u),l.child)}function jr(e,l,t,a,n){if(xt(l),l.stateNode===null){var u=Jt,i=t.contextType;typeof i=="object"&&i!==null&&(u=Me(i)),u=new t(a,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=uc,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=a,u.state=l.memoizedState,u.refs={},qi(l),i=t.contextType,u.context=typeof i=="object"&&i!==null?Me(i):Jt,u.state=l.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(nc(l,t,i,a),u.state=l.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&uc.enqueueReplaceState(u,u.state,null),wa(l,a,u,n),Va(),u.state=l.memoizedState),typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(e===null){u=l.stateNode;var c=l.memoizedProps,s=Nt(t,c);u.props=s;var g=u.context,b=t.contextType;i=Jt,typeof b=="object"&&b!==null&&(i=Me(b));var x=t.getDerivedStateFromProps;b=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,b||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||g!==i)&&vr(l,u,a,i),Ql=!1;var p=l.memoizedState;u.state=p,wa(l,a,u,n),Va(),g=l.memoizedState,c||p!==g||Ql?(typeof x=="function"&&(nc(l,t,x,a),g=l.memoizedState),(s=Ql||yr(l,t,s,a,p,g,i))?(b||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(l.flags|=4194308)):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=g),u.props=a,u.state=g,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{u=l.stateNode,Li(e,l),i=l.memoizedProps,b=Nt(t,i),u.props=b,x=l.pendingProps,p=u.context,g=t.contextType,s=Jt,typeof g=="object"&&g!==null&&(s=Me(g)),c=t.getDerivedStateFromProps,(g=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==x||p!==s)&&vr(l,u,a,s),Ql=!1,p=l.memoizedState,u.state=p,wa(l,a,u,n),Va();var y=l.memoizedState;i!==x||p!==y||Ql||e!==null&&e.dependencies!==null&&Fn(e.dependencies)?(typeof c=="function"&&(nc(l,t,c,a),y=l.memoizedState),(b=Ql||yr(l,t,b,a,p,y,s)||e!==null&&e.dependencies!==null&&Fn(e.dependencies))?(g||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,y,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,y,s)),typeof u.componentDidUpdate=="function"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=y),u.props=a,u.state=y,u.context=s,a=b):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(l.flags|=1024),a=!1)}return u=a,hu(e,l),a=(l.flags&128)!==0,u||a?(u=l.stateNode,t=a&&typeof t.getDerivedStateFromError!="function"?null:u.render(),l.flags|=1,e!==null&&a?(l.child=na(l,e.child,null,n),l.child=na(l,null,t,n)):xe(e,l,t,n),l.memoizedState=u.state,e=l.child):e=El(e,l,n),e}function _r(e,l,t,a){return qa(),l.flags|=256,xe(e,l,t,a),l.child}var sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oc(e){return{baseLanes:e,cachePool:So()}}function rc(e,l,t){return e=e!==null?e.childLanes&~t:0,l&&(e|=ll),e}function Ur(e,l,t){var a=l.pendingProps,n=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(pe.current&2)!==0),i&&(n=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,e===null){if(V){if(n?kl(l):Jl(),V){var c=se,s;if(s=c){e:{for(s=c,c=fl;s.nodeType!==8;){if(!c){c=null;break e}if(s=il(s.nextSibling),s===null){c=null;break e}}c=s}c!==null?(l.memoizedState={dehydrated:c,treeContext:yt!==null?{id:Tl,overflow:xl}:null,retryLane:536870912,hydrationErrors:null},s=He(18,null,null,0),s.stateNode=c,s.return=l,l.child=s,ze=l,se=null,s=!0):s=!1}s||St(l)}if(c=l.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return kc(c)?l.lanes=32:l.lanes=536870912,null;Ml(l)}return c=a.children,a=a.fallback,n?(Jl(),n=l.mode,c=gu({mode:"hidden",children:c},n),a=pt(a,n,t,null),c.return=l,a.return=l,c.sibling=a,l.child=c,n=l.child,n.memoizedState=oc(t),n.childLanes=rc(e,i,t),l.memoizedState=sc,a):(kl(l),fc(l,c))}if(s=e.memoizedState,s!==null&&(c=s.dehydrated,c!==null)){if(u)l.flags&256?(kl(l),l.flags&=-257,l=dc(e,l,t)):l.memoizedState!==null?(Jl(),l.child=e.child,l.flags|=128,l=null):(Jl(),n=a.fallback,c=l.mode,a=gu({mode:"visible",children:a.children},c),n=pt(n,c,t,null),n.flags|=2,a.return=l,n.return=l,a.sibling=n,l.child=a,na(l,e.child,null,t),a=l.child,a.memoizedState=oc(t),a.childLanes=rc(e,i,t),l.memoizedState=sc,l=n);else if(kl(l),kc(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var g=i.dgst;i=g,a=Error(f(419)),a.stack="",a.digest=i,La({value:a,source:null,stack:null}),l=dc(e,l,t)}else if(be||Ha(e,l,t,!1),i=(t&e.childLanes)!==0,be||i){if(i=le,i!==null&&(a=t&-t,a=(a&42)!==0?1:Ju(a),a=(a&(i.suspendedLanes|t))!==0?0:a,a!==0&&a!==s.retryLane))throw s.retryLane=a,kt(e,a),Qe(i,e,a),Nr;c.data==="$?"||Cc(),l=dc(e,l,t)}else c.data==="$?"?(l.flags|=192,l.child=e.child,l=null):(e=s.treeContext,se=il(c.nextSibling),ze=l,V=!0,bt=null,fl=!1,e!==null&&(We[Ie++]=Tl,We[Ie++]=xl,We[Ie++]=yt,Tl=e.id,xl=e.overflow,yt=l),l=fc(l,a.children),l.flags|=4096);return l}return n?(Jl(),n=a.fallback,c=l.mode,s=e.child,g=s.sibling,a=Sl(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,g!==null?n=Sl(g,n):(n=pt(n,c,t,null),n.flags|=2),n.return=l,a.return=l,a.sibling=n,l.child=a,a=n,n=l.child,c=e.child.memoizedState,c===null?c=oc(t):(s=c.cachePool,s!==null?(g=ge._currentValue,s=s.parent!==g?{parent:g,pool:g}:s):s=So(),c={baseLanes:c.baseLanes|t,cachePool:s}),n.memoizedState=c,n.childLanes=rc(e,i,t),l.memoizedState=sc,a):(kl(l),t=e.child,e=t.sibling,t=Sl(t,{mode:"visible",children:a.children}),t.return=l,t.sibling=null,e!==null&&(i=l.deletions,i===null?(l.deletions=[e],l.flags|=16):i.push(e)),l.child=t,l.memoizedState=null,t)}function fc(e,l){return l=gu({mode:"visible",children:l},e.mode),l.return=e,e.child=l}function gu(e,l){return e=He(22,e,null,l),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function dc(e,l,t){return na(l,e.child,null,t),e=fc(l,l.pendingProps.children),e.flags|=2,l.memoizedState=null,e}function Br(e,l,t){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l),Ci(e.return,l,t)}function mc(e,l,t,a,n){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:t,tailMode:n}:(u.isBackwards=l,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=t,u.tailMode=n)}function qr(e,l,t){var a=l.pendingProps,n=a.revealOrder,u=a.tail;if(xe(e,l,a.children,t),a=pe.current,(a&2)!==0)a=a&1|2,l.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=l.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Br(e,t,l);else if(e.tag===19)Br(e,t,l);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===l)break e;for(;e.sibling===null;){if(e.return===null||e.return===l)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(J(pe,a),n){case"forwards":for(t=l.child,n=null;t!==null;)e=t.alternate,e!==null&&fu(e)===null&&(n=t),t=t.sibling;t=n,t===null?(n=l.child,l.child=null):(n=t.sibling,t.sibling=null),mc(l,!1,n,t,u);break;case"backwards":for(t=null,n=l.child,l.child=null;n!==null;){if(e=n.alternate,e!==null&&fu(e)===null){l.child=n;break}e=n.sibling,n.sibling=t,t=n,n=e}mc(l,!0,t,null,u);break;case"together":mc(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function El(e,l,t){if(e!==null&&(l.dependencies=e.dependencies),Il|=l.lanes,(t&l.childLanes)===0)if(e!==null){if(Ha(e,l,t,!1),(t&l.childLanes)===0)return null}else return null;if(e!==null&&l.child!==e.child)throw Error(f(153));if(l.child!==null){for(e=l.child,t=Sl(e,e.pendingProps),l.child=t,t.return=l;e.sibling!==null;)e=e.sibling,t=t.sibling=Sl(e,e.pendingProps),t.return=l;t.sibling=null}return l.child}function hc(e,l){return(e.lanes&l)!==0?!0:(e=e.dependencies,!!(e!==null&&Fn(e)))}function Ah(e,l,t){switch(l.tag){case 3:Mn(l,l.stateNode.containerInfo),Xl(l,ge,e.memoizedState.cache),qa();break;case 27:case 5:Qu(l);break;case 4:Mn(l,l.stateNode.containerInfo);break;case 10:Xl(l,l.type,l.memoizedProps.value);break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(kl(l),l.flags|=128,null):(t&l.child.childLanes)!==0?Ur(e,l,t):(kl(l),e=El(e,l,t),e!==null?e.sibling:null);kl(l);break;case 19:var n=(e.flags&128)!==0;if(a=(t&l.childLanes)!==0,a||(Ha(e,l,t,!1),a=(t&l.childLanes)!==0),n){if(a)return qr(e,l,t);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(pe,pe.current),a)break;return null;case 22:case 23:return l.lanes=0,Or(e,l,t);case 24:Xl(l,ge,e.memoizedState.cache)}return El(e,l,t)}function Lr(e,l,t){if(e!==null)if(e.memoizedProps!==l.pendingProps)be=!0;else{if(!hc(e,t)&&(l.flags&128)===0)return be=!1,Ah(e,l,t);be=(e.flags&131072)!==0}else be=!1,V&&(l.flags&1048576)!==0&&mo(l,Jn,l.index);switch(l.lanes=0,l.tag){case 16:e:{e=l.pendingProps;var a=l.elementType,n=a._init;if(a=n(a._payload),l.type=a,typeof a=="function")Ai(a)?(e=Nt(a,e),l.tag=1,l=jr(null,l,a,e,t)):(l.tag=0,l=cc(null,l,a,e,t));else{if(a!=null){if(n=a.$$typeof,n===Ll){l.tag=11,l=Mr(null,l,a,e,t);break e}else if(n===pl){l.tag=14,l=Er(null,l,a,e,t);break e}}throw l=Sa(a)||a,Error(f(306,l,""))}}return l;case 0:return cc(e,l,l.type,l.pendingProps,t);case 1:return a=l.type,n=Nt(a,l.pendingProps),jr(e,l,a,n,t);case 3:e:{if(Mn(l,l.stateNode.containerInfo),e===null)throw Error(f(387));a=l.pendingProps;var u=l.memoizedState;n=u.element,Li(e,l),wa(l,a,null,t);var i=l.memoizedState;if(a=i.cache,Xl(l,ge,a),a!==u.cache&&Ri(l,[ge],t,!0),Va(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=_r(e,l,a,t);break e}else if(a!==n){n=Pe(Error(f(424)),l),La(n),l=_r(e,l,a,t);break e}else{switch(e=l.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(se=il(e.firstChild),ze=l,V=!0,bt=null,fl=!0,t=gr(l,null,a,t),l.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(qa(),a===n){l=El(e,l,t);break e}xe(e,l,a,t)}l=l.child}return l;case 26:return hu(e,l),e===null?(t=Xf(l.type,null,l.pendingProps,null))?l.memoizedState=t:V||(t=l.type,e=l.pendingProps,a=Ou(Hl.current).createElement(t),a[Ne]=l,a[Ce]=e,De(a,t,e),ve(a),l.stateNode=a):l.memoizedState=Xf(l.type,e.memoizedProps,l.pendingProps,e.memoizedState),null;case 27:return Qu(l),e===null&&V&&(a=l.stateNode=Gf(l.type,l.pendingProps,Hl.current),ze=l,fl=!0,n=se,at(l.type)?(Jc=n,se=il(a.firstChild)):se=n),xe(e,l,l.pendingProps.children,t),hu(e,l),e===null&&(l.flags|=4194304),l.child;case 5:return e===null&&V&&((n=a=se)&&(a=$h(a,l.type,l.pendingProps,fl),a!==null?(l.stateNode=a,ze=l,se=il(a.firstChild),fl=!1,n=!0):n=!1),n||St(l)),Qu(l),n=l.type,u=l.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,Vc(n,u)?a=null:i!==null&&Vc(n,i)&&(l.flags|=32),l.memoizedState!==null&&(n=Qi(e,l,gh,null,null,t),hn._currentValue=n),hu(e,l),xe(e,l,a,t),l.child;case 6:return e===null&&V&&((e=t=se)&&(t=Wh(t,l.pendingProps,fl),t!==null?(l.stateNode=t,ze=l,se=null,e=!0):e=!1),e||St(l)),null;case 13:return Ur(e,l,t);case 4:return Mn(l,l.stateNode.containerInfo),a=l.pendingProps,e===null?l.child=na(l,null,a,t):xe(e,l,a,t),l.child;case 11:return Mr(e,l,l.type,l.pendingProps,t);case 7:return xe(e,l,l.pendingProps,t),l.child;case 8:return xe(e,l,l.pendingProps.children,t),l.child;case 12:return xe(e,l,l.pendingProps.children,t),l.child;case 10:return a=l.pendingProps,Xl(l,l.type,a.value),xe(e,l,a.children,t),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,xt(l),n=Me(n),a=a(n),l.flags|=1,xe(e,l,a,t),l.child;case 14:return Er(e,l,l.type,l.pendingProps,t);case 15:return zr(e,l,l.type,l.pendingProps,t);case 19:return qr(e,l,t);case 31:return a=l.pendingProps,t=l.mode,a={mode:a.mode,children:a.children},e===null?(t=gu(a,t),t.ref=l.ref,l.child=t,t.return=l,l=t):(t=Sl(e.child,a),t.ref=l.ref,l.child=t,t.return=l,l=t),l;case 22:return Or(e,l,t);case 24:return xt(l),a=Me(ge),e===null?(n=Ui(),n===null&&(n=le,u=ji(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=t),n=u),l.memoizedState={parent:a,cache:n},qi(l),Xl(l,ge,n)):((e.lanes&t)!==0&&(Li(e,l),wa(l,null,null,t),Va()),n=e.memoizedState,u=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),Xl(l,ge,a)):(a=u.cache,Xl(l,ge,a),a!==n.cache&&Ri(l,[ge],t,!0))),xe(e,l,l.pendingProps.children,t),l.child;case 29:throw l.pendingProps}throw Error(f(156,l.tag))}function zl(e){e.flags|=4}function Hr(e,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kf(l)){if(l=el.current,l!==null&&((X&4194048)===X?dl!==null:(X&62914560)!==X&&(X&536870912)===0||l!==dl))throw Xa=Bi,To;e.flags|=8192}}function pu(e,l){l!==null&&(e.flags|=4),e.flags&16384&&(l=e.tag!==22?gs():536870912,e.lanes|=l,sa|=l)}function Wa(e,l){if(!V)switch(e.tailMode){case"hidden":l=e.tail;for(var t=null;l!==null;)l.alternate!==null&&(t=l),l=l.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?l||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ce(e){var l=e.alternate!==null&&e.alternate.child===e.child,t=0,a=0;if(l)for(var n=e.child;n!==null;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=t,l}function Dh(e,l,t){var a=l.pendingProps;switch(Ei(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(l),null;case 1:return ce(l),null;case 3:return t=l.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Dl(ge),jt(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(Ba(l)?zl(l):e===null||e.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,po())),ce(l),null;case 26:return t=l.memoizedState,e===null?(zl(l),t!==null?(ce(l),Hr(l,t)):(ce(l),l.flags&=-16777217)):t?t!==e.memoizedState?(zl(l),ce(l),Hr(l,t)):(ce(l),l.flags&=-16777217):(e.memoizedProps!==a&&zl(l),ce(l),l.flags&=-16777217),null;case 27:En(l),t=Hl.current;var n=l.type;if(e!==null&&l.stateNode!=null)e.memoizedProps!==a&&zl(l);else{if(!a){if(l.stateNode===null)throw Error(f(166));return ce(l),null}e=ye.current,Ba(l)?ho(l):(e=Gf(n,a,t),l.stateNode=e,zl(l))}return ce(l),null;case 5:if(En(l),t=l.type,e!==null&&l.stateNode!=null)e.memoizedProps!==a&&zl(l);else{if(!a){if(l.stateNode===null)throw Error(f(166));return ce(l),null}if(e=ye.current,Ba(l))ho(l);else{switch(n=Ou(Hl.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",t);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;default:switch(t){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",t);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?n.createElement("select",{is:a.is}):n.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?n.createElement(t,{is:a.is}):n.createElement(t)}}e[Ne]=l,e[Ce]=a;e:for(n=l.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===l)break e;for(;n.sibling===null;){if(n.return===null||n.return===l)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l.stateNode=e;e:switch(De(e,t,a),t){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&zl(l)}}return ce(l),l.flags&=-16777217,null;case 6:if(e&&l.stateNode!=null)e.memoizedProps!==a&&zl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(f(166));if(e=Hl.current,Ba(l)){if(e=l.stateNode,t=l.memoizedProps,a=null,n=ze,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ne]=l,e=!!(e.nodeValue===t||a!==null&&a.suppressHydrationWarning===!0||jf(e.nodeValue,t)),e||St(l)}else e=Ou(e).createTextNode(a),e[Ne]=l,l.stateNode=e}return ce(l),null;case 13:if(a=l.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ba(l),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[Ne]=l}else qa(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ce(l),n=!1}else n=po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(Ml(l),l):(Ml(l),null)}if(Ml(l),(l.flags&128)!==0)return l.lanes=t,l;if(t=a!==null,e=e!==null&&e.memoizedState!==null,t){a=l.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool);var u=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)}return t!==e&&t&&(l.child.flags|=8192),pu(l,l.updateQueue),ce(l),null;case 4:return jt(),e===null&&Gc(l.stateNode.containerInfo),ce(l),null;case 10:return Dl(l.type),ce(l),null;case 19:if(ie(pe),n=l.memoizedState,n===null)return ce(l),null;if(a=(l.flags&128)!==0,u=n.rendering,u===null)if(a)Wa(n,!1);else{if(oe!==0||e!==null&&(e.flags&128)!==0)for(e=l.child;e!==null;){if(u=fu(e),u!==null){for(l.flags|=128,Wa(n,!1),e=u.updateQueue,l.updateQueue=e,pu(l,e),l.subtreeFlags=0,e=t,t=l.child;t!==null;)fo(t,e),t=t.sibling;return J(pe,pe.current&1|2),l.child}e=e.sibling}n.tail!==null&&rl()>bu&&(l.flags|=128,a=!0,Wa(n,!1),l.lanes=4194304)}else{if(!a)if(e=fu(u),e!==null){if(l.flags|=128,a=!0,e=e.updateQueue,l.updateQueue=e,pu(l,e),Wa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!V)return ce(l),null}else 2*rl()-n.renderingStartTime>bu&&t!==536870912&&(l.flags|=128,a=!0,Wa(n,!1),l.lanes=4194304);n.isBackwards?(u.sibling=l.child,l.child=u):(e=n.last,e!==null?e.sibling=u:l.child=u,n.last=u)}return n.tail!==null?(l=n.tail,n.rendering=l,n.tail=l.sibling,n.renderingStartTime=rl(),l.sibling=null,e=pe.current,J(pe,a?e&1|2:e&1),l):(ce(l),null);case 22:case 23:return Ml(l),Ki(),a=l.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(t&536870912)!==0&&(l.flags&128)===0&&(ce(l),l.subtreeFlags&6&&(l.flags|=8192)):ce(l),t=l.updateQueue,t!==null&&pu(l,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==t&&(l.flags|=2048),e!==null&&ie(At),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),l.memoizedState.cache!==t&&(l.flags|=2048),Dl(ge),ce(l),null;case 25:return null;case 30:return null}throw Error(f(156,l.tag))}function Nh(e,l){switch(Ei(l),l.tag){case 1:return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 3:return Dl(ge),jt(),e=l.flags,(e&65536)!==0&&(e&128)===0?(l.flags=e&-65537|128,l):null;case 26:case 27:case 5:return En(l),null;case 13:if(Ml(l),e=l.memoizedState,e!==null&&e.dehydrated!==null){if(l.alternate===null)throw Error(f(340));qa()}return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 19:return ie(pe),null;case 4:return jt(),null;case 10:return Dl(l.type),null;case 22:case 23:return Ml(l),Ki(),e!==null&&ie(At),e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 24:return Dl(ge),null;case 25:return null;default:return null}}function Gr(e,l){switch(Ei(l),l.tag){case 3:Dl(ge),jt();break;case 26:case 27:case 5:En(l);break;case 4:jt();break;case 13:Ml(l);break;case 19:ie(pe);break;case 10:Dl(l.type);break;case 22:case 23:Ml(l),Ki(),e!==null&&ie(At);break;case 24:Dl(ge)}}function Ia(e,l){try{var t=l.updateQueue,a=t!==null?t.lastEffect:null;if(a!==null){var n=a.next;t=n;do{if((t.tag&e)===e){a=void 0;var u=t.create,i=t.inst;a=u(),i.destroy=a}t=t.next}while(t!==n)}}catch(c){I(l,l.return,c)}}function Fl(e,l,t){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=l;var s=t,g=c;try{g()}catch(b){I(n,s,b)}}}a=a.next}while(a!==u)}}catch(b){I(l,l.return,b)}}function Yr(e){var l=e.updateQueue;if(l!==null){var t=e.stateNode;try{Eo(l,t)}catch(a){I(e,e.return,a)}}}function Kr(e,l,t){t.props=Nt(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(a){I(e,l,a)}}function en(e,l){try{var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof t=="function"?e.refCleanup=t(a):t.current=a}}catch(n){I(e,l,n)}}function ml(e,l){var t=e.ref,a=e.refCleanup;if(t!==null)if(typeof a=="function")try{a()}catch(n){I(e,l,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(n){I(e,l,n)}else t.current=null}function Xr(e){var l=e.type,t=e.memoizedProps,a=e.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":t.autoFocus&&a.focus();break e;case"img":t.src?a.src=t.src:t.srcSet&&(a.srcset=t.srcSet)}}catch(n){I(e,e.return,n)}}function gc(e,l,t){try{var a=e.stateNode;Zh(a,e.type,t,l),a[Ce]=l}catch(n){I(e,e.return,n)}}function Qr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&at(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qr(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&&at(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 yc(e,l,t){var a=e.tag;if(a===5||a===6)e=e.stateNode,l?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,l):(l=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.appendChild(e),t=t._reactRootContainer,t!=null||l.onclick!==null||(l.onclick=zu));else if(a!==4&&(a===27&&at(e.type)&&(t=e.stateNode,l=null),e=e.child,e!==null))for(yc(e,l,t),e=e.sibling;e!==null;)yc(e,l,t),e=e.sibling}function yu(e,l,t){var a=e.tag;if(a===5||a===6)e=e.stateNode,l?t.insertBefore(e,l):t.appendChild(e);else if(a!==4&&(a===27&&at(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(yu(e,l,t),e=e.sibling;e!==null;)yu(e,l,t),e=e.sibling}function Vr(e){var l=e.stateNode,t=e.memoizedProps;try{for(var a=e.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);De(l,a,t),l[Ne]=e,l[Ce]=t}catch(u){I(e,e.return,u)}}var Ol=!1,fe=!1,vc=!1,wr=typeof WeakSet=="function"?WeakSet:Set,Se=null;function Mh(e,l){if(e=e.containerInfo,Xc=Bu,e=lo(e),pi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var a=t.getSelection&&t.getSelection();if(a&&a.rangeCount!==0){t=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{t.nodeType,u.nodeType}catch{t=null;break e}var i=0,c=-1,s=-1,g=0,b=0,x=e,p=null;l:for(;;){for(var y;x!==t||n!==0&&x.nodeType!==3||(c=i+n),x!==u||a!==0&&x.nodeType!==3||(s=i+a),x.nodeType===3&&(i+=x.nodeValue.length),(y=x.firstChild)!==null;)p=x,x=y;for(;;){if(x===e)break l;if(p===t&&++g===n&&(c=i),p===u&&++b===a&&(s=i),(y=x.nextSibling)!==null)break;x=p,p=x.parentNode}x=y}t=c===-1||s===-1?null:{start:c,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Qc={focusedElem:e,selectionRange:t},Bu=!1,Se=l;Se!==null;)if(l=Se,e=l.child,(l.subtreeFlags&1024)!==0&&e!==null)e.return=l,Se=e;else for(;Se!==null;){switch(l=Se,u=l.alternate,e=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,t=l,n=u.memoizedProps,u=u.memoizedState,a=t.stateNode;try{var _=Nt(t.type,n,t.elementType===t.type);e=a.getSnapshotBeforeUpdate(_,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(R){I(t,t.return,R)}}break;case 3:if((e&1024)!==0){if(e=l.stateNode.containerInfo,t=e.nodeType,t===9)Zc(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zc(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(f(163))}if(e=l.sibling,e!==null){e.return=l.return,Se=e;break}Se=l.return}}function Zr(e,l,t){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Pl(e,t),a&4&&Ia(5,t);break;case 1:if(Pl(e,t),a&4)if(e=t.stateNode,l===null)try{e.componentDidMount()}catch(i){I(t,t.return,i)}else{var n=Nt(t.type,l.memoizedProps);l=l.memoizedState;try{e.componentDidUpdate(n,l,e.__reactInternalSnapshotBeforeUpdate)}catch(i){I(t,t.return,i)}}a&64&&Yr(t),a&512&&en(t,t.return);break;case 3:if(Pl(e,t),a&64&&(e=t.updateQueue,e!==null)){if(l=null,t.child!==null)switch(t.child.tag){case 27:case 5:l=t.child.stateNode;break;case 1:l=t.child.stateNode}try{Eo(e,l)}catch(i){I(t,t.return,i)}}break;case 27:l===null&&a&4&&Vr(t);case 26:case 5:Pl(e,t),l===null&&a&4&&Xr(t),a&512&&en(t,t.return);break;case 12:Pl(e,t);break;case 13:Pl(e,t),a&4&&Fr(e,t),a&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=Bh.bind(null,t),Ih(e,t))));break;case 22:if(a=t.memoizedState!==null||Ol,!a){l=l!==null&&l.memoizedState!==null||fe,n=Ol;var u=fe;Ol=a,(fe=l)&&!u?$l(e,t,(t.subtreeFlags&8772)!==0):Pl(e,t),Ol=n,fe=u}break;case 30:break;default:Pl(e,t)}}function kr(e){var l=e.alternate;l!==null&&(e.alternate=null,kr(l)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(l=e.stateNode,l!==null&&$u(l)),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 ue=null,_e=!1;function Cl(e,l,t){for(t=t.child;t!==null;)Jr(e,l,t),t=t.sibling}function Jr(e,l,t){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Ta,t)}catch{}switch(t.tag){case 26:fe||ml(t,l),Cl(e,l,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:fe||ml(t,l);var a=ue,n=_e;at(t.type)&&(ue=t.stateNode,_e=!1),Cl(e,l,t),rn(t.stateNode),ue=a,_e=n;break;case 5:fe||ml(t,l);case 6:if(a=ue,n=_e,ue=null,Cl(e,l,t),ue=a,_e=n,ue!==null)if(_e)try{(ue.nodeType===9?ue.body:ue.nodeName==="HTML"?ue.ownerDocument.body:ue).removeChild(t.stateNode)}catch(u){I(t,l,u)}else try{ue.removeChild(t.stateNode)}catch(u){I(t,l,u)}break;case 18:ue!==null&&(_e?(e=ue,Lf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),vn(e)):Lf(ue,t.stateNode));break;case 4:a=ue,n=_e,ue=t.stateNode.containerInfo,_e=!0,Cl(e,l,t),ue=a,_e=n;break;case 0:case 11:case 14:case 15:fe||Fl(2,t,l),fe||Fl(4,t,l),Cl(e,l,t);break;case 1:fe||(ml(t,l),a=t.stateNode,typeof a.componentWillUnmount=="function"&&Kr(t,l,a)),Cl(e,l,t);break;case 21:Cl(e,l,t);break;case 22:fe=(a=fe)||t.memoizedState!==null,Cl(e,l,t),fe=a;break;default:Cl(e,l,t)}}function Fr(e,l){if(l.memoizedState===null&&(e=l.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vn(e)}catch(t){I(l,l.return,t)}}function Eh(e){switch(e.tag){case 13:case 19:var l=e.stateNode;return l===null&&(l=e.stateNode=new wr),l;case 22:return e=e.stateNode,l=e._retryCache,l===null&&(l=e._retryCache=new wr),l;default:throw Error(f(435,e.tag))}}function bc(e,l){var t=Eh(e);l.forEach(function(a){var n=qh.bind(null,e,a);t.has(a)||(t.add(a),a.then(n,n))})}function Ge(e,l){var t=l.deletions;if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],u=e,i=l,c=i;e:for(;c!==null;){switch(c.tag){case 27:if(at(c.type)){ue=c.stateNode,_e=!1;break e}break;case 5:ue=c.stateNode,_e=!1;break e;case 3:case 4:ue=c.stateNode.containerInfo,_e=!0;break e}c=c.return}if(ue===null)throw Error(f(160));Jr(u,i,n),ue=null,_e=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)Pr(l,e),l=l.sibling}var ul=null;function Pr(e,l){var t=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ge(l,e),Ye(e),a&4&&(Fl(3,e,e.return),Ia(3,e),Fl(5,e,e.return));break;case 1:Ge(l,e),Ye(e),a&512&&(fe||t===null||ml(t,t.return)),a&64&&Ol&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?a:t.concat(a))));break;case 26:var n=ul;if(Ge(l,e),Ye(e),a&512&&(fe||t===null||ml(t,t.return)),a&4){var u=t!==null?t.memoizedState:null;if(a=e.memoizedState,t===null)if(a===null)if(e.stateNode===null){e:{a=e.type,t=e.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Da]||u[Ne]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),De(u,a,t),u[Ne]=e,ve(u),a=u;break e;case"link":var i=wf("link","href",n).get(a+(t.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&u.getAttribute("rel")===(t.rel==null?null:t.rel)&&u.getAttribute("title")===(t.title==null?null:t.title)&&u.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){i.splice(c,1);break l}}u=n.createElement(a),De(u,a,t),n.head.appendChild(u);break;case"meta":if(i=wf("meta","content",n).get(a+(t.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(t.content==null?null:""+t.content)&&u.getAttribute("name")===(t.name==null?null:t.name)&&u.getAttribute("property")===(t.property==null?null:t.property)&&u.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&u.getAttribute("charset")===(t.charSet==null?null:t.charSet)){i.splice(c,1);break l}}u=n.createElement(a),De(u,a,t),n.head.appendChild(u);break;default:throw Error(f(468,a))}u[Ne]=e,ve(u),a=u}e.stateNode=a}else Zf(n,e.type,e.stateNode);else e.stateNode=Vf(n,a,e.memoizedProps);else u!==a?(u===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):u.count--,a===null?Zf(n,e.type,e.stateNode):Vf(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&gc(e,e.memoizedProps,t.memoizedProps)}break;case 27:Ge(l,e),Ye(e),a&512&&(fe||t===null||ml(t,t.return)),t!==null&&a&4&&gc(e,e.memoizedProps,t.memoizedProps);break;case 5:if(Ge(l,e),Ye(e),a&512&&(fe||t===null||ml(t,t.return)),e.flags&32){n=e.stateNode;try{Yt(n,"")}catch(y){I(e,e.return,y)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,gc(e,n,t!==null?t.memoizedProps:n)),a&1024&&(vc=!0);break;case 6:if(Ge(l,e),Ye(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,t=e.stateNode;try{t.nodeValue=a}catch(y){I(e,e.return,y)}}break;case 3:if(ju=null,n=ul,ul=Cu(l.containerInfo),Ge(l,e),ul=n,Ye(e),a&4&&t!==null&&t.memoizedState.isDehydrated)try{vn(l.containerInfo)}catch(y){I(e,e.return,y)}vc&&(vc=!1,$r(e));break;case 4:a=ul,ul=Cu(e.stateNode.containerInfo),Ge(l,e),Ye(e),ul=a;break;case 12:Ge(l,e),Ye(e);break;case 13:Ge(l,e),Ye(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(Nc=rl()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bc(e,a)));break;case 22:n=e.memoizedState!==null;var s=t!==null&&t.memoizedState!==null,g=Ol,b=fe;if(Ol=g||n,fe=b||s,Ge(l,e),fe=b,Ol=g,Ye(e),a&8192)e:for(l=e.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(t===null||s||Ol||fe||Mt(e)),t=null,l=e;;){if(l.tag===5||l.tag===26){if(t===null){s=t=l;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var x=s.memoizedProps.style,p=x!=null&&x.hasOwnProperty("display")?x.display:null;c.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(y){I(s,s.return,y)}}}else if(l.tag===6){if(t===null){s=l;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(y){I(s,s.return,y)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===e)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break e;for(;l.sibling===null;){if(l.return===null||l.return===e)break e;t===l&&(t=null),l=l.return}t===l&&(t=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=e.updateQueue,a!==null&&(t=a.retryQueue,t!==null&&(a.retryQueue=null,bc(e,t))));break;case 19:Ge(l,e),Ye(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bc(e,a)));break;case 30:break;case 21:break;default:Ge(l,e),Ye(e)}}function Ye(e){var l=e.flags;if(l&2){try{for(var t,a=e.return;a!==null;){if(Qr(a)){t=a;break}a=a.return}if(t==null)throw Error(f(160));switch(t.tag){case 27:var n=t.stateNode,u=pc(e);yu(e,u,n);break;case 5:var i=t.stateNode;t.flags&32&&(Yt(i,""),t.flags&=-33);var c=pc(e);yu(e,c,i);break;case 3:case 4:var s=t.stateNode.containerInfo,g=pc(e);yc(e,g,s);break;default:throw Error(f(161))}}catch(b){I(e,e.return,b)}e.flags&=-3}l&4096&&(e.flags&=-4097)}function $r(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var l=e;$r(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),e=e.sibling}}function Pl(e,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Zr(e,l.alternate,l),l=l.sibling}function Mt(e){for(e=e.child;e!==null;){var l=e;switch(l.tag){case 0:case 11:case 14:case 15:Fl(4,l,l.return),Mt(l);break;case 1:ml(l,l.return);var t=l.stateNode;typeof t.componentWillUnmount=="function"&&Kr(l,l.return,t),Mt(l);break;case 27:rn(l.stateNode);case 26:case 5:ml(l,l.return),Mt(l);break;case 22:l.memoizedState===null&&Mt(l);break;case 30:Mt(l);break;default:Mt(l)}e=e.sibling}}function $l(e,l,t){for(t=t&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=e,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:$l(n,u,t),Ia(4,u);break;case 1:if($l(n,u,t),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(g){I(a,a.return,g)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)Mo(s[n],c)}catch(g){I(a,a.return,g)}}t&&i&64&&Yr(u),en(u,u.return);break;case 27:Vr(u);case 26:case 5:$l(n,u,t),t&&a===null&&i&4&&Xr(u),en(u,u.return);break;case 12:$l(n,u,t);break;case 13:$l(n,u,t),t&&i&4&&Fr(n,u);break;case 22:u.memoizedState===null&&$l(n,u,t),en(u,u.return);break;case 30:break;default:$l(n,u,t)}l=l.sibling}}function Sc(e,l){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&Ga(t))}function Tc(e,l){e=null,l.alternate!==null&&(e=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==e&&(l.refCount++,e!=null&&Ga(e))}function hl(e,l,t,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Wr(e,l,t,a),l=l.sibling}function Wr(e,l,t,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:hl(e,l,t,a),n&2048&&Ia(9,l);break;case 1:hl(e,l,t,a);break;case 3:hl(e,l,t,a),n&2048&&(e=null,l.alternate!==null&&(e=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==e&&(l.refCount++,e!=null&&Ga(e)));break;case 12:if(n&2048){hl(e,l,t,a),e=l.stateNode;try{var u=l.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,l.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){I(l,l.return,s)}}else hl(e,l,t,a);break;case 13:hl(e,l,t,a);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?hl(e,l,t,a):ln(e,l):u._visibility&2?hl(e,l,t,a):(u._visibility|=2,ua(e,l,t,a,(l.subtreeFlags&10256)!==0)),n&2048&&Sc(i,l);break;case 24:hl(e,l,t,a),n&2048&&Tc(l.alternate,l);break;default:hl(e,l,t,a)}}function ua(e,l,t,a,n){for(n=n&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var u=e,i=l,c=t,s=a,g=i.flags;switch(i.tag){case 0:case 11:case 15:ua(u,i,c,s,n),Ia(8,i);break;case 23:break;case 22:var b=i.stateNode;i.memoizedState!==null?b._visibility&2?ua(u,i,c,s,n):ln(u,i):(b._visibility|=2,ua(u,i,c,s,n)),n&&g&2048&&Sc(i.alternate,i);break;case 24:ua(u,i,c,s,n),n&&g&2048&&Tc(i.alternate,i);break;default:ua(u,i,c,s,n)}l=l.sibling}}function ln(e,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var t=e,a=l,n=a.flags;switch(a.tag){case 22:ln(t,a),n&2048&&Sc(a.alternate,a);break;case 24:ln(t,a),n&2048&&Tc(a.alternate,a);break;default:ln(t,a)}l=l.sibling}}var tn=8192;function ia(e){if(e.subtreeFlags&tn)for(e=e.child;e!==null;)Ir(e),e=e.sibling}function Ir(e){switch(e.tag){case 26:ia(e),e.flags&tn&&e.memoizedState!==null&&dg(ul,e.memoizedState,e.memoizedProps);break;case 5:ia(e);break;case 3:case 4:var l=ul;ul=Cu(e.stateNode.containerInfo),ia(e),ul=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=tn,tn=16777216,ia(e),tn=l):ia(e));break;default:ia(e)}}function ef(e){var l=e.alternate;if(l!==null&&(e=l.child,e!==null)){l.child=null;do l=e.sibling,e.sibling=null,e=l;while(e!==null)}}function an(e){var l=e.deletions;if((e.flags&16)!==0){if(l!==null)for(var t=0;t<l.length;t++){var a=l[t];Se=a,tf(a,e)}ef(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lf(e),e=e.sibling}function lf(e){switch(e.tag){case 0:case 11:case 15:an(e),e.flags&2048&&Fl(9,e,e.return);break;case 3:an(e);break;case 12:an(e);break;case 22:var l=e.stateNode;e.memoizedState!==null&&l._visibility&2&&(e.return===null||e.return.tag!==13)?(l._visibility&=-3,vu(e)):an(e);break;default:an(e)}}function vu(e){var l=e.deletions;if((e.flags&16)!==0){if(l!==null)for(var t=0;t<l.length;t++){var a=l[t];Se=a,tf(a,e)}ef(e)}for(e=e.child;e!==null;){switch(l=e,l.tag){case 0:case 11:case 15:Fl(8,l,l.return),vu(l);break;case 22:t=l.stateNode,t._visibility&2&&(t._visibility&=-3,vu(l));break;default:vu(l)}e=e.sibling}}function tf(e,l){for(;Se!==null;){var t=Se;switch(t.tag){case 0:case 11:case 15:Fl(8,t,l);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var a=t.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ga(t.memoizedState.cache)}if(a=t.child,a!==null)a.return=t,Se=a;else e:for(t=e;Se!==null;){a=Se;var n=a.sibling,u=a.return;if(kr(a),a===t){Se=null;break e}if(n!==null){n.return=u,Se=n;break e}Se=u}}}var zh={getCacheForType:function(e){var l=Me(ge),t=l.data.get(e);return t===void 0&&(t=e(),l.data.set(e,t)),t}},Oh=typeof WeakMap=="function"?WeakMap:Map,Z=0,le=null,G=null,X=0,k=0,Ke=null,Wl=!1,ca=!1,xc=!1,Rl=0,oe=0,Il=0,Et=0,Ac=0,ll=0,sa=0,nn=null,Ue=null,Dc=!1,Nc=0,bu=1/0,Su=null,et=null,Ae=0,lt=null,oa=null,ra=0,Mc=0,Ec=null,af=null,un=0,zc=null;function Xe(){if((Z&2)!==0&&X!==0)return X&-X;if(T.T!==null){var e=$t;return e!==0?e:Bc()}return vs()}function nf(){ll===0&&(ll=(X&536870912)===0||V?hs():536870912);var e=el.current;return e!==null&&(e.flags|=32),ll}function Qe(e,l,t){(e===le&&(k===2||k===9)||e.cancelPendingCommit!==null)&&(fa(e,0),tt(e,X,ll,!1)),Aa(e,t),((Z&2)===0||e!==le)&&(e===le&&((Z&2)===0&&(Et|=t),oe===4&&tt(e,X,ll,!1)),gl(e))}function uf(e,l,t){if((Z&6)!==0)throw Error(f(327));var a=!t&&(l&124)===0&&(l&e.expiredLanes)===0||xa(e,l),n=a?jh(e,l):Rc(e,l,!0),u=a;do{if(n===0){ca&&!a&&tt(e,l,0,!1);break}else{if(t=e.current.alternate,u&&!Ch(t)){n=Rc(e,l,!1),u=!1;continue}if(n===2){if(u=l,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;e:{var c=e;n=nn;var s=c.current.memoizedState.isDehydrated;if(s&&(fa(c,i).flags|=256),i=Rc(c,i,!1),i!==2){if(xc&&!s){c.errorRecoveryDisabledLanes|=u,Et|=u,n=4;break e}u=Ue,Ue=n,u!==null&&(Ue===null?Ue=u:Ue.push.apply(Ue,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){fa(e,0),tt(e,l,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(f(345));case 4:if((l&4194048)!==l)break;case 6:tt(a,l,ll,!Wl);break e;case 2:Ue=null;break;case 3:case 5:break;default:throw Error(f(329))}if((l&62914560)===l&&(n=Nc+300-rl(),10<n)){if(tt(a,l,ll,!Wl),Rn(a,0,!0)!==0)break e;a.timeoutHandle=Bf(cf.bind(null,a,t,Ue,Su,Dc,l,ll,Et,sa,Wl,u,2,-0,0),n);break e}cf(a,t,Ue,Su,Dc,l,ll,Et,sa,Wl,u,0,-0,0)}}break}while(!0);gl(e)}function cf(e,l,t,a,n,u,i,c,s,g,b,x,p,y){if(e.timeoutHandle=-1,x=l.subtreeFlags,(x&8192||(x&16785408)===16785408)&&(mn={stylesheets:null,count:0,unsuspend:fg},Ir(l),x=mg(),x!==null)){e.cancelPendingCommit=x(hf.bind(null,e,l,u,t,a,n,i,c,s,b,1,p,y)),tt(e,u,i,!g);return}hf(e,l,u,t,a,n,i,c,s)}function Ch(e){for(var l=e;;){var t=l.tag;if((t===0||t===11||t===15)&&l.flags&16384&&(t=l.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var a=0;a<t.length;a++){var n=t[a],u=n.getSnapshot;n=n.value;try{if(!Le(u(),n))return!1}catch{return!1}}if(t=l.child,l.subtreeFlags&16384&&t!==null)t.return=l,l=t;else{if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function tt(e,l,t,a){l&=~Ac,l&=~Et,e.suspendedLanes|=l,e.pingedLanes&=~l,a&&(e.warmLanes|=l),a=e.expirationTimes;for(var n=l;0<n;){var u=31-qe(n),i=1<<u;a[u]=-1,n&=~i}t!==0&&ps(e,t,l)}function Tu(){return(Z&6)===0?(cn(0),!1):!0}function Oc(){if(G!==null){if(k===0)var e=G.return;else e=G,Al=Tt=null,Zi(e),aa=null,Pa=0,e=G;for(;e!==null;)Gr(e.alternate,e),e=e.return;G=null}}function fa(e,l){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,Jh(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),Oc(),le=e,G=t=Sl(e.current,null),X=l,k=0,Ke=null,Wl=!1,ca=xa(e,l),xc=!1,sa=ll=Ac=Et=Il=oe=0,Ue=nn=null,Dc=!1,(l&8)!==0&&(l|=l&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=l;0<a;){var n=31-qe(a),u=1<<n;l|=e[n],a&=~u}return Rl=l,Qn(),t}function sf(e,l){L=null,T.H=su,l===Ka||l===Wn?(l=Do(),k=3):l===To?(l=Do(),k=4):k=l===Nr?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Ke=l,G===null&&(oe=1,mu(e,Pe(l,e.current)))}function of(){var e=T.H;return T.H=su,e===null?su:e}function rf(){var e=T.A;return T.A=zh,e}function Cc(){oe=4,Wl||(X&4194048)!==X&&el.current!==null||(ca=!0),(Il&134217727)===0&&(Et&134217727)===0||le===null||tt(le,X,ll,!1)}function Rc(e,l,t){var a=Z;Z|=2;var n=of(),u=rf();(le!==e||X!==l)&&(Su=null,fa(e,l)),l=!1;var i=oe;e:do try{if(k!==0&&G!==null){var c=G,s=Ke;switch(k){case 8:Oc(),i=6;break e;case 3:case 2:case 9:case 6:el.current===null&&(l=!0);var g=k;if(k=0,Ke=null,da(e,c,s,g),t&&ca){i=0;break e}break;default:g=k,k=0,Ke=null,da(e,c,s,g)}}Rh(),i=oe;break}catch(b){sf(e,b)}while(!0);return l&&e.shellSuspendCounter++,Al=Tt=null,Z=a,T.H=n,T.A=u,G===null&&(le=null,X=0,Qn()),i}function Rh(){for(;G!==null;)ff(G)}function jh(e,l){var t=Z;Z|=2;var a=of(),n=rf();le!==e||X!==l?(Su=null,bu=rl()+500,fa(e,l)):ca=xa(e,l);e:do try{if(k!==0&&G!==null){l=G;var u=Ke;l:switch(k){case 1:k=0,Ke=null,da(e,l,u,1);break;case 2:case 9:if(xo(u)){k=0,Ke=null,df(l);break}l=function(){k!==2&&k!==9||le!==e||(k=7),gl(e)},u.then(l,l);break e;case 3:k=7;break e;case 4:k=5;break e;case 7:xo(u)?(k=0,Ke=null,df(l)):(k=0,Ke=null,da(e,l,u,7));break;case 5:var i=null;switch(G.tag){case 26:i=G.memoizedState;case 5:case 27:var c=G;if(!i||kf(i)){k=0,Ke=null;var s=c.sibling;if(s!==null)G=s;else{var g=c.return;g!==null?(G=g,xu(g)):G=null}break l}}k=0,Ke=null,da(e,l,u,5);break;case 6:k=0,Ke=null,da(e,l,u,6);break;case 8:Oc(),oe=6;break e;default:throw Error(f(462))}}_h();break}catch(b){sf(e,b)}while(!0);return Al=Tt=null,T.H=a,T.A=n,Z=t,G!==null?0:(le=null,X=0,Qn(),oe)}function _h(){for(;G!==null&&!lm();)ff(G)}function ff(e){var l=Lr(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,l===null?xu(e):G=l}function df(e){var l=e,t=l.alternate;switch(l.tag){case 15:case 0:l=Rr(t,l,l.pendingProps,l.type,void 0,X);break;case 11:l=Rr(t,l,l.pendingProps,l.type.render,l.ref,X);break;case 5:Zi(l);default:Gr(t,l),l=G=fo(l,Rl),l=Lr(t,l,Rl)}e.memoizedProps=e.pendingProps,l===null?xu(e):G=l}function da(e,l,t,a){Al=Tt=null,Zi(l),aa=null,Pa=0;var n=l.return;try{if(xh(e,n,l,t,X)){oe=1,mu(e,Pe(t,e.current)),G=null;return}}catch(u){if(n!==null)throw G=n,u;oe=1,mu(e,Pe(t,e.current)),G=null;return}l.flags&32768?(V||a===1?e=!0:ca||(X&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=el.current,a!==null&&a.tag===13&&(a.flags|=16384))),mf(l,e)):xu(l)}function xu(e){var l=e;do{if((l.flags&32768)!==0){mf(l,Wl);return}e=l.return;var t=Dh(l.alternate,l,Rl);if(t!==null){G=t;return}if(l=l.sibling,l!==null){G=l;return}G=l=e}while(l!==null);oe===0&&(oe=5)}function mf(e,l){do{var t=Nh(e.alternate,e);if(t!==null){t.flags&=32767,G=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!l&&(e=e.sibling,e!==null)){G=e;return}G=e=t}while(e!==null);oe=6,G=null}function hf(e,l,t,a,n,u,i,c,s){e.cancelPendingCommit=null;do Au();while(Ae!==0);if((Z&6)!==0)throw Error(f(327));if(l!==null){if(l===e.current)throw Error(f(177));if(u=l.lanes|l.childLanes,u|=Ti,fm(e,t,u,i,c,s),e===le&&(G=le=null,X=0),oa=l,lt=e,ra=t,Mc=u,Ec=n,af=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Lh(zn,function(){return bf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,n=D.p,D.p=2,i=Z,Z|=4;try{Mh(e,l,t)}finally{Z=i,D.p=n,T.T=a}}Ae=1,gf(),pf(),yf()}}function gf(){if(Ae===1){Ae=0;var e=lt,l=oa,t=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||t){t=T.T,T.T=null;var a=D.p;D.p=2;var n=Z;Z|=4;try{Pr(l,e);var u=Qc,i=lo(e.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&eo(c.ownerDocument.documentElement,c)){if(s!==null&&pi(c)){var g=s.start,b=s.end;if(b===void 0&&(b=g),"selectionStart"in c)c.selectionStart=g,c.selectionEnd=Math.min(b,c.value.length);else{var x=c.ownerDocument||document,p=x&&x.defaultView||window;if(p.getSelection){var y=p.getSelection(),_=c.textContent.length,R=Math.min(s.start,_),$=s.end===void 0?R:Math.min(s.end,_);!y.extend&&R>$&&(i=$,$=R,R=i);var d=Is(c,R),r=Is(c,$);if(d&&r&&(y.rangeCount!==1||y.anchorNode!==d.node||y.anchorOffset!==d.offset||y.focusNode!==r.node||y.focusOffset!==r.offset)){var m=x.createRange();m.setStart(d.node,d.offset),y.removeAllRanges(),R>$?(y.addRange(m),y.extend(r.node,r.offset)):(m.setEnd(r.node,r.offset),y.addRange(m))}}}}for(x=[],y=c;y=y.parentNode;)y.nodeType===1&&x.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<x.length;c++){var S=x[c];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Bu=!!Xc,Qc=Xc=null}finally{Z=n,D.p=a,T.T=t}}e.current=l,Ae=2}}function pf(){if(Ae===2){Ae=0;var e=lt,l=oa,t=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||t){t=T.T,T.T=null;var a=D.p;D.p=2;var n=Z;Z|=4;try{Zr(e,l.alternate,l)}finally{Z=n,D.p=a,T.T=t}}Ae=3}}function yf(){if(Ae===4||Ae===3){Ae=0,tm();var e=lt,l=oa,t=ra,a=af;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ae=5:(Ae=0,oa=lt=null,vf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(et=null),Fu(t),l=l.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Ta,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=T.T,n=D.p,D.p=2,T.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{T.T=l,D.p=n}}(ra&3)!==0&&Au(),gl(e),n=e.pendingLanes,(t&4194090)!==0&&(n&42)!==0?e===zc?un++:(un=0,zc=e):un=0,cn(0)}}function vf(e,l){(e.pooledCacheLanes&=l)===0&&(l=e.pooledCache,l!=null&&(e.pooledCache=null,Ga(l)))}function Au(e){return gf(),pf(),yf(),bf()}function bf(){if(Ae!==5)return!1;var e=lt,l=Mc;Mc=0;var t=Fu(ra),a=T.T,n=D.p;try{D.p=32>t?32:t,T.T=null,t=Ec,Ec=null;var u=lt,i=ra;if(Ae=0,oa=lt=null,ra=0,(Z&6)!==0)throw Error(f(331));var c=Z;if(Z|=4,lf(u.current),Wr(u,u.current,i,t),Z=c,cn(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Ta,u)}catch{}return!0}finally{D.p=n,T.T=a,vf(e,l)}}function Sf(e,l,t){l=Pe(t,l),l=ic(e.stateNode,l,2),e=wl(e,l,2),e!==null&&(Aa(e,2),gl(e))}function I(e,l,t){if(e.tag===3)Sf(e,e,t);else for(;l!==null;){if(l.tag===3){Sf(l,e,t);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(et===null||!et.has(a))){e=Pe(t,e),t=Ar(2),a=wl(l,t,2),a!==null&&(Dr(t,a,l,e),Aa(a,2),gl(a));break}}l=l.return}}function jc(e,l,t){var a=e.pingCache;if(a===null){a=e.pingCache=new Oh;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(t)||(xc=!0,n.add(t),e=Uh.bind(null,e,l,t),l.then(e,e))}function Uh(e,l,t){var a=e.pingCache;a!==null&&a.delete(l),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,le===e&&(X&t)===t&&(oe===4||oe===3&&(X&62914560)===X&&300>rl()-Nc?(Z&2)===0&&fa(e,0):Ac|=t,sa===X&&(sa=0)),gl(e)}function Tf(e,l){l===0&&(l=gs()),e=kt(e,l),e!==null&&(Aa(e,l),gl(e))}function Bh(e){var l=e.memoizedState,t=0;l!==null&&(t=l.retryLane),Tf(e,t)}function qh(e,l){var t=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(t=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(l),Tf(e,t)}function Lh(e,l){return wu(e,l)}var Du=null,ma=null,_c=!1,Nu=!1,Uc=!1,zt=0;function gl(e){e!==ma&&e.next===null&&(ma===null?Du=ma=e:ma=ma.next=e),Nu=!0,_c||(_c=!0,Gh())}function cn(e,l){if(!Uc&&Nu){Uc=!0;do for(var t=!1,a=Du;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-qe(42|e)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(t=!0,Nf(a,u))}else u=X,u=Rn(a,a===le?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||xa(a,u)||(t=!0,Nf(a,u));a=a.next}while(t);Uc=!1}}function Hh(){xf()}function xf(){Nu=_c=!1;var e=0;zt!==0&&(kh()&&(e=zt),zt=0);for(var l=rl(),t=null,a=Du;a!==null;){var n=a.next,u=Af(a,l);u===0?(a.next=null,t===null?Du=n:t.next=n,n===null&&(ma=t)):(t=a,(e!==0||(u&3)!==0)&&(Nu=!0)),a=n}cn(e)}function Af(e,l){for(var t=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-qe(u),c=1<<i,s=n[i];s===-1?((c&t)===0||(c&a)!==0)&&(n[i]=rm(c,l)):s<=l&&(e.expiredLanes|=c),u&=~c}if(l=le,t=X,t=Rn(e,e===l?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,t===0||e===l&&(k===2||k===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Zu(a),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||xa(e,t)){if(l=t&-t,l===e.callbackPriority)return l;switch(a!==null&&Zu(a),Fu(t)){case 2:case 8:t=ds;break;case 32:t=zn;break;case 268435456:t=ms;break;default:t=zn}return a=Df.bind(null,e),t=wu(t,a),e.callbackPriority=l,e.callbackNode=t,l}return a!==null&&a!==null&&Zu(a),e.callbackPriority=2,e.callbackNode=null,2}function Df(e,l){if(Ae!==0&&Ae!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Au()&&e.callbackNode!==t)return null;var a=X;return a=Rn(e,e===le?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(uf(e,a,l),Af(e,rl()),e.callbackNode!=null&&e.callbackNode===t?Df.bind(null,e):null)}function Nf(e,l){if(Au())return null;uf(e,l,!0)}function Gh(){Fh(function(){(Z&6)!==0?wu(fs,Hh):xf()})}function Bc(){return zt===0&&(zt=hs()),zt}function Mf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qn(""+e)}function Ef(e,l){var t=l.ownerDocument.createElement("input");return t.name=l.name,t.value=l.value,e.id&&t.setAttribute("form",e.id),l.parentNode.insertBefore(t,l),e=new FormData(e),t.parentNode.removeChild(t),e}function Yh(e,l,t,a,n){if(l==="submit"&&t&&t.stateNode===n){var u=Mf((n[Ce]||null).action),i=a.submitter;i&&(l=(l=i[Ce]||null)?Mf(l.formAction):i.getAttribute("formAction"),l!==null&&(u=l,i=null));var c=new Yn("action","action",null,a,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(zt!==0){var s=i?Ef(n,i):new FormData(n);lc(t,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?Ef(n,i):new FormData(n),lc(t,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var qc=0;qc<Si.length;qc++){var Lc=Si[qc],Kh=Lc.toLowerCase(),Xh=Lc[0].toUpperCase()+Lc.slice(1);nl(Kh,"on"+Xh)}nl(no,"onAnimationEnd"),nl(uo,"onAnimationIteration"),nl(io,"onAnimationStart"),nl("dblclick","onDoubleClick"),nl("focusin","onFocus"),nl("focusout","onBlur"),nl(uh,"onTransitionRun"),nl(ih,"onTransitionStart"),nl(ch,"onTransitionCancel"),nl(co,"onTransitionEnd"),Lt("onMouseEnter",["mouseout","mouseover"]),Lt("onMouseLeave",["mouseout","mouseover"]),Lt("onPointerEnter",["pointerout","pointerover"]),Lt("onPointerLeave",["pointerout","pointerover"]),dt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dt("onBeforeInput",["compositionend","keypress","textInput","paste"]),dt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sn="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(" "),Qh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sn));function zf(e,l){l=(l&4)!==0;for(var t=0;t<e.length;t++){var a=e[t],n=a.event;a=a.listeners;e:{var u=void 0;if(l)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,g=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break e;u=c,n.currentTarget=g;try{u(n)}catch(b){du(b)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,g=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break e;u=c,n.currentTarget=g;try{u(n)}catch(b){du(b)}n.currentTarget=null,u=s}}}}function Y(e,l){var t=l[Pu];t===void 0&&(t=l[Pu]=new Set);var a=e+"__bubble";t.has(a)||(Of(l,e,2,!1),t.add(a))}function Hc(e,l,t){var a=0;l&&(a|=4),Of(t,e,a,l)}var Mu="_reactListening"+Math.random().toString(36).slice(2);function Gc(e){if(!e[Mu]){e[Mu]=!0,Ss.forEach(function(t){t!=="selectionchange"&&(Qh.has(t)||Hc(t,!1,e),Hc(t,!0,e))});var l=e.nodeType===9?e:e.ownerDocument;l===null||l[Mu]||(l[Mu]=!0,Hc("selectionchange",!1,l))}}function Of(e,l,t,a){switch(If(l)){case 2:var n=pg;break;case 8:n=yg;break;default:n=Ic}t=n.bind(null,l,t,e),n=void 0,!ci||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(l,t,{capture:!0,passive:n}):e.addEventListener(l,t,!0):n!==void 0?e.addEventListener(l,t,{passive:n}):e.addEventListener(l,t,!1)}function Yc(e,l,t,a,n){var u=a;if((l&1)===0&&(l&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Ut(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue e}c=c.parentNode}}a=a.return}Us(function(){var g=u,b=ui(t),x=[];e:{var p=so.get(e);if(p!==void 0){var y=Yn,_=e;switch(e){case"keypress":if(Hn(t)===0)break e;case"keydown":case"keyup":y=Lm;break;case"focusin":_="focus",y=fi;break;case"focusout":_="blur",y=fi;break;case"beforeblur":case"afterblur":y=fi;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Ls;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Nm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Ym;break;case no:case uo:case io:y=zm;break;case co:y=Xm;break;case"scroll":case"scrollend":y=Am;break;case"wheel":y=Vm;break;case"copy":case"cut":case"paste":y=Cm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Gs;break;case"toggle":case"beforetoggle":y=Zm}var R=(l&4)!==0,$=!R&&(e==="scroll"||e==="scrollend"),d=R?p!==null?p+"Capture":null:p;R=[];for(var r=g,m;r!==null;){var S=r;if(m=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||m===null||d===null||(S=Ma(r,d),S!=null&&R.push(on(r,S,m))),$)break;r=r.return}0<R.length&&(p=new y(p,_,null,t,b),x.push({event:p,listeners:R}))}}if((l&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&t!==ni&&(_=t.relatedTarget||t.fromElement)&&(Ut(_)||_[_t]))break e;if((y||p)&&(p=b.window===b?b:(p=b.ownerDocument)?p.defaultView||p.parentWindow:window,y?(_=t.relatedTarget||t.toElement,y=g,_=_?Ut(_):null,_!==null&&($=O(_),R=_.tag,_!==$||R!==5&&R!==27&&R!==6)&&(_=null)):(y=null,_=g),y!==_)){if(R=Ls,S="onMouseLeave",d="onMouseEnter",r="mouse",(e==="pointerout"||e==="pointerover")&&(R=Gs,S="onPointerLeave",d="onPointerEnter",r="pointer"),$=y==null?p:Na(y),m=_==null?p:Na(_),p=new R(S,r+"leave",y,t,b),p.target=$,p.relatedTarget=m,S=null,Ut(b)===g&&(R=new R(d,r+"enter",_,t,b),R.target=m,R.relatedTarget=$,S=R),$=S,y&&_)l:{for(R=y,d=_,r=0,m=R;m;m=ha(m))r++;for(m=0,S=d;S;S=ha(S))m++;for(;0<r-m;)R=ha(R),r--;for(;0<m-r;)d=ha(d),m--;for(;r--;){if(R===d||d!==null&&R===d.alternate)break l;R=ha(R),d=ha(d)}R=null}else R=null;y!==null&&Cf(x,p,y,R,!1),_!==null&&$!==null&&Cf(x,$,_,R,!0)}}e:{if(p=g?Na(g):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var N=ks;else if(ws(p))if(Js)N=th;else{N=eh;var H=Im}else y=p.nodeName,!y||y.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?g&&ai(g.elementType)&&(N=ks):N=lh;if(N&&(N=N(e,g))){Zs(x,N,t,b);break e}H&&H(e,p,g),e==="focusout"&&g&&p.type==="number"&&g.memoizedProps.value!=null&&ti(p,"number",p.value)}switch(H=g?Na(g):window,e){case"focusin":(ws(H)||H.contentEditable==="true")&&(Vt=H,yi=g,Ua=null);break;case"focusout":Ua=yi=Vt=null;break;case"mousedown":vi=!0;break;case"contextmenu":case"mouseup":case"dragend":vi=!1,to(x,t,b);break;case"selectionchange":if(nh)break;case"keydown":case"keyup":to(x,t,b)}var z;if(mi)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Qt?Qs(e,t)&&(j="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(j="onCompositionStart");j&&(Ys&&t.locale!=="ko"&&(Qt||j!=="onCompositionStart"?j==="onCompositionEnd"&&Qt&&(z=Bs()):(Kl=b,si="value"in Kl?Kl.value:Kl.textContent,Qt=!0)),H=Eu(g,j),0<H.length&&(j=new Hs(j,e,null,t,b),x.push({event:j,listeners:H}),z?j.data=z:(z=Vs(t),z!==null&&(j.data=z)))),(z=Jm?Fm(e,t):Pm(e,t))&&(j=Eu(g,"onBeforeInput"),0<j.length&&(H=new Hs("onBeforeInput","beforeinput",null,t,b),x.push({event:H,listeners:j}),H.data=z)),Yh(x,e,g,t,b)}zf(x,l)})}function on(e,l,t){return{instance:e,listener:l,currentTarget:t}}function Eu(e,l){for(var t=l+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ma(e,t),n!=null&&a.unshift(on(e,n,u)),n=Ma(e,l),n!=null&&a.push(on(e,n,u))),e.tag===3)return a;e=e.return}return[]}function ha(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cf(e,l,t,a,n){for(var u=l._reactName,i=[];t!==null&&t!==a;){var c=t,s=c.alternate,g=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||g===null||(s=g,n?(g=Ma(t,u),g!=null&&i.unshift(on(t,g,s))):n||(g=Ma(t,u),g!=null&&i.push(on(t,g,s)))),t=t.return}i.length!==0&&e.push({event:l,listeners:i})}var Vh=/\r\n?/g,wh=/\u0000|\uFFFD/g;function Rf(e){return(typeof e=="string"?e:""+e).replace(Vh,`
`).replace(wh,"")}function jf(e,l){return l=Rf(l),Rf(e)===l}function zu(){}function P(e,l,t,a,n,u){switch(t){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||Yt(e,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&Yt(e,""+a);break;case"className":_n(e,"class",a);break;case"tabIndex":_n(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":_n(e,t,a);break;case"style":js(e,a,u);break;case"data":if(l!=="object"){_n(e,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||t!=="href")){e.removeAttribute(t);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(t);break}a=qn(""+a),e.setAttribute(t,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(t,"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 u=="function"&&(t==="formAction"?(l!=="input"&&P(e,l,"name",n.name,n,null),P(e,l,"formEncType",n.formEncType,n,null),P(e,l,"formMethod",n.formMethod,n,null),P(e,l,"formTarget",n.formTarget,n,null)):(P(e,l,"encType",n.encType,n,null),P(e,l,"method",n.method,n,null),P(e,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(t);break}a=qn(""+a),e.setAttribute(t,a);break;case"onClick":a!=null&&(e.onclick=zu);break;case"onScroll":a!=null&&Y("scroll",e);break;case"onScrollEnd":a!=null&&Y("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=t}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}t=qn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,""+a):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":a===!0?e.setAttribute(t,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,a):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(t,a):e.removeAttribute(t);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(t):e.setAttribute(t,a);break;case"popover":Y("beforetoggle",e),Y("toggle",e),jn(e,"popover",a);break;case"xlinkActuate":vl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":jn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=Tm.get(t)||t,jn(e,t,a))}}function Kc(e,l,t,a,n,u){switch(t){case"style":js(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=t}}break;case"children":typeof a=="string"?Yt(e,a):(typeof a=="number"||typeof a=="bigint")&&Yt(e,""+a);break;case"onScroll":a!=null&&Y("scroll",e);break;case"onScrollEnd":a!=null&&Y("scrollend",e);break;case"onClick":a!=null&&(e.onclick=zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ts.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(n=t.endsWith("Capture"),l=t.slice(2,n?t.length-7:void 0),u=e[Ce]||null,u=u!=null?u[t]:null,typeof u=="function"&&e.removeEventListener(l,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(l,a,n);break e}t in e?e[t]=a:a===!0?e.setAttribute(t,""):jn(e,t,a)}}}function De(e,l,t){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",e),Y("load",e);var a=!1,n=!1,u;for(u in t)if(t.hasOwnProperty(u)){var i=t[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,l));default:P(e,l,u,i,t,null)}}n&&P(e,l,"srcSet",t.srcSet,t,null),a&&P(e,l,"src",t.src,t,null);return;case"input":Y("invalid",e);var c=u=i=n=null,s=null,g=null;for(a in t)if(t.hasOwnProperty(a)){var b=t[a];if(b!=null)switch(a){case"name":n=b;break;case"type":i=b;break;case"checked":s=b;break;case"defaultChecked":g=b;break;case"value":u=b;break;case"defaultValue":c=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(f(137,l));break;default:P(e,l,a,b,t,null)}}zs(e,u,c,s,g,i,n,!1),Un(e);return;case"select":Y("invalid",e),a=i=u=null;for(n in t)if(t.hasOwnProperty(n)&&(c=t[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:P(e,l,n,c,t,null)}l=u,t=i,e.multiple=!!a,l!=null?Gt(e,!!a,l,!1):t!=null&&Gt(e,!!a,t,!0);return;case"textarea":Y("invalid",e),u=n=a=null;for(i in t)if(t.hasOwnProperty(i)&&(c=t[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(f(91));break;default:P(e,l,i,c,t,null)}Cs(e,a,n,u),Un(e);return;case"option":for(s in t)if(t.hasOwnProperty(s)&&(a=t[s],a!=null))switch(s){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:P(e,l,s,a,t,null)}return;case"dialog":Y("beforetoggle",e),Y("toggle",e),Y("cancel",e),Y("close",e);break;case"iframe":case"object":Y("load",e);break;case"video":case"audio":for(a=0;a<sn.length;a++)Y(sn[a],e);break;case"image":Y("error",e),Y("load",e);break;case"details":Y("toggle",e);break;case"embed":case"source":case"link":Y("error",e),Y("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(g in t)if(t.hasOwnProperty(g)&&(a=t[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,l));default:P(e,l,g,a,t,null)}return;default:if(ai(l)){for(b in t)t.hasOwnProperty(b)&&(a=t[b],a!==void 0&&Kc(e,l,b,a,t,void 0));return}}for(c in t)t.hasOwnProperty(c)&&(a=t[c],a!=null&&P(e,l,c,a,t,null))}function Zh(e,l,t,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,s=null,g=null,b=null;for(y in t){var x=t[y];if(t.hasOwnProperty(y)&&x!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":s=x;default:a.hasOwnProperty(y)||P(e,l,y,null,a,x)}}for(var p in a){var y=a[p];if(x=t[p],a.hasOwnProperty(p)&&(y!=null||x!=null))switch(p){case"type":u=y;break;case"name":n=y;break;case"checked":g=y;break;case"defaultChecked":b=y;break;case"value":i=y;break;case"defaultValue":c=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(f(137,l));break;default:y!==x&&P(e,l,p,y,a,x)}}li(e,i,c,s,g,b,u,n);return;case"select":y=i=c=p=null;for(u in t)if(s=t[u],t.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":y=s;default:a.hasOwnProperty(u)||P(e,l,u,null,a,s)}for(n in a)if(u=a[n],s=t[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":p=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&P(e,l,n,u,a,s)}l=c,t=i,a=y,p!=null?Gt(e,!!t,p,!1):!!a!=!!t&&(l!=null?Gt(e,!!t,l,!0):Gt(e,!!t,t?[]:"",!1));return;case"textarea":y=p=null;for(c in t)if(n=t[c],t.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:P(e,l,c,null,a,n)}for(i in a)if(n=a[i],u=t[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":p=n;break;case"defaultValue":y=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==u&&P(e,l,i,n,a,u)}Os(e,p,y);return;case"option":for(var _ in t)if(p=t[_],t.hasOwnProperty(_)&&p!=null&&!a.hasOwnProperty(_))switch(_){case"selected":e.selected=!1;break;default:P(e,l,_,null,a,p)}for(s in a)if(p=a[s],y=t[s],a.hasOwnProperty(s)&&p!==y&&(p!=null||y!=null))switch(s){case"selected":e.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:P(e,l,s,p,a,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 R in t)p=t[R],t.hasOwnProperty(R)&&p!=null&&!a.hasOwnProperty(R)&&P(e,l,R,null,a,p);for(g in a)if(p=a[g],y=t[g],a.hasOwnProperty(g)&&p!==y&&(p!=null||y!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(f(137,l));break;default:P(e,l,g,p,a,y)}return;default:if(ai(l)){for(var $ in t)p=t[$],t.hasOwnProperty($)&&p!==void 0&&!a.hasOwnProperty($)&&Kc(e,l,$,void 0,a,p);for(b in a)p=a[b],y=t[b],!a.hasOwnProperty(b)||p===y||p===void 0&&y===void 0||Kc(e,l,b,p,a,y);return}}for(var d in t)p=t[d],t.hasOwnProperty(d)&&p!=null&&!a.hasOwnProperty(d)&&P(e,l,d,null,a,p);for(x in a)p=a[x],y=t[x],!a.hasOwnProperty(x)||p===y||p==null&&y==null||P(e,l,x,p,a,y)}var Xc=null,Qc=null;function Ou(e){return e.nodeType===9?e:e.ownerDocument}function _f(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 Uf(e,l){if(e===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&l==="foreignObject"?0:e}function Vc(e,l){return e==="textarea"||e==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var wc=null;function kh(){var e=window.event;return e&&e.type==="popstate"?e===wc?!1:(wc=e,!0):(wc=null,!1)}var Bf=typeof setTimeout=="function"?setTimeout:void 0,Jh=typeof clearTimeout=="function"?clearTimeout:void 0,qf=typeof Promise=="function"?Promise:void 0,Fh=typeof queueMicrotask=="function"?queueMicrotask:typeof qf<"u"?function(e){return qf.resolve(null).then(e).catch(Ph)}:Bf;function Ph(e){setTimeout(function(){throw e})}function at(e){return e==="head"}function Lf(e,l){var t=l,a=0,n=0;do{var u=t.nextSibling;if(e.removeChild(t),u&&u.nodeType===8)if(t=u.data,t==="/$"){if(0<a&&8>a){t=a;var i=e.ownerDocument;if(t&1&&rn(i.documentElement),t&2&&rn(i.body),t&4)for(t=i.head,rn(t),i=t.firstChild;i;){var c=i.nextSibling,s=i.nodeName;i[Da]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||t.removeChild(i),i=c}}if(n===0){e.removeChild(u),vn(l);return}n--}else t==="$"||t==="$?"||t==="$!"?n++:a=t.charCodeAt(0)-48;else a=0;t=u}while(t);vn(l)}function Zc(e){var l=e.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var t=l;switch(l=l.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Zc(t),$u(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function $h(e,l,t,a){for(;e.nodeType===1;){var n=t;if(e.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Da])switch(l){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(l==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=il(e.nextSibling),e===null)break}return null}function Wh(e,l,t){if(l==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=il(e.nextSibling),e===null))return null;return e}function kc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ih(e,l){var t=e.ownerDocument;if(e.data!=="$?"||t.readyState==="complete")l();else{var a=function(){l(),t.removeEventListener("DOMContentLoaded",a)};t.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function il(e){for(;e!=null;e=e.nextSibling){var l=e.nodeType;if(l===1||l===3)break;if(l===8){if(l=e.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return e}var Jc=null;function Hf(e){e=e.previousSibling;for(var l=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(l===0)return e;l--}else t==="/$"&&l++}e=e.previousSibling}return null}function Gf(e,l,t){switch(l=Ou(t),e){case"html":if(e=l.documentElement,!e)throw Error(f(452));return e;case"head":if(e=l.head,!e)throw Error(f(453));return e;case"body":if(e=l.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function rn(e){for(var l=e.attributes;l.length;)e.removeAttributeNode(l[0]);$u(e)}var tl=new Map,Yf=new Set;function Cu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jl=D.d;D.d={f:eg,r:lg,D:tg,C:ag,L:ng,m:ug,X:cg,S:ig,M:sg};function eg(){var e=jl.f(),l=Tu();return e||l}function lg(e){var l=Bt(e);l!==null&&l.tag===5&&l.type==="form"?ur(l):jl.r(e)}var ga=typeof document>"u"?null:document;function Kf(e,l,t){var a=ga;if(a&&typeof l=="string"&&l){var n=Fe(l);n='link[rel="'+e+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),Yf.has(n)||(Yf.add(n),e={rel:e,crossOrigin:t,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),De(l,"link",e),ve(l),a.head.appendChild(l)))}}function tg(e){jl.D(e),Kf("dns-prefetch",e,null)}function ag(e,l){jl.C(e,l),Kf("preconnect",e,l)}function ng(e,l,t){jl.L(e,l,t);var a=ga;if(a&&e&&l){var n='link[rel="preload"][as="'+Fe(l)+'"]';l==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+Fe(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+Fe(t.imageSizes)+'"]')):n+='[href="'+Fe(e)+'"]';var u=n;switch(l){case"style":u=pa(e);break;case"script":u=ya(e)}tl.has(u)||(e=B({rel:"preload",href:l==="image"&&t&&t.imageSrcSet?void 0:e,as:l},t),tl.set(u,e),a.querySelector(n)!==null||l==="style"&&a.querySelector(fn(u))||l==="script"&&a.querySelector(dn(u))||(l=a.createElement("link"),De(l,"link",e),ve(l),a.head.appendChild(l)))}}function ug(e,l){jl.m(e,l);var t=ga;if(t&&e){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+Fe(a)+'"][href="'+Fe(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ya(e)}if(!tl.has(u)&&(e=B({rel:"modulepreload",href:e},l),tl.set(u,e),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(dn(u)))return}a=t.createElement("link"),De(a,"link",e),ve(a),t.head.appendChild(a)}}}function ig(e,l,t){jl.S(e,l,t);var a=ga;if(a&&e){var n=qt(a).hoistableStyles,u=pa(e);l=l||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(fn(u)))c.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":l},t),(t=tl.get(u))&&Fc(e,t);var s=i=a.createElement("link");ve(s),De(s,"link",e),s._p=new Promise(function(g,b){s.onload=g,s.onerror=b}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Ru(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function cg(e,l){jl.X(e,l);var t=ga;if(t&&e){var a=qt(t).hoistableScripts,n=ya(e),u=a.get(n);u||(u=t.querySelector(dn(n)),u||(e=B({src:e,async:!0},l),(l=tl.get(n))&&Pc(e,l),u=t.createElement("script"),ve(u),De(u,"link",e),t.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function sg(e,l){jl.M(e,l);var t=ga;if(t&&e){var a=qt(t).hoistableScripts,n=ya(e),u=a.get(n);u||(u=t.querySelector(dn(n)),u||(e=B({src:e,async:!0,type:"module"},l),(l=tl.get(n))&&Pc(e,l),u=t.createElement("script"),ve(u),De(u,"link",e),t.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Xf(e,l,t,a){var n=(n=Hl.current)?Cu(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(l=pa(t.href),t=qt(n).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=pa(t.href);var u=qt(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(fn(e)))&&!u._p&&(i.instance=u,i.state.loading=5),tl.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},tl.set(e,t),u||og(n,e,t,i.state))),l&&a===null)throw Error(f(528,""));return i}if(l&&a!==null)throw Error(f(529,""));return null;case"script":return l=t.async,t=t.src,typeof t=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=ya(t),t=qt(n).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function pa(e){return'href="'+Fe(e)+'"'}function fn(e){return'link[rel="stylesheet"]['+e+"]"}function Qf(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function og(e,l,t,a){e.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=e.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),De(l,"link",t),ve(l),e.head.appendChild(l))}function ya(e){return'[src="'+Fe(e)+'"]'}function dn(e){return"script[async]"+e}function Vf(e,l,t){if(l.count++,l.instance===null)switch(l.type){case"style":var a=e.querySelector('style[data-href~="'+Fe(t.href)+'"]');if(a)return l.instance=a,ve(a),a;var n=B({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ve(a),De(a,"style",n),Ru(a,t.precedence,e),l.instance=a;case"stylesheet":n=pa(t.href);var u=e.querySelector(fn(n));if(u)return l.state.loading|=4,l.instance=u,ve(u),u;a=Qf(t),(n=tl.get(n))&&Fc(a,n),u=(e.ownerDocument||e).createElement("link"),ve(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),De(u,"link",a),l.state.loading|=4,Ru(u,t.precedence,e),l.instance=u;case"script":return u=ya(t.src),(n=e.querySelector(dn(u)))?(l.instance=n,ve(n),n):(a=t,(n=tl.get(u))&&(a=B({},t),Pc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ve(n),De(n,"link",a),e.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(f(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Ru(a,t.precedence,e));return l.instance}function Ru(e,l,t){for(var a=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===l)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(l=t.nodeType===9?t.head:t,l.insertBefore(e,l.firstChild))}function Fc(e,l){e.crossOrigin==null&&(e.crossOrigin=l.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=l.referrerPolicy),e.title==null&&(e.title=l.title)}function Pc(e,l){e.crossOrigin==null&&(e.crossOrigin=l.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=l.referrerPolicy),e.integrity==null&&(e.integrity=l.integrity)}var ju=null;function wf(e,l,t){if(ju===null){var a=new Map,n=ju=new Map;n.set(t,a)}else n=ju,a=n.get(t),a||(a=new Map,n.set(t,a));if(a.has(e))return a;for(a.set(e,null),t=t.getElementsByTagName(e),n=0;n<t.length;n++){var u=t[n];if(!(u[Da]||u[Ne]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(l)||"";i=e+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function Zf(e,l,t){e=e.ownerDocument||e,e.head.insertBefore(t,l==="title"?e.querySelector("head > title"):null)}function rg(e,l,t){if(t===1||l.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return e=l.disabled,typeof l.precedence=="string"&&e==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function kf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var mn=null;function fg(){}function dg(e,l,t){if(mn===null)throw Error(f(475));var a=mn;if(l.type==="stylesheet"&&(typeof t.media!="string"||matchMedia(t.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=pa(t.href),u=e.querySelector(fn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=_u.bind(a),e.then(a,a)),l.state.loading|=4,l.instance=u,ve(u);return}u=e.ownerDocument||e,t=Qf(t),(n=tl.get(n))&&Fc(t,n),u=u.createElement("link"),ve(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),De(u,"link",t),l.instance=u}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(a.count++,l=_u.bind(a),e.addEventListener("load",l),e.addEventListener("error",l))}}function mg(){if(mn===null)throw Error(f(475));var e=mn;return e.stylesheets&&e.count===0&&$c(e,e.stylesheets),0<e.count?function(l){var t=setTimeout(function(){if(e.stylesheets&&$c(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(t)}}:null}function _u(){if(this.count--,this.count===0){if(this.stylesheets)$c(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Uu=null;function $c(e,l){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Uu=new Map,l.forEach(hg,e),Uu=null,_u.call(e))}function hg(e,l){if(!(l.state.loading&4)){var t=Uu.get(e);if(t)var a=t.get(null);else{t=new Map,Uu.set(e,t);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(t.set(i.dataset.precedence,i),a=i)}a&&t.set(null,a)}n=l.instance,i=n.getAttribute("data-precedence"),u=t.get(i)||a,u===a&&t.set(null,n),t.set(i,n),this.count++,a=_u.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),l.state.loading|=4}}var hn={$$typeof:Ze,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function gg(e,l,t,a,n,u,i,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ku(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ku(0),this.hiddenUpdates=ku(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Jf(e,l,t,a,n,u,i,c,s,g,b,x){return e=new gg(e,l,t,i,c,s,g,x),l=1,u===!0&&(l|=24),u=He(3,null,null,l),e.current=u,u.stateNode=e,l=ji(),l.refCount++,e.pooledCache=l,l.refCount++,u.memoizedState={element:a,isDehydrated:t,cache:l},qi(u),e}function Ff(e){return e?(e=Jt,e):Jt}function Pf(e,l,t,a,n,u){n=Ff(n),a.context===null?a.context=n:a.pendingContext=n,a=Vl(l),a.payload={element:t},u=u===void 0?null:u,u!==null&&(a.callback=u),t=wl(e,a,l),t!==null&&(Qe(t,e,l),Qa(t,e,l))}function $f(e,l){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<l?t:l}}function Wc(e,l){$f(e,l),(e=e.alternate)&&$f(e,l)}function Wf(e){if(e.tag===13){var l=kt(e,67108864);l!==null&&Qe(l,e,67108864),Wc(e,67108864)}}var Bu=!0;function pg(e,l,t,a){var n=T.T;T.T=null;var u=D.p;try{D.p=2,Ic(e,l,t,a)}finally{D.p=u,T.T=n}}function yg(e,l,t,a){var n=T.T;T.T=null;var u=D.p;try{D.p=8,Ic(e,l,t,a)}finally{D.p=u,T.T=n}}function Ic(e,l,t,a){if(Bu){var n=es(a);if(n===null)Yc(e,l,a,qu,t),ed(e,a);else if(bg(n,e,l,t,a))a.stopPropagation();else if(ed(e,a),l&4&&-1<vg.indexOf(e)){for(;n!==null;){var u=Bt(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=ft(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-qe(i);c.entanglements[1]|=s,i&=~s}gl(u),(Z&6)===0&&(bu=rl()+500,cn(0))}}break;case 13:c=kt(u,2),c!==null&&Qe(c,u,2),Tu(),Wc(u,2)}if(u=es(a),u===null&&Yc(e,l,a,qu,t),u===n)break;n=u}n!==null&&a.stopPropagation()}else Yc(e,l,a,null,t)}}function es(e){return e=ui(e),ls(e)}var qu=null;function ls(e){if(qu=null,e=Ut(e),e!==null){var l=O(e);if(l===null)e=null;else{var t=l.tag;if(t===13){if(e=q(l),e!==null)return e;e=null}else if(t===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;e=null}else l!==e&&(e=null)}}return qu=e,null}function If(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(am()){case fs:return 2;case ds:return 8;case zn:case nm:return 32;case ms:return 268435456;default:return 32}default:return 32}}var ts=!1,nt=null,ut=null,it=null,gn=new Map,pn=new Map,ct=[],vg="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 ed(e,l){switch(e){case"focusin":case"focusout":nt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":it=null;break;case"pointerover":case"pointerout":gn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":pn.delete(l.pointerId)}}function yn(e,l,t,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:l,domEventName:t,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},l!==null&&(l=Bt(l),l!==null&&Wf(l)),e):(e.eventSystemFlags|=a,l=e.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),e)}function bg(e,l,t,a,n){switch(l){case"focusin":return nt=yn(nt,e,l,t,a,n),!0;case"dragenter":return ut=yn(ut,e,l,t,a,n),!0;case"mouseover":return it=yn(it,e,l,t,a,n),!0;case"pointerover":var u=n.pointerId;return gn.set(u,yn(gn.get(u)||null,e,l,t,a,n)),!0;case"gotpointercapture":return u=n.pointerId,pn.set(u,yn(pn.get(u)||null,e,l,t,a,n)),!0}return!1}function ld(e){var l=Ut(e.target);if(l!==null){var t=O(l);if(t!==null){if(l=t.tag,l===13){if(l=q(t),l!==null){e.blockedOn=l,dm(e.priority,function(){if(t.tag===13){var a=Xe();a=Ju(a);var n=kt(t,a);n!==null&&Qe(n,t,a),Wc(t,a)}});return}}else if(l===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lu(e){if(e.blockedOn!==null)return!1;for(var l=e.targetContainers;0<l.length;){var t=es(e.nativeEvent);if(t===null){t=e.nativeEvent;var a=new t.constructor(t.type,t);ni=a,t.target.dispatchEvent(a),ni=null}else return l=Bt(t),l!==null&&Wf(l),e.blockedOn=t,!1;l.shift()}return!0}function td(e,l,t){Lu(e)&&t.delete(l)}function Sg(){ts=!1,nt!==null&&Lu(nt)&&(nt=null),ut!==null&&Lu(ut)&&(ut=null),it!==null&&Lu(it)&&(it=null),gn.forEach(td),pn.forEach(td)}function Hu(e,l){e.blockedOn===l&&(e.blockedOn=null,ts||(ts=!0,h.unstable_scheduleCallback(h.unstable_NormalPriority,Sg)))}var Gu=null;function ad(e){Gu!==e&&(Gu=e,h.unstable_scheduleCallback(h.unstable_NormalPriority,function(){Gu===e&&(Gu=null);for(var l=0;l<e.length;l+=3){var t=e[l],a=e[l+1],n=e[l+2];if(typeof a!="function"){if(ls(a||t)===null)continue;break}var u=Bt(t);u!==null&&(e.splice(l,3),l-=3,lc(u,{pending:!0,data:n,method:t.method,action:a},a,n))}}))}function vn(e){function l(s){return Hu(s,e)}nt!==null&&Hu(nt,e),ut!==null&&Hu(ut,e),it!==null&&Hu(it,e),gn.forEach(l),pn.forEach(l);for(var t=0;t<ct.length;t++){var a=ct[t];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ct.length&&(t=ct[0],t.blockedOn===null);)ld(t),t.blockedOn===null&&ct.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(a=0;a<t.length;a+=3){var n=t[a],u=t[a+1],i=n[Ce]||null;if(typeof u=="function")i||ad(t);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Ce]||null)c=i.formAction;else if(ls(n)!==null)continue}else c=i.action;typeof c=="function"?t[a+1]=c:(t.splice(a,3),a-=3),ad(t)}}}function as(e){this._internalRoot=e}Yu.prototype.render=as.prototype.render=function(e){var l=this._internalRoot;if(l===null)throw Error(f(409));var t=l.current,a=Xe();Pf(t,a,e,l,null,null)},Yu.prototype.unmount=as.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var l=e.containerInfo;Pf(e.current,2,null,e,null,null),Tu(),l[_t]=null}};function Yu(e){this._internalRoot=e}Yu.prototype.unstable_scheduleHydration=function(e){if(e){var l=vs();e={blockedOn:null,target:e,priority:l};for(var t=0;t<ct.length&&l!==0&&l<ct[t].priority;t++);ct.splice(t,0,e),t===0&&ld(e)}};var nd=v.version;if(nd!=="19.1.0")throw Error(f(527,nd,"19.1.0"));D.findDOMNode=function(e){var l=e._reactInternals;if(l===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=w(l),e=e!==null?W(e):null,e=e===null?null:e.stateNode,e};var Tg={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{Ta=Ku.inject(Tg),Be=Ku}catch{}}return Sn.createRoot=function(e,l){if(!M(e))throw Error(f(299));var t=!1,a="",n=br,u=Sr,i=Tr,c=null;return l!=null&&(l.unstable_strictMode===!0&&(t=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(c=l.unstable_transitionCallbacks)),l=Jf(e,1,!1,null,null,t,a,n,u,i,c,null),e[_t]=l.current,Gc(e),new as(l)},Sn.hydrateRoot=function(e,l,t){if(!M(e))throw Error(f(299));var a=!1,n="",u=br,i=Sr,c=Tr,s=null,g=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(s=t.unstable_transitionCallbacks),t.formState!==void 0&&(g=t.formState)),l=Jf(e,1,!0,l,t??null,a,n,u,i,c,s,g),l.context=Ff(null),t=l.current,a=Xe(),a=Ju(a),n=Vl(a),n.callback=null,wl(t,n,a),t=a,l.current.lanes=t,Aa(l,t),gl(l),e[_t]=l.current,Gc(e),new Yu(l)},Sn.version="19.1.0",Sn}var md;function hp(){if(md)return ns.exports;md=1;function h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h)}catch(v){console.error(v)}}return h(),ns.exports=mp(),ns.exports}var gp=hp();const pp={visibleTabs:{},setTabVisibility:()=>{},isTabVisible:()=>!1},zd=E.createContext(pp),yp=({children:h})=>{const v=Ve.use.currentTab(),[A,f]=E.useState(()=>({documents:!0,"knowledge-graph":!0,retrieval:!0,api:!0}));E.useEffect(()=>{f(O=>({...O,documents:!0,"knowledge-graph":!0,retrieval:!0,api:!0}))},[v]);const M=E.useMemo(()=>({visibleTabs:A,setTabVisibility:(O,q)=>{f(ne=>({...ne,[O]:q}))},isTabVisible:O=>!!A[O]}),[A]);return o.jsx(zd.Provider,{value:M,children:h})};var Od="AlertDialog",[vp,Iy]=Mg(Od,[hd]),Bl=hd(),Cd=h=>{const{__scopeAlertDialog:v,...A}=h,f=Bl(v);return o.jsx(jg,{...f,...A,modal:!0})};Cd.displayName=Od;var bp="AlertDialogTrigger",Sp=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,...f}=h,M=Bl(A);return o.jsx(_g,{...M,...f,ref:v})});Sp.displayName=bp;var Tp="AlertDialogPortal",Rd=h=>{const{__scopeAlertDialog:v,...A}=h,f=Bl(v);return o.jsx(Dg,{...f,...A})};Rd.displayName=Tp;var xp="AlertDialogOverlay",jd=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,...f}=h,M=Bl(A);return o.jsx(Ag,{...M,...f,ref:v})});jd.displayName=xp;var va="AlertDialogContent",[Ap,Dp]=vp(va),Np=Og("AlertDialogContent"),_d=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,children:f,...M}=h,O=Bl(A),q=E.useRef(null),ne=gd(v,q),w=E.useRef(null);return o.jsx(Ng,{contentName:va,titleName:Ud,docsSlug:"alert-dialog",children:o.jsx(Ap,{scope:A,cancelRef:w,children:o.jsxs(Eg,{role:"alertdialog",...O,...M,ref:ne,onOpenAutoFocus:zg(M.onOpenAutoFocus,W=>{var B;W.preventDefault(),(B=w.current)==null||B.focus({preventScroll:!0})}),onPointerDownOutside:W=>W.preventDefault(),onInteractOutside:W=>W.preventDefault(),children:[o.jsx(Np,{children:f}),o.jsx(Ep,{contentRef:q})]})})})});_d.displayName=va;var Ud="AlertDialogTitle",Bd=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,...f}=h,M=Bl(A);return o.jsx(Cg,{...M,...f,ref:v})});Bd.displayName=Ud;var qd="AlertDialogDescription",Ld=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,...f}=h,M=Bl(A);return o.jsx(Rg,{...M,...f,ref:v})});Ld.displayName=qd;var Mp="AlertDialogAction",Hd=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,...f}=h,M=Bl(A);return o.jsx(pd,{...M,...f,ref:v})});Hd.displayName=Mp;var Gd="AlertDialogCancel",Yd=E.forwardRef((h,v)=>{const{__scopeAlertDialog:A,...f}=h,{cancelRef:M}=Dp(Gd,A),O=Bl(A),q=gd(v,M);return o.jsx(pd,{...O,...f,ref:q})});Yd.displayName=Gd;var Ep=({contentRef:h})=>{const v=`\`${va}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${va}\` by passing a \`${qd}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${va}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return E.useEffect(()=>{var f;document.getElementById((f=h.current)==null?void 0:f.getAttribute("aria-describedby"))||console.warn(v)},[v,h]),null},zp=Cd,Op=Rd,Kd=jd,Xd=_d,Qd=Hd,Vd=Yd,wd=Bd,Zd=Ld;const Cp=zp,Rp=Op,kd=E.forwardRef(({className:h,...v},A)=>o.jsx(Kd,{className:we("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",h),...v,ref:A}));kd.displayName=Kd.displayName;const Jd=E.forwardRef(({className:h,...v},A)=>o.jsxs(Rp,{children:[o.jsx(kd,{}),o.jsx(Xd,{ref:A,className:we("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",h),...v})]}));Jd.displayName=Xd.displayName;const Fd=({className:h,...v})=>o.jsx("div",{className:we("flex flex-col space-y-2 text-center sm:text-left",h),...v});Fd.displayName="AlertDialogHeader";const Pd=E.forwardRef(({className:h,...v},A)=>o.jsx(wd,{ref:A,className:we("text-lg font-semibold",h),...v}));Pd.displayName=wd.displayName;const $d=E.forwardRef(({className:h,...v},A)=>o.jsx(Zd,{ref:A,className:we("text-muted-foreground text-sm",h),...v}));$d.displayName=Zd.displayName;const jp=E.forwardRef(({className:h,...v},A)=>o.jsx(Qd,{ref:A,className:we(Td(),h),...v}));jp.displayName=Qd.displayName;const _p=E.forwardRef(({className:h,...v},A)=>o.jsx(Vd,{ref:A,className:we(Td({variant:"outline"}),"mt-2 sm:mt-0",h),...v}));_p.displayName=Vd.displayName;const Up=({open:h,onOpenChange:v})=>{const{t:A}=Ul(),f=Ve.use.apiKey(),[M,O]=E.useState(""),q=Ot.use.message();E.useEffect(()=>{O(f||"")},[f,h]),E.useEffect(()=>{q&&(q.includes(xd)||q.includes(Ad))&&v(!0)},[q,v]);const ne=E.useCallback(()=>{Ve.setState({apiKey:M||null}),v(!1)},[M,v]),w=E.useCallback(W=>{O(W.target.value)},[O]);return o.jsx(Cp,{open:h,onOpenChange:v,children:o.jsxs(Jd,{children:[o.jsxs(Fd,{children:[o.jsx(Pd,{children:A("apiKeyAlert.title")}),o.jsx($d,{children:A("apiKeyAlert.description")})]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsxs("form",{className:"flex gap-2",onSubmit:W=>W.preventDefault(),children:[o.jsx(cs,{type:"password",value:M,onChange:w,placeholder:A("apiKeyAlert.placeholder"),className:"max-h-full w-full min-w-0",autoComplete:"off"}),o.jsx(xn,{onClick:ne,variant:"outline",size:"sm",children:A("apiKeyAlert.save")})]}),q&&o.jsx("div",{className:"text-sm text-red-500",children:q})]})]})})},Bp=({status:h})=>{const{t:v}=Ul();return h?o.jsxs("div",{className:"min-w-[300px] space-y-2 text-xs",children:[o.jsxs("div",{className:"space-y-1",children:[o.jsx("h4",{className:"font-medium",children:v("graphPanel.statusCard.storageInfo")}),o.jsxs("div",{className:"text-foreground grid grid-cols-[160px_1fr] gap-1",children:[o.jsxs("span",{children:[v("graphPanel.statusCard.workingDirectory"),":"]}),o.jsx("span",{className:"truncate",children:h.working_directory}),o.jsxs("span",{children:[v("graphPanel.statusCard.inputDirectory"),":"]}),o.jsx("span",{className:"truncate",children:h.input_directory})]})]}),o.jsxs("div",{className:"space-y-1",children:[o.jsx("h4",{className:"font-medium",children:v("graphPanel.statusCard.llmConfig")}),o.jsxs("div",{className:"text-foreground grid grid-cols-[160px_1fr] gap-1",children:[o.jsxs("span",{children:[v("graphPanel.statusCard.llmBinding"),":"]}),o.jsx("span",{children:h.configuration.llm_binding}),o.jsxs("span",{children:[v("graphPanel.statusCard.llmBindingHost"),":"]}),o.jsx("span",{children:h.configuration.llm_binding_host}),o.jsxs("span",{children:[v("graphPanel.statusCard.llmModel"),":"]}),o.jsx("span",{children:h.configuration.llm_model}),o.jsxs("span",{children:[v("graphPanel.statusCard.maxTokens"),":"]}),o.jsx("span",{children:h.configuration.max_tokens})]})]}),o.jsxs("div",{className:"space-y-1",children:[o.jsx("h4",{className:"font-medium",children:v("graphPanel.statusCard.embeddingConfig")}),o.jsxs("div",{className:"text-foreground grid grid-cols-[160px_1fr] gap-1",children:[o.jsxs("span",{children:[v("graphPanel.statusCard.embeddingBinding"),":"]}),o.jsx("span",{children:h.configuration.embedding_binding}),o.jsxs("span",{children:[v("graphPanel.statusCard.embeddingBindingHost"),":"]}),o.jsx("span",{children:h.configuration.embedding_binding_host}),o.jsxs("span",{children:[v("graphPanel.statusCard.embeddingModel"),":"]}),o.jsx("span",{children:h.configuration.embedding_model})]})]}),h.configuration.enable_rerank&&o.jsxs("div",{className:"space-y-1",children:[o.jsx("h4",{className:"font-medium",children:v("graphPanel.statusCard.rerankerConfig")}),o.jsxs("div",{className:"text-foreground grid grid-cols-[160px_1fr] gap-1",children:[o.jsxs("span",{children:[v("graphPanel.statusCard.rerankerBindingHost"),":"]}),o.jsx("span",{children:h.configuration.rerank_binding_host||"-"}),o.jsxs("span",{children:[v("graphPanel.statusCard.rerankerModel"),":"]}),o.jsx("span",{children:h.configuration.rerank_model||"-"})]})]}),o.jsxs("div",{className:"space-y-1",children:[o.jsx("h4",{className:"font-medium",children:v("graphPanel.statusCard.storageConfig")}),o.jsxs("div",{className:"text-foreground grid grid-cols-[160px_1fr] gap-1",children:[o.jsxs("span",{children:[v("graphPanel.statusCard.kvStorage"),":"]}),o.jsx("span",{children:h.configuration.kv_storage}),o.jsxs("span",{children:[v("graphPanel.statusCard.docStatusStorage"),":"]}),o.jsx("span",{children:h.configuration.doc_status_storage}),o.jsxs("span",{children:[v("graphPanel.statusCard.graphStorage"),":"]}),o.jsx("span",{children:h.configuration.graph_storage}),o.jsxs("span",{children:[v("graphPanel.statusCard.vectorStorage"),":"]}),o.jsx("span",{children:h.configuration.vector_storage}),o.jsxs("span",{children:[v("graphPanel.statusCard.workspace"),":"]}),o.jsx("span",{children:h.configuration.workspace||"-"}),o.jsxs("span",{children:[v("graphPanel.statusCard.maxGraphNodes"),":"]}),o.jsx("span",{children:h.configuration.max_graph_nodes||"-"}),h.keyed_locks&&o.jsxs(o.Fragment,{children:[o.jsxs("span",{children:[v("graphPanel.statusCard.lockStatus"),":"]}),o.jsxs("span",{children:["mp ",h.keyed_locks.current_status.pending_mp_cleanup,"/",h.keyed_locks.current_status.total_mp_locks," | async ",h.keyed_locks.current_status.pending_async_cleanup,"/",h.keyed_locks.current_status.total_async_locks,"(pid: ",h.keyed_locks.process_id,")"]})]})]})]})]}):o.jsx("div",{className:"text-foreground text-xs",children:v("graphPanel.statusCard.unavailable")})},qp=({open:h,onOpenChange:v,status:A})=>{const{t:f}=Ul();return o.jsx(Gg,{open:h,onOpenChange:v,children:o.jsxs(Yg,{className:"sm:max-w-[700px]",children:[o.jsxs(Kg,{children:[o.jsx(Xg,{children:f("graphPanel.statusDialog.title")}),o.jsx(Qg,{children:f("graphPanel.statusDialog.description")})]}),o.jsx(Bp,{status:A})]})})},Lp=()=>{const{t:h}=Ul(),v=Ot.use.health(),A=Ot.use.lastCheckTime(),f=Ot.use.status(),[M,O]=E.useState(!1),[q,ne]=E.useState(!1);return E.useEffect(()=>{O(!0);const w=setTimeout(()=>O(!1),300);return()=>clearTimeout(w)},[A]),o.jsxs("div",{className:"fixed right-4 bottom-4 flex items-center gap-2 opacity-80 select-none",children:[o.jsxs("div",{className:"flex cursor-pointer items-center gap-2",onClick:()=>ne(!0),children:[o.jsx("div",{className:we("h-3 w-3 rounded-full transition-all duration-300","shadow-[0_0_8px_rgba(0,0,0,0.2)]",v?"bg-green-500":"bg-red-500",M&&"scale-125",M&&v&&"shadow-[0_0_12px_rgba(34,197,94,0.4)]",M&&!v&&"shadow-[0_0_12px_rgba(239,68,68,0.4)]")}),o.jsx("span",{className:"text-muted-foreground text-xs",children:h(v?"graphPanel.statusIndicator.connected":"graphPanel.statusIndicator.disconnected")})]}),o.jsx(qp,{open:q,onOpenChange:ne,status:f})]})};function Wd({className:h}){const[v,A]=E.useState(!1),{t:f}=Ul(),M=Ve.use.language(),O=Ve.use.setLanguage(),q=Ve.use.theme(),ne=Ve.use.setTheme(),w=E.useCallback(B=>{O(B)},[O]),W=E.useCallback(B=>{ne(B)},[ne]);return o.jsxs(Vg,{open:v,onOpenChange:A,children:[o.jsx(wg,{asChild:!0,children:o.jsx(xn,{variant:"ghost",size:"icon",className:we("h-9 w-9",h),children:o.jsx(Zg,{className:"h-5 w-5"})})}),o.jsx(kg,{side:"bottom",align:"end",className:"w-56",children:o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("label",{className:"text-sm font-medium",children:f("settings.language")}),o.jsxs(id,{value:M,onValueChange:w,children:[o.jsx(cd,{children:o.jsx(sd,{})}),o.jsxs(od,{children:[o.jsx(ot,{value:"en",children:"English"}),o.jsx(ot,{value:"zh",children:"中文"}),o.jsx(ot,{value:"fr",children:"Français"}),o.jsx(ot,{value:"ar",children:"العربية"}),o.jsx(ot,{value:"zh_TW",children:"繁體中文"})]})]})]}),o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("label",{className:"text-sm font-medium",children:f("settings.theme")}),o.jsxs(id,{value:q,onValueChange:W,children:[o.jsx(cd,{children:o.jsx(sd,{})}),o.jsxs(od,{children:[o.jsx(ot,{value:"light",children:f("settings.light")}),o.jsx(ot,{value:"dark",children:f("settings.dark")}),o.jsx(ot,{value:"system",children:f("settings.system")})]})]})]})]})})]})}const Hp=Ug,Id=E.forwardRef(({className:h,...v},A)=>o.jsx(yd,{ref:A,className:we("bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1",h),...v}));Id.displayName=yd.displayName;const em=E.forwardRef(({className:h,...v},A)=>o.jsx(vd,{ref:A,className:we("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",h),...v}));em.displayName=vd.displayName;const Tn=E.forwardRef(({className:h,...v},A)=>o.jsx(bd,{ref:A,className:we("ring-offset-background focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","data-[state=inactive]:invisible data-[state=active]:visible","h-full w-full",h),forceMount:!0,...v}));Tn.displayName=bd.displayName;function Xu({value:h,currentTab:v,children:A}){return o.jsx(em,{value:h,className:we("cursor-pointer px-2 py-1 transition-all",v===h?"!bg-emerald-400 !text-zinc-50":"hover:bg-background/60"),children:A})}function Gp(){const h=Ve.use.currentTab(),{t:v}=Ul();return o.jsx("div",{className:"flex h-8 self-center",children:o.jsxs(Id,{className:"h-full gap-2",children:[o.jsx(Xu,{value:"documents",currentTab:h,children:v("header.documents")}),o.jsx(Xu,{value:"knowledge-graph",currentTab:h,children:v("header.knowledgeGraph")}),o.jsx(Xu,{value:"retrieval",currentTab:h,children:v("header.retrieval")}),o.jsx(Xu,{value:"api",currentTab:h,children:v("header.api")})]})})}function Yp(){const{t:h}=Ul(),{isGuestMode:v,coreVersion:A,apiVersion:f,username:M,webuiTitle:O,webuiDescription:q}=_l(),ne=A&&f?`${A}/${f}`:null,w=()=>{Nd.navigateToLogin()};return o.jsxs("header",{className:"border-border/40 bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50 flex h-10 w-full border-b px-4 backdrop-blur",children:[o.jsxs("div",{className:"min-w-[200px] w-auto flex items-center",children:[o.jsxs("a",{href:Dd,className:"flex items-center gap-2",children:[o.jsx(rs,{className:"size-4 text-emerald-400","aria-hidden":"true"}),o.jsx("span",{className:"font-bold md:inline-block",children:ss.name})]}),O&&o.jsxs("div",{className:"flex items-center",children:[o.jsx("span",{className:"mx-1 text-xs text-gray-500 dark:text-gray-400",children:"|"}),o.jsx(Jg,{children:o.jsxs(Fg,{children:[o.jsx(Pg,{asChild:!0,children:o.jsx("span",{className:"font-medium text-sm cursor-default",children:O})}),q&&o.jsx($g,{side:"bottom",children:q})]})})]})]}),o.jsxs("div",{className:"flex h-10 flex-1 items-center justify-center",children:[o.jsx(Gp,{}),v&&o.jsx("div",{className:"ml-2 self-center px-2 py-1 text-xs bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200 rounded-md",children:h("login.guestMode","Guest Mode")})]}),o.jsx("nav",{className:"w-[200px] flex items-center justify-end",children:o.jsxs("div",{className:"flex items-center gap-2",children:[ne&&o.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400 mr-1",children:["v",ne]}),o.jsx(xn,{variant:"ghost",size:"icon",side:"bottom",tooltip:h("header.projectRepository"),children:o.jsx("a",{href:ss.github,target:"_blank",rel:"noopener noreferrer",children:o.jsx(Wg,{className:"size-4","aria-hidden":"true"})})}),o.jsx(Wd,{}),!v&&o.jsx(xn,{variant:"ghost",size:"icon",side:"bottom",tooltip:`${h("header.logout")} (${M})`,onClick:w,children:o.jsx(Ig,{className:"size-4","aria-hidden":"true"})})]})})]})}const Kp=()=>{const h=E.useContext(zd);if(!h)throw new Error("useTabVisibility must be used within a TabVisibilityProvider");return h};function Xp(){const{t:h}=Ul(),{isTabVisible:v}=Kp(),A=v("api"),[f,M]=E.useState(!1);return E.useEffect(()=>{f||M(!0)},[f]),o.jsx("div",{className:`size-full ${A?"":"hidden"}`,children:f?o.jsx("iframe",{src:ep+"/docs",className:"size-full w-full h-full",style:{width:"100%",height:"100%",border:"none"}},"api-docs-iframe"):o.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background",children:o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"mb-2 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),o.jsx("p",{children:h("apiSite.loading")})]})})})}function Qp(){const h=Ot.use.message(),v=Ve.use.enableHealthCheck(),A=Ve.use.currentTab(),[f,M]=E.useState(!1),[O,q]=E.useState(!0),ne=E.useRef(!1),w=E.useRef(!1),W=E.useCallback(K=>{M(K),K||Ot.getState().clear()},[]),B=E.useRef(!0);E.useEffect(()=>{B.current=!0;const K=()=>{B.current=!1};return window.addEventListener("beforeunload",K),()=>{B.current=!1,window.removeEventListener("beforeunload",K)}},[]),E.useEffect(()=>{if(!v||f)return;const K=async()=>{try{B.current&&await Ot.getState().check()}catch(ee){console.error("Health check error:",ee)}};w.current||(w.current=!0,K());const Oe=setInterval(K,lp*1e3);return()=>clearInterval(Oe)},[v,f]),E.useEffect(()=>{(async()=>{if(ne.current)return;if(ne.current=!0,sessionStorage.getItem("VERSION_CHECKED_FROM_LOGIN")==="true"){q(!1);return}try{q(!0);const ee=localStorage.getItem("LIGHTRAG-API-TOKEN"),C=await Ed();if(!C.auth_configured&&C.access_token)_l.getState().login(C.access_token,!0,C.core_version,C.api_version,C.webui_title||null,C.webui_description||null);else if(ee&&(C.core_version||C.api_version||C.webui_title||C.webui_description)){const cl=C.auth_mode==="disabled"||_l.getState().isGuestMode;_l.getState().login(ee,cl,C.core_version,C.api_version,C.webui_title||null,C.webui_description||null)}sessionStorage.setItem("VERSION_CHECKED_FROM_LOGIN","true")}catch(ee){console.error("Failed to get version info:",ee)}finally{q(!1)}})()},[]);const he=E.useCallback(K=>Ve.getState().setCurrentTab(K),[]);return E.useEffect(()=>{h&&(h.includes(xd)||h.includes(Ad))&&M(!0)},[h]),o.jsx(Md,{children:o.jsx(yp,{children:O?o.jsxs("div",{className:"flex h-screen w-screen flex-col",children:[o.jsxs("header",{className:"border-border/40 bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50 flex h-10 w-full border-b px-4 backdrop-blur",children:[o.jsx("div",{className:"min-w-[200px] w-auto flex items-center",children:o.jsxs("a",{href:Dd,className:"flex items-center gap-2",children:[o.jsx(rs,{className:"size-4 text-emerald-400","aria-hidden":"true"}),o.jsx("span",{className:"font-bold md:inline-block",children:ss.name})]})}),o.jsx("div",{className:"flex h-10 flex-1 items-center justify-center"}),o.jsx("nav",{className:"w-[200px] flex items-center justify-end"})]}),o.jsx("div",{className:"flex flex-1 items-center justify-center",children:o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"mb-2 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),o.jsx("p",{children:"Initializing..."})]})})]}):o.jsxs("main",{className:"flex h-screen w-screen overflow-hidden",children:[o.jsxs(Hp,{defaultValue:A,className:"!m-0 flex grow flex-col !p-0 overflow-hidden",onValueChange:he,children:[o.jsx(Yp,{}),o.jsxs("div",{className:"relative grow",children:[o.jsx(Tn,{value:"documents",className:"absolute top-0 right-0 bottom-0 left-0 overflow-auto",children:o.jsx(rp,{})}),o.jsx(Tn,{value:"knowledge-graph",className:"absolute top-0 right-0 bottom-0 left-0 overflow-hidden",children:o.jsx(tp,{})}),o.jsx(Tn,{value:"retrieval",className:"absolute top-0 right-0 bottom-0 left-0 overflow-hidden",children:o.jsx(op,{})}),o.jsx(Tn,{value:"api",className:"absolute top-0 right-0 bottom-0 left-0 overflow-hidden",children:o.jsx(Xp,{})})]})]}),v&&o.jsx(Lp,{}),o.jsx(Up,{open:f,onOpenChange:W})]})})})}const Vp=()=>{const h=Sd(),{login:v,isAuthenticated:A}=_l(),{t:f}=Ul(),[M,O]=E.useState(!1),[q,ne]=E.useState(""),[w,W]=E.useState(""),[B,he]=E.useState(!0),K=E.useRef(!1);if(E.useEffect(()=>{console.log("LoginPage mounted")},[]),E.useEffect(()=>((async()=>{if(!K.current){K.current=!0;try{if(A){h("/");return}const C=await Ed();if((C.core_version||C.api_version)&&sessionStorage.setItem("VERSION_CHECKED_FROM_LOGIN","true"),!C.auth_configured&&C.access_token){v(C.access_token,!0,C.core_version,C.api_version,C.webui_title||null,C.webui_description||null),C.message&&bn.info(C.message),h("/");return}he(!1)}catch(C){console.error("Failed to check auth configuration:",C),he(!1)}}})(),()=>{}),[A,v,h]),B)return null;const Oe=async ee=>{if(ee.preventDefault(),!q||!w){bn.error(f("login.errorEmptyFields"));return}try{O(!0);const C=await ip(q,w);localStorage.getItem("LIGHTRAG-PREVIOUS-USER")===q?console.log("Same user logging in, preserving chat history"):(console.log("Different user logging in, clearing chat history"),Ve.getState().setRetrievalHistory([])),localStorage.setItem("LIGHTRAG-PREVIOUS-USER",q);const ql=C.auth_mode==="disabled";v(C.access_token,ql,C.core_version,C.api_version,C.webui_title||null,C.webui_description||null),(C.core_version||C.api_version)&&sessionStorage.setItem("VERSION_CHECKED_FROM_LOGIN","true"),ql?bn.info(C.message||f("login.authDisabled","Authentication is disabled. Using guest access.")):bn.success(f("login.successMessage")),h("/")}catch(C){console.error("Login failed...",C),bn.error(f("login.errorInvalidCredentials")),_l.getState().logout(),localStorage.removeItem("LIGHTRAG-API-TOKEN")}finally{O(!1)}};return o.jsxs("div",{className:"flex h-screen w-screen items-center justify-center bg-gradient-to-br from-emerald-50 to-teal-100 dark:from-gray-900 dark:to-gray-800",children:[o.jsx("div",{className:"absolute top-4 right-4 flex items-center gap-2",children:o.jsx(Wd,{className:"bg-white/30 dark:bg-gray-800/30 backdrop-blur-sm rounded-md"})}),o.jsxs(ap,{className:"w-full max-w-[480px] shadow-lg mx-4",children:[o.jsx(np,{className:"flex items-center justify-center space-y-2 pb-8 pt-6",children:o.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("img",{src:"logo.svg",alt:"LightRAG Logo",className:"h-12 w-12"}),o.jsx(rs,{className:"size-10 text-emerald-400","aria-hidden":"true"})]}),o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"LightRAG"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:f("login.description")})]})]})}),o.jsx(up,{className:"px-8 pb-8",children:o.jsxs("form",{onSubmit:Oe,className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("label",{htmlFor:"username-input",className:"text-sm font-medium w-16 shrink-0",children:f("login.username")}),o.jsx(cs,{id:"username-input",placeholder:f("login.usernamePlaceholder"),value:q,onChange:ee=>ne(ee.target.value),required:!0,className:"h-11 flex-1"})]}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("label",{htmlFor:"password-input",className:"text-sm font-medium w-16 shrink-0",children:f("login.password")}),o.jsx(cs,{id:"password-input",type:"password",placeholder:f("login.passwordPlaceholder"),value:w,onChange:ee=>W(ee.target.value),required:!0,className:"h-11 flex-1"})]}),o.jsx(xn,{type:"submit",className:"w-full h-11 text-base font-medium mt-2",disabled:M,children:f(M?"login.loggingIn":"login.loginButton")})]})})]})]})},wp=()=>{const[h,v]=E.useState(!0),{isAuthenticated:A}=_l(),f=Sd();return E.useEffect(()=>{Nd.setNavigate(f)},[f]),E.useEffect(()=>((async()=>{try{const O=localStorage.getItem("LIGHTRAG-API-TOKEN");if(O&&A){v(!1);return}O||_l.getState().logout()}catch(O){console.error("Auth initialization error:",O),A||_l.getState().logout()}finally{v(!1)}})(),()=>{}),[A]),E.useEffect(()=>{!h&&!A&&window.location.hash.slice(1)!=="/login"&&(console.log("Not authenticated, redirecting to login"),f("/login"))},[h,A,f]),h?null:o.jsxs(Hg,{children:[o.jsx(ud,{path:"/login",element:o.jsx(Vp,{})}),o.jsx(ud,{path:"/*",element:A?o.jsx(Qp,{}):null})]})},Zp=()=>o.jsx(Md,{children:o.jsxs(Lg,{children:[o.jsx(wp,{}),o.jsx(cp,{position:"bottom-center",theme:"system",closeButton:!0,richColors:!0})]})}),kp={language:"Language",theme:"Theme",light:"Light",dark:"Dark",system:"System"},Jp={documents:"Documents",knowledgeGraph:"Knowledge Graph",retrieval:"Retrieval",api:"API",projectRepository:"Project Repository",logout:"Logout",themeToggle:{switchToLight:"Switch to light theme",switchToDark:"Switch to dark theme"}},Fp={description:"Please enter your account and password to log in to the system",username:"Username",usernamePlaceholder:"Please input a username",password:"Password",passwordPlaceholder:"Please input a password",loginButton:"Login",loggingIn:"Logging in...",successMessage:"Login succeeded",errorEmptyFields:"Please enter your username and password",errorInvalidCredentials:"Login failed, please check username and password",authDisabled:"Authentication is disabled. Using login free mode.",guestMode:"Login Free"},Pp={cancel:"Cancel",save:"Save",saving:"Saving...",saveFailed:"Save failed"},$p={clearDocuments:{button:"Clear",tooltip:"Clear documents",title:"Clear Documents",description:"This will remove all documents from the system",warning:"WARNING: This action will permanently delete all documents and cannot be undone!",confirm:"Do you really want to clear all documents?",confirmPrompt:"Type 'yes' to confirm this action",confirmPlaceholder:"Type yes to confirm",clearCache:"Clear LLM cache",confirmButton:"YES",success:"Documents cleared successfully",cacheCleared:"Cache cleared successfully",cacheClearFailed:`Failed to clear cache:
{{error}}`,failed:`Clear Documents Failed:
{{message}}`,error:`Clear Documents Failed:
{{error}}`},deleteDocuments:{button:"Delete",tooltip:"Delete selected documents",title:"Delete Documents",description:"This will permanently delete the selected documents from the system",warning:"WARNING: This action will permanently delete the selected documents and cannot be undone!",confirm:"Do you really want to delete {{count}} selected document(s)?",confirmPrompt:"Type 'yes' to confirm this action",confirmPlaceholder:"Type yes to confirm",confirmButton:"YES",deleteFileOption:"Also delete uploaded files",deleteFileTooltip:"Check this option to also delete the corresponding uploaded files on the server",success:"Document deletion pipeline started successfully",failed:`Delete Documents Failed:
{{message}}`,error:`Delete Documents Failed:
{{error}}`,busy:"Pipeline is busy, please try again later",notAllowed:"No permission to perform this operation",cannotDeleteAll:"Cannot delete all documents. If you need to delete all documents, please use the Clear Documents feature."},deselectDocuments:{button:"Deselect",tooltip:"Deselect all selected documents",title:"Deselect Documents",description:"This will clear all selected documents ({{count}} selected)",confirmButton:"Deselect All"},uploadDocuments:{button:"Upload",tooltip:"Upload documents",title:"Upload Documents",description:"Drag and drop your documents here or click to browse.",single:{uploading:"Uploading {{name}}: {{percent}}%",success:`Upload Success:
{{name}} uploaded successfully`,failed:`Upload Failed:
{{name}}
{{message}}`,error:`Upload Failed:
{{name}}
{{error}}`},batch:{uploading:"Uploading files...",success:"Files uploaded successfully",error:"Some files failed to upload"},generalError:`Upload Failed
{{error}}`,fileTypes:"Supported types: TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"Cannot upload more than 1 file at a time",maxFilesLimit:"Cannot upload more than {{count}} files",fileRejected:"File {{name}} was rejected",unsupportedType:"Unsupported file type",fileTooLarge:"File too large, maximum size is {{maxSize}}",dropHere:"Drop the files here",dragAndDrop:"Drag and drop files here, or click to select files",removeFile:"Remove file",uploadDescription:"You can upload {{isMultiple ? 'multiple' : count}} files (up to {{maxSize}} each)",duplicateFile:"File name already exists in server cache"}},documentManager:{title:"Document Management",scanButton:"Scan",scanTooltip:"Scan documents in input folder",pipelineStatusButton:"Pipeline Status",pipelineStatusTooltip:"View pipeline status",uploadedTitle:"Uploaded Documents",uploadedDescription:"List of uploaded documents and their statuses.",emptyTitle:"No Documents",emptyDescription:"There are no uploaded documents yet.",columns:{id:"ID",summary:"Summary",status:"Status",length:"Length",chunks:"Chunks",created:"Created",updated:"Updated",metadata:"Metadata",select:"Select"},status:{all:"All",completed:"Completed",processing:"Processing",pending:"Pending",failed:"Failed"},errors:{loadFailed:`Failed to load documents
{{error}}`,scanFailed:`Failed to scan documents
{{error}}`,scanProgressFailed:`Failed to get scan progress
{{error}}`},fileNameLabel:"File Name",showButton:"Show",hideButton:"Hide",showFileNameTooltip:"Show file name",hideFileNameTooltip:"Hide file name"},pipelineStatus:{title:"Pipeline Status",busy:"Pipeline Busy",requestPending:"Request Pending",jobName:"Job Name",startTime:"Start Time",progress:"Progress",unit:"batch",latestMessage:"Latest Message",historyMessages:"History Messages",errors:{fetchFailed:`Failed to get pipeline status
{{error}}`}}},Wp={dataIsTruncated:"Graph data is truncated to Max Nodes",statusDialog:{title:"LightRAG Server Settings",description:"View current system status and connection information"},legend:"Legend",nodeTypes:{person:"Person",category:"Category",geo:"Geographic",location:"Location",organization:"Organization",event:"Event",equipment:"Equipment",weapon:"Weapon",animal:"Animal",unknown:"Unknown",object:"Object",group:"Group",technology:"Technology"},sideBar:{settings:{settings:"Settings",healthCheck:"Health Check",showPropertyPanel:"Show Property Panel",showSearchBar:"Show Search Bar",showNodeLabel:"Show Node Label",nodeDraggable:"Node Draggable",showEdgeLabel:"Show Edge Label",hideUnselectedEdges:"Hide Unselected Edges",edgeEvents:"Edge Events",maxQueryDepth:"Max Query Depth",maxNodes:"Max Nodes",maxLayoutIterations:"Max Layout Iterations",resetToDefault:"Reset to default",edgeSizeRange:"Edge Size Range",depth:"D",max:"Max",degree:"Degree",apiKey:"API Key",enterYourAPIkey:"Enter your API key",save:"Save",refreshLayout:"Refresh Layout"},zoomControl:{zoomIn:"Zoom In",zoomOut:"Zoom Out",resetZoom:"Reset Zoom",rotateCamera:"Clockwise Rotate",rotateCameraCounterClockwise:"Counter-Clockwise Rotate"},layoutsControl:{startAnimation:"Continue layout animation",stopAnimation:"Stop layout animation",layoutGraph:"Layout Graph",layouts:{Circular:"Circular",Circlepack:"Circlepack",Random:"Random",Noverlaps:"Noverlaps","Force Directed":"Force Directed","Force Atlas":"Force Atlas"}},fullScreenControl:{fullScreen:"Full Screen",windowed:"Windowed"},legendControl:{toggleLegend:"Toggle Legend"}},statusIndicator:{connected:"Connected",disconnected:"Disconnected"},statusCard:{unavailable:"Status information unavailable",storageInfo:"Storage Info",workingDirectory:"Working Directory",inputDirectory:"Input Directory",llmConfig:"LLM Configuration",llmBinding:"LLM Binding",llmBindingHost:"LLM Endpoint",llmModel:"LLM Model",maxTokens:"Max Tokens",embeddingConfig:"Embedding Configuration",embeddingBinding:"Embedding Binding",embeddingBindingHost:"Embedding Endpoint",embeddingModel:"Embedding Model",storageConfig:"Storage Configuration",kvStorage:"KV Storage",docStatusStorage:"Doc Status Storage",graphStorage:"Graph Storage",vectorStorage:"Vector Storage",workspace:"Workspace",maxGraphNodes:"Max Graph Nodes",rerankerConfig:"Reranker Configuration",rerankerBindingHost:"Reranker Endpoint",rerankerModel:"Reranker Model",lockStatus:"Lock Status"},propertiesView:{editProperty:"Edit {{property}}",editPropertyDescription:"Edit the property value in the text area below.",errors:{duplicateName:"Node name already exists",updateFailed:"Failed to update node",tryAgainLater:"Please try again later"},success:{entityUpdated:"Node updated successfully",relationUpdated:"Relation updated successfully"},node:{title:"Node",id:"ID",labels:"Labels",degree:"Degree",properties:"Properties",relationships:"Relations(within subgraph)",expandNode:"Expand Node",pruneNode:"Prune Node",deleteAllNodesError:"Refuse to delete all nodes in the graph",nodesRemoved:"{{count}} nodes removed, including orphan nodes",noNewNodes:"No expandable nodes found",propertyNames:{description:"Description",entity_id:"Name",entity_type:"Type",source_id:"SrcID",Neighbour:"Neigh",file_path:"Source",keywords:"Keys",weight:"Weight"}},edge:{title:"Relationship",id:"ID",type:"Type",source:"Source",target:"Target",properties:"Properties"}},search:{placeholder:"Search nodes...",message:"And {count} others"},graphLabels:{selectTooltip:"Select query label",noLabels:"No labels found",label:"Label",placeholder:"Search labels...",andOthers:"And {count} others",refreshTooltip:"Reload data(After file added)"},emptyGraph:"Empty(Try Reload Again)"},Ip={chatMessage:{copyTooltip:"Copy to clipboard",copyError:"Failed to copy text to clipboard"},retrieval:{startPrompt:"Start a retrieval by typing your query below",clear:"Clear",send:"Send",placeholder:"Enter your query (Support prefix: /<Query Mode>)",error:"Error: Failed to get response",queryModeError:"Only supports the following query modes: {{modes}}",queryModePrefixInvalid:"Invalid query mode prefix. Use: /<mode> [space] your query"},querySettings:{parametersTitle:"Parameters",parametersDescription:"Configure your query parameters",queryMode:"Query Mode",queryModeTooltip:`Select the retrieval strategy:
• Naive: Basic search without advanced techniques
• Local: Context-dependent information retrieval
• Global: Utilizes global knowledge base
• Hybrid: Combines local and global retrieval
• Mix: Integrates knowledge graph with vector retrieval
• Bypass: Passes query directly to LLM without retrieval`,queryModeOptions:{naive:"Naive",local:"Local",global:"Global",hybrid:"Hybrid",mix:"Mix",bypass:"Bypass"},responseFormat:"Response Format",responseFormatTooltip:`Defines the response format. Examples:
• Multiple Paragraphs
• Single Paragraph
• Bullet Points`,responseFormatOptions:{multipleParagraphs:"Multiple Paragraphs",singleParagraph:"Single Paragraph",bulletPoints:"Bullet Points"},topK:"Top K",topKTooltip:"Number of top items to retrieve. Represents entities in 'local' mode and relationships in 'global' mode.",topKPlaceholder:"Enter top k value",chunkTopK:"Chunk Top K",chunkTopKTooltip:"Maximum number of text chunks to retrieve and process.",chunkTopKPlaceholder:"Enter chunk top k value",chunkRerankTopK:"Chunk Rerank Top K",chunkRerankTopKTooltip:"Number of text chunks to keep after reranking.",chunkRerankTopKPlaceholder:"Enter rerank top k value",maxEntityTokens:"Max Entity Tokens",maxEntityTokensTooltip:"Maximum number of tokens allocated for entity context in unified token control system",maxRelationTokens:"Max Relation Tokens",maxRelationTokensTooltip:"Maximum number of tokens allocated for relationship context in unified token control system",maxTotalTokens:"Max Total Tokens",maxTotalTokensTooltip:"Maximum total tokens budget for the entire query context (entities + relations + chunks + system prompt)",historyTurns:"History Turns",historyTurnsTooltip:"Number of complete conversation turns (user-assistant pairs) to consider in the response context",historyTurnsPlaceholder:"Number of history turns",onlyNeedContext:"Only Need Context",onlyNeedContextTooltip:"If True, only returns the retrieved context without generating a response",onlyNeedPrompt:"Only Need Prompt",onlyNeedPromptTooltip:"If True, only returns the generated prompt without producing a response",streamResponse:"Stream Response",streamResponseTooltip:"If True, enables streaming output for real-time responses",userPrompt:"User Prompt",userPromptTooltip:"Provide additional response requirements to the LLM (unrelated to query content, only for output processing).",userPromptPlaceholder:"Enter custom prompt (optional)"}},ey={loading:"Loading API Documentation..."},ly={title:"API Key is required",description:"Please enter your API key to access the service",placeholder:"Enter your API key",save:"Save"},ty={settings:kp,header:Jp,login:Fp,common:Pp,documentPanel:$p,graphPanel:Wp,retrievePanel:Ip,apiSite:ey,apiKeyAlert:ly},ay={language:"语言",theme:"主题",light:"浅色",dark:"深色",system:"系统"},ny={documents:"文档",knowledgeGraph:"知识图谱",retrieval:"检索",api:"API",projectRepository:"项目仓库",logout:"退出登录",themeToggle:{switchToLight:"切换到浅色主题",switchToDark:"切换到深色主题"}},uy={description:"请输入您的账号和密码登录系统",username:"用户名",usernamePlaceholder:"请输入用户名",password:"密码",passwordPlaceholder:"请输入密码",loginButton:"登录",loggingIn:"登录中...",successMessage:"登录成功",errorEmptyFields:"请输入您的用户名和密码",errorInvalidCredentials:"登录失败,请检查用户名和密码",authDisabled:"认证已禁用,使用无需登陆模式。",guestMode:"无需登陆"},iy={cancel:"取消",save:"保存",saving:"保存中...",saveFailed:"保存失败"},cy={clearDocuments:{button:"清空",tooltip:"清空文档",title:"清空文档",description:"此操作将从系统中移除所有文档",warning:"警告:此操作将永久删除所有文档,无法恢复!",confirm:"确定要清空所有文档吗?",confirmPrompt:"请输入 yes 确认操作",confirmPlaceholder:"输入 yes 确认",clearCache:"清空LLM缓存",confirmButton:"确定",success:"文档清空成功",cacheCleared:"缓存清空成功",cacheClearFailed:`清空缓存失败:
{{error}}`,failed:`清空文档失败:
{{message}}`,error:`清空文档失败:
{{error}}`},deleteDocuments:{button:"删除",tooltip:"删除选中的文档",title:"删除文档",description:"此操作将永久删除选中的文档",warning:"警告:此操作将永久删除选中的文档,无法恢复!",confirm:"确定要删除 {{count}} 个选中的文档吗?",confirmPrompt:"请输入 yes 确认操作",confirmPlaceholder:"输入 yes 确认",confirmButton:"确定",deleteFileOption:"同时删除上传文件",deleteFileTooltip:"选中此选项将同时删除服务器上对应的上传文件",success:"文档删除流水线启动成功",failed:`删除文档失败:
{{message}}`,error:`删除文档失败:
{{error}}`,busy:"流水线被占用,请稍后再试",notAllowed:"没有操作权限",cannotDeleteAll:"无法删除所有文档。如确实需要删除所有文档请使用清空文档功能。"},deselectDocuments:{button:"取消选择",tooltip:"取消选择所有文档",title:"取消选择文档",description:"此操作将清除所有选中的文档(已选择 {{count}} 个)",confirmButton:"取消全部选择"},uploadDocuments:{button:"上传",tooltip:"上传文档",title:"上传文档",description:"拖拽文件到此处或点击浏览",single:{uploading:"正在上传 {{name}}{{percent}}%",success:`上传成功:
{{name}} 上传完成`,failed:`上传失败:
{{name}}
{{message}}`,error:`上传失败:
{{name}}
{{error}}`},batch:{uploading:"正在上传文件...",success:"文件上传完成",error:"部分文件上传失败"},generalError:`上传失败
{{error}}`,fileTypes:"支持的文件类型TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"一次只能上传一个文件",maxFilesLimit:"最多只能上传 {{count}} 个文件",fileRejected:"文件 {{name}} 被拒绝",unsupportedType:"不支持的文件类型",fileTooLarge:"文件过大,最大允许 {{maxSize}}",dropHere:"将文件拖放到此处",dragAndDrop:"拖放文件到此处,或点击选择文件",removeFile:"移除文件",uploadDescription:"您可以上传{{isMultiple ? '多个' : count}}个文件(每个文件最大{{maxSize}}",duplicateFile:"文件名与服务器上的缓存重复"}},documentManager:{title:"文档管理",scanButton:"扫描",scanTooltip:"扫描输入目录中的文档",pipelineStatusButton:"流水线状态",pipelineStatusTooltip:"查看流水线状态",uploadedTitle:"已上传文档",uploadedDescription:"已上传文档列表及其状态",emptyTitle:"无文档",emptyDescription:"还没有上传任何文档",columns:{id:"ID",summary:"摘要",status:"状态",length:"长度",chunks:"分块",created:"创建时间",updated:"更新时间",metadata:"元数据",select:"选择"},status:{all:"全部",completed:"已完成",processing:"处理中",pending:"等待中",failed:"失败"},errors:{loadFailed:`加载文档失败
{{error}}`,scanFailed:`扫描文档失败
{{error}}`,scanProgressFailed:`获取扫描进度失败
{{error}}`},fileNameLabel:"文件名",showButton:"显示",hideButton:"隐藏",showFileNameTooltip:"显示文件名",hideFileNameTooltip:"隐藏文件名"},pipelineStatus:{title:"流水线状态",busy:"流水线忙碌",requestPending:"待处理请求",jobName:"作业名称",startTime:"开始时间",progress:"进度",unit:"批",latestMessage:"最新消息",historyMessages:"历史消息",errors:{fetchFailed:`获取流水线状态失败
{{error}}`}}},sy={dataIsTruncated:"图数据已截断至最大返回节点数",statusDialog:{title:"LightRAG 服务器设置",description:"查看当前系统状态和连接信息"},legend:"图例",nodeTypes:{person:"人物角色",category:"分类",geo:"地理名称",location:"位置",organization:"组织机构",event:"事件",equipment:"装备",weapon:"武器",animal:"动物",unknown:"未知",object:"物品",group:"群组",technology:"技术"},sideBar:{settings:{settings:"设置",healthCheck:"健康检查",showPropertyPanel:"显示属性面板",showSearchBar:"显示搜索栏",showNodeLabel:"显示节点标签",nodeDraggable:"节点可拖动",showEdgeLabel:"显示边标签",hideUnselectedEdges:"隐藏未选中的边",edgeEvents:"边事件",maxQueryDepth:"最大查询深度",maxNodes:"最大返回节点数",maxLayoutIterations:"最大布局迭代次数",resetToDefault:"重置为默认值",edgeSizeRange:"边粗细范围",depth:"深",max:"Max",degree:"邻边",apiKey:"API密钥",enterYourAPIkey:"输入您的API密钥",save:"保存",refreshLayout:"刷新布局"},zoomControl:{zoomIn:"放大",zoomOut:"缩小",resetZoom:"重置缩放",rotateCamera:"顺时针旋转图形",rotateCameraCounterClockwise:"逆时针旋转图形"},layoutsControl:{startAnimation:"继续布局动画",stopAnimation:"停止布局动画",layoutGraph:"图布局",layouts:{Circular:"环形",Circlepack:"圆形打包",Random:"随机",Noverlaps:"无重叠","Force Directed":"力导向","Force Atlas":"力地图"}},fullScreenControl:{fullScreen:"全屏",windowed:"窗口"},legendControl:{toggleLegend:"切换图例显示"}},statusIndicator:{connected:"已连接",disconnected:"未连接"},statusCard:{unavailable:"状态信息不可用",storageInfo:"存储信息",workingDirectory:"工作目录",inputDirectory:"输入目录",llmConfig:"LLM配置",llmBinding:"LLM绑定",llmBindingHost:"LLM端点",llmModel:"LLM模型",maxTokens:"最大令牌数",embeddingConfig:"嵌入配置",embeddingBinding:"嵌入绑定",embeddingBindingHost:"嵌入端点",embeddingModel:"嵌入模型",storageConfig:"存储配置",kvStorage:"KV存储",docStatusStorage:"文档状态存储",graphStorage:"图存储",vectorStorage:"向量存储",workspace:"工作空间",maxGraphNodes:"最大图节点数",rerankerConfig:"重排序配置",rerankerBindingHost:"重排序端点",rerankerModel:"重排序模型",lockStatus:"锁状态"},propertiesView:{editProperty:"编辑{{property}}",editPropertyDescription:"在下方文本区域编辑属性值。",errors:{duplicateName:"节点名称已存在",updateFailed:"更新节点失败",tryAgainLater:"请稍后重试"},success:{entityUpdated:"节点更新成功",relationUpdated:"关系更新成功"},node:{title:"节点",id:"ID",labels:"标签",degree:"度数",properties:"属性",relationships:"关系(子图内)",expandNode:"扩展节点",pruneNode:"修剪节点",deleteAllNodesError:"拒绝删除图中的所有节点",nodesRemoved:"已删除 {{count}} 个节点,包括孤立节点",noNewNodes:"没有发现可以扩展的节点",propertyNames:{description:"描述",entity_id:"名称",entity_type:"类型",source_id:"信源ID",Neighbour:"邻接",file_path:"信源",keywords:"Keys",weight:"权重"}},edge:{title:"关系",id:"ID",type:"类型",source:"源节点",target:"目标节点",properties:"属性"}},search:{placeholder:"搜索节点...",message:"还有 {count} 个"},graphLabels:{selectTooltip:"选择查询标签",noLabels:"未找到标签",label:"标签",placeholder:"搜索标签...",andOthers:"还有 {count} 个",refreshTooltip:"重载图形数据(添加文件后需重载)"},emptyGraph:"无数据(请重载图形数据)"},oy={chatMessage:{copyTooltip:"复制到剪贴板",copyError:"复制文本到剪贴板失败"},retrieval:{startPrompt:"输入查询开始检索",clear:"清空",send:"发送",placeholder:"输入查询内容 (支持模式前缀: /<Query Mode>)",error:"错误:获取响应失败",queryModeError:"仅支持以下查询模式:{{modes}}",queryModePrefixInvalid:"无效的查询模式前缀。请使用:/<模式> [空格] 查询内容"},querySettings:{parametersTitle:"参数",parametersDescription:"配置查询参数",queryMode:"查询模式",queryModeTooltip:`选择检索策略:
• Naive基础搜索无高级技术
• Local上下文相关信息检索
• Global利用全局知识库
• Hybrid结合本地和全局检索
• Mix整合知识图谱和向量检索
• Bypass直接传递查询到LLM不进行检索`,queryModeOptions:{naive:"Naive",local:"Local",global:"Global",hybrid:"Hybrid",mix:"Mix",bypass:"Bypass"},responseFormat:"响应格式",responseFormatTooltip:`定义响应格式。例如:
• 多段落
• 单段落
• 要点`,responseFormatOptions:{multipleParagraphs:"多段落",singleParagraph:"单段落",bulletPoints:"要点"},topK:"Top K",topKTooltip:"检索的顶部条目数量。在'local'模式下表示实体,在'global'模式下表示关系。",topKPlaceholder:"输入top k值",chunkTopK:"文本块 Top K",chunkTopKTooltip:"检索和处理的最大文本块数量。",chunkTopKPlaceholder:"输入文本块top k值",chunkRerankTopK:"重排序 Top K",chunkRerankTopKTooltip:"重排序后保留的文本块数量。",chunkRerankTopKPlaceholder:"输入重排序top k值",maxEntityTokens:"实体令牌数上限",maxEntityTokensTooltip:"统一令牌控制系统中分配给实体上下文的最大令牌数",maxRelationTokens:"关系令牌数上限",maxRelationTokensTooltip:"统一令牌控制系统中分配给关系上下文的最大令牌数",maxTotalTokens:"总令牌数上限",maxTotalTokensTooltip:"整个查询上下文的最大总令牌预算(实体+关系+文档块+系统提示)",historyTurns:"历史轮次",historyTurnsTooltip:"响应上下文中考虑的完整对话轮次(用户-助手对)数量",historyTurnsPlaceholder:"历史轮次数",onlyNeedContext:"仅需上下文",onlyNeedContextTooltip:"如果为True仅返回检索到的上下文而不生成响应",onlyNeedPrompt:"仅需提示",onlyNeedPromptTooltip:"如果为True仅返回生成的提示而不产生响应",streamResponse:"流式响应",streamResponseTooltip:"如果为True启用实时流式输出响应",userPrompt:"用户提示词",userPromptTooltip:"向LLM提供额外的响应要求与查询内容无关仅用于处理输出。",userPromptPlaceholder:"输入自定义提示词(可选)"}},ry={loading:"正在加载 API 文档..."},fy={title:"需要 API Key",description:"请输入您的 API Key 以访问服务",placeholder:"请输入 API Key",save:"保存"},dy={settings:ay,header:ny,login:uy,common:iy,documentPanel:cy,graphPanel:sy,retrievePanel:oy,apiSite:ry,apiKeyAlert:fy},my={language:"Langue",theme:"Thème",light:"Clair",dark:"Sombre",system:"Système"},hy={documents:"Documents",knowledgeGraph:"Graphe de connaissances",retrieval:"Récupération",api:"API",projectRepository:"Référentiel du projet",logout:"Déconnexion",themeToggle:{switchToLight:"Passer au thème clair",switchToDark:"Passer au thème sombre"}},gy={description:"Veuillez entrer votre compte et mot de passe pour vous connecter au système",username:"Nom d'utilisateur",usernamePlaceholder:"Veuillez saisir un nom d'utilisateur",password:"Mot de passe",passwordPlaceholder:"Veuillez saisir un mot de passe",loginButton:"Connexion",loggingIn:"Connexion en cours...",successMessage:"Connexion réussie",errorEmptyFields:"Veuillez saisir votre nom d'utilisateur et mot de passe",errorInvalidCredentials:"Échec de la connexion, veuillez vérifier le nom d'utilisateur et le mot de passe",authDisabled:"L'authentification est désactivée. Utilisation du mode sans connexion.",guestMode:"Mode sans connexion"},py={cancel:"Annuler",save:"Sauvegarder",saving:"Sauvegarde en cours...",saveFailed:"Échec de la sauvegarde"},yy={clearDocuments:{button:"Effacer",tooltip:"Effacer les documents",title:"Effacer les documents",description:"Cette action supprimera tous les documents du système",warning:"ATTENTION : Cette action supprimera définitivement tous les documents et ne peut pas être annulée !",confirm:"Voulez-vous vraiment effacer tous les documents ?",confirmPrompt:"Tapez 'yes' pour confirmer cette action",confirmPlaceholder:"Tapez yes pour confirmer",clearCache:"Effacer le cache LLM",confirmButton:"OUI",success:"Documents effacés avec succès",cacheCleared:"Cache effacé avec succès",cacheClearFailed:`Échec de l'effacement du cache :
{{error}}`,failed:`Échec de l'effacement des documents :
{{message}}`,error:`Échec de l'effacement des documents :
{{error}}`},deleteDocuments:{button:"Supprimer",tooltip:"Supprimer les documents sélectionnés",title:"Supprimer les documents",description:"Cette action supprimera définitivement les documents sélectionnés du système",warning:"ATTENTION : Cette action supprimera définitivement les documents sélectionnés et ne peut pas être annulée !",confirm:"Voulez-vous vraiment supprimer {{count}} document(s) sélectionné(s) ?",confirmPrompt:"Tapez 'yes' pour confirmer cette action",confirmPlaceholder:"Tapez yes pour confirmer",confirmButton:"OUI",deleteFileOption:"Supprimer également les fichiers téléchargés",deleteFileTooltip:"Cochez cette option pour supprimer également les fichiers téléchargés correspondants sur le serveur",success:"Pipeline de suppression de documents démarré avec succès",failed:`Échec de la suppression des documents :
{{message}}`,error:`Échec de la suppression des documents :
{{error}}`,busy:"Le pipeline est occupé, veuillez réessayer plus tard",notAllowed:"Aucune autorisation pour effectuer cette opération",cannotDeleteAll:"Impossible de supprimer tous les documents. Si vous devez supprimer tous les documents, veuillez utiliser la fonction Effacer les documents."},deselectDocuments:{button:"Désélectionner",tooltip:"Désélectionner tous les documents sélectionnés",title:"Désélectionner les documents",description:"Cette action effacera tous les documents sélectionnés ({{count}} sélectionnés)",confirmButton:"Tout désélectionner"},uploadDocuments:{button:"Télécharger",tooltip:"Télécharger des documents",title:"Télécharger des documents",description:"Glissez-déposez vos documents ici ou cliquez pour parcourir.",single:{uploading:"Téléchargement de {{name}} : {{percent}}%",success:`Succès du téléchargement :
{{name}} téléchargé avec succès`,failed:`Échec du téléchargement :
{{name}}
{{message}}`,error:`Échec du téléchargement :
{{name}}
{{error}}`},batch:{uploading:"Téléchargement des fichiers...",success:"Fichiers téléchargés avec succès",error:"Certains fichiers n'ont pas pu être téléchargés"},generalError:`Échec du téléchargement
{{error}}`,fileTypes:"Types pris en charge : TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"Impossible de télécharger plus d'un fichier à la fois",maxFilesLimit:"Impossible de télécharger plus de {{count}} fichiers",fileRejected:"Le fichier {{name}} a été rejeté",unsupportedType:"Type de fichier non pris en charge",fileTooLarge:"Fichier trop volumineux, taille maximale {{maxSize}}",dropHere:"Déposez les fichiers ici",dragAndDrop:"Glissez et déposez les fichiers ici, ou cliquez pour sélectionner",removeFile:"Supprimer le fichier",uploadDescription:"Vous pouvez télécharger {{isMultiple ? 'plusieurs' : count}} fichiers (jusqu'à {{maxSize}} chacun)",duplicateFile:"Le nom du fichier existe déjà dans le cache du serveur"}},documentManager:{title:"Gestion des documents",scanButton:"Scanner",scanTooltip:"Scanner les documents dans le dossier d'entrée",pipelineStatusButton:"État du Pipeline",pipelineStatusTooltip:"Voir l'état du pipeline",uploadedTitle:"Documents téléchargés",uploadedDescription:"Liste des documents téléchargés et leurs statuts.",emptyTitle:"Aucun document",emptyDescription:"Il n'y a pas encore de documents téléchargés.",columns:{id:"ID",summary:"Résumé",status:"Statut",length:"Longueur",chunks:"Fragments",created:"Créé",updated:"Mis à jour",metadata:"Métadonnées",select:"Sélectionner"},status:{all:"Tous",completed:"Terminé",processing:"En traitement",pending:"En attente",failed:"Échoué"},errors:{loadFailed:`Échec du chargement des documents
{{error}}`,scanFailed:`Échec de la numérisation des documents
{{error}}`,scanProgressFailed:`Échec de l'obtention de la progression de la numérisation
{{error}}`},fileNameLabel:"Nom du fichier",showButton:"Afficher",hideButton:"Masquer",showFileNameTooltip:"Afficher le nom du fichier",hideFileNameTooltip:"Masquer le nom du fichier"},pipelineStatus:{title:"État du Pipeline",busy:"Pipeline occupé",requestPending:"Requête en attente",jobName:"Nom du travail",startTime:"Heure de début",progress:"Progression",unit:"lot",latestMessage:"Dernier message",historyMessages:"Historique des messages",errors:{fetchFailed:`Échec de la récupération de l'état du pipeline
{{error}}`}}},vy={dataIsTruncated:"Les données du graphe sont tronquées au nombre maximum de nœuds",statusDialog:{title:"Paramètres du Serveur LightRAG",description:"Afficher l'état actuel du système et les informations de connexion"},legend:"Légende",nodeTypes:{person:"Personne",category:"Catégorie",geo:"Géographique",location:"Emplacement",organization:"Organisation",event:"Événement",equipment:"Équipement",weapon:"Arme",animal:"Animal",unknown:"Inconnu",object:"Objet",group:"Groupe",technology:"Technologie"},sideBar:{settings:{settings:"Paramètres",healthCheck:"Vérification de l'état",showPropertyPanel:"Afficher le panneau des propriétés",showSearchBar:"Afficher la barre de recherche",showNodeLabel:"Afficher l'étiquette du nœud",nodeDraggable:"Nœud déplaçable",showEdgeLabel:"Afficher l'étiquette de l'arête",hideUnselectedEdges:"Masquer les arêtes non sélectionnées",edgeEvents:"Événements des arêtes",maxQueryDepth:"Profondeur maximale de la requête",maxNodes:"Nombre maximum de nœuds",maxLayoutIterations:"Itérations maximales de mise en page",resetToDefault:"Réinitialiser par défaut",edgeSizeRange:"Plage de taille des arêtes",depth:"D",max:"Max",degree:"Degré",apiKey:"Clé API",enterYourAPIkey:"Entrez votre clé API",save:"Sauvegarder",refreshLayout:"Actualiser la mise en page"},zoomControl:{zoomIn:"Zoom avant",zoomOut:"Zoom arrière",resetZoom:"Réinitialiser le zoom",rotateCamera:"Rotation horaire",rotateCameraCounterClockwise:"Rotation antihoraire"},layoutsControl:{startAnimation:"Démarrer l'animation de mise en page",stopAnimation:"Arrêter l'animation de mise en page",layoutGraph:"Mettre en page le graphe",layouts:{Circular:"Circulaire",Circlepack:"Paquet circulaire",Random:"Aléatoire",Noverlaps:"Sans chevauchement","Force Directed":"Dirigé par la force","Force Atlas":"Atlas de force"}},fullScreenControl:{fullScreen:"Plein écran",windowed:"Fenêtré"},legendControl:{toggleLegend:"Basculer la légende"}},statusIndicator:{connected:"Connecté",disconnected:"Déconnecté"},statusCard:{unavailable:"Informations sur l'état indisponibles",storageInfo:"Informations de stockage",workingDirectory:"Répertoire de travail",inputDirectory:"Répertoire d'entrée",llmConfig:"Configuration du modèle de langage",llmBinding:"Liaison du modèle de langage",llmBindingHost:"Point de terminaison LLM",llmModel:"Modèle de langage",maxTokens:"Nombre maximum de jetons",embeddingConfig:"Configuration d'incorporation",embeddingBinding:"Liaison d'incorporation",embeddingBindingHost:"Point de terminaison d'incorporation",embeddingModel:"Modèle d'incorporation",storageConfig:"Configuration de stockage",kvStorage:"Stockage clé-valeur",docStatusStorage:"Stockage de l'état des documents",graphStorage:"Stockage du graphe",vectorStorage:"Stockage vectoriel",workspace:"Espace de travail",maxGraphNodes:"Nombre maximum de nœuds du graphe",rerankerConfig:"Configuration du reclassement",rerankerBindingHost:"Point de terminaison de reclassement",rerankerModel:"Modèle de reclassement",lockStatus:"État des verrous"},propertiesView:{editProperty:"Modifier {{property}}",editPropertyDescription:"Modifiez la valeur de la propriété dans la zone de texte ci-dessous.",errors:{duplicateName:"Le nom du nœud existe déjà",updateFailed:"Échec de la mise à jour du nœud",tryAgainLater:"Veuillez réessayer plus tard"},success:{entityUpdated:"Nœud mis à jour avec succès",relationUpdated:"Relation mise à jour avec succès"},node:{title:"Nœud",id:"ID",labels:"Étiquettes",degree:"Degré",properties:"Propriétés",relationships:"Relations(dans le sous-graphe)",expandNode:"Développer le nœud",pruneNode:"Élaguer le nœud",deleteAllNodesError:"Refus de supprimer tous les nœuds du graphe",nodesRemoved:"{{count}} nœuds supprimés, y compris les nœuds orphelins",noNewNodes:"Aucun nœud développable trouvé",propertyNames:{description:"Description",entity_id:"Nom",entity_type:"Type",source_id:"ID source",Neighbour:"Voisin",file_path:"Source",keywords:"Keys",weight:"Poids"}},edge:{title:"Relation",id:"ID",type:"Type",source:"Source",target:"Cible",properties:"Propriétés"}},search:{placeholder:"Rechercher des nœuds...",message:"Et {{count}} autres"},graphLabels:{selectTooltip:"Sélectionner l'étiquette de la requête",noLabels:"Aucune étiquette trouvée",label:"Étiquette",placeholder:"Rechercher des étiquettes...",andOthers:"Et {{count}} autres",refreshTooltip:"Recharger les données (Après l'ajout de fichier)"},emptyGraph:"Vide (Essayez de recharger)"},by={chatMessage:{copyTooltip:"Copier dans le presse-papiers",copyError:"Échec de la copie du texte dans le presse-papiers"},retrieval:{startPrompt:"Démarrez une récupération en tapant votre requête ci-dessous",clear:"Effacer",send:"Envoyer",placeholder:"Tapez votre requête (Préfixe de requête : /<Query Mode>)",error:"Erreur : Échec de l'obtention de la réponse",queryModeError:"Seuls les modes de requête suivants sont pris en charge : {{modes}}",queryModePrefixInvalid:"Préfixe de mode de requête invalide. Utilisez : /<mode> [espace] votre requête"},querySettings:{parametersTitle:"Paramètres",parametersDescription:"Configurez vos paramètres de requête",queryMode:"Mode de requête",queryModeTooltip:`Sélectionnez la stratégie de récupération :
• Naïf : Recherche de base sans techniques avancées
• Local : Récupération d'informations dépendante du contexte
• Global : Utilise une base de connaissances globale
• Hybride : Combine récupération locale et globale
• Mixte : Intègre le graphe de connaissances avec la récupération vectorielle
• Bypass : Transmet directement la requête au LLM sans récupération`,queryModeOptions:{naive:"Naïf",local:"Local",global:"Global",hybrid:"Hybride",mix:"Mixte",bypass:"Bypass"},responseFormat:"Format de réponse",responseFormatTooltip:`Définit le format de la réponse. Exemples :
• Plusieurs paragraphes
• Paragraphe unique
• Points à puces`,responseFormatOptions:{multipleParagraphs:"Plusieurs paragraphes",singleParagraph:"Paragraphe unique",bulletPoints:"Points à puces"},topK:"Top K",topKTooltip:"Nombre d'éléments principaux à récupérer. Représente les entités en mode 'local' et les relations en mode 'global'.",topKPlaceholder:"Entrez la valeur top k",chunkTopK:"Top K des Chunks",chunkTopKTooltip:"Nombre maximum de chunks de texte à récupérer et traiter.",chunkTopKPlaceholder:"Entrez la valeur top k des chunks",chunkRerankTopK:"Top K du Reclassement",chunkRerankTopKTooltip:"Nombre de chunks de texte à conserver après reclassement.",chunkRerankTopKPlaceholder:"Entrez la valeur top k du reclassement",maxEntityTokens:"Limite de jetons d'entité",maxEntityTokensTooltip:"Nombre maximum de jetons alloués au contexte d'entité dans le système de contrôle de jetons unifié",maxRelationTokens:"Limite de jetons de relation",maxRelationTokensTooltip:"Nombre maximum de jetons alloués au contexte de relation dans le système de contrôle de jetons unifié",maxTotalTokens:"Limite totale de jetons",maxTotalTokensTooltip:"Budget total maximum de jetons pour l'ensemble du contexte de requête (entités + relations + blocs + prompt système)",historyTurns:"Tours d'historique",historyTurnsTooltip:"Nombre de tours complets de conversation (paires utilisateur-assistant) à prendre en compte dans le contexte de la réponse",historyTurnsPlaceholder:"Nombre de tours d'historique",onlyNeedContext:"Besoin uniquement du contexte",onlyNeedContextTooltip:"Si vrai, ne renvoie que le contexte récupéré sans générer de réponse",onlyNeedPrompt:"Besoin uniquement de l'invite",onlyNeedPromptTooltip:"Si vrai, ne renvoie que l'invite générée sans produire de réponse",streamResponse:"Réponse en flux",streamResponseTooltip:"Si vrai, active la sortie en flux pour des réponses en temps réel",userPrompt:"Invite personnalisée",userPromptTooltip:"Fournir des exigences de réponse supplémentaires au LLM (sans rapport avec le contenu de la requête, uniquement pour le traitement de sortie).",userPromptPlaceholder:"Entrez une invite personnalisée (facultatif)"}},Sy={loading:"Chargement de la documentation de l'API..."},Ty={title:"Clé API requise",description:"Veuillez entrer votre clé API pour accéder au service",placeholder:"Entrez votre clé API",save:"Sauvegarder"},xy={settings:my,header:hy,login:gy,common:py,documentPanel:yy,graphPanel:vy,retrievePanel:by,apiSite:Sy,apiKeyAlert:Ty},Ay={language:"اللغة",theme:"السمة",light:"فاتح",dark:"داكن",system:"النظام"},Dy={documents:"المستندات",knowledgeGraph:"شبكة المعرفة",retrieval:"الاسترجاع",api:"واجهة برمجة التطبيقات",projectRepository:"مستودع المشروع",logout:"تسجيل الخروج",themeToggle:{switchToLight:"التحويل إلى السمة الفاتحة",switchToDark:"التحويل إلى السمة الداكنة"}},Ny={description:"الرجاء إدخال حسابك وكلمة المرور لتسجيل الدخول إلى النظام",username:"اسم المستخدم",usernamePlaceholder:"الرجاء إدخال اسم المستخدم",password:"كلمة المرور",passwordPlaceholder:"الرجاء إدخال كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",successMessage:"تم تسجيل الدخول بنجاح",errorEmptyFields:"الرجاء إدخال اسم المستخدم وكلمة المرور",errorInvalidCredentials:"فشل تسجيل الدخول، يرجى التحقق من اسم المستخدم وكلمة المرور",authDisabled:"تم تعطيل المصادقة. استخدام وضع بدون تسجيل دخول.",guestMode:"وضع بدون تسجيل دخول"},My={cancel:"إلغاء",save:"حفظ",saving:"جارٍ الحفظ...",saveFailed:"فشل الحفظ"},Ey={clearDocuments:{button:"مسح",tooltip:"مسح المستندات",title:"مسح المستندات",description:"سيؤدي هذا إلى إزالة جميع المستندات من النظام",warning:"تحذير: سيؤدي هذا الإجراء إلى حذف جميع المستندات بشكل دائم ولا يمكن التراجع عنه!",confirm:"هل تريد حقًا مسح جميع المستندات؟",confirmPrompt:"اكتب 'yes' لتأكيد هذا الإجراء",confirmPlaceholder:"اكتب yes للتأكيد",clearCache:"مسح كاش نموذج اللغة",confirmButton:"نعم",success:"تم مسح المستندات بنجاح",cacheCleared:"تم مسح ذاكرة التخزين المؤقت بنجاح",cacheClearFailed:`فشل مسح ذاكرة التخزين المؤقت:
{{error}}`,failed:`فشل مسح المستندات:
{{message}}`,error:`فشل مسح المستندات:
{{error}}`},deleteDocuments:{button:"حذف",tooltip:"حذف المستندات المحددة",title:"حذف المستندات",description:"سيؤدي هذا إلى حذف المستندات المحددة نهائيًا من النظام",warning:"تحذير: سيؤدي هذا الإجراء إلى حذف المستندات المحددة نهائيًا ولا يمكن التراجع عنه!",confirm:"هل تريد حقًا حذف {{count}} مستند(ات) محدد(ة)؟",confirmPrompt:"اكتب 'yes' لتأكيد هذا الإجراء",confirmPlaceholder:"اكتب yes للتأكيد",confirmButton:"نعم",deleteFileOption:"حذف الملفات المرفوعة أيضًا",deleteFileTooltip:"حدد هذا الخيار لحذف الملفات المرفوعة المقابلة على الخادم أيضًا",success:"تم بدء تشغيل خط معالجة حذف المستندات بنجاح",failed:`فشل حذف المستندات:
{{message}}`,error:`فشل حذف المستندات:
{{error}}`,busy:"خط المعالجة مشغول، يرجى المحاولة مرة أخرى لاحقًا",notAllowed:"لا توجد صلاحية لتنفيذ هذه العملية",cannotDeleteAll:"لا يمكن حذف جميع المستندات. إذا كنت بحاجة لحذف جميع المستندات، يرجى استخدام ميزة مسح المستندات."},deselectDocuments:{button:"إلغاء التحديد",tooltip:"إلغاء تحديد جميع المستندات المحددة",title:"إلغاء تحديد المستندات",description:"سيؤدي هذا إلى مسح جميع المستندات المحددة ({{count}} محدد)",confirmButton:"إلغاء تحديد الكل"},uploadDocuments:{button:"رفع",tooltip:"رفع المستندات",title:"رفع المستندات",description:"اسحب وأفلت مستنداتك هنا أو انقر للتصفح.",single:{uploading:"جارٍ الرفع {{name}}: {{percent}}%",success:`نجاح الرفع:
تم رفع {{name}} بنجاح`,failed:`فشل الرفع:
{{name}}
{{message}}`,error:`فشل الرفع:
{{name}}
{{error}}`},batch:{uploading:"جارٍ رفع الملفات...",success:"تم رفع الملفات بنجاح",error:"فشل رفع بعض الملفات"},generalError:`فشل الرفع
{{error}}`,fileTypes:"الأنواع المدعومة: TXT، MD، DOCX، PDF، PPTX، RTF، ODT، EPUB، HTML، HTM، TEX، JSON، XML، YAML، YML، CSV، LOG، CONF، INI، PROPERTIES، SQL، BAT، SH، C، CPP، PY، JAVA، JS، TS، SWIFT، GO، RB، PHP، CSS، SCSS، LESS",fileUploader:{singleFileLimit:"لا يمكن رفع أكثر من ملف واحد في المرة الواحدة",maxFilesLimit:"لا يمكن رفع أكثر من {{count}} ملفات",fileRejected:"تم رفض الملف {{name}}",unsupportedType:"نوع الملف غير مدعوم",fileTooLarge:"حجم الملف كبير جدًا، الحد الأقصى {{maxSize}}",dropHere:"أفلت الملفات هنا",dragAndDrop:"اسحب وأفلت الملفات هنا، أو انقر للاختيار",removeFile:"إزالة الملف",uploadDescription:"يمكنك رفع {{isMultiple ? 'عدة' : count}} ملفات (حتى {{maxSize}} لكل منها)",duplicateFile:"اسم الملف موجود بالفعل في ذاكرة التخزين المؤقت للخادم"}},documentManager:{title:"إدارة المستندات",scanButton:"مسح ضوئي",scanTooltip:"مسح المستندات ضوئيًا في مجلد الإدخال",pipelineStatusButton:"حالة خط المعالجة",pipelineStatusTooltip:"عرض حالة خط المعالجة",uploadedTitle:"المستندات المرفوعة",uploadedDescription:"قائمة المستندات المرفوعة وحالاتها.",emptyTitle:"لا توجد مستندات",emptyDescription:"لا توجد مستندات مرفوعة بعد.",columns:{id:"المعرف",summary:"الملخص",status:"الحالة",length:"الطول",chunks:"الأجزاء",created:"تم الإنشاء",updated:"تم التحديث",metadata:"البيانات الوصفية",select:"اختيار"},status:{all:"الكل",completed:"مكتمل",processing:"قيد المعالجة",pending:"معلق",failed:"فشل"},errors:{loadFailed:`فشل تحميل المستندات
{{error}}`,scanFailed:`فشل مسح المستندات
{{error}}`,scanProgressFailed:`فشل الحصول على تقدم المسح
{{error}}`},fileNameLabel:"اسم الملف",showButton:"عرض",hideButton:"إخفاء",showFileNameTooltip:"عرض اسم الملف",hideFileNameTooltip:"إخفاء اسم الملف"},pipelineStatus:{title:"حالة خط المعالجة",busy:"خط المعالجة مشغول",requestPending:"الطلب معلق",jobName:"اسم المهمة",startTime:"وقت البدء",progress:"التقدم",unit:"دفعة",latestMessage:"آخر رسالة",historyMessages:"سجل الرسائل",errors:{fetchFailed:`فشل في جلب حالة خط المعالجة
{{error}}`}}},zy={dataIsTruncated:"تم اقتصار بيانات الرسم البياني على الحد الأقصى للعقد",statusDialog:{title:"إعدادات خادم LightRAG",description:"عرض حالة النظام الحالية ومعلومات الاتصال"},legend:"المفتاح",nodeTypes:{person:"شخص",category:"فئة",geo:"كيان جغرافي",location:"موقع",organization:"منظمة",event:"حدث",equipment:"معدات",weapon:"سلاح",animal:"حيوان",unknown:"غير معروف",object:"مصنوع",group:"مجموعة",technology:"العلوم"},sideBar:{settings:{settings:"الإعدادات",healthCheck:"فحص الحالة",showPropertyPanel:"إظهار لوحة الخصائص",showSearchBar:"إظهار شريط البحث",showNodeLabel:"إظهار تسمية العقدة",nodeDraggable:"العقدة قابلة للسحب",showEdgeLabel:"إظهار تسمية الحافة",hideUnselectedEdges:"إخفاء الحواف غير المحددة",edgeEvents:"أحداث الحافة",maxQueryDepth:"أقصى عمق للاستعلام",maxNodes:"الحد الأقصى للعقد",maxLayoutIterations:"أقصى تكرارات التخطيط",resetToDefault:"إعادة التعيين إلى الافتراضي",edgeSizeRange:"نطاق حجم الحافة",depth:"D",max:"Max",degree:"الدرجة",apiKey:"مفتاح واجهة برمجة التطبيقات",enterYourAPIkey:"أدخل مفتاح واجهة برمجة التطبيقات الخاص بك",save:"حفظ",refreshLayout:"تحديث التخطيط"},zoomControl:{zoomIn:"تكبير",zoomOut:"تصغير",resetZoom:"إعادة تعيين التكبير",rotateCamera:"تدوير في اتجاه عقارب الساعة",rotateCameraCounterClockwise:"تدوير عكس اتجاه عقارب الساعة"},layoutsControl:{startAnimation:"بدء حركة التخطيط",stopAnimation:"إيقاف حركة التخطيط",layoutGraph:"تخطيط الرسم البياني",layouts:{Circular:"دائري",Circlepack:"حزمة دائرية",Random:"عشوائي",Noverlaps:"بدون تداخل","Force Directed":"موجه بالقوة","Force Atlas":"أطلس القوة"}},fullScreenControl:{fullScreen:"شاشة كاملة",windowed:"نوافذ"},legendControl:{toggleLegend:"تبديل المفتاح"}},statusIndicator:{connected:"متصل",disconnected:"غير متصل"},statusCard:{unavailable:"معلومات الحالة غير متوفرة",storageInfo:"معلومات التخزين",workingDirectory:"دليل العمل",inputDirectory:"دليل الإدخال",llmConfig:"تكوين نموذج اللغة الكبير",llmBinding:"ربط نموذج اللغة الكبير",llmBindingHost:"نقطة نهاية نموذج اللغة الكبير",llmModel:"نموذج اللغة الكبير",maxTokens:"أقصى عدد من الرموز",embeddingConfig:"تكوين التضمين",embeddingBinding:"ربط التضمين",embeddingBindingHost:"نقطة نهاية التضمين",embeddingModel:"نموذج التضمين",storageConfig:"تكوين التخزين",kvStorage:"تخزين المفتاح-القيمة",docStatusStorage:"تخزين حالة المستند",graphStorage:"تخزين الرسم البياني",vectorStorage:"تخزين المتجهات",workspace:"مساحة العمل",maxGraphNodes:"الحد الأقصى لعقد الرسم البياني",rerankerConfig:"تكوين إعادة الترتيب",rerankerBindingHost:"نقطة نهاية إعادة الترتيب",rerankerModel:"نموذج إعادة الترتيب",lockStatus:"حالة القفل"},propertiesView:{editProperty:"تعديل {{property}}",editPropertyDescription:"قم بتحرير قيمة الخاصية في منطقة النص أدناه.",errors:{duplicateName:"اسم العقدة موجود بالفعل",updateFailed:"فشل تحديث العقدة",tryAgainLater:"يرجى المحاولة مرة أخرى لاحقًا"},success:{entityUpdated:"تم تحديث العقدة بنجاح",relationUpdated:"تم تحديث العلاقة بنجاح"},node:{title:"عقدة",id:"المعرف",labels:"التسميات",degree:"الدرجة",properties:"الخصائص",relationships:"العلاقات (داخل الرسم الفرعي)",expandNode:"توسيع العقدة",pruneNode:"تقليم العقدة",deleteAllNodesError:"رفض حذف جميع العقد في الرسم البياني",nodesRemoved:"تم إزالة {{count}} عقدة، بما في ذلك العقد اليتيمة",noNewNodes:"لم يتم العثور على عقد قابلة للتوسيع",propertyNames:{description:"الوصف",entity_id:"الاسم",entity_type:"النوع",source_id:"معرف المصدر",Neighbour:"الجار",file_path:"المصدر",keywords:"الكلمات الرئيسية",weight:"الوزن"}},edge:{title:"علاقة",id:"المعرف",type:"النوع",source:"المصدر",target:"الهدف",properties:"الخصائص"}},search:{placeholder:"ابحث في العقد...",message:"و {{count}} آخرون"},graphLabels:{selectTooltip:"حدد تسمية الاستعلام",noLabels:"لم يتم العثور على تسميات",label:"التسمية",placeholder:"ابحث في التسميات...",andOthers:"و {{count}} آخرون",refreshTooltip:"إعادة تحميل البيانات (بعد إضافة الملف)"},emptyGraph:"فارغ (حاول إعادة التحميل)"},Oy={chatMessage:{copyTooltip:"نسخ إلى الحافظة",copyError:"فشل نسخ النص إلى الحافظة"},retrieval:{startPrompt:"ابدأ الاسترجاع بكتابة استفسارك أدناه",clear:"مسح",send:"إرسال",placeholder:"اكتب استفسارك (بادئة وضع الاستعلام: /<Query Mode>)",error:"خطأ: فشل الحصول على الرد",queryModeError:"يُسمح فقط بأنماط الاستعلام التالية: {{modes}}",queryModePrefixInvalid:"بادئة وضع الاستعلام غير صالحة. استخدم: /<الوضع> [مسافة] استفسارك"},querySettings:{parametersTitle:"المعلمات",parametersDescription:"تكوين معلمات الاستعلام الخاص بك",queryMode:"وضع الاستعلام",queryModeTooltip:`حدد استراتيجية الاسترجاع:
• ساذج: بحث أساسي بدون تقنيات متقدمة
• محلي: استرجاع معلومات يعتمد على السياق
• عالمي: يستخدم قاعدة المعرفة العالمية
• مختلط: يجمع بين الاسترجاع المحلي والعالمي
• مزيج: يدمج شبكة المعرفة مع الاسترجاع المتجهي
• تجاوز: يمرر الاستعلام مباشرة إلى LLM بدون استرجاع`,queryModeOptions:{naive:"ساذج",local:"محلي",global:"عالمي",hybrid:"مختلط",mix:"مزيج",bypass:"تجاوز"},responseFormat:"تنسيق الرد",responseFormatTooltip:`يحدد تنسيق الرد. أمثلة:
• فقرات متعددة
• فقرة واحدة
• نقاط نقطية`,responseFormatOptions:{multipleParagraphs:"فقرات متعددة",singleParagraph:"فقرة واحدة",bulletPoints:"نقاط نقطية"},topK:"أعلى K",topKTooltip:"عدد العناصر العلوية للاسترداد. يمثل الكيانات في الوضع 'المحلي' والعلاقات في الوضع 'العالمي'.",topKPlaceholder:"أدخل قيمة أعلى k",chunkTopK:"أعلى K للقطع",chunkTopKTooltip:"العدد الأقصى لقطع النص المراد استردادها ومعالجتها.",chunkTopKPlaceholder:"أدخل قيمة أعلى k للقطع",chunkRerankTopK:"أعلى K لإعادة الترتيب",chunkRerankTopKTooltip:"عدد قطع النص المراد الاحتفاظ بها بعد إعادة الترتيب.",chunkRerankTopKPlaceholder:"أدخل قيمة أعلى k لإعادة الترتيب",maxEntityTokens:"الحد الأقصى لرموز الكيان",maxEntityTokensTooltip:"الحد الأقصى لعدد الرموز المخصصة لسياق الكيان في نظام التحكم الموحد في الرموز",maxRelationTokens:"الحد الأقصى لرموز العلاقة",maxRelationTokensTooltip:"الحد الأقصى لعدد الرموز المخصصة لسياق العلاقة في نظام التحكم الموحد في الرموز",maxTotalTokens:"إجمالي الحد الأقصى للرموز",maxTotalTokensTooltip:"الحد الأقصى الإجمالي لميزانية الرموز لسياق الاستعلام بالكامل (الكيانات + العلاقات + الأجزاء + موجه النظام)",historyTurns:"أدوار التاريخ",historyTurnsTooltip:"عدد الدورات الكاملة للمحادثة (أزواج المستخدم-المساعد) التي يجب مراعاتها في سياق الرد",historyTurnsPlaceholder:"عدد دورات التاريخ",onlyNeedContext:"تحتاج فقط إلى السياق",onlyNeedContextTooltip:"إذا كان صحيحًا، يتم إرجاع السياق المسترجع فقط دون إنشاء رد",onlyNeedPrompt:"تحتاج فقط إلى المطالبة",onlyNeedPromptTooltip:"إذا كان صحيحًا، يتم إرجاع المطالبة المولدة فقط دون إنتاج رد",streamResponse:"تدفق الرد",streamResponseTooltip:"إذا كان صحيحًا، يتيح إخراج التدفق للردود في الوقت الفعلي",userPrompt:"مطالبة مخصصة",userPromptTooltip:"تقديم متطلبات استجابة إضافية إلى نموذج اللغة الكبير (غير متعلقة بمحتوى الاستعلام، فقط لمعالجة المخرجات).",userPromptPlaceholder:"أدخل مطالبة مخصصة (اختياري)"}},Cy={loading:"جارٍ تحميل وثائق واجهة برمجة التطبيقات..."},Ry={title:"مفتاح واجهة برمجة التطبيقات مطلوب",description:"الرجاء إدخال مفتاح واجهة برمجة التطبيقات للوصول إلى الخدمة",placeholder:"أدخل مفتاح واجهة برمجة التطبيقات",save:"حفظ"},jy={settings:Ay,header:Dy,login:Ny,common:My,documentPanel:Ey,graphPanel:zy,retrievePanel:Oy,apiSite:Cy,apiKeyAlert:Ry},_y={language:"語言",theme:"主題",light:"淺色",dark:"深色",system:"系統"},Uy={documents:"文件",knowledgeGraph:"知識圖譜",retrieval:"檢索",api:"API",projectRepository:"專案庫",logout:"登出",themeToggle:{switchToLight:"切換至淺色主題",switchToDark:"切換至深色主題"}},By={description:"請輸入您的帳號和密碼登入系統",username:"帳號",usernamePlaceholder:"請輸入帳號",password:"密碼",passwordPlaceholder:"請輸入密碼",loginButton:"登入",loggingIn:"登入中...",successMessage:"登入成功",errorEmptyFields:"請輸入您的帳號和密碼",errorInvalidCredentials:"登入失敗,請檢查帳號和密碼",authDisabled:"認證已停用,使用免登入模式",guestMode:"免登入"},qy={cancel:"取消",save:"儲存",saving:"儲存中...",saveFailed:"儲存失敗"},Ly={clearDocuments:{button:"清空",tooltip:"清空文件",title:"清空文件",description:"此操作將從系統中移除所有文件",warning:"警告:此操作將永久刪除所有文件,無法復原!",confirm:"確定要清空所有文件嗎?",confirmPrompt:"請輸入 yes 確認操作",confirmPlaceholder:"輸入 yes 以確認",clearCache:"清空 LLM 快取",confirmButton:"確定",success:"文件清空成功",cacheCleared:"快取清空成功",cacheClearFailed:`清空快取失敗:
{{error}}`,failed:`清空文件失敗:
{{message}}`,error:`清空文件失敗:
{{error}}`},deleteDocuments:{button:"刪除",tooltip:"刪除選取的文件",title:"刪除文件",description:"此操作將永久刪除選取的文件",warning:"警告:此操作將永久刪除選取的文件,無法復原!",confirm:"確定要刪除 {{count}} 個選取的文件嗎?",confirmPrompt:"請輸入 yes 確認操作",confirmPlaceholder:"輸入 yes 以確認",confirmButton:"確定",deleteFileOption:"同時刪除上傳檔案",deleteFileTooltip:"選取此選項將同時刪除伺服器上對應的上傳檔案",success:"文件刪除流水線啟動成功",failed:`刪除文件失敗:
{{message}}`,error:`刪除文件失敗:
{{error}}`,busy:"pipeline 被佔用,請稍後再試",notAllowed:"沒有操作權限",cannotDeleteAll:"無法刪除所有文件。如確實需要刪除所有文件請使用清空文件功能。"},deselectDocuments:{button:"取消選取",tooltip:"取消選取所有文件",title:"取消選取文件",description:"此操作將清除所有選取的文件(已選取 {{count}} 個)",confirmButton:"取消全部選取"},uploadDocuments:{button:"上傳",tooltip:"上傳文件",title:"上傳文件",description:"拖曳檔案至此處或點擊瀏覽",single:{uploading:"正在上傳 {{name}}{{percent}}%",success:`上傳成功:
{{name}} 上傳完成`,failed:`上傳失敗:
{{name}}
{{message}}`,error:`上傳失敗:
{{name}}
{{error}}`},batch:{uploading:"正在上傳檔案...",success:"檔案上傳完成",error:"部分檔案上傳失敗"},generalError:`上傳失敗
{{error}}`,fileTypes:"支援的檔案類型TXT, MD, DOCX, PDF, PPTX, RTF, ODT, EPUB, HTML, HTM, TEX, JSON, XML, YAML, YML, CSV, LOG, CONF, INI, PROPERTIES, SQL, BAT, SH, C, CPP, PY, JAVA, JS, TS, SWIFT, GO, RB, PHP, CSS, SCSS, LESS",fileUploader:{singleFileLimit:"一次只能上傳一個檔案",maxFilesLimit:"最多只能上傳 {{count}} 個檔案",fileRejected:"檔案 {{name}} 被拒絕",unsupportedType:"不支援的檔案類型",fileTooLarge:"檔案過大,最大允許 {{maxSize}}",dropHere:"將檔案拖放至此處",dragAndDrop:"拖放檔案至此處,或點擊選擇檔案",removeFile:"移除檔案",uploadDescription:"您可以上傳{{isMultiple ? '多個' : count}}個檔案(每個檔案最大{{maxSize}}",duplicateFile:"檔案名稱與伺服器上的快取重複"}},documentManager:{title:"文件管理",scanButton:"掃描",scanTooltip:"掃描輸入目錄中的文件",pipelineStatusButton:"pipeline 狀態",pipelineStatusTooltip:"查看pipeline 狀態",uploadedTitle:"已上傳文件",uploadedDescription:"已上傳文件清單及其狀態",emptyTitle:"無文件",emptyDescription:"尚未上傳任何文件",columns:{id:"ID",summary:"摘要",status:"狀態",length:"長度",chunks:"分塊",created:"建立時間",updated:"更新時間",metadata:"元資料",select:"選擇"},status:{all:"全部",completed:"已完成",processing:"處理中",pending:"等待中",failed:"失敗"},errors:{loadFailed:`載入文件失敗
{{error}}`,scanFailed:`掃描文件失敗
{{error}}`,scanProgressFailed:`取得掃描進度失敗
{{error}}`},fileNameLabel:"檔案名稱",showButton:"顯示",hideButton:"隱藏",showFileNameTooltip:"顯示檔案名稱",hideFileNameTooltip:"隱藏檔案名稱"},pipelineStatus:{title:"pipeline 狀態",busy:"pipeline 忙碌中",requestPending:"待處理請求",jobName:"工作名稱",startTime:"開始時間",progress:"進度",unit:"梯次",latestMessage:"最新訊息",historyMessages:"歷史訊息",errors:{fetchFailed:`取得pipeline 狀態失敗
{{error}}`}}},Hy={dataIsTruncated:"圖資料已截斷至最大回傳節點數",statusDialog:{title:"LightRAG 伺服器設定",description:"查看目前系統狀態和連線資訊"},legend:"圖例",nodeTypes:{person:"人物角色",category:"分類",geo:"地理名稱",location:"位置",organization:"組織機構",event:"事件",equipment:"設備",weapon:"武器",animal:"動物",unknown:"未知",object:"物品",group:"群組",technology:"技術"},sideBar:{settings:{settings:"設定",healthCheck:"健康檢查",showPropertyPanel:"顯示屬性面板",showSearchBar:"顯示搜尋列",showNodeLabel:"顯示節點標籤",nodeDraggable:"節點可拖曳",showEdgeLabel:"顯示 Edge 標籤",hideUnselectedEdges:"隱藏未選取的 Edge",edgeEvents:"Edge 事件",maxQueryDepth:"最大查詢深度",maxNodes:"最大回傳節點數",maxLayoutIterations:"最大版面配置迭代次數",resetToDefault:"重設為預設值",edgeSizeRange:"Edge 粗細範圍",depth:"深度",max:"最大值",degree:"鄰邊",apiKey:"API key",enterYourAPIkey:"輸入您的 API key",save:"儲存",refreshLayout:"重新整理版面配置"},zoomControl:{zoomIn:"放大",zoomOut:"縮小",resetZoom:"重設縮放",rotateCamera:"順時針旋轉圖形",rotateCameraCounterClockwise:"逆時針旋轉圖形"},layoutsControl:{startAnimation:"繼續版面配置動畫",stopAnimation:"停止版面配置動畫",layoutGraph:"圖形版面配置",layouts:{Circular:"環形",Circlepack:"圓形打包",Random:"隨機",Noverlaps:"無重疊","Force Directed":"力導向","Force Atlas":"力圖"}},fullScreenControl:{fullScreen:"全螢幕",windowed:"視窗"},legendControl:{toggleLegend:"切換圖例顯示"}},statusIndicator:{connected:"已連線",disconnected:"未連線"},statusCard:{unavailable:"狀態資訊不可用",storageInfo:"儲存資訊",workingDirectory:"工作目錄",inputDirectory:"輸入目錄",llmConfig:"LLM 設定",llmBinding:"LLM 綁定",llmBindingHost:"LLM 端點",llmModel:"LLM 模型",maxTokens:"最大權杖數",embeddingConfig:"嵌入設定",embeddingBinding:"嵌入綁定",embeddingBindingHost:"嵌入端點",embeddingModel:"嵌入模型",storageConfig:"儲存設定",kvStorage:"KV 儲存",docStatusStorage:"文件狀態儲存",graphStorage:"圖形儲存",vectorStorage:"向量儲存",workspace:"工作空間",maxGraphNodes:"最大圖形節點數",rerankerConfig:"重排序設定",rerankerBindingHost:"重排序端點",rerankerModel:"重排序模型",lockStatus:"鎖定狀態"},propertiesView:{editProperty:"編輯{{property}}",editPropertyDescription:"在下方文字區域編輯屬性值。",errors:{duplicateName:"節點名稱已存在",updateFailed:"更新節點失敗",tryAgainLater:"請稍後重試"},success:{entityUpdated:"節點更新成功",relationUpdated:"關係更新成功"},node:{title:"節點",id:"ID",labels:"標籤",degree:"度數",properties:"屬性",relationships:"關係(子圖內)",expandNode:"展開節點",pruneNode:"修剪節點",deleteAllNodesError:"拒絕刪除圖中的所有節點",nodesRemoved:"已刪除 {{count}} 個節點,包括孤立節點",noNewNodes:"沒有發現可以展開的節點",propertyNames:{description:"描述",entity_id:"名稱",entity_type:"類型",source_id:"來源ID",Neighbour:"鄰接",file_path:"來源",keywords:"Keys",weight:"權重"}},edge:{title:"關係",id:"ID",type:"類型",source:"來源節點",target:"目標節點",properties:"屬性"}},search:{placeholder:"搜尋節點...",message:"還有 {count} 個"},graphLabels:{selectTooltip:"選擇查詢標籤",noLabels:"未找到標籤",label:"標籤",placeholder:"搜尋標籤...",andOthers:"還有 {count} 個",refreshTooltip:"重載圖形數據(新增檔案後需重載)"},emptyGraph:"無數據(請重載圖形數據)"},Gy={chatMessage:{copyTooltip:"複製到剪貼簿",copyError:"複製文字到剪貼簿失敗"},retrieval:{startPrompt:"輸入查詢開始檢索",clear:"清空",send:"送出",placeholder:"輸入查詢內容 (支援模式前綴:/<Query Mode>)",error:"錯誤:取得回應失敗",queryModeError:"僅支援以下查詢模式:{{modes}}",queryModePrefixInvalid:"無效的查詢模式前綴。請使用:/<模式> [空格] 查詢內容"},querySettings:{parametersTitle:"參數",parametersDescription:"設定查詢參數",queryMode:"查詢模式",queryModeTooltip:`選擇檢索策略:
• Naive基礎搜尋無進階技術
• Local上下文相關資訊檢索
• Global利用全域知識庫
• Hybrid結合本地和全域檢索
• Mix整合知識圖譜和向量檢索
• Bypass直接傳遞查詢到LLM不進行檢索`,queryModeOptions:{naive:"Naive",local:"Local",global:"Global",hybrid:"Hybrid",mix:"Mix",bypass:"Bypass"},responseFormat:"回應格式",responseFormatTooltip:`定義回應格式。例如:
• 多段落
• 單段落
• 重點`,responseFormatOptions:{multipleParagraphs:"多段落",singleParagraph:"單段落",bulletPoints:"重點"},topK:"Top K",topKTooltip:"檢索的頂部條目數量。在'local'模式下表示實體,在'global'模式下表示關係。",topKPlaceholder:"輸入top k值",chunkTopK:"文字區塊 Top K",chunkTopKTooltip:"檢索和處理的最大文字區塊數量。",chunkTopKPlaceholder:"輸入文字區塊top k值",chunkRerankTopK:"重新排序 Top K",chunkRerankTopKTooltip:"重新排序後保留的文字區塊數量。",chunkRerankTopKPlaceholder:"輸入重新排序top k值",historyTurns:"歷史輪次",historyTurnsTooltip:"回應上下文中考慮的完整對話輪次(使用者-助手對)數量",historyTurnsPlaceholder:"歷史輪次數",onlyNeedContext:"僅需上下文",onlyNeedContextTooltip:"如果為True僅回傳檢索到的上下文而不產生回應",onlyNeedPrompt:"僅需提示",onlyNeedPromptTooltip:"如果為True僅回傳產生的提示而不產生回應",streamResponse:"串流回應",streamResponseTooltip:"如果為True啟用即時串流輸出回應",userPrompt:"用戶提示詞",userPromptTooltip:"向LLM提供額外的響應要求與查詢內容無關僅用於處理輸出。",userPromptPlaceholder:"輸入自定義提示詞(可選)",maxEntityTokens:"實體令牌數上限",maxEntityTokensTooltip:"統一令牌控制系統中分配給實體上下文的最大令牌數",maxRelationTokens:"關係令牌數上限",maxRelationTokensTooltip:"統一令牌控制系統中分配給關係上下文的最大令牌數",maxTotalTokens:"總令牌數上限",maxTotalTokensTooltip:"整個查詢上下文的最大總令牌預算(實體+關係+文檔塊+系統提示)"}},Yy={loading:"正在載入 API 文件..."},Ky={title:"需要 API key",description:"請輸入您的 API key 以存取服務",placeholder:"請輸入 API key",save:"儲存"},Xy={settings:_y,header:Uy,login:By,common:qy,documentPanel:Ly,graphPanel:Hy,retrievePanel:Gy,apiSite:Yy,apiKeyAlert:Ky},Qy=()=>{var h;try{const v=localStorage.getItem("settings-storage");if(v)return((h=JSON.parse(v).state)==null?void 0:h.language)||"en"}catch(v){console.error("Failed to get stored language:",v)}return"en"};os.use(sp).init({resources:{en:{translation:ty},zh:{translation:dy},fr:{translation:xy},ar:{translation:jy},zh_TW:{translation:Xy}},lng:Qy(),fallbackLng:"en",interpolation:{escapeValue:!1},returnEmptyString:!1,returnNull:!1});Ve.subscribe(h=>{const v=h.language;os.language!==v&&os.changeLanguage(v)});gp.createRoot(document.getElementById("root")).render(o.jsx(E.StrictMode,{children:o.jsx(Zp,{})}));