rag-chat / server /static /assets /index-Ovl1jNHo.js
lucas-wa
Test uni module
6e06893
(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 i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).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 Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ds={exports:{}},yl={},ps={exports:{}},j={};/**
* @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 cr=Symbol.for("react.element"),Rc=Symbol.for("react.portal"),Mc=Symbol.for("react.fragment"),jc=Symbol.for("react.strict_mode"),Oc=Symbol.for("react.profiler"),Dc=Symbol.for("react.provider"),$c=Symbol.for("react.context"),Fc=Symbol.for("react.forward_ref"),Uc=Symbol.for("react.suspense"),Ac=Symbol.for("react.memo"),Bc=Symbol.for("react.lazy"),eu=Symbol.iterator;function Vc(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}var ms={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hs=Object.assign,vs={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=vs,this.updater=n||ms}Sn.prototype.isReactComponent={};Sn.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")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gs(){}gs.prototype=Sn.prototype;function oi(e,t,n){this.props=e,this.context=t,this.refs=vs,this.updater=n||ms}var ii=oi.prototype=new gs;ii.constructor=oi;hs(ii,Sn.prototype);ii.isPureReactComponent=!0;var tu=Array.isArray,ys=Object.prototype.hasOwnProperty,ui={current:null},ws={key:!0,ref:!0,__self:!0,__source:!0};function Ss(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ys.call(t,r)&&!ws.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var s=Array(u),d=0;d<u;d++)s[d]=arguments[d+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:cr,type:e,key:o,ref:i,props:l,_owner:ui.current}}function Hc(e,t){return{$$typeof:cr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function si(e){return typeof e=="object"&&e!==null&&e.$$typeof===cr}function Wc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var nu=/\/+/g;function Dl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wc(""+e.key):t.toString(36)}function jr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case cr:case Rc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+Dl(i,0):r,tu(l)?(n="",e!=null&&(n=e.replace(nu,"$&/")+"/"),jr(l,t,n,"",function(d){return d})):l!=null&&(si(l)&&(l=Hc(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(nu,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",tu(e))for(var u=0;u<e.length;u++){o=e[u];var s=r+Dl(o,u);i+=jr(o,t,n,s,l)}else if(s=Vc(e),typeof s=="function")for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=r+Dl(o,u++),i+=jr(o,t,n,s,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 i}function hr(e,t,n){if(e==null)return e;var r=[],l=0;return jr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Qc(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 he={current:null},Or={transition:null},Kc={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:Or,ReactCurrentOwner:ui};j.Children={map:hr,forEach:function(e,t,n){hr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hr(e,function(){t++}),t},toArray:function(e){return hr(e,function(t){return t})||[]},only:function(e){if(!si(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};j.Component=Sn;j.Fragment=Mc;j.Profiler=Oc;j.PureComponent=oi;j.StrictMode=jc;j.Suspense=Uc;j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kc;j.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=hs({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ui.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)ys.call(t,s)&&!ws.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var d=0;d<s;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:cr,type:e.type,key:l,ref:o,props:r,_owner:i}};j.createContext=function(e){return e={$$typeof:$c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dc,_context:e},e.Consumer=e};j.createElement=Ss;j.createFactory=function(e){var t=Ss.bind(null,e);return t.type=e,t};j.createRef=function(){return{current:null}};j.forwardRef=function(e){return{$$typeof:Fc,render:e}};j.isValidElement=si;j.lazy=function(e){return{$$typeof:Bc,_payload:{_status:-1,_result:e},_init:Qc}};j.memo=function(e,t){return{$$typeof:Ac,type:e,compare:t===void 0?null:t}};j.startTransition=function(e){var t=Or.transition;Or.transition={};try{e()}finally{Or.transition=t}};j.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};j.useCallback=function(e,t){return he.current.useCallback(e,t)};j.useContext=function(e){return he.current.useContext(e)};j.useDebugValue=function(){};j.useDeferredValue=function(e){return he.current.useDeferredValue(e)};j.useEffect=function(e,t){return he.current.useEffect(e,t)};j.useId=function(){return he.current.useId()};j.useImperativeHandle=function(e,t,n){return he.current.useImperativeHandle(e,t,n)};j.useInsertionEffect=function(e,t){return he.current.useInsertionEffect(e,t)};j.useLayoutEffect=function(e,t){return he.current.useLayoutEffect(e,t)};j.useMemo=function(e,t){return he.current.useMemo(e,t)};j.useReducer=function(e,t,n){return he.current.useReducer(e,t,n)};j.useRef=function(e){return he.current.useRef(e)};j.useState=function(e){return he.current.useState(e)};j.useSyncExternalStore=function(e,t,n){return he.current.useSyncExternalStore(e,t,n)};j.useTransition=function(){return he.current.useTransition()};j.version="18.2.0";ps.exports=j;var M=ps.exports;const A=Ic(M);/**
* @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 Yc=M,Xc=Symbol.for("react.element"),Zc=Symbol.for("react.fragment"),Gc=Object.prototype.hasOwnProperty,Jc=Yc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qc={key:!0,ref:!0,__self:!0,__source:!0};function ks(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Gc.call(t,r)&&!qc.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:Xc,type:e,key:o,ref:i,props:l,_owner:Jc.current}}yl.Fragment=Zc;yl.jsx=ks;yl.jsxs=ks;ds.exports=yl;var P=ds.exports,ao={},Es={exports:{}},ze={},Cs={exports:{}},xs={};/**
* @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(x,z){var R=x.length;x.push(z);e:for(;0<R;){var D=R-1>>>1,$=x[D];if(0<l($,z))x[D]=z,x[R]=$,R=D;else break e}}function n(x){return x.length===0?null:x[0]}function r(x){if(x.length===0)return null;var z=x[0],R=x.pop();if(R!==z){x[0]=R;e:for(var D=0,$=x.length,re=$>>>1;D<re;){var q=2*(D+1)-1,ye=x[q],fe=q+1,Ye=x[fe];if(0>l(ye,R))fe<$&&0>l(Ye,ye)?(x[D]=Ye,x[fe]=R,D=fe):(x[D]=ye,x[q]=R,D=q);else if(fe<$&&0>l(Ye,R))x[D]=Ye,x[fe]=R,D=fe;else break e}}return z}function l(x,z){var R=x.sortIndex-z.sortIndex;return R!==0?R:x.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],d=[],m=1,h=null,p=3,w=!1,v=!1,y=!1,_=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(x){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=x)r(d),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(d)}}function g(x){if(y=!1,c(x),!v)if(n(s)!==null)v=!0,ct(E);else{var z=n(d);z!==null&&xe(g,z.startTime-x)}}function E(x,z){v=!1,y&&(y=!1,f(k),k=-1),w=!0;var R=p;try{for(c(z),h=n(s);h!==null&&(!(h.expirationTime>z)||x&&!Z());){var D=h.callback;if(typeof D=="function"){h.callback=null,p=h.priorityLevel;var $=D(h.expirationTime<=z);z=e.unstable_now(),typeof $=="function"?h.callback=$:h===n(s)&&r(s),c(z)}else r(s);h=n(s)}if(h!==null)var re=!0;else{var q=n(d);q!==null&&xe(g,q.startTime-z),re=!1}return re}finally{h=null,p=R,w=!1}}var N=!1,C=null,k=-1,I=5,L=-1;function Z(){return!(e.unstable_now()-L<I)}function ge(){if(C!==null){var x=e.unstable_now();L=x;var z=!0;try{z=C(!0,x)}finally{z?Re():(N=!1,C=null)}}else N=!1}var Re;if(typeof a=="function")Re=function(){a(ge)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,at=Ue.port2;Ue.port1.onmessage=ge,Re=function(){at.postMessage(null)}}else Re=function(){_(ge,0)};function ct(x){C=x,N||(N=!0,Re())}function xe(x,z){k=_(function(){x(e.unstable_now())},z)}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(x){x.callback=null},e.unstable_continueExecution=function(){v||w||(v=!0,ct(E))},e.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<x?Math.floor(1e3/x):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(x){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var R=p;p=z;try{return x()}finally{p=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(x,z){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var R=p;p=x;try{return z()}finally{p=R}},e.unstable_scheduleCallback=function(x,z,R){var D=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?D+R:D):R=D,x){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=R+$,x={id:m++,callback:z,priorityLevel:x,startTime:R,expirationTime:$,sortIndex:-1},R>D?(x.sortIndex=R,t(d,x),n(s)===null&&x===n(d)&&(y?(f(k),k=-1):y=!0,xe(g,R-D))):(x.sortIndex=$,t(s,x),v||w||(v=!0,ct(E))),x},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(x){var z=p;return function(){var R=p;p=z;try{return x.apply(this,arguments)}finally{p=R}}}})(xs);Cs.exports=xs;var bc=Cs.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 _s=M,Le=bc;function S(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 Ns=new Set,Qn={};function Qt(e,t){pn(e,t),pn(e+"Capture",t)}function pn(e,t){for(Qn[e]=t,e=0;e<t.length;e++)Ns.add(t[e])}var lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),co=Object.prototype.hasOwnProperty,ef=/^[: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]*$/,ru={},lu={};function tf(e){return co.call(lu,e)?!0:co.call(ru,e)?!1:ef.test(e)?lu[e]=!0:(ru[e]=!0,!1)}function nf(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 rf(e,t,n,r){if(t===null||typeof t>"u"||nf(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 ve(e,t,n,r,l,o,i){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=i}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new ve(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){ie[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-:]([a-z])/g;function ci(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(ai,ci);ie[t]=new ve(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(ai,ci);ie[t]=new ve(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(ai,ci);ie[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function fi(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rf(t,n,l,r)&&(n=null),r||l===null?tf(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 st=_s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=Symbol.for("react.element"),Xt=Symbol.for("react.portal"),Zt=Symbol.for("react.fragment"),di=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),Ts=Symbol.for("react.provider"),Ps=Symbol.for("react.context"),pi=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),mo=Symbol.for("react.suspense_list"),mi=Symbol.for("react.memo"),dt=Symbol.for("react.lazy"),Ls=Symbol.for("react.offscreen"),ou=Symbol.iterator;function Cn(e){return e===null||typeof e!="object"?null:(e=ou&&e[ou]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,$l;function In(e){if($l===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$l=t&&t[1]||""}return`
`+$l+e}var Fl=!1;function Ul(e,t){if(!e||Fl)return"";Fl=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
`),o=r.stack.split(`
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=`
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Fl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function lf(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function ho(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 Zt:return"Fragment";case Xt:return"Portal";case fo:return"Profiler";case di:return"StrictMode";case po:return"Suspense";case mo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ps:return(e.displayName||"Context")+".Consumer";case Ts:return(e._context.displayName||"Context")+".Provider";case pi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mi:return t=e.displayName||null,t!==null?t:ho(e.type)||"Memo";case dt:t=e._payload,e=e._init;try{return ho(e(t))}catch{}}return null}function of(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 ho(t);case 8:return t===di?"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 Tt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uf(e){var t=zs(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(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gr(e){e._valueTracker||(e._valueTracker=uf(e))}function Is(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yr(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 vo(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tt(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 Rs(e,t){t=t.checked,t!=null&&fi(e,"checked",t,!1)}function go(e,t){Rs(e,t);var n=Tt(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")?yo(e,t.type,n):t.hasOwnProperty("defaultValue")&&yo(e,t.type,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uu(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 yo(e,t,n){(t!=="number"||Yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(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=""+Tt(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 wo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function su(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(Rn(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tt(n)}}function Ms(e,t){var n=Tt(t.value),r=Tt(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 au(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function js(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 So(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?js(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yr,Os=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(yr=yr||document.createElement("div"),yr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var On={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},sf=["Webkit","ms","Moz","O"];Object.keys(On).forEach(function(e){sf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]})});function Ds(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function $s(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ds(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var af=Y({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 ko(e,t){if(t){if(af[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Eo(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 Co=null;function hi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xo=null,sn=null,an=null;function cu(e){if(e=pr(e)){if(typeof xo!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Cl(t),xo(e.stateNode,e.type,t))}}function Fs(e){sn?an?an.push(e):an=[e]:sn=e}function Us(){if(sn){var e=sn,t=an;if(an=sn=null,cu(e),t)for(e=0;e<t.length;e++)cu(t[e])}}function As(e,t){return e(t)}function Bs(){}var Al=!1;function Vs(e,t,n){if(Al)return e(t,n);Al=!0;try{return As(e,t,n)}finally{Al=!1,(sn!==null||an!==null)&&(Bs(),Us())}}function Yn(e,t){var n=e.stateNode;if(n===null)return null;var r=Cl(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(S(231,t,typeof n));return n}var _o=!1;if(lt)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){_o=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{_o=!1}function cf(e,t,n,r,l,o,i,u,s){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var Dn=!1,Xr=null,Zr=!1,No=null,ff={onError:function(e){Dn=!0,Xr=e}};function df(e,t,n,r,l,o,i,u,s){Dn=!1,Xr=null,cf.apply(ff,arguments)}function pf(e,t,n,r,l,o,i,u,s){if(df.apply(this,arguments),Dn){if(Dn){var d=Xr;Dn=!1,Xr=null}else throw Error(S(198));Zr||(Zr=!0,No=d)}}function Kt(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 Hs(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 fu(e){if(Kt(e)!==e)throw Error(S(188))}function mf(e){var t=e.alternate;if(!t){if(t=Kt(e),t===null)throw Error(S(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 fu(l),e;if(o===r)return fu(l),t;o=o.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function Ws(e){return e=mf(e),e!==null?Qs(e):null}function Qs(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qs(e);if(t!==null)return t;e=e.sibling}return null}var Ks=Le.unstable_scheduleCallback,du=Le.unstable_cancelCallback,hf=Le.unstable_shouldYield,vf=Le.unstable_requestPaint,G=Le.unstable_now,gf=Le.unstable_getCurrentPriorityLevel,vi=Le.unstable_ImmediatePriority,Ys=Le.unstable_UserBlockingPriority,Gr=Le.unstable_NormalPriority,yf=Le.unstable_LowPriority,Xs=Le.unstable_IdlePriority,wl=null,Je=null;function wf(e){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(wl,e,void 0,(e.current.flags&128)===128)}catch{}}var We=Math.clz32?Math.clz32:Ef,Sf=Math.log,kf=Math.LN2;function Ef(e){return e>>>=0,e===0?32:31-(Sf(e)/kf|0)|0}var wr=64,Sr=4194304;function Mn(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 Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Mn(u):(o&=i,o!==0&&(r=Mn(o)))}else i=n&~l,i!==0?r=Mn(i):o!==0&&(r=Mn(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-We(t),l=1<<n,r|=e[n],t&=~l;return r}function Cf(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 xf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-We(o),u=1<<i,s=l[i];s===-1?(!(u&n)||u&r)&&(l[i]=Cf(u,t)):s<=t&&(e.expiredLanes|=u),o&=~u}}function To(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zs(){var e=wr;return wr<<=1,!(wr&4194240)&&(wr=64),e}function Bl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function _f(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-We(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function gi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var F=0;function Gs(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Js,yi,qs,bs,ea,Po=!1,kr=[],wt=null,St=null,kt=null,Xn=new Map,Zn=new Map,mt=[],Nf="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 pu(e,t){switch(e){case"focusin":case"focusout":wt=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zn.delete(t.pointerId)}}function _n(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=pr(t),t!==null&&yi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Tf(e,t,n,r,l){switch(t){case"focusin":return wt=_n(wt,e,t,n,r,l),!0;case"dragenter":return St=_n(St,e,t,n,r,l),!0;case"mouseover":return kt=_n(kt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Xn.set(o,_n(Xn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Zn.set(o,_n(Zn.get(o)||null,e,t,n,r,l)),!0}return!1}function ta(e){var t=jt(e.target);if(t!==null){var n=Kt(t);if(n!==null){if(t=n.tag,t===13){if(t=Hs(n),t!==null){e.blockedOn=t,ea(e.priority,function(){qs(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 Dr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Co=r,n.target.dispatchEvent(r),Co=null}else return t=pr(n),t!==null&&yi(t),e.blockedOn=n,!1;t.shift()}return!0}function mu(e,t,n){Dr(e)&&n.delete(t)}function Pf(){Po=!1,wt!==null&&Dr(wt)&&(wt=null),St!==null&&Dr(St)&&(St=null),kt!==null&&Dr(kt)&&(kt=null),Xn.forEach(mu),Zn.forEach(mu)}function Nn(e,t){e.blockedOn===t&&(e.blockedOn=null,Po||(Po=!0,Le.unstable_scheduleCallback(Le.unstable_NormalPriority,Pf)))}function Gn(e){function t(l){return Nn(l,e)}if(0<kr.length){Nn(kr[0],e);for(var n=1;n<kr.length;n++){var r=kr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(wt!==null&&Nn(wt,e),St!==null&&Nn(St,e),kt!==null&&Nn(kt,e),Xn.forEach(t),Zn.forEach(t),n=0;n<mt.length;n++)r=mt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mt.length&&(n=mt[0],n.blockedOn===null);)ta(n),n.blockedOn===null&&mt.shift()}var cn=st.ReactCurrentBatchConfig,qr=!0;function Lf(e,t,n,r){var l=F,o=cn.transition;cn.transition=null;try{F=1,wi(e,t,n,r)}finally{F=l,cn.transition=o}}function zf(e,t,n,r){var l=F,o=cn.transition;cn.transition=null;try{F=4,wi(e,t,n,r)}finally{F=l,cn.transition=o}}function wi(e,t,n,r){if(qr){var l=Lo(e,t,n,r);if(l===null)Jl(e,t,r,br,n),pu(e,r);else if(Tf(l,e,t,n,r))r.stopPropagation();else if(pu(e,r),t&4&&-1<Nf.indexOf(e)){for(;l!==null;){var o=pr(l);if(o!==null&&Js(o),o=Lo(e,t,n,r),o===null&&Jl(e,t,r,br,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Jl(e,t,r,null,n)}}var br=null;function Lo(e,t,n,r){if(br=null,e=hi(r),e=jt(e),e!==null)if(t=Kt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hs(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 br=e,null}function na(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(gf()){case vi:return 1;case Ys:return 4;case Gr:case yf:return 16;case Xs:return 536870912;default:return 16}default:return 16}}var vt=null,Si=null,$r=null;function ra(){if($r)return $r;var e,t=Si,n=t.length,r,l="value"in vt?vt.value:vt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return $r=l.slice(e,1<r?1-r:void 0)}function Fr(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 Er(){return!0}function hu(){return!1}function Ie(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Er:hu,this.isPropagationStopped=hu,this}return Y(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=Er)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Er)},persist:function(){},isPersistent:Er}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ki=Ie(kn),dr=Y({},kn,{view:0,detail:0}),If=Ie(dr),Vl,Hl,Tn,Sl=Y({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ei,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!==Tn&&(Tn&&e.type==="mousemove"?(Vl=e.screenX-Tn.screenX,Hl=e.screenY-Tn.screenY):Hl=Vl=0,Tn=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:Hl}}),vu=Ie(Sl),Rf=Y({},Sl,{dataTransfer:0}),Mf=Ie(Rf),jf=Y({},dr,{relatedTarget:0}),Wl=Ie(jf),Of=Y({},kn,{animationName:0,elapsedTime:0,pseudoElement:0}),Df=Ie(Of),$f=Y({},kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ff=Ie($f),Uf=Y({},kn,{data:0}),gu=Ie(Uf),Af={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bf={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"},Vf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vf[e])?!!t[e]:!1}function Ei(){return Hf}var Wf=Y({},dr,{key:function(e){if(e.key){var t=Af[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ei,charCode:function(e){return e.type==="keypress"?Fr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qf=Ie(Wf),Kf=Y({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yu=Ie(Kf),Yf=Y({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ei}),Xf=Ie(Yf),Zf=Y({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gf=Ie(Zf),Jf=Y({},Sl,{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}),qf=Ie(Jf),bf=[9,13,27,32],Ci=lt&&"CompositionEvent"in window,$n=null;lt&&"documentMode"in document&&($n=document.documentMode);var ed=lt&&"TextEvent"in window&&!$n,la=lt&&(!Ci||$n&&8<$n&&11>=$n),wu=" ",Su=!1;function oa(e,t){switch(e){case"keyup":return bf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ia(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gt=!1;function td(e,t){switch(e){case"compositionend":return ia(t);case"keypress":return t.which!==32?null:(Su=!0,wu);case"textInput":return e=t.data,e===wu&&Su?null:e;default:return null}}function nd(e,t){if(Gt)return e==="compositionend"||!Ci&&oa(e,t)?(e=ra(),$r=Si=vt=null,Gt=!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 la&&t.locale!=="ko"?null:t.data;default:return null}}var rd={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 ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rd[e.type]:t==="textarea"}function ua(e,t,n,r){Fs(r),t=el(t,"onChange"),0<t.length&&(n=new ki("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Jn=null;function ld(e){ya(e,0)}function kl(e){var t=bt(e);if(Is(t))return e}function od(e,t){if(e==="change")return t}var sa=!1;if(lt){var Ql;if(lt){var Kl="oninput"in document;if(!Kl){var Eu=document.createElement("div");Eu.setAttribute("oninput","return;"),Kl=typeof Eu.oninput=="function"}Ql=Kl}else Ql=!1;sa=Ql&&(!document.documentMode||9<document.documentMode)}function Cu(){Fn&&(Fn.detachEvent("onpropertychange",aa),Jn=Fn=null)}function aa(e){if(e.propertyName==="value"&&kl(Jn)){var t=[];ua(t,Jn,e,hi(e)),Vs(ld,t)}}function id(e,t,n){e==="focusin"?(Cu(),Fn=t,Jn=n,Fn.attachEvent("onpropertychange",aa)):e==="focusout"&&Cu()}function ud(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kl(Jn)}function sd(e,t){if(e==="click")return kl(t)}function ad(e,t){if(e==="input"||e==="change")return kl(t)}function cd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ke=typeof Object.is=="function"?Object.is:cd;function qn(e,t){if(Ke(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(!co.call(t,l)||!Ke(e[l],t[l]))return!1}return!0}function xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _u(e,t){var n=xu(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=xu(n)}}function ca(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ca(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fa(){for(var e=window,t=Yr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function xi(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 fd(e){var t=fa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ca(n.ownerDocument.documentElement,n)){if(r!==null&&xi(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=_u(n,o);var i=_u(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 dd=lt&&"documentMode"in document&&11>=document.documentMode,Jt=null,zo=null,Un=null,Io=!1;function Nu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||Jt==null||Jt!==Yr(r)||(r=Jt,"selectionStart"in r&&xi(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}),Un&&qn(Un,r)||(Un=r,r=el(zo,"onSelect"),0<r.length&&(t=new ki("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Jt)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qt={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionend:Cr("Transition","TransitionEnd")},Yl={},da={};lt&&(da=document.createElement("div").style,"AnimationEvent"in window||(delete qt.animationend.animation,delete qt.animationiteration.animation,delete qt.animationstart.animation),"TransitionEvent"in window||delete qt.transitionend.transition);function El(e){if(Yl[e])return Yl[e];if(!qt[e])return e;var t=qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in da)return Yl[e]=t[n];return e}var pa=El("animationend"),ma=El("animationiteration"),ha=El("animationstart"),va=El("transitionend"),ga=new Map,Tu="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 Lt(e,t){ga.set(e,t),Qt(t,[e])}for(var Xl=0;Xl<Tu.length;Xl++){var Zl=Tu[Xl],pd=Zl.toLowerCase(),md=Zl[0].toUpperCase()+Zl.slice(1);Lt(pd,"on"+md)}Lt(pa,"onAnimationEnd");Lt(ma,"onAnimationIteration");Lt(ha,"onAnimationStart");Lt("dblclick","onDoubleClick");Lt("focusin","onFocus");Lt("focusout","onBlur");Lt(va,"onTransitionEnd");pn("onMouseEnter",["mouseout","mouseover"]);pn("onMouseLeave",["mouseout","mouseover"]);pn("onPointerEnter",["pointerout","pointerover"]);pn("onPointerLeave",["pointerout","pointerover"]);Qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jn="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(" "),hd=new Set("cancel close invalid load scroll toggle".split(" ").concat(jn));function Pu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,pf(r,t,void 0,e),e.currentTarget=null}function ya(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 i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,d=u.currentTarget;if(u=u.listener,s!==o&&l.isPropagationStopped())break e;Pu(l,u,d),o=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,d=u.currentTarget,u=u.listener,s!==o&&l.isPropagationStopped())break e;Pu(l,u,d),o=s}}}if(Zr)throw e=No,Zr=!1,No=null,e}function V(e,t){var n=t[Do];n===void 0&&(n=t[Do]=new Set);var r=e+"__bubble";n.has(r)||(wa(t,e,2,!1),n.add(r))}function Gl(e,t,n){var r=0;t&&(r|=4),wa(n,e,r,t)}var xr="_reactListening"+Math.random().toString(36).slice(2);function bn(e){if(!e[xr]){e[xr]=!0,Ns.forEach(function(n){n!=="selectionchange"&&(hd.has(n)||Gl(n,!1,e),Gl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xr]||(t[xr]=!0,Gl("selectionchange",!1,t))}}function wa(e,t,n,r){switch(na(t)){case 1:var l=Lf;break;case 4:l=zf;break;default:l=wi}n=l.bind(null,t,n,e),l=void 0,!_o||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 Jl(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;i=i.return}for(;u!==null;){if(i=jt(u),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}u=u.parentNode}}r=r.return}Vs(function(){var d=o,m=hi(n),h=[];e:{var p=ga.get(e);if(p!==void 0){var w=ki,v=e;switch(e){case"keypress":if(Fr(n)===0)break e;case"keydown":case"keyup":w=Qf;break;case"focusin":v="focus",w=Wl;break;case"focusout":v="blur",w=Wl;break;case"beforeblur":case"afterblur":w=Wl;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":w=vu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Mf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Xf;break;case pa:case ma:case ha:w=Df;break;case va:w=Gf;break;case"scroll":w=If;break;case"wheel":w=qf;break;case"copy":case"cut":case"paste":w=Ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=yu}var y=(t&4)!==0,_=!y&&e==="scroll",f=y?p!==null?p+"Capture":null:p;y=[];for(var a=d,c;a!==null;){c=a;var g=c.stateNode;if(c.tag===5&&g!==null&&(c=g,f!==null&&(g=Yn(a,f),g!=null&&y.push(er(a,g,c)))),_)break;a=a.return}0<y.length&&(p=new w(p,v,null,n,m),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&n!==Co&&(v=n.relatedTarget||n.fromElement)&&(jt(v)||v[ot]))break e;if((w||p)&&(p=m.window===m?m:(p=m.ownerDocument)?p.defaultView||p.parentWindow:window,w?(v=n.relatedTarget||n.toElement,w=d,v=v?jt(v):null,v!==null&&(_=Kt(v),v!==_||v.tag!==5&&v.tag!==6)&&(v=null)):(w=null,v=d),w!==v)){if(y=vu,g="onMouseLeave",f="onMouseEnter",a="mouse",(e==="pointerout"||e==="pointerover")&&(y=yu,g="onPointerLeave",f="onPointerEnter",a="pointer"),_=w==null?p:bt(w),c=v==null?p:bt(v),p=new y(g,a+"leave",w,n,m),p.target=_,p.relatedTarget=c,g=null,jt(m)===d&&(y=new y(f,a+"enter",v,n,m),y.target=c,y.relatedTarget=_,g=y),_=g,w&&v)t:{for(y=w,f=v,a=0,c=y;c;c=Yt(c))a++;for(c=0,g=f;g;g=Yt(g))c++;for(;0<a-c;)y=Yt(y),a--;for(;0<c-a;)f=Yt(f),c--;for(;a--;){if(y===f||f!==null&&y===f.alternate)break t;y=Yt(y),f=Yt(f)}y=null}else y=null;w!==null&&Lu(h,p,w,y,!1),v!==null&&_!==null&&Lu(h,_,v,y,!0)}}e:{if(p=d?bt(d):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var E=od;else if(ku(p))if(sa)E=ad;else{E=ud;var N=id}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=sd);if(E&&(E=E(e,d))){ua(h,E,n,m);break e}N&&N(e,p,d),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&yo(p,"number",p.value)}switch(N=d?bt(d):window,e){case"focusin":(ku(N)||N.contentEditable==="true")&&(Jt=N,zo=d,Un=null);break;case"focusout":Un=zo=Jt=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,Nu(h,n,m);break;case"selectionchange":if(dd)break;case"keydown":case"keyup":Nu(h,n,m)}var C;if(Ci)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Gt?oa(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(la&&n.locale!=="ko"&&(Gt||k!=="onCompositionStart"?k==="onCompositionEnd"&&Gt&&(C=ra()):(vt=m,Si="value"in vt?vt.value:vt.textContent,Gt=!0)),N=el(d,k),0<N.length&&(k=new gu(k,e,null,n,m),h.push({event:k,listeners:N}),C?k.data=C:(C=ia(n),C!==null&&(k.data=C)))),(C=ed?td(e,n):nd(e,n))&&(d=el(d,"onBeforeInput"),0<d.length&&(m=new gu("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:d}),m.data=C))}ya(h,t)})}function er(e,t,n){return{instance:e,listener:t,currentTarget:n}}function el(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Yn(e,n),o!=null&&r.unshift(er(e,o,l)),o=Yn(e,t),o!=null&&r.push(er(e,o,l))),e=e.return}return r}function Yt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lu(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var u=n,s=u.alternate,d=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&d!==null&&(u=d,l?(s=Yn(n,o),s!=null&&i.unshift(er(n,s,u))):l||(s=Yn(n,o),s!=null&&i.push(er(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var vd=/\r\n?/g,gd=/\u0000|\uFFFD/g;function zu(e){return(typeof e=="string"?e:""+e).replace(vd,`
`).replace(gd,"")}function _r(e,t,n){if(t=zu(t),zu(e)!==t&&n)throw Error(S(425))}function tl(){}var Ro=null,Mo=null;function jo(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 Oo=typeof setTimeout=="function"?setTimeout:void 0,yd=typeof clearTimeout=="function"?clearTimeout:void 0,Iu=typeof Promise=="function"?Promise:void 0,wd=typeof queueMicrotask=="function"?queueMicrotask:typeof Iu<"u"?function(e){return Iu.resolve(null).then(e).catch(Sd)}:Oo;function Sd(e){setTimeout(function(){throw e})}function ql(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),Gn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Gn(t)}function Et(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 Ru(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 En=Math.random().toString(36).slice(2),Ge="__reactFiber$"+En,tr="__reactProps$"+En,ot="__reactContainer$"+En,Do="__reactEvents$"+En,kd="__reactListeners$"+En,Ed="__reactHandles$"+En;function jt(e){var t=e[Ge];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ru(e);e!==null;){if(n=e[Ge])return n;e=Ru(e)}return t}e=n,n=e.parentNode}return null}function pr(e){return e=e[Ge]||e[ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function Cl(e){return e[tr]||null}var $o=[],en=-1;function zt(e){return{current:e}}function H(e){0>en||(e.current=$o[en],$o[en]=null,en--)}function B(e,t){en++,$o[en]=e.current,e.current=t}var Pt={},ce=zt(Pt),ke=zt(!1),At=Pt;function mn(e,t){var n=e.type.contextTypes;if(!n)return Pt;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 Ee(e){return e=e.childContextTypes,e!=null}function nl(){H(ke),H(ce)}function Mu(e,t,n){if(ce.current!==Pt)throw Error(S(168));B(ce,t),B(ke,n)}function Sa(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(S(108,of(e)||"Unknown",l));return Y({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,At=ce.current,B(ce,e),B(ke,ke.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Sa(e,t,At),r.__reactInternalMemoizedMergedChildContext=e,H(ke),H(ce),B(ce,e)):H(ke),B(ke,n)}var et=null,xl=!1,bl=!1;function ka(e){et===null?et=[e]:et.push(e)}function Cd(e){xl=!0,ka(e)}function It(){if(!bl&&et!==null){bl=!0;var e=0,t=F;try{var n=et;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}et=null,xl=!1}catch(l){throw et!==null&&(et=et.slice(e+1)),Ks(vi,It),l}finally{F=t,bl=!1}}return null}var tn=[],nn=0,ll=null,ol=0,Me=[],je=0,Bt=null,tt=1,nt="";function Rt(e,t){tn[nn++]=ol,tn[nn++]=ll,ll=e,ol=t}function Ea(e,t,n){Me[je++]=tt,Me[je++]=nt,Me[je++]=Bt,Bt=e;var r=tt;e=nt;var l=32-We(r)-1;r&=~(1<<l),n+=1;var o=32-We(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,tt=1<<32-We(t)+l|n<<l|r,nt=o+e}else tt=1<<o|n<<l|r,nt=e}function _i(e){e.return!==null&&(Rt(e,1),Ea(e,1,0))}function Ni(e){for(;e===ll;)ll=tn[--nn],tn[nn]=null,ol=tn[--nn],tn[nn]=null;for(;e===Bt;)Bt=Me[--je],Me[je]=null,nt=Me[--je],Me[je]=null,tt=Me[--je],Me[je]=null}var Pe=null,Ne=null,W=!1,He=null;function Ca(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 Ou(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,Pe=e,Ne=Et(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Pe=e,Ne=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Bt!==null?{id:tt,overflow:nt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Oe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Pe=e,Ne=null,!0):!1;default:return!1}}function Fo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Uo(e){if(W){var t=Ne;if(t){var n=t;if(!Ou(e,t)){if(Fo(e))throw Error(S(418));t=Et(n.nextSibling);var r=Pe;t&&Ou(e,t)?Ca(r,n):(e.flags=e.flags&-4097|2,W=!1,Pe=e)}}else{if(Fo(e))throw Error(S(418));e.flags=e.flags&-4097|2,W=!1,Pe=e}}}function Du(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Pe=e}function Nr(e){if(e!==Pe)return!1;if(!W)return Du(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jo(e.type,e.memoizedProps)),t&&(t=Ne)){if(Fo(e))throw xa(),Error(S(418));for(;t;)Ca(e,t),t=Et(t.nextSibling)}if(Du(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ne=Et(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ne=null}}else Ne=Pe?Et(e.stateNode.nextSibling):null;return!0}function xa(){for(var e=Ne;e;)e=Et(e.nextSibling)}function hn(){Ne=Pe=null,W=!1}function Ti(e){He===null?He=[e]:He.push(e)}var xd=st.ReactCurrentBatchConfig;function Be(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var il=zt(null),ul=null,rn=null,Pi=null;function Li(){Pi=rn=ul=null}function zi(e){var t=il.current;H(il),e._currentValue=t}function Ao(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 fn(e,t){ul=e,Pi=rn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Se=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(Pi!==e)if(e={context:e,memoizedValue:t,next:null},rn===null){if(ul===null)throw Error(S(308));rn=e,ul.dependencies={lanes:0,firstContext:e}}else rn=rn.next=e;return t}var Ot=null;function Ii(e){Ot===null?Ot=[e]:Ot.push(e)}function _a(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ii(t)):(n.next=l.next,l.next=n),t.interleaved=n,it(e,r)}function it(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 pt=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(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 rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,it(e,n)}return l=r.interleaved,l===null?(t.next=t,Ii(r)):(t.next=l.next,l.next=t),r.interleaved=t,it(e,n)}function Ur(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,gi(e,n)}}function $u(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 i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,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 sl(e,t,n,r){var l=e.updateQueue;pt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,d=s.next;s.next=null,i===null?o=d:i.next=d,i=s;var m=e.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==i&&(u===null?m.firstBaseUpdate=d:u.next=d,m.lastBaseUpdate=s))}if(o!==null){var h=l.baseState;i=0,m=d=s=null,u=o;do{var p=u.lane,w=u.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(p=t,w=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(w,h,p);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(w,h,p):v,p==null)break e;h=Y({},h,p);break e;case 2:pt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else w={eventTime:w,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(d=m=w,s=h):m=m.next=w,i|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(s=h),l.baseState=s,l.firstBaseUpdate=d,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Ht|=i,e.lanes=i,e.memoizedState=h}}function Fu(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(S(191,l));l.call(r)}}}var Ta=new _s.Component().refs;function Bo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _l={isMounted:function(e){return(e=e._reactInternals)?Kt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),l=_t(e),o=rt(r,l);o.payload=t,n!=null&&(o.callback=n),t=Ct(e,o,l),t!==null&&(Qe(t,e,l,r),Ur(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),l=_t(e),o=rt(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ct(e,o,l),t!==null&&(Qe(t,e,l,r),Ur(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=_t(e),l=rt(n,r);l.tag=2,t!=null&&(l.callback=t),t=Ct(e,l,r),t!==null&&(Qe(t,e,r,n),Ur(t,e,r))}};function Uu(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!qn(n,r)||!qn(l,o):!0}function Pa(e,t,n){var r=!1,l=Pt,o=t.contextType;return typeof o=="object"&&o!==null?o=$e(o):(l=Ee(t)?At:ce.current,r=t.contextTypes,o=(r=r!=null)?mn(e,l):Pt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_l,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Au(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&&_l.enqueueReplaceState(t,t.state,null)}function Vo(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=Ta,Ri(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=$e(o):(o=Ee(t)?At:ce.current,l.context=mn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Bo(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&&_l.enqueueReplaceState(l,l.state,null),sl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Pn(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(S(309));var r=n.stateNode}if(!r)throw Error(S(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(i){var u=l.refs;u===Ta&&(u=l.refs={}),i===null?delete u[o]:u[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Tr(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bu(e){var t=e._init;return t(e._payload)}function La(e){function t(f,a){if(e){var c=f.deletions;c===null?(f.deletions=[a],f.flags|=16):c.push(a)}}function n(f,a){if(!e)return null;for(;a!==null;)t(f,a),a=a.sibling;return null}function r(f,a){for(f=new Map;a!==null;)a.key!==null?f.set(a.key,a):f.set(a.index,a),a=a.sibling;return f}function l(f,a){return f=Nt(f,a),f.index=0,f.sibling=null,f}function o(f,a,c){return f.index=c,e?(c=f.alternate,c!==null?(c=c.index,c<a?(f.flags|=2,a):c):(f.flags|=2,a)):(f.flags|=1048576,a)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,a,c,g){return a===null||a.tag!==6?(a=io(c,f.mode,g),a.return=f,a):(a=l(a,c),a.return=f,a)}function s(f,a,c,g){var E=c.type;return E===Zt?m(f,a,c.props.children,g,c.key):a!==null&&(a.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===dt&&Bu(E)===a.type)?(g=l(a,c.props),g.ref=Pn(f,a,c),g.return=f,g):(g=Qr(c.type,c.key,c.props,null,f.mode,g),g.ref=Pn(f,a,c),g.return=f,g)}function d(f,a,c,g){return a===null||a.tag!==4||a.stateNode.containerInfo!==c.containerInfo||a.stateNode.implementation!==c.implementation?(a=uo(c,f.mode,g),a.return=f,a):(a=l(a,c.children||[]),a.return=f,a)}function m(f,a,c,g,E){return a===null||a.tag!==7?(a=Ft(c,f.mode,g,E),a.return=f,a):(a=l(a,c),a.return=f,a)}function h(f,a,c){if(typeof a=="string"&&a!==""||typeof a=="number")return a=io(""+a,f.mode,c),a.return=f,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case vr:return c=Qr(a.type,a.key,a.props,null,f.mode,c),c.ref=Pn(f,null,a),c.return=f,c;case Xt:return a=uo(a,f.mode,c),a.return=f,a;case dt:var g=a._init;return h(f,g(a._payload),c)}if(Rn(a)||Cn(a))return a=Ft(a,f.mode,c,null),a.return=f,a;Tr(f,a)}return null}function p(f,a,c,g){var E=a!==null?a.key:null;if(typeof c=="string"&&c!==""||typeof c=="number")return E!==null?null:u(f,a,""+c,g);if(typeof c=="object"&&c!==null){switch(c.$$typeof){case vr:return c.key===E?s(f,a,c,g):null;case Xt:return c.key===E?d(f,a,c,g):null;case dt:return E=c._init,p(f,a,E(c._payload),g)}if(Rn(c)||Cn(c))return E!==null?null:m(f,a,c,g,null);Tr(f,c)}return null}function w(f,a,c,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(c)||null,u(a,f,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case vr:return f=f.get(g.key===null?c:g.key)||null,s(a,f,g,E);case Xt:return f=f.get(g.key===null?c:g.key)||null,d(a,f,g,E);case dt:var N=g._init;return w(f,a,c,N(g._payload),E)}if(Rn(g)||Cn(g))return f=f.get(c)||null,m(a,f,g,E,null);Tr(a,g)}return null}function v(f,a,c,g){for(var E=null,N=null,C=a,k=a=0,I=null;C!==null&&k<c.length;k++){C.index>k?(I=C,C=null):I=C.sibling;var L=p(f,C,c[k],g);if(L===null){C===null&&(C=I);break}e&&C&&L.alternate===null&&t(f,C),a=o(L,a,k),N===null?E=L:N.sibling=L,N=L,C=I}if(k===c.length)return n(f,C),W&&Rt(f,k),E;if(C===null){for(;k<c.length;k++)C=h(f,c[k],g),C!==null&&(a=o(C,a,k),N===null?E=C:N.sibling=C,N=C);return W&&Rt(f,k),E}for(C=r(f,C);k<c.length;k++)I=w(C,f,k,c[k],g),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?k:I.key),a=o(I,a,k),N===null?E=I:N.sibling=I,N=I);return e&&C.forEach(function(Z){return t(f,Z)}),W&&Rt(f,k),E}function y(f,a,c,g){var E=Cn(c);if(typeof E!="function")throw Error(S(150));if(c=E.call(c),c==null)throw Error(S(151));for(var N=E=null,C=a,k=a=0,I=null,L=c.next();C!==null&&!L.done;k++,L=c.next()){C.index>k?(I=C,C=null):I=C.sibling;var Z=p(f,C,L.value,g);if(Z===null){C===null&&(C=I);break}e&&C&&Z.alternate===null&&t(f,C),a=o(Z,a,k),N===null?E=Z:N.sibling=Z,N=Z,C=I}if(L.done)return n(f,C),W&&Rt(f,k),E;if(C===null){for(;!L.done;k++,L=c.next())L=h(f,L.value,g),L!==null&&(a=o(L,a,k),N===null?E=L:N.sibling=L,N=L);return W&&Rt(f,k),E}for(C=r(f,C);!L.done;k++,L=c.next())L=w(C,f,k,L.value,g),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?k:L.key),a=o(L,a,k),N===null?E=L:N.sibling=L,N=L);return e&&C.forEach(function(ge){return t(f,ge)}),W&&Rt(f,k),E}function _(f,a,c,g){if(typeof c=="object"&&c!==null&&c.type===Zt&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case vr:e:{for(var E=c.key,N=a;N!==null;){if(N.key===E){if(E=c.type,E===Zt){if(N.tag===7){n(f,N.sibling),a=l(N,c.props.children),a.return=f,f=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===dt&&Bu(E)===N.type){n(f,N.sibling),a=l(N,c.props),a.ref=Pn(f,N,c),a.return=f,f=a;break e}n(f,N);break}else t(f,N);N=N.sibling}c.type===Zt?(a=Ft(c.props.children,f.mode,g,c.key),a.return=f,f=a):(g=Qr(c.type,c.key,c.props,null,f.mode,g),g.ref=Pn(f,a,c),g.return=f,f=g)}return i(f);case Xt:e:{for(N=c.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===c.containerInfo&&a.stateNode.implementation===c.implementation){n(f,a.sibling),a=l(a,c.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=uo(c,f.mode,g),a.return=f,f=a}return i(f);case dt:return N=c._init,_(f,a,N(c._payload),g)}if(Rn(c))return v(f,a,c,g);if(Cn(c))return y(f,a,c,g);Tr(f,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,c),a.return=f,f=a):(n(f,a),a=io(c,f.mode,g),a.return=f,f=a),i(f)):n(f,a)}return _}var vn=La(!0),za=La(!1),mr={},qe=zt(mr),nr=zt(mr),rr=zt(mr);function Dt(e){if(e===mr)throw Error(S(174));return e}function Mi(e,t){switch(B(rr,t),B(nr,e),B(qe,mr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:So(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=So(t,e)}H(qe),B(qe,t)}function gn(){H(qe),H(nr),H(rr)}function Ia(e){Dt(rr.current);var t=Dt(qe.current),n=So(t,e.type);t!==n&&(B(nr,e),B(qe,n))}function ji(e){nr.current===e&&(H(qe),H(nr))}var Q=zt(0);function al(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 eo=[];function Oi(){for(var e=0;e<eo.length;e++)eo[e]._workInProgressVersionPrimary=null;eo.length=0}var Ar=st.ReactCurrentDispatcher,to=st.ReactCurrentBatchConfig,Vt=0,K=null,b=null,te=null,cl=!1,An=!1,lr=0,_d=0;function ue(){throw Error(S(321))}function Di(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ke(e[n],t[n]))return!1;return!0}function $i(e,t,n,r,l,o){if(Vt=o,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ar.current=e===null||e.memoizedState===null?Ld:zd,e=n(r,l),An){o=0;do{if(An=!1,lr=0,25<=o)throw Error(S(301));o+=1,te=b=null,t.updateQueue=null,Ar.current=Id,e=n(r,l)}while(An)}if(Ar.current=fl,t=b!==null&&b.next!==null,Vt=0,te=b=K=null,cl=!1,t)throw Error(S(300));return e}function Fi(){var e=lr!==0;return lr=0,e}function Ze(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?K.memoizedState=te=e:te=te.next=e,te}function Fe(){if(b===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=b.next;var t=te===null?K.memoizedState:te.next;if(t!==null)te=t,b=e;else{if(e===null)throw Error(S(310));b=e,e={memoizedState:b.memoizedState,baseState:b.baseState,baseQueue:b.baseQueue,queue:b.queue,next:null},te===null?K.memoizedState=te=e:te=te.next=e}return te}function or(e,t){return typeof t=="function"?t(e):t}function no(e){var t=Fe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=b,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,s=null,d=o;do{var m=d.lane;if((Vt&m)===m)s!==null&&(s=s.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};s===null?(u=s=h,i=r):s=s.next=h,K.lanes|=m,Ht|=m}d=d.next}while(d!==null&&d!==o);s===null?i=r:s.next=u,Ke(r,t.memoizedState)||(Se=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,K.lanes|=o,Ht|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ro(e){var t=Fe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Ke(o,t.memoizedState)||(Se=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ra(){}function Ma(e,t){var n=K,r=Fe(),l=t(),o=!Ke(r.memoizedState,l);if(o&&(r.memoizedState=l,Se=!0),r=r.queue,Ui(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,ir(9,Oa.bind(null,n,r,l,t),void 0,null),ne===null)throw Error(S(349));Vt&30||ja(n,t,l)}return l}function ja(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,$a(t)&&Fa(e)}function Da(e,t,n){return n(function(){$a(t)&&Fa(e)})}function $a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ke(e,n)}catch{return!0}}function Fa(e){var t=it(e,1);t!==null&&Qe(t,e,1,-1)}function Vu(e){var t=Ze();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:e},t.queue=e,e=e.dispatch=Pd.bind(null,K,e),[t.memoizedState,e]}function ir(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.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 Ua(){return Fe().memoizedState}function Br(e,t,n,r){var l=Ze();K.flags|=e,l.memoizedState=ir(1|t,n,void 0,r===void 0?null:r)}function Nl(e,t,n,r){var l=Fe();r=r===void 0?null:r;var o=void 0;if(b!==null){var i=b.memoizedState;if(o=i.destroy,r!==null&&Di(r,i.deps)){l.memoizedState=ir(t,n,o,r);return}}K.flags|=e,l.memoizedState=ir(1|t,n,o,r)}function Hu(e,t){return Br(8390656,8,e,t)}function Ui(e,t){return Nl(2048,8,e,t)}function Aa(e,t){return Nl(4,2,e,t)}function Ba(e,t){return Nl(4,4,e,t)}function Va(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 Ha(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4,4,Va.bind(null,t,e),n)}function Ai(){}function Wa(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Di(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Di(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ka(e,t,n){return Vt&21?(Ke(n,t)||(n=Zs(),K.lanes|=n,Ht|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Se=!0),e.memoizedState=n)}function Nd(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=to.transition;to.transition={};try{e(!1),t()}finally{F=n,to.transition=r}}function Ya(){return Fe().memoizedState}function Td(e,t,n){var r=_t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Za(t,n);else if(n=_a(e,t,n,r),n!==null){var l=me();Qe(n,e,r,l),Ga(n,t,r)}}function Pd(e,t,n){var r=_t(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Za(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Ke(u,i)){var s=t.interleaved;s===null?(l.next=l,Ii(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=_a(e,t,l,r),n!==null&&(l=me(),Qe(n,e,r,l),Ga(n,t,r))}}function Xa(e){var t=e.alternate;return e===K||t!==null&&t===K}function Za(e,t){An=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ga(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gi(e,n)}}var fl={readContext:$e,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},Ld={readContext:$e,useCallback:function(e,t){return Ze().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Br(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Br(4194308,4,e,t)},useInsertionEffect:function(e,t){return Br(4,2,e,t)},useMemo:function(e,t){var n=Ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ze();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=Td.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ze();return e={current:e},t.memoizedState=e},useState:Vu,useDebugValue:Ai,useDeferredValue:function(e){return Ze().memoizedState=e},useTransition:function(){var e=Vu(!1),t=e[0];return e=Nd.bind(null,e[1]),Ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=Ze();if(W){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ne===null)throw Error(S(349));Vt&30||ja(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Hu(Da.bind(null,r,o,e),[e]),r.flags|=2048,ir(9,Oa.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ze(),t=ne.identifierPrefix;if(W){var n=nt,r=tt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=_d++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zd={readContext:$e,useCallback:Wa,useContext:$e,useEffect:Ui,useImperativeHandle:Ha,useInsertionEffect:Aa,useLayoutEffect:Ba,useMemo:Qa,useReducer:no,useRef:Ua,useState:function(){return no(or)},useDebugValue:Ai,useDeferredValue:function(e){var t=Fe();return Ka(t,b.memoizedState,e)},useTransition:function(){var e=no(or)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Ra,useSyncExternalStore:Ma,useId:Ya,unstable_isNewReconciler:!1},Id={readContext:$e,useCallback:Wa,useContext:$e,useEffect:Ui,useImperativeHandle:Ha,useInsertionEffect:Aa,useLayoutEffect:Ba,useMemo:Qa,useReducer:ro,useRef:Ua,useState:function(){return ro(or)},useDebugValue:Ai,useDeferredValue:function(e){var t=Fe();return b===null?t.memoizedState=e:Ka(t,b.memoizedState,e)},useTransition:function(){var e=ro(or)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Ra,useSyncExternalStore:Ma,useId:Ya,unstable_isNewReconciler:!1};function yn(e,t){try{var n="",r=t;do n+=lf(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 lo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ho(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rd=typeof WeakMap=="function"?WeakMap:Map;function Ja(e,t,n){n=rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,bo=r),Ho(e,t)},n}function qa(e,t,n){n=rt(-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(){Ho(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ho(e,t),typeof r!="function"&&(xt===null?xt=new Set([this]):xt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rd;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=Kd.bind(null,e,t,n),t.then(e,e))}function Qu(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 Ku(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=rt(-1,1),t.tag=2,Ct(n,t,1))),n.lanes|=1),e)}var Md=st.ReactCurrentOwner,Se=!1;function de(e,t,n,r){t.child=e===null?za(t,null,n,r):vn(t,e.child,n,r)}function Yu(e,t,n,r,l){n=n.render;var o=t.ref;return fn(t,l),r=$i(e,t,n,r,o,l),n=Fi(),e!==null&&!Se?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,ut(e,t,l)):(W&&n&&_i(t),t.flags|=1,de(e,t,r,l),t.child)}function Xu(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Xi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ba(e,t,o,r,l)):(e=Qr(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 i=o.memoizedProps;if(n=n.compare,n=n!==null?n:qn,n(i,r)&&e.ref===t.ref)return ut(e,t,l)}return t.flags|=1,e=Nt(o,r),e.ref=t.ref,e.return=t,t.child=e}function ba(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(qn(o,r)&&e.ref===t.ref)if(Se=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(Se=!0);else return t.lanes=e.lanes,ut(e,t,l)}return Wo(e,t,n,r,l)}function ec(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(on,_e),_e|=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(on,_e),_e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(on,_e),_e|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(on,_e),_e|=r;return de(e,t,l,n),t.child}function tc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wo(e,t,n,r,l){var o=Ee(n)?At:ce.current;return o=mn(t,o),fn(t,l),n=$i(e,t,n,r,o,l),r=Fi(),e!==null&&!Se?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,ut(e,t,l)):(W&&r&&_i(t),t.flags|=1,de(e,t,n,l),t.child)}function Zu(e,t,n,r,l){if(Ee(n)){var o=!0;rl(t)}else o=!1;if(fn(t,l),t.stateNode===null)Vr(e,t),Pa(t,n,r),Vo(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=$e(d):(d=Ee(n)?At:ce.current,d=mn(t,d));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==d)&&Au(t,i,r,d),pt=!1;var p=t.memoizedState;i.state=p,sl(t,r,i,l),s=t.memoizedState,u!==r||p!==s||ke.current||pt?(typeof m=="function"&&(Bo(t,n,m,r),s=t.memoizedState),(u=pt||Uu(t,n,u,r,p,s,d))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=d,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Na(e,t),u=t.memoizedProps,d=t.type===t.elementType?u:Be(t.type,u),i.props=d,h=t.pendingProps,p=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=$e(s):(s=Ee(n)?At:ce.current,s=mn(t,s));var w=n.getDerivedStateFromProps;(m=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||p!==s)&&Au(t,i,r,s),pt=!1,p=t.memoizedState,i.state=p,sl(t,r,i,l);var v=t.memoizedState;u!==h||p!==v||ke.current||pt?(typeof w=="function"&&(Bo(t,n,w,r),v=t.memoizedState),(d=pt||Uu(t,n,d,r,p,v,s)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=s,r=d):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Qo(e,t,n,r,o,l)}function Qo(e,t,n,r,l,o){tc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&ju(t,n,!1),ut(e,t,o);r=t.stateNode,Md.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=vn(t,e.child,null,o),t.child=vn(t,null,u,o)):de(e,t,u,o),t.memoizedState=r.state,l&&ju(t,n,!0),t.child}function nc(e){var t=e.stateNode;t.pendingContext?Mu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mu(e,t.context,!1),Mi(e,t.containerInfo)}function Gu(e,t,n,r,l){return hn(),Ti(l),t.flags|=256,de(e,t,n,r),t.child}var Ko={dehydrated:null,treeContext:null,retryLane:0};function Yo(e){return{baseLanes:e,cachePool:null,transitions:null}}function rc(e,t,n){var r=t.pendingProps,l=Q.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(Q,l&1),e===null)return Uo(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Ll(i,r,0,null),e=Ft(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Yo(n),t.memoizedState=Ko,e):Bi(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return jd(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Nt(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=Nt(u,o):(o=Ft(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Yo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Ko,r}return o=e.child,e=o.sibling,r=Nt(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 Bi(e,t){return t=Ll({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pr(e,t,n,r){return r!==null&&Ti(r),vn(t,e.child,null,n),e=Bi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jd(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=lo(Error(S(422))),Pr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Ll({mode:"visible",children:r.children},l,0,null),o=Ft(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&vn(t,e.child,null,i),t.child.memoizedState=Yo(i),t.memoizedState=Ko,o);if(!(t.mode&1))return Pr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(S(419)),r=lo(o,r,void 0),Pr(e,t,i,r)}if(u=(i&e.childLanes)!==0,Se||u){if(r=ne,r!==null){switch(i&-i){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|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,it(e,l),Qe(r,e,l,-1))}return Yi(),r=lo(Error(S(421))),Pr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Yd.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Ne=Et(l.nextSibling),Pe=t,W=!0,He=null,e!==null&&(Me[je++]=tt,Me[je++]=nt,Me[je++]=Bt,tt=e.id,nt=e.overflow,Bt=t),t=Bi(t,r.children),t.flags|=4096,t)}function Ju(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ao(e.return,t,n)}function oo(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 lc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=Q.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&&Ju(e,n,t);else if(e.tag===19)Ju(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(Q,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&&al(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),oo(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&&al(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}oo(t,!0,n,null,o);break;case"together":oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ht|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Od(e,t,n){switch(t.tag){case 3:nc(t),hn();break;case 5:Ia(t);break;case 1:Ee(t.type)&&rl(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(il,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(Q,Q.current&1),t.flags|=128,null):n&t.child.childLanes?rc(e,t,n):(B(Q,Q.current&1),e=ut(e,t,n),e!==null?e.sibling:null);B(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,ec(e,t,n)}return ut(e,t,n)}var oc,Xo,ic,uc;oc=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}};Xo=function(){};ic=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Dt(qe.current);var o=null;switch(n){case"input":l=vo(e,l),r=vo(e,r),o=[];break;case"select":l=Y({},l,{value:void 0}),r=Y({},r,{value:void 0}),o=[];break;case"textarea":l=wo(e,l),r=wo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tl)}ko(n,r);var i;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var u=l[d];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Qn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var s=r[d];if(u=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&s!==u&&(s!=null||u!=null))if(d==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(d,n)),n=s;else d==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(d,s)):d==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(d,""+s):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Qn.hasOwnProperty(d)?(s!=null&&d==="onScroll"&&V("scroll",e),o||u===s||(o=[])):(o=o||[]).push(d,s))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};uc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ln(e,t){if(!W)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 se(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 Dd(e,t,n){var r=t.pendingProps;switch(Ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return Ee(t.type)&&nl(),se(t),null;case 3:return r=t.stateNode,gn(),H(ke),H(ce),Oi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Nr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,He!==null&&(ni(He),He=null))),Xo(e,t),se(t),null;case 5:ji(t);var l=Dt(rr.current);if(n=t.type,e!==null&&t.stateNode!=null)ic(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return se(t),null}if(e=Dt(qe.current),Nr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ge]=t,r[tr]=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<jn.length;l++)V(jn[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":iu(r,o),V("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},V("invalid",r);break;case"textarea":su(r,o),V("invalid",r)}ko(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&_r(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&_r(r.textContent,u,e),l=["children",""+u]):Qn.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&V("scroll",r)}switch(n){case"input":gr(r),uu(r,o,!0);break;case"textarea":gr(r),au(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=tl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=js(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ge]=t,e[tr]=r,oc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Eo(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<jn.length;l++)V(jn[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":iu(e,r),l=vo(e,r),V("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Y({},r,{value:void 0}),V("invalid",e);break;case"textarea":su(e,r),l=wo(e,r),V("invalid",e);break;default:l=r}ko(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?$s(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Os(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Kn(e,s):typeof s=="number"&&Kn(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Qn.hasOwnProperty(o)?s!=null&&o==="onScroll"&&V("scroll",e):s!=null&&fi(e,o,s,i))}switch(n){case"input":gr(e),uu(e,r,!1);break;case"textarea":gr(e),au(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?un(e,!!r.multiple,o,!1):r.defaultValue!=null&&un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=tl)}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 se(t),null;case 6:if(e&&t.stateNode!=null)uc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Dt(rr.current),Dt(qe.current),Nr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ge]=t,(o=r.nodeValue!==n)&&(e=Pe,e!==null))switch(e.tag){case 3:_r(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_r(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ge]=t,t.stateNode=r}return se(t),null;case 13:if(H(Q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Ne!==null&&t.mode&1&&!(t.flags&128))xa(),hn(),t.flags|=98560,o=!1;else if(o=Nr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(S(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(S(317));o[Ge]=t}else hn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),o=!1}else He!==null&&(ni(He),He=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||Q.current&1?ee===0&&(ee=3):Yi())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return gn(),Xo(e,t),e===null&&bn(t.stateNode.containerInfo),se(t),null;case 10:return zi(t.type._context),se(t),null;case 17:return Ee(t.type)&&nl(),se(t),null;case 19:if(H(Q),o=t.memoizedState,o===null)return se(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Ln(o,!1);else{if(ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=al(e),i!==null){for(t.flags|=128,Ln(o,!1),r=i.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,i=o.alternate,i===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=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(Q,Q.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>wn&&(t.flags|=128,r=!0,Ln(o,!1),t.lanes=4194304)}else{if(!r)if(e=al(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ln(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!W)return se(t),null}else 2*G()-o.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,Ln(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=Q.current,B(Q,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Ki(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_e&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function $d(e,t){switch(Ni(t),t.tag){case 1:return Ee(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(),H(ke),H(ce),Oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ji(t),null;case 13:if(H(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Q),null;case 4:return gn(),null;case 10:return zi(t.type._context),null;case 22:case 23:return Ki(),null;case 24:return null;default:return null}}var Lr=!1,ae=!1,Fd=typeof WeakSet=="function"?WeakSet:Set,T=null;function ln(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 Zo(e,t,n){try{n()}catch(r){X(e,t,r)}}var qu=!1;function Ud(e,t){if(Ro=qr,e=fa(),xi(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 i=0,u=-1,s=-1,d=0,m=0,h=e,p=null;t:for(;;){for(var w;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(w=h.firstChild)!==null;)p=h,h=w;for(;;){if(h===e)break t;if(p===n&&++d===l&&(u=i),p===o&&++m===r&&(s=i),(w=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mo={focusedElem:e,selectionRange:n},qr=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,_=v.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Be(t.type,y),_);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(g){X(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return v=qu,qu=!1,v}function Bn(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&&Zo(t,n,o)}l=l.next}while(l!==r)}}function Tl(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 Go(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 sc(e){var t=e.alternate;t!==null&&(e.alternate=null,sc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[tr],delete t[Do],delete t[kd],delete t[Ed])),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 ac(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ac(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 Jo(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=tl));else if(r!==4&&(e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function qo(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(qo(e,t,n),e=e.sibling;e!==null;)qo(e,t,n),e=e.sibling}var le=null,Ve=!1;function ft(e,t,n){for(n=n.child;n!==null;)cc(e,t,n),n=n.sibling}function cc(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:ae||ln(n,t);case 6:var r=le,l=Ve;le=null,ft(e,t,n),le=r,Ve=l,le!==null&&(Ve?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ve?(e=le,n=n.stateNode,e.nodeType===8?ql(e.parentNode,n):e.nodeType===1&&ql(e,n),Gn(e)):ql(le,n.stateNode));break;case 4:r=le,l=Ve,le=n.stateNode.containerInfo,Ve=!0,ft(e,t,n),le=r,Ve=l;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Zo(n,t,i),l=l.next}while(l!==r)}ft(e,t,n);break;case 1:if(!ae&&(ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){X(n,t,u)}ft(e,t,n);break;case 21:ft(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,ft(e,t,n),ae=r):ft(e,t,n);break;default:ft(e,t,n)}}function es(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fd),t.forEach(function(r){var l=Xd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ae(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,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:le=u.stateNode,Ve=!1;break e;case 3:le=u.stateNode.containerInfo,Ve=!0;break e;case 4:le=u.stateNode.containerInfo,Ve=!0;break e}u=u.return}if(le===null)throw Error(S(160));cc(o,i,l),le=null,Ve=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(d){X(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fc(t,e),t=t.sibling}function fc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ae(t,e),Xe(e),r&4){try{Bn(3,e,e.return),Tl(3,e)}catch(y){X(e,e.return,y)}try{Bn(5,e,e.return)}catch(y){X(e,e.return,y)}}break;case 1:Ae(t,e),Xe(e),r&512&&n!==null&&ln(n,n.return);break;case 5:if(Ae(t,e),Xe(e),r&512&&n!==null&&ln(n,n.return),e.flags&32){var l=e.stateNode;try{Kn(l,"")}catch(y){X(e,e.return,y)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Rs(l,o),Eo(u,i);var d=Eo(u,o);for(i=0;i<s.length;i+=2){var m=s[i],h=s[i+1];m==="style"?$s(l,h):m==="dangerouslySetInnerHTML"?Os(l,h):m==="children"?Kn(l,h):fi(l,m,h,d)}switch(u){case"input":go(l,o);break;case"textarea":Ms(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?un(l,!!o.multiple,w,!1):p!==!!o.multiple&&(o.defaultValue!=null?un(l,!!o.multiple,o.defaultValue,!0):un(l,!!o.multiple,o.multiple?[]:"",!1))}l[tr]=o}catch(y){X(e,e.return,y)}}break;case 6:if(Ae(t,e),Xe(e),r&4){if(e.stateNode===null)throw Error(S(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(y){X(e,e.return,y)}}break;case 3:if(Ae(t,e),Xe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gn(t.containerInfo)}catch(y){X(e,e.return,y)}break;case 4:Ae(t,e),Xe(e);break;case 13:Ae(t,e),Xe(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Wi=G())),r&4&&es(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ae=(d=ae)||m,Ae(t,e),ae=d):Ae(t,e),Xe(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(T=e,m=e.child;m!==null;){for(h=T=m;T!==null;){switch(p=T,w=p.child,p.tag){case 0:case 11:case 14:case 15:Bn(4,p,p.return);break;case 1:ln(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){X(r,n,y)}}break;case 5:ln(p,p.return);break;case 22:if(p.memoizedState!==null){ns(h);continue}}w!==null?(w.return=p,T=w):ns(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{l=h.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=h.stateNode,s=h.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Ds("display",i))}catch(y){X(e,e.return,y)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(y){X(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ae(t,e),Xe(e),r&4&&es(e);break;case 21:break;default:Ae(t,e),Xe(e)}}function Xe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ac(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Kn(l,""),r.flags&=-33);var o=bu(e);qo(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=bu(e);Jo(e,u,i);break;default:throw Error(S(161))}}catch(s){X(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ad(e,t,n){T=e,dc(e)}function dc(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var l=T,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||Lr;if(!i){var u=l.alternate,s=u!==null&&u.memoizedState!==null||ae;u=Lr;var d=ae;if(Lr=i,(ae=s)&&!d)for(T=l;T!==null;)i=T,s=i.child,i.tag===22&&i.memoizedState!==null?rs(l):s!==null?(s.return=i,T=s):rs(l);for(;o!==null;)T=o,dc(o),o=o.sibling;T=l,Lr=u,ae=d}ts(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,T=o):ts(e)}}function ts(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:ae||Tl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ae)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Be(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Fu(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fu(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Gn(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}ae||t.flags&512&&Go(t)}catch(p){X(t,t.return,p)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function ns(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 rs(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Tl(4,t)}catch(s){X(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){X(t,l,s)}}var o=t.return;try{Go(t)}catch(s){X(t,o,s)}break;case 5:var i=t.return;try{Go(t)}catch(s){X(t,i,s)}}}catch(s){X(t,t.return,s)}if(t===e){T=null;break}var u=t.sibling;if(u!==null){u.return=t.return,T=u;break}T=t.return}}var Bd=Math.ceil,dl=st.ReactCurrentDispatcher,Vi=st.ReactCurrentOwner,De=st.ReactCurrentBatchConfig,O=0,ne=null,J=null,oe=0,_e=0,on=zt(0),ee=0,ur=null,Ht=0,Pl=0,Hi=0,Vn=null,we=null,Wi=0,wn=1/0,be=null,pl=!1,bo=null,xt=null,zr=!1,gt=null,ml=0,Hn=0,ei=null,Hr=-1,Wr=0;function me(){return O&6?G():Hr!==-1?Hr:Hr=G()}function _t(e){return e.mode&1?O&2&&oe!==0?oe&-oe:xd.transition!==null?(Wr===0&&(Wr=Zs()),Wr):(e=F,e!==0||(e=window.event,e=e===void 0?16:na(e.type)),e):1}function Qe(e,t,n,r){if(50<Hn)throw Hn=0,ei=null,Error(S(185));fr(e,n,r),(!(O&2)||e!==ne)&&(e===ne&&(!(O&2)&&(Pl|=n),ee===4&&ht(e,oe)),Ce(e,r),n===1&&O===0&&!(t.mode&1)&&(wn=G()+500,xl&&It()))}function Ce(e,t){var n=e.callbackNode;xf(e,t);var r=Jr(e,e===ne?oe:0);if(r===0)n!==null&&du(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&du(n),t===1)e.tag===0?Cd(ls.bind(null,e)):ka(ls.bind(null,e)),wd(function(){!(O&6)&&It()}),n=null;else{switch(Gs(r)){case 1:n=vi;break;case 4:n=Ys;break;case 16:n=Gr;break;case 536870912:n=Xs;break;default:n=Gr}n=Sc(n,pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pc(e,t){if(Hr=-1,Wr=0,O&6)throw Error(S(327));var n=e.callbackNode;if(dn()&&e.callbackNode!==n)return null;var r=Jr(e,e===ne?oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=hl(e,r);else{t=r;var l=O;O|=2;var o=hc();(ne!==e||oe!==t)&&(be=null,wn=G()+500,$t(e,t));do try{Wd();break}catch(u){mc(e,u)}while(!0);Li(),dl.current=o,O=l,J!==null?t=0:(ne=null,oe=0,t=ee)}if(t!==0){if(t===2&&(l=To(e),l!==0&&(r=l,t=ti(e,l))),t===1)throw n=ur,$t(e,0),ht(e,r),Ce(e,G()),n;if(t===6)ht(e,r);else{if(l=e.current.alternate,!(r&30)&&!Vd(l)&&(t=hl(e,r),t===2&&(o=To(e),o!==0&&(r=o,t=ti(e,o))),t===1))throw n=ur,$t(e,0),ht(e,r),Ce(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Mt(e,we,be);break;case 3:if(ht(e,r),(r&130023424)===r&&(t=Wi+500-G(),10<t)){if(Jr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){me(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Oo(Mt.bind(null,e,we,be),t);break}Mt(e,we,be);break;case 4:if(ht(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-We(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bd(r/1960))-r,10<r){e.timeoutHandle=Oo(Mt.bind(null,e,we,be),r);break}Mt(e,we,be);break;case 5:Mt(e,we,be);break;default:throw Error(S(329))}}}return Ce(e,G()),e.callbackNode===n?pc.bind(null,e):null}function ti(e,t){var n=Vn;return e.current.memoizedState.isDehydrated&&($t(e,t).flags|=256),e=hl(e,t),e!==2&&(t=we,we=n,t!==null&&ni(t)),e}function ni(e){we===null?we=e:we.push.apply(we,e)}function Vd(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(!Ke(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 ht(e,t){for(t&=~Hi,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-We(t),r=1<<n;e[n]=-1,t&=~r}}function ls(e){if(O&6)throw Error(S(327));dn();var t=Jr(e,0);if(!(t&1))return Ce(e,G()),null;var n=hl(e,t);if(e.tag!==0&&n===2){var r=To(e);r!==0&&(t=r,n=ti(e,r))}if(n===1)throw n=ur,$t(e,0),ht(e,t),Ce(e,G()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mt(e,we,be),Ce(e,G()),null}function Qi(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(wn=G()+500,xl&&It())}}function Wt(e){gt!==null&&gt.tag===0&&!(O&6)&&dn();var t=O;O|=1;var n=De.transition,r=F;try{if(De.transition=null,F=1,e)return e()}finally{F=r,De.transition=n,O=t,!(O&6)&&It()}}function Ki(){_e=on.current,H(on)}function $t(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yd(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(Ni(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&nl();break;case 3:gn(),H(ke),H(ce),Oi();break;case 5:ji(r);break;case 4:gn();break;case 13:H(Q);break;case 19:H(Q);break;case 10:zi(r.type._context);break;case 22:case 23:Ki()}n=n.return}if(ne=e,J=e=Nt(e.current,null),oe=_e=t,ee=0,ur=null,Hi=Pl=Ht=0,we=Vn=null,Ot!==null){for(t=0;t<Ot.length;t++)if(n=Ot[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Ot=null}return e}function mc(e,t){do{var n=J;try{if(Li(),Ar.current=fl,cl){for(var r=K.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}cl=!1}if(Vt=0,te=b=K=null,An=!1,lr=0,Vi.current=null,n===null||n.return===null){ee=1,ur=t,J=null;break}e:{var o=e,i=n.return,u=n,s=t;if(t=oe,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=s,m=u,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var p=m.alternate;p?(m.updateQueue=p.updateQueue,m.memoizedState=p.memoizedState,m.lanes=p.lanes):(m.updateQueue=null,m.memoizedState=null)}var w=Qu(i);if(w!==null){w.flags&=-257,Ku(w,i,u,o,t),w.mode&1&&Wu(o,d,t),t=w,s=d;var v=t.updateQueue;if(v===null){var y=new Set;y.add(s),t.updateQueue=y}else v.add(s);break e}else{if(!(t&1)){Wu(o,d,t),Yi();break e}s=Error(S(426))}}else if(W&&u.mode&1){var _=Qu(i);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ku(_,i,u,o,t),Ti(yn(s,u));break e}}o=s=yn(s,u),ee!==4&&(ee=2),Vn===null?Vn=[o]:Vn.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Ja(o,s,t);$u(o,f);break e;case 1:u=s;var a=o.type,c=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(xt===null||!xt.has(c)))){o.flags|=65536,t&=-t,o.lanes|=t;var g=qa(o,u,t);$u(o,g);break e}}o=o.return}while(o!==null)}gc(n)}catch(E){t=E,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function hc(){var e=dl.current;return dl.current=fl,e===null?fl:e}function Yi(){(ee===0||ee===3||ee===2)&&(ee=4),ne===null||!(Ht&268435455)&&!(Pl&268435455)||ht(ne,oe)}function hl(e,t){var n=O;O|=2;var r=hc();(ne!==e||oe!==t)&&(be=null,$t(e,t));do try{Hd();break}catch(l){mc(e,l)}while(!0);if(Li(),O=n,dl.current=r,J!==null)throw Error(S(261));return ne=null,oe=0,ee}function Hd(){for(;J!==null;)vc(J)}function Wd(){for(;J!==null&&!hf();)vc(J)}function vc(e){var t=wc(e.alternate,e,_e);e.memoizedProps=e.pendingProps,t===null?gc(e):J=t,Vi.current=null}function gc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$d(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ee=6,J=null;return}}else if(n=Dd(n,t,_e),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);ee===0&&(ee=5)}function Mt(e,t,n){var r=F,l=De.transition;try{De.transition=null,F=1,Qd(e,t,n,r)}finally{De.transition=l,F=r}return null}function Qd(e,t,n,r){do dn();while(gt!==null);if(O&6)throw Error(S(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(S(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(_f(e,o),e===ne&&(J=ne=null,oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zr||(zr=!0,Sc(Gr,function(){return dn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=De.transition,De.transition=null;var i=F;F=1;var u=O;O|=4,Vi.current=null,Ud(e,n),fc(n,e),fd(Mo),qr=!!Ro,Mo=Ro=null,e.current=n,Ad(n),vf(),O=u,F=i,De.transition=o}else e.current=n;if(zr&&(zr=!1,gt=e,ml=l),o=e.pendingLanes,o===0&&(xt=null),wf(n.stateNode),Ce(e,G()),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(pl)throw pl=!1,e=bo,bo=null,e;return ml&1&&e.tag!==0&&dn(),o=e.pendingLanes,o&1?e===ei?Hn++:(Hn=0,ei=e):Hn=0,It(),null}function dn(){if(gt!==null){var e=Gs(ml),t=De.transition,n=F;try{if(De.transition=null,F=16>e?16:e,gt===null)var r=!1;else{if(e=gt,gt=null,ml=0,O&6)throw Error(S(331));var l=O;for(O|=4,T=e.current;T!==null;){var o=T,i=o.child;if(T.flags&16){var u=o.deletions;if(u!==null){for(var s=0;s<u.length;s++){var d=u[s];for(T=d;T!==null;){var m=T;switch(m.tag){case 0:case 11:case 15:Bn(8,m,o)}var h=m.child;if(h!==null)h.return=m,T=h;else for(;T!==null;){m=T;var p=m.sibling,w=m.return;if(sc(m),m===d){T=null;break}if(p!==null){p.return=w,T=p;break}T=w}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var _=y.sibling;y.sibling=null,y=_}while(y!==null)}}T=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,T=i;else e:for(;T!==null;){if(o=T,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Bn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,T=f;break e}T=o.return}}var a=e.current;for(T=a;T!==null;){i=T;var c=i.child;if(i.subtreeFlags&2064&&c!==null)c.return=i,T=c;else e:for(i=a;T!==null;){if(u=T,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Tl(9,u)}}catch(E){X(u,u.return,E)}if(u===i){T=null;break e}var g=u.sibling;if(g!==null){g.return=u.return,T=g;break e}T=u.return}}if(O=l,It(),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(wl,e)}catch{}r=!0}return r}finally{F=n,De.transition=t}}return!1}function os(e,t,n){t=yn(n,t),t=Ja(e,t,1),e=Ct(e,t,1),t=me(),e!==null&&(fr(e,1,t),Ce(e,t))}function X(e,t,n){if(e.tag===3)os(e,e,n);else for(;t!==null;){if(t.tag===3){os(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xt===null||!xt.has(r))){e=yn(n,e),e=qa(t,e,1),t=Ct(t,e,1),e=me(),t!==null&&(fr(t,1,e),Ce(t,e));break}}t=t.return}}function Kd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=me(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(oe&n)===n&&(ee===4||ee===3&&(oe&130023424)===oe&&500>G()-Wi?$t(e,0):Hi|=n),Ce(e,t)}function yc(e,t){t===0&&(e.mode&1?(t=Sr,Sr<<=1,!(Sr&130023424)&&(Sr=4194304)):t=1);var n=me();e=it(e,t),e!==null&&(fr(e,t,n),Ce(e,n))}function Yd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yc(e,n)}function Xd(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(S(314))}r!==null&&r.delete(t),yc(e,n)}var wc;wc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)Se=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Se=!1,Od(e,t,n);Se=!!(e.flags&131072)}else Se=!1,W&&t.flags&1048576&&Ea(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vr(e,t),e=t.pendingProps;var l=mn(t,ce.current);fn(t,n),l=$i(null,t,r,e,l,n);var o=Fi();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,Ee(r)?(o=!0,rl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ri(t),l.updater=_l,t.stateNode=l,l._reactInternals=t,Vo(t,r,e,n),t=Qo(null,t,r,!0,o,n)):(t.tag=0,W&&o&&_i(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Gd(r),e=Be(r,e),l){case 0:t=Wo(null,t,r,e,n);break e;case 1:t=Zu(null,t,r,e,n);break e;case 11:t=Yu(null,t,r,e,n);break e;case 14:t=Xu(null,t,r,Be(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),Wo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),Zu(e,t,r,l,n);case 3:e:{if(nc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Na(e,t),sl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=yn(Error(S(423)),t),t=Gu(e,t,r,n,l);break e}else if(r!==l){l=yn(Error(S(424)),t),t=Gu(e,t,r,n,l);break e}else for(Ne=Et(t.stateNode.containerInfo.firstChild),Pe=t,W=!0,He=null,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hn(),r===l){t=ut(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return Ia(t),e===null&&Uo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,jo(r,l)?i=null:o!==null&&jo(r,o)&&(t.flags|=32),tc(e,t),de(e,t,i,n),t.child;case 6:return e===null&&Uo(t),null;case 13:return rc(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),Yu(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,B(il,r._currentValue),r._currentValue=i,o!==null)if(Ke(o.value,i)){if(o.children===l.children&&!ke.current){t=ut(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=rt(-1,n&-n),s.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?s.next=s:(s.next=m.next,m.next=s),d.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ao(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(S(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ao(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,fn(t,n),l=$e(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Be(r,t.pendingProps),l=Be(r.type,l),Xu(e,t,r,l,n);case 15:return ba(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),Vr(e,t),t.tag=1,Ee(r)?(e=!0,rl(t)):e=!1,fn(t,n),Pa(t,r,l),Vo(t,r,l,n),Qo(null,t,r,!0,e,n);case 19:return lc(e,t,n);case 22:return ec(e,t,n)}throw Error(S(156,t.tag))};function Sc(e,t){return Ks(e,t)}function Zd(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 Zd(e,t,n,r)}function Xi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gd(e){if(typeof e=="function")return Xi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pi)return 11;if(e===mi)return 14}return 2}function Nt(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 Qr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Xi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Zt:return Ft(n.children,l,o,t);case di:i=8,l|=8;break;case fo:return e=Oe(12,n,t,l|2),e.elementType=fo,e.lanes=o,e;case po:return e=Oe(13,n,t,l),e.elementType=po,e.lanes=o,e;case mo:return e=Oe(19,n,t,l),e.elementType=mo,e.lanes=o,e;case Ls:return Ll(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ts:i=10;break e;case Ps:i=9;break e;case pi:i=11;break e;case mi:i=14;break e;case dt:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Oe(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ft(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=Ls,e.lanes=n,e.stateNode={isHidden:!1},e}function io(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function uo(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 Jd(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=Bl(0),this.expirationTimes=Bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Zi(e,t,n,r,l,o,i,u,s){return e=new Jd(e,t,n,u,s),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},Ri(o),e}function qd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function kc(e){if(!e)return Pt;e=e._reactInternals;e:{if(Kt(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ee(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(Ee(n))return Sa(e,n,t)}return t}function Ec(e,t,n,r,l,o,i,u,s){return e=Zi(n,r,!0,e,l,o,i,u,s),e.context=kc(null),n=e.current,r=me(),l=_t(n),o=rt(r,l),o.callback=t??null,Ct(n,o,l),e.current.lanes=l,fr(e,l,r),Ce(e,r),e}function zl(e,t,n,r){var l=t.current,o=me(),i=_t(l);return n=kc(n),t.context===null?t.context=n:t.pendingContext=n,t=rt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ct(l,t,i),e!==null&&(Qe(e,l,i,o),Ur(e,l,i)),i}function vl(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 is(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gi(e,t){is(e,t),(e=e.alternate)&&is(e,t)}function bd(){return null}var Cc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ji(e){this._internalRoot=e}Il.prototype.render=Ji.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));zl(e,t,null,null)};Il.prototype.unmount=Ji.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wt(function(){zl(null,e,null,null)}),t[ot]=null}};function Il(e){this._internalRoot=e}Il.prototype.unstable_scheduleHydration=function(e){if(e){var t=bs();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mt.length&&t!==0&&t<mt[n].priority;n++);mt.splice(n,0,e),n===0&&ta(e)}};function qi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function us(){}function ep(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=vl(i);o.call(d)}}var i=Ec(t,r,e,0,null,!1,!1,"",us);return e._reactRootContainer=i,e[ot]=i.current,bn(e.nodeType===8?e.parentNode:e),Wt(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var d=vl(s);u.call(d)}}var s=Zi(e,0,!1,null,null,!1,!1,"",us);return e._reactRootContainer=s,e[ot]=s.current,bn(e.nodeType===8?e.parentNode:e),Wt(function(){zl(t,s,n,r)}),s}function Ml(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var s=vl(i);u.call(s)}}zl(t,i,e,l)}else i=ep(n,t,e,l,r);return vl(i)}Js=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mn(t.pendingLanes);n!==0&&(gi(t,n|1),Ce(t,G()),!(O&6)&&(wn=G()+500,It()))}break;case 13:Wt(function(){var r=it(e,1);if(r!==null){var l=me();Qe(r,e,1,l)}}),Gi(e,1)}};yi=function(e){if(e.tag===13){var t=it(e,134217728);if(t!==null){var n=me();Qe(t,e,134217728,n)}Gi(e,134217728)}};qs=function(e){if(e.tag===13){var t=_t(e),n=it(e,t);if(n!==null){var r=me();Qe(n,e,t,r)}Gi(e,t)}};bs=function(){return F};ea=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};xo=function(e,t,n){switch(t){case"input":if(go(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=Cl(r);if(!l)throw Error(S(90));Is(r),go(r,l)}}}break;case"textarea":Ms(e,n);break;case"select":t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}};As=Qi;Bs=Wt;var tp={usingClientEntryPoint:!1,Events:[pr,bt,Cl,Fs,Us,Qi]},zn={findFiberByHostInstance:jt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},np={bundleType:zn.bundleType,version:zn.version,rendererPackageName:zn.rendererPackageName,rendererConfig:zn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:st.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ws(e),e===null?null:e.stateNode},findFiberByHostInstance:zn.findFiberByHostInstance||bd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ir=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ir.isDisabled&&Ir.supportsFiber)try{wl=Ir.inject(np),Je=Ir}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tp;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qi(t))throw Error(S(200));return qd(e,t,null,n)};ze.createRoot=function(e,t){if(!qi(e))throw Error(S(299));var n=!1,r="",l=Cc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Zi(e,1,!1,null,null,n,!1,r,l),e[ot]=t.current,bn(e.nodeType===8?e.parentNode:e),new Ji(t)};ze.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Ws(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return Wt(e)};ze.hydrate=function(e,t,n){if(!Rl(t))throw Error(S(200));return Ml(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!qi(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=Cc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ec(t,null,e,1,n??null,l,!1,o,i),e[ot]=t.current,bn(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 Il(t)};ze.render=function(e,t,n){if(!Rl(t))throw Error(S(200));return Ml(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!Rl(e))throw Error(S(40));return e._reactRootContainer?(Wt(function(){Ml(null,null,e,!1,function(){e._reactRootContainer=null,e[ot]=null})}),!0):!1};ze.unstable_batchedUpdates=Qi;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rl(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Ml(e,t,n,!1,r)};ze.version="18.2.0-next-9e3b772b8-20220608";function xc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xc)}catch(e){console.error(e)}}xc(),Es.exports=ze;var rp=Es.exports,ss=rp;ao.createRoot=ss.createRoot,ao.hydrateRoot=ss.hydrateRoot;function _c(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=_c(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yt(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=_c(e))&&(r&&(r+=" "),r+=t);return r}const sr=e=>typeof e=="number"&&!isNaN(e),Ut=e=>typeof e=="string",Te=e=>typeof e=="function",Kr=e=>Ut(e)||Te(e)?e:null,ri=e=>M.isValidElement(e)||Ut(e)||Te(e)||sr(e);function lp(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:l}=e;requestAnimationFrame(()=>{l.minHeight="initial",l.height=r+"px",l.transition=`all ${n}ms`,requestAnimationFrame(()=>{l.height="0",l.padding="0",l.margin="0",setTimeout(t,n)})})}function jl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:l=!0,collapseDuration:o=300}=e;return function(i){let{children:u,position:s,preventExitTransition:d,done:m,nodeRef:h,isIn:p,playToast:w}=i;const v=r?`${t}--${s}`:t,y=r?`${n}--${s}`:n,_=M.useRef(0);return M.useLayoutEffect(()=>{const f=h.current,a=v.split(" "),c=g=>{g.target===h.current&&(w(),f.removeEventListener("animationend",c),f.removeEventListener("animationcancel",c),_.current===0&&g.type!=="animationcancel"&&f.classList.remove(...a))};f.classList.add(...a),f.addEventListener("animationend",c),f.addEventListener("animationcancel",c)},[]),M.useEffect(()=>{const f=h.current,a=()=>{f.removeEventListener("animationend",a),l?lp(f,m,o):m()};p||(d?a():(_.current=1,f.className+=` ${y}`,f.addEventListener("animationend",a)))},[p]),A.createElement(A.Fragment,null,u)}}function as(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const pe=new Map;let ar=[];const li=new Set,op=e=>li.forEach(t=>t(e)),Nc=()=>pe.size>0;function Tc(e,t){var n;if(t)return!((n=pe.get(t))==null||!n.isToastActive(e));let r=!1;return pe.forEach(l=>{l.isToastActive(e)&&(r=!0)}),r}function Pc(e,t){ri(e)&&(Nc()||ar.push({content:e,options:t}),pe.forEach(n=>{n.buildToast(e,t)}))}function cs(e,t){pe.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function ip(e){const{subscribe:t,getSnapshot:n,setProps:r}=M.useRef(function(o){const i=o.containerId||1;return{subscribe(u){const s=function(m,h,p){let w=1,v=0,y=[],_=[],f=[],a=h;const c=new Map,g=new Set,E=()=>{f=Array.from(c.values()),g.forEach(k=>k())},N=k=>{_=k==null?[]:_.filter(I=>I!==k),E()},C=k=>{const{toastId:I,onOpen:L,updateId:Z,children:ge}=k.props,Re=Z==null;k.staleId&&c.delete(k.staleId),c.set(I,k),_=[..._,k.props.toastId].filter(Ue=>Ue!==k.staleId),E(),p(as(k,Re?"added":"updated")),Re&&Te(L)&&L(M.isValidElement(ge)&&ge.props)};return{id:m,props:a,observe:k=>(g.add(k),()=>g.delete(k)),toggle:(k,I)=>{c.forEach(L=>{I!=null&&I!==L.props.toastId||Te(L.toggle)&&L.toggle(k)})},removeToast:N,toasts:c,clearQueue:()=>{v-=y.length,y=[]},buildToast:(k,I)=>{if(($=>{let{containerId:re,toastId:q,updateId:ye}=$;const fe=re?re!==m:m!==1,Ye=c.has(q)&&ye==null;return fe||Ye})(I))return;const{toastId:L,updateId:Z,data:ge,staleId:Re,delay:Ue}=I,at=()=>{N(L)},ct=Z==null;ct&&v++;const xe={...a,style:a.toastStyle,key:w++,...Object.fromEntries(Object.entries(I).filter($=>{let[re,q]=$;return q!=null})),toastId:L,updateId:Z,data:ge,closeToast:at,isIn:!1,className:Kr(I.className||a.toastClassName),bodyClassName:Kr(I.bodyClassName||a.bodyClassName),progressClassName:Kr(I.progressClassName||a.progressClassName),autoClose:!I.isLoading&&(x=I.autoClose,z=a.autoClose,x===!1||sr(x)&&x>0?x:z),deleteToast(){const $=c.get(L),{onClose:re,children:q}=$.props;Te(re)&&re(M.isValidElement(q)&&q.props),p(as($,"removed")),c.delete(L),v--,v<0&&(v=0),y.length>0?C(y.shift()):E()}};var x,z;xe.closeButton=a.closeButton,I.closeButton===!1||ri(I.closeButton)?xe.closeButton=I.closeButton:I.closeButton===!0&&(xe.closeButton=!ri(a.closeButton)||a.closeButton);let R=k;M.isValidElement(k)&&!Ut(k.type)?R=M.cloneElement(k,{closeToast:at,toastProps:xe,data:ge}):Te(k)&&(R=k({closeToast:at,toastProps:xe,data:ge}));const D={content:R,props:xe,staleId:Re};a.limit&&a.limit>0&&v>a.limit&&ct?y.push(D):sr(Ue)?setTimeout(()=>{C(D)},Ue):C(D)},setProps(k){a=k},setToggle:(k,I)=>{c.get(k).toggle=I},isToastActive:k=>_.some(I=>I===k),getSnapshot:()=>a.newestOnTop?f.reverse():f}}(i,o,op);pe.set(i,s);const d=s.observe(u);return ar.forEach(m=>Pc(m.content,m.options)),ar=[],()=>{d(),pe.delete(i)}},setProps(u){var s;(s=pe.get(i))==null||s.setProps(u)},getSnapshot(){var u;return(u=pe.get(i))==null?void 0:u.getSnapshot()}}}(e)).current;r(e);const l=M.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!l)return[];const i=new Map;return l.forEach(u=>{const{position:s}=u.props;i.has(s)||i.set(s,[]),i.get(s).push(u)}),Array.from(i,u=>o(u[0],u[1]))},isToastActive:Tc,count:l==null?void 0:l.length}}function up(e){const[t,n]=M.useState(!1),[r,l]=M.useState(!1),o=M.useRef(null),i=M.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:s,closeToast:d,onClick:m,closeOnClick:h}=e;var p,w;function v(){n(!0)}function y(){n(!1)}function _(c){const g=o.current;i.canDrag&&g&&(i.didMove=!0,t&&y(),i.delta=e.draggableDirection==="x"?c.clientX-i.start:c.clientY-i.start,i.start!==c.clientX&&(i.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function f(){document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",f);const c=o.current;if(i.canDrag&&i.didMove&&c){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return l(!0),e.closeToast(),void e.collapseAll();c.style.transition="transform 0.2s, opacity 0.2s",c.style.removeProperty("transform"),c.style.removeProperty("opacity")}}(w=pe.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||w.setToggle(p.id,p.fn),M.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);const a={onPointerDown:function(c){if(e.draggable===!0||e.draggable===c.pointerType){i.didMove=!1,document.addEventListener("pointermove",_),document.addEventListener("pointerup",f);const g=o.current;i.canCloseOnClick=!0,i.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(i.start=c.clientX,i.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(i.start=c.clientY,i.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(c){const{top:g,bottom:E,left:N,right:C}=o.current.getBoundingClientRect();c.nativeEvent.type!=="touchend"&&e.pauseOnHover&&c.clientX>=N&&c.clientX<=C&&c.clientY>=g&&c.clientY<=E?y():v()}};return u&&s&&(a.onMouseEnter=y,e.stacked||(a.onMouseLeave=v)),h&&(a.onClick=c=>{m&&m(c),i.canCloseOnClick&&d()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:a}}function sp(e){let{delay:t,isRunning:n,closeToast:r,type:l="default",hide:o,className:i,style:u,controlledProgress:s,progress:d,rtl:m,isIn:h,theme:p}=e;const w=o||s&&d===0,v={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};s&&(v.transform=`scaleX(${d})`);const y=yt("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${l}`,{"Toastify__progress-bar--rtl":m}),_=Te(i)?i({rtl:m,type:l,defaultClassName:y}):yt(y,i),f={[s&&d>=1?"onTransitionEnd":"onAnimationEnd"]:s&&d<1?null:()=>{h&&r()}};return A.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":w},A.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${l}`}),A.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:_,style:v,...f}))}let ap=1;const Lc=()=>""+ap++;function cp(e){return e&&(Ut(e.toastId)||sr(e.toastId))?e.toastId:Lc()}function Wn(e,t){return Pc(e,t),t.toastId}function gl(e,t){return{...t,type:t&&t.type||e,toastId:cp(t)}}function Rr(e){return(t,n)=>Wn(t,gl(e,n))}function U(e,t){return Wn(e,gl("default",t))}U.loading=(e,t)=>Wn(e,gl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),U.promise=function(e,t,n){let r,{pending:l,error:o,success:i}=t;l&&(r=Ut(l)?U.loading(l,n):U.loading(l.render,{...n,...l}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(m,h,p)=>{if(h==null)return void U.dismiss(r);const w={type:m,...u,...n,data:p},v=Ut(h)?{render:h}:h;return r?U.update(r,{...w,...v}):U(v.render,{...w,...v}),p},d=Te(e)?e():e;return d.then(m=>s("success",i,m)).catch(m=>s("error",o,m)),d},U.success=Rr("success"),U.info=Rr("info"),U.error=Rr("error"),U.warning=Rr("warning"),U.warn=U.warning,U.dark=(e,t)=>Wn(e,gl("default",{theme:"dark",...t})),U.dismiss=function(e){(function(t){var n;if(Nc()){if(t==null||Ut(n=t)||sr(n))pe.forEach(l=>{l.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=pe.get(t.containerId))!=null&&r.removeToast(t.id)||pe.forEach(l=>{l.removeToast(t.id)})}}else ar=ar.filter(l=>t!=null&&l.options.toastId!==t)})(e)},U.clearWaitingQueue=function(e){e===void 0&&(e={}),pe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},U.isActive=Tc,U.update=function(e,t){t===void 0&&(t={});const n=((r,l)=>{var o;let{containerId:i}=l;return(o=pe.get(i||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:l}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Lc()};o.toastId!==e&&(o.staleId=e);const i=o.render||l;delete o.render,Wn(i,o)}},U.done=e=>{U.update(e,{progress:1})},U.onChange=function(e){return li.add(e),()=>{li.delete(e)}},U.play=e=>cs(!0,e),U.pause=e=>cs(!1,e);const fp=typeof window<"u"?M.useLayoutEffect:M.useEffect,Mr=e=>{let{theme:t,type:n,isLoading:r,...l}=e;return A.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...l})},so={info:function(e){return A.createElement(Mr,{...e},A.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return A.createElement(Mr,{...e},A.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return A.createElement(Mr,{...e},A.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return A.createElement(Mr,{...e},A.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return A.createElement("div",{className:"Toastify__spinner"})}},dp=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:l,playToast:o}=up(e),{closeButton:i,children:u,autoClose:s,onClick:d,type:m,hideProgressBar:h,closeToast:p,transition:w,position:v,className:y,style:_,bodyClassName:f,bodyStyle:a,progressClassName:c,progressStyle:g,updateId:E,role:N,progress:C,rtl:k,toastId:I,deleteToast:L,isIn:Z,isLoading:ge,closeOnClick:Re,theme:Ue}=e,at=yt("Toastify__toast",`Toastify__toast-theme--${Ue}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":Re}),ct=Te(y)?y({rtl:k,position:v,type:m,defaultClassName:at}):yt(at,y),xe=function(D){let{theme:$,type:re,isLoading:q,icon:ye}=D,fe=null;const Ye={theme:$,type:re};return ye===!1||(Te(ye)?fe=ye({...Ye,isLoading:q}):M.isValidElement(ye)?fe=M.cloneElement(ye,Ye):q?fe=so.spinner():(zc=>zc in so)(re)&&(fe=so[re](Ye))),fe}(e),x=!!C||!s,z={closeToast:p,type:m,theme:Ue};let R=null;return i===!1||(R=Te(i)?i(z):M.isValidElement(i)?M.cloneElement(i,z):function(D){let{closeToast:$,theme:re,ariaLabel:q="close"}=D;return A.createElement("button",{className:`Toastify__close-button Toastify__close-button--${re}`,type:"button",onClick:ye=>{ye.stopPropagation(),$(ye)},"aria-label":q},A.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},A.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(z)),A.createElement(w,{isIn:Z,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:o},A.createElement("div",{id:I,onClick:d,"data-in":Z,className:ct,...l,style:_,ref:r},A.createElement("div",{...Z&&{role:N},className:Te(f)?f({type:m}):yt("Toastify__toast-body",f),style:a},xe!=null&&A.createElement("div",{className:yt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ge})},xe),A.createElement("div",null,u)),R,A.createElement(sp,{...E&&!x?{key:`pb-${E}`}:{},rtl:k,theme:Ue,delay:s,isRunning:t,isIn:Z,closeToast:p,hide:h,type:m,style:g,className:c,controlledProgress:x,progress:C||0})))},Ol=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},pp=jl(Ol("bounce",!0));jl(Ol("slide",!0));jl(Ol("zoom"));jl(Ol("flip"));const mp={position:"top-right",transition:pp,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function hp(e){let t={...mp,...e};const n=e.stacked,[r,l]=M.useState(!0),o=M.useRef(null),{getToastToRender:i,isToastActive:u,count:s}=ip(t),{className:d,style:m,rtl:h,containerId:p}=t;function w(y){const _=yt("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":h});return Te(d)?d({position:y,rtl:h,defaultClassName:_}):yt(_,Kr(d))}function v(){n&&(l(!0),U.play())}return fp(()=>{if(n){var y;const _=o.current.querySelectorAll('[data-in="true"]'),f=12,a=(y=t.position)==null?void 0:y.includes("top");let c=0,g=0;Array.from(_).reverse().forEach((E,N)=>{const C=E;C.classList.add("Toastify__toast--stacked"),N>0&&(C.dataset.collapsed=`${r}`),C.dataset.pos||(C.dataset.pos=a?"top":"bot");const k=c*(r?.2:1)+(r?0:f*N);C.style.setProperty("--y",`${a?k:-1*k}px`),C.style.setProperty("--g",`${f}`),C.style.setProperty("--s",""+(1-(r?g:0))),c+=C.offsetHeight,g+=.025})}},[r,s,n]),A.createElement("div",{ref:o,className:"Toastify",id:p,onMouseEnter:()=>{n&&(l(!1),U.pause())},onMouseLeave:v},i((y,_)=>{const f=_.length?{...m}:{...m,pointerEvents:"none"};return A.createElement("div",{className:w(y),style:f,key:`container-${y}`},_.map(a=>{let{content:c,props:g}=a;return A.createElement(dp,{...g,stacked:n,collapseAll:v,isIn:u(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},c)}))}))}function vp(e){var r;const t=e.message.role==="user"?"bg-sky-600":"bg-slate-50 text-black",n=e.message.role==="user"?"ml-auto":"mr-auto";return P.jsx("div",{className:`${n} ${t} rounded px-4 py-2 max-w-[80%] mb-8 flex`,children:P.jsxs("div",{className:"whitespace-pre-wrap flex flex-col",children:[P.jsx("span",{children:e.message.content}),e.sources&&e.sources.length?P.jsxs(P.Fragment,{children:[P.jsx("code",{className:"mt-4 mr-auto bg-slate-600 px-2 py-1 rounded",children:P.jsx("h2",{children:"🔍 Sources:"})}),P.jsx("code",{className:"mt-1 mr-2 bg-slate-600 px-2 py-1 rounded text-xs",children:(r=e.sources)==null?void 0:r.map((l,o)=>{var i,u,s,d,m,h,p,w;return P.jsxs("div",{className:"mt-2",children:[o+1,'. "',l.pageContent,'"',((u=(i=l.metadata)==null?void 0:i.loc)==null?void 0:u.lines)!==void 0?P.jsxs("div",{children:[P.jsx("br",{}),"Lines ",(m=(d=(s=l.metadata)==null?void 0:s.loc)==null?void 0:d.lines)==null?void 0:m.from," to ",(w=(p=(h=l.metadata)==null?void 0:h.loc)==null?void 0:p.lines)==null?void 0:w.to]}):""]},"source:"+o)})})]}):""]})})}/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var gp={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.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),bi=(e,t)=>{const n=M.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:u="",children:s,...d},m)=>M.createElement("svg",{ref:m,...gp,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${yp(e)}`,u].join(" "),...d},[...t.map(([h,p])=>M.createElement(h,p)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wp=bi("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fs=bi("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sp=bi("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);function kp(){const[e,t]=M.useState(!1),[n,r]=M.useState(null),[l,o]=M.useState([]),i=M.useRef(null),u=M.useRef(null),[s,d]=M.useState(!0),[m,h]=M.useState(""),p=v=>{r(v.target.files[0])},w=async v=>{if(v.preventDefault(),t(!0),!n){h("Selecione um documento para enviar"),t(!1);return}if(l.find(_=>_.name===n.name)){h("Este documento já foi enviado"),t(!1);return}try{const _=new FormData;_.append("file",n);const f=sessionStorage.getItem("ragChat@sessiorId")?`/retriveal/ingest/${sessionStorage.getItem("ragChat@sessiorId")}`:"/retriveal/ingest",a=await fetch(f,{method:"POST",body:_,headers:{"Content-Type":"multipart/form-data"}});if(a.status===200){console.log("Document ingested successfully");const c=await a.json();o(g=>[...g,{name:n.name,size:n.size}]),sessionStorage.setItem("uploadedDocuments",JSON.stringify(l)),sessionStorage.getItem("ragChat@sessiorId")||sessionStorage.setItem("ragChat@sessiorId",c.uuid),h(""),r(null),u.current&&(u.current.value="")}else a.status<500&&(console.error("Error ingesting document"),console.log(await a.text()),h("Erro ao enviar o documento! Recurso não encontrado."))}catch(_){console.error("Error ingesting document",_),h("Erro ao enviar o documento! Tente novamente mais tarde.")}t(!1)};return M.useEffect(()=>{const v=sessionStorage.getItem("uploadedDocuments");v&&o(JSON.parse(v)),window.innerWidth&&d(window.innerWidth>768),window.addEventListener("resize",()=>{window.innerWidth>768?d(!0):d(!1)})},[]),P.jsxs(P.Fragment,{children:[P.jsx(Sp,{className:"w-8 h-8 aspect-square md:sr-only absolute top-4 left-4",onClick:v=>d(y=>!y)}),P.jsxs("form",{onSubmit:w,ref:i,className:`absolute h-full top-0 bg-black/80 md:bg-transparent md:static flex flex-col md:w-full flex-1 p-4 gap-2.5 min-w-[200px] ${s?"animate-slideIn md:animate-none":"-translate-x-full transition-all bg-transparent"}`,children:[P.jsx(wp,{className:"w-8 h-8 aspect-square md:sr-only self-end",onClick:v=>d(y=>!y)}),P.jsx("input",{type:"file",id:"document-input",className:"sr-only",accept:".pdf,.doc,.docx",onInput:p,ref:u}),P.jsx("label",{htmlFor:"document-input",children:P.jsxs("div",{className:"w-48 md:w-full aspect-video flex flex-col gap-1 items-center p-2.5 justify-center ring-2 ring-white rounded cursor-pointer",children:[P.jsx(fs,{}),P.jsx("span",{className:"text-center text-xs",children:n&&n.name?n.name.length>15?n.name.substring(0,15)+"..."+n.name.substring(n.name.length-5):n.name:"Faça o upload de um documento"})]})}),P.jsxs("button",{type:"submit",className:"shrink-0 p-2.5 bg-[#7159c1] rounded w-full hover:brightness-110 transition-all disabled:hover:brightness-75 disabled:brightness-75",disabled:e||!n,children:[P.jsxs("div",{role:"status",className:`${e?"":"hidden"} flex justify-center`,children:[P.jsxs("svg",{"aria-hidden":"true",className:"w-6 h-6 text-white animate-spin dark:text-white fill-sky-800",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),P.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),P.jsx("span",{className:"sr-only",children:"Loading..."})]}),P.jsx("span",{className:e?"hidden":"",children:"Enviar"})]}),P.jsx("div",{className:"flex flex-col gap-2.5 w-full",children:l.map((v,y)=>P.jsxs("div",{className:"flex justify-between items-center text-xs p-2.5 ring-2 ring-white rounded",children:[P.jsx(fs,{}),P.jsx("span",{children:v.name.length>10?v.name.substring(0,10)+"..."+v.name.substring(v.name.length-5):v.name})]},y))}),m&&P.jsx("div",{className:"flex flex-col gap-2.5 w-full",children:P.jsx("span",{className:"text-red-500",children:m})})]})]})}function Ep({endpoint:e,placeholder:t,showIngestForm:n,showIntermediateStepsToggle:r}){const[l,o]=M.useState([]),[i,u]=M.useState(""),[s,d]=M.useState(!1),[m,h]=M.useState({}),p=v=>u(v.currentTarget.value),w=async v=>{if(v.preventDefault(),d(!0),sessionStorage.getItem("ragChat@sessiorId")===null&&U("É necessário enviar um arquivo!",{theme:"dark"}),!i){d(!1);return}const y="Me responda isso em português: "+i;u(""),l.length||await new Promise(_=>setTimeout(_,300)),o(l.concat({id:l.length.toString(),content:i,role:"user"}));try{const _=await fetch(`/retriveal/stream/${sessionStorage.getItem("ragChat@sessiorId")}`,{headers:{"Content-Type":"application/json"},body:JSON.stringfy({content:y})}),f=_.data;if(_.status===200)o(a=>{const c=[...a];return c.push({id:c.length.toString(),content:f.replace("</s>"," "),role:"assistant"}),c});else if(f.error)throw U(f.error,{theme:"dark"}),new Error(f.error)}catch(_){U(_.message,{theme:"dark"})}d(!1)};return M.useEffect(()=>{const v=y=>{const _=sessionStorage.getItem("ragChat@sessiorId");if(_)try{navigator.sendBeacon(`/session/${_}`),sessionStorage.removeItem("ragChat@sessiorId"),sessionStorage.removeItem("uploadedDocuments")}catch(f){console.log(f)}};return window.addEventListener("unload",v),()=>window.removeEventListener("unload",v)},[]),P.jsxs("div",{className:"flex w-full flex-2 flex-col items-center p-4 grow overflow-hidden md:border-l-2 md:border-l-white",children:[P.jsx("div",{className:"flex flex-col-reverse w-full mb-4 overflow-auto transition-[flex-grow] ease-in-out grow",children:l.length>0?[...l].reverse().map((v,y)=>{const _=(l.length-1-y).toString();return P.jsx(vp,{message:v,sources:m[_]},v.id)}):""}),P.jsx("form",{onSubmit:w,className:"flex w-full flex-col",children:P.jsxs("div",{className:"flex w-full mt-4",children:[P.jsx("input",{className:"grow mr-2 p-2.5 rounded outline-none",value:i,placeholder:"Me faça uma pergunta!",onChange:p}),P.jsx("button",{type:"submit",className:"shrink-0 px-4 bg-[#7159c1] rounded hover:brightness-110 transition-all",children:P.jsx("div",{role:"status",className:"flex justify-center",children:s?P.jsxs(P.Fragment,{children:[P.jsxs("svg",{"aria-hidden":"true",className:"w-6 h-6 text-white animate-spin dark:text-white fill-sky-800",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),P.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),P.jsx("span",{className:"sr-only",children:"Loading..."})]}):P.jsx("span",{children:"Send"})})})]})}),P.jsx(hp,{})]})}var Cp={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function xp(){return P.jsxs("div",{className:"flex min-h-screen bg-[#131318] text-white",children:[P.jsx(kp,{}),P.jsx(Ep,{endpoint:Cp.VITE_PUBLIC_API_URL+"/retriveal/stream"})]})}ao.createRoot(document.getElementById("root")).render(P.jsx(A.StrictMode,{children:P.jsx(xp,{})}));