diff --git a/client/dist/assets/index-D2qPeAMt.js b/client/dist/assets/index-CX7orlQh.js similarity index 86% rename from client/dist/assets/index-D2qPeAMt.js rename to client/dist/assets/index-CX7orlQh.js index 6e8c87c7..449c655b 100644 --- a/client/dist/assets/index-D2qPeAMt.js +++ b/client/dist/assets/index-CX7orlQh.js @@ -1,4 +1,4 @@ -function Y2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _y={exports:{}},Nc={},Ly={exports:{}},_e={};/** +function Y2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Iy={exports:{}},Nc={},Ly={exports:{}},Ie={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Y2(e,t){for(var n=0;n>>1,T=I[v];if(0>>1;vo(N,$))Ho(j,N)?(I[v]=j,I[H]=$,v=H):(I[v]=N,I[_]=$,v=_);else if(Ho(j,$))I[v]=j,I[H]=$,v=H;else break e}}return B}function o(I,B){var $=I.sortIndex-B.sortIndex;return $!==0?$:I.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,m=3,w=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=I)r(c),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(c)}}function C(I){if(x=!1,b(I),!y)if(n(l)!==null)y=!0,J(R);else{var B=n(c);B!==null&&re(C,B.startTime-I)}}function R(I,B){y=!1,x&&(x=!1,g(M),M=-1),w=!0;var $=m;try{for(b(B),f=n(l);f!==null&&(!(f.expirationTime>B)||I&&!F());){var v=f.callback;if(typeof v=="function"){f.callback=null,m=f.priorityLevel;var T=v(f.expirationTime<=B);B=e.unstable_now(),typeof T=="function"?f.callback=T:f===n(l)&&r(l),b(B)}else r(l);f=n(l)}if(f!==null)var L=!0;else{var _=n(c);_!==null&&re(C,_.startTime-B),L=!1}return L}finally{f=null,m=$,w=!1}}var E=!1,P=null,M=-1,D=5,O=-1;function F(){return!(e.unstable_now()-OI||125v?(I.sortIndex=$,t(c,I),n(l)===null&&I===n(c)&&(x?(g(M),M=-1):x=!0,re(C,$-v))):(I.sortIndex=T,t(l,I),y||w||(y=!0,J(R))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var B=m;return function(){var $=m;m=B;try{return I.apply(this,arguments)}finally{m=$}}}})(Gy);qy.exports=Gy;var vS=qy.exports;/** + */(function(e){function t(_,B){var $=_.length;_.push(B);e:for(;0<$;){var v=$-1>>>1,T=_[v];if(0>>1;vo(N,$))Ho(j,N)?(_[v]=j,_[H]=$,v=H):(_[v]=N,_[I]=$,v=I);else if(Ho(j,$))_[v]=j,_[H]=$,v=H;else break e}}return B}function o(_,B){var $=_.sortIndex-B.sortIndex;return $!==0?$:_.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,m=3,w=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(_){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=_)r(c),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(c)}}function C(_){if(x=!1,b(_),!y)if(n(l)!==null)y=!0,J(R);else{var B=n(c);B!==null&&oe(C,B.startTime-_)}}function R(_,B){y=!1,x&&(x=!1,g(M),M=-1),w=!0;var $=m;try{for(b(B),f=n(l);f!==null&&(!(f.expirationTime>B)||_&&!F());){var v=f.callback;if(typeof v=="function"){f.callback=null,m=f.priorityLevel;var T=v(f.expirationTime<=B);B=e.unstable_now(),typeof T=="function"?f.callback=T:f===n(l)&&r(l),b(B)}else r(l);f=n(l)}if(f!==null)var L=!0;else{var I=n(c);I!==null&&oe(C,I.startTime-B),L=!1}return L}finally{f=null,m=$,w=!1}}var E=!1,P=null,M=-1,D=5,O=-1;function F(){return!(e.unstable_now()-O_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var B=3;break;default:B=m}var $=m;m=B;try{return _()}finally{m=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var $=m;m=_;try{return B()}finally{m=$}},e.unstable_scheduleCallback=function(_,B,$){var v=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?v+$:v):$=v,_){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=$+T,_={id:d++,callback:B,priorityLevel:_,startTime:$,expirationTime:T,sortIndex:-1},$>v?(_.sortIndex=$,t(c,_),n(l)===null&&_===n(c)&&(x?(g(M),M=-1):x=!0,oe(C,$-v))):(_.sortIndex=T,t(l,_),y||w||(y=!0,J(R))),_},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(_){var B=m;return function(){var $=m;m=B;try{return _.apply(this,arguments)}finally{m=$}}}})(Gy);qy.exports=Gy;var vS=qy.exports;/** * @license React * react-dom.production.min.js * @@ -34,12 +34,12 @@ function Y2(e,t){for(var n=0;ns||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pa(e):""}function CS(e){switch(e.tag){case 5:return Pa(e.type);case 16:return Pa("Lazy");case 13:return Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 2:case 15:return e=hd(e.type,!1),e;case 11:return e=hd(e.type.render,!1),e;case 1:return e=hd(e.type,!0),e;default:return""}}function mf(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 ai:return"Fragment";case ii:return"Portal";case ff:return"Profiler";case Hp:return"StrictMode";case pf:return"Suspense";case hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function kS(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 mf(t);case 8:return t===Hp?"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 lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function RS(e){var t=Jy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=RS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kl(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 gf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(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 e1(e,t){t=t.checked,t!=null&&Vp(e,"checked",t,!1)}function vf(e,t){e1(e,t);var n=lo(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")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(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 yf(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ea=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oa={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},PS=["Webkit","ms","Moz","O"];Object.keys(Oa).forEach(function(e){PS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oa[t]=Oa[e]})});function o1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oa.hasOwnProperty(e)&&Oa[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ES=pt({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 wf(e,t){if(t){if(ES[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Sf(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 Cf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=Es(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Uc(t),kf(e.stateNode,e.type,t))}}function a1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function s1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(DS(e)/zS|0)|0}var Js=64,Zs=4194304;function Ta(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 Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ta(s):(i&=a,i!==0&&(r=Ta(i)))}else a=n&~o,a!==0?r=Ta(a):i!==0&&(r=Ta(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function WS(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=_a),qg=" ",Gg=!1;function E1(e,t){switch(e){case"keyup":return vC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function xC(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function bC(e,t){if(si)return e==="compositionend"||!nh&&E1(e,t)?(e=R1(),Tl=Zp=Yr=null,si=!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=Qg(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function I1(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kl(e.document)}return t}function rh(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 $C(e){var t=I1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,li=null,jf=null,Aa=null,Mf=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mf||li==null||li!==Kl(r)||(r=li,"selectionStart"in r&&rh(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}),Aa&&es(Aa,r)||(Aa=r,r=tc(jf,"onSelect"),0di||(e.current=Nf[di],Nf[di]=null,di--)}function Je(e,t){di++,Nf[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function rc(){tt(on),tt(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,kS(e)||"Unknown",o));return pt({},n,r)}function oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=U1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,tt(on),tt(Wt),Je(Wt,e)):tt(on),Je(on,n)}var Cr=null,Wc=!1,Td=!1;function W1(e){Cr===null?Cr=[e]:Cr.push(e)}function FC(e){Wc=!0,W1(e)}function po(){if(!Td&&Cr!==null){Td=!0;var e=0,t=Ve;try{var n=Cr;for(Ve=1;e>=a,o-=a,Rr=1<<32-er(t)+o|n<M?(D=P,P=null):D=P.sibling;var O=m(g,P,b[M],C);if(O===null){P===null&&(P=D);break}e&&P&&O.alternate===null&&t(g,P),h=i(O,h,M),E===null?R=O:E.sibling=O,E=O,P=D}if(M===b.length)return n(g,P),st&&wo(g,M),R;if(P===null){for(;MM?(D=P,P=null):D=P.sibling;var F=m(g,P,O.value,C);if(F===null){P===null&&(P=D);break}e&&P&&F.alternate===null&&t(g,P),h=i(F,h,M),E===null?R=F:E.sibling=F,E=F,P=D}if(O.done)return n(g,P),st&&wo(g,M),R;if(P===null){for(;!O.done;M++,O=b.next())O=f(g,O.value,C),O!==null&&(h=i(O,h,M),E===null?R=O:E.sibling=O,E=O);return st&&wo(g,M),R}for(P=r(g,P);!O.done;M++,O=b.next())O=w(P,g,M,O.value,C),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?M:O.key),h=i(O,h,M),E===null?R=O:E.sibling=O,E=O);return e&&P.forEach(function(V){return t(g,V)}),st&&wo(g,M),R}function k(g,h,b,C){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ys:e:{for(var R=b.key,E=h;E!==null;){if(E.key===R){if(R=b.type,R===ai){if(E.tag===7){n(g,E.sibling),h=o(E,b.props.children),h.return=g,g=h;break e}}else if(E.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hr&&uv(R)===E.type){n(g,E.sibling),h=o(E,b.props),h.ref=pa(g,E,b),h.return=g,g=h;break e}n(g,E);break}else t(g,E);E=E.sibling}b.type===ai?(h=Mo(b.props.children,g.mode,C,b.key),h.return=g,g=h):(C=Al(b.type,b.key,b.props,null,g.mode,C),C.ref=pa(g,h,b),C.return=g,g=C)}return a(g);case ii:e:{for(E=b.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===b.containerInfo&&h.stateNode.implementation===b.implementation){n(g,h.sibling),h=o(h,b.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Ad(b,g.mode,C),h.return=g,g=h}return a(g);case Hr:return E=b._init,k(g,h,E(b._payload),C)}if(Ea(b))return y(g,h,b,C);if(la(b))return x(g,h,b,C);al(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,b),h.return=g,g=h):(n(g,h),h=Ld(b,g.mode,C),h.return=g,g=h),a(g)):n(g,h)}return k}var ji=G1(!0),K1=G1(!1),sc=fo(null),lc=null,hi=null,sh=null;function lh(){sh=hi=lc=null}function ch(e){var t=sc.current;tt(sc),e._currentValue=t}function Bf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){lc=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function zn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(lc===null)throw Error(ce(308));hi=e,lc.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function Y1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mr(e,r)}function Mr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mr(e,n)}function jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var m=s.lane,w=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(m=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,m=typeof y=="function"?y.call(w,f,m):y,m==null)break e;f=pt({},f,m);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else w={eventTime:w,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=w,l=f):d=d.next=w,a|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=jd.transition;jd.transition={};try{e(!1),t()}finally{Ve=n,jd.transition=r}}function px(){return Bn().memoizedState}function HC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hx(e))mx(t,n);else if(n=Y1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),gx(n,t,r)}}function qC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hx(e))mx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),gx(n,t,r))}}function hx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function mx(e,t){Na=dc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var fc={readContext:zn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},GC={readContext:zn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:zn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();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=HC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=VC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),jt===null)throw Error(ce(349));Ao&30||ex(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(nx.bind(null,r,i,e),[e]),r.flags|=2048,ls(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=jt.identifierPrefix;if(st){var n=Pr,r=Rr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pa(e):""}function CS(e){switch(e.tag){case 5:return Pa(e.type);case 16:return Pa("Lazy");case 13:return Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 2:case 15:return e=hd(e.type,!1),e;case 11:return e=hd(e.type.render,!1),e;case 1:return e=hd(e.type,!0),e;default:return""}}function mf(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 ai:return"Fragment";case ii:return"Portal";case ff:return"Profiler";case Hp:return"StrictMode";case pf:return"Suspense";case hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function kS(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 mf(t);case 8:return t===Hp?"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 lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function RS(e){var t=Jy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=RS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kl(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 gf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _g(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(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 e1(e,t){t=t.checked,t!=null&&Vp(e,"checked",t,!1)}function vf(e,t){e1(e,t);var n=lo(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")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ig(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 yf(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ea=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oa={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},PS=["Webkit","ms","Moz","O"];Object.keys(Oa).forEach(function(e){PS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oa[t]=Oa[e]})});function o1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oa.hasOwnProperty(e)&&Oa[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ES=pt({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 wf(e,t){if(t){if(ES[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Sf(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 Cf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=Es(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Uc(t),kf(e.stateNode,e.type,t))}}function a1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function s1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(DS(e)/zS|0)|0}var Js=64,Zs=4194304;function Ta(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 Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ta(s):(i&=a,i!==0&&(r=Ta(i)))}else a=n&~o,a!==0?r=Ta(a):i!==0&&(r=Ta(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function WS(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=Ia),qg=" ",Gg=!1;function E1(e,t){switch(e){case"keyup":return vC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function xC(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function bC(e,t){if(si)return e==="compositionend"||!nh&&E1(e,t)?(e=R1(),Tl=Zp=Yr=null,si=!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=Qg(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _1(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kl(e.document)}return t}function rh(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 $C(e){var t=_1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,li=null,jf=null,Aa=null,Mf=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mf||li==null||li!==Kl(r)||(r=li,"selectionStart"in r&&rh(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}),Aa&&es(Aa,r)||(Aa=r,r=tc(jf,"onSelect"),0di||(e.current=Nf[di],Nf[di]=null,di--)}function Je(e,t){di++,Nf[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),Io=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function rc(){tt(on),tt(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,kS(e)||"Unknown",o));return pt({},n,r)}function oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,Io=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=U1(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,tt(on),tt(Wt),Je(Wt,e)):tt(on),Je(on,n)}var Cr=null,Wc=!1,Td=!1;function W1(e){Cr===null?Cr=[e]:Cr.push(e)}function FC(e){Wc=!0,W1(e)}function po(){if(!Td&&Cr!==null){Td=!0;var e=0,t=Ve;try{var n=Cr;for(Ve=1;e>=a,o-=a,Rr=1<<32-er(t)+o|n<M?(D=P,P=null):D=P.sibling;var O=m(g,P,b[M],C);if(O===null){P===null&&(P=D);break}e&&P&&O.alternate===null&&t(g,P),h=i(O,h,M),E===null?R=O:E.sibling=O,E=O,P=D}if(M===b.length)return n(g,P),st&&wo(g,M),R;if(P===null){for(;MM?(D=P,P=null):D=P.sibling;var F=m(g,P,O.value,C);if(F===null){P===null&&(P=D);break}e&&P&&F.alternate===null&&t(g,P),h=i(F,h,M),E===null?R=F:E.sibling=F,E=F,P=D}if(O.done)return n(g,P),st&&wo(g,M),R;if(P===null){for(;!O.done;M++,O=b.next())O=f(g,O.value,C),O!==null&&(h=i(O,h,M),E===null?R=O:E.sibling=O,E=O);return st&&wo(g,M),R}for(P=r(g,P);!O.done;M++,O=b.next())O=w(P,g,M,O.value,C),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?M:O.key),h=i(O,h,M),E===null?R=O:E.sibling=O,E=O);return e&&P.forEach(function(V){return t(g,V)}),st&&wo(g,M),R}function k(g,h,b,C){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ys:e:{for(var R=b.key,E=h;E!==null;){if(E.key===R){if(R=b.type,R===ai){if(E.tag===7){n(g,E.sibling),h=o(E,b.props.children),h.return=g,g=h;break e}}else if(E.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hr&&uv(R)===E.type){n(g,E.sibling),h=o(E,b.props),h.ref=pa(g,E,b),h.return=g,g=h;break e}n(g,E);break}else t(g,E);E=E.sibling}b.type===ai?(h=Mo(b.props.children,g.mode,C,b.key),h.return=g,g=h):(C=Al(b.type,b.key,b.props,null,g.mode,C),C.ref=pa(g,h,b),C.return=g,g=C)}return a(g);case ii:e:{for(E=b.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===b.containerInfo&&h.stateNode.implementation===b.implementation){n(g,h.sibling),h=o(h,b.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Ad(b,g.mode,C),h.return=g,g=h}return a(g);case Hr:return E=b._init,k(g,h,E(b._payload),C)}if(Ea(b))return y(g,h,b,C);if(la(b))return x(g,h,b,C);al(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,b),h.return=g,g=h):(n(g,h),h=Ld(b,g.mode,C),h.return=g,g=h),a(g)):n(g,h)}return k}var ji=G1(!0),K1=G1(!1),sc=fo(null),lc=null,hi=null,sh=null;function lh(){sh=hi=lc=null}function ch(e){var t=sc.current;tt(sc),e._currentValue=t}function Bf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){lc=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function zn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(lc===null)throw Error(ce(308));hi=e,lc.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function Y1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mr(e,r)}function Mr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mr(e,n)}function jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var m=s.lane,w=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(m=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,m=typeof y=="function"?y.call(w,f,m):y,m==null)break e;f=pt({},f,m);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else w={eventTime:w,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=w,l=f):d=d.next=w,a|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=jd.transition;jd.transition={};try{e(!1),t()}finally{Ve=n,jd.transition=r}}function px(){return Bn().memoizedState}function HC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hx(e))mx(t,n);else if(n=Y1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),gx(n,t,r)}}function qC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hx(e))mx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),gx(n,t,r))}}function hx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function mx(e,t){Na=dc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var fc={readContext:zn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},GC={readContext:zn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:zn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();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=HC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=VC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),jt===null)throw Error(ce(349));Ao&30||ex(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(nx.bind(null,r,i,e),[e]),r.flags|=2048,ls(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=jt.identifierPrefix;if(st){var n=Pr,r=Rr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[rs]=r,Px(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;o<$a.length;o++)Ze($a[o],e);o=r;break;case"source":Ze("error",e),o=r;break;case"img":case"image":case"link":Ze("error",e),Ze("load",e),o=r;break;case"details":Ze("toggle",e),o=r;break;case"input":Ig(e,r),o=gf(e,r),Ze("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=pt({},r,{value:void 0}),Ze("invalid",e);break;case"textarea":Lg(e,r),o=xf(e,r),Ze("invalid",e);break;default:o=r}wf(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?i1(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&r1(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ka(e,l):typeof l=="number"&&Ka(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ga.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ze("scroll",e):l!=null&&Vp(e,i,l,a))}switch(n){case"input":Xs(e),_g(e,r,!1);break;case"textarea":Xs(e),Ag(e);break;case"option":r.value!=null&&e.setAttribute("value",""+lo(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?yi(e,!!r.multiple,i,!1):r.defaultValue!=null&&yi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=nc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Bt(t),null;case 6:if(e&&t.stateNode!=null)Tx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ce(166));if(n=Eo(is.current),Eo(pr.current),il(t)){if(r=t.stateNode,n=t.memoizedProps,r[dr]=t,(i=r.nodeValue!==n)&&(e=xn,e!==null))switch(e.tag){case 3:ol(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ol(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dr]=t,t.stateNode=r}return Bt(t),null;case 13:if(tt(ut),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(st&&yn!==null&&t.mode&1&&!(t.flags&128))q1(),$i(),t.flags|=98560,i=!1;else if(i=il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(ce(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ce(317));i[dr]=t}else $i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bt(t),i=!1}else Jn!==null&&(np(Jn),Jn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ut.current&1?Pt===0&&(Pt=3):Ph())),t.updateQueue!==null&&(t.flags|=4),Bt(t),null);case 4:return Mi(),Kf(e,t),e===null&&ts(t.stateNode.containerInfo),Bt(t),null;case 10:return ch(t.type._context),Bt(t),null;case 17:return an(t.type)&&rc(),Bt(t),null;case 19:if(tt(ut),i=t.memoizedState,i===null)return Bt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ha(i,!1);else{if(Pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=uc(e),a!==null){for(t.flags|=128,ha(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(ut,ut.current&1|2),t.child}e=e.sibling}i.tail!==null&&vt()>Ii&&(t.flags|=128,r=!0,ha(i,!1),t.lanes=4194304)}else{if(!r)if(e=uc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ha(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,ha(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ut.current,Je(ut,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return Rh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function tk(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&rc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mi(),tt(on),tt(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(tt(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(ut),null;case 4:return Mi(),null;case 10:return ch(t.type._context),null;case 22:case 23:return Rh(),null;case 24:return null;default:return null}}var ll=!1,Ut=!1,nk=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Yf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Rv=!1;function rk(e,t){if(Of=Zl,e=I1(),rh(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)m=f,f=w;for(;;){if(f===e)break t;if(m===n&&++c===o&&(s=a),m===i&&++d===r&&(l=a),(w=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(If={focusedElem:e,selectionRange:n},Zl=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;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 x=y.memoizedProps,k=y.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:Xn(t.type,x),k);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(C){gt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=Rv,Rv=!1,y}function Da(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yf(t,n,i)}o=o.next}while(o!==r)}}function qc(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 Xf(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 $x(e){var t=e.alternate;t!==null&&(e.alternate=null,$x(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[rs],delete t[Af],delete t[zC],delete t[BC])),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 jx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jx(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 Qf(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=nc));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Jf(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(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}var _t=null,Qn=!1;function Br(e,t,n){for(n=n.child;n!==null;)Mx(e,t,n),n=n.sibling}function Mx(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Dc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Qn;_t=null,Br(e,t,n),_t=r,Qn=o,_t!==null&&(Qn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Qn?(e=_t,n=n.stateNode,e.nodeType===8?Ed(e.parentNode,n):e.nodeType===1&&Ed(e,n),Ja(e)):Ed(_t,n.stateNode));break;case 4:r=_t,o=Qn,_t=n.stateNode.containerInfo,Qn=!0,Br(e,t,n),_t=r,Qn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nk),t.forEach(function(r){var o=fk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ik(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,mc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?jo(e,0):Sh|=n),sn(e,t)}function zx(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var n=Xt();e=Mr(e,t),e!==null&&(Rs(e,t,n),sn(e,n))}function dk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zx(e,n)}function fk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),zx(e,n)}var Bx;Bx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,ZC(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&V1(t,ac,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Il(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,oc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=Hc,t.stateNode=o,o._reactInternals=t,Uf(t,r,e,n),t=Hf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hk(r),e=Xn(r,e),o){case 0:t=Vf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Xn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xn(r,o),Vf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Cx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,X1(e,t),cc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Jn=null,n=K1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return Q1(t),e===null&&zf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_f(r,o)?a=null:i!==null&&_f(r,i)&&(t.flags|=32),Sx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&zf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(sc,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bf(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bf(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=zn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Xn(r,t.pendingProps),o=Xn(r.type,o),wv(e,t,r,o,n);case 15:return bx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xn(r,o),Il(e,t),t.tag=1,an(r)?(e=!0,oc(t)):e=!1,Si(t,n),vx(t,r,o),Uf(t,r,o,n),Hf(null,t,r,!0,e,n);case 19:return Rx(e,t,n);case 22:return wx(e,t,n)}throw Error(ce(156,t.tag))};function Fx(e,t){return h1(e,t)}function pk(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 In(e,t,n,r){return new pk(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hk(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(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 Al(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return Mo(n.children,o,i,t);case Hp:a=8,o|=8;break;case ff:return e=In(12,n,t,o|2),e.elementType=ff,e.lanes=i,e;case pf:return e=In(13,n,t,o),e.elementType=pf,e.lanes=i,e;case hf:return e=In(19,n,t,o),e.elementType=hf,e.lanes=i,e;case Qy:return Kc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yy:a=10;break e;case Xy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Hr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Mo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Kc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Qy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ld(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Ad(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mk(e,t,n,r,o){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=gd(0),this.expirationTimes=gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new mk(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function gk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hx)}catch(e){console.error(e)}}Hx(),Hy.exports=kn;var Oh=Hy.exports;const dl=Np(Oh);var Lv=Oh;uf.createRoot=Lv.createRoot,uf.hydrateRoot=Lv.hydrateRoot;function qx(e,t){return function(){return e.apply(t,arguments)}}const{toString:wk}=Object.prototype,{getPrototypeOf:Ih}=Object,Zc=(e=>t=>{const n=wk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>Zc(t)===e),eu=e=>t=>typeof t===e,{isArray:Gi}=Array,us=eu("undefined");function Sk(e){return e!==null&&!us(e)&&e.constructor!==null&&!us(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gx=ir("ArrayBuffer");function Ck(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gx(e.buffer),t}const kk=eu("string"),Nn=eu("function"),Kx=eu("number"),tu=e=>e!==null&&typeof e=="object",Rk=e=>e===!0||e===!1,Nl=e=>{if(Zc(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Pk=ir("Date"),Ek=ir("File"),Tk=ir("Blob"),$k=ir("FileList"),jk=e=>tu(e)&&Nn(e.pipe),Mk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=Zc(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},Ok=ir("URLSearchParams"),[Ik,_k,Lk,Ak]=["ReadableStream","Request","Response","Headers"].map(ir),Nk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $s(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Gi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Xx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qx=e=>!us(e)&&e!==Xx;function rp(){const{caseless:e}=Qx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yx(t,o)||o;Nl(t[i])&&Nl(r)?t[i]=rp(t[i],r):Nl(r)?t[i]=rp({},r):Gi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r($s(t,(o,i)=>{n&&Nn(o)?e[i]=qx(o,n):e[i]=o},{allOwnKeys:r}),e),zk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bk=(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)},Fk=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uk=(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},Wk=e=>{if(!e)return null;if(Gi(e))return e;let t=e.length;if(!Kx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),Hk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Gk=ir("HTMLFormElement"),Kk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yk=ir("RegExp"),Jx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$s(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Xk=e=>{Jx(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nn(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+"'")})}})},Qk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Gi(e)?r(e):r(String(e).split(t)),n},Jk=()=>{},Zk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Nd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",Zx={DIGIT:Nv,ALPHA:Nd,ALPHA_DIGIT:Nd+Nd.toUpperCase()+Nv},eR=(e=16,t=Zx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tR(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nR=e=>{const t=new Array(10),n=(r,o)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Gi(r)?[]:{};return $s(r,(a,s)=>{const l=n(a,o+1);!us(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},rR=ir("AsyncFunction"),oR=e=>e&&(tu(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch),Q={isArray:Gi,isArrayBuffer:Gx,isBuffer:Sk,isFormData:Mk,isArrayBufferView:Ck,isString:kk,isNumber:Kx,isBoolean:Rk,isObject:tu,isPlainObject:Nl,isReadableStream:Ik,isRequest:_k,isResponse:Lk,isHeaders:Ak,isUndefined:us,isDate:Pk,isFile:Ek,isBlob:Tk,isRegExp:Yk,isFunction:Nn,isStream:jk,isURLSearchParams:Ok,isTypedArray:Vk,isFileList:$k,forEach:$s,merge:rp,extend:Dk,trim:Nk,stripBOM:zk,inherits:Bk,toFlatObject:Fk,kindOf:Zc,kindOfTest:ir,endsWith:Uk,toArray:Wk,forEachEntry:Hk,matchAll:qk,isHTMLForm:Gk,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Jx,freezeMethods:Xk,toObjectSet:Qk,toCamelCase:Kk,noop:Jk,toFiniteNumber:Zk,findKey:Yx,global:Xx,isContextDefined:Qx,ALPHABET:Zx,generateString:eR,isSpecCompliantForm:tR,toJSONObject:nR,isAsyncFn:rR,isThenable:oR};function je(e,t,n,r,o){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),o&&(this.response=o)}Q.inherits(je,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:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eb=je.prototype,tb={};["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=>{tb[e]={value:e}});Object.defineProperties(je,tb);Object.defineProperty(eb,"isAxiosError",{value:!0});je.from=(e,t,n,r,o,i)=>{const a=Object.create(eb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const iR=null;function op(e){return Q.isPlainObject(e)||Q.isArray(e)}function nb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=nb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function aR(e){return Q.isArray(e)&&!e.some(op)}const sR=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!Q.isUndefined(k[x])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new je("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,x,k){let g=y;if(y&&!k&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&aR(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(g=Q.toArray(y)))return x=nb(x),g.forEach(function(b,C){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],C,i):a===null?x:x+"[]",c(b))}),!1}return op(y)?!0:(t.append(Dv(k,x,i),c(y)),!1)}const f=[],m=Object.assign(sR,{defaultVisitor:d,convertValue:c,isVisitable:op});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(g,h){(!(Q.isUndefined(g)||g===null)&&o.call(t,g,Q.isString(h)?h.trim():h,x,m))===!0&&w(g,x?x.concat(h):[h])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&nu(e,this,t)}const rb=_h.prototype;rb.append=function(t,n){this._pairs.push([t,n])};rb.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ob(e,t,n){if(!t)return e;const r=n&&n.encode||lR,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{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){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cR=typeof URLSearchParams<"u"?URLSearchParams:_h,uR=typeof FormData<"u"?FormData:null,dR=typeof Blob<"u"?Blob:null,fR={isBrowser:!0,classes:{URLSearchParams:cR,FormData:uR,Blob:dR},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",pR=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mR=Lh&&window.location.href||"http://localhost",gR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:pR,hasStandardBrowserWebWorkerEnv:hR,origin:mR},Symbol.toStringTag,{value:"Module"})),nr={...gR,...fR};function vR(e,t){return nu(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yR(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xR(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=xR(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(yR(r),o,n,0)}),n}return null}function bR(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const js={transitional:ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(ab(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vR(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return nu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bR(t)):t}],transformResponse:[function(t){const n=this.transitional||js.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?je.from(s,je.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{js.headers[e]={}});const wR=Q.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"]),SR=e=>{const t={};let n,r,o;return e&&e.split(` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function _d(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XC=typeof WeakMap=="function"?WeakMap:Map;function yx(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hc||(hc=!0,Zf=r),Wf(e,t)},n}function xx(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Wf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wf(e,t),typeof r!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function vv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=uk.bind(null,e,t,n),t.then(e,e))}function yv(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 xv(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=Tr(-1,1),t.tag=2,ro(n,t,1))),n.lanes|=1),e)}var QC=Ar.ReactCurrentOwner,rn=!1;function Kt(e,t,n,r){t.child=e===null?K1(t,null,n,r):ji(t,e.child,n,r)}function bv(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=gh(e,t,n,r,i,o),n=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&n&&oh(t),t.flags|=1,Kt(e,t,r,o),t.child)}function wv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Eh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bx(e,t,i,r,o)):(e=Al(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:es,n(a,r)&&e.ref===t.ref)return Or(e,t,o)}return t.flags|=1,e=ao(i,r),e.ref=t.ref,e.return=t,t.child=e}function bx(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(es(i,r)&&e.ref===t.ref)if(rn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,Or(e,t,o)}return Vf(e,t,n,r,o)}function wx(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(gi,gn),gn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(gi,gn),gn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Je(gi,gn),gn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Je(gi,gn),gn|=r;return Kt(e,t,o,n),t.child}function Sx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vf(e,t,n,r,o){var i=an(n)?Io:Wt.current;return i=Ti(t,i),Si(t,o),n=gh(e,t,n,r,i,o),r=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&r&&oh(t),t.flags|=1,Kt(e,t,n,o),t.child)}function Sv(e,t,n,r,o){if(an(n)){var i=!0;oc(t)}else i=!1;if(Si(t,o),t.stateNode===null)_l(e,t),vx(t,n,r),Uf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=zn(c):(c=an(n)?Io:Wt.current,c=Ti(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&gv(t,a,r,c),qr=!1;var m=t.memoizedState;a.state=m,cc(t,r,a,o),l=t.memoizedState,s!==r||m!==l||on.current||qr?(typeof d=="function"&&(Ff(t,n,d,r),l=t.memoizedState),(s=qr||mv(t,n,s,r,m,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,X1(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xn(t.type,s),a.props=c,f=t.pendingProps,m=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=zn(l):(l=an(n)?Io:Wt.current,l=Ti(t,l));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||m!==l)&&gv(t,a,r,l),qr=!1,m=t.memoizedState,a.state=m,cc(t,r,a,o);var y=t.memoizedState;s!==f||m!==y||on.current||qr?(typeof w=="function"&&(Ff(t,n,w,r),y=t.memoizedState),(c=qr||mv(t,n,c,r,m,y,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Hf(e,t,n,r,i,o)}function Hf(e,t,n,r,o,i){Sx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&sv(t,n,!1),Or(e,t,i);r=t.stateNode,QC.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ji(t,e.child,null,i),t.child=ji(t,null,s,i)):Kt(e,t,s,i),t.memoizedState=r.state,o&&sv(t,n,!0),t.child}function Cx(e){var t=e.stateNode;t.pendingContext?av(e,t.pendingContext,t.pendingContext!==t.context):t.context&&av(e,t.context,!1),fh(e,t.containerInfo)}function Cv(e,t,n,r,o){return $i(),ah(o),t.flags|=256,Kt(e,t,n,r),t.child}var qf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function kx(e,t,n){var r=t.pendingProps,o=ut.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Je(ut,o&1),e===null)return zf(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Kc(a,r,0,null),e=Mo(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gf(n),t.memoizedState=qf,e):bh(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return JC(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ao(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ao(s,i):(i=Mo(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Gf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=qf,r}return i=e.child,e=i.sibling,r=ao(i,{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 bh(e,t){return t=Kc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sl(e,t,n,r){return r!==null&&ah(r),ji(t,e.child,null,n),e=bh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function JC(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=_d(Error(ce(422))),sl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Kc({mode:"visible",children:r.children},o,0,null),i=Mo(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ji(t,e.child,null,a),t.child.memoizedState=Gf(a),t.memoizedState=qf,i);if(!(t.mode&1))return sl(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(ce(419)),r=_d(i,r,void 0),sl(e,t,a,r)}if(s=(a&e.childLanes)!==0,rn||s){if(r=jt,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Mr(e,o),tr(r,e,o,-1))}return Ph(),r=_d(Error(ce(421))),sl(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=dk.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yn=no(o.nextSibling),xn=t,st=!0,Jn=null,e!==null&&(jn[Mn++]=Rr,jn[Mn++]=Pr,jn[Mn++]=Lo,Rr=e.id,Pr=e.overflow,Lo=t),t=bh(t,r.children),t.flags|=4096,t)}function kv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bf(e.return,t,n)}function Id(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Rx(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Kt(e,t,r.children,n),r=ut.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&&kv(e,n,t);else if(e.tag===19)kv(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(Je(ut,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&uc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Id(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&uc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Id(t,!0,n,null,i);break;case"together":Id(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _l(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),No|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=ao(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ao(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ZC(e,t,n){switch(t.tag){case 3:Cx(t),$i();break;case 5:Q1(t);break;case 1:an(t.type)&&oc(t);break;case 4:fh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Je(sc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ut,ut.current&1),t.flags|=128,null):n&t.child.childLanes?kx(e,t,n):(Je(ut,ut.current&1),e=Or(e,t,n),e!==null?e.sibling:null);Je(ut,ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rx(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Je(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return Or(e,t,n)}var Px,Kf,Ex,Tx;Px=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}};Kf=function(){};Ex=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eo(pr.current);var i=null;switch(n){case"input":o=gf(e,o),r=gf(e,r),i=[];break;case"select":o=pt({},o,{value:void 0}),r=pt({},r,{value:void 0}),i=[];break;case"textarea":o=xf(e,o),r=xf(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=nc)}wf(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ga.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ga.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ze("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Tx=function(e,t,n,r){n!==r&&(t.flags|=4)};function ha(e,t){if(!st)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 Bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ek(e,t,n){var r=t.pendingProps;switch(ih(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(t),null;case 1:return an(t.type)&&rc(),Bt(t),null;case 3:return r=t.stateNode,Mi(),tt(on),tt(Wt),hh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jn!==null&&(np(Jn),Jn=null))),Kf(e,t),Bt(t),null;case 5:ph(t);var o=Eo(is.current);if(n=t.type,e!==null&&t.stateNode!=null)Ex(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return Bt(t),null}if(e=Eo(pr.current),il(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dr]=t,r[rs]=i,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(o=0;o<$a.length;o++)Ze($a[o],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"details":Ze("toggle",r);break;case"input":_g(r,i),Ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ze("invalid",r);break;case"textarea":Lg(r,i),Ze("invalid",r)}wf(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&ol(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ol(r.textContent,s,e),o=["children",""+s]):Ga.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ze("scroll",r)}switch(n){case"input":Xs(r),Ig(r,i,!0);break;case"textarea":Xs(r),Ag(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=nc)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=n1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML=" + diff --git a/client/src/Components/authComponent.jsx b/client/src/Components/authComponent.jsx index 317587a7..1703085f 100644 --- a/client/src/Components/authComponent.jsx +++ b/client/src/Components/authComponent.jsx @@ -173,13 +173,14 @@ function AuthComponent() { try { const response = await axios.post('/api/user/anonymous_signin'); if (response && response.data) { - const userId = null; + const userId = "0"; + const isAnon = true; localStorage.setItem('token', response.data.access_token); // Ensure this is correctly saving the token console.log('Token stored:', localStorage.getItem('token')); // Confirm the token is stored setMessage('Anonymous sign-in successful!'); setSeverity('success'); setIsAuthenticated(true); - setUser({ userId }); + setUser({ userId, isAnon }); navigate('/'); } else { throw new Error('Invalid response from server'); @@ -325,4 +326,4 @@ function getStressorDescription(stressorId) { } } -export default AuthComponent +export default AuthComponent \ No newline at end of file diff --git a/client/src/Components/navBar.jsx b/client/src/Components/navBar.jsx index 8887bb44..3d6387cd 100644 --- a/client/src/Components/navBar.jsx +++ b/client/src/Components/navBar.jsx @@ -104,7 +104,7 @@ function Navbar({ toggleSidebar }) { Earlent - {user?.userId &&( + {!user?.isAnon &&( diff --git a/client/src/Components/sideBar.jsx b/client/src/Components/sideBar.jsx index e1a43131..e6dd25c3 100644 --- a/client/src/Components/sideBar.jsx +++ b/client/src/Components/sideBar.jsx @@ -20,7 +20,7 @@ function Sidebar() { const items = [ { text: "Mind Chat", icon: , path: "/" }, - ...(user?.userId ? [ + ...(!user?.isAnon ? [ { text: "Track Your Vibes", icon: , path: "/user/mood_logging" }, { text: "Mood Logs", icon: , path: "/user/mood_logs" }, { text: "Schedule Check-In", icon: , path: "/user/check_in" }, // New item for check-in page diff --git a/client/src/main.jsx b/client/src/main.jsx index b3d2d099..e6fc12c3 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -1,101 +1,11 @@ import React from 'react' import ReactDOM from 'react-dom/client' + import App from './App.jsx' import { BrowserRouter } from 'react-router-dom'; -import { UserProvider } from './Components/userContext'; - -function urlBase64ToUint8Array(base64String) { - const padding = '='.repeat((4 - base64String.length % 4) % 4); - const base64 = (base64String + padding) - .replace(/-/g, '+') - .replace(/_/g, '/'); - - const rawData = window.atob(base64); - const outputArray = new Uint8Array(rawData.length); - - for (let i = 0; i < rawData.length; ++i) { - outputArray[i] = rawData.charCodeAt(i); - } - - return outputArray; -} - -function getToken() { - // Implement a function to retrieve the JWT token - return localStorage.getItem('token'); -} - -const VAPID_PUBLIC_KEY = "BJO2lvL7cXXdg0MqKdCtQyWOz3Nb1Ny-X8x_67MKdRtQOLLl3FRpAPJOUJEzjaQGNBcIOqwjeS165Rb3Pl0x2ZI"; - -if ('serviceWorker' in navigator) { - window.addEventListener('load', function () { - navigator.serviceWorker.register('../service-worker.js') - .then(function (registration) { - console.log('Service Worker registered with scope:', registration.scope); - - // Request notification permission - return Notification.requestPermission().then(permission => { - if (permission !== 'granted') { - throw new Error('Permission not granted for Notification'); - } - // Check for permission and subscribe for push notifications - return registration.pushManager.getSubscription(); - }).then(function (subscription) { - if (!subscription) { - return registration.pushManager.subscribe({ - userVisibleOnly: true, - applicationServerKey: urlBase64ToUint8Array(VAPID_PUBLIC_KEY) - }); - } - return subscription; - - }) - .then(function (subscription) { - console.log('Subscription:', subscription); - - // Ensure the keys are properly encoded - const keys = { - p256dh: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('p256dh')))), - auth: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('auth')))) - }; - console.log('Subscription keys:', keys); - - if (!keys.p256dh || !keys.auth) { - console.error('Subscription object:', subscription); - throw new Error('Subscription keys are missing'); - } - const subscriptionData = { - endpoint: subscription.endpoint, - keys: keys - }; - - const token = getToken(); - - if (!token) { - throw new Error('No token found'); - } - - return fetch('/api/subscribe', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}` - }, - body: JSON.stringify(subscriptionData), - }); - }) - .then(response => response.json()) - .then(data => console.log('Subscription response:', data)) - .catch(err => console.error('Subscription failed:', err)); - - - }) - .catch(function (err) { - console.error('Service Worker registration failed:', err); - }); - }); -} +import { UserProvider } from './Components/userContext'; +import './serviceWorker.js' ReactDOM.createRoot(document.getElementById('root')).render( @@ -103,4 +13,4 @@ ReactDOM.createRoot(document.getElementById('root')).render( -) \ No newline at end of file +); \ No newline at end of file diff --git a/client/src/serviceWorker.js b/client/src/serviceWorker.js new file mode 100644 index 00000000..b749bac1 --- /dev/null +++ b/client/src/serviceWorker.js @@ -0,0 +1,93 @@ +function urlBase64ToUint8Array(base64String) { + const padding = '='.repeat((4 - base64String.length % 4) % 4); + const base64 = (base64String + padding) + .replace(/-/g, '+') + .replace(/_/g, '/'); + + const rawData = window.atob(base64); + const outputArray = new Uint8Array(rawData.length); + + for (let i = 0; i < rawData.length; ++i) { + outputArray[i] = rawData.charCodeAt(i); + } + + return outputArray; + } + + function getToken() { + // Implement a function to retrieve the JWT token + return localStorage.getItem('token'); + } + + const VAPID_PUBLIC_KEY = "BJO2lvL7cXXdg0MqKdCtQyWOz3Nb1Ny-X8x_67MKdRtQOLLl3FRpAPJOUJEzjaQGNBcIOqwjeS165Rb3Pl0x2ZI"; + + if ('serviceWorker' in navigator) { + window.addEventListener('load', function () { + navigator.serviceWorker.register('../service-worker.js') + .then(function (registration) { + console.log('Service Worker registered with scope:', registration.scope); + + // Request notification permission + return Notification.requestPermission().then(permission => { + if (permission !== 'granted') { + throw new Error('Permission not granted for Notification'); + } + + // Check for permission and subscribe for push notifications + return registration.pushManager.getSubscription(); + }).then(function (subscription) { + if (!subscription) { + return registration.pushManager.subscribe({ + userVisibleOnly: true, + applicationServerKey: urlBase64ToUint8Array(VAPID_PUBLIC_KEY) + }); + } + return subscription; + + }) + .then(function (subscription) { + console.log('Subscription:', subscription); + + // Ensure the keys are properly encoded + const keys = { + p256dh: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('p256dh')))), + auth: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('auth')))) + }; + console.log('Subscription keys:', keys); + + if (!keys.p256dh || !keys.auth) { + console.error('Subscription object:', subscription); + throw new Error('Subscription keys are missing'); + } + const subscriptionData = { + endpoint: subscription.endpoint, + keys: keys + }; + + const token = getToken(); + + if (!token) { + throw new Error('No token found'); + } + + return fetch('/api/subscribe', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'Authorization': `Bearer ${token}` + }, + body: JSON.stringify(subscriptionData), + }); + }) + .then(response => response.json()) + .then(data => console.log('Subscription response:', data)) + .catch(err => console.error('Subscription failed:', err)); + + + }) + .catch(function (err) { + console.error('Service Worker registration failed:', err); + }); + }); + } + \ No newline at end of file diff --git a/server/agents/ai_agent.py b/server/agents/ai_agent.py index d9fbf354..84c2edca 100644 --- a/server/agents/ai_agent.py +++ b/server/agents/ai_agent.py @@ -162,10 +162,10 @@ def _create_agent_tools(self, tool_names=[]) -> list[Tool]: StructuredTool.from_function(func) ) continue - - if tool_dict.get("retriever", False): + + elif tool_dict.get("retriever", False): retriever = self._get_cosmosdb_vector_store_retriever( - f"{db_name}.{tool_name}" + tool_name ) retriever_chain = retriever | format_docs @@ -180,7 +180,7 @@ def _create_agent_tools(self, tool_names=[]) -> list[Tool]: else: custom_tools.append( Tool( - name=f"vector_search_{tool_name}", + name=f"{tool_name}", func=func, description=description ) @@ -188,4 +188,4 @@ def _create_agent_tools(self, tool_names=[]) -> list[Tool]: result_tools = community_tools + custom_tools - return result_tools + return result_tools \ No newline at end of file diff --git a/server/agents/tools.py b/server/agents/tools.py index 37b86cfd..5c361137 100644 --- a/server/agents/tools.py +++ b/server/agents/tools.py @@ -1,9 +1,12 @@ import os -import json -import requests -import random + +# from azure.identity import DefaultAzureCredential +# from azure.mgmt.maps import AzureMapsManagementClient + +from langchain_community.tools import GooglePlacesTool from langchain_community.utilities import BingSearchAPIWrapper +from langchain_community.tools.bing_search import BingSearchResults from langchain_community.tools.tavily_search import TavilySearchResults from utils.docs import format_docs @@ -19,56 +22,11 @@ def get_maps_results(self, query): query (str): The query to search for in the map. """ - # Azure Maps API Key - api_key = os.environ["AZURE_MAPS_KEY"] - - base_url = "https://atlas.microsoft.com/search/address/json" - - params = { - 'api-version': '1.0', - 'subscription-key': api_key, - 'query': query - } - - # Make the API request to get address information - response = requests.get(base_url, params=params) - results = response.json() - - if results.get('results'): - # Extract bounding box from the first result - location_bbox = results['results'][0]['viewport'] + # sub_id = os.environ.get("AZURE_SUBSCRIPTION_ID") + # client = AzureMapsManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id) - # Define the base URL for the fuzzy search API - fuzzy_search_url = "https://atlas.microsoft.com/search/fuzzy/json" + pass - # Parameters for the fuzzy search, including the bounding box - fuzzy_params = { - 'api-version': '1.0', - 'subscription-key': api_key, - 'query': query, - 'topLeft': f"{location_bbox['topLeftPoint']['lat']},{location_bbox['topLeftPoint']['lon']}", - 'btmRight': f"{location_bbox['btmRightPoint']['lat']},{location_bbox['btmRightPoint']['lon']}" - } - - # Make the API request for fuzzy search within the bounding box - fuzzy_response = requests.get( - fuzzy_search_url, params=fuzzy_params) - fuzzy_results = fuzzy_response.json() - - # Extract relevant details from the results - agent_results = [{ - 'name': result['poi']['name'], - 'phone': result['poi']['phone'], - 'address': result['address']['freeformAddress'] - } for result in fuzzy_results.get('results', [])] - - # Randomly sample up to 3 results to return - trunc_agent_results = random.sample( - agent_results, min(len(agent_results), 3)) - - return json.dumps(trunc_agent_results, default=str) - else: - return json.dumps({"error": "No results found"}, default=str) def get_vector_store_chain(agent, collection_name:str): @@ -77,31 +35,32 @@ def get_vector_store_chain(agent, collection_name:str): def vector_store_chain_factory(collection_name) -> callable: collection_name = collection_name - return get_vector_store_chain + return lambda x: get_vector_store_chain(collection_name=collection_name) toolbox = { "community": { - # "web_search_bing": BingSearchAPIWrapper(k=5), - "web_search_tavily": TavilySearchResults(), + "web_search_bing": BingSearchResults(api_wrapper=BingSearchAPIWrapper(k=1)), + "web_search_tavily": TavilySearchResults(), + "location_search_gplaces": GooglePlacesTool() }, "custom": { "agent_facts": { "func": vector_store_chain_factory("agent_facts"), - "description": "Searches for facts about the agent itself.", + "description": "Searches for facts about the AI to answer questions about itself.", "retriever": True, "structured": False }, - "location_search": { - "func": get_maps_results, - "description": "Searches for places that match the query and returns a list of results.", - "retriever": False, - "structured": False - }, + # "location_search": { + # "func": get_maps_results, + # "description": "Searches for places that match the query and returns a list of results.", + # "retriever": False, + # "structured": False + # }, "user_profile_retrieval": { "func": get_user_profile_by_user_id, - "structured": False, - "description": "Retrieves a user's profile information by the user's ID to be used when brought up in conversation. Includes age, name and location." + "structured": True, + "description": "Retrieves a user's profile information by the user's ID to be used when brought up in conversation. Includes age, name and location. Exclude if user ID is `0`, as this indicates it is an anonymous user." } } } \ No newline at end of file diff --git a/server/routes/ai.py b/server/routes/ai.py index 2ef19cfd..af08d6cc 100644 --- a/server/routes/ai.py +++ b/server/routes/ai.py @@ -36,7 +36,7 @@ def run_mental_health_agent(user_id, chat_id): prompt = body.get("prompt") turn_id = body.get("turn_id") - agent = MentalHealthAIAgent(tool_names=["web_search_tavily", "user_profile_retrieval"]) + agent = MentalHealthAIAgent(tool_names=["location_search","web_search_tavily", "user_profile_retrieval", "agent_facts"]) try: @@ -61,7 +61,7 @@ def run_mental_health_agent(user_id, chat_id): def set_mental_health_end_state(user_id, chat_id): try: logger.info(f"Finalizing chat {chat_id} for user {user_id}") - agent = MentalHealthAIAgent(tool_names=["web_search_tavily", "user_profile_retrieval"]) + agent = MentalHealthAIAgent(tool_names=["location_search", "web_search_bing", "user_profile_retrieval", "agent_facts"]) agent.perform_final_processes(user_id, chat_id) diff --git a/server/services/db/user.py b/server/services/db/user.py index d6280651..433db471 100644 --- a/server/services/db/user.py +++ b/server/services/db/user.py @@ -32,7 +32,7 @@ def save_user(db, user_data): def get_user_profile_by_user_id(user_id: str) -> str: """ Retrieves a user's profile information by the user's ID to be used when brought up in conversation. - Includes age, name and location. + Includes age, name and location. Exclude if user ID is `0`, as this indicates it is an anonymous user. """ try: user_objectid = ObjectId(user_id)