From c1549bb601403010439a70ebc778f45bf8ea7f06 Mon Sep 17 00:00:00 2001 From: linda-wederhorn Date: Tue, 7 May 2024 16:52:43 +0300 Subject: [PATCH] uibuild --- .../{index-834f7ee9.js => index-d1dcc8de.js} | 18 +++++++++--------- dist/index.html | 2 +- index.js | 8 ++++---- package.json | 4 +++- 4 files changed, 17 insertions(+), 15 deletions(-) rename dist/assets/{index-834f7ee9.js => index-d1dcc8de.js} (83%) diff --git a/dist/assets/index-834f7ee9.js b/dist/assets/index-d1dcc8de.js similarity index 83% rename from dist/assets/index-834f7ee9.js rename to dist/assets/index-d1dcc8de.js index a5de0ee..f7bf52f 100644 --- a/dist/assets/index-834f7ee9.js +++ b/dist/assets/index-d1dcc8de.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ir=Symbol.for("react.element"),Ef=Symbol.for("react.portal"),xf=Symbol.for("react.fragment"),Cf=Symbol.for("react.strict_mode"),_f=Symbol.for("react.profiler"),Nf=Symbol.for("react.provider"),Pf=Symbol.for("react.context"),Tf=Symbol.for("react.forward_ref"),Rf=Symbol.for("react.suspense"),Of=Symbol.for("react.memo"),Lf=Symbol.for("react.lazy"),ku=Symbol.iterator;function zf(e){return e===null||typeof e!="object"?null:(e=ku&&e[ku]||e["@@iterator"],typeof e=="function"?e:null)}var Vs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ws=Object.assign,Qs={};function hn(e,t,n){this.props=e,this.context=t,this.refs=Qs,this.updater=n||Vs}hn.prototype.isReactComponent={};hn.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")};hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ks(){}Ks.prototype=hn.prototype;function Si(e,t,n){this.props=e,this.context=t,this.refs=Qs,this.updater=n||Vs}var ki=Si.prototype=new Ks;ki.constructor=Si;Ws(ki,hn.prototype);ki.isPureReactComponent=!0;var Eu=Array.isArray,Js=Object.prototype.hasOwnProperty,Ei={current:null},Xs={key:!0,ref:!0,__self:!0,__source:!0};function Ys(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)Js.call(t,r)&&!Xs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=C[K];if(0>>1;Kl(Wl,O))_tl(hr,Wl)?(C[K]=hr,C[_t]=O,K=_t):(C[K]=Wl,C[Ct]=O,K=Ct);else if(_tl(hr,O))C[K]=hr,C[_t]=O,K=_t;else break e}}return T}function l(C,T){var O=C.sortIndex-T.sortIndex;return O!==0?O:C.id-T.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=[],a=[],d=1,h=null,m=3,k=!1,y=!1,g=!1,R=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(C){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=C)r(a),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(a)}}function w(C){if(g=!1,p(C),!y)if(n(s)!==null)y=!0,Hl(E);else{var T=n(a);T!==null&&Vl(w,T.startTime-C)}}function E(C,T){y=!1,g&&(g=!1,f(P),P=-1),k=!0;var O=m;try{for(p(T),h=n(s);h!==null&&(!(h.expirationTime>T)||C&&!Oe());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var Z=K(h.expirationTime<=T);T=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===n(s)&&r(s),p(T)}else r(s);h=n(s)}if(h!==null)var pr=!0;else{var Ct=n(a);Ct!==null&&Vl(w,Ct.startTime-T),pr=!1}return pr}finally{h=null,m=O,k=!1}}var _=!1,N=null,P=-1,Q=5,z=-1;function Oe(){return!(e.unstable_now()-zC||125K?(C.sortIndex=O,t(a,C),n(s)===null&&C===n(a)&&(g?(f(P),P=-1):g=!0,Vl(w,O-K))):(C.sortIndex=Z,t(s,C),y||k||(y=!0,Hl(E))),C},e.unstable_shouldYield=Oe,e.unstable_wrapCallback=function(C){var T=m;return function(){var O=m;m=T;try{return C.apply(this,arguments)}finally{m=O}}}})(bs);Zs.exports=bs;var Vf=Zs.exports;/** + */(function(e){function t(_,T){var O=_.length;_.push(T);e:for(;0>>1,Z=_[K];if(0>>1;Kl(Wl,O))_tl(hr,Wl)?(_[K]=hr,_[_t]=O,K=_t):(_[K]=Wl,_[Ct]=O,K=Ct);else if(_tl(hr,O))_[K]=hr,_[_t]=O,K=_t;else break e}}return T}function l(_,T){var O=_.sortIndex-T.sortIndex;return O!==0?O:_.id-T.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=[],c=[],f=1,h=null,m=3,k=!1,y=!1,v=!1,R=typeof setTimeout=="function"?setTimeout:null,d=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 p(_){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=_)r(c),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(c)}}function w(_){if(v=!1,p(_),!y)if(n(s)!==null)y=!0,Hl(E);else{var T=n(c);T!==null&&Vl(w,T.startTime-_)}}function E(_,T){y=!1,v&&(v=!1,d(P),P=-1),k=!0;var O=m;try{for(p(T),h=n(s);h!==null&&(!(h.expirationTime>T)||_&&!Oe());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var Z=K(h.expirationTime<=T);T=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===n(s)&&r(s),p(T)}else r(s);h=n(s)}if(h!==null)var pr=!0;else{var Ct=n(c);Ct!==null&&Vl(w,Ct.startTime-T),pr=!1}return pr}finally{h=null,m=O,k=!1}}var C=!1,N=null,P=-1,Q=5,z=-1;function Oe(){return!(e.unstable_now()-z_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var T=3;break;default:T=m}var O=m;m=T;try{return _()}finally{m=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,T){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var O=m;m=_;try{return T()}finally{m=O}},e.unstable_scheduleCallback=function(_,T,O){var K=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0K?(_.sortIndex=O,t(c,_),n(s)===null&&_===n(c)&&(v?(d(P),P=-1):v=!0,Vl(w,O-K))):(_.sortIndex=Z,t(s,_),y||k||(y=!0,Hl(E))),_},e.unstable_shouldYield=Oe,e.unstable_wrapCallback=function(_){var T=m;return function(){var O=m;m=T;try{return _.apply(this,arguments)}finally{m=O}}}})(bs);Zs.exports=bs;var Vf=Zs.exports;/** * @license React * react-dom.production.min.js * @@ -31,14 +31,14 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ea=lt,Se=Vf;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xo=Object.prototype.hasOwnProperty,Wf=/^[: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]*$/,Cu={},_u={};function Qf(e){return xo.call(_u,e)?!0:xo.call(Cu,e)?!1:Wf.test(e)?_u[e]=!0:(Cu[e]=!0,!1)}function Kf(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 Jf(e,t,n,r){if(t===null||typeof t>"u"||Kf(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 fe(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 re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new fe(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){re[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ci=/[\-:]([a-z])/g;function _i(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(Ci,_i);re[t]=new fe(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(Ci,_i);re[t]=new fe(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(Ci,_i);re[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ni(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function Xf(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function Po(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 Ht:return"Fragment";case $t:return"Portal";case Co:return"Profiler";case Pi:return"StrictMode";case _o:return"Suspense";case No:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ra:return(e.displayName||"Context")+".Consumer";case na:return(e._context.displayName||"Context")+".Provider";case Ti:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ri:return t=e.displayName||null,t!==null?t:Po(e.type)||"Memo";case ot:t=e._payload,e=e._init;try{return Po(e(t))}catch{}}return null}function Yf(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 Po(t);case 8:return t===Pi?"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 wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gf(e){var t=oa(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 vr(e){e._valueTracker||(e._valueTracker=Gf(e))}function ia(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xr(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 To(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(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 ua(e,t){t=t.checked,t!=null&&Ni(e,"checked",t,!1)}function Ro(e,t){ua(e,t);var n=wt(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")?Oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oo(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tu(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 Oo(e,t,n){(t!=="number"||Xr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var On=Array.isArray;function bt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},qf=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){qf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function fa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function da(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=fa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Zf=V({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 Fo(e,t){if(t){if(Zf[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 Do(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 Ao=null;function Oi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jo=null,en=null,tn=null;function Lu(e){if(e=ar(e)){if(typeof jo!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Cl(t),jo(e.stateNode,e.type,t))}}function pa(e){en?tn?tn.push(e):tn=[e]:en=e}function ha(){if(en){var e=en,t=tn;if(tn=en=null,Lu(e),t)for(e=0;e>>=0,e===0?32:31-(ad(e)/cd|0)|0}var wr=64,Sr=4194304;function Ln(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 Zr(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=Ln(u):(o&=i,o!==0&&(r=Ln(o)))}else i=n&~l,i!==0?r=Ln(i):o!==0&&(r=Ln(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;0n;n++)t.push(e);return t}function ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function hd(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=An),Bu=String.fromCharCode(32),$u=!1;function Da(e,t){switch(e){case"keyup":return Hd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Aa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vt=!1;function Wd(e,t){switch(e){case"compositionend":return Aa(t);case"keypress":return t.which!==32?null:($u=!0,Bu);case"textInput":return e=t.data,e===Bu&&$u?null:e;default:return null}}function Qd(e,t){if(Vt)return e==="compositionend"||!Ii&&Da(e,t)?(e=za(),jr=Ai=at=null,Vt=!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)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=Qu(n)}}function Ua(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ua(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ba(){for(var e=window,t=Xr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xr(e.document)}return t}function Ui(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 ep(e){var t=Ba(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ua(n.ownerDocument.documentElement,n)){if(r!==null&&Ui(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=Ku(n,o);var i=Ku(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=document.documentMode,Wt=null,Ho=null,Mn=null,Vo=!1;function Ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Wt==null||Wt!==Xr(r)||(r=Wt,"selectionStart"in r&&Ui(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}),Mn&&Yn(Mn,r)||(Mn=r,r=tl(Ho,"onSelect"),0Jt||(e.current=Yo[Jt],Yo[Jt]=null,Jt--)}function j(e,t){Jt++,Yo[Jt]=e.current,e.current=t}var St={},ue=Et(St),he=Et(!1),Ft=St;function un(e,t){var n=e.type.contextTypes;if(!n)return St;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 me(e){return e=e.childContextTypes,e!=null}function rl(){I(he),I(ue)}function es(e,t,n){if(ue.current!==St)throw Error(S(168));j(ue,t),j(he,n)}function Ya(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,Yf(e)||"Unknown",l));return V({},n,r)}function ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,Ft=ue.current,j(ue,e),j(he,he.current),!0}function ts(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ya(e,t,Ft),r.__reactInternalMemoizedMergedChildContext=e,I(he),I(ue),j(ue,e)):I(he),j(he,n)}var Ke=null,_l=!1,so=!1;function Ga(e){Ke===null?Ke=[e]:Ke.push(e)}function dp(e){_l=!0,Ga(e)}function xt(){if(!so&&Ke!==null){so=!0;var e=0,t=A;try{var n=Ke;for(A=1;e>=i,l-=i,Je=1<<32-Ae(t)+l|n<P?(Q=N,N=null):Q=N.sibling;var z=m(f,N,p[P],w);if(z===null){N===null&&(N=Q);break}e&&N&&z.alternate===null&&t(f,N),c=o(z,c,P),_===null?E=z:_.sibling=z,_=z,N=Q}if(P===p.length)return n(f,N),B&&Nt(f,P),E;if(N===null){for(;PP?(Q=N,N=null):Q=N.sibling;var Oe=m(f,N,z.value,w);if(Oe===null){N===null&&(N=Q);break}e&&N&&Oe.alternate===null&&t(f,N),c=o(Oe,c,P),_===null?E=Oe:_.sibling=Oe,_=Oe,N=Q}if(z.done)return n(f,N),B&&Nt(f,P),E;if(N===null){for(;!z.done;P++,z=p.next())z=h(f,z.value,w),z!==null&&(c=o(z,c,P),_===null?E=z:_.sibling=z,_=z);return B&&Nt(f,P),E}for(N=r(f,N);!z.done;P++,z=p.next())z=k(N,f,P,z.value,w),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?P:z.key),c=o(z,c,P),_===null?E=z:_.sibling=z,_=z);return e&&N.forEach(function(gn){return t(f,gn)}),B&&Nt(f,P),E}function R(f,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Ht&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case yr:e:{for(var E=p.key,_=c;_!==null;){if(_.key===E){if(E=p.type,E===Ht){if(_.tag===7){n(f,_.sibling),c=l(_,p.props.children),c.return=f,f=c;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ot&&ss(E)===_.type){n(f,_.sibling),c=l(_,p.props),c.ref=_n(f,_,p),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Ht?(c=zt(p.props.children,f.mode,w,p.key),c.return=f,f=c):(w=Wr(p.type,p.key,p.props,null,f.mode,w),w.ref=_n(f,c,p),w.return=f,f=w)}return i(f);case $t:e:{for(_=p.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=vo(p,f.mode,w),c.return=f,f=c}return i(f);case ot:return _=p._init,R(f,c,_(p._payload),w)}if(On(p))return y(f,c,p,w);if(Sn(p))return g(f,c,p,w);Pr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=yo(p,f.mode,w),c.return=f,f=c),i(f)):n(f,c)}return R}var an=lc(!0),oc=lc(!1),cr={},Ve=Et(cr),bn=Et(cr),er=Et(cr);function Ot(e){if(e===cr)throw Error(S(174));return e}function Xi(e,t){switch(j(er,t),j(bn,e),j(Ve,cr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zo(t,e)}I(Ve),j(Ve,t)}function cn(){I(Ve),I(bn),I(er)}function ic(e){Ot(er.current);var t=Ot(Ve.current),n=zo(t,e.type);t!==n&&(j(bn,e),j(Ve,n))}function Yi(e){bn.current===e&&(I(Ve),I(bn))}var $=Et(0);function cl(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 ao=[];function Gi(){for(var e=0;en?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{A=n,co.transition=r}}function Ec(){return Re().memoizedState}function yp(e,t,n){var r=vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Cc(t,n);else if(n=ec(e,t,n,r),n!==null){var l=ae();je(n,e,r,l),_c(n,t,r)}}function vp(e,t,n){var r=vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Cc(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,Me(u,i)){var s=t.interleaved;s===null?(l.next=l,Ki(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ec(e,t,l,r),n!==null&&(l=ae(),je(n,e,r,l),_c(n,t,r))}}function xc(e){var t=e.alternate;return e===H||t!==null&&t===H}function Cc(e,t){In=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _c(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zi(e,n)}}var dl={readContext:Te,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},gp={readContext:Te,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:cs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Br(4194308,4,vc.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=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();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=yp.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:as,useDebugValue:tu,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=as(!1),t=e[0];return e=mp.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Ue();if(B){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ee===null)throw Error(S(349));At&30||ac(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,cs(fc.bind(null,r,o,e),[e]),r.flags|=2048,rr(9,cc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ue(),t=ee.identifierPrefix;if(B){var n=Xe,r=Je;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,0")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function Xf(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function Po(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 Ht:return"Fragment";case $t:return"Portal";case Co:return"Profiler";case Pi:return"StrictMode";case _o:return"Suspense";case No:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ra:return(e.displayName||"Context")+".Consumer";case na:return(e._context.displayName||"Context")+".Provider";case Ti:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ri:return t=e.displayName||null,t!==null?t:Po(e.type)||"Memo";case ot:t=e._payload,e=e._init;try{return Po(e(t))}catch{}}return null}function Yf(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 Po(t);case 8:return t===Pi?"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 wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gf(e){var t=oa(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 vr(e){e._valueTracker||(e._valueTracker=Gf(e))}function ia(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xr(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 To(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(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 ua(e,t){t=t.checked,t!=null&&Ni(e,"checked",t,!1)}function Ro(e,t){ua(e,t);var n=wt(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")?Oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oo(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tu(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 Oo(e,t,n){(t!=="number"||Xr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var On=Array.isArray;function bt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},qf=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){qf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function fa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function da(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=fa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Zf=V({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 Fo(e,t){if(t){if(Zf[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 Do(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 Ao=null;function Oi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jo=null,en=null,tn=null;function Lu(e){if(e=ar(e)){if(typeof jo!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Cl(t),jo(e.stateNode,e.type,t))}}function pa(e){en?tn?tn.push(e):tn=[e]:en=e}function ha(){if(en){var e=en,t=tn;if(tn=en=null,Lu(e),t)for(e=0;e>>=0,e===0?32:31-(ad(e)/cd|0)|0}var wr=64,Sr=4194304;function Ln(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 Zr(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=Ln(u):(o&=i,o!==0&&(r=Ln(o)))}else i=n&~l,i!==0?r=Ln(i):o!==0&&(r=Ln(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;0n;n++)t.push(e);return t}function ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function hd(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=An),Bu=String.fromCharCode(32),$u=!1;function Da(e,t){switch(e){case"keyup":return Hd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Aa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vt=!1;function Wd(e,t){switch(e){case"compositionend":return Aa(t);case"keypress":return t.which!==32?null:($u=!0,Bu);case"textInput":return e=t.data,e===Bu&&$u?null:e;default:return null}}function Qd(e,t){if(Vt)return e==="compositionend"||!Ii&&Da(e,t)?(e=za(),jr=Ai=at=null,Vt=!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)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=Qu(n)}}function Ua(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ua(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ba(){for(var e=window,t=Xr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xr(e.document)}return t}function Ui(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 ep(e){var t=Ba(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ua(n.ownerDocument.documentElement,n)){if(r!==null&&Ui(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=Ku(n,o);var i=Ku(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=document.documentMode,Wt=null,Ho=null,Mn=null,Vo=!1;function Ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Wt==null||Wt!==Xr(r)||(r=Wt,"selectionStart"in r&&Ui(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}),Mn&&Yn(Mn,r)||(Mn=r,r=tl(Ho,"onSelect"),0Jt||(e.current=Yo[Jt],Yo[Jt]=null,Jt--)}function j(e,t){Jt++,Yo[Jt]=e.current,e.current=t}var St={},ue=Et(St),he=Et(!1),Ft=St;function un(e,t){var n=e.type.contextTypes;if(!n)return St;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 me(e){return e=e.childContextTypes,e!=null}function rl(){I(he),I(ue)}function es(e,t,n){if(ue.current!==St)throw Error(S(168));j(ue,t),j(he,n)}function Ya(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,Yf(e)||"Unknown",l));return V({},n,r)}function ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,Ft=ue.current,j(ue,e),j(he,he.current),!0}function ts(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ya(e,t,Ft),r.__reactInternalMemoizedMergedChildContext=e,I(he),I(ue),j(ue,e)):I(he),j(he,n)}var Ke=null,_l=!1,so=!1;function Ga(e){Ke===null?Ke=[e]:Ke.push(e)}function dp(e){_l=!0,Ga(e)}function xt(){if(!so&&Ke!==null){so=!0;var e=0,t=A;try{var n=Ke;for(A=1;e>=i,l-=i,Je=1<<32-Ae(t)+l|n<P?(Q=N,N=null):Q=N.sibling;var z=m(d,N,p[P],w);if(z===null){N===null&&(N=Q);break}e&&N&&z.alternate===null&&t(d,N),a=o(z,a,P),C===null?E=z:C.sibling=z,C=z,N=Q}if(P===p.length)return n(d,N),B&&Nt(d,P),E;if(N===null){for(;PP?(Q=N,N=null):Q=N.sibling;var Oe=m(d,N,z.value,w);if(Oe===null){N===null&&(N=Q);break}e&&N&&Oe.alternate===null&&t(d,N),a=o(Oe,a,P),C===null?E=Oe:C.sibling=Oe,C=Oe,N=Q}if(z.done)return n(d,N),B&&Nt(d,P),E;if(N===null){for(;!z.done;P++,z=p.next())z=h(d,z.value,w),z!==null&&(a=o(z,a,P),C===null?E=z:C.sibling=z,C=z);return B&&Nt(d,P),E}for(N=r(d,N);!z.done;P++,z=p.next())z=k(N,d,P,z.value,w),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?P:z.key),a=o(z,a,P),C===null?E=z:C.sibling=z,C=z);return e&&N.forEach(function(gn){return t(d,gn)}),B&&Nt(d,P),E}function R(d,a,p,w){if(typeof p=="object"&&p!==null&&p.type===Ht&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case yr:e:{for(var E=p.key,C=a;C!==null;){if(C.key===E){if(E=p.type,E===Ht){if(C.tag===7){n(d,C.sibling),a=l(C,p.props.children),a.return=d,d=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ot&&ss(E)===C.type){n(d,C.sibling),a=l(C,p.props),a.ref=_n(d,C,p),a.return=d,d=a;break e}n(d,C);break}else t(d,C);C=C.sibling}p.type===Ht?(a=zt(p.props.children,d.mode,w,p.key),a.return=d,d=a):(w=Wr(p.type,p.key,p.props,null,d.mode,w),w.ref=_n(d,a,p),w.return=d,d=w)}return i(d);case $t:e:{for(C=p.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===p.containerInfo&&a.stateNode.implementation===p.implementation){n(d,a.sibling),a=l(a,p.children||[]),a.return=d,d=a;break e}else{n(d,a);break}else t(d,a);a=a.sibling}a=vo(p,d.mode,w),a.return=d,d=a}return i(d);case ot:return C=p._init,R(d,a,C(p._payload),w)}if(On(p))return y(d,a,p,w);if(Sn(p))return v(d,a,p,w);Pr(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,a!==null&&a.tag===6?(n(d,a.sibling),a=l(a,p),a.return=d,d=a):(n(d,a),a=yo(p,d.mode,w),a.return=d,d=a),i(d)):n(d,a)}return R}var an=lc(!0),oc=lc(!1),cr={},Ve=Et(cr),bn=Et(cr),er=Et(cr);function Ot(e){if(e===cr)throw Error(S(174));return e}function Xi(e,t){switch(j(er,t),j(bn,e),j(Ve,cr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zo(t,e)}I(Ve),j(Ve,t)}function cn(){I(Ve),I(bn),I(er)}function ic(e){Ot(er.current);var t=Ot(Ve.current),n=zo(t,e.type);t!==n&&(j(bn,e),j(Ve,n))}function Yi(e){bn.current===e&&(I(Ve),I(bn))}var $=Et(0);function cl(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 ao=[];function Gi(){for(var e=0;en?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{A=n,co.transition=r}}function Ec(){return Re().memoizedState}function yp(e,t,n){var r=vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Cc(t,n);else if(n=ec(e,t,n,r),n!==null){var l=ae();je(n,e,r,l),_c(n,t,r)}}function vp(e,t,n){var r=vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Cc(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,Me(u,i)){var s=t.interleaved;s===null?(l.next=l,Ki(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ec(e,t,l,r),n!==null&&(l=ae(),je(n,e,r,l),_c(n,t,r))}}function xc(e){var t=e.alternate;return e===H||t!==null&&t===H}function Cc(e,t){In=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _c(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zi(e,n)}}var dl={readContext:Te,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},gp={readContext:Te,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:cs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Br(4194308,4,vc.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=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();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=yp.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:as,useDebugValue:tu,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=as(!1),t=e[0];return e=mp.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Ue();if(B){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ee===null)throw Error(S(349));At&30||ac(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,cs(fc.bind(null,r,o,e),[e]),r.flags|=2048,rr(9,cc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ue(),t=ee.identifierPrefix;if(B){var n=Xe,r=Je;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,0<\/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[Be]=t,e[Zn]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Do(n,r),n){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;ldn&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304)}else{if(!r)if(e=cl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!B)return oe(t),null}else 2*J()-o.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,Nn(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=J(),t.sibling=null,n=$.current,j($,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Np(e,t){switch($i(t),t.tag){case 1:return me(t.type)&&rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),I(he),I(ue),Gi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yi(t),null;case 13:if(I($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I($),null;case 4:return cn(),null;case 10:return Qi(t.type._context),null;case 22:case 23:return uu(),null;case 24:return null;default:return null}}var Rr=!1,ie=!1,Pp=typeof WeakSet=="function"?WeakSet:Set,x=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function ui(e,t,n){try{n()}catch(r){W(e,t,r)}}var ws=!1;function Tp(e,t){if(Wo=br,e=Ba(),Ui(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,a=0,d=0,h=e,m=null;t:for(;;){for(var k;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),(k=h.firstChild)!==null;)m=h,h=k;for(;;){if(h===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++d===r&&(s=i),(k=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=k}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qo={focusedElem:e,selectionRange:n},br=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,R=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:ze(t.type,g),R);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(w){W(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return y=ws,ws=!1,y}function Un(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&&ui(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 si(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 Mc(e){var t=e.alternate;t!==null&&(e.alternate=null,Mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Be],delete t[Zn],delete t[Xo],delete t[cp],delete t[fp])),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 Ic(e){return e.tag===5||e.tag===3||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ic(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 ai(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=nl));else if(r!==4&&(e=e.child,e!==null))for(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}function ci(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(ci(e,t,n),e=e.sibling;e!==null;)ci(e,t,n),e=e.sibling}var te=null,Fe=!1;function nt(e,t,n){for(n=n.child;n!==null;)Uc(e,t,n),n=n.sibling}function Uc(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:ie||qt(n,t);case 6:var r=te,l=Fe;te=null,nt(e,t,n),te=r,Fe=l,te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?uo(e.parentNode,n):e.nodeType===1&&uo(e,n),Jn(e)):uo(te,n.stateNode));break;case 4:r=te,l=Fe,te=n.stateNode.containerInfo,Fe=!0,nt(e,t,n),te=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!ie&&(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)&&ui(n,t,i),l=l.next}while(l!==r)}nt(e,t,n);break;case 1:if(!ie&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}nt(e,t,n);break;case 21:nt(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,nt(e,t,n),ie=r):nt(e,t,n);break;default:nt(e,t,n)}}function ks(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pp),t.forEach(function(r){var l=Mp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Op(r/1960))-r,10e?16:e,ct===null)var r=!1;else{if(e=ct,ct=null,ml=0,D&6)throw Error(S(331));var l=D;for(D|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sJ()-ou?Lt(e,0):lu|=n),ye(e,t)}function Jc(e,t){t===0&&(e.mode&1?(t=Sr,Sr<<=1,!(Sr&130023424)&&(Sr=4194304)):t=1);var n=ae();e=be(e,t),e!==null&&(ur(e,t,n),ye(e,n))}function jp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jc(e,n)}function Mp(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),Jc(e,n)}var Xc;Xc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Cp(e,t,n);pe=!!(e.flags&131072)}else pe=!1,B&&t.flags&1048576&&qa(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$r(e,t),e=t.pendingProps;var l=un(t,ue.current);rn(t,n),l=Zi(null,t,r,e,l,n);var o=bi();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,me(r)?(o=!0,ll(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ji(t),l.updater=Nl,t.stateNode=l,l._reactInternals=t,ei(t,r,e,n),t=ri(null,t,r,!0,o,n)):(t.tag=0,B&&o&&Bi(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($r(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Up(r),e=ze(r,e),l){case 0:t=ni(null,t,r,e,n);break e;case 1:t=ys(null,t,r,e,n);break e;case 11:t=hs(null,t,r,e,n);break e;case 14:t=ms(null,t,r,ze(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:ze(r,l),ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),ys(e,t,r,l,n);case 3:e:{if(Lc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,tc(e,t),al(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=fn(Error(S(423)),t),t=vs(e,t,r,n,l);break e}else if(r!==l){l=fn(Error(S(424)),t),t=vs(e,t,r,n,l);break e}else for(ge=ht(t.stateNode.containerInfo.firstChild),we=t,B=!0,De=null,n=oc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===l){t=et(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return ic(t),e===null&&qo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Ko(r,l)?i=null:o!==null&&Ko(r,o)&&(t.flags|=32),Oc(e,t),se(e,t,i,n),t.child;case 6:return e===null&&qo(t),null;case 13:return zc(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),hs(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(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,j(ul,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!he.current){t=et(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=Ye(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Zo(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),Zo(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}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,rn(t,n),l=Te(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),ms(e,t,r,l,n);case 15:return Tc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),$r(e,t),t.tag=1,me(r)?(e=!0,ll(t)):e=!1,rn(t,n),rc(t,r,l),ei(t,r,l,n),ri(null,t,r,!0,e,n);case 19:return Fc(e,t,n);case 22:return Rc(e,t,n)}throw Error(S(156,t.tag))};function Yc(e,t){return ka(e,t)}function Ip(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 _e(e,t,n,r){return new Ip(e,t,n,r)}function au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Up(e){if(typeof e=="function")return au(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ti)return 11;if(e===Ri)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=_e(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 Wr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")au(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ht:return zt(n.children,l,o,t);case Pi:i=8,l|=8;break;case Co:return e=_e(12,n,t,l|2),e.elementType=Co,e.lanes=o,e;case _o:return e=_e(13,n,t,l),e.elementType=_o,e.lanes=o,e;case No:return e=_e(19,n,t,l),e.elementType=No,e.lanes=o,e;case la:return Ol(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case na:i=10;break e;case ra:i=9;break e;case Ti:i=11;break e;case Ri:i=14;break e;case ot:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=_e(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function zt(e,t,n,r){return e=_e(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=_e(22,e,r,t),e.elementType=la,e.lanes=n,e.stateNode={isHidden:!1},e}function yo(e,t,n){return e=_e(6,e,null,t),e.lanes=n,e}function vo(e,t,n){return t=_e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bp(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=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function cu(e,t,n,r,l,o,i,u,s){return e=new Bp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_e(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ji(o),e}function $p(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bc)}catch(e){console.error(e)}}bc(),qs.exports=ke;var Kp=qs.exports,Rs=Kp;Eo.createRoot=Rs.createRoot,Eo.hydrateRoot=Rs.hydrateRoot;function ef(e,t){return function(){return e.apply(t,arguments)}}const{toString:Jp}=Object.prototype,{getPrototypeOf:hu}=Object,Al=(e=>t=>{const n=Jp.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),We=e=>(e=e.toLowerCase(),t=>Al(t)===e),jl=e=>t=>typeof t===e,{isArray:vn}=Array,or=jl("undefined");function Xp(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&Pe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tf=We("ArrayBuffer");function Yp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tf(e.buffer),t}const Gp=jl("string"),Pe=jl("function"),nf=jl("number"),Ml=e=>e!==null&&typeof e=="object",qp=e=>e===!0||e===!1,Qr=e=>{if(Al(e)!=="object")return!1;const t=hu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Zp=We("Date"),bp=We("File"),eh=We("Blob"),th=We("FileList"),nh=e=>Ml(e)&&Pe(e.pipe),rh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pe(e.append)&&((t=Al(e))==="formdata"||t==="object"&&Pe(e.toString)&&e.toString()==="[object FormData]"))},lh=We("URLSearchParams"),oh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),vn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const lf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),of=e=>!or(e)&&e!==lf;function mi(){const{caseless:e}=of(this)&&this||{},t={},n=(r,l)=>{const o=e&&rf(t,l)||l;Qr(t[o])&&Qr(r)?t[o]=mi(t[o],r):Qr(r)?t[o]=mi({},r):vn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(fr(t,(l,o)=>{n&&Pe(l)?e[o]=ef(l,n):e[o]=l},{allOwnKeys:r}),e),uh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ah=(e,t,n,r)=>{let l,o,i;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&hu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ch=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fh=e=>{if(!e)return null;if(vn(e))return e;let t=e.length;if(!nf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hu(Uint8Array)),ph=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},hh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mh=We("HTMLFormElement"),yh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Os=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vh=We("RegExp"),uf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fr(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},gh=e=>{uf(e,(t,n)=>{if(Pe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wh=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return vn(e)?r(e):r(String(e).split(t)),n},Sh=()=>{},kh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),go="abcdefghijklmnopqrstuvwxyz",Ls="0123456789",sf={DIGIT:Ls,ALPHA:go,ALPHA_DIGIT:go+go.toUpperCase()+Ls},Eh=(e=16,t=sf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function xh(e){return!!(e&&Pe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ch=e=>{const t=new Array(10),n=(r,l)=>{if(Ml(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=vn(r)?[]:{};return fr(r,(i,u)=>{const s=n(i,l+1);!or(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},_h=We("AsyncFunction"),Nh=e=>e&&(Ml(e)||Pe(e))&&Pe(e.then)&&Pe(e.catch),v={isArray:vn,isArrayBuffer:tf,isBuffer:Xp,isFormData:rh,isArrayBufferView:Yp,isString:Gp,isNumber:nf,isBoolean:qp,isObject:Ml,isPlainObject:Qr,isUndefined:or,isDate:Zp,isFile:bp,isBlob:eh,isRegExp:vh,isFunction:Pe,isStream:nh,isURLSearchParams:lh,isTypedArray:dh,isFileList:th,forEach:fr,merge:mi,extend:ih,trim:oh,stripBOM:uh,inherits:sh,toFlatObject:ah,kindOf:Al,kindOfTest:We,endsWith:ch,toArray:fh,forEachEntry:ph,matchAll:hh,isHTMLForm:mh,hasOwnProperty:Os,hasOwnProp:Os,reduceDescriptors:uf,freezeMethods:gh,toObjectSet:wh,toCamelCase:yh,noop:Sh,toFiniteNumber:kh,findKey:rf,global:lf,isContextDefined:of,ALPHABET:sf,generateString:Eh,isSpecCompliantForm:xh,toJSONObject:Ch,isAsyncFn:_h,isThenable:Nh};function F(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}v.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const af=F.prototype,cf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cf[e]={value:e}});Object.defineProperties(F,cf);Object.defineProperty(af,"isAxiosError",{value:!0});F.from=(e,t,n,r,l,o)=>{const i=Object.create(af);return v.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),F.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Ph=null;function yi(e){return v.isPlainObject(e)||v.isArray(e)}function ff(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function zs(e,t,n){return e?e.concat(t).map(function(l,o){return l=ff(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function Th(e){return v.isArray(e)&&!e.some(yi)}const Rh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Il(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,R){return!v.isUndefined(R[g])});const r=n.metaTokens,l=n.visitor||d,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(l))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!s&&v.isBlob(y))throw new F("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?s&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,R){let f=y;if(y&&!R&&typeof y=="object"){if(v.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Th(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(f=v.toArray(y)))return g=ff(g),f.forEach(function(p,w){!(v.isUndefined(p)||p===null)&&t.append(i===!0?zs([g],w,o):i===null?g:g+"[]",a(p))}),!1}return yi(y)?!0:(t.append(zs(R,g,o),a(y)),!1)}const h=[],m=Object.assign(Rh,{defaultVisitor:d,convertValue:a,isVisitable:yi});function k(y,g){if(!v.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),v.forEach(y,function(f,c){(!(v.isUndefined(f)||f===null)&&l.call(t,f,v.isString(c)?c.trim():c,g,m))===!0&&k(f,g?g.concat(c):[c])}),h.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return k(e),t}function Fs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mu(e,t){this._pairs=[],e&&Il(e,this,t)}const df=mu.prototype;df.append=function(t,n){this._pairs.push([t,n])};df.toString=function(t){const n=t?function(r){return t.call(this,r,Fs)}:Fs;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function Oh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pf(e,t,n){if(!t)return e;const r=n&&n.encode||Oh,l=n&&n.serialize;let o;if(l?o=l(t,n):o=v.isURLSearchParams(t)?t.toString():new mu(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Lh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ds=Lh,hf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zh=typeof URLSearchParams<"u"?URLSearchParams:mu,Fh=typeof FormData<"u"?FormData:null,Dh=typeof Blob<"u"?Blob:null,Ah=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),jh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$e={isBrowser:!0,classes:{URLSearchParams:zh,FormData:Fh,Blob:Dh},isStandardBrowserEnv:Ah,isStandardBrowserWebWorkerEnv:jh,protocols:["http","https","file","blob","url","data"]};function Mh(e,t){return Il(e,new $e.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return $e.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ih(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Uh(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&v.isArray(l)?l.length:i,s?(v.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!v.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&v.isArray(l[i])&&(l[i]=Uh(l[i])),!u)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,l)=>{t(Ih(r),l,n,0)}),n}return null}function Bh(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const yu={transitional:hf,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return l&&l?JSON.stringify(mf(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mh(t,this.formSerializer).toString();if((u=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Il(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),Bh(t)):t}],transformResponse:[function(t){const n=this.transitional||yu.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&v.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?F.from(u,F.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{yu.headers[e]={}});const vu=yu,$h=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hh=e=>{const t={};let n,r,l;return e&&e.split(` -`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&$h[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},As=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function Kr(e){return e===!1||e==null?e:v.isArray(e)?e.map(Kr):String(e)}function Vh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wo(e,t,n,r,l){if(v.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function Qh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kh(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class Ul{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,a){const d=Tn(s);if(!d)throw new Error("header name must be a non-empty string");const h=v.findKey(l,d);(!h||l[h]===void 0||a===!0||a===void 0&&l[h]!==!1)&&(l[h||s]=Kr(u))}const i=(u,s)=>v.forEach(u,(a,d)=>o(a,d,s));return v.isPlainObject(t)||t instanceof this.constructor?i(t,n):v.isString(t)&&(t=t.trim())&&!Wh(t)?i(Hh(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Tn(t),t){const r=v.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return Vh(l);if(v.isFunction(n))return n.call(this,l,r);if(v.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Tn(i),i){const u=v.findKey(r,i);u&&(!n||wo(r,r[u],u,n))&&(delete r[u],l=!0)}}return v.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||wo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return v.forEach(this,(l,o)=>{const i=v.findKey(r,o);if(i){n[i]=Kr(l),delete n[o];return}const u=t?Qh(o):String(o).trim();u!==o&&delete n[o],n[u]=Kr(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[As]=this[As]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=Tn(i);r[u]||(Kh(l,i),r[u]=!0)}return v.isArray(t)?t.forEach(o):o(t),this}}Ul.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Ul.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});v.freezeMethods(Ul);const Ge=Ul;function So(e,t){const n=this||vu,r=t||n,l=Ge.from(r.headers);let o=r.data;return v.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function yf(e){return!!(e&&e.__CANCEL__)}function dr(e,t,n){F.call(this,e??"canceled",F.ERR_CANCELED,t,n),this.name="CanceledError"}v.inherits(dr,F,{__CANCEL__:!0});function Jh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Xh=$e.isStandardBrowserEnv?function(){return{write:function(n,r,l,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),v.isNumber(l)&&s.push("expires="+new Date(l).toGMTString()),v.isString(o)&&s.push("path="+o),v.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Yh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gh(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vf(e,t){return e&&!Yh(t)?Gh(e,t):t}const qh=$e.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(i){const u=v.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Zh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),d=r[o];i||(i=a),n[l]=s,r[l]=a;let h=o,m=0;for(;h!==l;)m+=n[h++],h=h%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{const o=l.loaded,i=l.lengthComputable?l.total:void 0,u=o-n,s=r(u),a=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&a?(i-o)/s:void 0,event:l};d[t?"download":"upload"]=!0,e(d)}}const em=typeof XMLHttpRequest<"u",tm=em&&function(e){return new Promise(function(n,r){let l=e.data;const o=Ge.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let a;v.isFormData(l)&&($e.isStandardBrowserEnv||$e.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?v.isString(a=o.getContentType())&&o.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let d=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+g))}const h=vf(e.baseURL,e.url);d.open(e.method.toUpperCase(),pf(h,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const y=Ge.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),R={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:y,config:e,request:d};Jh(function(c){n(c),s()},function(c){r(c),s()},R),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new F("Request aborted",F.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||hf;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new F(g,R.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,d)),d=null},$e.isStandardBrowserEnv){const y=(e.withCredentials||qh(h))&&e.xsrfCookieName&&Xh.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in d&&v.forEach(o.toJSON(),function(g,R){d.setRequestHeader(R,g)}),v.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",js(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",js(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{d&&(r(!y||y.type?new dr(null,e,d):y),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const k=Zh(h);if(k&&$e.protocols.indexOf(k)===-1){r(new F("Unsupported protocol "+k+":",F.ERR_BAD_REQUEST,e));return}d.send(l||null)})},vi={http:Ph,xhr:tm};v.forEach(vi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ms=e=>`- ${e}`,nm=e=>v.isFunction(e)||e===null||e===!1,gf={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function ho(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ti(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kp=typeof WeakMap=="function"?WeakMap:Map;function Nc(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hl||(hl=!0,fi=r),ti(e,t)},n}function Pc(e,t,n){n=Ye(-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(){ti(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ti(e,t),typeof r!="function"&&(yt===null?yt=new Set([this]):yt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function fs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kp;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=Ap.bind(null,e,t,n),t.then(e,e))}function ds(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 ps(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=Ye(-1,1),t.tag=2,mt(n,t,1))),n.lanes|=1),e)}var Ep=tt.ReactCurrentOwner,pe=!1;function se(e,t,n,r){t.child=e===null?oc(t,null,n,r):an(t,e.child,n,r)}function hs(e,t,n,r,l){n=n.render;var o=t.ref;return rn(t,l),r=Zi(e,t,n,r,o,l),n=bi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):(B&&n&&Bi(t),t.flags|=1,se(e,t,r,l),t.child)}function ms(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!au(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Tc(e,t,o,r,l)):(e=Wr(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:Yn,n(i,r)&&e.ref===t.ref)return et(e,t,l)}return t.flags|=1,e=gt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Tc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Yn(o,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,et(e,t,l)}return ni(e,t,n,r,l)}function Rc(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},j(Zt,ve),ve|=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,j(Zt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,j(Zt,ve),ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,j(Zt,ve),ve|=r;return se(e,t,l,n),t.child}function Oc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ni(e,t,n,r,l){var o=me(n)?Ft:ue.current;return o=un(t,o),rn(t,l),n=Zi(e,t,n,r,o,l),r=bi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):(B&&r&&Bi(t),t.flags|=1,se(e,t,n,l),t.child)}function ys(e,t,n,r,l){if(me(n)){var o=!0;ll(t)}else o=!1;if(rn(t,l),t.stateNode===null)$r(e,t),rc(t,n,r),ei(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Te(c):(c=me(n)?Ft:ue.current,c=un(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&us(t,i,r,c),it=!1;var m=t.memoizedState;i.state=m,al(t,r,i,l),s=t.memoizedState,u!==r||m!==s||he.current||it?(typeof f=="function"&&(bo(t,n,f,r),s=t.memoizedState),(u=it||is(t,n,u,r,m,s,c))?(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=c,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,tc(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:ze(t.type,u),i.props=c,h=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Te(s):(s=me(n)?Ft:ue.current,s=un(t,s));var k=n.getDerivedStateFromProps;(f=typeof k=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||m!==s)&&us(t,i,r,s),it=!1,m=t.memoizedState,i.state=m,al(t,r,i,l);var y=t.memoizedState;u!==h||m!==y||he.current||it?(typeof k=="function"&&(bo(t,n,k,r),y=t.memoizedState),(c=it||is(t,n,c,r,m,y,s)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return ri(e,t,n,r,o,l)}function ri(e,t,n,r,l,o){Oc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&ts(t,n,!1),et(e,t,o);r=t.stateNode,Ep.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=an(t,e.child,null,o),t.child=an(t,null,u,o)):se(e,t,u,o),t.memoizedState=r.state,l&&ts(t,n,!0),t.child}function Lc(e){var t=e.stateNode;t.pendingContext?es(e,t.pendingContext,t.pendingContext!==t.context):t.context&&es(e,t.context,!1),Xi(e,t.containerInfo)}function vs(e,t,n,r,l){return sn(),Hi(l),t.flags|=256,se(e,t,n,r),t.child}var li={dehydrated:null,treeContext:null,retryLane:0};function oi(e){return{baseLanes:e,cachePool:null,transitions:null}}function zc(e,t,n){var r=t.pendingProps,l=$.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),j($,l&1),e===null)return qo(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=Ol(i,r,0,null),e=zt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=oi(n),t.memoizedState=li,e):nu(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return xp(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=gt(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=gt(u,o):(o=zt(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?oi(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=li,r}return o=e.child,e=o.sibling,r=gt(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 nu(e,t){return t=Ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tr(e,t,n,r){return r!==null&&Hi(r),an(t,e.child,null,n),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xp(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=ho(Error(S(422))),Tr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Ol({mode:"visible",children:r.children},l,0,null),o=zt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&an(t,e.child,null,i),t.child.memoizedState=oi(i),t.memoizedState=li,o);if(!(t.mode&1))return Tr(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=ho(o,r,void 0),Tr(e,t,i,r)}if(u=(i&e.childLanes)!==0,pe||u){if(r=ee,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,be(e,l),je(r,e,l,-1))}return su(),r=ho(Error(S(421))),Tr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=jp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ge=ht(l.nextSibling),we=t,B=!0,De=null,e!==null&&(xe[Ce++]=Je,xe[Ce++]=Xe,xe[Ce++]=Dt,Je=e.id,Xe=e.overflow,Dt=t),t=nu(t,r.children),t.flags|=4096,t)}function gs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zo(e.return,t,n)}function mo(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 Fc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(se(e,t,r.children,n),r=$.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&&gs(e,n,t);else if(e.tag===19)gs(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(j($,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&cl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),mo(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&&cl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}mo(t,!0,n,null,o);break;case"together":mo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $r(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jt|=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=gt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cp(e,t,n){switch(t.tag){case 3:Lc(t),sn();break;case 5:ic(t);break;case 1:me(t.type)&&ll(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;j(ul,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(j($,$.current&1),t.flags|=128,null):n&t.child.childLanes?zc(e,t,n):(j($,$.current&1),e=et(e,t,n),e!==null?e.sibling:null);j($,$.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),j($,$.current),r)break;return null;case 22:case 23:return t.lanes=0,Rc(e,t,n)}return et(e,t,n)}var Dc,ii,Ac,jc;Dc=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}};ii=function(){};Ac=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ot(Ve.current);var o=null;switch(n){case"input":l=To(e,l),r=To(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=Lo(e,l),r=Lo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=nl)}Fo(n,r);var i;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Hn.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(s!=null||u!=null))if(c==="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(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Hn.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&M("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};jc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nn(e,t){if(!B)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 oe(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 _p(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return me(t.type)&&rl(),oe(t),null;case 3:return r=t.stateNode,cn(),I(he),I(ue),Gi(),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,De!==null&&(hi(De),De=null))),ii(e,t),oe(t),null;case 5:Yi(t);var l=Ot(er.current);if(n=t.type,e!==null&&t.stateNode!=null)Ac(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 oe(t),null}if(e=Ot(Ve.current),Nr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Be]=t,r[Zn]=o,e=(t.mode&1)!==0,n){case"dialog":M("cancel",r),M("close",r);break;case"iframe":case"object":case"embed":M("load",r);break;case"video":case"audio":for(l=0;l<\/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[Be]=t,e[Zn]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Do(n,r),n){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;ldn&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304)}else{if(!r)if(e=cl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!B)return oe(t),null}else 2*J()-o.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,Nn(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=J(),t.sibling=null,n=$.current,j($,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Np(e,t){switch($i(t),t.tag){case 1:return me(t.type)&&rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),I(he),I(ue),Gi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yi(t),null;case 13:if(I($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I($),null;case 4:return cn(),null;case 10:return Qi(t.type._context),null;case 22:case 23:return uu(),null;case 24:return null;default:return null}}var Rr=!1,ie=!1,Pp=typeof WeakSet=="function"?WeakSet:Set,x=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function ui(e,t,n){try{n()}catch(r){W(e,t,r)}}var ws=!1;function Tp(e,t){if(Wo=br,e=Ba(),Ui(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,c=0,f=0,h=e,m=null;t:for(;;){for(var k;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),(k=h.firstChild)!==null;)m=h,h=k;for(;;){if(h===e)break t;if(m===n&&++c===l&&(u=i),m===o&&++f===r&&(s=i),(k=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=k}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qo={focusedElem:e,selectionRange:n},br=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,R=y.memoizedState,d=t.stateNode,a=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:ze(t.type,v),R);d.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(w){W(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return y=ws,ws=!1,y}function Un(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&&ui(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 si(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 Mc(e){var t=e.alternate;t!==null&&(e.alternate=null,Mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Be],delete t[Zn],delete t[Xo],delete t[cp],delete t[fp])),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 Ic(e){return e.tag===5||e.tag===3||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ic(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 ai(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=nl));else if(r!==4&&(e=e.child,e!==null))for(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}function ci(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(ci(e,t,n),e=e.sibling;e!==null;)ci(e,t,n),e=e.sibling}var te=null,Fe=!1;function nt(e,t,n){for(n=n.child;n!==null;)Uc(e,t,n),n=n.sibling}function Uc(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:ie||qt(n,t);case 6:var r=te,l=Fe;te=null,nt(e,t,n),te=r,Fe=l,te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?uo(e.parentNode,n):e.nodeType===1&&uo(e,n),Jn(e)):uo(te,n.stateNode));break;case 4:r=te,l=Fe,te=n.stateNode.containerInfo,Fe=!0,nt(e,t,n),te=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!ie&&(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)&&ui(n,t,i),l=l.next}while(l!==r)}nt(e,t,n);break;case 1:if(!ie&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}nt(e,t,n);break;case 21:nt(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,nt(e,t,n),ie=r):nt(e,t,n);break;default:nt(e,t,n)}}function ks(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pp),t.forEach(function(r){var l=Mp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Op(r/1960))-r,10e?16:e,ct===null)var r=!1;else{if(e=ct,ct=null,ml=0,D&6)throw Error(S(331));var l=D;for(D|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sJ()-ou?Lt(e,0):lu|=n),ye(e,t)}function Jc(e,t){t===0&&(e.mode&1?(t=Sr,Sr<<=1,!(Sr&130023424)&&(Sr=4194304)):t=1);var n=ae();e=be(e,t),e!==null&&(ur(e,t,n),ye(e,n))}function jp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jc(e,n)}function Mp(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),Jc(e,n)}var Xc;Xc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Cp(e,t,n);pe=!!(e.flags&131072)}else pe=!1,B&&t.flags&1048576&&qa(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$r(e,t),e=t.pendingProps;var l=un(t,ue.current);rn(t,n),l=Zi(null,t,r,e,l,n);var o=bi();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,me(r)?(o=!0,ll(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ji(t),l.updater=Nl,t.stateNode=l,l._reactInternals=t,ei(t,r,e,n),t=ri(null,t,r,!0,o,n)):(t.tag=0,B&&o&&Bi(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($r(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Up(r),e=ze(r,e),l){case 0:t=ni(null,t,r,e,n);break e;case 1:t=ys(null,t,r,e,n);break e;case 11:t=hs(null,t,r,e,n);break e;case 14:t=ms(null,t,r,ze(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:ze(r,l),ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),ys(e,t,r,l,n);case 3:e:{if(Lc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,tc(e,t),al(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=fn(Error(S(423)),t),t=vs(e,t,r,n,l);break e}else if(r!==l){l=fn(Error(S(424)),t),t=vs(e,t,r,n,l);break e}else for(ge=ht(t.stateNode.containerInfo.firstChild),we=t,B=!0,De=null,n=oc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===l){t=et(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return ic(t),e===null&&qo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Ko(r,l)?i=null:o!==null&&Ko(r,o)&&(t.flags|=32),Oc(e,t),se(e,t,i,n),t.child;case 6:return e===null&&qo(t),null;case 13:return zc(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),hs(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(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,j(ul,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!he.current){t=et(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=Ye(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Zo(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),Zo(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}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,rn(t,n),l=Te(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),ms(e,t,r,l,n);case 15:return Tc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),$r(e,t),t.tag=1,me(r)?(e=!0,ll(t)):e=!1,rn(t,n),rc(t,r,l),ei(t,r,l,n),ri(null,t,r,!0,e,n);case 19:return Fc(e,t,n);case 22:return Rc(e,t,n)}throw Error(S(156,t.tag))};function Yc(e,t){return ka(e,t)}function Ip(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 _e(e,t,n,r){return new Ip(e,t,n,r)}function au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Up(e){if(typeof e=="function")return au(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ti)return 11;if(e===Ri)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=_e(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 Wr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")au(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ht:return zt(n.children,l,o,t);case Pi:i=8,l|=8;break;case Co:return e=_e(12,n,t,l|2),e.elementType=Co,e.lanes=o,e;case _o:return e=_e(13,n,t,l),e.elementType=_o,e.lanes=o,e;case No:return e=_e(19,n,t,l),e.elementType=No,e.lanes=o,e;case la:return Ol(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case na:i=10;break e;case ra:i=9;break e;case Ti:i=11;break e;case Ri:i=14;break e;case ot:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=_e(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function zt(e,t,n,r){return e=_e(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=_e(22,e,r,t),e.elementType=la,e.lanes=n,e.stateNode={isHidden:!1},e}function yo(e,t,n){return e=_e(6,e,null,t),e.lanes=n,e}function vo(e,t,n){return t=_e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bp(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=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function cu(e,t,n,r,l,o,i,u,s){return e=new Bp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_e(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ji(o),e}function $p(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bc)}catch(e){console.error(e)}}bc(),qs.exports=ke;var Kp=qs.exports,Rs=Kp;Eo.createRoot=Rs.createRoot,Eo.hydrateRoot=Rs.hydrateRoot;function ef(e,t){return function(){return e.apply(t,arguments)}}const{toString:Jp}=Object.prototype,{getPrototypeOf:hu}=Object,Al=(e=>t=>{const n=Jp.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),We=e=>(e=e.toLowerCase(),t=>Al(t)===e),jl=e=>t=>typeof t===e,{isArray:vn}=Array,or=jl("undefined");function Xp(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&Pe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tf=We("ArrayBuffer");function Yp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tf(e.buffer),t}const Gp=jl("string"),Pe=jl("function"),nf=jl("number"),Ml=e=>e!==null&&typeof e=="object",qp=e=>e===!0||e===!1,Qr=e=>{if(Al(e)!=="object")return!1;const t=hu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Zp=We("Date"),bp=We("File"),eh=We("Blob"),th=We("FileList"),nh=e=>Ml(e)&&Pe(e.pipe),rh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pe(e.append)&&((t=Al(e))==="formdata"||t==="object"&&Pe(e.toString)&&e.toString()==="[object FormData]"))},lh=We("URLSearchParams"),oh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),vn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const lf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),of=e=>!or(e)&&e!==lf;function mi(){const{caseless:e}=of(this)&&this||{},t={},n=(r,l)=>{const o=e&&rf(t,l)||l;Qr(t[o])&&Qr(r)?t[o]=mi(t[o],r):Qr(r)?t[o]=mi({},r):vn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(fr(t,(l,o)=>{n&&Pe(l)?e[o]=ef(l,n):e[o]=l},{allOwnKeys:r}),e),uh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ah=(e,t,n,r)=>{let l,o,i;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&hu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ch=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fh=e=>{if(!e)return null;if(vn(e))return e;let t=e.length;if(!nf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hu(Uint8Array)),ph=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},hh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mh=We("HTMLFormElement"),yh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Os=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vh=We("RegExp"),uf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fr(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},gh=e=>{uf(e,(t,n)=>{if(Pe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wh=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return vn(e)?r(e):r(String(e).split(t)),n},Sh=()=>{},kh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),go="abcdefghijklmnopqrstuvwxyz",Ls="0123456789",sf={DIGIT:Ls,ALPHA:go,ALPHA_DIGIT:go+go.toUpperCase()+Ls},Eh=(e=16,t=sf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function xh(e){return!!(e&&Pe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ch=e=>{const t=new Array(10),n=(r,l)=>{if(Ml(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=vn(r)?[]:{};return fr(r,(i,u)=>{const s=n(i,l+1);!or(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},_h=We("AsyncFunction"),Nh=e=>e&&(Ml(e)||Pe(e))&&Pe(e.then)&&Pe(e.catch),g={isArray:vn,isArrayBuffer:tf,isBuffer:Xp,isFormData:rh,isArrayBufferView:Yp,isString:Gp,isNumber:nf,isBoolean:qp,isObject:Ml,isPlainObject:Qr,isUndefined:or,isDate:Zp,isFile:bp,isBlob:eh,isRegExp:vh,isFunction:Pe,isStream:nh,isURLSearchParams:lh,isTypedArray:dh,isFileList:th,forEach:fr,merge:mi,extend:ih,trim:oh,stripBOM:uh,inherits:sh,toFlatObject:ah,kindOf:Al,kindOfTest:We,endsWith:ch,toArray:fh,forEachEntry:ph,matchAll:hh,isHTMLForm:mh,hasOwnProperty:Os,hasOwnProp:Os,reduceDescriptors:uf,freezeMethods:gh,toObjectSet:wh,toCamelCase:yh,noop:Sh,toFiniteNumber:kh,findKey:rf,global:lf,isContextDefined:of,ALPHABET:sf,generateString:Eh,isSpecCompliantForm:xh,toJSONObject:Ch,isAsyncFn:_h,isThenable:Nh};function F(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}g.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const af=F.prototype,cf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cf[e]={value:e}});Object.defineProperties(F,cf);Object.defineProperty(af,"isAxiosError",{value:!0});F.from=(e,t,n,r,l,o)=>{const i=Object.create(af);return g.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),F.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Ph=null;function yi(e){return g.isPlainObject(e)||g.isArray(e)}function ff(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function zs(e,t,n){return e?e.concat(t).map(function(l,o){return l=ff(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function Th(e){return g.isArray(e)&&!e.some(yi)}const Rh=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function Il(e,t,n){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,R){return!g.isUndefined(R[v])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(t);if(!g.isFunction(l))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(g.isDate(y))return y.toISOString();if(!s&&g.isBlob(y))throw new F("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(y)||g.isTypedArray(y)?s&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,v,R){let d=y;if(y&&!R&&typeof y=="object"){if(g.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(g.isArray(y)&&Th(y)||(g.isFileList(y)||g.endsWith(v,"[]"))&&(d=g.toArray(y)))return v=ff(v),d.forEach(function(p,w){!(g.isUndefined(p)||p===null)&&t.append(i===!0?zs([v],w,o):i===null?v:v+"[]",c(p))}),!1}return yi(y)?!0:(t.append(zs(R,v,o),c(y)),!1)}const h=[],m=Object.assign(Rh,{defaultVisitor:f,convertValue:c,isVisitable:yi});function k(y,v){if(!g.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(y),g.forEach(y,function(d,a){(!(g.isUndefined(d)||d===null)&&l.call(t,d,g.isString(a)?a.trim():a,v,m))===!0&&k(d,v?v.concat(a):[a])}),h.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return k(e),t}function Fs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mu(e,t){this._pairs=[],e&&Il(e,this,t)}const df=mu.prototype;df.append=function(t,n){this._pairs.push([t,n])};df.toString=function(t){const n=t?function(r){return t.call(this,r,Fs)}:Fs;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function Oh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pf(e,t,n){if(!t)return e;const r=n&&n.encode||Oh,l=n&&n.serialize;let o;if(l?o=l(t,n):o=g.isURLSearchParams(t)?t.toString():new mu(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Lh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){g.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ds=Lh,hf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zh=typeof URLSearchParams<"u"?URLSearchParams:mu,Fh=typeof FormData<"u"?FormData:null,Dh=typeof Blob<"u"?Blob:null,Ah=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),jh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$e={isBrowser:!0,classes:{URLSearchParams:zh,FormData:Fh,Blob:Dh},isStandardBrowserEnv:Ah,isStandardBrowserWebWorkerEnv:jh,protocols:["http","https","file","blob","url","data"]};function Mh(e,t){return Il(e,new $e.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return $e.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ih(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Uh(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&g.isArray(l)?l.length:i,s?(g.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!g.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&g.isArray(l[i])&&(l[i]=Uh(l[i])),!u)}if(g.isFormData(e)&&g.isFunction(e.entries)){const n={};return g.forEachEntry(e,(r,l)=>{t(Ih(r),l,n,0)}),n}return null}function Bh(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const yu={transitional:hf,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=g.isObject(t);if(o&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return l&&l?JSON.stringify(mf(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mh(t,this.formSerializer).toString();if((u=g.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Il(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),Bh(t)):t}],transformResponse:[function(t){const n=this.transitional||yu.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&g.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?F.from(u,F.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{yu.headers[e]={}});const vu=yu,$h=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hh=e=>{const t={};let n,r,l;return e&&e.split(` +`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&$h[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},As=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function Kr(e){return e===!1||e==null?e:g.isArray(e)?e.map(Kr):String(e)}function Vh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wo(e,t,n,r,l){if(g.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!g.isString(t)){if(g.isString(r))return t.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(t)}}function Qh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kh(e,t){const n=g.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class Ul{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,c){const f=Tn(s);if(!f)throw new Error("header name must be a non-empty string");const h=g.findKey(l,f);(!h||l[h]===void 0||c===!0||c===void 0&&l[h]!==!1)&&(l[h||s]=Kr(u))}const i=(u,s)=>g.forEach(u,(c,f)=>o(c,f,s));return g.isPlainObject(t)||t instanceof this.constructor?i(t,n):g.isString(t)&&(t=t.trim())&&!Wh(t)?i(Hh(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Tn(t),t){const r=g.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return Vh(l);if(g.isFunction(n))return n.call(this,l,r);if(g.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const r=g.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Tn(i),i){const u=g.findKey(r,i);u&&(!n||wo(r,r[u],u,n))&&(delete r[u],l=!0)}}return g.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||wo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return g.forEach(this,(l,o)=>{const i=g.findKey(r,o);if(i){n[i]=Kr(l),delete n[o];return}const u=t?Qh(o):String(o).trim();u!==o&&delete n[o],n[u]=Kr(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return g.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&g.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[As]=this[As]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=Tn(i);r[u]||(Kh(l,i),r[u]=!0)}return g.isArray(t)?t.forEach(o):o(t),this}}Ul.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(Ul.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});g.freezeMethods(Ul);const Ge=Ul;function So(e,t){const n=this||vu,r=t||n,l=Ge.from(r.headers);let o=r.data;return g.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function yf(e){return!!(e&&e.__CANCEL__)}function dr(e,t,n){F.call(this,e??"canceled",F.ERR_CANCELED,t,n),this.name="CanceledError"}g.inherits(dr,F,{__CANCEL__:!0});function Jh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Xh=$e.isStandardBrowserEnv?function(){return{write:function(n,r,l,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),g.isNumber(l)&&s.push("expires="+new Date(l).toGMTString()),g.isString(o)&&s.push("path="+o),g.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Yh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gh(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vf(e,t){return e&&!Yh(t)?Gh(e,t):t}const qh=$e.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(i){const u=g.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Zh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),f=r[o];i||(i=c),n[l]=s,r[l]=c;let h=o,m=0;for(;h!==l;)m+=n[h++],h=h%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),c-i{const o=l.loaded,i=l.lengthComputable?l.total:void 0,u=o-n,s=r(u),c=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&c?(i-o)/s:void 0,event:l};f[t?"download":"upload"]=!0,e(f)}}const em=typeof XMLHttpRequest<"u",tm=em&&function(e){return new Promise(function(n,r){let l=e.data;const o=Ge.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;g.isFormData(l)&&($e.isStandardBrowserEnv||$e.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?g.isString(c=o.getContentType())&&o.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+v))}const h=vf(e.baseURL,e.url);f.open(e.method.toUpperCase(),pf(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function m(){if(!f)return;const y=Ge.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),R={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};Jh(function(a){n(a),s()},function(a){r(a),s()},R),f=null}if("onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(m)},f.onabort=function(){f&&(r(new F("Request aborted",F.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||hf;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new F(v,R.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,f)),f=null},$e.isStandardBrowserEnv){const y=(e.withCredentials||qh(h))&&e.xsrfCookieName&&Xh.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in f&&g.forEach(o.toJSON(),function(v,R){f.setRequestHeader(R,v)}),g.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",js(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",js(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{f&&(r(!y||y.type?new dr(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const k=Zh(h);if(k&&$e.protocols.indexOf(k)===-1){r(new F("Unsupported protocol "+k+":",F.ERR_BAD_REQUEST,e));return}f.send(l||null)})},vi={http:Ph,xhr:tm};g.forEach(vi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ms=e=>`- ${e}`,nm=e=>g.isFunction(e)||e===null||e===!1,gf={getAdapter:e=>{e=g.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Ms).join(` -`):" "+Ms(o[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:vi};function ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dr(null,e)}function Is(e){return ko(e),e.headers=Ge.from(e.headers),e.data=So.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gf.getAdapter(e.adapter||vu.adapter)(e).then(function(r){return ko(e),r.data=So.call(e,e.transformResponse,r),r.headers=Ge.from(r.headers),r},function(r){return yf(r)||(ko(e),r&&r.response&&(r.response.data=So.call(e,e.transformResponse,r.response),r.response.headers=Ge.from(r.response.headers))),Promise.reject(r)})}const Us=e=>e instanceof Ge?e.toJSON():e;function pn(e,t){t=t||{};const n={};function r(a,d,h){return v.isPlainObject(a)&&v.isPlainObject(d)?v.merge.call({caseless:h},a,d):v.isPlainObject(d)?v.merge({},d):v.isArray(d)?d.slice():d}function l(a,d,h){if(v.isUndefined(d)){if(!v.isUndefined(a))return r(void 0,a,h)}else return r(a,d,h)}function o(a,d){if(!v.isUndefined(d))return r(void 0,d)}function i(a,d){if(v.isUndefined(d)){if(!v.isUndefined(a))return r(void 0,a)}else return r(void 0,d)}function u(a,d,h){if(h in t)return r(a,d);if(h in e)return r(void 0,a)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(a,d)=>l(Us(a),Us(d),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=s[d]||l,m=h(e[d],t[d],d);v.isUndefined(m)&&h!==u||(n[d]=m)}),n}const wf="1.5.1",gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bs={};gu.transitional=function(t,n,r){function l(o,i){return"[Axios v"+wf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new F(l(i," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!Bs[i]&&(Bs[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function rm(e,t,n){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new F("option "+o+" must be "+s,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+o,F.ERR_BAD_OPTION)}}const gi={assertOptions:rm,validators:gu},rt=gi.validators;class gl{constructor(t){this.defaults=t,this.interceptors={request:new Ds,response:new Ds}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&gi.assertOptions(r,{silentJSONParsing:rt.transitional(rt.boolean),forcedJSONParsing:rt.transitional(rt.boolean),clarifyTimeoutError:rt.transitional(rt.boolean)},!1),l!=null&&(v.isFunction(l)?n.paramsSerializer={serialize:l}:gi.assertOptions(l,{encode:rt.function,serialize:rt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&v.merge(o.common,o[n.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Ge.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let d,h=0,m;if(!s){const y=[Is.bind(this),void 0];for(y.unshift.apply(y,u),y.push.apply(y,a),m=y.length,d=Promise.resolve(n);h{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new dr(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new wu(function(l){t=l}),cancel:t}}}const lm=wu;function om(e){return function(n){return e.apply(null,n)}}function im(e){return v.isObject(e)&&e.isAxiosError===!0}const wi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wi).forEach(([e,t])=>{wi[t]=e});const um=wi;function Sf(e){const t=new Jr(e),n=ef(Jr.prototype.request,t);return v.extend(n,Jr.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Sf(pn(e,l))},n}const Y=Sf(vu);Y.Axios=Jr;Y.CanceledError=dr;Y.CancelToken=lm;Y.isCancel=yf;Y.VERSION=wf;Y.toFormData=Il;Y.AxiosError=F;Y.Cancel=Y.CanceledError;Y.all=function(t){return Promise.all(t)};Y.spread=om;Y.isAxiosError=im;Y.mergeConfig=pn;Y.AxiosHeaders=Ge;Y.formToJSON=e=>mf(v.isHTMLForm(e)?new FormData(e):e);Y.getAdapter=gf.getAdapter;Y.HttpStatusCode=um;Y.default=Y;const Bl=Y,$l="/api/persons",sm=()=>Bl.get($l).then(t=>t.data),am=e=>Bl.post($l,e).then(n=>n.data),cm=e=>Bl.delete(`${$l}/${e}`).then(n=>n.data),fm=(e,t)=>Bl.put(`${$l}/${e}`,t).then(r=>r.data),zr={getAll:sm,addPerson:am,deletePerson:cm,updateNumber:fm},dm=({filterText:e,changeFunction:t})=>U.jsxs("div",{children:["filter shown with ",U.jsx("input",{value:e,onChange:t})]}),pm=({submitFunction:e,nameValue:t,nameChangeFunction:n,numberValue:r,numberChangeFunction:l})=>U.jsxs("form",{onSubmit:e,children:[U.jsxs("div",{children:["name: ",U.jsx("input",{value:t,onChange:n})]}),U.jsxs("div",{children:["number: ",U.jsx("input",{value:r,onChange:l})]}),U.jsx("div",{children:U.jsx("button",{type:"submit",children:"add"})})]}),hm=({handleClick:e,text:t})=>U.jsx("button",{onClick:e,children:t}),mm=({person:e,deleteFunction:t})=>U.jsxs("li",{children:[e.name," ",e.number," ",U.jsx(hm,{handleClick:()=>t(e.id),text:"delete"})]}),ym=({filteredPersons:e,deleteFunction:t})=>U.jsx("ul",{children:e.map(n=>U.jsx(mm,{person:n,deleteFunction:t},n.name))}),vm=({message:e,type:t})=>e===null||t==null?null:U.jsx("div",{className:"notification "+t,children:e}),gm=()=>{const[e,t]=lt.useState([]),[n,r]=lt.useState(""),[l,o]=lt.useState(""),[i,u]=lt.useState(""),[s,a]=lt.useState({message:null,type:null});lt.useEffect(()=>{zr.getAll().then(f=>{t(f)})},[]);const d=f=>{r(f.target.value)},h=f=>{o(f.target.value)},m=f=>{u(f.target.value)},k=f=>{f.preventDefault();const c=e.some(w=>w.name==n),p=e.some(w=>w.name==n&&w.number!=l);if(c&&!p)g(n,"alreadyAdded");else if(c&&p){if(window.confirm(`${n} is already added to phonebook, replace the old number with the new one?`)){const w=e.find(_=>_.name==n);console.log("needs to be updated",w.name);const E={...w,number:l};zr.updateNumber(w.id,E).then(_=>{t(e.map(N=>N.id!==w.id?N:_)),g(n,"update"),r(""),o("")}).catch(_=>{g(n,"alreadyDeleted"),r(""),o(""),t(e)})}}else{const w={name:n,number:l};zr.addPerson(w).then(E=>{t(e.concat(E)),r(""),o("")}),g(n,"add")}},y=f=>{const c=e.find(p=>p.id===f);if(window.confirm(`Do you really want to delete ${c.name}?`)){console.log(`Deleted ${c.name}`),zr.deletePerson(f);const p=e.filter(w=>w.id!==f);t(p),g(c.name,"delete")}},g=(f,c)=>{switch(c){case"add":a({message:`${f} successfully added`,type:"info"});break;case"delete":a({message:`${f} successfully deleted`,type:"info"});break;case"update":a({message:`${f} successfully updated`,type:"info"});break;case"alreadyAdded":a({message:`${f} is already added to phonebook`,type:"error"});break;case"alreadyDeleted":a({message:`update failed, ${f} has already been deleted from server`,type:"error"});break}setTimeout(()=>{a({message:null,type:null})},5e3)},R=i===""?e:e.filter(f=>f.name.toLowerCase().includes(i));return U.jsxs("div",{children:[U.jsx(vm,{message:s.message,type:s.type}),U.jsx("h2",{children:"Phonebook"}),U.jsx(dm,{filterText:i,changeFunction:m}),U.jsx("h3",{children:"Add a new"}),U.jsx(pm,{submitFunction:k,nameValue:n,nameChangeFunction:d,numberValue:l,numberChangeFunction:h}),U.jsx("h2",{children:"Numbers"}),U.jsx(ym,{filteredPersons:R,deleteFunction:y})]})};Eo.createRoot(document.getElementById("root")).render(U.jsx(gm,{})); +`):" "+Ms(o[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:vi};function ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dr(null,e)}function Is(e){return ko(e),e.headers=Ge.from(e.headers),e.data=So.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gf.getAdapter(e.adapter||vu.adapter)(e).then(function(r){return ko(e),r.data=So.call(e,e.transformResponse,r),r.headers=Ge.from(r.headers),r},function(r){return yf(r)||(ko(e),r&&r.response&&(r.response.data=So.call(e,e.transformResponse,r.response),r.response.headers=Ge.from(r.response.headers))),Promise.reject(r)})}const Us=e=>e instanceof Ge?e.toJSON():e;function pn(e,t){t=t||{};const n={};function r(c,f,h){return g.isPlainObject(c)&&g.isPlainObject(f)?g.merge.call({caseless:h},c,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function l(c,f,h){if(g.isUndefined(f)){if(!g.isUndefined(c))return r(void 0,c,h)}else return r(c,f,h)}function o(c,f){if(!g.isUndefined(f))return r(void 0,f)}function i(c,f){if(g.isUndefined(f)){if(!g.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function u(c,f,h){if(h in t)return r(c,f);if(h in e)return r(void 0,c)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(c,f)=>l(Us(c),Us(f),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=s[f]||l,m=h(e[f],t[f],f);g.isUndefined(m)&&h!==u||(n[f]=m)}),n}const wf="1.5.1",gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bs={};gu.transitional=function(t,n,r){function l(o,i){return"[Axios v"+wf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new F(l(i," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!Bs[i]&&(Bs[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function rm(e,t,n){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new F("option "+o+" must be "+s,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+o,F.ERR_BAD_OPTION)}}const gi={assertOptions:rm,validators:gu},rt=gi.validators;class gl{constructor(t){this.defaults=t,this.interceptors={request:new Ds,response:new Ds}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&gi.assertOptions(r,{silentJSONParsing:rt.transitional(rt.boolean),forcedJSONParsing:rt.transitional(rt.boolean),clarifyTimeoutError:rt.transitional(rt.boolean)},!1),l!=null&&(g.isFunction(l)?n.paramsSerializer={serialize:l}:gi.assertOptions(l,{encode:rt.function,serialize:rt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[n.method]);o&&g.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Ge.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let f,h=0,m;if(!s){const y=[Is.bind(this),void 0];for(y.unshift.apply(y,u),y.push.apply(y,c),m=y.length,f=Promise.resolve(n);h{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new dr(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new wu(function(l){t=l}),cancel:t}}}const lm=wu;function om(e){return function(n){return e.apply(null,n)}}function im(e){return g.isObject(e)&&e.isAxiosError===!0}const wi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wi).forEach(([e,t])=>{wi[t]=e});const um=wi;function Sf(e){const t=new Jr(e),n=ef(Jr.prototype.request,t);return g.extend(n,Jr.prototype,t,{allOwnKeys:!0}),g.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Sf(pn(e,l))},n}const Y=Sf(vu);Y.Axios=Jr;Y.CanceledError=dr;Y.CancelToken=lm;Y.isCancel=yf;Y.VERSION=wf;Y.toFormData=Il;Y.AxiosError=F;Y.Cancel=Y.CanceledError;Y.all=function(t){return Promise.all(t)};Y.spread=om;Y.isAxiosError=im;Y.mergeConfig=pn;Y.AxiosHeaders=Ge;Y.formToJSON=e=>mf(g.isHTMLForm(e)?new FormData(e):e);Y.getAdapter=gf.getAdapter;Y.HttpStatusCode=um;Y.default=Y;const Bl=Y,$l="/api/persons",sm=()=>Bl.get($l).then(t=>t.data),am=e=>Bl.post($l,e).then(n=>n.data),cm=e=>Bl.delete(`${$l}/${e}`).then(n=>n.data),fm=(e,t)=>Bl.put(`${$l}/${e}`,t).then(r=>r.data),zr={getAll:sm,addPerson:am,deletePerson:cm,updateNumber:fm},dm=({filterText:e,changeFunction:t})=>U.jsxs("div",{children:["filter shown with ",U.jsx("input",{value:e,onChange:t})]}),pm=({submitFunction:e,nameValue:t,nameChangeFunction:n,numberValue:r,numberChangeFunction:l})=>U.jsxs("form",{onSubmit:e,children:[U.jsxs("div",{children:["name: ",U.jsx("input",{value:t,onChange:n})]}),U.jsxs("div",{children:["number: ",U.jsx("input",{value:r,onChange:l})]}),U.jsx("div",{children:U.jsx("button",{type:"submit",children:"add"})})]}),hm=({handleClick:e,text:t})=>U.jsx("button",{onClick:e,children:t}),mm=({person:e,deleteFunction:t})=>U.jsxs("li",{children:[e.name," ",e.number," ",U.jsx(hm,{handleClick:()=>t(e.id),text:"delete"})]}),ym=({filteredPersons:e,deleteFunction:t})=>U.jsx("ul",{children:e.map(n=>U.jsx(mm,{person:n,deleteFunction:t},n.name))}),vm=({message:e,type:t})=>e===null||t==null?null:U.jsx("div",{className:"notification "+t,children:e}),gm=()=>{const[e,t]=lt.useState([]),[n,r]=lt.useState(""),[l,o]=lt.useState(""),[i,u]=lt.useState(""),[s,c]=lt.useState({message:null,type:null});lt.useEffect(()=>{zr.getAll().then(d=>{t(d)})},[]);const f=d=>{r(d.target.value)},h=d=>{o(d.target.value)},m=d=>{u(d.target.value)},k=d=>{d.preventDefault();const a=e.some(w=>w.name==n),p=e.some(w=>w.name==n&&w.number!=l);if(a&&!p)v("alreadyAdded",n);else if(a&&p){if(window.confirm(`${n} is already added to phonebook, replace the old number with the new one?`)){const w=e.find(C=>C.name==n),E={...w,number:l};zr.updateNumber(w.id,E).then(C=>{t(e.map(N=>N.id!==w.id?N:C)),v("update",n),r(""),o("")}).catch(C=>{console.error("ERROR",C),C.response.status===400?v("invalid",void 0,C.response.data.error):v("alreadyDeleted",n),r(""),o(""),t(e)})}}else{const w={name:n,number:l};zr.addPerson(w).then(E=>{t(e.concat(E)),r(""),o(""),v("add",n)}).catch(E=>{console.log(E.response.data),v("invalid",void 0,E.response.data.error)})}},y=d=>{const a=e.find(p=>p.id===d);if(window.confirm(`Do you really want to delete ${a.name}?`)){console.log(`Deleted ${a.name}`),zr.deletePerson(d);const p=e.filter(w=>w.id!==d);t(p),v("delete",a.name)}},v=(d,a=void 0,p=void 0)=>{switch(d){case"add":c({message:`${a} successfully added`,type:"info"});break;case"delete":c({message:`${a} successfully deleted`,type:"info"});break;case"update":c({message:`${a} successfully updated`,type:"info"});break;case"alreadyAdded":c({message:`${a} is already added to phonebook`,type:"error"});break;case"alreadyDeleted":c({message:`update failed, ${a} has already been deleted from server`,type:"error"});break;case"invalid":c({message:p,type:"error"});break}setTimeout(()=>{c({message:null,type:null})},5e3)},R=i===""?e:e.filter(d=>d.name.toLowerCase().includes(i));return U.jsxs("div",{children:[U.jsx(vm,{message:s.message,type:s.type}),U.jsx("h2",{children:"Phonebook"}),U.jsx(dm,{filterText:i,changeFunction:m}),U.jsx("h3",{children:"Add a new"}),U.jsx(pm,{submitFunction:k,nameValue:n,nameChangeFunction:f,numberValue:l,numberChangeFunction:h}),U.jsx("h2",{children:"Numbers"}),U.jsx(ym,{filteredPersons:R,deleteFunction:y})]})};Eo.createRoot(document.getElementById("root")).render(U.jsx(gm,{})); diff --git a/dist/index.html b/dist/index.html index a6ee673..069a2dd 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Vite + React - + diff --git a/index.js b/index.js index 7f4c8c7..b2f1480 100644 --- a/index.js +++ b/index.js @@ -10,10 +10,10 @@ app.use(cors()) app.use(morgan(function (tokens, req, res) { let log = [tokens.method(req, res), - tokens.url(req, res), - tokens.status(req, res), - tokens.res(req, res, 'content-length'), '-', - tokens['response-time'](req, res), 'ms '].join(' ') + tokens.url(req, res), + tokens.status(req, res), + tokens.res(req, res, 'content-length'), '-', + tokens['response-time'](req, res), 'ms '].join(' ') return (tokens.method(req, res) !== 'POST') ? log : log.concat(JSON.stringify(req.body)) })) diff --git a/package.json b/package.json index dd500ae..529022a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "dev": "nodemon index.js", "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 1", - "lint": "eslint ." + "lint": "eslint .", + "build:ui": "rm -rf dist && cd ../fullstack/osa2/puhelinluettelo && npm run build && cp -r dist ../../../fullstack-osa3", + "deploy:full": "npm run build:ui && git add . && git commit -m uibuild && git push" }, "author": "Linda Wederhorn", "license": "MIT",