mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-07 09:55:29 +08:00
273 lines
240 KiB
JavaScript
273 lines
240 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var eu={exports:{}},Ol={},tu={exports:{}},D={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var wr=Symbol.for("react.element"),$d=Symbol.for("react.portal"),Fd=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),Ud=Symbol.for("react.profiler"),Bd=Symbol.for("react.provider"),Vd=Symbol.for("react.context"),Hd=Symbol.for("react.forward_ref"),Wd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),Kd=Symbol.for("react.lazy"),Ti=Symbol.iterator;function Jd(e){return e===null||typeof e!="object"?null:(e=Ti&&e[Ti]||e["@@iterator"],typeof e=="function"?e:null)}var nu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ru=Object.assign,lu={};function Pn(e,t,n){this.props=e,this.context=t,this.refs=lu,this.updater=n||nu}Pn.prototype.isReactComponent={};Pn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Pn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ou(){}ou.prototype=Pn.prototype;function Rs(e,t,n){this.props=e,this.context=t,this.refs=lu,this.updater=n||nu}var Ls=Rs.prototype=new ou;Ls.constructor=Rs;ru(Ls,Pn.prototype);Ls.isPureReactComponent=!0;var zi=Array.isArray,su=Object.prototype.hasOwnProperty,Ts={current:null},iu={key:!0,ref:!0,__self:!0,__source:!0};function au(e,t,n){var r,l={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)su.call(t,r)&&!iu.hasOwnProperty(r)&&(l[r]=t[r]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+2];l.children=a}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)l[r]===void 0&&(l[r]=i[r]);return{$$typeof:wr,type:e,key:o,ref:s,props:l,_owner:Ts.current}}function Yd(e,t){return{$$typeof:wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zs(e){return typeof e=="object"&&e!==null&&e.$$typeof===wr}function Gd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Oi=/\/+/g;function eo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gd(""+e.key):t.toString(36)}function Kr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case wr:case $d:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+eo(s,0):r,zi(l)?(n="",e!=null&&(n=e.replace(Oi,"$&/")+"/"),Kr(l,t,n,"",function(c){return c})):l!=null&&(zs(l)&&(l=Yd(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(Oi,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",zi(e))for(var i=0;i<e.length;i++){o=e[i];var a=r+eo(o,i);s+=Kr(o,t,n,a,l)}else if(a=Jd(e),typeof a=="function")for(e=a.call(e),i=0;!(o=e.next()).done;)o=o.value,a=r+eo(o,i++),s+=Kr(o,t,n,a,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Rr(e,t,n){if(e==null)return e;var r=[],l=0;return Kr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Xd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ye={current:null},Jr={transition:null},Zd={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Jr,ReactCurrentOwner:Ts};function uu(){throw Error("act(...) is not supported in production builds of React.")}D.Children={map:Rr,forEach:function(e,t,n){Rr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Rr(e,function(){t++}),t},toArray:function(e){return Rr(e,function(t){return t})||[]},only:function(e){if(!zs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=Pn;D.Fragment=Fd;D.Profiler=Ud;D.PureComponent=Rs;D.StrictMode=Ad;D.Suspense=Wd;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zd;D.act=uu;D.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ru({},e.props),l=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ts.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in t)su.call(t,a)&&!iu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&i!==void 0?i[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){i=Array(a);for(var c=0;c<a;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:wr,type:e.type,key:l,ref:o,props:r,_owner:s}};D.createContext=function(e){return e={$$typeof:Vd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bd,_context:e},e.Consumer=e};D.createElement=au;D.createFactory=function(e){var t=au.bind(null,e);return t.type=e,t};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:Hd,render:e}};D.isValidElement=zs;D.lazy=function(e){return{$$typeof:Kd,_payload:{_status:-1,_result:e},_init:Xd}};D.memo=function(e,t){return{$$typeof:Qd,type:e,compare:t===void 0?null:t}};D.startTransition=function(e){var t=Jr.transition;Jr.transition={};try{e()}finally{Jr.transition=t}};D.unstable_act=uu;D.useCallback=function(e,t){return ye.current.useCallback(e,t)};D.useContext=function(e){return ye.current.useContext(e)};D.useDebugValue=function(){};D.useDeferredValue=function(e){return ye.current.useDeferredValue(e)};D.useEffect=function(e,t){return ye.current.useEffect(e,t)};D.useId=function(){return ye.current.useId()};D.useImperativeHandle=function(e,t,n){return ye.current.useImperativeHandle(e,t,n)};D.useInsertionEffect=function(e,t){return ye.current.useInsertionEffect(e,t)};D.useLayoutEffect=function(e,t){return ye.current.useLayoutEffect(e,t)};D.useMemo=function(e,t){return ye.current.useMemo(e,t)};D.useReducer=function(e,t,n){return ye.current.useReducer(e,t,n)};D.useRef=function(e){return ye.current.useRef(e)};D.useState=function(e){return ye.current.useState(e)};D.useSyncExternalStore=function(e,t,n){return ye.current.useSyncExternalStore(e,t,n)};D.useTransition=function(){return ye.current.useTransition()};D.version="18.3.1";tu.exports=D;var g=tu.exports;const qd=bd(g);/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var ef=g,tf=Symbol.for("react.element"),nf=Symbol.for("react.fragment"),rf=Object.prototype.hasOwnProperty,lf=ef.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,of={key:!0,ref:!0,__self:!0,__source:!0};function cu(e,t,n){var r,l={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)rf.call(t,r)&&!of.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:tf,type:e,key:o,ref:s,props:l,_owner:lf.current}}Ol.Fragment=nf;Ol.jsx=cu;Ol.jsxs=cu;eu.exports=Ol;var u=eu.exports,To={},du={exports:{}},Pe={},fu={exports:{}},pu={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(L,E){var z=L.length;L.push(E);e:for(;0<z;){var U=z-1>>>1,W=L[U];if(0<l(W,E))L[U]=E,L[z]=W,z=U;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var E=L[0],z=L.pop();if(z!==E){L[0]=z;e:for(var U=0,W=L.length,ve=W>>>1;U<ve;){var C=2*(U+1)-1,I=L[C],b=C+1,re=L[b];if(0>l(I,z))b<W&&0>l(re,I)?(L[U]=re,L[b]=z,U=b):(L[U]=I,L[C]=z,U=C);else if(b<W&&0>l(re,z))L[U]=re,L[b]=z,U=b;else break e}}return E}function l(L,E){var z=L.sortIndex-E.sortIndex;return z!==0?z:L.id-E.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var a=[],c=[],h=1,p=null,y=3,v=!1,x=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var E=n(c);E!==null;){if(E.callback===null)r(c);else if(E.startTime<=L)r(c),E.sortIndex=E.expirationTime,t(a,E);else break;E=n(c)}}function w(L){if(k=!1,m(L),!x)if(n(a)!==null)x=!0,ht(S);else{var E=n(c);E!==null&&yt(w,E.startTime-L)}}function S(L,E){x=!1,k&&(k=!1,f(R),R=-1),v=!0;var z=y;try{for(m(E),p=n(a);p!==null&&(!(p.expirationTime>E)||L&&!ue());){var U=p.callback;if(typeof U=="function"){p.callback=null,y=p.priorityLevel;var W=U(p.expirationTime<=E);E=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(a)&&r(a),m(E)}else r(a);p=n(a)}if(p!==null)var ve=!0;else{var C=n(c);C!==null&&yt(w,C.startTime-E),ve=!1}return ve}finally{p=null,y=z,v=!1}}var _=!1,P=null,R=-1,F=5,O=-1;function ue(){return!(e.unstable_now()-O<F)}function qe(){if(P!==null){var L=e.unstable_now();O=L;var E=!0;try{E=P(!0,L)}finally{E?et():(_=!1,P=null)}}else _=!1}var et;if(typeof d=="function")et=function(){d(qe)};else if(typeof MessageChannel<"u"){var $t=new MessageChannel,qt=$t.port2;$t.port1.onmessage=qe,et=function(){qt.postMessage(null)}}else et=function(){N(qe,0)};function ht(L){P=L,_||(_=!0,et())}function yt(L,E){R=N(function(){L(e.unstable_now())},E)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,ht(S))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var E=3;break;default:E=y}var z=y;y=E;try{return L()}finally{y=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,E){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var z=y;y=L;try{return E()}finally{y=z}},e.unstable_scheduleCallback=function(L,E,z){var U=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?U+z:U):z=U,L){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=z+W,L={id:h++,callback:E,priorityLevel:L,startTime:z,expirationTime:W,sortIndex:-1},z>U?(L.sortIndex=z,t(c,L),n(a)===null&&L===n(c)&&(k?(f(R),R=-1):k=!0,yt(w,z-U))):(L.sortIndex=W,t(a,L),x||v||(x=!0,ht(S))),L},e.unstable_shouldYield=ue,e.unstable_wrapCallback=function(L){var E=y;return function(){var z=y;y=E;try{return L.apply(this,arguments)}finally{y=z}}}})(pu);fu.exports=pu;var sf=fu.exports;/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var af=g,_e=sf;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mu=new Set,nr={};function Xt(e,t){kn(e,t),kn(e+"Capture",t)}function kn(e,t){for(nr[e]=t,e=0;e<t.length;e++)mu.add(t[e])}var at=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zo=Object.prototype.hasOwnProperty,uf=/^[: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]*$/,Ii={},Di={};function cf(e){return zo.call(Di,e)?!0:zo.call(Ii,e)?!1:uf.test(e)?Di[e]=!0:(Ii[e]=!0,!1)}function df(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ff(e,t,n,r){if(t===null||typeof t>"u"||df(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ge(e,t,n,r,l,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ae[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ae[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ae[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ae[e]=new ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ae[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ae[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ae[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ae[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ae[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Os=/[\-:]([a-z])/g;function Is(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Os,Is);ae[t]=new ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Os,Is);ae[t]=new ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Os,Is);ae[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ae[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});ae.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ae[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ds(e,t,n,r){var l=ae.hasOwnProperty(t)?ae[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ff(t,n,l,r)&&(n=null),r||l===null?cf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pt=af.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lr=Symbol.for("react.element"),nn=Symbol.for("react.portal"),rn=Symbol.for("react.fragment"),Ms=Symbol.for("react.strict_mode"),Oo=Symbol.for("react.profiler"),hu=Symbol.for("react.provider"),yu=Symbol.for("react.context"),bs=Symbol.for("react.forward_ref"),Io=Symbol.for("react.suspense"),Do=Symbol.for("react.suspense_list"),$s=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),gu=Symbol.for("react.offscreen"),Mi=Symbol.iterator;function In(e){return e===null||typeof e!="object"?null:(e=Mi&&e[Mi]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,to;function Vn(e){if(to===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);to=t&&t[1]||""}return`
|
|
`+to+e}var no=!1;function ro(e,t){if(!e||no)return"";no=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
`),o=r.stack.split(`
|
|
`),s=l.length-1,i=o.length-1;1<=s&&0<=i&&l[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(l[s]!==o[i]){if(s!==1||i!==1)do if(s--,i--,0>i||l[s]!==o[i]){var a=`
|
|
`+l[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=i);break}}}finally{no=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vn(e):""}function pf(e){switch(e.tag){case 5:return Vn(e.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return e=ro(e.type,!1),e;case 11:return e=ro(e.type.render,!1),e;case 1:return e=ro(e.type,!0),e;default:return""}}function Mo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rn:return"Fragment";case nn:return"Portal";case Oo:return"Profiler";case Ms:return"StrictMode";case Io:return"Suspense";case Do:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yu:return(e.displayName||"Context")+".Consumer";case hu:return(e._context.displayName||"Context")+".Provider";case bs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $s:return t=e.displayName||null,t!==null?t:Mo(e.type)||"Memo";case xt:t=e._payload,e=e._init;try{return Mo(e(t))}catch{}}return null}function mf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Mo(t);case 8:return t===Ms?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hf(e){var t=vu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tr(e){e._valueTracker||(e._valueTracker=hf(e))}function xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(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}}function bo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wu(e,t){t=t.checked,t!=null&&Ds(e,"checked",t,!1)}function $o(e,t){wu(e,t);var n=Ot(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fo(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $i(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Fo(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hn=Array.isArray;function hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ot(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Ao(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Hn(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ot(n)}}function ku(e,t){var n=Ot(t.value),r=Ot(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ai(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Uo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zr,Su=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zr=zr||document.createElement("div"),zr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yf=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(e){yf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kn[t]=Kn[e]})});function ju(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}function Eu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ju(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var gf=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bo(e,t){if(t){if(gf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Vo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Ho=null;function Fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,yn=null,gn=null;function Ui(e){if(e=Sr(e)){if(typeof Wo!="function")throw Error(j(280));var t=e.stateNode;t&&(t=$l(t),Wo(e.stateNode,e.type,t))}}function Cu(e){yn?gn?gn.push(e):gn=[e]:yn=e}function _u(){if(yn){var e=yn,t=gn;if(gn=yn=null,Ui(e),t)for(e=0;e<t.length;e++)Ui(t[e])}}function Pu(e,t){return e(t)}function Ru(){}var lo=!1;function Lu(e,t,n){if(lo)return e(t,n);lo=!0;try{return Pu(e,t,n)}finally{lo=!1,(yn!==null||gn!==null)&&(Ru(),_u())}}function lr(e,t){var n=e.stateNode;if(n===null)return null;var r=$l(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Qo=!1;if(at)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){Qo=!0}}),window.addEventListener("test",Dn,Dn),window.removeEventListener("test",Dn,Dn)}catch{Qo=!1}function vf(e,t,n,r,l,o,s,i,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var Jn=!1,al=null,ul=!1,Ko=null,xf={onError:function(e){Jn=!0,al=e}};function wf(e,t,n,r,l,o,s,i,a){Jn=!1,al=null,vf.apply(xf,arguments)}function kf(e,t,n,r,l,o,s,i,a){if(wf.apply(this,arguments),Jn){if(Jn){var c=al;Jn=!1,al=null}else throw Error(j(198));ul||(ul=!0,Ko=c)}}function Zt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bi(e){if(Zt(e)!==e)throw Error(j(188))}function Nf(e){var t=e.alternate;if(!t){if(t=Zt(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Bi(l),e;if(o===r)return Bi(l),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function zu(e){return e=Nf(e),e!==null?Ou(e):null}function Ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ou(e);if(t!==null)return t;e=e.sibling}return null}var Iu=_e.unstable_scheduleCallback,Vi=_e.unstable_cancelCallback,Sf=_e.unstable_shouldYield,jf=_e.unstable_requestPaint,Z=_e.unstable_now,Ef=_e.unstable_getCurrentPriorityLevel,As=_e.unstable_ImmediatePriority,Du=_e.unstable_UserBlockingPriority,cl=_e.unstable_NormalPriority,Cf=_e.unstable_LowPriority,Mu=_e.unstable_IdlePriority,Il=null,Ge=null;function _f(e){if(Ge&&typeof Ge.onCommitFiberRoot=="function")try{Ge.onCommitFiberRoot(Il,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Lf,Pf=Math.log,Rf=Math.LN2;function Lf(e){return e>>>=0,e===0?32:31-(Pf(e)/Rf|0)|0}var Or=64,Ir=4194304;function Wn(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~l;i!==0?r=Wn(i):(o&=s,o!==0&&(r=Wn(o)))}else s=n&~l,s!==0?r=Wn(s):o!==0&&(r=Wn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function Tf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Ue(o),i=1<<s,a=l[s];a===-1?(!(i&n)||i&r)&&(l[s]=Tf(i,t)):a<=t&&(e.expiredLanes|=i),o&=~i}}function Jo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bu(){var e=Or;return Or<<=1,!(Or&4194240)&&(Or=64),e}function oo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function Of(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ue(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Us(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var A=0;function $u(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fu,Bs,Au,Uu,Bu,Yo=!1,Dr=[],Et=null,Ct=null,_t=null,or=new Map,sr=new Map,kt=[],If="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 submit".split(" ");function Hi(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(t.pointerId)}}function Mn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Sr(t),t!==null&&Bs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Df(e,t,n,r,l){switch(t){case"focusin":return Et=Mn(Et,e,t,n,r,l),!0;case"dragenter":return Ct=Mn(Ct,e,t,n,r,l),!0;case"mouseover":return _t=Mn(_t,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return or.set(o,Mn(or.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,sr.set(o,Mn(sr.get(o)||null,e,t,n,r,l)),!0}return!1}function Vu(e){var t=Ut(e.target);if(t!==null){var n=Zt(t);if(n!==null){if(t=n.tag,t===13){if(t=Tu(n),t!==null){e.blockedOn=t,Bu(e.priority,function(){Au(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Go(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ho=r,n.target.dispatchEvent(r),Ho=null}else return t=Sr(n),t!==null&&Bs(t),e.blockedOn=n,!1;t.shift()}return!0}function Wi(e,t,n){Yr(e)&&n.delete(t)}function Mf(){Yo=!1,Et!==null&&Yr(Et)&&(Et=null),Ct!==null&&Yr(Ct)&&(Ct=null),_t!==null&&Yr(_t)&&(_t=null),or.forEach(Wi),sr.forEach(Wi)}function bn(e,t){e.blockedOn===t&&(e.blockedOn=null,Yo||(Yo=!0,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,Mf)))}function ir(e){function t(l){return bn(l,e)}if(0<Dr.length){bn(Dr[0],e);for(var n=1;n<Dr.length;n++){var r=Dr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Et!==null&&bn(Et,e),Ct!==null&&bn(Ct,e),_t!==null&&bn(_t,e),or.forEach(t),sr.forEach(t),n=0;n<kt.length;n++)r=kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&(n=kt[0],n.blockedOn===null);)Vu(n),n.blockedOn===null&&kt.shift()}var vn=pt.ReactCurrentBatchConfig,fl=!0;function bf(e,t,n,r){var l=A,o=vn.transition;vn.transition=null;try{A=1,Vs(e,t,n,r)}finally{A=l,vn.transition=o}}function $f(e,t,n,r){var l=A,o=vn.transition;vn.transition=null;try{A=4,Vs(e,t,n,r)}finally{A=l,vn.transition=o}}function Vs(e,t,n,r){if(fl){var l=Go(e,t,n,r);if(l===null)yo(e,t,r,pl,n),Hi(e,r);else if(Df(l,e,t,n,r))r.stopPropagation();else if(Hi(e,r),t&4&&-1<If.indexOf(e)){for(;l!==null;){var o=Sr(l);if(o!==null&&Fu(o),o=Go(e,t,n,r),o===null&&yo(e,t,r,pl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else yo(e,t,r,null,n)}}var pl=null;function Go(e,t,n,r){if(pl=null,e=Fs(r),e=Ut(e),e!==null)if(t=Zt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pl=e,null}function Hu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ef()){case As:return 1;case Du:return 4;case cl:case Cf:return 16;case Mu:return 536870912;default:return 16}default:return 16}}var St=null,Hs=null,Gr=null;function Wu(){if(Gr)return Gr;var e,t=Hs,n=t.length,r,l="value"in St?St.value:St.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return Gr=l.slice(e,1<r?1-r:void 0)}function Xr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mr(){return!0}function Qi(){return!1}function Re(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Mr:Qi,this.isPropagationStopped=Qi,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Mr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mr)},persist:function(){},isPersistent:Mr}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=Re(Rn),Nr=G({},Rn,{view:0,detail:0}),Ff=Re(Nr),so,io,$n,Dl=G({},Nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qs,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!==$n&&($n&&e.type==="mousemove"?(so=e.screenX-$n.screenX,io=e.screenY-$n.screenY):io=so=0,$n=e),so)},movementY:function(e){return"movementY"in e?e.movementY:io}}),Ki=Re(Dl),Af=G({},Dl,{dataTransfer:0}),Uf=Re(Af),Bf=G({},Nr,{relatedTarget:0}),ao=Re(Bf),Vf=G({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hf=Re(Vf),Wf=G({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qf=Re(Wf),Kf=G({},Rn,{data:0}),Ji=Re(Kf),Jf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yf={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"},Gf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gf[e])?!!t[e]:!1}function Qs(){return Xf}var Zf=G({},Nr,{key:function(e){if(e.key){var t=Jf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qs,charCode:function(e){return e.type==="keypress"?Xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qf=Re(Zf),ep=G({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yi=Re(ep),tp=G({},Nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qs}),np=Re(tp),rp=G({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),lp=Re(rp),op=G({},Dl,{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}),sp=Re(op),ip=[9,13,27,32],Ks=at&&"CompositionEvent"in window,Yn=null;at&&"documentMode"in document&&(Yn=document.documentMode);var ap=at&&"TextEvent"in window&&!Yn,Qu=at&&(!Ks||Yn&&8<Yn&&11>=Yn),Gi=" ",Xi=!1;function Ku(e,t){switch(e){case"keyup":return ip.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ln=!1;function up(e,t){switch(e){case"compositionend":return Ju(t);case"keypress":return t.which!==32?null:(Xi=!0,Gi);case"textInput":return e=t.data,e===Gi&&Xi?null:e;default:return null}}function cp(e,t){if(ln)return e==="compositionend"||!Ks&&Ku(e,t)?(e=Wu(),Gr=Hs=St=null,ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qu&&t.locale!=="ko"?null:t.data;default:return null}}var dp={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 Zi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dp[e.type]:t==="textarea"}function Yu(e,t,n,r){Cu(r),t=ml(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,ar=null;function fp(e){sc(e,0)}function Ml(e){var t=an(e);if(xu(t))return e}function pp(e,t){if(e==="change")return t}var Gu=!1;if(at){var uo;if(at){var co="oninput"in document;if(!co){var qi=document.createElement("div");qi.setAttribute("oninput","return;"),co=typeof qi.oninput=="function"}uo=co}else uo=!1;Gu=uo&&(!document.documentMode||9<document.documentMode)}function ea(){Gn&&(Gn.detachEvent("onpropertychange",Xu),ar=Gn=null)}function Xu(e){if(e.propertyName==="value"&&Ml(ar)){var t=[];Yu(t,ar,e,Fs(e)),Lu(fp,t)}}function mp(e,t,n){e==="focusin"?(ea(),Gn=t,ar=n,Gn.attachEvent("onpropertychange",Xu)):e==="focusout"&&ea()}function hp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ml(ar)}function yp(e,t){if(e==="click")return Ml(t)}function gp(e,t){if(e==="input"||e==="change")return Ml(t)}function vp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ve=typeof Object.is=="function"?Object.is:vp;function ur(e,t){if(Ve(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!zo.call(t,l)||!Ve(e[l],t[l]))return!1}return!0}function ta(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function na(e,t){var n=ta(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ta(n)}}function Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qu(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function Js(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xp(e){var t=qu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zu(n.ownerDocument.documentElement,n)){if(r!==null&&Js(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=na(n,o);var s=na(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wp=at&&"documentMode"in document&&11>=document.documentMode,on=null,Xo=null,Xn=null,Zo=!1;function ra(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zo||on==null||on!==il(r)||(r=on,"selectionStart"in r&&Js(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xn&&ur(Xn,r)||(Xn=r,r=ml(Xo,"onSelect"),0<r.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=on)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sn={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},fo={},ec={};at&&(ec=document.createElement("div").style,"AnimationEvent"in window||(delete sn.animationend.animation,delete sn.animationiteration.animation,delete sn.animationstart.animation),"TransitionEvent"in window||delete sn.transitionend.transition);function bl(e){if(fo[e])return fo[e];if(!sn[e])return e;var t=sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ec)return fo[e]=t[n];return e}var tc=bl("animationend"),nc=bl("animationiteration"),rc=bl("animationstart"),lc=bl("transitionend"),oc=new Map,la="abort auxClick 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(" ");function Dt(e,t){oc.set(e,t),Xt(t,[e])}for(var po=0;po<la.length;po++){var mo=la[po],kp=mo.toLowerCase(),Np=mo[0].toUpperCase()+mo.slice(1);Dt(kp,"on"+Np)}Dt(tc,"onAnimationEnd");Dt(nc,"onAnimationIteration");Dt(rc,"onAnimationStart");Dt("dblclick","onDoubleClick");Dt("focusin","onFocus");Dt("focusout","onBlur");Dt(lc,"onTransitionEnd");kn("onMouseEnter",["mouseout","mouseover"]);kn("onMouseLeave",["mouseout","mouseover"]);kn("onPointerEnter",["pointerout","pointerover"]);kn("onPointerLeave",["pointerout","pointerover"]);Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qn="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(" "),Sp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qn));function oa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kf(r,t,void 0,e),e.currentTarget=null}function sc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],a=i.instance,c=i.currentTarget;if(i=i.listener,a!==o&&l.isPropagationStopped())break e;oa(l,i,c),o=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,c=i.currentTarget,i=i.listener,a!==o&&l.isPropagationStopped())break e;oa(l,i,c),o=a}}}if(ul)throw e=Ko,ul=!1,Ko=null,e}function V(e,t){var n=t[rs];n===void 0&&(n=t[rs]=new Set);var r=e+"__bubble";n.has(r)||(ic(t,e,2,!1),n.add(r))}function ho(e,t,n){var r=0;t&&(r|=4),ic(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function cr(e){if(!e[$r]){e[$r]=!0,mu.forEach(function(n){n!=="selectionchange"&&(Sp.has(n)||ho(n,!1,e),ho(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$r]||(t[$r]=!0,ho("selectionchange",!1,t))}}function ic(e,t,n,r){switch(Hu(t)){case 1:var l=bf;break;case 4:l=$f;break;default:l=Vs}n=l.bind(null,t,n,e),l=void 0,!Qo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function yo(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===l||i.nodeType===8&&i.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;s=s.return}for(;i!==null;){if(s=Ut(i),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}i=i.parentNode}}r=r.return}Lu(function(){var c=o,h=Fs(n),p=[];e:{var y=oc.get(e);if(y!==void 0){var v=Ws,x=e;switch(e){case"keypress":if(Xr(n)===0)break e;case"keydown":case"keyup":v=qf;break;case"focusin":x="focus",v=ao;break;case"focusout":x="blur",v=ao;break;case"beforeblur":case"afterblur":v=ao;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Ki;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Uf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=np;break;case tc:case nc:case rc:v=Hf;break;case lc:v=lp;break;case"scroll":v=Ff;break;case"wheel":v=sp;break;case"copy":case"cut":case"paste":v=Qf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Yi}var k=(t&4)!==0,N=!k&&e==="scroll",f=k?y!==null?y+"Capture":null:y;k=[];for(var d=c,m;d!==null;){m=d;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,f!==null&&(w=lr(d,f),w!=null&&k.push(dr(d,w,m)))),N)break;d=d.return}0<k.length&&(y=new v(y,x,null,n,h),p.push({event:y,listeners:k}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",y&&n!==Ho&&(x=n.relatedTarget||n.fromElement)&&(Ut(x)||x[ut]))break e;if((v||y)&&(y=h.window===h?h:(y=h.ownerDocument)?y.defaultView||y.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=c,x=x?Ut(x):null,x!==null&&(N=Zt(x),x!==N||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=c),v!==x)){if(k=Ki,w="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=Yi,w="onPointerLeave",f="onPointerEnter",d="pointer"),N=v==null?y:an(v),m=x==null?y:an(x),y=new k(w,d+"leave",v,n,h),y.target=N,y.relatedTarget=m,w=null,Ut(h)===c&&(k=new k(f,d+"enter",x,n,h),k.target=m,k.relatedTarget=N,w=k),N=w,v&&x)t:{for(k=v,f=x,d=0,m=k;m;m=tn(m))d++;for(m=0,w=f;w;w=tn(w))m++;for(;0<d-m;)k=tn(k),d--;for(;0<m-d;)f=tn(f),m--;for(;d--;){if(k===f||f!==null&&k===f.alternate)break t;k=tn(k),f=tn(f)}k=null}else k=null;v!==null&&sa(p,y,v,k,!1),x!==null&&N!==null&&sa(p,N,x,k,!0)}}e:{if(y=c?an(c):window,v=y.nodeName&&y.nodeName.toLowerCase(),v==="select"||v==="input"&&y.type==="file")var S=pp;else if(Zi(y))if(Gu)S=gp;else{S=hp;var _=mp}else(v=y.nodeName)&&v.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(S=yp);if(S&&(S=S(e,c))){Yu(p,S,n,h);break e}_&&_(e,y,c),e==="focusout"&&(_=y._wrapperState)&&_.controlled&&y.type==="number"&&Fo(y,"number",y.value)}switch(_=c?an(c):window,e){case"focusin":(Zi(_)||_.contentEditable==="true")&&(on=_,Xo=c,Xn=null);break;case"focusout":Xn=Xo=on=null;break;case"mousedown":Zo=!0;break;case"contextmenu":case"mouseup":case"dragend":Zo=!1,ra(p,n,h);break;case"selectionchange":if(wp)break;case"keydown":case"keyup":ra(p,n,h)}var P;if(Ks)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ln?Ku(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Qu&&n.locale!=="ko"&&(ln||R!=="onCompositionStart"?R==="onCompositionEnd"&&ln&&(P=Wu()):(St=h,Hs="value"in St?St.value:St.textContent,ln=!0)),_=ml(c,R),0<_.length&&(R=new Ji(R,e,null,n,h),p.push({event:R,listeners:_}),P?R.data=P:(P=Ju(n),P!==null&&(R.data=P)))),(P=ap?up(e,n):cp(e,n))&&(c=ml(c,"onBeforeInput"),0<c.length&&(h=new Ji("onBeforeInput","beforeinput",null,n,h),p.push({event:h,listeners:c}),h.data=P))}sc(p,t)})}function dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=lr(e,n),o!=null&&r.unshift(dr(e,o,l)),o=lr(e,t),o!=null&&r.push(dr(e,o,l))),e=e.return}return r}function tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sa(e,t,n,r,l){for(var o=t._reactName,s=[];n!==null&&n!==r;){var i=n,a=i.alternate,c=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&c!==null&&(i=c,l?(a=lr(n,o),a!=null&&s.unshift(dr(n,a,i))):l||(a=lr(n,o),a!=null&&s.push(dr(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var jp=/\r\n?/g,Ep=/\u0000|\uFFFD/g;function ia(e){return(typeof e=="string"?e:""+e).replace(jp,`
|
|
`).replace(Ep,"")}function Fr(e,t,n){if(t=ia(t),ia(e)!==t&&n)throw Error(j(425))}function hl(){}var qo=null,es=null;function ts(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ns=typeof setTimeout=="function"?setTimeout:void 0,Cp=typeof clearTimeout=="function"?clearTimeout:void 0,aa=typeof Promise=="function"?Promise:void 0,_p=typeof queueMicrotask=="function"?queueMicrotask:typeof aa<"u"?function(e){return aa.resolve(null).then(e).catch(Pp)}:ns;function Pp(e){setTimeout(function(){throw e})}function go(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),ir(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);ir(t)}function Pt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ln=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Ln,fr="__reactProps$"+Ln,ut="__reactContainer$"+Ln,rs="__reactEvents$"+Ln,Rp="__reactListeners$"+Ln,Lp="__reactHandles$"+Ln;function Ut(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ua(e);e!==null;){if(n=e[Ye])return n;e=ua(e)}return t}e=n,n=e.parentNode}return null}function Sr(e){return e=e[Ye]||e[ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function an(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function $l(e){return e[fr]||null}var ls=[],un=-1;function Mt(e){return{current:e}}function H(e){0>un||(e.current=ls[un],ls[un]=null,un--)}function B(e,t){un++,ls[un]=e.current,e.current=t}var It={},pe=Mt(It),ke=Mt(!1),Qt=It;function Nn(e,t){var n=e.type.contextTypes;if(!n)return It;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ne(e){return e=e.childContextTypes,e!=null}function yl(){H(ke),H(pe)}function ca(e,t,n){if(pe.current!==It)throw Error(j(168));B(pe,t),B(ke,n)}function ac(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(j(108,mf(e)||"Unknown",l));return G({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||It,Qt=pe.current,B(pe,e),B(ke,ke.current),!0}function da(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=ac(e,t,Qt),r.__reactInternalMemoizedMergedChildContext=e,H(ke),H(pe),B(pe,e)):H(ke),B(ke,n)}var rt=null,Fl=!1,vo=!1;function uc(e){rt===null?rt=[e]:rt.push(e)}function Tp(e){Fl=!0,uc(e)}function bt(){if(!vo&&rt!==null){vo=!0;var e=0,t=A;try{var n=rt;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rt=null,Fl=!1}catch(l){throw rt!==null&&(rt=rt.slice(e+1)),Iu(As,bt),l}finally{A=t,vo=!1}}return null}var cn=[],dn=0,vl=null,xl=0,Te=[],ze=0,Kt=null,lt=1,ot="";function Ft(e,t){cn[dn++]=xl,cn[dn++]=vl,vl=e,xl=t}function cc(e,t,n){Te[ze++]=lt,Te[ze++]=ot,Te[ze++]=Kt,Kt=e;var r=lt;e=ot;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var o=32-Ue(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,lt=1<<32-Ue(t)+l|n<<l|r,ot=o+e}else lt=1<<o|n<<l|r,ot=e}function Ys(e){e.return!==null&&(Ft(e,1),cc(e,1,0))}function Gs(e){for(;e===vl;)vl=cn[--dn],cn[dn]=null,xl=cn[--dn],cn[dn]=null;for(;e===Kt;)Kt=Te[--ze],Te[ze]=null,ot=Te[--ze],Te[ze]=null,lt=Te[--ze],Te[ze]=null}var Ce=null,Ee=null,Q=!1,Ae=null;function dc(e,t){var n=Oe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ce=e,Ee=Pt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ce=e,Ee=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kt!==null?{id:lt,overflow:ot}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Oe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ce=e,Ee=null,!0):!1;default:return!1}}function os(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ss(e){if(Q){var t=Ee;if(t){var n=t;if(!fa(e,t)){if(os(e))throw Error(j(418));t=Pt(n.nextSibling);var r=Ce;t&&fa(e,t)?dc(r,n):(e.flags=e.flags&-4097|2,Q=!1,Ce=e)}}else{if(os(e))throw Error(j(418));e.flags=e.flags&-4097|2,Q=!1,Ce=e}}}function pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ce=e}function Ar(e){if(e!==Ce)return!1;if(!Q)return pa(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ts(e.type,e.memoizedProps)),t&&(t=Ee)){if(os(e))throw fc(),Error(j(418));for(;t;)dc(e,t),t=Pt(t.nextSibling)}if(pa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ee=Pt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ee=null}}else Ee=Ce?Pt(e.stateNode.nextSibling):null;return!0}function fc(){for(var e=Ee;e;)e=Pt(e.nextSibling)}function Sn(){Ee=Ce=null,Q=!1}function Xs(e){Ae===null?Ae=[e]:Ae.push(e)}var zp=pt.ReactCurrentBatchConfig;function Fn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var i=l.refs;s===null?delete i[o]:i[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Ur(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){var t=e._init;return t(e._payload)}function pc(e){function t(f,d){if(e){var m=f.deletions;m===null?(f.deletions=[d],f.flags|=16):m.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function l(f,d){return f=zt(f,d),f.index=0,f.sibling=null,f}function o(f,d,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<d?(f.flags|=2,d):m):(f.flags|=2,d)):(f.flags|=1048576,d)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function i(f,d,m,w){return d===null||d.tag!==6?(d=Eo(m,f.mode,w),d.return=f,d):(d=l(d,m),d.return=f,d)}function a(f,d,m,w){var S=m.type;return S===rn?h(f,d,m.props.children,w,m.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xt&&ma(S)===d.type)?(w=l(d,m.props),w.ref=Fn(f,d,m),w.return=f,w):(w=ll(m.type,m.key,m.props,null,f.mode,w),w.ref=Fn(f,d,m),w.return=f,w)}function c(f,d,m,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=Co(m,f.mode,w),d.return=f,d):(d=l(d,m.children||[]),d.return=f,d)}function h(f,d,m,w,S){return d===null||d.tag!==7?(d=Wt(m,f.mode,w,S),d.return=f,d):(d=l(d,m),d.return=f,d)}function p(f,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Eo(""+d,f.mode,m),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Lr:return m=ll(d.type,d.key,d.props,null,f.mode,m),m.ref=Fn(f,null,d),m.return=f,m;case nn:return d=Co(d,f.mode,m),d.return=f,d;case xt:var w=d._init;return p(f,w(d._payload),m)}if(Hn(d)||In(d))return d=Wt(d,f.mode,m,null),d.return=f,d;Ur(f,d)}return null}function y(f,d,m,w){var S=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:i(f,d,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Lr:return m.key===S?a(f,d,m,w):null;case nn:return m.key===S?c(f,d,m,w):null;case xt:return S=m._init,y(f,d,S(m._payload),w)}if(Hn(m)||In(m))return S!==null?null:h(f,d,m,w,null);Ur(f,m)}return null}function v(f,d,m,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return f=f.get(m)||null,i(d,f,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Lr:return f=f.get(w.key===null?m:w.key)||null,a(d,f,w,S);case nn:return f=f.get(w.key===null?m:w.key)||null,c(d,f,w,S);case xt:var _=w._init;return v(f,d,m,_(w._payload),S)}if(Hn(w)||In(w))return f=f.get(m)||null,h(d,f,w,S,null);Ur(d,w)}return null}function x(f,d,m,w){for(var S=null,_=null,P=d,R=d=0,F=null;P!==null&&R<m.length;R++){P.index>R?(F=P,P=null):F=P.sibling;var O=y(f,P,m[R],w);if(O===null){P===null&&(P=F);break}e&&P&&O.alternate===null&&t(f,P),d=o(O,d,R),_===null?S=O:_.sibling=O,_=O,P=F}if(R===m.length)return n(f,P),Q&&Ft(f,R),S;if(P===null){for(;R<m.length;R++)P=p(f,m[R],w),P!==null&&(d=o(P,d,R),_===null?S=P:_.sibling=P,_=P);return Q&&Ft(f,R),S}for(P=r(f,P);R<m.length;R++)F=v(P,f,R,m[R],w),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?R:F.key),d=o(F,d,R),_===null?S=F:_.sibling=F,_=F);return e&&P.forEach(function(ue){return t(f,ue)}),Q&&Ft(f,R),S}function k(f,d,m,w){var S=In(m);if(typeof S!="function")throw Error(j(150));if(m=S.call(m),m==null)throw Error(j(151));for(var _=S=null,P=d,R=d=0,F=null,O=m.next();P!==null&&!O.done;R++,O=m.next()){P.index>R?(F=P,P=null):F=P.sibling;var ue=y(f,P,O.value,w);if(ue===null){P===null&&(P=F);break}e&&P&&ue.alternate===null&&t(f,P),d=o(ue,d,R),_===null?S=ue:_.sibling=ue,_=ue,P=F}if(O.done)return n(f,P),Q&&Ft(f,R),S;if(P===null){for(;!O.done;R++,O=m.next())O=p(f,O.value,w),O!==null&&(d=o(O,d,R),_===null?S=O:_.sibling=O,_=O);return Q&&Ft(f,R),S}for(P=r(f,P);!O.done;R++,O=m.next())O=v(P,f,R,O.value,w),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?R:O.key),d=o(O,d,R),_===null?S=O:_.sibling=O,_=O);return e&&P.forEach(function(qe){return t(f,qe)}),Q&&Ft(f,R),S}function N(f,d,m,w){if(typeof m=="object"&&m!==null&&m.type===rn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Lr:e:{for(var S=m.key,_=d;_!==null;){if(_.key===S){if(S=m.type,S===rn){if(_.tag===7){n(f,_.sibling),d=l(_,m.props.children),d.return=f,f=d;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xt&&ma(S)===_.type){n(f,_.sibling),d=l(_,m.props),d.ref=Fn(f,_,m),d.return=f,f=d;break e}n(f,_);break}else t(f,_);_=_.sibling}m.type===rn?(d=Wt(m.props.children,f.mode,w,m.key),d.return=f,f=d):(w=ll(m.type,m.key,m.props,null,f.mode,w),w.ref=Fn(f,d,m),w.return=f,f=w)}return s(f);case nn:e:{for(_=m.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=l(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=Co(m,f.mode,w),d.return=f,f=d}return s(f);case xt:return _=m._init,N(f,d,_(m._payload),w)}if(Hn(m))return x(f,d,m,w);if(In(m))return k(f,d,m,w);Ur(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,m),d.return=f,f=d):(n(f,d),d=Eo(m,f.mode,w),d.return=f,f=d),s(f)):n(f,d)}return N}var jn=pc(!0),mc=pc(!1),wl=Mt(null),kl=null,fn=null,Zs=null;function qs(){Zs=fn=kl=null}function ei(e){var t=wl.current;H(wl),e._currentValue=t}function is(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xn(e,t){kl=e,Zs=fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(Zs!==e)if(e={context:e,memoizedValue:t,next:null},fn===null){if(kl===null)throw Error(j(308));fn=e,kl.dependencies={lanes:0,firstContext:e}}else fn=fn.next=e;return t}var Bt=null;function ti(e){Bt===null?Bt=[e]:Bt.push(e)}function hc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ti(t)):(n.next=l.next,l.next=n),t.interleaved=n,ct(e,r)}function ct(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var wt=!1;function ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function st(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,ct(e,n)}return l=r.interleaved,l===null?(t.next=t,ti(r)):(t.next=l.next,l.next=t),r.interleaved=t,ct(e,n)}function Zr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Us(e,n)}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Nl(e,t,n,r){var l=e.updateQueue;wt=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var a=i,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var h=e.alternate;h!==null&&(h=h.updateQueue,i=h.lastBaseUpdate,i!==s&&(i===null?h.firstBaseUpdate=c:i.next=c,h.lastBaseUpdate=a))}if(o!==null){var p=l.baseState;s=0,h=c=a=null,i=o;do{var y=i.lane,v=i.eventTime;if((r&y)===y){h!==null&&(h=h.next={eventTime:v,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var x=e,k=i;switch(y=t,v=n,k.tag){case 1:if(x=k.payload,typeof x=="function"){p=x.call(v,p,y);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=k.payload,y=typeof x=="function"?x.call(v,p,y):x,y==null)break e;p=G({},p,y);break e;case 2:wt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,y=l.effects,y===null?l.effects=[i]:y.push(i))}else v={eventTime:v,lane:y,tag:i.tag,payload:i.payload,callback:i.callback,next:null},h===null?(c=h=v,a=p):h=h.next=v,s|=y;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;y=i,i=y.next,y.next=null,l.lastBaseUpdate=y,l.shared.pending=null}}while(!0);if(h===null&&(a=p),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Yt|=s,e.lanes=s,e.memoizedState=p}}function ya(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(j(191,l));l.call(r)}}}var jr={},Xe=Mt(jr),pr=Mt(jr),mr=Mt(jr);function Vt(e){if(e===jr)throw Error(j(174));return e}function ri(e,t){switch(B(mr,t),B(pr,e),B(Xe,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uo(t,e)}H(Xe),B(Xe,t)}function En(){H(Xe),H(pr),H(mr)}function gc(e){Vt(mr.current);var t=Vt(Xe.current),n=Uo(t,e.type);t!==n&&(B(pr,e),B(Xe,n))}function li(e){pr.current===e&&(H(Xe),H(pr))}var J=Mt(0);function Sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xo=[];function oi(){for(var e=0;e<xo.length;e++)xo[e]._workInProgressVersionPrimary=null;xo.length=0}var qr=pt.ReactCurrentDispatcher,wo=pt.ReactCurrentBatchConfig,Jt=0,Y=null,te=null,le=null,jl=!1,Zn=!1,hr=0,Op=0;function ce(){throw Error(j(321))}function si(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ve(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,l,o){if(Jt=o,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qr.current=e===null||e.memoizedState===null?bp:$p,e=n(r,l),Zn){o=0;do{if(Zn=!1,hr=0,25<=o)throw Error(j(301));o+=1,le=te=null,t.updateQueue=null,qr.current=Fp,e=n(r,l)}while(Zn)}if(qr.current=El,t=te!==null&&te.next!==null,Jt=0,le=te=Y=null,jl=!1,t)throw Error(j(300));return e}function ai(){var e=hr!==0;return hr=0,e}function Je(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?Y.memoizedState=le=e:le=le.next=e,le}function Me(){if(te===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=le===null?Y.memoizedState:le.next;if(t!==null)le=t,te=e;else{if(e===null)throw Error(j(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},le===null?Y.memoizedState=le=e:le=le.next=e}return le}function yr(e,t){return typeof t=="function"?t(e):t}function ko(e){var t=Me(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=te,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var i=s=null,a=null,c=o;do{var h=c.lane;if((Jt&h)===h)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(i=a=p,s=r):a=a.next=p,Y.lanes|=h,Yt|=h}c=c.next}while(c!==null&&c!==o);a===null?s=r:a.next=i,Ve(r,t.memoizedState)||(we=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Y.lanes|=o,Yt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function No(e){var t=Me(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);Ve(o,t.memoizedState)||(we=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vc(){}function xc(e,t){var n=Y,r=Me(),l=t(),o=!Ve(r.memoizedState,l);if(o&&(r.memoizedState=l,we=!0),r=r.queue,ui(Nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,gr(9,kc.bind(null,n,r,l,t),void 0,null),oe===null)throw Error(j(349));Jt&30||wc(n,t,l)}return l}function wc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kc(e,t,n,r){t.value=n,t.getSnapshot=r,Sc(t)&&jc(e)}function Nc(e,t,n){return n(function(){Sc(t)&&jc(e)})}function Sc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ve(e,n)}catch{return!0}}function jc(e){var t=ct(e,1);t!==null&&Be(t,e,1,-1)}function ga(e){var t=Je();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:e},t.queue=e,e=e.dispatch=Mp.bind(null,Y,e),[t.memoizedState,e]}function gr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ec(){return Me().memoizedState}function el(e,t,n,r){var l=Je();Y.flags|=e,l.memoizedState=gr(1|t,n,void 0,r===void 0?null:r)}function Al(e,t,n,r){var l=Me();r=r===void 0?null:r;var o=void 0;if(te!==null){var s=te.memoizedState;if(o=s.destroy,r!==null&&si(r,s.deps)){l.memoizedState=gr(t,n,o,r);return}}Y.flags|=e,l.memoizedState=gr(1|t,n,o,r)}function va(e,t){return el(8390656,8,e,t)}function ui(e,t){return Al(2048,8,e,t)}function Cc(e,t){return Al(4,2,e,t)}function _c(e,t){return Al(4,4,e,t)}function Pc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rc(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,Pc.bind(null,t,e),n)}function ci(){}function Lc(e,t){var n=Me();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tc(e,t){var n=Me();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zc(e,t,n){return Jt&21?(Ve(n,t)||(n=bu(),Y.lanes|=n,Yt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,we=!0),e.memoizedState=n)}function Ip(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=wo.transition;wo.transition={};try{e(!1),t()}finally{A=n,wo.transition=r}}function Oc(){return Me().memoizedState}function Dp(e,t,n){var r=Tt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ic(e))Dc(t,n);else if(n=hc(e,t,n,r),n!==null){var l=he();Be(n,e,r,l),Mc(n,t,r)}}function Mp(e,t,n){var r=Tt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ic(e))Dc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,n);if(l.hasEagerState=!0,l.eagerState=i,Ve(i,s)){var a=t.interleaved;a===null?(l.next=l,ti(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=hc(e,t,l,r),n!==null&&(l=he(),Be(n,e,r,l),Mc(n,t,r))}}function Ic(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Dc(e,t){Zn=jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Us(e,n)}}var El={readContext:De,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},bp={readContext:De,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,el(4194308,4,Pc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return el(4194308,4,e,t)},useInsertionEffect:function(e,t){return el(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dp.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:ga,useDebugValue:ci,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=ga(!1),t=e[0];return e=Ip.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,l=Je();if(Q){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),oe===null)throw Error(j(349));Jt&30||wc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,va(Nc.bind(null,r,o,e),[e]),r.flags|=2048,gr(9,kc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Je(),t=oe.identifierPrefix;if(Q){var n=ot,r=lt;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Op++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$p={readContext:De,useCallback:Lc,useContext:De,useEffect:ui,useImperativeHandle:Rc,useInsertionEffect:Cc,useLayoutEffect:_c,useMemo:Tc,useReducer:ko,useRef:Ec,useState:function(){return ko(yr)},useDebugValue:ci,useDeferredValue:function(e){var t=Me();return zc(t,te.memoizedState,e)},useTransition:function(){var e=ko(yr)[0],t=Me().memoizedState;return[e,t]},useMutableSource:vc,useSyncExternalStore:xc,useId:Oc,unstable_isNewReconciler:!1},Fp={readContext:De,useCallback:Lc,useContext:De,useEffect:ui,useImperativeHandle:Rc,useInsertionEffect:Cc,useLayoutEffect:_c,useMemo:Tc,useReducer:No,useRef:Ec,useState:function(){return No(yr)},useDebugValue:ci,useDeferredValue:function(e){var t=Me();return te===null?t.memoizedState=e:zc(t,te.memoizedState,e)},useTransition:function(){var e=No(yr)[0],t=Me().memoizedState;return[e,t]},useMutableSource:vc,useSyncExternalStore:xc,useId:Oc,unstable_isNewReconciler:!1};function $e(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function as(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ul={isMounted:function(e){return(e=e._reactInternals)?Zt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=he(),l=Tt(e),o=st(r,l);o.payload=t,n!=null&&(o.callback=n),t=Rt(e,o,l),t!==null&&(Be(t,e,l,r),Zr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=he(),l=Tt(e),o=st(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Rt(e,o,l),t!==null&&(Be(t,e,l,r),Zr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=he(),r=Tt(e),l=st(n,r);l.tag=2,t!=null&&(l.callback=t),t=Rt(e,l,r),t!==null&&(Be(t,e,r,n),Zr(t,e,r))}};function xa(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!ur(n,r)||!ur(l,o):!0}function bc(e,t,n){var r=!1,l=It,o=t.contextType;return typeof o=="object"&&o!==null?o=De(o):(l=Ne(t)?Qt:pe.current,r=t.contextTypes,o=(r=r!=null)?Nn(e,l):It),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ul,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function wa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ul.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ni(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=De(o):(o=Ne(t)?Qt:pe.current,l.context=Nn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(as(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ul.enqueueReplaceState(l,l.state,null),Nl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Cn(e,t){try{var n="",r=t;do n+=pf(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
Error generating stack: `+o.message+`
|
|
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function So(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ap=typeof WeakMap=="function"?WeakMap:Map;function $c(e,t,n){n=st(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,ws=r),cs(e,t)},n}function Fc(e,t,n){n=st(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){cs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){cs(e,t),typeof r!="function"&&(Lt===null?Lt=new Set([this]):Lt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ka(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ap;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=em.bind(null,e,t,n),t.then(e,e))}function Na(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Sa(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=st(-1,1),t.tag=2,Rt(n,t,1))),n.lanes|=1),e)}var Up=pt.ReactCurrentOwner,we=!1;function me(e,t,n,r){t.child=e===null?mc(t,null,n,r):jn(t,e.child,n,r)}function ja(e,t,n,r,l){n=n.render;var o=t.ref;return xn(t,l),r=ii(e,t,n,r,o,l),n=ai(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dt(e,t,l)):(Q&&n&&Ys(t),t.flags|=1,me(e,t,r,l),t.child)}function Ea(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!vi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ac(e,t,o,r,l)):(e=ll(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:ur,n(s,r)&&e.ref===t.ref)return dt(e,t,l)}return t.flags|=1,e=zt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ac(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref)if(we=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(we=!0);else return t.lanes=e.lanes,dt(e,t,l)}return ds(e,t,n,r,l)}function Uc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(mn,je),je|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(mn,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(mn,je),je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(mn,je),je|=r;return me(e,t,l,n),t.child}function Bc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ds(e,t,n,r,l){var o=Ne(n)?Qt:pe.current;return o=Nn(t,o),xn(t,l),n=ii(e,t,n,r,o,l),r=ai(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dt(e,t,l)):(Q&&r&&Ys(t),t.flags|=1,me(e,t,n,l),t.child)}function Ca(e,t,n,r,l){if(Ne(n)){var o=!0;gl(t)}else o=!1;if(xn(t,l),t.stateNode===null)tl(e,t),bc(t,n,r),us(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=De(c):(c=Ne(n)?Qt:pe.current,c=Nn(t,c));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==c)&&wa(t,s,r,c),wt=!1;var y=t.memoizedState;s.state=y,Nl(t,r,s,l),a=t.memoizedState,i!==r||y!==a||ke.current||wt?(typeof h=="function"&&(as(t,n,h,r),a=t.memoizedState),(i=wt||xa(t,n,i,r,y,a,c))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=c,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,yc(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:$e(t.type,i),s.props=c,p=t.pendingProps,y=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=De(a):(a=Ne(n)?Qt:pe.current,a=Nn(t,a));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||y!==a)&&wa(t,s,r,a),wt=!1,y=t.memoizedState,s.state=y,Nl(t,r,s,l);var x=t.memoizedState;i!==p||y!==x||ke.current||wt?(typeof v=="function"&&(as(t,n,v,r),x=t.memoizedState),(c=wt||xa(t,n,c,r,y,x,a)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return fs(e,t,n,r,o,l)}function fs(e,t,n,r,l,o){Bc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&da(t,n,!1),dt(e,t,o);r=t.stateNode,Up.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=jn(t,e.child,null,o),t.child=jn(t,null,i,o)):me(e,t,i,o),t.memoizedState=r.state,l&&da(t,n,!0),t.child}function Vc(e){var t=e.stateNode;t.pendingContext?ca(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ca(e,t.context,!1),ri(e,t.containerInfo)}function _a(e,t,n,r,l){return Sn(),Xs(l),t.flags|=256,me(e,t,n,r),t.child}var ps={dehydrated:null,treeContext:null,retryLane:0};function ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hc(e,t,n){var r=t.pendingProps,l=J.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(J,l&1),e===null)return ss(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Hl(s,r,0,null),e=Wt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ms(n),t.memoizedState=ps,e):di(t,s));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return Bp(e,t,s,r,i,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,i=l.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=zt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=zt(i,o):(o=Wt(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?ms(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=ps,r}return o=e.child,e=o.sibling,r=zt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function di(e,t){return t=Hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Br(e,t,n,r){return r!==null&&Xs(r),jn(t,e.child,null,n),e=di(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=So(Error(j(422))),Br(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Hl({mode:"visible",children:r.children},l,0,null),o=Wt(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&jn(t,e.child,null,s),t.child.memoizedState=ms(s),t.memoizedState=ps,o);if(!(t.mode&1))return Br(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(j(419)),r=So(o,r,void 0),Br(e,t,s,r)}if(i=(s&e.childLanes)!==0,we||i){if(r=oe,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,ct(e,l),Be(r,e,l,-1))}return gi(),r=So(Error(j(421))),Br(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=tm.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Ee=Pt(l.nextSibling),Ce=t,Q=!0,Ae=null,e!==null&&(Te[ze++]=lt,Te[ze++]=ot,Te[ze++]=Kt,lt=e.id,ot=e.overflow,Kt=t),t=di(t,r.children),t.flags|=4096,t)}function Pa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),is(e.return,t,n)}function jo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Wc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(me(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pa(e,n,t);else if(e.tag===19)Pa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(J,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Sl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),jo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Sl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}jo(t,!0,n,null,o);break;case"together":jo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vp(e,t,n){switch(t.tag){case 3:Vc(t),Sn();break;case 5:gc(t);break;case 1:Ne(t.type)&&gl(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(wl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?Hc(e,t,n):(B(J,J.current&1),e=dt(e,t,n),e!==null?e.sibling:null);B(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,Uc(e,t,n)}return dt(e,t,n)}var Qc,hs,Kc,Jc;Qc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};hs=function(){};Kc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Vt(Xe.current);var o=null;switch(n){case"input":l=bo(e,l),r=bo(e,r),o=[];break;case"select":l=G({},l,{value:void 0}),r=G({},r,{value:void 0}),o=[];break;case"textarea":l=Ao(e,l),r=Ao(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hl)}Bo(n,r);var s;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var i=l[c];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(nr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var a=r[c];if(i=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(o=o||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(nr.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&V("scroll",e),o||i===a||(o=[])):(o=o||[]).push(c,a))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Jc=function(e,t,n,r){n!==r&&(t.flags|=4)};function An(e,t){if(!Q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function de(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hp(e,t,n){var r=t.pendingProps;switch(Gs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(t),null;case 1:return Ne(t.type)&&yl(),de(t),null;case 3:return r=t.stateNode,En(),H(ke),H(pe),oi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ar(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ae!==null&&(Ss(Ae),Ae=null))),hs(e,t),de(t),null;case 5:li(t);var l=Vt(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Kc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return de(t),null}if(e=Vt(Xe.current),Ar(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ye]=t,r[fr]=o,e=(t.mode&1)!==0,n){case"dialog":V("cancel",r),V("close",r);break;case"iframe":case"object":case"embed":V("load",r);break;case"video":case"audio":for(l=0;l<Qn.length;l++)V(Qn[l],r);break;case"source":V("error",r);break;case"img":case"image":case"link":V("error",r),V("load",r);break;case"details":V("toggle",r);break;case"input":bi(r,o),V("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},V("invalid",r);break;case"textarea":Fi(r,o),V("invalid",r)}Bo(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&Fr(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&Fr(r.textContent,i,e),l=["children",""+i]):nr.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&V("scroll",r)}switch(n){case"input":Tr(r),$i(r,o,!0);break;case"textarea":Tr(r),Ai(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=hl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[fr]=r,Qc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Vo(n,r),n){case"dialog":V("cancel",e),V("close",e),l=r;break;case"iframe":case"object":case"embed":V("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qn.length;l++)V(Qn[l],e);l=r;break;case"source":V("error",e),l=r;break;case"img":case"image":case"link":V("error",e),V("load",e),l=r;break;case"details":V("toggle",e),l=r;break;case"input":bi(e,r),l=bo(e,r),V("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=G({},r,{value:void 0}),V("invalid",e);break;case"textarea":Fi(e,r),l=Ao(e,r),V("invalid",e);break;default:l=r}Bo(n,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="style"?Eu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Su(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&rr(e,a):typeof a=="number"&&rr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(nr.hasOwnProperty(o)?a!=null&&o==="onScroll"&&V("scroll",e):a!=null&&Ds(e,o,a,s))}switch(n){case"input":Tr(e),$i(e,r,!1);break;case"textarea":Tr(e),Ai(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ot(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?hn(e,!!r.multiple,o,!1):r.defaultValue!=null&&hn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=hl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return de(t),null;case 6:if(e&&t.stateNode!=null)Jc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Vt(mr.current),Vt(Xe.current),Ar(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,(o=r.nodeValue!==n)&&(e=Ce,e!==null))switch(e.tag){case 3:Fr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return de(t),null;case 13:if(H(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&Ee!==null&&t.mode&1&&!(t.flags&128))fc(),Sn(),t.flags|=98560,o=!1;else if(o=Ar(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(j(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(j(317));o[Ye]=t}else Sn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;de(t),o=!1}else Ae!==null&&(Ss(Ae),Ae=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ne===0&&(ne=3):gi())),t.updateQueue!==null&&(t.flags|=4),de(t),null);case 4:return En(),hs(e,t),e===null&&cr(t.stateNode.containerInfo),de(t),null;case 10:return ei(t.type._context),de(t),null;case 17:return Ne(t.type)&&yl(),de(t),null;case 19:if(H(J),o=t.memoizedState,o===null)return de(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)An(o,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Sl(e),s!==null){for(t.flags|=128,An(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(J,J.current&1|2),t.child}e=e.sibling}o.tail!==null&&Z()>_n&&(t.flags|=128,r=!0,An(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),An(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Q)return de(t),null}else 2*Z()-o.renderingStartTime>_n&&n!==1073741824&&(t.flags|=128,r=!0,An(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=J.current,B(J,r?n&1|2:n&1),t):(de(t),null);case 22:case 23:return yi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Wp(e,t){switch(Gs(t),t.tag){case 1:return Ne(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(),H(ke),H(pe),oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return li(t),null;case 13:if(H(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(J),null;case 4:return En(),null;case 10:return ei(t.type._context),null;case 22:case 23:return yi(),null;case 24:return null;default:return null}}var Vr=!1,fe=!1,Qp=typeof WeakSet=="function"?WeakSet:Set,T=null;function pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function ys(e,t,n){try{n()}catch(r){X(e,t,r)}}var Ra=!1;function Kp(e,t){if(qo=fl,e=qu(),Js(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,c=0,h=0,p=e,y=null;t:for(;;){for(var v;p!==n||l!==0&&p.nodeType!==3||(i=s+l),p!==o||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(v=p.firstChild)!==null;)y=p,p=v;for(;;){if(p===e)break t;if(y===n&&++c===l&&(i=s),y===o&&++h===r&&(a=s),(v=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=v}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(es={focusedElem:e,selectionRange:n},fl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var k=x.memoizedProps,N=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:$e(t.type,k),N);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(w){X(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return x=Ra,Ra=!1,x}function qn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ys(t,n,o)}l=l.next}while(l!==r)}}function Bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function gs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yc(e){var t=e.alternate;t!==null&&(e.alternate=null,Yc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[fr],delete t[rs],delete t[Rp],delete t[Lp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gc(e){return e.tag===5||e.tag===3||e.tag===4}function La(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(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.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 vs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hl));else if(r!==4&&(e=e.child,e!==null))for(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xs(e,t,n),e=e.sibling;e!==null;)xs(e,t,n),e=e.sibling}var se=null,Fe=!1;function vt(e,t,n){for(n=n.child;n!==null;)Xc(e,t,n),n=n.sibling}function Xc(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:fe||pn(n,t);case 6:var r=se,l=Fe;se=null,vt(e,t,n),se=r,Fe=l,se!==null&&(Fe?(e=se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):se.removeChild(n.stateNode));break;case 18:se!==null&&(Fe?(e=se,n=n.stateNode,e.nodeType===8?go(e.parentNode,n):e.nodeType===1&&go(e,n),ir(e)):go(se,n.stateNode));break;case 4:r=se,l=Fe,se=n.stateNode.containerInfo,Fe=!0,vt(e,t,n),se=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ys(n,t,s),l=l.next}while(l!==r)}vt(e,t,n);break;case 1:if(!fe&&(pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){X(n,t,i)}vt(e,t,n);break;case 21:vt(e,t,n);break;case 22:n.mode&1?(fe=(r=fe)||n.memoizedState!==null,vt(e,t,n),fe=r):vt(e,t,n);break;default:vt(e,t,n)}}function Ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qp),t.forEach(function(r){var l=nm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function be(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:se=i.stateNode,Fe=!1;break e;case 3:se=i.stateNode.containerInfo,Fe=!0;break e;case 4:se=i.stateNode.containerInfo,Fe=!0;break e}i=i.return}if(se===null)throw Error(j(160));Xc(o,s,l),se=null,Fe=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(c){X(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zc(t,e),t=t.sibling}function Zc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(be(t,e),Ke(e),r&4){try{qn(3,e,e.return),Bl(3,e)}catch(k){X(e,e.return,k)}try{qn(5,e,e.return)}catch(k){X(e,e.return,k)}}break;case 1:be(t,e),Ke(e),r&512&&n!==null&&pn(n,n.return);break;case 5:if(be(t,e),Ke(e),r&512&&n!==null&&pn(n,n.return),e.flags&32){var l=e.stateNode;try{rr(l,"")}catch(k){X(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&wu(l,o),Vo(i,s);var c=Vo(i,o);for(s=0;s<a.length;s+=2){var h=a[s],p=a[s+1];h==="style"?Eu(l,p):h==="dangerouslySetInnerHTML"?Su(l,p):h==="children"?rr(l,p):Ds(l,h,p,c)}switch(i){case"input":$o(l,o);break;case"textarea":ku(l,o);break;case"select":var y=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?hn(l,!!o.multiple,v,!1):y!==!!o.multiple&&(o.defaultValue!=null?hn(l,!!o.multiple,o.defaultValue,!0):hn(l,!!o.multiple,o.multiple?[]:"",!1))}l[fr]=o}catch(k){X(e,e.return,k)}}break;case 6:if(be(t,e),Ke(e),r&4){if(e.stateNode===null)throw Error(j(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(k){X(e,e.return,k)}}break;case 3:if(be(t,e),Ke(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(k){X(e,e.return,k)}break;case 4:be(t,e),Ke(e);break;case 13:be(t,e),Ke(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(mi=Z())),r&4&&Ta(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(fe=(c=fe)||h,be(t,e),fe=c):be(t,e),Ke(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(T=e,h=e.child;h!==null;){for(p=T=h;T!==null;){switch(y=T,v=y.child,y.tag){case 0:case 11:case 14:case 15:qn(4,y,y.return);break;case 1:pn(y,y.return);var x=y.stateNode;if(typeof x.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(k){X(r,n,k)}}break;case 5:pn(y,y.return);break;case 22:if(y.memoizedState!==null){Oa(p);continue}}v!==null?(v.return=y,T=v):Oa(p)}h=h.sibling}e:for(h=null,p=e;;){if(p.tag===5){if(h===null){h=p;try{l=p.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=p.stateNode,a=p.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=ju("display",s))}catch(k){X(e,e.return,k)}}}else if(p.tag===6){if(h===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(k){X(e,e.return,k)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:be(t,e),Ke(e),r&4&&Ta(e);break;case 21:break;default:be(t,e),Ke(e)}}function Ke(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gc(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(rr(l,""),r.flags&=-33);var o=La(e);xs(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,i=La(e);vs(e,i,s);break;default:throw Error(j(161))}}catch(a){X(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jp(e,t,n){T=e,qc(e)}function qc(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var l=T,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Vr;if(!s){var i=l.alternate,a=i!==null&&i.memoizedState!==null||fe;i=Vr;var c=fe;if(Vr=s,(fe=a)&&!c)for(T=l;T!==null;)s=T,a=s.child,s.tag===22&&s.memoizedState!==null?Ia(l):a!==null?(a.return=s,T=a):Ia(l);for(;o!==null;)T=o,qc(o),o=o.sibling;T=l,Vr=i,fe=c}za(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,T=o):za(e)}}function za(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fe||Bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!fe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:$e(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ya(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ya(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var p=h.dehydrated;p!==null&&ir(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}fe||t.flags&512&&gs(t)}catch(y){X(t,t.return,y)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Oa(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function Ia(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bl(4,t)}catch(a){X(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){X(t,l,a)}}var o=t.return;try{gs(t)}catch(a){X(t,o,a)}break;case 5:var s=t.return;try{gs(t)}catch(a){X(t,s,a)}}}catch(a){X(t,t.return,a)}if(t===e){T=null;break}var i=t.sibling;if(i!==null){i.return=t.return,T=i;break}T=t.return}}var Yp=Math.ceil,Cl=pt.ReactCurrentDispatcher,fi=pt.ReactCurrentOwner,Ie=pt.ReactCurrentBatchConfig,$=0,oe=null,q=null,ie=0,je=0,mn=Mt(0),ne=0,vr=null,Yt=0,Vl=0,pi=0,er=null,xe=null,mi=0,_n=1/0,nt=null,_l=!1,ws=null,Lt=null,Hr=!1,jt=null,Pl=0,tr=0,ks=null,nl=-1,rl=0;function he(){return $&6?Z():nl!==-1?nl:nl=Z()}function Tt(e){return e.mode&1?$&2&&ie!==0?ie&-ie:zp.transition!==null?(rl===0&&(rl=bu()),rl):(e=A,e!==0||(e=window.event,e=e===void 0?16:Hu(e.type)),e):1}function Be(e,t,n,r){if(50<tr)throw tr=0,ks=null,Error(j(185));kr(e,n,r),(!($&2)||e!==oe)&&(e===oe&&(!($&2)&&(Vl|=n),ne===4&&Nt(e,ie)),Se(e,r),n===1&&$===0&&!(t.mode&1)&&(_n=Z()+500,Fl&&bt()))}function Se(e,t){var n=e.callbackNode;zf(e,t);var r=dl(e,e===oe?ie:0);if(r===0)n!==null&&Vi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vi(n),t===1)e.tag===0?Tp(Da.bind(null,e)):uc(Da.bind(null,e)),_p(function(){!($&6)&&bt()}),n=null;else{switch($u(r)){case 1:n=As;break;case 4:n=Du;break;case 16:n=cl;break;case 536870912:n=Mu;break;default:n=cl}n=id(n,ed.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ed(e,t){if(nl=-1,rl=0,$&6)throw Error(j(327));var n=e.callbackNode;if(wn()&&e.callbackNode!==n)return null;var r=dl(e,e===oe?ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rl(e,r);else{t=r;var l=$;$|=2;var o=nd();(oe!==e||ie!==t)&&(nt=null,_n=Z()+500,Ht(e,t));do try{Zp();break}catch(i){td(e,i)}while(!0);qs(),Cl.current=o,$=l,q!==null?t=0:(oe=null,ie=0,t=ne)}if(t!==0){if(t===2&&(l=Jo(e),l!==0&&(r=l,t=Ns(e,l))),t===1)throw n=vr,Ht(e,0),Nt(e,r),Se(e,Z()),n;if(t===6)Nt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Gp(l)&&(t=Rl(e,r),t===2&&(o=Jo(e),o!==0&&(r=o,t=Ns(e,o))),t===1))throw n=vr,Ht(e,0),Nt(e,r),Se(e,Z()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:At(e,xe,nt);break;case 3:if(Nt(e,r),(r&130023424)===r&&(t=mi+500-Z(),10<t)){if(dl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){he(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ns(At.bind(null,e,xe,nt),t);break}At(e,xe,nt);break;case 4:if(Nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Ue(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Yp(r/1960))-r,10<r){e.timeoutHandle=ns(At.bind(null,e,xe,nt),r);break}At(e,xe,nt);break;case 5:At(e,xe,nt);break;default:throw Error(j(329))}}}return Se(e,Z()),e.callbackNode===n?ed.bind(null,e):null}function Ns(e,t){var n=er;return e.current.memoizedState.isDehydrated&&(Ht(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=xe,xe=n,t!==null&&Ss(t)),e}function Ss(e){xe===null?xe=e:xe.push.apply(xe,e)}function Gp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ve(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nt(e,t){for(t&=~pi,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function Da(e){if($&6)throw Error(j(327));wn();var t=dl(e,0);if(!(t&1))return Se(e,Z()),null;var n=Rl(e,t);if(e.tag!==0&&n===2){var r=Jo(e);r!==0&&(t=r,n=Ns(e,r))}if(n===1)throw n=vr,Ht(e,0),Nt(e,t),Se(e,Z()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,At(e,xe,nt),Se(e,Z()),null}function hi(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(_n=Z()+500,Fl&&bt())}}function Gt(e){jt!==null&&jt.tag===0&&!($&6)&&wn();var t=$;$|=1;var n=Ie.transition,r=A;try{if(Ie.transition=null,A=1,e)return e()}finally{A=r,Ie.transition=n,$=t,!($&6)&&bt()}}function yi(){je=mn.current,H(mn)}function Ht(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Cp(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Gs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:En(),H(ke),H(pe),oi();break;case 5:li(r);break;case 4:En();break;case 13:H(J);break;case 19:H(J);break;case 10:ei(r.type._context);break;case 22:case 23:yi()}n=n.return}if(oe=e,q=e=zt(e.current,null),ie=je=t,ne=0,vr=null,pi=Vl=Yt=0,xe=er=null,Bt!==null){for(t=0;t<Bt.length;t++)if(n=Bt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Bt=null}return e}function td(e,t){do{var n=q;try{if(qs(),qr.current=El,jl){for(var r=Y.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}jl=!1}if(Jt=0,le=te=Y=null,Zn=!1,hr=0,fi.current=null,n===null||n.return===null){ne=1,vr=t,q=null;break}e:{var o=e,s=n.return,i=n,a=t;if(t=ie,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,h=i,p=h.tag;if(!(h.mode&1)&&(p===0||p===11||p===15)){var y=h.alternate;y?(h.updateQueue=y.updateQueue,h.memoizedState=y.memoizedState,h.lanes=y.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Na(s);if(v!==null){v.flags&=-257,Sa(v,s,i,o,t),v.mode&1&&ka(o,c,t),t=v,a=c;var x=t.updateQueue;if(x===null){var k=new Set;k.add(a),t.updateQueue=k}else x.add(a);break e}else{if(!(t&1)){ka(o,c,t),gi();break e}a=Error(j(426))}}else if(Q&&i.mode&1){var N=Na(s);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Sa(N,s,i,o,t),Xs(Cn(a,i));break e}}o=a=Cn(a,i),ne!==4&&(ne=2),er===null?er=[o]:er.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=$c(o,a,t);ha(o,f);break e;case 1:i=a;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Lt===null||!Lt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Fc(o,i,t);ha(o,w);break e}}o=o.return}while(o!==null)}ld(n)}catch(S){t=S,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function nd(){var e=Cl.current;return Cl.current=El,e===null?El:e}function gi(){(ne===0||ne===3||ne===2)&&(ne=4),oe===null||!(Yt&268435455)&&!(Vl&268435455)||Nt(oe,ie)}function Rl(e,t){var n=$;$|=2;var r=nd();(oe!==e||ie!==t)&&(nt=null,Ht(e,t));do try{Xp();break}catch(l){td(e,l)}while(!0);if(qs(),$=n,Cl.current=r,q!==null)throw Error(j(261));return oe=null,ie=0,ne}function Xp(){for(;q!==null;)rd(q)}function Zp(){for(;q!==null&&!Sf();)rd(q)}function rd(e){var t=sd(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?ld(e):q=t,fi.current=null}function ld(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wp(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,q=null;return}}else if(n=Hp(n,t,je),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ne===0&&(ne=5)}function At(e,t,n){var r=A,l=Ie.transition;try{Ie.transition=null,A=1,qp(e,t,n,r)}finally{Ie.transition=l,A=r}return null}function qp(e,t,n,r){do wn();while(jt!==null);if($&6)throw Error(j(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Of(e,o),e===oe&&(q=oe=null,ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hr||(Hr=!0,id(cl,function(){return wn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ie.transition,Ie.transition=null;var s=A;A=1;var i=$;$|=4,fi.current=null,Kp(e,n),Zc(n,e),xp(es),fl=!!qo,es=qo=null,e.current=n,Jp(n),jf(),$=i,A=s,Ie.transition=o}else e.current=n;if(Hr&&(Hr=!1,jt=e,Pl=l),o=e.pendingLanes,o===0&&(Lt=null),_f(n.stateNode),Se(e,Z()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(_l)throw _l=!1,e=ws,ws=null,e;return Pl&1&&e.tag!==0&&wn(),o=e.pendingLanes,o&1?e===ks?tr++:(tr=0,ks=e):tr=0,bt(),null}function wn(){if(jt!==null){var e=$u(Pl),t=Ie.transition,n=A;try{if(Ie.transition=null,A=16>e?16:e,jt===null)var r=!1;else{if(e=jt,jt=null,Pl=0,$&6)throw Error(j(331));var l=$;for($|=4,T=e.current;T!==null;){var o=T,s=o.child;if(T.flags&16){var i=o.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for(T=c;T!==null;){var h=T;switch(h.tag){case 0:case 11:case 15:qn(8,h,o)}var p=h.child;if(p!==null)p.return=h,T=p;else for(;T!==null;){h=T;var y=h.sibling,v=h.return;if(Yc(h),h===c){T=null;break}if(y!==null){y.return=v,T=y;break}T=v}}}var x=o.alternate;if(x!==null){var k=x.child;if(k!==null){x.child=null;do{var N=k.sibling;k.sibling=null,k=N}while(k!==null)}}T=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,T=s;else e:for(;T!==null;){if(o=T,o.flags&2048)switch(o.tag){case 0:case 11:case 15:qn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,T=f;break e}T=o.return}}var d=e.current;for(T=d;T!==null;){s=T;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,T=m;else e:for(s=d;T!==null;){if(i=T,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Bl(9,i)}}catch(S){X(i,i.return,S)}if(i===s){T=null;break e}var w=i.sibling;if(w!==null){w.return=i.return,T=w;break e}T=i.return}}if($=l,bt(),Ge&&typeof Ge.onPostCommitFiberRoot=="function")try{Ge.onPostCommitFiberRoot(Il,e)}catch{}r=!0}return r}finally{A=n,Ie.transition=t}}return!1}function Ma(e,t,n){t=Cn(n,t),t=$c(e,t,1),e=Rt(e,t,1),t=he(),e!==null&&(kr(e,1,t),Se(e,t))}function X(e,t,n){if(e.tag===3)Ma(e,e,n);else for(;t!==null;){if(t.tag===3){Ma(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Lt===null||!Lt.has(r))){e=Cn(n,e),e=Fc(t,e,1),t=Rt(t,e,1),e=he(),t!==null&&(kr(t,1,e),Se(t,e));break}}t=t.return}}function em(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=he(),e.pingedLanes|=e.suspendedLanes&n,oe===e&&(ie&n)===n&&(ne===4||ne===3&&(ie&130023424)===ie&&500>Z()-mi?Ht(e,0):pi|=n),Se(e,t)}function od(e,t){t===0&&(e.mode&1?(t=Ir,Ir<<=1,!(Ir&130023424)&&(Ir=4194304)):t=1);var n=he();e=ct(e,t),e!==null&&(kr(e,t,n),Se(e,n))}function tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function nm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),od(e,n)}var sd;sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,Vp(e,t,n);we=!!(e.flags&131072)}else we=!1,Q&&t.flags&1048576&&cc(t,xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;tl(e,t),e=t.pendingProps;var l=Nn(t,pe.current);xn(t,n),l=ii(null,t,r,e,l,n);var o=ai();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(o=!0,gl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ni(t),l.updater=Ul,t.stateNode=l,l._reactInternals=t,us(t,r,e,n),t=fs(null,t,r,!0,o,n)):(t.tag=0,Q&&o&&Ys(t),me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(tl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=lm(r),e=$e(r,e),l){case 0:t=ds(null,t,r,e,n);break e;case 1:t=Ca(null,t,r,e,n);break e;case 11:t=ja(null,t,r,e,n);break e;case 14:t=Ea(null,t,r,$e(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),ds(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Ca(e,t,r,l,n);case 3:e:{if(Vc(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,l=o.element,yc(e,t),Nl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Cn(Error(j(423)),t),t=_a(e,t,r,n,l);break e}else if(r!==l){l=Cn(Error(j(424)),t),t=_a(e,t,r,n,l);break e}else for(Ee=Pt(t.stateNode.containerInfo.firstChild),Ce=t,Q=!0,Ae=null,n=mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sn(),r===l){t=dt(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&ss(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,ts(r,l)?s=null:o!==null&&ts(r,o)&&(t.flags|=32),Bc(e,t),me(e,t,s,n),t.child;case 6:return e===null&&ss(t),null;case 13:return Hc(e,t,n);case 4:return ri(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jn(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),ja(e,t,r,l,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,B(wl,r._currentValue),r._currentValue=s,o!==null)if(Ve(o.value,s)){if(o.children===l.children&&!ke.current){t=dt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=st(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),is(o.return,n,t),i.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(j(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),is(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,xn(t,n),l=De(l),r=r(l),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,l=$e(r,t.pendingProps),l=$e(r.type,l),Ea(e,t,r,l,n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),tl(e,t),t.tag=1,Ne(r)?(e=!0,gl(t)):e=!1,xn(t,n),bc(t,r,l),us(t,r,l,n),fs(null,t,r,!0,e,n);case 19:return Wc(e,t,n);case 22:return Uc(e,t,n)}throw Error(j(156,t.tag))};function id(e,t){return Iu(e,t)}function rm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(e,t,n,r){return new rm(e,t,n,r)}function vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lm(e){if(typeof e=="function")return vi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bs)return 11;if(e===$s)return 14}return 2}function zt(e,t){var n=e.alternate;return n===null?(n=Oe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ll(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")vi(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rn:return Wt(n.children,l,o,t);case Ms:s=8,l|=8;break;case Oo:return e=Oe(12,n,t,l|2),e.elementType=Oo,e.lanes=o,e;case Io:return e=Oe(13,n,t,l),e.elementType=Io,e.lanes=o,e;case Do:return e=Oe(19,n,t,l),e.elementType=Do,e.lanes=o,e;case gu:return Hl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hu:s=10;break e;case yu:s=9;break e;case bs:s=11;break e;case $s:s=14;break e;case xt:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Oe(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Wt(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=gu,e.lanes=n,e.stateNode={isHidden:!1},e}function Eo(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function Co(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function om(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oo(0),this.expirationTimes=oo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function xi(e,t,n,r,l,o,s,i,a){return e=new om(e,t,n,i,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Oe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ni(o),e}function sm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ad(e){if(!e)return It;e=e._reactInternals;e:{if(Zt(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ne(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(Ne(n))return ac(e,n,t)}return t}function ud(e,t,n,r,l,o,s,i,a){return e=xi(n,r,!0,e,l,o,s,i,a),e.context=ad(null),n=e.current,r=he(),l=Tt(n),o=st(r,l),o.callback=t??null,Rt(n,o,l),e.current.lanes=l,kr(e,l,r),Se(e,r),e}function Wl(e,t,n,r){var l=t.current,o=he(),s=Tt(l);return n=ad(n),t.context===null?t.context=n:t.pendingContext=n,t=st(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Rt(l,t,s),e!==null&&(Be(e,l,s,o),Zr(e,l,s)),s}function Ll(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ba(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wi(e,t){ba(e,t),(e=e.alternate)&&ba(e,t)}function im(){return null}var cd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ki(e){this._internalRoot=e}Ql.prototype.render=ki.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Wl(e,t,null,null)};Ql.prototype.unmount=ki.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gt(function(){Wl(null,e,null,null)}),t[ut]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kt.length&&t!==0&&t<kt[n].priority;n++);kt.splice(n,0,e),n===0&&Vu(e)}};function Ni(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $a(){}function am(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=Ll(s);o.call(c)}}var s=ud(t,r,e,0,null,!1,!1,"",$a);return e._reactRootContainer=s,e[ut]=s.current,cr(e.nodeType===8?e.parentNode:e),Gt(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var i=r;r=function(){var c=Ll(a);i.call(c)}}var a=xi(e,0,!1,null,null,!1,!1,"",$a);return e._reactRootContainer=a,e[ut]=a.current,cr(e.nodeType===8?e.parentNode:e),Gt(function(){Wl(t,a,n,r)}),a}function Jl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var i=l;l=function(){var a=Ll(s);i.call(a)}}Wl(t,s,e,l)}else s=am(n,t,e,l,r);return Ll(s)}Fu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wn(t.pendingLanes);n!==0&&(Us(t,n|1),Se(t,Z()),!($&6)&&(_n=Z()+500,bt()))}break;case 13:Gt(function(){var r=ct(e,1);if(r!==null){var l=he();Be(r,e,1,l)}}),wi(e,1)}};Bs=function(e){if(e.tag===13){var t=ct(e,134217728);if(t!==null){var n=he();Be(t,e,134217728,n)}wi(e,134217728)}};Au=function(e){if(e.tag===13){var t=Tt(e),n=ct(e,t);if(n!==null){var r=he();Be(n,e,t,r)}wi(e,t)}};Uu=function(){return A};Bu=function(e,t){var n=A;try{return A=e,t()}finally{A=n}};Wo=function(e,t,n){switch(t){case"input":if($o(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=$l(r);if(!l)throw Error(j(90));xu(r),$o(r,l)}}}break;case"textarea":ku(e,n);break;case"select":t=n.value,t!=null&&hn(e,!!n.multiple,t,!1)}};Pu=hi;Ru=Gt;var um={usingClientEntryPoint:!1,Events:[Sr,an,$l,Cu,_u,hi]},Un={findFiberByHostInstance:Ut,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cm={bundleType:Un.bundleType,version:Un.version,rendererPackageName:Un.rendererPackageName,rendererConfig:Un.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zu(e),e===null?null:e.stateNode},findFiberByHostInstance:Un.findFiberByHostInstance||im,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{Il=Wr.inject(cm),Ge=Wr}catch{}}Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=um;Pe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ni(t))throw Error(j(200));return sm(e,t,null,n)};Pe.createRoot=function(e,t){if(!Ni(e))throw Error(j(299));var n=!1,r="",l=cd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=xi(e,1,!1,null,null,n,!1,r,l),e[ut]=t.current,cr(e.nodeType===8?e.parentNode:e),new ki(t)};Pe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=zu(t),e=e===null?null:e.stateNode,e};Pe.flushSync=function(e){return Gt(e)};Pe.hydrate=function(e,t,n){if(!Kl(t))throw Error(j(200));return Jl(null,e,t,!0,n)};Pe.hydrateRoot=function(e,t,n){if(!Ni(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=cd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ud(t,null,e,1,n??null,l,!1,o,s),e[ut]=t.current,cr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ql(t)};Pe.render=function(e,t,n){if(!Kl(t))throw Error(j(200));return Jl(null,e,t,!1,n)};Pe.unmountComponentAtNode=function(e){if(!Kl(e))throw Error(j(40));return e._reactRootContainer?(Gt(function(){Jl(null,null,e,!1,function(){e._reactRootContainer=null,e[ut]=null})}),!0):!1};Pe.unstable_batchedUpdates=hi;Pe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kl(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Jl(e,t,n,!1,r)};Pe.version="18.3.1-next-f1338f8080-20240426";function dd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dd)}catch(e){console.error(e)}}dd(),du.exports=Pe;var dm=du.exports,Fa=dm;To.createRoot=Fa.createRoot,To.hydrateRoot=Fa.hydrateRoot;/**
|
|
* react-router v7.13.0
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/var Aa="popstate";function fm(e={}){function t(r,l){let{pathname:o,search:s,hash:i}=r.location;return js("",{pathname:o,search:s,hash:i},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:xr(l)}return mm(t,n,null,e)}function K(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function He(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pm(){return Math.random().toString(36).substring(2,10)}function Ua(e,t){return{usr:e.state,key:e.key,idx:t}}function js(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Tn(t):t,state:n,key:t&&t.key||r||pm()}}function xr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Tn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function mm(e,t,n,r={}){let{window:l=document.defaultView,v5Compat:o=!1}=r,s=l.history,i="POP",a=null,c=h();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function h(){return(s.state||{idx:null}).idx}function p(){i="POP";let N=h(),f=N==null?null:N-c;c=N,a&&a({action:i,location:k.location,delta:f})}function y(N,f){i="PUSH";let d=js(k.location,N,f);c=h()+1;let m=Ua(d,c),w=k.createHref(d);try{s.pushState(m,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(w)}o&&a&&a({action:i,location:k.location,delta:1})}function v(N,f){i="REPLACE";let d=js(k.location,N,f);c=h();let m=Ua(d,c),w=k.createHref(d);s.replaceState(m,"",w),o&&a&&a({action:i,location:k.location,delta:0})}function x(N){return hm(N)}let k={get action(){return i},get location(){return e(l,s)},listen(N){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Aa,p),a=N,()=>{l.removeEventListener(Aa,p),a=null}},createHref(N){return t(l,N)},createURL:x,encodeLocation(N){let f=x(N);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:y,replace:v,go(N){return s.go(N)}};return k}function hm(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),K(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:xr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function fd(e,t,n="/"){return ym(e,t,n,!1)}function ym(e,t,n,r){let l=typeof t=="string"?Tn(t):t,o=ft(l.pathname||"/",n);if(o==null)return null;let s=pd(e);gm(s);let i=null;for(let a=0;i==null&&a<s.length;++a){let c=Pm(o);i=Cm(s[a],c,r)}return i}function pd(e,t=[],n=[],r="",l=!1){let o=(s,i,a=l,c)=>{let h={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&a)return;K(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let p=it([r,h.relativePath]),y=n.concat(h);s.children&&s.children.length>0&&(K(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),pd(s.children,t,y,p,a)),!(s.path==null&&!s.index)&&t.push({path:p,score:jm(p,s.index),routesMeta:y})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let c of md(s.path))o(s,i,!0,c)}),t}function md(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let s=md(r.join("/")),i=[];return i.push(...s.map(a=>a===""?o:[o,a].join("/"))),l&&i.push(...s),i.map(a=>e.startsWith("/")&&a===""?"/":a)}function gm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Em(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var vm=/^:[\w-]+$/,xm=3,wm=2,km=1,Nm=10,Sm=-2,Ba=e=>e==="*";function jm(e,t){let n=e.split("/"),r=n.length;return n.some(Ba)&&(r+=Sm),t&&(r+=wm),n.filter(l=>!Ba(l)).reduce((l,o)=>l+(vm.test(o)?xm:o===""?km:Nm),r)}function Em(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Cm(e,t,n=!1){let{routesMeta:r}=e,l={},o="/",s=[];for(let i=0;i<r.length;++i){let a=r[i],c=i===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",p=Tl({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},h),y=a.route;if(!p&&c&&n&&!r[r.length-1].route.index&&(p=Tl({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},h)),!p)return null;Object.assign(l,p.params),s.push({params:l,pathname:it([o,p.pathname]),pathnameBase:zm(it([o,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(o=it([o,p.pathnameBase]))}return s}function Tl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_m(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let o=l[0],s=o.replace(/(.)\/+$/,"$1"),i=l.slice(1);return{params:r.reduce((c,{paramName:h,isOptional:p},y)=>{if(h==="*"){let x=i[y]||"";s=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const v=i[y];return p&&!v?c[h]=void 0:c[h]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function _m(e,t=!1,n=!0){He(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,a)=>(r.push({paramName:i,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Pm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return He(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ft(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Rm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Lm(e,t="/"){let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Tn(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=Va(n.substring(1),"/"):o=Va(n,t)):o=t,{pathname:o,search:Om(r),hash:Im(l)}}function Va(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function _o(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Si(e){let t=Tm(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ji(e,t,n,r=!1){let l;typeof e=="string"?l=Tn(e):(l={...e},K(!l.pathname||!l.pathname.includes("?"),_o("?","pathname","search",l)),K(!l.pathname||!l.pathname.includes("#"),_o("#","pathname","hash",l)),K(!l.search||!l.search.includes("#"),_o("#","search","hash",l)));let o=e===""||l.pathname==="",s=o?"/":l.pathname,i;if(s==null)i=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;l.pathname=y.join("/")}i=p>=0?t[p]:"/"}let a=Lm(l,i),c=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||h)&&(a.pathname+="/"),a}var it=e=>e.join("/").replace(/\/\/+/g,"/"),zm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Om=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Im=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Dm=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function bm(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var hd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yd(e,t){let n=e;if(typeof n!="string"||!Rm.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,l=!1;if(hd)try{let o=new URL(window.location.href),s=n.startsWith("//")?new URL(o.protocol+n):new URL(n),i=ft(s.pathname,t);s.origin===o.origin&&i!=null?n=i+s.search+s.hash:l=!0}catch{He(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:l,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gd=["POST","PUT","PATCH","DELETE"];new Set(gd);var $m=["GET",...gd];new Set($m);var zn=g.createContext(null);zn.displayName="DataRouter";var Yl=g.createContext(null);Yl.displayName="DataRouterState";var Fm=g.createContext(!1),vd=g.createContext({isTransitioning:!1});vd.displayName="ViewTransition";var Am=g.createContext(new Map);Am.displayName="Fetchers";var Um=g.createContext(null);Um.displayName="Await";var Le=g.createContext(null);Le.displayName="Navigation";var Er=g.createContext(null);Er.displayName="Location";var Ze=g.createContext({outlet:null,matches:[],isDataRoute:!1});Ze.displayName="Route";var Ei=g.createContext(null);Ei.displayName="RouteError";var xd="REACT_ROUTER_ERROR",Bm="REDIRECT",Vm="ROUTE_ERROR_RESPONSE";function Hm(e){if(e.startsWith(`${xd}:${Bm}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Wm(e){if(e.startsWith(`${xd}:${Vm}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Dm(t.status,t.statusText,t.data)}catch{}}function Qm(e,{relative:t}={}){K(On(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(Le),{hash:l,pathname:o,search:s}=Cr(e,{relative:t}),i=o;return n!=="/"&&(i=o==="/"?n:it([n,o])),r.createHref({pathname:i,search:s,hash:l})}function On(){return g.useContext(Er)!=null}function mt(){return K(On(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Er).location}var wd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kd(e){g.useContext(Le).static||g.useLayoutEffect(e)}function Ci(){let{isDataRoute:e}=g.useContext(Ze);return e?oh():Km()}function Km(){K(On(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(zn),{basename:t,navigator:n}=g.useContext(Le),{matches:r}=g.useContext(Ze),{pathname:l}=mt(),o=JSON.stringify(Si(r)),s=g.useRef(!1);return kd(()=>{s.current=!0}),g.useCallback((a,c={})=>{if(He(s.current,wd),!s.current)return;if(typeof a=="number"){n.go(a);return}let h=ji(a,JSON.parse(o),l,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:it([t,h.pathname])),(c.replace?n.replace:n.push)(h,c.state,c)},[t,n,o,l,e])}g.createContext(null);function Cr(e,{relative:t}={}){let{matches:n}=g.useContext(Ze),{pathname:r}=mt(),l=JSON.stringify(Si(n));return g.useMemo(()=>ji(e,JSON.parse(l),r,t==="path"),[e,l,r,t])}function Jm(e,t){return Nd(e,t)}function Nd(e,t,n,r,l){var d;K(On(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=g.useContext(Le),{matches:s}=g.useContext(Ze),i=s[s.length-1],a=i?i.params:{},c=i?i.pathname:"/",h=i?i.pathnameBase:"/",p=i&&i.route;{let m=p&&p.path||"";jd(c,!p||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
|
|
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let y=mt(),v;if(t){let m=typeof t=="string"?Tn(t):t;K(h==="/"||((d=m.pathname)==null?void 0:d.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${m.pathname}" was given in the \`location\` prop.`),v=m}else v=y;let x=v.pathname||"/",k=x;if(h!=="/"){let m=h.replace(/^\//,"").split("/");k="/"+x.replace(/^\//,"").split("/").slice(m.length).join("/")}let N=fd(e,{pathname:k});He(p||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),He(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let f=qm(N&&N.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:it([h,o.encodeLocation?o.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?h:it([h,o.encodeLocation?o.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,l);return t&&f?g.createElement(Er.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},f):f}function Ym(){let e=lh(),t=Mm(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:l},n):null,s)}var Gm=g.createElement(Ym,null),Sd=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Wm(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(Ze.Provider,{value:this.props.routeContext},g.createElement(Ei.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Xm,{error:e},t):t}};Sd.contextType=Fm;var Po=new WeakMap;function Xm({children:e,error:t}){let{basename:n}=g.useContext(Le);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Hm(t.digest);if(r){let l=Po.get(t);if(l)throw l;let o=yd(r.location,n);if(hd&&!Po.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Po.set(t,s),s}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Zm({routeContext:e,match:t,children:n}){let r=g.useContext(zn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Ze.Provider,{value:e},n)}function qm(e,t=[],n=null,r=null,l=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n==null?void 0:n.errors;if(s!=null){let h=o.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);K(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let i=!1,a=-1;if(n)for(let h=0;h<o.length;h++){let p=o[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(a=h),p.route.id){let{loaderData:y,errors:v}=n,x=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||x){i=!0,a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}let c=n&&r?(h,p)=>{var y,v;r(h,{location:n.location,params:((v=(y=n.matches)==null?void 0:y[0])==null?void 0:v.params)??{},unstable_pattern:bm(n.matches),errorInfo:p})}:void 0;return o.reduceRight((h,p,y)=>{let v,x=!1,k=null,N=null;n&&(v=s&&p.route.id?s[p.route.id]:void 0,k=p.route.errorElement||Gm,i&&(a<0&&y===0?(jd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,N=null):a===y&&(x=!0,N=p.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,y+1)),d=()=>{let m;return v?m=k:x?m=N:p.route.Component?m=g.createElement(p.route.Component,null):p.route.element?m=p.route.element:m=h,g.createElement(Zm,{match:p,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:m})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?g.createElement(Sd,{location:n.location,revalidation:n.revalidation,component:k,error:v,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):d()},null)}function _i(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eh(e){let t=g.useContext(zn);return K(t,_i(e)),t}function th(e){let t=g.useContext(Yl);return K(t,_i(e)),t}function nh(e){let t=g.useContext(Ze);return K(t,_i(e)),t}function Pi(e){let t=nh(e),n=t.matches[t.matches.length-1];return K(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rh(){return Pi("useRouteId")}function lh(){var r;let e=g.useContext(Ei),t=th("useRouteError"),n=Pi("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function oh(){let{router:e}=eh("useNavigate"),t=Pi("useNavigate"),n=g.useRef(!1);return kd(()=>{n.current=!0}),g.useCallback(async(l,o={})=>{He(n.current,wd),n.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var Ha={};function jd(e,t,n){!t&&!Ha[e]&&(Ha[e]=!0,He(!1,n))}g.memo(sh);function sh({routes:e,future:t,state:n,onError:r}){return Nd(e,void 0,n,r,t)}function ih({to:e,replace:t,state:n,relative:r}){K(On(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=g.useContext(Le);He(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=g.useContext(Ze),{pathname:s}=mt(),i=Ci(),a=ji(e,Si(o),s,r==="path"),c=JSON.stringify(a);return g.useEffect(()=>{i(JSON.parse(c),{replace:t,state:n,relative:r})},[i,c,r,t,n]),null}function Es(e){K(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ah({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:l,static:o=!1,unstable_useTransitions:s}){K(!On(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),a=g.useMemo(()=>({basename:i,navigator:l,static:o,unstable_useTransitions:s,future:{}}),[i,l,o,s]);typeof n=="string"&&(n=Tn(n));let{pathname:c="/",search:h="",hash:p="",state:y=null,key:v="default"}=n,x=g.useMemo(()=>{let k=ft(c,i);return k==null?null:{location:{pathname:k,search:h,hash:p,state:y,key:v},navigationType:r}},[i,c,h,p,y,v,r]);return He(x!=null,`<Router basename="${i}"> is not able to match the URL "${c}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:g.createElement(Le.Provider,{value:a},g.createElement(Er.Provider,{children:t,value:x}))}function uh({children:e,location:t}){return Jm(Cs(e),t)}function Cs(e,t=[]){let n=[];return g.Children.forEach(e,(r,l)=>{if(!g.isValidElement(r))return;let o=[...t,l];if(r.type===g.Fragment){n.push.apply(n,Cs(r.props.children,o));return}K(r.type===Es,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),K(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Cs(r.props.children,o)),n.push(s)}),n}var ol="get",sl="application/x-www-form-urlencoded";function Gl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ch(e){return Gl(e)&&e.tagName.toLowerCase()==="button"}function dh(e){return Gl(e)&&e.tagName.toLowerCase()==="form"}function fh(e){return Gl(e)&&e.tagName.toLowerCase()==="input"}function ph(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mh(e,t){return e.button===0&&(!t||t==="_self")&&!ph(e)}var Qr=null;function hh(){if(Qr===null)try{new FormData(document.createElement("form"),0),Qr=!1}catch{Qr=!0}return Qr}var yh=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ro(e){return e!=null&&!yh.has(e)?(He(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${sl}"`),null):e}function gh(e,t){let n,r,l,o,s;if(dh(e)){let i=e.getAttribute("action");r=i?ft(i,t):null,n=e.getAttribute("method")||ol,l=Ro(e.getAttribute("enctype"))||sl,o=new FormData(e)}else if(ch(e)||fh(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||i.getAttribute("action");if(r=a?ft(a,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||ol,l=Ro(e.getAttribute("formenctype"))||Ro(i.getAttribute("enctype"))||sl,o=new FormData(i,e),!hh()){let{name:c,type:h,value:p}=e;if(h==="image"){let y=c?`${c}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else c&&o.append(c,p)}}else{if(Gl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ol,r=null,l=sl,s=e}return o&&l==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:l,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ri(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vh(e,t,n,r){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${r}`:l.pathname=`${l.pathname}.${r}`:l.pathname==="/"?l.pathname=`_root.${r}`:t&&ft(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${r}`,l}async function xh(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function wh(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function kh(e,t,n){let r=await Promise.all(e.map(async l=>{let o=t.routes[l.route.id];if(o){let s=await xh(o,n);return s.links?s.links():[]}return[]}));return Eh(r.flat(1).filter(wh).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Wa(e,t,n,r,l,o){let s=(a,c)=>n[c]?a.route.id!==n[c].route.id:!0,i=(a,c)=>{var h;return n[c].pathname!==a.pathname||((h=n[c].route.path)==null?void 0:h.endsWith("*"))&&n[c].params["*"]!==a.params["*"]};return o==="assets"?t.filter((a,c)=>s(a,c)||i(a,c)):o==="data"?t.filter((a,c)=>{var p;let h=r.routes[a.route.id];if(!h||!h.hasLoader)return!1;if(s(a,c)||i(a,c))return!0;if(a.route.shouldRevalidate){let y=a.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Nh(e,t,{includeHydrateFallback:n}={}){return Sh(e.map(r=>{let l=t.routes[r.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),n&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function Sh(e){return[...new Set(e)]}function jh(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Eh(e,t){let n=new Set;return new Set(t),e.reduce((r,l)=>{let o=JSON.stringify(jh(l));return n.has(o)||(n.add(o),r.push({key:o,link:l})),r},[])}function Ed(){let e=g.useContext(zn);return Ri(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ch(){let e=g.useContext(Yl);return Ri(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Li=g.createContext(void 0);Li.displayName="FrameworkContext";function Cd(){let e=g.useContext(Li);return Ri(e,"You must render this element inside a <HydratedRouter> element"),e}function _h(e,t){let n=g.useContext(Li),[r,l]=g.useState(!1),[o,s]=g.useState(!1),{onFocus:i,onBlur:a,onMouseEnter:c,onMouseLeave:h,onTouchStart:p}=t,y=g.useRef(null);g.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let k=f=>{f.forEach(d=>{s(d.isIntersecting)})},N=new IntersectionObserver(k,{threshold:.5});return y.current&&N.observe(y.current),()=>{N.disconnect()}}},[e]),g.useEffect(()=>{if(r){let k=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(k)}}},[r]);let v=()=>{l(!0)},x=()=>{l(!1),s(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:Bn(i,v),onBlur:Bn(a,x),onMouseEnter:Bn(c,v),onMouseLeave:Bn(h,x),onTouchStart:Bn(p,v)}]:[!1,y,{}]}function Bn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ph({page:e,...t}){let{router:n}=Ed(),r=g.useMemo(()=>fd(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(Lh,{page:e,matches:r,...t}):null}function Rh(e){let{manifest:t,routeModules:n}=Cd(),[r,l]=g.useState([]);return g.useEffect(()=>{let o=!1;return kh(e,t,n).then(s=>{o||l(s)}),()=>{o=!0}},[e,t,n]),r}function Lh({page:e,matches:t,...n}){let r=mt(),{future:l,manifest:o,routeModules:s}=Cd(),{basename:i}=Ed(),{loaderData:a,matches:c}=Ch(),h=g.useMemo(()=>Wa(e,t,c,o,r,"data"),[e,t,c,o,r]),p=g.useMemo(()=>Wa(e,t,c,o,r,"assets"),[e,t,c,o,r]),y=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let k=new Set,N=!1;if(t.forEach(d=>{var w;let m=o.routes[d.route.id];!m||!m.hasLoader||(!h.some(S=>S.route.id===d.route.id)&&d.route.id in a&&((w=s[d.route.id])!=null&&w.shouldRevalidate)||m.hasClientLoader?N=!0:k.add(d.route.id))}),k.size===0)return[];let f=vh(e,i,l.unstable_trailingSlashAwareDataRequests,"data");return N&&k.size>0&&f.searchParams.set("_routes",t.filter(d=>k.has(d.route.id)).map(d=>d.route.id).join(",")),[f.pathname+f.search]},[i,l.unstable_trailingSlashAwareDataRequests,a,r,o,h,t,e,s]),v=g.useMemo(()=>Nh(p,o),[p,o]),x=Rh(p);return g.createElement(g.Fragment,null,y.map(k=>g.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...n})),v.map(k=>g.createElement("link",{key:k,rel:"modulepreload",href:k,...n})),x.map(({key:k,link:N})=>g.createElement("link",{key:k,nonce:n.nonce,...N,crossOrigin:N.crossOrigin??n.crossOrigin})))}function Th(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var zh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zh&&(window.__reactRouterVersion="7.13.0")}catch{}function Oh({basename:e,children:t,unstable_useTransitions:n,window:r}){let l=g.useRef();l.current==null&&(l.current=fm({window:r,v5Compat:!0}));let o=l.current,[s,i]=g.useState({action:o.action,location:o.location}),a=g.useCallback(c=>{n===!1?i(c):g.startTransition(()=>i(c))},[n]);return g.useLayoutEffect(()=>o.listen(a),[o,a]),g.createElement(ah,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,unstable_useTransitions:n})}var _d=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pd=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:l,reloadDocument:o,replace:s,state:i,target:a,to:c,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:y,...v},x){let{basename:k,unstable_useTransitions:N}=g.useContext(Le),f=typeof c=="string"&&_d.test(c),d=yd(c,k);c=d.to;let m=Qm(c,{relative:l}),[w,S,_]=_h(r,v),P=bh(c,{replace:s,state:i,target:a,preventScrollReset:h,relative:l,viewTransition:p,unstable_defaultShouldRevalidate:y,unstable_useTransitions:N});function R(O){t&&t(O),O.defaultPrevented||P(O)}let F=g.createElement("a",{...v,..._,href:d.absoluteURL||m,onClick:d.isExternal||o?t:R,ref:Th(x,S),target:a,"data-discover":!f&&n==="render"?"true":void 0});return w&&!f?g.createElement(g.Fragment,null,F,g.createElement(Ph,{page:m})):F});Pd.displayName="Link";var Ih=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:l=!1,style:o,to:s,viewTransition:i,children:a,...c},h){let p=Cr(s,{relative:c.relative}),y=mt(),v=g.useContext(Yl),{navigator:x,basename:k}=g.useContext(Le),N=v!=null&&Bh(p)&&i===!0,f=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,d=y.pathname,m=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(d=d.toLowerCase(),m=m?m.toLowerCase():null,f=f.toLowerCase()),m&&k&&(m=ft(m,k)||m);const w=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let S=d===f||!l&&d.startsWith(f)&&d.charAt(w)==="/",_=m!=null&&(m===f||!l&&m.startsWith(f)&&m.charAt(f.length)==="/"),P={isActive:S,isPending:_,isTransitioning:N},R=S?t:void 0,F;typeof r=="function"?F=r(P):F=[r,S?"active":null,_?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let O=typeof o=="function"?o(P):o;return g.createElement(Pd,{...c,"aria-current":R,className:F,ref:h,style:O,to:s,viewTransition:i},typeof a=="function"?a(P):a)});Ih.displayName="NavLink";var Dh=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:l,state:o,method:s=ol,action:i,onSubmit:a,relative:c,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:y,...v},x)=>{let{unstable_useTransitions:k}=g.useContext(Le),N=Ah(),f=Uh(i,{relative:c}),d=s.toLowerCase()==="get"?"get":"post",m=typeof i=="string"&&_d.test(i),w=S=>{if(a&&a(S),S.defaultPrevented)return;S.preventDefault();let _=S.nativeEvent.submitter,P=(_==null?void 0:_.getAttribute("formmethod"))||s,R=()=>N(_||S.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:l,state:o,relative:c,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:y});k&&n!==!1?g.startTransition(()=>R()):R()};return g.createElement("form",{ref:x,method:d,action:f,onSubmit:r?a:w,...v,"data-discover":!m&&e==="render"?"true":void 0})});Dh.displayName="Form";function Mh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rd(e){let t=g.useContext(zn);return K(t,Mh(e)),t}function bh(e,{target:t,replace:n,state:r,preventScrollReset:l,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:i,unstable_useTransitions:a}={}){let c=Ci(),h=mt(),p=Cr(e,{relative:o});return g.useCallback(y=>{if(mh(y,t)){y.preventDefault();let v=n!==void 0?n:xr(h)===xr(p),x=()=>c(e,{replace:v,state:r,preventScrollReset:l,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:i});a?g.startTransition(()=>x()):x()}},[h,c,p,n,r,t,e,l,o,s,i,a])}var $h=0,Fh=()=>`__${String(++$h)}__`;function Ah(){let{router:e}=Rd("useSubmit"),{basename:t}=g.useContext(Le),n=rh(),r=e.fetch,l=e.navigate;return g.useCallback(async(o,s={})=>{let{action:i,method:a,encType:c,formData:h,body:p}=gh(o,t);if(s.navigate===!1){let y=s.fetcherKey||Fh();await r(y,n,s.action||i,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||a,formEncType:s.encType||c,flushSync:s.flushSync})}else await l(s.action||i,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||a,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,l,t,n])}function Uh(e,{relative:t}={}){let{basename:n}=g.useContext(Le),r=g.useContext(Ze);K(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),o={...Cr(e||".",{relative:t})},s=mt();if(e==null){o.search=s.search;let i=new URLSearchParams(o.search),a=i.getAll("index");if(a.some(h=>h==="")){i.delete("index"),a.filter(p=>p).forEach(p=>i.append("index",p));let h=i.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:it([n,o.pathname])),xr(o)}function Bh(e,{relative:t}={}){let n=g.useContext(vd);K(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Rd("useViewTransitionState"),l=Cr(e,{relative:t});if(!n.isTransitioning)return!1;let o=ft(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ft(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Tl(l.pathname,s)!=null||Tl(l.pathname,o)!=null}/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ld=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Hh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Qa=e=>{const t=Hh(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var Wh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Qh=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Kh=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:s,...i},a)=>g.createElement("svg",{ref:a,...Wh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ld("lucide",l),...!o&&!Qh(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,h])=>g.createElement(c,h)),...Array.isArray(o)?o:[o]]));/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const M=(e,t)=>{const n=g.forwardRef(({className:r,...l},o)=>g.createElement(Kh,{ref:o,iconNode:t,className:Ld(`lucide-${Vh(Qa(e))}`,`lucide-${e}`,r),...l}));return n.displayName=Qa(e),n};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Td=M("arrow-right",Jh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Yh=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Gh=M("bot",Yh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Xh=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_s=M("check",Xh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Zh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ka=M("chevron-down",Zh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],zl=M("circle-check",qh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ey=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ty=M("circle-x",ey);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ny=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],zd=M("cloud",ny);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ry=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ly=M("copy",ry);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const oy=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],sy=M("cpu",oy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const iy=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ay=M("download",iy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const uy=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ja=M("external-link",uy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const cy=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],dy=M("file-code",cy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],py=M("info",fy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const my=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],hy=M("key",my);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yy=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ya=M("layout-dashboard",yy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const gy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vy=M("loader-circle",gy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xy=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],wy=M("lock",xy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ky=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ny=M("log-out",ky);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Sy=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],jy=M("menu",Sy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ey=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Cy=M("message-square",Ey);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _y=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Py=M("play",_y);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ry=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ga=M("plus",Ry);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ly=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xa=M("search",Ly);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ty=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],zy=M("send",Ty);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Oy=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Od=M("server",Oy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Iy=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Id=M("shield-check",Iy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Dy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],My=M("square",Dy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const by=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$y=M("terminal",by);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Fy=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Za=M("trash-2",Fy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ay=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Uy=M("triangle-alert",Ay);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const By=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Dd=M("upload",By);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Hy=M("user",Vy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wy=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Qy=M("users",Wy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ky=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ps=M("x",Ky);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jy=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Yy=M("zap",Jy);function Md(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=Md(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=Md(e))&&(r&&(r+=" "),r+=t);return r}function Gy({config:e,onRefresh:t,onMessage:n,authFetch:r}){var z,U,W,ve;const[l,o]=g.useState(!1),[s,i]=g.useState(!1),[a,c]=g.useState(""),[h,p]=g.useState({email:"",mobile:"",password:""}),[y,v]=g.useState(!1),[x,k]=g.useState({}),[N,f]=g.useState(!1),[d,m]=g.useState({}),[w,S]=g.useState(!1),[_,P]=g.useState({current:0,total:0,results:[]}),[R,F]=g.useState(null),O=r||fetch,ue=async()=>{try{const C=await O("/admin/queue/status");if(C.ok){const I=await C.json();F(I)}}catch(C){console.error("Failed to fetch queue status:",C)}};g.useEffect(()=>{ue();const C=setInterval(ue,5e3);return()=>clearInterval(C)},[]);const qe=async()=>{if(a.trim()){v(!0);try{const C=await O("/admin/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:a.trim()})});if(C.ok)n("success","API 密钥添加成功"),c(""),o(!1),t();else{const I=await C.json();n("error",I.detail||"Failed to add")}}catch{n("error","网络错误")}finally{v(!1)}}},et=async C=>{if(confirm("确定要删除此 API 密钥吗?"))try{(await O(`/admin/keys/${encodeURIComponent(C)}`,{method:"DELETE"})).ok?(n("success","Deleted successfully"),t()):n("error","Delete failed")}catch{n("error","Network error")}},$t=async()=>{if(!h.password||!h.email&&!h.mobile){n("error","Password and Email/Mobile are required");return}v(!0);try{const C=await O("/admin/accounts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(C.ok)n("success","账号添加成功"),p({email:"",mobile:"",password:""}),i(!1),t();else{const I=await C.json();n("error",I.detail||"Failed to add")}}catch{n("error","网络错误")}finally{v(!1)}},qt=async C=>{if(confirm("确定要删除此账号吗?"))try{(await O(`/admin/accounts/${encodeURIComponent(C)}`,{method:"DELETE"})).ok?(n("success","Deleted successfully"),t()):n("error","Delete failed")}catch{n("error","Network error")}},ht=async C=>{k(I=>({...I,[C]:!0}));try{const b=await(await O("/admin/accounts/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:C})})).json();n(b.valid?"success":"error",`${C}: ${b.message}`),t()}catch(I){n("error","Validation failed: "+I.message)}finally{k(I=>({...I,[C]:!1}))}},yt=async()=>{if(!confirm("校验所有账号?这可能需要一些时间。"))return;const C=e.accounts||[];if(C.length===0)return;f(!0),P({current:0,total:C.length,results:[]});let I=0;const b=[];for(let re=0;re<C.length;re++){const We=C[re],tt=We.email||We.mobile;try{const Qe=await(await O("/admin/accounts/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:tt})})).json();b.push({id:tt,success:Qe.valid,message:Qe.message}),Qe.valid&&I++}catch(gt){b.push({id:tt,success:!1,message:gt.message})}P({current:re+1,total:C.length,results:[...b]})}n("success",`Completed: ${I}/${C.length} valid`),t(),f(!1)},L=async C=>{m(I=>({...I,[C]:!0}));try{const b=await(await O("/admin/accounts/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:C})})).json();n(b.success?"success":"error",`${C}: ${b.success?`Success (${b.response_time}ms)`:b.message}`),t()}catch(I){n("error","Test failed: "+I.message)}finally{m(I=>({...I,[C]:!1}))}},E=async()=>{if(!confirm("测试所有账号的 API 连通性?"))return;const C=e.accounts||[];if(C.length===0)return;S(!0),P({current:0,total:C.length,results:[]});let I=0;const b=[];for(let re=0;re<C.length;re++){const We=C[re],tt=We.email||We.mobile;try{const Qe=await(await O("/admin/accounts/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:tt})})).json();b.push({id:tt,success:Qe.success,message:Qe.message,time:Qe.response_time}),Qe.success&&I++}catch(gt){b.push({id:tt,success:!1,message:gt.message})}P({current:re+1,total:C.length,results:[...b]})}n("success",`Completed: ${I}/${C.length} available`),t(),S(!1)};return u.jsxs("div",{className:"space-y-6",children:[R&&u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex flex-col justify-between shadow-sm relative overflow-hidden group",children:[u.jsx("div",{className:"absolute right-0 top-0 p-4 opacity-5 group-hover:opacity-10 transition-opacity",children:u.jsx(zl,{className:"w-16 h-16"})}),u.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-widest",children:"可用"}),u.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[u.jsx("span",{className:"text-3xl font-bold text-foreground",children:R.available}),u.jsx("span",{className:"text-xs text-muted-foreground",children:"个账号"})]})]}),u.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex flex-col justify-between shadow-sm relative overflow-hidden group",children:[u.jsx("div",{className:"absolute right-0 top-0 p-4 opacity-5 group-hover:opacity-10 transition-opacity",children:u.jsx(Od,{className:"w-16 h-16"})}),u.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-widest",children:"正在使用"}),u.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[u.jsx("span",{className:"text-3xl font-bold text-foreground",children:R.in_use}),u.jsx("span",{className:"text-xs text-muted-foreground",children:"线程"})]})]}),u.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex flex-col justify-between shadow-sm relative overflow-hidden group",children:[u.jsx("div",{className:"absolute right-0 top-0 p-4 opacity-5 group-hover:opacity-10 transition-opacity",children:u.jsx(Id,{className:"w-16 h-16"})}),u.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-widest",children:"账号池总数"}),u.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[u.jsx("span",{className:"text-3xl font-bold text-foreground",children:R.total}),u.jsx("span",{className:"text-xs text-muted-foreground",children:"个账号"})]})]})]}),u.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden shadow-sm",children:[u.jsxs("div",{className:"p-6 border-b border-border flex flex-col md:flex-row md:items-center justify-between gap-4",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold",children:"API 密钥"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"管理 API 访问密钥池"})]}),u.jsxs("button",{onClick:()=>o(!0),className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors font-medium text-sm shadow-sm",children:[u.jsx(Ga,{className:"w-4 h-4"}),"添加密钥"]})]}),u.jsx("div",{className:"divide-y divide-border",children:((z=e.keys)==null?void 0:z.length)>0?e.keys.map((C,I)=>u.jsxs("div",{className:"p-4 flex items-center justify-between hover:bg-muted/50 transition-colors group",children:[u.jsxs("div",{className:"font-mono text-sm bg-muted/50 px-3 py-1 rounded inline-block",children:[C.slice(0,16),"****"]}),u.jsx("button",{onClick:()=>et(C),className:"p-2 text-muted-foreground hover:text-destructive hover:bg-destructive/10 rounded-md transition-colors opacity-0 group-hover:opacity-100",children:u.jsx(Za,{className:"w-4 h-4"})})]},I)):u.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"未找到 API 密钥"})})]}),u.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden shadow-sm",children:[u.jsxs("div",{className:"p-6 border-b border-border flex flex-col md:flex-row md:items-center justify-between gap-4",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold",children:"DeepSeek 账号"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"管理 DeepSeek 账号池"})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsxs("button",{onClick:E,disabled:w||N||!((U=e.accounts)!=null&&U.length),className:"flex items-center px-3 py-2 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-xs font-medium border border-border disabled:opacity-50",children:[w?u.jsx("span",{className:"animate-spin mr-2",children:"⟳"}):u.jsx(Py,{className:"w-3 h-3 mr-2"}),"测试全部"]}),u.jsxs("button",{onClick:yt,disabled:N||w||!((W=e.accounts)!=null&&W.length),className:"flex items-center px-3 py-2 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-xs font-medium border border-border disabled:opacity-50",children:[N?u.jsx("span",{className:"animate-spin mr-2",children:"⟳"}):u.jsx(zl,{className:"w-3 h-3 mr-2"}),"校验全部"]}),u.jsxs("button",{onClick:()=>i(!0),className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors font-medium text-sm shadow-sm",children:[u.jsx(Ga,{className:"w-4 h-4"}),"添加账号"]})]})]}),(w||N)&&_.total>0&&u.jsxs("div",{className:"p-4 border-b border-border bg-muted/30",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm mb-2",children:[u.jsx("span",{className:"font-medium",children:w?"正在测试所有账号...":"正在校验所有账号..."}),u.jsxs("span",{className:"text-muted-foreground",children:[_.current," / ",_.total]})]}),u.jsx("div",{className:"w-full bg-muted rounded-full h-2 overflow-hidden mb-4",children:u.jsx("div",{className:"bg-primary h-full transition-all duration-300",style:{width:`${_.current/_.total*100}%`}})}),_.results.length>0&&u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 max-h-32 overflow-y-auto custom-scrollbar",children:_.results.map((C,I)=>u.jsxs("div",{className:ee("text-xs px-2 py-1 rounded border truncate",C.success?"bg-emerald-500/10 border-emerald-500/20 text-emerald-500":"bg-destructive/10 border-destructive/20 text-destructive"),children:[C.success?"✓":"✗"," ",C.id]},I))})]}),u.jsx("div",{className:"divide-y divide-border",children:((ve=e.accounts)==null?void 0:ve.length)>0?e.accounts.map((C,I)=>{const b=C.email||C.mobile;return u.jsxs("div",{className:"p-4 flex flex-col md:flex-row md:items-center justify-between gap-4 hover:bg-muted/50 transition-colors",children:[u.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[u.jsx("div",{className:ee("w-2 h-2 rounded-full shrink-0",C.has_token?"bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.5)]":"bg-amber-500")}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"font-medium truncate",children:b}),u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mt-0.5",children:[u.jsx("span",{children:C.has_token?"已建立会话":"需重新登录"}),C.token_preview&&u.jsx("span",{className:"font-mono bg-muted px-1.5 py-0.5 rounded text-[10px]",children:C.token_preview})]})]})]}),u.jsxs("div",{className:"flex items-center gap-2 self-start lg:self-auto ml-5 lg:ml-0",children:[u.jsx("button",{onClick:()=>L(b),disabled:d[b],className:"px-2 lg:px-3 py-1 lg:py-1.5 text-[10px] lg:text-xs font-medium border border-border rounded-md hover:bg-secondary transition-colors disabled:opacity-50",children:d[b]?"正在测试...":"测试"}),u.jsx("button",{onClick:()=>ht(b),disabled:x[b],className:"px-2 lg:px-3 py-1 lg:py-1.5 text-[10px] lg:text-xs font-medium border border-border rounded-md hover:bg-secondary transition-colors disabled:opacity-50",children:x[b]?"正在校验...":"校验"}),u.jsx("button",{onClick:()=>qt(b),className:"p-1 lg:p-1.5 text-muted-foreground hover:text-destructive hover:bg-destructive/10 rounded-md transition-colors",children:u.jsx(Za,{className:"w-3.5 h-3.5 lg:w-4 h-4"})})]})]},I)}):u.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"未找到任何账号"})})]}),l&&u.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4 animate-in fade-in",children:u.jsxs("div",{className:"bg-card w-full max-w-md rounded-xl border border-border shadow-2xl overflow-hidden animate-in zoom-in-95",children:[u.jsxs("div",{className:"p-4 border-b border-border flex justify-between items-center",children:[u.jsx("h3",{className:"font-semibold",children:"添加 API 密钥"}),u.jsx("button",{onClick:()=>o(!1),className:"text-muted-foreground hover:text-foreground",children:u.jsx(Ps,{className:"w-5 h-5"})})]}),u.jsxs("div",{className:"p-6 space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1.5",children:"新密钥值"}),u.jsx("input",{type:"text",className:"input-field bg-[#09090b]",placeholder:"输入自定义 API 密钥",value:a,onChange:C=>c(C.target.value),autoFocus:!0})]}),u.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[u.jsx("button",{onClick:()=>o(!1),className:"px-4 py-2 rounded-lg border border-border hover:bg-secondary transition-colors text-sm font-medium",children:"取消"}),u.jsx("button",{onClick:qe,disabled:y,className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-sm font-medium disabled:opacity-50",children:y?"添加中...":"添加密钥"})]})]})]})}),s&&u.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4 animate-in fade-in",children:u.jsxs("div",{className:"bg-card w-full max-w-md rounded-xl border border-border shadow-2xl overflow-hidden animate-in zoom-in-95",children:[u.jsxs("div",{className:"p-4 border-b border-border flex justify-between items-center",children:[u.jsx("h3",{className:"font-semibold",children:"添加 DeepSeek 账号"}),u.jsx("button",{onClick:()=>i(!1),className:"text-muted-foreground hover:text-foreground",children:u.jsx(Ps,{className:"w-5 h-5"})})]}),u.jsxs("div",{className:"p-6 space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1.5",children:"邮箱 (可选)"}),u.jsx("input",{type:"email",className:"input-field",placeholder:"user@example.com",value:h.email,onChange:C=>p({...h,email:C.target.value})})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1.5",children:"手机号 (可选)"}),u.jsx("input",{type:"text",className:"input-field",placeholder:"+86...",value:h.mobile,onChange:C=>p({...h,mobile:C.target.value})})]}),u.jsxs("div",{children:[u.jsxs("label",{className:"block text-sm font-medium mb-1.5",children:["密码 ",u.jsx("span",{className:"text-destructive",children:"*"})]}),u.jsx("input",{type:"password",className:"input-field bg-[#09090b]",placeholder:"账号密码",value:h.password,onChange:C=>p({...h,password:C.target.value})})]}),u.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[u.jsx("button",{onClick:()=>i(!1),className:"px-4 py-2 rounded-lg border border-border hover:bg-secondary transition-colors text-sm font-medium",children:"取消"}),u.jsx("button",{onClick:$t,disabled:y,className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-sm font-medium disabled:opacity-50",children:y?"添加中...":"添加账号"})]})]})]})})]})}const Xy=[{id:"deepseek-chat",name:"deepseek-chat",icon:Cy,desc:"非思考模型",color:"text-amber-500"},{id:"deepseek-reasoner",name:"deepseek-reasoner",icon:sy,desc:"思考模型",color:"text-amber-600"},{id:"deepseek-chat-search",name:"deepseek-chat-search",icon:Xa,desc:"非思考模型 (带搜索)",color:"text-cyan-500"},{id:"deepseek-reasoner-search",name:"deepseek-reasoner-search",icon:Xa,desc:"思考模型 (带搜索)",color:"text-cyan-600"}];function Zy({config:e,onMessage:t,authFetch:n}){var qt,ht,yt,L;const[r,l]=g.useState("deepseek-chat"),[o,s]=g.useState("Hello, please introduce yourself in one sentence."),[i,a]=g.useState(""),[c,h]=g.useState(""),[p,y]=g.useState(null),[v,x]=g.useState(!1),[k,N]=g.useState(""),[f,d]=g.useState(""),[m,w]=g.useState(!1),S=g.useRef(null),[_,P]=g.useState(!1),[R,F]=g.useState(!1),O=n||fetch,ue=e.accounts||[],qe=()=>{S.current&&(S.current.abort(),S.current=null),x(!1),w(!1)},et=async()=>{var E,z,U,W;if(!v){x(!0),w(!0),y(null),N(""),d(""),S.current=new AbortController;try{const ve=i||((E=e.keys)==null?void 0:E[0])||"";if(!ve){t("error","请提供 API 密钥"),x(!1),w(!1);return}const C=await fetch("/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ve}`},body:JSON.stringify({model:r,messages:[{role:"user",content:o}],stream:!0}),signal:S.current.signal});if(!C.ok){const We=await C.json();y({success:!1,error:((z=We.error)==null?void 0:z.message)||"请求失败"}),t("error",((U=We.error)==null?void 0:U.message)||"请求失败"),x(!1),w(!1);return}y({success:!0,status_code:C.status});const I=C.body.getReader(),b=new TextDecoder;let re="";for(;;){const{done:We,value:tt}=await I.read();if(We)break;re+=b.decode(tt,{stream:!0});const gt=re.split(`
|
|
`);re=gt.pop()||"";for(const Qe of gt){const Xl=Qe.trim();if(!Xl||!Xl.startsWith("data: "))continue;const Zl=Xl.slice(6);if(Zl!=="[DONE]")try{const _r=JSON.parse(Zl);console.log("[ApiTester] Parsed JSON:",_r);const Pr=(W=_r.choices)==null?void 0:W[0];if(Pr!=null&&Pr.delta){const en=Pr.delta;console.log("[ApiTester] Delta:",en),en.reasoning_content&&d(ql=>ql+en.reasoning_content),en.content&&(console.log("[ApiTester] Content:",en.content),N(ql=>ql+en.content))}}catch(_r){console.error("Invalid JSON hunk:",Zl,_r)}}}}catch(ve){ve.name==="AbortError"?t("info","已停止生成"):(t("error","网络错误: "+ve.message),y({error:ve.message,success:!1}))}finally{x(!1),w(!1),S.current=null}}},$t=async()=>{if(c){x(!0),y(null);try{const E=await O("/admin/accounts/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:c,model:r,message:o})}),z=await E.json();y({success:z.success,status_code:E.status,response:z,account:c}),z.success?t("success",`${c}: 测试成功 (${z.response_time}ms)`):t("error",`${c}: ${z.message}`)}catch(E){t("error","网络错误: "+E.message),y({error:E.message})}finally{x(!1)}return}et()};return u.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-12 gap-6 h-[calc(100vh-140px)]",children:[u.jsx("div",{className:ee("lg:col-span-3 flex flex-col transition-all duration-300 ease-in-out z-20",R?"h-auto":"h-14 lg:h-full"),children:u.jsxs("div",{className:"bg-card border border-border rounded-xl flex flex-col h-full shadow-sm",children:[u.jsxs("button",{onClick:()=>F(!R),className:"lg:hidden flex items-center justify-between p-4 w-full bg-muted/20 hover:bg-muted/30 transition-colors",children:[u.jsxs("div",{className:"flex items-center gap-2.5 font-medium text-sm text-foreground",children:[u.jsx("div",{className:"p-1.5 rounded-md bg-transparent text-foreground",children:u.jsx($y,{className:"w-4 h-4"})}),u.jsx("span",{children:"配置"})]}),u.jsx("div",{className:ee("transition-transform duration-300 text-muted-foreground",R?"rotate-180":""),children:u.jsx(Ka,{className:"w-4 h-4"})})]}),u.jsxs("div",{className:ee("p-4 space-y-6 overflow-y-auto custom-scrollbar flex-1",!R&&"hidden lg:block"),children:[u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ml-0.5",children:"模型"}),u.jsx("div",{className:"grid grid-cols-1 gap-2",children:Xy.map(E=>{const z=E.icon;return u.jsxs("button",{onClick:()=>l(E.id),className:ee("group relative flex items-start gap-3 p-3 rounded-lg border text-left transition-all duration-200",r===E.id?"bg-secondary border-primary/50 shadow-sm":"bg-transparent border-transparent hover:bg-muted"),children:[u.jsx("div",{className:ee("p-1.5 rounded-md shrink-0 transition-colors",r===E.id?E.color:"text-muted-foreground group-hover:text-foreground"),children:u.jsx(z,{className:"w-4 h-4"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("div",{className:ee("font-medium text-sm",r===E.id?"text-foreground":"text-foreground/80"),children:E.name}),u.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:E.desc})]}),r===E.id&&u.jsx("div",{className:ee("absolute top-3 right-3",E.color),children:u.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-current"})})]},E.id)})})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ml-0.5",children:"账号策略"}),u.jsxs("div",{className:"relative",children:[u.jsxs("select",{className:"w-full h-10 pl-3 pr-8 bg-secondary border border-border rounded-lg text-sm appearance-none focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring transition-all cursor-pointer hover:bg-muted",value:c,onChange:E=>h(E.target.value),children:[u.jsx("option",{value:"",className:"bg-popover text-popover-foreground",children:"🎲 随机切换 (支持流式预览)"}),ue.map((E,z)=>u.jsxs("option",{value:E.email||E.mobile,className:"bg-popover text-popover-foreground",children:["👤 ",E.email||E.mobile]},z))]}),u.jsx(Ka,{className:"absolute right-2.5 top-3 w-4 h-4 text-muted-foreground pointer-events-none"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ml-0.5",children:"API 密钥 (可选)"}),u.jsx("input",{type:"password",className:"w-full h-10 px-3 bg-muted/30 border border-border rounded-lg text-sm font-mono placeholder:text-muted-foreground/40 focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring transition-all",placeholder:(qt=e.keys)!=null&&qt[0]?`默认: ...${e.keys[0].slice(-6)}`:"输入自定义密钥",value:i,onChange:E=>a(E.target.value)})]})]})]})}),u.jsxs("div",{className:"lg:col-span-9 flex flex-col bg-card border border-border rounded-xl shadow-sm overflow-hidden min-h-0 flex-1 relative",children:[u.jsxs("div",{className:"flex-1 overflow-y-auto p-4 lg:p-6 space-y-8 custom-scrollbar scroll-smooth",children:[u.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto flex-row-reverse group",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center shrink-0 border border-border",children:u.jsx(Hy,{className:"w-4 h-4 text-muted-foreground"})}),u.jsx("div",{className:"space-y-1 max-w-[85%] lg:max-w-[75%]",children:u.jsx("div",{className:"bg-primary text-primary-foreground rounded-2xl rounded-tr-sm px-5 py-3 text-sm leading-relaxed shadow-sm",children:o})})]}),(p||m)&&u.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u.jsx("div",{className:ee("w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border border-border",(p==null?void 0:p.success)!==!1?"bg-muted":"bg-destructive/10 border-destructive/20"),children:u.jsx(Gh,{className:ee("w-4 h-4",(p==null?void 0:p.success)!==!1?"text-foreground":"text-destructive")})}),u.jsxs("div",{className:"space-y-3 flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold text-sm text-foreground",children:"DeepSeek"}),p&&u.jsx("span",{className:ee("text-[10px] px-1.5 py-0.5 rounded-sm border uppercase font-medium tracking-wider",p.success?"border-emerald-500/20 text-emerald-500 bg-emerald-500/10":"border-destructive/20 text-destructive bg-destructive/10"),children:p.status_code||"错误"})]}),(f||((ht=p==null?void 0:p.response)==null?void 0:ht.thinking))&&u.jsxs("div",{className:"text-xs bg-secondary/50 border border-border rounded-lg p-3 space-y-1.5",children:[u.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[u.jsx(Yy,{className:"w-3.5 h-3.5"}),u.jsx("span",{className:"font-medium",children:"思维链过程"})]}),u.jsx("div",{className:"whitespace-pre-wrap leading-relaxed text-muted-foreground font-mono text-[11px] max-h-60 overflow-y-auto custom-scrollbar pl-5 border-l-2 border-border/50",children:f||((yt=p==null?void 0:p.response)==null?void 0:yt.thinking)})]}),u.jsxs("div",{className:"text-sm leading-7 text-foreground whitespace-pre-wrap",children:[c?((L=p==null?void 0:p.response)==null?void 0:L.message)||u.jsx("span",{className:"text-muted-foreground italic",children:"正在生成响应..."}):k||(p==null?void 0:p.error)&&u.jsx("span",{className:"text-destructive font-medium",children:p.error}),m&&u.jsx("span",{className:"inline-block w-1.5 h-4 bg-primary ml-1 align-middle animate-pulse"})]})]})]})]}),u.jsxs("div",{className:"p-4 lg:p-6 border-t border-border bg-card",children:[u.jsxs("div",{className:"max-w-4xl mx-auto relative group",children:[u.jsx("textarea",{className:"w-full bg-[#09090b] border border-border rounded-xl pl-4 pr-12 py-3 text-sm focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all resize-none custom-scrollbar placeholder:text-muted-foreground/50 text-foreground shadow-inner",placeholder:"输入消息...",rows:1,style:{minHeight:"52px"},value:o,onChange:E=>s(E.target.value),onKeyDown:E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),$t())}}),u.jsx("div",{className:"absolute right-2 bottom-2",children:v&&m?u.jsx("button",{onClick:qe,className:"p-2 text-muted-foreground hover:text-destructive transition-colors",children:u.jsx(My,{className:"w-4 h-4 fill-current"})}):u.jsx("button",{onClick:$t,disabled:v||!o.trim(),className:"p-2 text-primary hover:text-primary/80 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:v?u.jsx(vy,{className:"w-4 h-4 animate-spin"}):u.jsx(zy,{className:"w-4 h-4"})})})]}),u.jsx("div",{className:"max-w-4xl mx-auto mt-3 flex justify-center",children:u.jsx("span",{className:"text-[10px] text-muted-foreground/40 font-medium",children:"DeepSeek 管理员界面"})})]})]})]})}const qa={full:{name:"全量配置模板",desc:"包含密钥、账号及模型映射",config:{keys:["your-api-key-1","your-api-key-2"],accounts:[{email:"user1@example.com",password:"password1",token:""},{email:"user2@example.com",password:"password2",token:""},{mobile:"+8613800138001",password:"password3",token:""}],claude_model_mapping:{fast:"deepseek-chat",slow:"deepseek-reasoner"}}},email_only:{name:"仅邮箱账号",desc:"批量导入邮箱格式账号",config:{keys:["your-api-key"],accounts:[{email:"account1@example.com",password:"pass1",token:""},{email:"account2@example.com",password:"pass2",token:""},{email:"account3@example.com",password:"pass3",token:""}]}},mobile_only:{name:"仅手机号账号",desc:"批量导入手机号格式账号",config:{keys:["your-api-key"],accounts:[{mobile:"+8613800000001",password:"pass1",token:""},{mobile:"+8613800000002",password:"pass2",token:""},{mobile:"+8613800000003",password:"pass3",token:""}]}},keys_only:{name:"仅 API 密钥",desc:"仅添加 API 访问密钥",config:{keys:["key-1","key-2","key-3"]}}};function qy({onRefresh:e,onMessage:t,authFetch:n}){const[r,l]=g.useState(""),[o,s]=g.useState(!1),[i,a]=g.useState(null),[c,h]=g.useState(!1),p=n||fetch,y=async()=>{if(!r.trim()){t("error","请输入 JSON 配置内容");return}let N;try{N=JSON.parse(r)}catch{t("error","无效的 JSON 格式");return}s(!0),a(null);try{const f=await p("/admin/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)}),d=await f.json();f.ok?(a(d),t("success",`导入成功: ${d.imported_keys} 个密钥, ${d.imported_accounts} 个账号`),e()):t("error",d.detail||"导入失败")}catch{t("error","网络错误")}finally{s(!1)}},v=N=>{const f=qa[N];f&&(l(JSON.stringify(f.config,null,2)),t("info",`已加载模板: ${f.name}`))},x=async()=>{try{const N=await p("/admin/export");if(N.ok){const f=await N.json();l(JSON.stringify(JSON.parse(f.json),null,2)),t("success","当前配置已加载")}}catch{t("error","获取配置失败")}},k=async()=>{try{const N=await p("/admin/export");if(N.ok){const f=await N.json();await navigator.clipboard.writeText(f.base64),h(!0),setTimeout(()=>h(!1),2e3),t("success","Base64 配置已复制到剪贴板")}}catch{t("error","复制失败")}};return u.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-3 gap-6 lg:h-[calc(100vh-140px)]",children:[u.jsxs("div",{className:"md:col-span-1 space-y-4",children:[u.jsxs("div",{className:"bg-card border border-border rounded-xl p-5 shadow-sm",children:[u.jsxs("h3",{className:"font-semibold flex items-center gap-2 mb-4",children:[u.jsx(dy,{className:"w-4 h-4 text-primary"}),"快速模板"]}),u.jsx("div",{className:"space-y-3",children:Object.entries(qa).map(([N,f])=>u.jsxs("button",{onClick:()=>v(N),className:"w-full text-left p-3 rounded-lg border border-border bg-secondary/20 hover:bg-secondary/50 hover:border-primary/50 transition-all custom-focus group",children:[u.jsx("div",{className:"font-medium text-sm group-hover:text-primary transition-colors",children:f.name}),u.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:f.desc})]},N))})]}),u.jsxs("div",{className:"bg-linear-to-br from-primary/10 to-transparent border border-primary/20 rounded-xl p-5 shadow-sm",children:[u.jsxs("h3",{className:"font-semibold flex items-center gap-2 mb-2 text-primary",children:[u.jsx(ay,{className:"w-4 h-4"}),"数据导出"]}),u.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"获取配置的 Base64 字符串,用于 Vercel 环境变量。"}),u.jsxs("button",{onClick:k,className:"w-full flex items-center justify-center gap-2 py-2.5 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-all font-medium text-sm shadow-sm",children:[c?u.jsx(_s,{className:"w-4 h-4"}):u.jsx(ly,{className:"w-4 h-4"}),c?"已复制":"复制 Base64 配置"]}),u.jsxs("p",{className:"text-[10px] text-muted-foreground mt-2 text-center",children:["变量名: ",u.jsx("code",{className:"bg-background px-1 py-0.5 rounded border border-border",children:"DS2API_CONFIG_JSON"})]})]})]}),u.jsxs("div",{className:"lg:col-span-2 flex flex-col bg-card border border-border rounded-xl shadow-sm overflow-hidden min-h-[400px] lg:h-full",children:[u.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between bg-muted/20",children:[u.jsxs("h3",{className:"font-semibold flex items-center gap-2",children:[u.jsx(Dd,{className:"w-4 h-4 text-primary"}),"JSON 编辑器"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:x,className:"px-3 py-1.5 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-xs font-medium border border-border",children:"加载当前配置"}),u.jsx("button",{onClick:y,disabled:o,className:"px-3 py-1.5 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-xs font-medium disabled:opacity-50",children:o?"正在导入...":"应用配置"})]})]}),u.jsx("div",{className:"flex-1 relative min-h-[400px]",children:u.jsx("textarea",{className:"absolute inset-0 w-full h-full p-4 font-mono text-sm bg-[#09090b] text-foreground resize-none focus:outline-none custom-scrollbar",value:r,onChange:N=>l(N.target.value),placeholder:`{
|
|
"keys": ["your-api-key"],
|
|
"accounts": [
|
|
{"email": "...", "password": "...", "token": ""}
|
|
]
|
|
}`,spellCheck:!1})}),i&&u.jsx("div",{className:ee("p-4 border-t",i.imported_keys||i.imported_accounts?"bg-emerald-500/10 border-emerald-500/20":"bg-destructive/10 border-destructive/20"),children:u.jsxs("div",{className:"flex items-start gap-3",children:[i.imported_keys||i.imported_accounts?u.jsx(_s,{className:"w-5 h-5 text-emerald-500 mt-0.5"}):u.jsx(Uy,{className:"w-5 h-5 text-destructive mt-0.5"}),u.jsxs("div",{children:[u.jsx("h4",{className:ee("font-medium",i.imported_keys||i.imported_accounts?"text-emerald-500":"text-destructive"),children:"导入操作已完成"}),u.jsxs("p",{className:"text-sm opacity-80 mt-1",children:["成功导入了 ",i.imported_keys," 个 API 密钥,并更新了 ",i.imported_accounts," 个账号。"]})]})]})})]})]})}function eg({onMessage:e,authFetch:t}){const[n,r]=g.useState(""),[l,o]=g.useState(""),[s,i]=g.useState(""),[a,c]=g.useState(!1),[h,p]=g.useState(null),[y,v]=g.useState(null),x=t||fetch;g.useEffect(()=>{(async()=>{try{const f=await x("/admin/vercel/config");if(f.ok){const d=await f.json();v(d),d.project_id&&o(d.project_id),d.team_id&&i(d.team_id)}}catch(f){console.error("Failed to load preconfig:",f)}})()},[]);const k=async()=>{if(!(y!=null&&y.has_token&&!n?"__USE_PRECONFIG__":n)&&!(y!=null&&y.has_token)){e("error","需要 Vercel 访问令牌");return}if(!l){e("error","需要项目 ID");return}c(!0),p(null);try{const f=await x("/admin/vercel/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vercel_token:n,project_id:l,team_id:s||void 0})}),d=await f.json();f.ok?(p({...d,success:!0}),e("success",d.message)):(p({...d,success:!1}),e("error",d.detail||"同步失败"))}catch{e("error","网络错误")}finally{c(!1)}};return u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 max-w-5xl mx-auto h-[calc(100vh-140px)]",children:[u.jsxs("div",{className:"bg-card border border-border rounded-xl shadow-sm p-6 space-y-6",children:[u.jsxs("div",{className:"border-b border-border pb-6",children:[u.jsxs("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[u.jsx(zd,{className:"w-6 h-6 text-primary"}),"Vercel 部署"]}),u.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"将当前密钥和账号配置直接同步到 Vercel 环境变量中。"})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-sm font-medium flex items-center justify-between",children:["Vercel 访问令牌",u.jsxs("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline flex items-center gap-1",children:["获取令牌 ",u.jsx(Ja,{className:"w-3 h-3"})]})]}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:"password",className:"w-full h-10 px-3 bg-background border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring transition-all pr-10",placeholder:y!=null&&y.has_token?"正在使用预配置的令牌":"输入 Vercel 访问令牌",value:n,onChange:N=>r(N.target.value)}),(y==null?void 0:y.has_token)&&!n&&u.jsx("div",{className:"absolute right-3 top-2.5 text-emerald-500",children:u.jsx(zl,{className:"w-5 h-5"})})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-sm font-medium",children:"项目 ID"}),u.jsx("input",{type:"text",className:"w-full h-10 px-3 bg-background border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring transition-all",placeholder:"prj_xxxxxxxxxxxx or Project Name",value:l,onChange:N=>o(N.target.value)}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"可在项目设置 (Project Settings) → 常规 (General) 中找到"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:["团队 ID ",u.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"(可选)"})]}),u.jsx("input",{type:"text",className:"w-full h-10 px-3 bg-background border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring transition-all",placeholder:"team_xxxxxxxxxxxx",value:s,onChange:N=>i(N.target.value)})]})]}),u.jsxs("div",{className:"pt-4",children:[u.jsx("button",{onClick:k,disabled:a,className:"w-full flex items-center justify-center gap-2 py-3 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-all font-medium text-sm shadow-sm hover:shadow-md disabled:opacity-50 disabled:shadow-none",children:a?u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),"正在同步..."]}):u.jsxs("span",{className:"flex items-center gap-2",children:["同步并重新部署 ",u.jsx(Td,{className:"w-4 h-4"})]})}),u.jsx("p",{className:"text-xs text-center text-muted-foreground mt-4",children:"这将触发 Vercel 的重新部署,大约需要 30-60 秒。"})]})]}),u.jsxs("div",{className:"space-y-6",children:[h&&u.jsx("div",{className:`p-6 rounded-xl border ${h.success?"bg-emerald-500/10 border-emerald-500/20":"bg-destructive/10 border-destructive/20"} animate-in fade-in slide-in-from-right-4`,children:u.jsxs("div",{className:"flex items-start gap-4",children:[h.success?u.jsx("div",{className:"p-2 bg-emerald-500 text-white rounded-full shadow-lg shadow-emerald-500/30",children:u.jsx(zl,{className:"w-6 h-6"})}):u.jsx("div",{className:"p-2 bg-destructive text-white rounded-full shadow-lg shadow-destructive/30",children:u.jsx(ty,{className:"w-6 h-6"})}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("h3",{className:`font-semibold text-lg ${h.success?"text-emerald-500":"text-destructive"}`,children:h.success?"同步成功":"同步失败"}),u.jsx("p",{className:"text-sm opacity-90",children:h.message}),h.deployment_url&&u.jsx("div",{className:"pt-3 mt-3 border-t border-emerald-500/20",children:u.jsxs("a",{href:`https://${h.deployment_url}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-sm font-medium hover:underline",children:["访问部署地址 ",u.jsx(Ja,{className:"w-3 h-3"})]})})]})]})}),u.jsxs("div",{className:"bg-secondary/20 border border-border rounded-xl p-6",children:[u.jsxs("h3",{className:"font-semibold flex items-center gap-2 mb-4",children:[u.jsx(py,{className:"w-5 h-5 text-primary"}),"工作原理"]}),u.jsxs("ul",{className:"space-y-4",children:[u.jsxs("li",{className:"flex gap-3",children:[u.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"1"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"当前配置 (密钥和账号) 被导出为 JSON 字符串。"})]}),u.jsxs("li",{className:"flex gap-3",children:[u.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"2"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"JSON 被编码为 Base64 以确保格式兼容性。"})]}),u.jsxs("li",{className:"flex gap-3",children:[u.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"3"}),u.jsxs("p",{className:"text-sm text-muted-foreground",children:["更新 Vercel 项目中的 ",u.jsx("code",{className:"bg-background px-1 py-0.5 rounded border border-border text-xs",children:"DS2API_CONFIG_JSON"})," 环境变量。"]})]}),u.jsxs("li",{className:"flex gap-3",children:[u.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"4"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"触发重新部署以应用新的环境变量。"})]})]})]})]})]})}function tg({onLogin:e,onMessage:t}){const[n,r]=g.useState(""),[l,o]=g.useState(!1),[s,i]=g.useState(!0),a=async c=>{if(c.preventDefault(),!!n.trim()){o(!0);try{const h=await fetch("/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({admin_key:n})}),p=await h.json();if(h.ok&&p.success){const y=s?localStorage:sessionStorage;y.setItem("ds2api_token",p.token),y.setItem("ds2api_token_expires",Date.now()+p.expires_in*1e3),e(p.token),p.message&&t("warning",p.message)}else t("error",p.detail||"登录失败")}catch(h){t("error","网络错误: "+h.message)}finally{o(!1)}}};return u.jsx("div",{className:"min-h-screen w-full flex flex-col items-center justify-center p-4 bg-background text-foreground",children:u.jsxs("div",{className:"w-full max-w-[400px] relative z-10 animate-in fade-in zoom-in-95 duration-200",children:[u.jsxs("div",{className:"w-full bg-card border border-border rounded-xl p-8 shadow-sm",children:[u.jsxs("div",{className:"text-center space-y-2 mb-8 animate-in fade-in slide-in-from-top-4 duration-500",children:[u.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-primary/10 text-primary mb-2",children:u.jsx(wy,{className:"w-6 h-6"})}),u.jsx("h1",{className:"text-3xl font-bold tracking-tight text-foreground",children:"欢迎回来"}),u.jsx("p",{className:"text-sm text-muted-foreground/80",children:"请输入管理员密钥以继续"})]}),u.jsxs("form",{onSubmit:a,className:"space-y-5 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-150",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-widest ml-1",children:"管理员密钥"}),u.jsxs("div",{className:"relative group",children:[u.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none text-muted-foreground group-focus-within:text-primary transition-colors",children:u.jsx(hy,{className:"w-4 h-4"})}),u.jsx("input",{type:"password",className:"w-full bg-[#09090b] border border-border rounded-xl pl-10 pr-4 py-3 text-sm focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all placeholder:text-muted-foreground/30 text-foreground",placeholder:"输入您的管理员密钥...",value:n,onChange:c=>r(c.target.value),autoFocus:!0})]})]}),u.jsx("div",{className:"flex items-center justify-between px-1",children:u.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer group",children:[u.jsxs("div",{className:"relative flex items-center",children:[u.jsx("input",{type:"checkbox",className:"peer sr-only",checked:s,onChange:c=>i(c.target.checked)}),u.jsx("div",{className:"w-4.5 h-4.5 bg-secondary border border-border rounded-md peer-checked:bg-primary peer-checked:border-primary transition-all shadow-sm"}),u.jsx(_s,{className:"absolute w-3 h-3 text-primary-foreground opacity-0 peer-checked:opacity-100 left-0.5 transition-opacity"})]}),u.jsx("span",{className:"text-xs font-medium text-muted-foreground group-hover:text-foreground transition-colors",children:"记住登录状态"})]})}),u.jsx("button",{type:"submit",disabled:l,className:"w-full h-12 flex items-center justify-center gap-2 bg-primary text-primary-foreground rounded-xl hover:bg-primary/90 transition-all font-semibold text-sm shadow-lg shadow-primary/20 hover:shadow-primary/30 disabled:opacity-50 disabled:shadow-none",children:l?u.jsx("div",{className:"w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}):u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{children:"登录"}),u.jsx(Td,{className:"w-4 h-4"})]})})]}),u.jsx("div",{className:"mt-6 pt-6 border-t border-border flex justify-center",children:u.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground/60 font-medium tracking-wide uppercase",children:[u.jsx(Id,{className:"w-3 h-3"}),u.jsx("span",{children:"安全连接"})]})})]}),u.jsx("div",{className:"mt-8 text-center",children:u.jsx("p",{className:"text-[10px] text-muted-foreground/30 font-mono text-center",children:"DS2API 管理员门户"})})]})})}const Lo=[{id:"accounts",label:"账号管理",icon:Qy,description:"管理 DeepSeek 账号池"},{id:"test",label:"API 测试",icon:Od,description:"测试 API 连接与响应"},{id:"import",label:"批量导入",icon:Dd,description:"批量导入账号配置"},{id:"vercel",label:"Vercel 同步",icon:zd,description:"同步配置到 Vercel"}];function ng({token:e,onLogout:t,config:n,fetchConfig:r,showMessage:l,message:o}){var x,k,N,f;const[s,i]=g.useState("accounts"),[a,c]=g.useState(!1),[h,p]=g.useState(!1),y=async(d,m={})=>{const w={...m.headers,Authorization:`Bearer ${e}`},S=await fetch(d,{...m,headers:w});if(S.status===401)throw t(),new Error("认证已过期,请重新登录");return S},v=()=>{switch(s){case"accounts":return u.jsx(Gy,{config:n,onRefresh:r,onMessage:l,authFetch:y});case"test":return u.jsx(Zy,{config:n,onMessage:l,authFetch:y});case"import":return u.jsx(qy,{onRefresh:r,onMessage:l,authFetch:y});case"vercel":return u.jsx(eg,{onMessage:l,authFetch:y});default:return null}};return u.jsxs("div",{className:"flex h-screen bg-background overflow-hidden text-foreground",children:[a&&u.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40 lg:hidden",onClick:()=>c(!1)}),u.jsxs("aside",{className:ee("fixed lg:static inset-y-0 left-0 z-50 w-64 bg-card border-r border-border transition-transform duration-300 ease-in-out lg:transform-none flex flex-col shadow-2xl lg:shadow-none",a?"translate-x-0":"-translate-x-full"),children:[u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex items-center gap-2.5 font-bold text-xl text-foreground tracking-tight",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground shadow-lg shadow-primary/20",children:u.jsx(Ya,{className:"w-5 h-5"})}),u.jsx("span",{children:"DS2API"})]}),u.jsx("p",{className:"text-[10px] text-muted-foreground mt-2 font-semibold tracking-[0.1em] uppercase opacity-60 px-1",children:"在线管理面板"})]}),u.jsx("nav",{className:"flex-1 px-3 space-y-1 overflow-y-auto pt-2",children:Lo.map(d=>{const m=d.icon,w=s===d.id;return u.jsxs("button",{onClick:()=>{i(d.id),c(!1)},className:ee("w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group border",w?"bg-secondary text-primary border-border shadow-sm":"text-muted-foreground border-transparent hover:bg-secondary/80 hover:text-foreground"),children:[u.jsx(m,{className:ee("w-4 h-4 transition-colors",w?"text-primary":"text-muted-foreground group-hover:text-foreground")}),u.jsx("span",{className:"flex-1 text-left",children:d.label}),w&&u.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"})]},d.id)})}),u.jsx("div",{className:"p-4 border-t border-border bg-card",children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm px-1",children:[u.jsx("span",{className:"text-muted-foreground font-semibold text-[10px] uppercase tracking-wider",children:"系统状态"}),u.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] font-bold text-emerald-500 bg-emerald-500/10 px-2 py-0.5 rounded-full border border-emerald-500/20",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),"在线"]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[u.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border shadow-sm",children:[u.jsx("div",{className:"text-[9px] text-muted-foreground font-bold uppercase tracking-wider mb-0.5 opacity-70",children:"账号"}),u.jsx("div",{className:"text-lg font-bold text-foreground leading-tight",children:((x=n.accounts)==null?void 0:x.length)||0})]}),u.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border shadow-sm",children:[u.jsx("div",{className:"text-[9px] text-muted-foreground font-bold uppercase tracking-wider mb-0.5 opacity-70",children:"密钥"}),u.jsx("div",{className:"text-lg font-bold text-foreground",children:((k=n.keys)==null?void 0:k.length)||0})]})]}),u.jsxs("button",{onClick:t,className:"w-full h-10 flex items-center justify-center gap-2 rounded-lg border border-border text-xs font-medium text-muted-foreground hover:bg-destructive/10 hover:text-destructive hover:border-destructive/20 transition-all",children:[u.jsx(Ny,{className:"w-3.5 h-3.5"}),"退出登录"]})]})})]}),u.jsxs("main",{className:"flex-1 flex flex-col min-w-0 overflow-hidden relative",children:[u.jsxs("header",{className:"lg:hidden h-14 flex items-center justify-between px-4 border-b border-border bg-card",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-6 h-6 rounded bg-primary flex items-center justify-center text-primary-foreground text-[10px]",children:u.jsx(Ya,{className:"w-3.5 h-3.5"})}),u.jsx("span",{className:"font-semibold text-sm",children:"DS2API"})]}),u.jsx("button",{onClick:()=>c(!0),className:"p-2 -mr-2 text-muted-foreground hover:text-foreground",children:u.jsx(jy,{className:"w-5 h-5"})})]}),u.jsx("div",{className:"flex-1 overflow-auto bg-background p-4 lg:p-10",children:u.jsxs("div",{className:"max-w-6xl mx-auto space-y-4 lg:space-y-6",children:[u.jsxs("div",{className:"hidden lg:block mb-8",children:[u.jsx("h1",{className:"text-3xl font-bold tracking-tight mb-2",children:(N=Lo.find(d=>d.id===s))==null?void 0:N.label}),u.jsx("p",{className:"text-muted-foreground",children:(f=Lo.find(d=>d.id===s))==null?void 0:f.description})]}),o&&u.jsxs("div",{className:ee("p-4 rounded-lg border flex items-center gap-3 animate-in fade-in slide-in-from-top-2",o.type==="error"?"bg-destructive/10 border-destructive/20 text-destructive":"bg-emerald-500/10 border-emerald-500/20 text-emerald-500"),children:[o.type==="error"?u.jsx(Ps,{className:"w-5 h-5"}):u.jsx("div",{className:"w-5 h-5 rounded-full border-2 border-emerald-500 flex items-center justify-center text-[10px]",children:"✓"}),o.text]}),u.jsx("div",{className:"animate-in fade-in duration-500",children:v()})]})})]})]})}function rg(){Ci();const e=mt(),[t,n]=g.useState({keys:[],accounts:[]}),[r,l]=g.useState(!0),[o,s]=g.useState(null),[i,a]=g.useState(null),[c,h]=g.useState(!0),p=!0,y=e.pathname.startsWith("/admin")||p;g.useEffect(()=>{(async()=>{const d=localStorage.getItem("ds2api_token")||sessionStorage.getItem("ds2api_token"),m=parseInt(localStorage.getItem("ds2api_token_expires")||sessionStorage.getItem("ds2api_token_expires")||"0");if(d&&m>Date.now())try{(await fetch("/admin/verify",{headers:{Authorization:`Bearer ${d}`}})).ok?a(d):N()}catch{a(d)}h(!1)})()},[y]);const v=async()=>{if(i)try{l(!0);const f=await fetch("/admin/config",{headers:{Authorization:`Bearer ${i}`}});if(f.ok){const d=await f.json();n(d)}}catch(f){console.error("获取配置失败:",f),x("error",f.message)}finally{l(!1)}};g.useEffect(()=>{i&&v()},[i]);const x=(f,d)=>{s({type:f,text:d}),setTimeout(()=>s(null),5e3)},k=f=>{a(f)},N=()=>{a(null),localStorage.removeItem("ds2api_token"),localStorage.removeItem("ds2api_token_expires"),sessionStorage.removeItem("ds2api_token"),sessionStorage.removeItem("ds2api_token_expires")};return c?u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:u.jsxs("div",{className:"flex flex-col items-center gap-4",children:[u.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"}),u.jsx("p",{className:"text-muted-foreground animate-pulse",children:"正在检查登录状态..."})]})}):u.jsxs(uh,{children:[!p,u.jsx(Es,{path:"/",element:i?u.jsx(ng,{token:i,onLogout:N,config:t,fetchConfig:v,showMessage:x,message:o}):u.jsxs("div",{className:"min-h-screen flex flex-col bg-background relative overflow-hidden",children:[u.jsxs("div",{className:"absolute top-0 left-0 w-full h-full overflow-hidden pointer-events-none z-0",children:[u.jsx("div",{className:"absolute top-[-10%] right-[-10%] w-[50%] h-[50%] bg-primary/5 rounded-full blur-[120px]"}),u.jsx("div",{className:"absolute bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-accent/5 rounded-full blur-[120px]"})]}),o&&u.jsx("div",{className:ee("fixed top-4 right-4 z-50 px-4 py-3 rounded-lg shadow-lg border animate-in slide-in-from-top-2 fade-in",o.type==="error"?"bg-destructive/10 border-destructive/20 text-destructive":"bg-primary/10 border-primary/20 text-primary"),children:o.text}),u.jsx(tg,{onLogin:k,onMessage:x})]})}),u.jsx(Es,{path:"*",element:u.jsx(ih,{to:"/",replace:!0})})]})}const lg="/admin";To.createRoot(document.getElementById("root")).render(u.jsx(qd.StrictMode,{children:u.jsx(Oh,{basename:lg,children:u.jsx(rg,{})})}));
|