function Hv(i,s){for(var o=0;or[p]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))r(p);new MutationObserver(p=>{for(const E of p)if(E.type==="childList")for(const C of E.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&r(C)}).observe(document,{childList:!0,subtree:!0});function o(p){const E={};return p.integrity&&(E.integrity=p.integrity),p.referrerPolicy&&(E.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?E.credentials="include":p.crossOrigin==="anonymous"?E.credentials="omit":E.credentials="same-origin",E}function r(p){if(p.ep)return;p.ep=!0;const E=o(p);fetch(p.href,E)}})();function Ih(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var yf={exports:{}},Eu={};var Hh;function qv(){if(Hh)return Eu;Hh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(r,p,E){var C=null;if(E!==void 0&&(C=""+E),p.key!==void 0&&(C=""+p.key),"key"in p){E={};for(var D in p)D!=="key"&&(E[D]=p[D])}else E=p;return p=E.ref,{$$typeof:i,type:r,key:C,ref:p!==void 0?p:null,props:E}}return Eu.Fragment=s,Eu.jsx=o,Eu.jsxs=o,Eu}var qh;function Nv(){return qh||(qh=1,yf.exports=qv()),yf.exports}var Bv=Nv(),vf={exports:{}},zu={},mf={exports:{}},gf={};var Nh;function Qv(){return Nh||(Nh=1,(function(i){function s(T,R){var X=T.length;T.push(R);t:for(;0>>1,yt=T[ft];if(0>>1;ftp(H,X))Bp(Z,H)?(T[ft]=Z,T[B]=X,ft=B):(T[ft]=H,T[_]=X,ft=_);else if(Bp(Z,X))T[ft]=Z,T[B]=X,ft=B;else break t}}return R}function p(T,R){var X=T.sortIndex-R.sortIndex;return X!==0?X:T.id-R.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var E=performance;i.unstable_now=function(){return E.now()}}else{var C=Date,D=C.now();i.unstable_now=function(){return C.now()-D}}var U=[],A=[],G=1,N=null,K=3,ht=!1,P=!1,J=!1,nt=!1,dt=typeof setTimeout=="function"?setTimeout:null,zt=typeof clearTimeout=="function"?clearTimeout:null,mt=typeof setImmediate<"u"?setImmediate:null;function Rt(T){for(var R=o(A);R!==null;){if(R.callback===null)r(A);else if(R.startTime<=T)r(A),R.sortIndex=R.expirationTime,s(U,R);else break;R=o(A)}}function Nt(T){if(J=!1,Rt(T),!P)if(o(U)!==null)P=!0,Tt||(Tt=!0,Zt());else{var R=o(A);R!==null&&Tl(Nt,R.startTime-T)}}var Tt=!1,w=-1,Ht=5,rl=-1;function Hl(){return nt?!0:!(i.unstable_now()-rlT&&Hl());){var ft=N.callback;if(typeof ft=="function"){N.callback=null,K=N.priorityLevel;var yt=ft(N.expirationTime<=T);if(T=i.unstable_now(),typeof yt=="function"){N.callback=yt,Rt(T),R=!0;break l}N===o(U)&&r(U),Rt(T)}else r(U);N=o(U)}if(N!==null)R=!0;else{var y=o(A);y!==null&&Tl(Nt,y.startTime-T),R=!1}}break t}finally{N=null,K=X,ht=!1}R=void 0}}finally{R?Zt():Tt=!1}}}var Zt;if(typeof mt=="function")Zt=function(){mt(ol)};else if(typeof MessageChannel<"u"){var hl=new MessageChannel,ql=hl.port2;hl.port1.onmessage=ol,Zt=function(){ql.postMessage(null)}}else Zt=function(){dt(ol,0)};function Tl(T,R){w=dt(function(){T(i.unstable_now())},R)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(T){T.callback=null},i.unstable_forceFrameRate=function(T){0>T||125ft?(T.sortIndex=X,s(A,T),o(U)===null&&T===o(A)&&(J?(zt(w),w=-1):J=!0,Tl(Nt,X-ft))):(T.sortIndex=yt,s(U,T),P||ht||(P=!0,Tt||(Tt=!0,Zt()))),T},i.unstable_shouldYield=Hl,i.unstable_wrapCallback=function(T){var R=K;return function(){var X=K;K=R;try{return T.apply(this,arguments)}finally{K=X}}}})(gf)),gf}var Bh;function jv(){return Bh||(Bh=1,mf.exports=Qv()),mf.exports}var Sf={exports:{}},x={};var Qh;function Yv(){if(Qh)return x;Qh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),K=Symbol.iterator;function ht(y){return y===null||typeof y!="object"?null:(y=K&&y[K]||y["@@iterator"],typeof y=="function"?y:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,nt={};function dt(y,_,H){this.props=y,this.context=_,this.refs=nt,this.updater=H||P}dt.prototype.isReactComponent={},dt.prototype.setState=function(y,_){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,_,"setState")},dt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function zt(){}zt.prototype=dt.prototype;function mt(y,_,H){this.props=y,this.context=_,this.refs=nt,this.updater=H||P}var Rt=mt.prototype=new zt;Rt.constructor=mt,J(Rt,dt.prototype),Rt.isPureReactComponent=!0;var Nt=Array.isArray;function Tt(){}var w={H:null,A:null,T:null,S:null},Ht=Object.prototype.hasOwnProperty;function rl(y,_,H){var B=H.ref;return{$$typeof:i,type:y,key:_,ref:B!==void 0?B:null,props:H}}function Hl(y,_){return rl(y.type,_,y.props)}function ol(y){return typeof y=="object"&&y!==null&&y.$$typeof===i}function Zt(y){var _={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(H){return _[H]})}var hl=/\/+/g;function ql(y,_){return typeof y=="object"&&y!==null&&y.key!=null?Zt(""+y.key):_.toString(36)}function Tl(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(Tt,Tt):(y.status="pending",y.then(function(_){y.status==="pending"&&(y.status="fulfilled",y.value=_)},function(_){y.status==="pending"&&(y.status="rejected",y.reason=_)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function T(y,_,H,B,Z){var F=typeof y;(F==="undefined"||F==="boolean")&&(y=null);var ut=!1;if(y===null)ut=!0;else switch(F){case"bigint":case"string":case"number":ut=!0;break;case"object":switch(y.$$typeof){case i:case s:ut=!0;break;case G:return ut=y._init,T(ut(y._payload),_,H,B,Z)}}if(ut)return Z=Z(y),ut=B===""?"."+ql(y,0):B,Nt(Z)?(H="",ut!=null&&(H=ut.replace(hl,"$&/")+"/"),T(Z,_,H,"",function(Da){return Da})):Z!=null&&(ol(Z)&&(Z=Hl(Z,H+(Z.key==null||y&&y.key===Z.key?"":(""+Z.key).replace(hl,"$&/")+"/")+ut)),_.push(Z)),1;ut=0;var Vt=B===""?".":B+":";if(Nt(y))for(var Ot=0;Ot"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),bf.exports=Gv(),bf.exports}var Xh;function xv(){if(Xh)return zu;Xh=1;var i=jv(),s=_f(),o=Xv();function r(t){var l="https://react.dev/errors/"+t;if(1yt||(t.current=ft[yt],ft[yt]=null,yt--)}function H(t,l){yt++,ft[yt]=t.current,t.current=l}var B=y(null),Z=y(null),F=y(null),ut=y(null);function Vt(t,l){switch(H(F,l),H(Z,t),H(B,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?lh(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=lh(l),t=eh(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}_(B),H(B,t)}function Ot(){_(B),_(Z),_(F)}function Da(t){t.memoizedState!==null&&H(ut,t);var l=B.current,e=eh(l,t.type);l!==e&&(H(Z,t),H(B,e))}function Mu(t){Z.current===t&&(_(B),_(Z)),ut.current===t&&(_(ut),gu._currentValue=X)}var Wn,Cf;function Te(t){if(Wn===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);Wn=l&&l[1]||"",Cf=-1)":-1u||h[a]!==g[u]){var z=` `+h[a].replace(" at new "," at ");return t.displayName&&z.includes("")&&(z=z.replace("",t.displayName)),z}while(1<=a&&0<=u);break}}}finally{$n=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?Te(e):""}function sd(t,l){switch(t.tag){case 26:case 27:case 5:return Te(t.type);case 16:return Te("Lazy");case 13:return t.child!==l&&l!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return kn(t.type,!1);case 11:return kn(t.type.render,!1);case 1:return kn(t.type,!0);case 31:return Te("Activity");default:return""}}function Rf(t){try{var l="",e=null;do l+=sd(t,e),e=t,t=t.return;while(t);return l}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var In=Object.prototype.hasOwnProperty,Pn=i.unstable_scheduleCallback,ti=i.unstable_cancelCallback,rd=i.unstable_shouldYield,od=i.unstable_requestPaint,tl=i.unstable_now,hd=i.unstable_getCurrentPriorityLevel,Hf=i.unstable_ImmediatePriority,qf=i.unstable_UserBlockingPriority,_u=i.unstable_NormalPriority,dd=i.unstable_LowPriority,Nf=i.unstable_IdlePriority,yd=i.log,vd=i.unstable_setDisableYieldValue,Ua=null,ll=null;function Il(t){if(typeof yd=="function"&&vd(t),ll&&typeof ll.setStrictMode=="function")try{ll.setStrictMode(Ua,t)}catch{}}var el=Math.clz32?Math.clz32:Sd,md=Math.log,gd=Math.LN2;function Sd(t){return t>>>=0,t===0?32:31-(md(t)/gd|0)|0}var Du=256,Uu=262144,Cu=4194304;function Oe(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ru(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var u=0,n=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~n,a!==0?u=Oe(a):(c&=f,c!==0?u=Oe(c):e||(e=f&~t,e!==0&&(u=Oe(e))))):(f=a&~n,f!==0?u=Oe(f):c!==0?u=Oe(c):e||(e=a&~t,e!==0&&(u=Oe(e)))),u===0?0:l!==0&&l!==u&&(l&n)===0&&(n=u&-u,e=l&-l,n>=e||n===32&&(e&4194048)!==0)?l:u}function Ca(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function bd(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bf(){var t=Cu;return Cu<<=1,(Cu&62914560)===0&&(Cu=4194304),t}function li(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ra(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pd(t,l,e,a,u,n){var c=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var f=t.entanglements,h=t.expirationTimes,g=t.hiddenUpdates;for(e=c&~e;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Md=/[\n"\\]/g;function yl(t){return t.replace(Md,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function ci(t,l,e,a,u,n,c,f){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),l!=null?c==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+dl(l)):t.value!==""+dl(l)&&(t.value=""+dl(l)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),l!=null?fi(t,c,dl(l)):e!=null?fi(t,c,dl(e)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+dl(f):t.removeAttribute("name")}function Ff(t,l,e,a,u,n,c,f){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),l!=null||e!=null){if(!(n!=="submit"&&n!=="reset"||l!=null)){ii(t);return}e=e!=null?""+dl(e):"",l=l!=null?""+dl(l):e,f||l===t.value||(t.value=l),t.defaultValue=l}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),ii(t)}function fi(t,l,e){l==="number"&&Nu(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function We(t,l,e,a){if(t=t.options,l){l={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),di=!1;if(Ql)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){di=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{di=!1}var te=null,yi=null,Qu=null;function ls(){if(Qu)return Qu;var t,l=yi,e=l.length,a,u="value"in te?te.value:te.textContent,n=u.length;for(t=0;t=Ya),cs=" ",fs=!1;function ss(t,l){switch(t){case"keyup":return ty.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pe=!1;function ey(t,l){switch(t){case"compositionend":return rs(l);case"keypress":return l.which!==32?null:(fs=!0,cs);case"textInput":return t=l.data,t===cs&&fs?null:t;default:return null}}function ay(t,l){if(Pe)return t==="compositionend"||!bi&&ss(t,l)?(t=ls(),Qu=yi=te=null,Pe=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=Ss(e)}}function ps(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?ps(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function Es(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Nu(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Nu(t.document)}return l}function zi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var oy=Ql&&"documentMode"in document&&11>=document.documentMode,ta=null,Ti=null,Za=null,Oi=!1;function zs(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Oi||ta==null||ta!==Nu(a)||(a=ta,"selectionStart"in a&&zi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Za&&xa(Za,a)||(Za=a,a=Cn(Ti,"onSelect"),0>=c,u-=c,Dl=1<<32-el(l)+u|e<V?(I=Q,Q=null):I=Q.sibling;var et=S(v,Q,m[V],O);if(et===null){Q===null&&(Q=I);break}t&&Q&&et.alternate===null&&l(v,Q),d=n(et,d,V),lt===null?j=et:lt.sibling=et,lt=et,Q=I}if(V===m.length)return e(v,Q),tt&&Yl(v,V),j;if(Q===null){for(;VV?(I=Q,Q=null):I=Q.sibling;var ze=S(v,Q,et.value,O);if(ze===null){Q===null&&(Q=I);break}t&&Q&&ze.alternate===null&&l(v,Q),d=n(ze,d,V),lt===null?j=ze:lt.sibling=ze,lt=ze,Q=I}if(et.done)return e(v,Q),tt&&Yl(v,V),j;if(Q===null){for(;!et.done;V++,et=m.next())et=M(v,et.value,O),et!==null&&(d=n(et,d,V),lt===null?j=et:lt.sibling=et,lt=et);return tt&&Yl(v,V),j}for(Q=a(Q);!et.done;V++,et=m.next())et=b(Q,v,V,et.value,O),et!==null&&(t&&et.alternate!==null&&Q.delete(et.key===null?V:et.key),d=n(et,d,V),lt===null?j=et:lt.sibling=et,lt=et);return t&&Q.forEach(function(Rv){return l(v,Rv)}),tt&&Yl(v,V),j}function ot(v,d,m,O){if(typeof m=="object"&&m!==null&&m.type===J&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ht:t:{for(var j=m.key;d!==null;){if(d.key===j){if(j=m.type,j===J){if(d.tag===7){e(v,d.sibling),O=u(d,m.props.children),O.return=v,v=O;break t}}else if(d.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ht&&Be(j)===d.type){e(v,d.sibling),O=u(d,m.props),Fa(O,m),O.return=v,v=O;break t}e(v,d);break}else l(v,d);d=d.sibling}m.type===J?(O=Ce(m.props.children,v.mode,O,m.key),O.return=v,v=O):(O=Ju(m.type,m.key,m.props,null,v.mode,O),Fa(O,m),O.return=v,v=O)}return c(v);case P:t:{for(j=m.key;d!==null;){if(d.key===j)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){e(v,d.sibling),O=u(d,m.children||[]),O.return=v,v=O;break t}else{e(v,d);break}else l(v,d);d=d.sibling}O=Ri(m,v.mode,O),O.return=v,v=O}return c(v);case Ht:return m=Be(m),ot(v,d,m,O)}if(Tl(m))return q(v,d,m,O);if(Zt(m)){if(j=Zt(m),typeof j!="function")throw Error(r(150));return m=j.call(m),Y(v,d,m,O)}if(typeof m.then=="function")return ot(v,d,Pu(m),O);if(m.$$typeof===mt)return ot(v,d,Wu(v,m),O);tn(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,d!==null&&d.tag===6?(e(v,d.sibling),O=u(d,m),O.return=v,v=O):(e(v,d),O=Ci(m,v.mode,O),O.return=v,v=O),c(v)):e(v,d)}return function(v,d,m,O){try{wa=0;var j=ot(v,d,m,O);return oa=null,j}catch(Q){if(Q===ra||Q===ku)throw Q;var lt=ul(29,Q,null,v.mode);return lt.lanes=O,lt.return=v,lt}}}var je=Ks(!0),Js=Ks(!1),ne=!1;function Li(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vi(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ie(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ce(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(at&2)!==0){var u=a.pending;return u===null?l.next=l:(l.next=u.next,u.next=l),a.pending=l,l=Ku(t),Us(t,null,e),l}return Vu(t,a,l,e),Ku(t)}function Wa(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,jf(t,e)}}function Ki(t,l){var e=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var u=null,n=null;if(e=e.firstBaseUpdate,e!==null){do{var c={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};n===null?u=n=c:n=n.next=c,e=e.next}while(e!==null);n===null?u=n=l:n=n.next=l}else u=n=l;e={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Ji=!1;function $a(){if(Ji){var t=sa;if(t!==null)throw t}}function ka(t,l,e,a){Ji=!1;var u=t.updateQueue;ne=!1;var n=u.firstBaseUpdate,c=u.lastBaseUpdate,f=u.shared.pending;if(f!==null){u.shared.pending=null;var h=f,g=h.next;h.next=null,c===null?n=g:c.next=g,c=h;var z=t.alternate;z!==null&&(z=z.updateQueue,f=z.lastBaseUpdate,f!==c&&(f===null?z.firstBaseUpdate=g:f.next=g,z.lastBaseUpdate=h))}if(n!==null){var M=u.baseState;c=0,z=g=h=null,f=n;do{var S=f.lane&-536870913,b=S!==f.lane;if(b?(k&S)===S:(a&S)===S){S!==0&&S===fa&&(Ji=!0),z!==null&&(z=z.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var q=t,Y=f;S=l;var ot=e;switch(Y.tag){case 1:if(q=Y.payload,typeof q=="function"){M=q.call(ot,M,S);break t}M=q;break t;case 3:q.flags=q.flags&-65537|128;case 0:if(q=Y.payload,S=typeof q=="function"?q.call(ot,M,S):q,S==null)break t;M=N({},M,S);break t;case 2:ne=!0}}S=f.callback,S!==null&&(t.flags|=64,b&&(t.flags|=8192),b=u.callbacks,b===null?u.callbacks=[S]:b.push(S))}else b={lane:S,tag:f.tag,payload:f.payload,callback:f.callback,next:null},z===null?(g=z=b,h=M):z=z.next=b,c|=S;if(f=f.next,f===null){if(f=u.shared.pending,f===null)break;b=f,f=b.next,b.next=null,u.lastBaseUpdate=b,u.shared.pending=null}}while(!0);z===null&&(h=M),u.baseState=h,u.firstBaseUpdate=g,u.lastBaseUpdate=z,n===null&&(u.shared.lanes=0),he|=c,t.lanes=c,t.memoizedState=M}}function ws(t,l){if(typeof t!="function")throw Error(r(191,t));t.call(l)}function Fs(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;tn?n:8;var c=T.T,f={};T.T=f,oc(t,!1,l,e);try{var h=u(),g=T.S;if(g!==null&&g(f,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var z=py(h,a);tu(t,l,z,sl(t))}else tu(t,l,a,sl(t))}catch(M){tu(t,l,{then:function(){},status:"rejected",reason:M},sl())}finally{R.p=n,c!==null&&f.types!==null&&(c.types=f.types),T.T=c}}function My(){}function sc(t,l,e,a){if(t.tag!==5)throw Error(r(476));var u=Mr(t).queue;Ar(t,u,l,X,e===null?My:function(){return _r(t),e(a)})}function Mr(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:X},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function _r(t){var l=Mr(t);l.next===null&&(l=t.alternate.memoizedState),tu(t,l.next.queue,{},sl())}function rc(){return Gt(gu)}function Dr(){return Mt().memoizedState}function Ur(){return Mt().memoizedState}function _y(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=sl();t=ie(e);var a=ce(l,t,e);a!==null&&(Pt(a,l,e),Wa(a,l,e)),l={cache:Gi()},t.payload=l;return}l=l.return}}function Dy(t,l,e){var a=sl();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},on(t)?Rr(l,e):(e=Di(t,l,e,a),e!==null&&(Pt(e,t,a),Hr(e,l,a)))}function Cr(t,l,e){var a=sl();tu(t,l,e,a)}function tu(t,l,e,a){var u={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(on(t))Rr(l,u);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=l.lastRenderedReducer,n!==null))try{var c=l.lastRenderedState,f=n(c,e);if(u.hasEagerState=!0,u.eagerState=f,al(f,c))return Vu(t,l,u,0),vt===null&&Lu(),!1}catch{}if(e=Di(t,l,u,a),e!==null)return Pt(e,t,a),Hr(e,l,a),!0}return!1}function oc(t,l,e,a){if(a={lane:2,revertLane:Lc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},on(t)){if(l)throw Error(r(479))}else l=Di(t,e,a,2),l!==null&&Pt(l,t,2)}function on(t){var l=t.alternate;return t===L||l!==null&&l===L}function Rr(t,l){da=an=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function Hr(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,jf(t,e)}}var lu={readContext:Gt,use:cn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};lu.useEffectEvent=pt;var qr={readContext:Gt,use:cn,useCallback:function(t,l){return Kt().memoizedState=[t,l===void 0?null:l],t},useContext:Gt,useEffect:mr,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,sn(4194308,4,pr.bind(null,l,t),e)},useLayoutEffect:function(t,l){return sn(4194308,4,t,l)},useInsertionEffect:function(t,l){sn(4,2,t,l)},useMemo:function(t,l){var e=Kt();l=l===void 0?null:l;var a=t();if(Ye){Il(!0);try{t()}finally{Il(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=Kt();if(e!==void 0){var u=e(l);if(Ye){Il(!0);try{e(l)}finally{Il(!1)}}}else u=l;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=Dy.bind(null,L,t),[a.memoizedState,t]},useRef:function(t){var l=Kt();return t={current:t},l.memoizedState=t},useState:function(t){t=uc(t);var l=t.queue,e=Cr.bind(null,L,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:cc,useDeferredValue:function(t,l){var e=Kt();return fc(e,t,l)},useTransition:function(){var t=uc(!1);return t=Ar.bind(null,L,t.queue,!0,!1),Kt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=L,u=Kt();if(tt){if(e===void 0)throw Error(r(407));e=e()}else{if(e=l(),vt===null)throw Error(r(349));(k&127)!==0||tr(a,l,e)}u.memoizedState=e;var n={value:e,getSnapshot:l};return u.queue=n,mr(er.bind(null,a,n,t),[t]),a.flags|=2048,va(9,{destroy:void 0},lr.bind(null,a,n,e,l),null),e},useId:function(){var t=Kt(),l=vt.identifierPrefix;if(tt){var e=Ul,a=Dl;e=(a&~(1<<32-el(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=un++,0<\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?n.multiple=!0:a.size&&(n.size=a.size);break;default:n=typeof a.is=="string"?c.createElement(u,{is:a.is}):c.createElement(u)}}n[jt]=l,n[wt]=a;t:for(c=l.child;c!==null;){if(c.tag===5||c.tag===6)n.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break t;for(;c.sibling===null;){if(c.return===null||c.return===l)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}l.stateNode=n;t:switch(xt(n,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Vl(l)}}return St(l),Ac(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(r(166));if(t=F.current,ia(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,u=Yt,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[jt]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Po(t.nodeValue,e)),t||ae(l,!0)}else t=Rn(t).createTextNode(a),t[jt]=l,l.stateNode=t}return St(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=ia(l),e!==null){if(t===null){if(!a)throw Error(r(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[jt]=l}else Re(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;St(l),t=!1}else e=Bi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(il(l),l):(il(l),null);if((l.flags&128)!==0)throw Error(r(558))}return St(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=ia(l),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=l.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[jt]=l}else Re(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;St(l),u=!1}else u=Bi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return l.flags&256?(il(l),l):(il(l),null)}return il(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),mn(l,l.updateQueue),St(l),null);case 4:return Ot(),t===null&&wc(l.stateNode.containerInfo),St(l),null;case 10:return Xl(l.type),St(l),null;case 19:if(_(At),a=l.memoizedState,a===null)return St(l),null;if(u=(l.flags&128)!==0,n=a.rendering,n===null)if(u)au(a,!1);else{if(Et!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(n=en(t),n!==null){for(l.flags|=128,au(a,!1),t=n.updateQueue,l.updateQueue=t,mn(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)Cs(e,t),e=e.sibling;return H(At,At.current&1|2),tt&&Yl(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&tl()>En&&(l.flags|=128,u=!0,au(a,!1),l.lanes=4194304)}else{if(!u)if(t=en(n),t!==null){if(l.flags|=128,u=!0,t=t.updateQueue,l.updateQueue=t,mn(l,t),au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!n.alternate&&!tt)return St(l),null}else 2*tl()-a.renderingStartTime>En&&e!==536870912&&(l.flags|=128,u=!0,au(a,!1),l.lanes=4194304);a.isBackwards?(n.sibling=l.child,l.child=n):(t=a.last,t!==null?t.sibling=n:l.child=n,a.last=n)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=tl(),t.sibling=null,e=At.current,H(At,u?e&1|2:e&1),tt&&Yl(l,a.treeForkCount),t):(St(l),null);case 22:case 23:return il(l),Fi(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(St(l),l.subtreeFlags&6&&(l.flags|=8192)):St(l),e=l.updateQueue,e!==null&&mn(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&_(Ne),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Xl(_t),St(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function qy(t,l){switch(qi(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Xl(_t),Ot(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Mu(l),null;case 31:if(l.memoizedState!==null){if(il(l),l.alternate===null)throw Error(r(340));Re()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(il(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Re()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return _(At),null;case 4:return Ot(),null;case 10:return Xl(l.type),null;case 22:case 23:return il(l),Fi(),t!==null&&_(Ne),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Xl(_t),null;case 25:return null;default:return null}}function ao(t,l){switch(qi(l),l.tag){case 3:Xl(_t),Ot();break;case 26:case 27:case 5:Mu(l);break;case 4:Ot();break;case 31:l.memoizedState!==null&&il(l);break;case 13:il(l);break;case 19:_(At);break;case 10:Xl(l.type);break;case 22:case 23:il(l),Fi(),t!==null&&_(Ne);break;case 24:Xl(_t)}}function uu(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var u=a.next;e=u;do{if((e.tag&t)===t){a=void 0;var n=e.create,c=e.inst;a=n(),c.destroy=a}e=e.next}while(e!==u)}}catch(f){ct(l,l.return,f)}}function re(t,l,e){try{var a=l.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&t)===t){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,u=l;var h=e,g=f;try{g()}catch(z){ct(u,h,z)}}}a=a.next}while(a!==n)}}catch(z){ct(l,l.return,z)}}function uo(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{Fs(l,e)}catch(a){ct(t,t.return,a)}}}function no(t,l,e){e.props=Ge(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){ct(t,l,a)}}function nu(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof e=="function"?t.refCleanup=e(a):e.current=a}}catch(u){ct(t,l,u)}}function Cl(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(u){ct(t,l,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(u){ct(t,l,u)}else e.current=null}function io(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(u){ct(t,t.return,u)}}function Mc(t,l,e){try{var a=t.stateNode;lv(a,t.type,e,l),a[wt]=l}catch(u){ct(t,t.return,u)}}function co(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ge(t.type)||t.tag===4}function _c(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||co(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ge(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Dc(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=Bl));else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(Dc(t,l,e),t=t.sibling;t!==null;)Dc(t,l,e),t=t.sibling}function gn(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(gn(t,l,e),t=t.sibling;t!==null;)gn(t,l,e),t=t.sibling}function fo(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,u=l.attributes;u.length;)l.removeAttributeNode(u[0]);xt(l,a,e),l[jt]=t,l[wt]=e}catch(n){ct(t,t.return,n)}}var Kl=!1,Ct=!1,Uc=!1,so=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function Ny(t,l){if(t=t.containerInfo,$c=Yn,t=Es(t),zi(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var u=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{e.nodeType,n.nodeType}catch{e=null;break t}var c=0,f=-1,h=-1,g=0,z=0,M=t,S=null;l:for(;;){for(var b;M!==e||u!==0&&M.nodeType!==3||(f=c+u),M!==n||a!==0&&M.nodeType!==3||(h=c+a),M.nodeType===3&&(c+=M.nodeValue.length),(b=M.firstChild)!==null;)S=M,M=b;for(;;){if(M===t)break l;if(S===e&&++g===u&&(f=c),S===n&&++z===a&&(h=c),(b=M.nextSibling)!==null)break;M=S,S=M.parentNode}M=b}e=f===-1||h===-1?null:{start:f,end:h}}else e=null}e=e||{start:0,end:0}}else e=null;for(kc={focusedElem:t,selectionRange:e},Yn=!1,Qt=l;Qt!==null;)if(l=Qt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Qt=t;else for(;Qt!==null;){switch(l=Qt,n=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e title"))),xt(n,a,e),n[jt]=t,Bt(n),a=n;break t;case"link":var c=mh("link","href",u).get(a+(e.href||""));if(c){for(var f=0;fot&&(c=ot,ot=Y,Y=c);var v=bs(f,Y),d=bs(f,ot);if(v&&d&&(b.rangeCount!==1||b.anchorNode!==v.node||b.anchorOffset!==v.offset||b.focusNode!==d.node||b.focusOffset!==d.offset)){var m=M.createRange();m.setStart(v.node,v.offset),b.removeAllRanges(),Y>ot?(b.addRange(m),b.extend(d.node,d.offset)):(m.setEnd(d.node,d.offset),b.addRange(m))}}}}for(M=[],b=f;b=b.parentNode;)b.nodeType===1&&M.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;fe?32:e,T.T=null,e=Qc,Qc=null;var n=ye,c=$l;if(qt=0,pa=ye=null,$l=0,(at&6)!==0)throw Error(r(331));var f=at;if(at|=4,Eo(n.current),So(n,n.current,c,e),at=f,ou(0,!1),ll&&typeof ll.onPostCommitFiberRoot=="function")try{ll.onPostCommitFiberRoot(Ua,n)}catch{}return!0}finally{R.p=u,T.T=a,Go(t,l)}}function xo(t,l,e){l=ml(e,l),l=vc(t.stateNode,l,2),t=ce(t,l,2),t!==null&&(Ra(t,2),Rl(t))}function ct(t,l,e){if(t.tag===3)xo(t,t,e);else for(;l!==null;){if(l.tag===3){xo(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(de===null||!de.has(a))){t=ml(e,t),e=xr(2),a=ce(l,e,2),a!==null&&(Zr(e,a,l,t),Ra(a,2),Rl(a));break}}l=l.return}}function Xc(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new jy;var u=new Set;a.set(l,u)}else u=a.get(l),u===void 0&&(u=new Set,a.set(l,u));u.has(e)||(Hc=!0,u.add(e),t=Zy.bind(null,t,l,e),l.then(t,t))}function Zy(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,vt===t&&(k&e)===e&&(Et===4||Et===3&&(k&62914560)===k&&300>tl()-pn?(at&2)===0&&Ea(t,0):qc|=e,ba===k&&(ba=0)),Rl(t)}function Zo(t,l){l===0&&(l=Bf()),t=Ue(t,l),t!==null&&(Ra(t,l),Rl(t))}function Ly(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Zo(t,e)}function Vy(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(e=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(l),Zo(t,e)}function Ky(t,l){return Pn(t,l)}var _n=null,Ta=null,xc=!1,Dn=!1,Zc=!1,me=0;function Rl(t){t!==Ta&&t.next===null&&(Ta===null?_n=Ta=t:Ta=Ta.next=t),Dn=!0,xc||(xc=!0,wy())}function ou(t,l){if(!Zc&&Dn){Zc=!0;do for(var e=!1,a=_n;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var c=a.suspendedLanes,f=a.pingedLanes;n=(1<<31-el(42|t)+1)-1,n&=u&~(c&~f),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(e=!0,Jo(a,n))}else n=k,n=Ru(a,a===vt?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||Ca(a,n)||(e=!0,Jo(a,n));a=a.next}while(e);Zc=!1}}function Jy(){Lo()}function Lo(){Dn=xc=!1;var t=0;me!==0&&av()&&(t=me);for(var l=tl(),e=null,a=_n;a!==null;){var u=a.next,n=Vo(a,l);n===0?(a.next=null,e===null?_n=u:e.next=u,u===null&&(Ta=e)):(e=a,(t!==0||(n&3)!==0)&&(Dn=!0)),a=u}qt!==0&&qt!==5||ou(t),me!==0&&(me=0)}function Vo(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,n=t.pendingLanes&-62914561;0f)break;var z=h.transferSize,M=h.initiatorType;z&&th(M)&&(h=h.responseEnd,c+=z*(h"u"?null:document;function hh(t,l,e){var a=Oa;if(a&&typeof l=="string"&&l){var u=yl(l);u='link[rel="'+t+'"][href="'+u+'"]',typeof e=="string"&&(u+='[crossorigin="'+e+'"]'),oh.has(u)||(oh.add(u),t={rel:t,crossOrigin:e,href:l},a.querySelector(u)===null&&(l=a.createElement("link"),xt(l,"link",t),Bt(l),a.head.appendChild(l)))}}function hv(t){kl.D(t),hh("dns-prefetch",t,null)}function dv(t,l){kl.C(t,l),hh("preconnect",t,l)}function yv(t,l,e){kl.L(t,l,e);var a=Oa;if(a&&t&&l){var u='link[rel="preload"][as="'+yl(l)+'"]';l==="image"&&e&&e.imageSrcSet?(u+='[imagesrcset="'+yl(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(u+='[imagesizes="'+yl(e.imageSizes)+'"]')):u+='[href="'+yl(t)+'"]';var n=u;switch(l){case"style":n=Aa(t);break;case"script":n=Ma(t)}zl.has(n)||(t=N({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),zl.set(n,t),a.querySelector(u)!==null||l==="style"&&a.querySelector(vu(n))||l==="script"&&a.querySelector(mu(n))||(l=a.createElement("link"),xt(l,"link",t),Bt(l),a.head.appendChild(l)))}}function vv(t,l){kl.m(t,l);var e=Oa;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",u='link[rel="modulepreload"][as="'+yl(a)+'"][href="'+yl(t)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Ma(t)}if(!zl.has(n)&&(t=N({rel:"modulepreload",href:t},l),zl.set(n,t),e.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(mu(n)))return}a=e.createElement("link"),xt(a,"link",t),Bt(a),e.head.appendChild(a)}}}function mv(t,l,e){kl.S(t,l,e);var a=Oa;if(a&&t){var u=we(a).hoistableStyles,n=Aa(t);l=l||"default";var c=u.get(n);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(vu(n)))f.loading=5;else{t=N({rel:"stylesheet",href:t,"data-precedence":l},e),(e=zl.get(n))&&uf(t,e);var h=c=a.createElement("link");Bt(h),xt(h,"link",t),h._p=new Promise(function(g,z){h.onload=g,h.onerror=z}),h.addEventListener("load",function(){f.loading|=1}),h.addEventListener("error",function(){f.loading|=2}),f.loading|=4,qn(c,l,a)}c={type:"stylesheet",instance:c,count:1,state:f},u.set(n,c)}}}function gv(t,l){kl.X(t,l);var e=Oa;if(e&&t){var a=we(e).hoistableScripts,u=Ma(t),n=a.get(u);n||(n=e.querySelector(mu(u)),n||(t=N({src:t,async:!0},l),(l=zl.get(u))&&nf(t,l),n=e.createElement("script"),Bt(n),xt(n,"link",t),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function Sv(t,l){kl.M(t,l);var e=Oa;if(e&&t){var a=we(e).hoistableScripts,u=Ma(t),n=a.get(u);n||(n=e.querySelector(mu(u)),n||(t=N({src:t,async:!0,type:"module"},l),(l=zl.get(u))&&nf(t,l),n=e.createElement("script"),Bt(n),xt(n,"link",t),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function dh(t,l,e,a){var u=(u=F.current)?Hn(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(l=Aa(e.href),e=we(u).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=Aa(e.href);var n=we(u).hoistableStyles,c=n.get(t);if(c||(u=u.ownerDocument||u,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(t,c),(n=u.querySelector(vu(t)))&&!n._p&&(c.instance=n,c.state.loading=5),zl.has(t)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},zl.set(t,e),n||bv(u,t,e,c.state))),l&&a===null)throw Error(r(528,""));return c}if(l&&a!==null)throw Error(r(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ma(e),e=we(u).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Aa(t){return'href="'+yl(t)+'"'}function vu(t){return'link[rel="stylesheet"]['+t+"]"}function yh(t){return N({},t,{"data-precedence":t.precedence,precedence:null})}function bv(t,l,e,a){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=t.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),xt(l,"link",e),Bt(l),t.head.appendChild(l))}function Ma(t){return'[src="'+yl(t)+'"]'}function mu(t){return"script[async]"+t}function vh(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+yl(e.href)+'"]');if(a)return l.instance=a,Bt(a),a;var u=N({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Bt(a),xt(a,"style",u),qn(a,e.precedence,t),l.instance=a;case"stylesheet":u=Aa(e.href);var n=t.querySelector(vu(u));if(n)return l.state.loading|=4,l.instance=n,Bt(n),n;a=yh(e),(u=zl.get(u))&&uf(a,u),n=(t.ownerDocument||t).createElement("link"),Bt(n);var c=n;return c._p=new Promise(function(f,h){c.onload=f,c.onerror=h}),xt(n,"link",a),l.state.loading|=4,qn(n,e.precedence,t),l.instance=n;case"script":return n=Ma(e.src),(u=t.querySelector(mu(n)))?(l.instance=u,Bt(u),u):(a=e,(u=zl.get(n))&&(a=N({},e),nf(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Bt(u),xt(u,"link",a),t.head.appendChild(u),l.instance=u);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,qn(a,e.precedence,t));return l.instance}function qn(t,l,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,c=0;c title"):null)}function pv(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(t=l.disabled,typeof l.precedence=="string"&&t==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Sh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Ev(t,l,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var u=Aa(a.href),n=l.querySelector(vu(u));if(n){l=n._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Bn.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=n,Bt(n);return}n=l.ownerDocument||l,a=yh(a),(u=zl.get(u))&&uf(a,u),n=n.createElement("link"),Bt(n);var c=n;c._p=new Promise(function(f,h){c.onload=f,c.onerror=h}),xt(n,"link",a),e.instance=n}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=Bn.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var cf=0;function zv(t,l){return t.stylesheets&&t.count===0&&jn(t,t.stylesheets),0cf?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Bn(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jn(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Qn=null;function jn(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Qn=new Map,l.forEach(Tv,t),Qn=null,Bn.call(t))}function Tv(t,l){if(!(l.state.loading&4)){var e=Qn.get(t);if(e)var a=e.get(null);else{e=new Map,Qn.set(t,e);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),vf.exports=xv(),vf.exports}var M0=Zv(),Le=_f();const Ze=Ih(Le),_0=Hv({__proto__:null,default:Ze},[Le]);var pf={exports:{}};var Zh;function Lv(){return Zh||(Zh=1,(function(i){(function(){var s={}.hasOwnProperty;function o(){for(var E="",C=0;C{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},t0={setTimeout:(i,s)=>setTimeout(i,s),clearTimeout:i=>clearTimeout(i),setInterval:(i,s)=>setInterval(i,s),clearInterval:i=>clearInterval(i)},l0=class{#t=t0;#l=!1;setTimeoutProvider(i){this.#t=i}setTimeout(i,s){return this.#t.setTimeout(i,s)}clearTimeout(i){this.#t.clearTimeout(i)}setInterval(i,s){return this.#t.setInterval(i,s)}clearInterval(i){this.#t.clearInterval(i)}},Tf=new l0;function e0(i){setTimeout(i,0)}var Fn=typeof window>"u"||"Deno"in globalThis;function _l(){}function a0(i,s){return typeof i=="function"?i(s):i}function u0(i){return typeof i=="number"&&i>=0&&i!==1/0}function n0(i,s){return Math.max(i+(s||0)-Date.now(),0)}function Of(i,s){return typeof i=="function"?i(s):i}function i0(i,s){return typeof i=="function"?i(s):i}function Vh(i,s){const{type:o="all",exact:r,fetchStatus:p,predicate:E,queryKey:C,stale:D}=i;if(C){if(r){if(s.queryHash!==Df(C,s.options))return!1}else if(!Au(s.queryKey,C))return!1}if(o!=="all"){const U=s.isActive();if(o==="active"&&!U||o==="inactive"&&U)return!1}return!(typeof D=="boolean"&&s.isStale()!==D||p&&p!==s.state.fetchStatus||E&&!E(s))}function Kh(i,s){const{exact:o,status:r,predicate:p,mutationKey:E}=i;if(E){if(!s.options.mutationKey)return!1;if(o){if(Ou(s.options.mutationKey)!==Ou(E))return!1}else if(!Au(s.options.mutationKey,E))return!1}return!(r&&s.state.status!==r||p&&!p(s))}function Df(i,s){return(s?.queryKeyHashFn||Ou)(i)}function Ou(i){return JSON.stringify(i,(s,o)=>Af(o)?Object.keys(o).sort().reduce((r,p)=>(r[p]=o[p],r),{}):o)}function Au(i,s){return i===s?!0:typeof i!=typeof s?!1:i&&s&&typeof i=="object"&&typeof s=="object"?Object.keys(s).every(o=>Au(i[o],s[o])):!1}var c0=Object.prototype.hasOwnProperty;function ed(i,s,o=0){if(i===s)return i;if(o>500)return s;const r=Jh(i)&&Jh(s);if(!r&&!(Af(i)&&Af(s)))return s;const E=(r?i:Object.keys(i)).length,C=r?s:Object.keys(s),D=C.length,U=r?new Array(D):{};let A=0;for(let G=0;G{Tf.setTimeout(s,i)})}function s0(i,s,o){return typeof o.structuralSharing=="function"?o.structuralSharing(i,s):o.structuralSharing!==!1?ed(i,s):s}function r0(i,s,o=0){const r=[...i,s];return o&&r.length>o?r.slice(1):r}function o0(i,s,o=0){const r=[s,...i];return o&&r.length>o?r.slice(0,-1):r}var Uf=Symbol();function ad(i,s){return!i.queryFn&&s?.initialPromise?()=>s.initialPromise:!i.queryFn||i.queryFn===Uf?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function C0(i,s){return typeof i=="function"?i(...s):!!i}function h0(i,s,o){let r=!1,p;return Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(p??=s(),r||(r=!0,p.aborted?o():p.addEventListener("abort",o,{once:!0})),p)}),i}var d0=class extends wn{#t;#l;#e;constructor(){super(),this.#e=i=>{if(!Fn&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#l||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#l?.(),this.#l=void 0)}setEventListener(i){this.#e=i,this.#l?.(),this.#l=i(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(i){this.#t!==i&&(this.#t=i,this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},ud=new d0;function y0(){let i,s;const o=new Promise((p,E)=>{i=p,s=E});o.status="pending",o.catch(()=>{});function r(p){Object.assign(o,p),delete o.resolve,delete o.reject}return o.resolve=p=>{r({status:"fulfilled",value:p}),i(p)},o.reject=p=>{r({status:"rejected",reason:p}),s(p)},o}var v0=e0;function m0(){let i=[],s=0,o=D=>{D()},r=D=>{D()},p=v0;const E=D=>{s?i.push(D):p(()=>{o(D)})},C=()=>{const D=i;i=[],D.length&&p(()=>{r(()=>{D.forEach(U=>{o(U)})})})};return{batch:D=>{let U;s++;try{U=D()}finally{s--,s||C()}return U},batchCalls:D=>(...U)=>{E(()=>{D(...U)})},schedule:E,setNotifyFunction:D=>{o=D},setBatchNotifyFunction:D=>{r=D},setScheduler:D=>{p=D}}}var Jt=m0(),g0=class extends wn{#t=!0;#l;#e;constructor(){super(),this.#e=i=>{if(!Fn&&window.addEventListener){const s=()=>i(!0),o=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#l||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#l?.(),this.#l=void 0)}setEventListener(i){this.#e=i,this.#l?.(),this.#l=i(this.setOnline.bind(this))}setOnline(i){this.#t!==i&&(this.#t=i,this.listeners.forEach(o=>{o(i)}))}isOnline(){return this.#t}},Jn=new g0;function S0(i){return Math.min(1e3*2**i,3e4)}function nd(i){return(i??"online")==="online"?Jn.isOnline():!0}var Mf=class extends Error{constructor(i){super("CancelledError"),this.revert=i?.revert,this.silent=i?.silent}};function id(i){let s=!1,o=0,r;const p=y0(),E=()=>p.status!=="pending",C=J=>{if(!E()){const nt=new Mf(J);K(nt),i.onCancel?.(nt)}},D=()=>{s=!0},U=()=>{s=!1},A=()=>ud.isFocused()&&(i.networkMode==="always"||Jn.isOnline())&&i.canRun(),G=()=>nd(i.networkMode)&&i.canRun(),N=J=>{E()||(r?.(),p.resolve(J))},K=J=>{E()||(r?.(),p.reject(J))},ht=()=>new Promise(J=>{r=nt=>{(E()||A())&&J(nt)},i.onPause?.()}).then(()=>{r=void 0,E()||i.onContinue?.()}),P=()=>{if(E())return;let J;const nt=o===0?i.initialPromise:void 0;try{J=nt??i.fn()}catch(dt){J=Promise.reject(dt)}Promise.resolve(J).then(N).catch(dt=>{if(E())return;const zt=i.retry??(Fn?0:3),mt=i.retryDelay??S0,Rt=typeof mt=="function"?mt(o,dt):mt,Nt=zt===!0||typeof zt=="number"&&oA()?void 0:ht()).then(()=>{s?K(dt):P()})})};return{promise:p,status:()=>p.status,cancel:C,continue:()=>(r?.(),p),cancelRetry:D,continueRetry:U,canStart:G,start:()=>(G()?P():ht().then(P),p)}}var cd=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u0(this.gcTime)&&(this.#t=Tf.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(Fn?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Tf.clearTimeout(this.#t),this.#t=void 0)}},b0=class extends cd{#t;#l;#e;#u;#a;#i;#c;constructor(i){super(),this.#c=!1,this.#i=i.defaultOptions,this.setOptions(i.options),this.observers=[],this.#u=i.client,this.#e=this.#u.getQueryCache(),this.queryKey=i.queryKey,this.queryHash=i.queryHash,this.#t=Wh(this.options),this.state=i.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(i){if(this.options={...this.#i,...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Wh(this.options);s.data!==void 0&&(this.setState(Fh(s.data,s.dataUpdatedAt)),this.#t=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(i,s){const o=s0(this.state.data,i,this.options);return this.#n({data:o,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),o}setState(i,s){this.#n({type:"setState",state:i,setStateOptions:s})}cancel(i){const s=this.#a?.promise;return this.#a?.cancel(i),s?s.then(_l).catch(_l):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(i=>i0(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Of(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!n0(this.state.dataUpdatedAt,i)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(this.#a&&(this.#c?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#n({type:"invalidate"})}async fetch(i,s){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(i&&this.setOptions(i),!this.options.queryFn){const D=this.observers.find(U=>U.options.queryFn);D&&this.setOptions(D.options)}const o=new AbortController,r=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(this.#c=!0,o.signal)})},p=()=>{const D=ad(this.options,s),A=(()=>{const G={client:this.#u,queryKey:this.queryKey,meta:this.meta};return r(G),G})();return this.#c=!1,this.options.persister?this.options.persister(D,A,this):D(A)},C=(()=>{const D={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:p};return r(D),D})();this.options.behavior?.onFetch(C,this),this.#l=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==C.fetchOptions?.meta)&&this.#n({type:"fetch",meta:C.fetchOptions?.meta}),this.#a=id({initialPromise:s?.initialPromise,fn:C.fetchFn,onCancel:D=>{D instanceof Mf&&D.revert&&this.setState({...this.#l,fetchStatus:"idle"}),o.abort()},onFail:(D,U)=>{this.#n({type:"failed",failureCount:D,error:U})},onPause:()=>{this.#n({type:"pause"})},onContinue:()=>{this.#n({type:"continue"})},retry:C.options.retry,retryDelay:C.options.retryDelay,networkMode:C.options.networkMode,canRun:()=>!0});try{const D=await this.#a.start();if(D===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(D),this.#e.config.onSuccess?.(D,this),this.#e.config.onSettled?.(D,this.state.error,this),D}catch(D){if(D instanceof Mf){if(D.silent)return this.#a.promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw this.#n({type:"error",error:D}),this.#e.config.onError?.(D,this),this.#e.config.onSettled?.(this.state.data,D,this),D}finally{this.scheduleGc()}}#n(i){const s=o=>{switch(i.type){case"failed":return{...o,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...p0(o.data,this.options),fetchMeta:i.meta??null};case"success":const r={...o,...Fh(i.data,i.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=i.manual?r:void 0,r;case"error":const p=i.error;return{...o,error:p,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:p,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...i.state}}};this.state=s(this.state),Jt.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:i})})}};function p0(i,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nd(s.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Fh(i,s){return{data:i,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wh(i){const s=typeof i.initialData=="function"?i.initialData():i.initialData,o=s!==void 0,r=o?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:o?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}function $h(i){return{onFetch:(s,o)=>{const r=s.options,p=s.fetchOptions?.meta?.fetchMore?.direction,E=s.state.data?.pages||[],C=s.state.data?.pageParams||[];let D={pages:[],pageParams:[]},U=0;const A=async()=>{let G=!1;const N=P=>{h0(P,()=>s.signal,()=>G=!0)},K=ad(s.options,s.fetchOptions),ht=async(P,J,nt)=>{if(G)return Promise.reject();if(J==null&&P.pages.length)return Promise.resolve(P);const zt=(()=>{const Tt={client:s.client,queryKey:s.queryKey,pageParam:J,direction:nt?"backward":"forward",meta:s.options.meta};return N(Tt),Tt})(),mt=await K(zt),{maxPages:Rt}=s.options,Nt=nt?o0:r0;return{pages:Nt(P.pages,mt,Rt),pageParams:Nt(P.pageParams,J,Rt)}};if(p&&E.length){const P=p==="backward",J=P?E0:kh,nt={pages:E,pageParams:C},dt=J(r,nt);D=await ht(nt,dt,P)}else{const P=i??E.length;do{const J=U===0?C[0]??r.initialPageParam:kh(r,D);if(U>0&&J==null)break;D=await ht(D,J),U++}while(Us.options.persister?.(A,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},o):s.fetchFn=A}}}function kh(i,{pages:s,pageParams:o}){const r=s.length-1;return s.length>0?i.getNextPageParam(s[r],s,o[r],o):void 0}function E0(i,{pages:s,pageParams:o}){return s.length>0?i.getPreviousPageParam?.(s[0],s,o[0],o):void 0}var z0=class extends cd{#t;#l;#e;#u;constructor(i){super(),this.#t=i.client,this.mutationId=i.mutationId,this.#e=i.mutationCache,this.#l=[],this.state=i.state||T0(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){this.#l.includes(i)||(this.#l.push(i),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){this.#l=this.#l.filter(s=>s!==i),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){this.#l.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(i){const s=()=>{this.#a({type:"continue"})},o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#u=id({fn:()=>this.options.mutationFn?this.options.mutationFn(i,o):Promise.reject(new Error("No mutationFn found")),onFail:(E,C)=>{this.#a({type:"failed",failureCount:E,error:C})},onPause:()=>{this.#a({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",p=!this.#u.canStart();try{if(r)s();else{this.#a({type:"pending",variables:i,isPaused:p}),await this.#e.config.onMutate?.(i,this,o);const C=await this.options.onMutate?.(i,o);C!==this.state.context&&this.#a({type:"pending",context:C,variables:i,isPaused:p})}const E=await this.#u.start();return await this.#e.config.onSuccess?.(E,i,this.state.context,this,o),await this.options.onSuccess?.(E,i,this.state.context,o),await this.#e.config.onSettled?.(E,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(E,null,i,this.state.context,o),this.#a({type:"success",data:E}),E}catch(E){try{await this.#e.config.onError?.(E,i,this.state.context,this,o)}catch(C){Promise.reject(C)}try{await this.options.onError?.(E,i,this.state.context,o)}catch(C){Promise.reject(C)}try{await this.#e.config.onSettled?.(void 0,E,this.state.variables,this.state.context,this,o)}catch(C){Promise.reject(C)}try{await this.options.onSettled?.(void 0,E,i,this.state.context,o)}catch(C){Promise.reject(C)}throw this.#a({type:"error",error:E}),E}finally{this.#e.runNext(this)}}#a(i){const s=o=>{switch(i.type){case"failed":return{...o,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...o,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:i.error,failureCount:o.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Jt.batch(()=>{this.#l.forEach(o=>{o.onMutationUpdate(i)}),this.#e.notify({mutation:this,type:"updated",action:i})})}};function T0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var O0=class extends wn{constructor(i={}){super(),this.config=i,this.#t=new Set,this.#l=new Map,this.#e=0}#t;#l;#e;build(i,s,o){const r=new z0({client:i,mutationCache:this,mutationId:++this.#e,options:i.defaultMutationOptions(s),state:o});return this.add(r),r}add(i){this.#t.add(i);const s=Kn(i);if(typeof s=="string"){const o=this.#l.get(s);o?o.push(i):this.#l.set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(this.#t.delete(i)){const s=Kn(i);if(typeof s=="string"){const o=this.#l.get(s);if(o)if(o.length>1){const r=o.indexOf(i);r!==-1&&o.splice(r,1)}else o[0]===i&&this.#l.delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=Kn(i);if(typeof s=="string"){const r=this.#l.get(s)?.find(p=>p.state.status==="pending");return!r||r===i}else return!0}runNext(i){const s=Kn(i);return typeof s=="string"?this.#l.get(s)?.find(r=>r!==i&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(i=>{this.notify({type:"removed",mutation:i})}),this.#t.clear(),this.#l.clear()})}getAll(){return Array.from(this.#t)}find(i){const s={exact:!0,...i};return this.getAll().find(o=>Kh(s,o))}findAll(i={}){return this.getAll().filter(s=>Kh(i,s))}notify(i){Jt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return Jt.batch(()=>Promise.all(i.map(s=>s.continue().catch(_l))))}};function Kn(i){return i.options.scope?.id}var A0=class extends wn{constructor(i={}){super(),this.config=i,this.#t=new Map}#t;build(i,s,o){const r=s.queryKey,p=s.queryHash??Df(r,s);let E=this.get(p);return E||(E=new b0({client:i,queryKey:r,queryHash:p,options:i.defaultQueryOptions(s),state:o,defaultOptions:i.getQueryDefaults(r)}),this.add(E)),E}add(i){this.#t.has(i.queryHash)||(this.#t.set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=this.#t.get(i.queryHash);s&&(i.destroy(),s===i&&this.#t.delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){Jt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return this.#t.get(i)}getAll(){return[...this.#t.values()]}find(i){const s={exact:!0,...i};return this.getAll().find(o=>Vh(s,o))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(o=>Vh(i,o)):s}notify(i){Jt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},R0=class{#t;#l;#e;#u;#a;#i;#c;#n;constructor(i={}){this.#t=i.queryCache||new A0,this.#l=i.mutationCache||new O0,this.#e=i.defaultOptions||{},this.#u=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#c=ud.subscribe(async i=>{i&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#n=Jn.subscribe(async i=>{i&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#c?.(),this.#c=void 0,this.#n?.(),this.#n=void 0)}isFetching(i){return this.#t.findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return this.#l.findAll({...i,status:"pending"}).length}getQueryData(i){const s=this.defaultQueryOptions({queryKey:i});return this.#t.get(s.queryHash)?.state.data}ensureQueryData(i){const s=this.defaultQueryOptions(i),o=this.#t.build(this,s),r=o.state.data;return r===void 0?this.fetchQuery(i):(i.revalidateIfStale&&o.isStaleByTime(Of(s.staleTime,o))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(i){return this.#t.findAll(i).map(({queryKey:s,state:o})=>{const r=o.data;return[s,r]})}setQueryData(i,s,o){const r=this.defaultQueryOptions({queryKey:i}),E=this.#t.get(r.queryHash)?.state.data,C=a0(s,E);if(C!==void 0)return this.#t.build(this,r).setData(C,{...o,manual:!0})}setQueriesData(i,s,o){return Jt.batch(()=>this.#t.findAll(i).map(({queryKey:r})=>[r,this.setQueryData(r,s,o)]))}getQueryState(i){const s=this.defaultQueryOptions({queryKey:i});return this.#t.get(s.queryHash)?.state}removeQueries(i){const s=this.#t;Jt.batch(()=>{s.findAll(i).forEach(o=>{s.remove(o)})})}resetQueries(i,s){const o=this.#t;return Jt.batch(()=>(o.findAll(i).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...i},s)))}cancelQueries(i,s={}){const o={revert:!0,...s},r=Jt.batch(()=>this.#t.findAll(i).map(p=>p.cancel(o)));return Promise.all(r).then(_l).catch(_l)}invalidateQueries(i,s={}){return Jt.batch(()=>(this.#t.findAll(i).forEach(o=>{o.invalidate()}),i?.refetchType==="none"?Promise.resolve():this.refetchQueries({...i,type:i?.refetchType??i?.type??"active"},s)))}refetchQueries(i,s={}){const o={...s,cancelRefetch:s.cancelRefetch??!0},r=Jt.batch(()=>this.#t.findAll(i).filter(p=>!p.isDisabled()&&!p.isStatic()).map(p=>{let E=p.fetch(void 0,o);return o.throwOnError||(E=E.catch(_l)),p.state.fetchStatus==="paused"?Promise.resolve():E}));return Promise.all(r).then(_l)}fetchQuery(i){const s=this.defaultQueryOptions(i);s.retry===void 0&&(s.retry=!1);const o=this.#t.build(this,s);return o.isStaleByTime(Of(s.staleTime,o))?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(_l).catch(_l)}fetchInfiniteQuery(i){return i.behavior=$h(i.pages),this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(_l).catch(_l)}ensureInfiniteQueryData(i){return i.behavior=$h(i.pages),this.ensureQueryData(i)}resumePausedMutations(){return Jn.isOnline()?this.#l.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#l}getDefaultOptions(){return this.#e}setDefaultOptions(i){this.#e=i}setQueryDefaults(i,s){this.#u.set(Ou(i),{queryKey:i,defaultOptions:s})}getQueryDefaults(i){const s=[...this.#u.values()],o={};return s.forEach(r=>{Au(i,r.queryKey)&&Object.assign(o,r.defaultOptions)}),o}setMutationDefaults(i,s){this.#a.set(Ou(i),{mutationKey:i,defaultOptions:s})}getMutationDefaults(i){const s=[...this.#a.values()],o={};return s.forEach(r=>{Au(i,r.mutationKey)&&Object.assign(o,r.defaultOptions)}),o}defaultQueryOptions(i){if(i._defaulted)return i;const s={...this.#e.queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return s.queryHash||(s.queryHash=Df(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Uf&&(s.enabled=!1),s}defaultMutationOptions(i){return i?._defaulted?i:{...this.#e.mutations,...i?.mutationKey&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){this.#t.clear(),this.#l.clear()}},fd=Le.createContext(void 0),H0=i=>{const s=Le.useContext(fd);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},q0=({client:i,children:s})=>(Le.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),Bv.jsx(fd.Provider,{value:i,children:s}));export{D0 as C,q0 as Q,Ze as R,wn as S,M0 as a,R0 as b,Ph as c,_0 as d,Xv as e,i0 as f,Of as g,u0 as h,Fn as i,Bv as j,n0 as k,Tf as l,ud as m,_l as n,p0 as o,y0 as p,s0 as q,Le as r,U0 as s,Ef as t,Jt as u,C0 as v,H0 as w};