var mYt=Object.defineProperty;var gYt=Object.getPrototypeOf;var hYt=Reflect.get;var zIe=Hn=>{throw TypeError(Hn)};var fYt=(Hn,Ja,Ia)=>Ja in Hn?mYt(Hn,Ja,{enumerable:!0,configurable:!0,writable:!0,value:Ia}):Hn[Ja]=Ia;var Ve=(Hn,Ja,Ia)=>fYt(Hn,typeof Ja!="symbol"?Ja+"":Ja,Ia),AU=(Hn,Ja,Ia)=>Ja.has(Hn)||zIe("Cannot "+Ia);var Me=(Hn,Ja,Ia)=>(AU(Hn,Ja,"read from private field"),Ia?Ia.call(Hn):Ja.get(Hn)),fn=(Hn,Ja,Ia)=>Ja.has(Hn)?zIe("Cannot add the same private member more than once"):Ja instanceof WeakSet?Ja.add(Hn):Ja.set(Hn,Ia),Ut=(Hn,Ja,Ia,Ig)=>(AU(Hn,Ja,"write to private field"),Ig?Ig.call(Hn,Ia):Ja.set(Hn,Ia),Ia),Xn=(Hn,Ja,Ia)=>(AU(Hn,Ja,"access private method"),Ia);var zT=(Hn,Ja,Ia,Ig)=>({set _(mv){Ut(Hn,Ja,mv,Ia)},get _(){return Me(Hn,Ja,Ig)}}),UIe=(Hn,Ja,Ia)=>hYt(gYt(Hn),Ia,Ja);var widget=(function(Hn){"use strict";var zm,uG,Zxe,Lf,Um,vw,Vxe,Cw,Hm,_w,Jxe,Nf,Xxe,Rf,xw,_l,Mf,mo,dE,$f,pu,oA,eEe,oc,xa,pE,Ts,Pf,Ew,Lp,Ym,AE,Bw,Iw,Of,jf,Wm,Dw,Va,sB,mU,gU,hU,fU,bU,yU,wU,HIe,tEe,mE,hd,Fs,qf,fd,Bg,nEe,Np,Au,gE,aEe,Rp,Km,sc,Mp,$p,UT,kU,rEe,bd,iEe,Yr,Zm,Vm,Qw,Sw,Jm,Tw,Fw,oEe,Pp,xl,Xm,Op,Gf,eg,zf,hE,CU,tg,L8,fE,sEe,cEe,Lw,Nw,Rw,Mw,$w,Pw,Ow,jw,Uf,qw,Gw,zw,Uw,Hw,Yw,Ww,Kw,Zw,Vw,Jw,Xw,ek,tk,nk,ak,rk,ik,ok,sk,ck,lk,uk,dk,pk,Ak,mk,gk,hk,fk,bk,yk,wk,kk,vk,Ck,_k,xk,Hf,Ek,Bk,Ik,jp,Dk,lEe,uEe,dEe,Qk,Sk;function Ja(t,e){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Ia(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ig(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function a(){var r=!1;try{r=this instanceof a}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return t[a]}})}),n}var mv={exports:{}},gv={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var EU;function JIe(){if(EU)return gv;EU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(a,r,i){var o=null;if(i!==void 0&&(o=""+i),r.key!==void 0&&(o=""+r.key),"key"in r){i={};for(var s in r)s!=="key"&&(i[s]=r[s])}else i=r;return r=i.ref,{$$typeof:t,type:a,key:o,ref:r!==void 0?r:null,props:i}}return gv.Fragment=e,gv.jsx=n,gv.jsxs=n,gv}var BU;function IU(){return BU||(BU=1,mv.exports=JIe()),mv.exports}var ie=IU(),YT={exports:{}},hv={},WT={exports:{}},KT={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var DU;function XIe(){return DU||(DU=1,(function(t){function e(L,M){var R=L.length;L.push(M);e:for(;0>>1,O=L[G];if(0>>1;Gr(H,R))Jr(V,H)?(L[G]=V,L[J]=R,G=J):(L[G]=H,L[W]=R,G=W);else if(Jr(V,R))L[G]=V,L[J]=R,G=J;else break e}}return M}function r(L,M){var R=L.sortIndex-M.sortIndex;return R!==0?R:L.id-M.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],d=1,p=null,A=3,m=!1,g=!1,f=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate!="undefined"?setImmediate:null;function _(L){for(var M=n(u);M!==null;){if(M.callback===null)a(u);else if(M.startTime<=L)a(u),M.sortIndex=M.expirationTime,e(l,M);else break;M=n(u)}}function E(L){if(f=!1,_(L),!g)if(n(l)!==null)g=!0,I||(I=!0,P());else{var M=n(u);M!==null&&$(E,M.startTime-L)}}var I=!1,B=-1,Q=5,T=-1;function N(){return y?!0:!(t.unstable_now()-TL&&N());){var G=p.callback;if(typeof G=="function"){p.callback=null,A=p.priorityLevel;var O=G(p.expirationTime<=L);if(L=t.unstable_now(),typeof O=="function"){p.callback=O,_(L),M=!0;break t}p===n(l)&&a(l),_(L)}else a(l);p=n(l)}if(p!==null)M=!0;else{var j=n(u);j!==null&&$(E,j.startTime-L),M=!1}}break e}finally{p=null,A=R,m=!1}M=void 0}}finally{M?P():I=!1}}}var P;if(typeof v=="function")P=function(){v(F)};else if(typeof MessageChannel!="undefined"){var q=new MessageChannel,S=q.port2;q.port1.onmessage=F,P=function(){S.postMessage(null)}}else P=function(){w(F,0)};function $(L,M){B=w(function(){L(t.unstable_now())},M)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_forceFrameRate=function(L){0>L||125G?(L.sortIndex=R,e(u,L),n(l)===null&&L===n(u)&&(f?(k(B),B=-1):f=!0,$(E,R-G))):(L.sortIndex=O,e(l,L),g||m||(g=!0,I||(I=!0,P()))),L},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(L){var M=A;return function(){var R=A;A=M;try{return L.apply(this,arguments)}finally{A=R}}}})(KT)),KT}var QU;function eDe(){return QU||(QU=1,WT.exports=XIe()),WT.exports}var ZT={exports:{}},Yn={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var SU;function tDe(){if(SU)return Yn;SU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),A=Symbol.iterator;function m(j){return j===null||typeof j!="object"?null:(j=A&&j[A]||j["@@iterator"],typeof j=="function"?j:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,y={};function w(j,W,H){this.props=j,this.context=W,this.refs=y,this.updater=H||g}w.prototype.isReactComponent={},w.prototype.setState=function(j,W){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,W,"setState")},w.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function k(){}k.prototype=w.prototype;function v(j,W,H){this.props=j,this.context=W,this.refs=y,this.updater=H||g}var _=v.prototype=new k;_.constructor=v,f(_,w.prototype),_.isPureReactComponent=!0;var E=Array.isArray;function I(){}var B={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function T(j,W,H){var J=H.ref;return{$$typeof:t,type:j,key:W,ref:J!==void 0?J:null,props:H}}function N(j,W){return T(j.type,W,j.props)}function F(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function P(j){var W={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(H){return W[H]})}var q=/\/+/g;function S(j,W){return typeof j=="object"&&j!==null&&j.key!=null?P(""+j.key):W.toString(36)}function $(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(I,I):(j.status="pending",j.then(function(W){j.status==="pending"&&(j.status="fulfilled",j.value=W)},function(W){j.status==="pending"&&(j.status="rejected",j.reason=W)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function L(j,W,H,J,V){var ce=typeof j;(ce==="undefined"||ce==="boolean")&&(j=null);var le=!1;if(j===null)le=!0;else switch(ce){case"bigint":case"string":case"number":le=!0;break;case"object":switch(j.$$typeof){case t:case e:le=!0;break;case d:return le=j._init,L(le(j._payload),W,H,J,V)}}if(le)return V=V(j),le=J===""?"."+S(j,0):J,E(V)?(H="",le!=null&&(H=le.replace(q,"$&/")+"/"),L(V,W,H,"",function(re){return re})):V!=null&&(F(V)&&(V=N(V,H+(V.key==null||j&&j.key===V.key?"":(""+V.key).replace(q,"$&/")+"/")+le)),W.push(V)),1;le=0;var be=J===""?".":J+":";if(E(j))for(var te=0;teO||(h.current=G[O],G[O]=null,O--)}function H(h,b){O++,G[O]=h.current,h.current=b}var J=j(null),V=j(null),ce=j(null),le=j(null);function be(h,b){switch(H(ce,b),H(V,h),H(J,null),b.nodeType){case 9:case 11:h=(h=b.documentElement)&&(h=h.namespaceURI)?AIe(h):0;break;default:if(h=b.tagName,b=b.namespaceURI)b=AIe(b),h=mIe(b,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}W(J),H(J,h)}function te(){W(J),W(V),W(ce)}function re(h){h.memoizedState!==null&&H(le,h);var b=J.current,C=mIe(b,h.type);b!==C&&(H(V,h),H(J,C))}function ne(h){V.current===h&&(W(J),W(V)),le.current===h&&(W(le),aB._currentValue=R)}var ee,de;function se(h){if(ee===void 0)try{throw Error()}catch(C){var b=C.stack.trim().match(/\n( *(at )?)/);ee=b&&b[1]||"",de=-1)":-1z||je[D]!==ct[z]){var yt=` `+je[D].replace(" at new "," at ");return h.displayName&&yt.includes("")&&(yt=yt.replace("",h.displayName)),yt}while(1<=D&&0<=z);break}}}finally{Ce=!1,Error.prepareStackTrace=C}return(C=h?h.displayName||h.name:"")?se(C):""}function ze(h,b){switch(h.tag){case 26:case 27:case 5:return se(h.type);case 16:return se("Lazy");case 13:return h.child!==b&&b!==null?se("Suspense Fallback"):se("Suspense");case 19:return se("SuspenseList");case 0:case 15:return Ae(h.type,!1);case 11:return Ae(h.type.render,!1);case 1:return Ae(h.type,!0);case 31:return se("Activity");default:return""}}function ae(h){try{var b="",C=null;do b+=ze(h,C),C=h,h=h.return;while(h);return b}catch(D){return` Error generating stack: `+D.message+` `+D.stack}}var Xe=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,rt=t.unstable_cancelCallback,lt=t.unstable_shouldYield,pt=t.unstable_requestPaint,Re=t.unstable_now,et=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,Ye=t.unstable_NormalPriority,_e=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,pe=t.log,ve=t.unstable_setDisableYieldValue,K=null,fe=null;function he(h){if(typeof pe=="function"&&ve(h),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(K,h)}catch{}}var Ee=Math.clz32?Math.clz32:Ge,Be=Math.log,Le=Math.LN2;function Ge(h){return h>>>=0,h===0?32:31-(Be(h)/Le|0)|0}var qe=256,Ze=262144,ft=4194304;function wt(h){var b=h&42;if(b!==0)return b;switch(h&-h){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 h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function vt(h,b,C){var D=h.pendingLanes;if(D===0)return 0;var z=0,U=h.suspendedLanes,oe=h.pingedLanes;h=h.warmLanes;var ye=D&134217727;return ye!==0?(D=ye&~U,D!==0?z=wt(D):(oe&=ye,oe!==0?z=wt(oe):C||(C=ye&~h,C!==0&&(z=wt(C))))):(ye=D&~U,ye!==0?z=wt(ye):oe!==0?z=wt(oe):C||(C=D&~h,C!==0&&(z=wt(C)))),z===0?0:b!==0&&b!==z&&(b&U)===0&&(U=z&-z,C=b&-b,U>=C||U===32&&(C&4194048)!==0)?b:z}function gt(h,b){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&b)===0}function dt(h,b){switch(h){case 1:case 2:case 4:case 8:case 64:return b+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 b+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 bt(){var h=ft;return ft<<=1,(ft&62914560)===0&&(ft=4194304),h}function qt(h){for(var b=[],C=0;31>C;C++)b.push(h);return b}function Tt(h,b){h.pendingLanes|=b,b!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function ht(h,b,C,D,z,U){var oe=h.pendingLanes;h.pendingLanes=C,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=C,h.entangledLanes&=C,h.errorRecoveryDisabledLanes&=C,h.shellSuspendCounter=0;var ye=h.entanglements,je=h.expirationTimes,ct=h.hiddenUpdates;for(C=oe&~C;0=_E),wEe=" ",kEe=!1;function vEe(h,b){switch(h){case"keyup":return RUt.indexOf(b.keyCode)!==-1;case"keydown":return b.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CEe(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Pk=!1;function $Ut(h,b){switch(h){case"compositionend":return CEe(b);case"keypress":return b.which!==32?null:(kEe=!0,wEe);case"textInput":return h=b.data,h===wEe&&kEe?null:h;default:return null}}function PUt(h,b){if(Pk)return h==="compositionend"||!yG&&vEe(h,b)?(h=mEe(),R8=mG=rg=null,Pk=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:C,offset:b-h};h=D}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=SEe(C)}}function FEe(h,b){return h&&b?h===b?!0:h&&h.nodeType===3?!1:b&&b.nodeType===3?FEe(h,b.parentNode):"contains"in h?h.contains(b):h.compareDocumentPosition?!!(h.compareDocumentPosition(b)&16):!1:!1}function LEe(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var b=Lk(h.document);b instanceof h.HTMLIFrameElement;){try{var C=typeof b.contentWindow.location.href=="string"}catch{C=!1}if(C)h=b.contentWindow;else break;b=Lk(h.document)}return b}function vG(h){var b=h&&h.nodeName&&h.nodeName.toLowerCase();return b&&(b==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||b==="textarea"||h.contentEditable==="true")}var YUt=zp&&"documentMode"in document&&11>=document.documentMode,Ok=null,CG=null,IE=null,_G=!1;function NEe(h,b,C){var D=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;_G||Ok==null||Ok!==Lk(D)||(D=Ok,"selectionStart"in D&&vG(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),IE&&BE(IE,D)||(IE=D,D=DT(CG,"onSelect"),0>=oe,z-=oe,yd=1<<32-Ee(b)+z|C<aa?(ka=bn,bn=null):ka=bn.sibling;var Oa=ut(Je,bn,ot[aa],_t);if(Oa===null){bn===null&&(bn=ka);break}h&&bn&&Oa.alternate===null&&b(Je,bn),He=U(Oa,He,aa),Pa===null?_n=Oa:Pa.sibling=Oa,Pa=Oa,bn=ka}if(aa===ot.length)return C(Je,bn),Ba&&Hp(Je,aa),_n;if(bn===null){for(;aaaa?(ka=bn,bn=null):ka=bn.sibling;var Eg=ut(Je,bn,Oa.value,_t);if(Eg===null){bn===null&&(bn=ka);break}h&&bn&&Eg.alternate===null&&b(Je,bn),He=U(Eg,He,aa),Pa===null?_n=Eg:Pa.sibling=Eg,Pa=Eg,bn=ka}if(Oa.done)return C(Je,bn),Ba&&Hp(Je,aa),_n;if(bn===null){for(;!Oa.done;aa++,Oa=ot.next())Oa=xt(Je,Oa.value,_t),Oa!==null&&(He=U(Oa,He,aa),Pa===null?_n=Oa:Pa.sibling=Oa,Pa=Oa);return Ba&&Hp(Je,aa),_n}for(bn=D(bn);!Oa.done;aa++,Oa=ot.next())Oa=At(bn,Je,aa,Oa.value,_t),Oa!==null&&(h&&Oa.alternate!==null&&bn.delete(Oa.key===null?aa:Oa.key),He=U(Oa,He,aa),Pa===null?_n=Oa:Pa.sibling=Oa,Pa=Oa);return h&&bn.forEach(function(AYt){return b(Je,AYt)}),Ba&&Hp(Je,aa),_n}function sr(Je,He,ot,_t){if(typeof ot=="object"&&ot!==null&&ot.type===f&&ot.key===null&&(ot=ot.props.children),typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case m:e:{for(var _n=ot.key;He!==null;){if(He.key===_n){if(_n=ot.type,_n===f){if(He.tag===7){C(Je,He.sibling),_t=z(He,ot.props.children),_t.return=Je,Je=_t;break e}}else if(He.elementType===_n||typeof _n=="object"&&_n!==null&&_n.$$typeof===Q&&rb(_n)===He.type){C(Je,He.sibling),_t=z(He,ot.props),LE(_t,ot),_t.return=Je,Je=_t;break e}C(Je,He);break}else b(Je,He);He=He.sibling}ot.type===f?(_t=Xf(ot.props.children,Je.mode,_t,ot.key),_t.return=Je,Je=_t):(_t=H8(ot.type,ot.key,ot.props,null,Je.mode,_t),LE(_t,ot),_t.return=Je,Je=_t)}return oe(Je);case g:e:{for(_n=ot.key;He!==null;){if(He.key===_n)if(He.tag===4&&He.stateNode.containerInfo===ot.containerInfo&&He.stateNode.implementation===ot.implementation){C(Je,He.sibling),_t=z(He,ot.children||[]),_t.return=Je,Je=_t;break e}else{C(Je,He);break}else b(Je,He);He=He.sibling}_t=SG(ot,Je.mode,_t),_t.return=Je,Je=_t}return oe(Je);case Q:return ot=rb(ot),sr(Je,He,ot,_t)}if($(ot))return dn(Je,He,ot,_t);if(P(ot)){if(_n=P(ot),typeof _n!="function")throw Error(a(150));return ot=_n.call(ot),Nn(Je,He,ot,_t)}if(typeof ot.then=="function")return sr(Je,He,X8(ot),_t);if(ot.$$typeof===v)return sr(Je,He,K8(Je,ot),_t);eT(Je,ot)}return typeof ot=="string"&&ot!==""||typeof ot=="number"||typeof ot=="bigint"?(ot=""+ot,He!==null&&He.tag===6?(C(Je,He.sibling),_t=z(He,ot),_t.return=Je,Je=_t):(C(Je,He),_t=QG(ot,Je.mode,_t),_t.return=Je,Je=_t),oe(Je)):C(Je,He)}return function(Je,He,ot,_t){try{FE=0;var _n=sr(Je,He,ot,_t);return Vk=null,_n}catch(bn){if(bn===Zk||bn===V8)throw bn;var Pa=Gc(29,bn,null,Je.mode);return Pa.lanes=_t,Pa.return=Je,Pa}finally{}}}var ob=rBe(!0),iBe=rBe(!1),lg=!1;function GG(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zG(h,b){h=h.updateQueue,b.updateQueue===h&&(b.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function ug(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function dg(h,b,C){var D=h.updateQueue;if(D===null)return null;if(D=D.shared,(qa&2)!==0){var z=D.pending;return z===null?b.next=b:(b.next=z.next,z.next=b),D.pending=b,b=U8(h),qEe(h,null,C),b}return z8(h,D,b,C),U8(h)}function NE(h,b,C){if(b=b.updateQueue,b!==null&&(b=b.shared,(C&4194048)!==0)){var D=b.lanes;D&=h.pendingLanes,C|=D,b.lanes=C,kt(h,C)}}function UG(h,b){var C=h.updateQueue,D=h.alternate;if(D!==null&&(D=D.updateQueue,C===D)){var z=null,U=null;if(C=C.firstBaseUpdate,C!==null){do{var oe={lane:C.lane,tag:C.tag,payload:C.payload,callback:null,next:null};U===null?z=U=oe:U=U.next=oe,C=C.next}while(C!==null);U===null?z=U=b:U=U.next=b}else z=U=b;C={baseState:D.baseState,firstBaseUpdate:z,lastBaseUpdate:U,shared:D.shared,callbacks:D.callbacks},h.updateQueue=C;return}h=C.lastBaseUpdate,h===null?C.firstBaseUpdate=b:h.next=b,C.lastBaseUpdate=b}var HG=!1;function RE(){if(HG){var h=Kk;if(h!==null)throw h}}function ME(h,b,C,D){HG=!1;var z=h.updateQueue;lg=!1;var U=z.firstBaseUpdate,oe=z.lastBaseUpdate,ye=z.shared.pending;if(ye!==null){z.shared.pending=null;var je=ye,ct=je.next;je.next=null,oe===null?U=ct:oe.next=ct,oe=je;var yt=h.alternate;yt!==null&&(yt=yt.updateQueue,ye=yt.lastBaseUpdate,ye!==oe&&(ye===null?yt.firstBaseUpdate=ct:ye.next=ct,yt.lastBaseUpdate=je))}if(U!==null){var xt=z.baseState;oe=0,yt=ct=je=null,ye=U;do{var ut=ye.lane&-536870913,At=ut!==ye.lane;if(At?(wa&ut)===ut:(D&ut)===ut){ut!==0&&ut===Wk&&(HG=!0),yt!==null&&(yt=yt.next={lane:0,tag:ye.tag,payload:ye.payload,callback:null,next:null});e:{var dn=h,Nn=ye;ut=b;var sr=C;switch(Nn.tag){case 1:if(dn=Nn.payload,typeof dn=="function"){xt=dn.call(sr,xt,ut);break e}xt=dn;break e;case 3:dn.flags=dn.flags&-65537|128;case 0:if(dn=Nn.payload,ut=typeof dn=="function"?dn.call(sr,xt,ut):dn,ut==null)break e;xt=p({},xt,ut);break e;case 2:lg=!0}}ut=ye.callback,ut!==null&&(h.flags|=64,At&&(h.flags|=8192),At=z.callbacks,At===null?z.callbacks=[ut]:At.push(ut))}else At={lane:ut,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null},yt===null?(ct=yt=At,je=xt):yt=yt.next=At,oe|=ut;if(ye=ye.next,ye===null){if(ye=z.shared.pending,ye===null)break;At=ye,ye=At.next,At.next=null,z.lastBaseUpdate=At,z.shared.pending=null}}while(!0);yt===null&&(je=xt),z.baseState=je,z.firstBaseUpdate=ct,z.lastBaseUpdate=yt,U===null&&(z.shared.lanes=0),hg|=oe,h.lanes=oe,h.memoizedState=xt}}function oBe(h,b){if(typeof h!="function")throw Error(a(191,h));h.call(b)}function sBe(h,b){var C=h.callbacks;if(C!==null)for(h.callbacks=null,h=0;hU?U:8;var oe=L.T,ye={};L.T=ye,dz(h,!1,b,C);try{var je=z(),ct=L.S;if(ct!==null&&ct(ye,je),je!==null&&typeof je=="object"&&typeof je.then=="function"){var yt=nHt(je,D);OE(h,b,yt,Wc(h))}else OE(h,b,D,Wc(h))}catch(xt){OE(h,b,{then:function(){},status:"rejected",reason:xt},Wc())}finally{M.p=U,oe!==null&&ye.types!==null&&(oe.types=ye.types),L.T=oe}}function cHt(){}function lz(h,b,C,D){if(h.tag!==5)throw Error(a(476));var z=PBe(h).queue;$Be(h,z,b,R,C===null?cHt:function(){return OBe(h),C(D)})}function PBe(h){var b=h.memoizedState;if(b!==null)return b;b={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zp,lastRenderedState:R},next:null};var C={};return b.next={memoizedState:C,baseState:C,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zp,lastRenderedState:C},next:null},h.memoizedState=b,h=h.alternate,h!==null&&(h.memoizedState=b),b}function OBe(h){var b=PBe(h);b.next===null&&(b=h.alternate.memoizedState),OE(h,b.next.queue,{},Wc())}function uz(){return Lo(aB)}function jBe(){return si().memoizedState}function qBe(){return si().memoizedState}function lHt(h){for(var b=h.return;b!==null;){switch(b.tag){case 24:case 3:var C=Wc();h=ug(C);var D=dg(b,h,C);D!==null&&(gc(D,b,C),NE(D,b,C)),b={cache:PG()},h.payload=b;return}b=b.return}}function uHt(h,b,C){var D=Wc();C={lane:D,revertLane:0,gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null},uT(h)?zBe(b,C):(C=IG(h,b,C,D),C!==null&&(gc(C,h,D),UBe(C,b,D)))}function GBe(h,b,C){var D=Wc();OE(h,b,C,D)}function OE(h,b,C,D){var z={lane:D,revertLane:0,gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null};if(uT(h))zBe(b,z);else{var U=h.alternate;if(h.lanes===0&&(U===null||U.lanes===0)&&(U=b.lastRenderedReducer,U!==null))try{var oe=b.lastRenderedState,ye=U(oe,C);if(z.hasEagerState=!0,z.eagerState=ye,qc(ye,oe))return z8(h,b,z,0),dr===null&&G8(),!1}catch{}finally{}if(C=IG(h,b,z,D),C!==null)return gc(C,h,D),UBe(C,b,D),!0}return!1}function dz(h,b,C,D){if(D={lane:2,revertLane:Gz(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},uT(h)){if(b)throw Error(a(479))}else b=IG(h,C,D,2),b!==null&&gc(b,h,2)}function uT(h){var b=h.alternate;return h===Jn||b!==null&&b===Jn}function zBe(h,b){Xk=aT=!0;var C=h.pending;C===null?b.next=b:(b.next=C.next,C.next=b),h.pending=b}function UBe(h,b,C){if((C&4194048)!==0){var D=b.lanes;D&=h.pendingLanes,C|=D,b.lanes=C,kt(h,C)}}var jE={readContext:Lo,use:oT,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useLayoutEffect:Kr,useInsertionEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useDeferredValue:Kr,useTransition:Kr,useSyncExternalStore:Kr,useId:Kr,useHostTransitionStatus:Kr,useFormState:Kr,useActionState:Kr,useOptimistic:Kr,useMemoCache:Kr,useCacheRefresh:Kr};jE.useEffectEvent=Kr;var HBe={readContext:Lo,use:oT,useCallback:function(h,b){return Ls().memoizedState=[h,b===void 0?null:b],h},useContext:Lo,useEffect:DBe,useImperativeHandle:function(h,b,C){C=C!=null?C.concat([h]):null,cT(4194308,4,FBe.bind(null,b,h),C)},useLayoutEffect:function(h,b){return cT(4194308,4,h,b)},useInsertionEffect:function(h,b){cT(4,2,h,b)},useMemo:function(h,b){var C=Ls();b=b===void 0?null:b;var D=h();if(sb){he(!0);try{h()}finally{he(!1)}}return C.memoizedState=[D,b],D},useReducer:function(h,b,C){var D=Ls();if(C!==void 0){var z=C(b);if(sb){he(!0);try{C(b)}finally{he(!1)}}}else z=b;return D.memoizedState=D.baseState=z,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:z},D.queue=h,h=h.dispatch=uHt.bind(null,Jn,h),[D.memoizedState,h]},useRef:function(h){var b=Ls();return h={current:h},b.memoizedState=h},useState:function(h){h=rz(h);var b=h.queue,C=GBe.bind(null,Jn,b);return b.dispatch=C,[h.memoizedState,C]},useDebugValue:sz,useDeferredValue:function(h,b){var C=Ls();return cz(C,h,b)},useTransition:function(){var h=rz(!1);return h=$Be.bind(null,Jn,h.queue,!0,!1),Ls().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,b,C){var D=Jn,z=Ls();if(Ba){if(C===void 0)throw Error(a(407));C=C()}else{if(C=b(),dr===null)throw Error(a(349));(wa&127)!==0||ABe(D,b,C)}z.memoizedState=C;var U={value:C,getSnapshot:b};return z.queue=U,DBe(gBe.bind(null,D,U,h),[h]),D.flags|=2048,tv(9,{destroy:void 0},mBe.bind(null,D,U,C,b),null),C},useId:function(){var h=Ls(),b=dr.identifierPrefix;if(Ba){var C=wd,D=yd;C=(D&~(1<<32-Ee(D)-1)).toString(32)+C,b="_"+b+"R_"+C,C=rT++,0<\/script>",U=U.removeChild(U.firstChild);break;case"select":U=typeof D.is=="string"?oe.createElement("select",{is:D.is}):oe.createElement("select"),D.multiple?U.multiple=!0:D.size&&(U.size=D.size);break;default:U=typeof D.is=="string"?oe.createElement(z,{is:D.is}):oe.createElement(z)}}U[Yt]=b,U[Un]=D;e:for(oe=b.child;oe!==null;){if(oe.tag===5||oe.tag===6)U.appendChild(oe.stateNode);else if(oe.tag!==4&&oe.tag!==27&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===b)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===b)break e;oe=oe.return}oe.sibling.return=oe.return,oe=oe.sibling}b.stateNode=U;e:switch(Ro(U,z,D),z){case"button":case"input":case"select":case"textarea":D=!!D.autoFocus;break e;case"img":D=!0;break e;default:D=!1}D&&Jp(b)}}return xr(b),xz(b,b.type,h===null?null:h.memoizedProps,b.pendingProps,C),null;case 6:if(h&&b.stateNode!=null)h.memoizedProps!==D&&Jp(b);else{if(typeof D!="string"&&b.stateNode===null)throw Error(a(166));if(h=ce.current,Hk(b)){if(h=b.stateNode,C=b.memoizedProps,D=null,z=Fo,z!==null)switch(z.tag){case 27:case 5:D=z.memoizedProps}h[Yt]=b,h=!!(h.nodeValue===C||D!==null&&D.suppressHydrationWarning===!0||dIe(h.nodeValue,C)),h||sg(b,!0)}else h=QT(h).createTextNode(D),h[Yt]=b,b.stateNode=h}return xr(b),null;case 31:if(C=b.memoizedState,h===null||h.memoizedState!==null){if(D=Hk(b),C!==null){if(h===null){if(!D)throw Error(a(318));if(h=b.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(557));h[Yt]=b}else eb(),(b.flags&128)===0&&(b.memoizedState=null),b.flags|=4;xr(b),h=!1}else C=NG(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=C),h=!0;if(!h)return b.flags&256?(Uc(b),b):(Uc(b),null);if((b.flags&128)!==0)throw Error(a(558))}return xr(b),null;case 13:if(D=b.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(z=Hk(b),D!==null&&D.dehydrated!==null){if(h===null){if(!z)throw Error(a(318));if(z=b.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error(a(317));z[Yt]=b}else eb(),(b.flags&128)===0&&(b.memoizedState=null),b.flags|=4;xr(b),z=!1}else z=NG(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=z),z=!0;if(!z)return b.flags&256?(Uc(b),b):(Uc(b),null)}return Uc(b),(b.flags&128)!==0?(b.lanes=C,b):(C=D!==null,h=h!==null&&h.memoizedState!==null,C&&(D=b.child,z=null,D.alternate!==null&&D.alternate.memoizedState!==null&&D.alternate.memoizedState.cachePool!==null&&(z=D.alternate.memoizedState.cachePool.pool),U=null,D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(U=D.memoizedState.cachePool.pool),U!==z&&(D.flags|=2048)),C!==h&&C&&(b.child.flags|=8192),gT(b,b.updateQueue),xr(b),null);case 4:return te(),h===null&&Yz(b.stateNode.containerInfo),xr(b),null;case 10:return Wp(b.type),xr(b),null;case 19:if(W(oi),D=b.memoizedState,D===null)return xr(b),null;if(z=(b.flags&128)!==0,U=D.rendering,U===null)if(z)GE(D,!1);else{if(Zr!==0||h!==null&&(h.flags&128)!==0)for(h=b.child;h!==null;){if(U=nT(h),U!==null){for(b.flags|=128,GE(D,!1),h=U.updateQueue,b.updateQueue=h,gT(b,h),b.subtreeFlags=0,h=C,C=b.child;C!==null;)GEe(C,h),C=C.sibling;return H(oi,oi.current&1|2),Ba&&Hp(b,D.treeForkCount),b.child}h=h.sibling}D.tail!==null&&Re()>wT&&(b.flags|=128,z=!0,GE(D,!1),b.lanes=4194304)}else{if(!z)if(h=nT(U),h!==null){if(b.flags|=128,z=!0,h=h.updateQueue,b.updateQueue=h,gT(b,h),GE(D,!0),D.tail===null&&D.tailMode==="hidden"&&!U.alternate&&!Ba)return xr(b),null}else 2*Re()-D.renderingStartTime>wT&&C!==536870912&&(b.flags|=128,z=!0,GE(D,!1),b.lanes=4194304);D.isBackwards?(U.sibling=b.child,b.child=U):(h=D.last,h!==null?h.sibling=U:b.child=U,D.last=U)}return D.tail!==null?(h=D.tail,D.rendering=h,D.tail=h.sibling,D.renderingStartTime=Re(),h.sibling=null,C=oi.current,H(oi,z?C&1|2:C&1),Ba&&Hp(b,D.treeForkCount),h):(xr(b),null);case 22:case 23:return Uc(b),WG(),D=b.memoizedState!==null,h!==null?h.memoizedState!==null!==D&&(b.flags|=8192):D&&(b.flags|=8192),D?(C&536870912)!==0&&(b.flags&128)===0&&(xr(b),b.subtreeFlags&6&&(b.flags|=8192)):xr(b),C=b.updateQueue,C!==null&&gT(b,C.retryQueue),C=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(C=h.memoizedState.cachePool.pool),D=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(D=b.memoizedState.cachePool.pool),D!==C&&(b.flags|=2048),h!==null&&W(ab),null;case 24:return C=null,h!==null&&(C=h.memoizedState.cache),b.memoizedState.cache!==C&&(b.flags|=2048),Wp(Ei),xr(b),null;case 25:return null;case 30:return null}throw Error(a(156,b.tag))}function gHt(h,b){switch(FG(b),b.tag){case 1:return h=b.flags,h&65536?(b.flags=h&-65537|128,b):null;case 3:return Wp(Ei),te(),h=b.flags,(h&65536)!==0&&(h&128)===0?(b.flags=h&-65537|128,b):null;case 26:case 27:case 5:return ne(b),null;case 31:if(b.memoizedState!==null){if(Uc(b),b.alternate===null)throw Error(a(340));eb()}return h=b.flags,h&65536?(b.flags=h&-65537|128,b):null;case 13:if(Uc(b),h=b.memoizedState,h!==null&&h.dehydrated!==null){if(b.alternate===null)throw Error(a(340));eb()}return h=b.flags,h&65536?(b.flags=h&-65537|128,b):null;case 19:return W(oi),null;case 4:return te(),null;case 10:return Wp(b.type),null;case 22:case 23:return Uc(b),WG(),h!==null&&W(ab),h=b.flags,h&65536?(b.flags=h&-65537|128,b):null;case 24:return Wp(Ei),null;case 25:return null;default:return null}}function h2e(h,b){switch(FG(b),b.tag){case 3:Wp(Ei),te();break;case 26:case 27:case 5:ne(b);break;case 4:te();break;case 31:b.memoizedState!==null&&Uc(b);break;case 13:Uc(b);break;case 19:W(oi);break;case 10:Wp(b.type);break;case 22:case 23:Uc(b),WG(),h!==null&&W(ab);break;case 24:Wp(Ei)}}function zE(h,b){try{var C=b.updateQueue,D=C!==null?C.lastEffect:null;if(D!==null){var z=D.next;C=z;do{if((C.tag&h)===h){D=void 0;var U=C.create,oe=C.inst;D=U(),oe.destroy=D}C=C.next}while(C!==z)}}catch(ye){nr(b,b.return,ye)}}function mg(h,b,C){try{var D=b.updateQueue,z=D!==null?D.lastEffect:null;if(z!==null){var U=z.next;D=U;do{if((D.tag&h)===h){var oe=D.inst,ye=oe.destroy;if(ye!==void 0){oe.destroy=void 0,z=b;var je=C,ct=ye;try{ct()}catch(yt){nr(z,je,yt)}}}D=D.next}while(D!==U)}}catch(yt){nr(b,b.return,yt)}}function f2e(h){var b=h.updateQueue;if(b!==null){var C=h.stateNode;try{sBe(b,C)}catch(D){nr(h,h.return,D)}}}function b2e(h,b,C){C.props=cb(h.type,h.memoizedProps),C.state=h.memoizedState;try{C.componentWillUnmount()}catch(D){nr(h,b,D)}}function UE(h,b){try{var C=h.ref;if(C!==null){switch(h.tag){case 26:case 27:case 5:var D=h.stateNode;break;case 30:D=h.stateNode;break;default:D=h.stateNode}typeof C=="function"?h.refCleanup=C(D):C.current=D}}catch(z){nr(h,b,z)}}function kd(h,b){var C=h.ref,D=h.refCleanup;if(C!==null)if(typeof D=="function")try{D()}catch(z){nr(h,b,z)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof C=="function")try{C(null)}catch(z){nr(h,b,z)}else C.current=null}function y2e(h){var b=h.type,C=h.memoizedProps,D=h.stateNode;try{e:switch(b){case"button":case"input":case"select":case"textarea":C.autoFocus&&D.focus();break e;case"img":C.src?D.src=C.src:C.srcSet&&(D.srcset=C.srcSet)}}catch(z){nr(h,h.return,z)}}function Ez(h,b,C){try{var D=h.stateNode;MHt(D,h.type,C,b),D[Un]=b}catch(z){nr(h,h.return,z)}}function w2e(h){return h.tag===5||h.tag===3||h.tag===26||h.tag===27&&kg(h.type)||h.tag===4}function Bz(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||w2e(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.tag===27&&kg(h.type)||h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function Iz(h,b,C){var D=h.tag;if(D===5||D===6)h=h.stateNode,b?(C.nodeType===9?C.body:C.nodeName==="HTML"?C.ownerDocument.body:C).insertBefore(h,b):(b=C.nodeType===9?C.body:C.nodeName==="HTML"?C.ownerDocument.body:C,b.appendChild(h),C=C._reactRootContainer,C!=null||b.onclick!==null||(b.onclick=jc));else if(D!==4&&(D===27&&kg(h.type)&&(C=h.stateNode,b=null),h=h.child,h!==null))for(Iz(h,b,C),h=h.sibling;h!==null;)Iz(h,b,C),h=h.sibling}function hT(h,b,C){var D=h.tag;if(D===5||D===6)h=h.stateNode,b?C.insertBefore(h,b):C.appendChild(h);else if(D!==4&&(D===27&&kg(h.type)&&(C=h.stateNode),h=h.child,h!==null))for(hT(h,b,C),h=h.sibling;h!==null;)hT(h,b,C),h=h.sibling}function k2e(h){var b=h.stateNode,C=h.memoizedProps;try{for(var D=h.type,z=b.attributes;z.length;)b.removeAttributeNode(z[0]);Ro(b,D,C),b[Yt]=h,b[Un]=C}catch(U){nr(h,h.return,U)}}var Xp=!1,Di=!1,Dz=!1,v2e=typeof WeakSet=="function"?WeakSet:Set,ho=null;function hHt(h,b){if(h=h.containerInfo,Zz=MT,h=LEe(h),vG(h)){if("selectionStart"in h)var C={start:h.selectionStart,end:h.selectionEnd};else e:{C=(C=h.ownerDocument)&&C.defaultView||window;var D=C.getSelection&&C.getSelection();if(D&&D.rangeCount!==0){C=D.anchorNode;var z=D.anchorOffset,U=D.focusNode;D=D.focusOffset;try{C.nodeType,U.nodeType}catch{C=null;break e}var oe=0,ye=-1,je=-1,ct=0,yt=0,xt=h,ut=null;t:for(;;){for(var At;xt!==C||z!==0&&xt.nodeType!==3||(ye=oe+z),xt!==U||D!==0&&xt.nodeType!==3||(je=oe+D),xt.nodeType===3&&(oe+=xt.nodeValue.length),(At=xt.firstChild)!==null;)ut=xt,xt=At;for(;;){if(xt===h)break t;if(ut===C&&++ct===z&&(ye=oe),ut===U&&++yt===D&&(je=oe),(At=xt.nextSibling)!==null)break;xt=ut,ut=xt.parentNode}xt=At}C=ye===-1||je===-1?null:{start:ye,end:je}}else C=null}C=C||{start:0,end:0}}else C=null;for(Vz={focusedElem:h,selectionRange:C},MT=!1,ho=b;ho!==null;)if(b=ho,h=b.child,(b.subtreeFlags&1028)!==0&&h!==null)h.return=b,ho=h;else for(;ho!==null;){switch(b=ho,U=b.alternate,h=b.flags,b.tag){case 0:if((h&4)!==0&&(h=b.updateQueue,h=h!==null?h.events:null,h!==null))for(C=0;C title"))),Ro(U,D,C),U[Yt]=h,qn(U),D=U;break e;case"link":var oe=IIe("link","href",z).get(D+(C.href||""));if(oe){for(var ye=0;yesr&&(oe=sr,sr=Nn,Nn=oe);var Je=TEe(ye,Nn),He=TEe(ye,sr);if(Je&&He&&(At.rangeCount!==1||At.anchorNode!==Je.node||At.anchorOffset!==Je.offset||At.focusNode!==He.node||At.focusOffset!==He.offset)){var ot=xt.createRange();ot.setStart(Je.node,Je.offset),At.removeAllRanges(),Nn>sr?(At.addRange(ot),At.extend(He.node,He.offset)):(ot.setEnd(He.node,He.offset),At.addRange(ot))}}}}for(xt=[],At=ye;At=At.parentNode;)At.nodeType===1&&xt.push({element:At,left:At.scrollLeft,top:At.scrollTop});for(typeof ye.focus=="function"&&ye.focus(),ye=0;yeC?32:C,L.T=null,C=Rz,Rz=null;var U=bg,oe=rA;if(Xi=0,ov=bg=null,rA=0,(qa&6)!==0)throw Error(a(331));var ye=qa;if(qa|=4,F2e(U.current),Q2e(U,U.current,oe,C),qa=ye,VE(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(K,U)}catch{}return!0}finally{M.p=z,L.T=D,V2e(h,b)}}function X2e(h,b,C){b=Bl(C,b),b=gz(h.stateNode,b,2),h=dg(h,b,2),h!==null&&(Tt(h,2),vd(h))}function nr(h,b,C){if(h.tag===3)X2e(h,h,C);else for(;b!==null;){if(b.tag===3){X2e(b,h,C);break}else if(b.tag===1){var D=b.stateNode;if(typeof b.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(fg===null||!fg.has(D))){h=Bl(C,h),C=e2e(2),D=dg(b,C,2),D!==null&&(t2e(C,D,b,h),Tt(D,2),vd(D));break}}b=b.return}}function Oz(h,b,C){var D=h.pingCache;if(D===null){D=h.pingCache=new yHt;var z=new Set;D.set(b,z)}else z=D.get(b),z===void 0&&(z=new Set,D.set(b,z));z.has(C)||(Tz=!0,z.add(C),h=_Ht.bind(null,h,b,C),b.then(h,h))}function _Ht(h,b,C){var D=h.pingCache;D!==null&&D.delete(b),h.pingedLanes|=h.suspendedLanes&C,h.warmLanes&=~C,dr===h&&(wa&C)===C&&(Zr===4||Zr===3&&(wa&62914560)===wa&&300>Re()-yT?(qa&2)===0&&sv(h,0):Fz|=C,iv===wa&&(iv=0)),vd(h)}function eIe(h,b){b===0&&(b=bt()),h=Jf(h,b),h!==null&&(Tt(h,b),vd(h))}function xHt(h){var b=h.memoizedState,C=0;b!==null&&(C=b.retryLane),eIe(h,C)}function EHt(h,b){var C=0;switch(h.tag){case 31:case 13:var D=h.stateNode,z=h.memoizedState;z!==null&&(C=z.retryLane);break;case 19:D=h.stateNode;break;case 22:D=h.stateNode._retryCache;break;default:throw Error(a(314))}D!==null&&D.delete(b),eIe(h,C)}function BHt(h,b){return xe(h,b)}var ET=null,lv=null,jz=!1,BT=!1,qz=!1,wg=0;function vd(h){h!==lv&&h.next===null&&(lv===null?ET=lv=h:lv=lv.next=h),BT=!0,jz||(jz=!0,DHt())}function VE(h,b){if(!qz&&BT){qz=!0;do for(var C=!1,D=ET;D!==null;){if(h!==0){var z=D.pendingLanes;if(z===0)var U=0;else{var oe=D.suspendedLanes,ye=D.pingedLanes;U=(1<<31-Ee(42|h)+1)-1,U&=z&~(oe&~ye),U=U&201326741?U&201326741|1:U?U|2:0}U!==0&&(C=!0,rIe(D,U))}else U=wa,U=vt(D,D===dr?U:0,D.cancelPendingCommit!==null||D.timeoutHandle!==-1),(U&3)===0||gt(D,U)||(C=!0,rIe(D,U));D=D.next}while(C);qz=!1}}function IHt(){tIe()}function tIe(){BT=jz=!1;var h=0;wg!==0&&PHt()&&(h=wg);for(var b=Re(),C=null,D=ET;D!==null;){var z=D.next,U=nIe(D,b);U===0?(D.next=null,C===null?ET=z:C.next=z,z===null&&(lv=C)):(C=D,(h!==0||(U&3)!==0)&&(BT=!0)),D=z}Xi!==0&&Xi!==5||VE(h),wg!==0&&(wg=0)}function nIe(h,b){for(var C=h.suspendedLanes,D=h.pingedLanes,z=h.expirationTimes,U=h.pendingLanes&-62914561;0ye)break;var yt=je.transferSize,xt=je.initiatorType;yt&&pIe(xt)&&(je=je.responseEnd,oe+=yt*(je title"):null)}function nYt(h,b,C){if(C===1||b.itemProp!=null)return!1;switch(h){case"meta":case"title":return!0;case"style":if(typeof b.precedence!="string"||typeof b.href!="string"||b.href==="")break;return!0;case"link":if(typeof b.rel!="string"||typeof b.href!="string"||b.href===""||b.onLoad||b.onError)break;switch(b.rel){case"stylesheet":return h=b.disabled,typeof b.precedence=="string"&&h==null;default:return!0}case"script":if(b.async&&typeof b.async!="function"&&typeof b.async!="symbol"&&!b.onLoad&&!b.onError&&b.src&&typeof b.src=="string")return!0}return!1}function QIe(h){return!(h.type==="stylesheet"&&(h.state.loading&3)===0)}function aYt(h,b,C,D){if(C.type==="stylesheet"&&(typeof D.media!="string"||matchMedia(D.media).matches!==!1)&&(C.state.loading&4)===0){if(C.instance===null){var z=dv(D.href),U=b.querySelector(tB(z));if(U){b=U._p,b!==null&&typeof b=="object"&&typeof b.then=="function"&&(h.count++,h=LT.bind(h),b.then(h,h)),C.state.loading|=4,C.instance=U,qn(U);return}U=b.ownerDocument||b,D=EIe(D),(z=Fl.get(z))&&rU(D,z),U=U.createElement("link"),qn(U);var oe=U;oe._p=new Promise(function(ye,je){oe.onload=ye,oe.onerror=je}),Ro(U,"link",D),C.instance=U}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(C,b),(b=C.state.preload)&&(C.state.loading&3)===0&&(h.count++,C=LT.bind(h),b.addEventListener("load",C),b.addEventListener("error",C))}}var oU=0;function rYt(h,b){return h.stylesheets&&h.count===0&&RT(h,h.stylesheets),0oU?50:800)+b);return h.unsuspend=C,function(){h.unsuspend=null,clearTimeout(D),clearTimeout(z)}}:null}function LT(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)RT(this,this.stylesheets);else if(this.unsuspend){var h=this.unsuspend;this.unsuspend=null,h()}}}var NT=null;function RT(h,b){h.stylesheets=null,h.unsuspend!==null&&(h.count++,NT=new Map,b.forEach(iYt,h),NT=null,LT.call(h))}function iYt(h,b){if(!(b.state.loading&4)){var C=NT.get(h);if(C)var D=C.get(null);else{C=new Map,NT.set(h,C);for(var z=h.querySelectorAll("link[data-precedence],style[data-precedence]"),U=0;U{let n=!1;const a=t.map(r=>{const i=PU(r,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{var w;const{scope:A,children:m,...g}=p,f=((w=A==null?void 0:A[t])==null?void 0:w[l])||s,y=ue.useMemo(()=>g,Object.values(g));return ie.jsx(f.Provider,{value:y,children:m})};u.displayName=i+"Provider";function d(p,A){var f;const m=((f=A==null?void 0:A[t])==null?void 0:f[l])||s,g=ue.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const r=()=>{const i=n.map(o=>ue.createContext(o));return function(s){const l=(s==null?void 0:s[t])||i;return ue.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return r.scopeName=t,[a,iDe(r,...e)]}function iDe(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const a=t.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=a.reduce((s,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...s,...p}},{});return ue.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}var XT=NU();const oDe=Ia(XT);function e6(t){const e=cDe(t),n=ue.forwardRef((a,r)=>{const{children:i,...o}=a,s=ue.Children.toArray(i),l=s.find(uDe);if(l){const u=l.props.children,d=s.map(p=>p===l?ue.Children.count(u)>1?ue.Children.only(null):ue.isValidElement(u)?u.props.children:null:p);return ie.jsx(e,{...o,ref:r,children:ue.isValidElement(u)?ue.cloneElement(u,void 0,d):null})}return ie.jsx(e,{...o,ref:r,children:i})});return n.displayName=`${t}.Slot`,n}var sDe=e6("Slot");function cDe(t){const e=ue.forwardRef((n,a)=>{const{children:r,...i}=n;if(ue.isValidElement(r)){const o=pDe(r),s=dDe(i,r.props);return r.type!==ue.Fragment&&(s.ref=a?OU(a,o):o),ue.cloneElement(r,s)}return ue.Children.count(r)>1?ue.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var jU=Symbol("radix.slottable");function lDe(t){const e=({children:n})=>ie.jsx(ie.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=jU,e}function uDe(t){return ue.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===jU}function dDe(t,e){const n={...e};for(const a in e){const r=t[a],i=e[a];/^on[A-Z]/.test(a)?r&&i?n[a]=(...s)=>{const l=i(...s);return r(...s),l}:r&&(n[a]=r):a==="style"?n[a]={...r,...i}:a==="className"&&(n[a]=[r,i].filter(Boolean).join(" "))}return{...t,...n}}function pDe(t){var a,r;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var ADe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qi=ADe.reduce((t,e)=>{const n=e6(`Primitive.${e}`),a=ue.forwardRef((r,i)=>{const{asChild:o,...s}=r,l=o?n:e;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),ie.jsx(l,{...s,ref:i})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function mDe(t,e){t&&XT.flushSync(()=>t.dispatchEvent(e))}function Ns(t){const e=ue.useRef(t);return ue.useEffect(()=>{e.current=t}),ue.useMemo(()=>(...n)=>{var a;return(a=e.current)==null?void 0:a.call(e,...n)},[])}function gDe(t,e=globalThis==null?void 0:globalThis.document){const n=Ns(t);ue.useEffect(()=>{const a=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[n,e])}var hDe="DismissableLayer",t6="dismissableLayer.update",fDe="dismissableLayer.pointerDownOutside",bDe="dismissableLayer.focusOutside",qU,GU=ue.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),n6=ue.forwardRef((t,e)=>{var B;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=t,u=ue.useContext(GU),[d,p]=ue.useState(null),A=(B=d==null?void 0:d.ownerDocument)!=null?B:globalThis==null?void 0:globalThis.document,[,m]=ue.useState({}),g=$o(e,Q=>p(Q)),f=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=f.indexOf(y),k=d?f.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,_=k>=w,E=kDe(Q=>{const T=Q.target,N=[...u.branches].some(F=>F.contains(T));!_||N||(r==null||r(Q),o==null||o(Q),Q.defaultPrevented||s==null||s())},A),I=vDe(Q=>{const T=Q.target;[...u.branches].some(F=>F.contains(T))||(i==null||i(Q),o==null||o(Q),Q.defaultPrevented||s==null||s())},A);return gDe(Q=>{k===u.layers.size-1&&(a==null||a(Q),!Q.defaultPrevented&&s&&(Q.preventDefault(),s()))},A),ue.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qU=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),zU(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(A.body.style.pointerEvents=qU)}},[d,A,n,u]),ue.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),zU())},[d,u]),ue.useEffect(()=>{const Q=()=>m({});return document.addEventListener(t6,Q),()=>document.removeEventListener(t6,Q)},[]),ie.jsx(Qi.div,{...l,ref:g,style:{pointerEvents:v?_?"auto":"none":void 0,...t.style},onFocusCapture:Vr(t.onFocusCapture,I.onFocusCapture),onBlurCapture:Vr(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Vr(t.onPointerDownCapture,E.onPointerDownCapture)})});n6.displayName=hDe;var yDe="DismissableLayerBranch",wDe=ue.forwardRef((t,e)=>{const n=ue.useContext(GU),a=ue.useRef(null),r=$o(e,a);return ue.useEffect(()=>{const i=a.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),ie.jsx(Qi.div,{...t,ref:r})});wDe.displayName=yDe;function kDe(t,e=globalThis==null?void 0:globalThis.document){const n=Ns(t),a=ue.useRef(!1),r=ue.useRef(()=>{});return ue.useEffect(()=>{const i=s=>{if(s.target&&!a.current){let l=function(){UU(fDe,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=l,e.addEventListener("click",r.current,{once:!0})):l()}else e.removeEventListener("click",r.current);a.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>a.current=!0}}function vDe(t,e=globalThis==null?void 0:globalThis.document){const n=Ns(t),a=ue.useRef(!1);return ue.useEffect(()=>{const r=i=>{i.target&&!a.current&&UU(bDe,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function zU(){const t=new CustomEvent(t6);document.dispatchEvent(t)}function UU(t,e,n,{discrete:a}){const r=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),a?mDe(r,i):r.dispatchEvent(i)}var a6=0;function CDe(){ue.useEffect(()=>{var e,n;const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=t[0])!=null?e:HU()),document.body.insertAdjacentElement("beforeend",(n=t[1])!=null?n:HU()),a6++,()=>{a6===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),a6--}},[])}function HU(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var r6="focusScope.autoFocusOnMount",i6="focusScope.autoFocusOnUnmount",YU={bubbles:!1,cancelable:!0},_De="FocusScope",WU=ue.forwardRef((t,e)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=t,[s,l]=ue.useState(null),u=Ns(r),d=Ns(i),p=ue.useRef(null),A=$o(e,f=>l(f)),m=ue.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ue.useEffect(()=>{if(a){let f=function(v){if(m.paused||!s)return;const _=v.target;s.contains(_)?p.current=_:sA(p.current,{select:!0})},y=function(v){if(m.paused||!s)return;const _=v.relatedTarget;_!==null&&(s.contains(_)||sA(p.current,{select:!0}))},w=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&sA(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",y);const k=new MutationObserver(w);return s&&k.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",y),k.disconnect()}}},[a,s,m.paused]),ue.useEffect(()=>{if(s){VU.add(m);const f=document.activeElement;if(!s.contains(f)){const w=new CustomEvent(r6,YU);s.addEventListener(r6,u),s.dispatchEvent(w),w.defaultPrevented||(xDe(QDe(KU(s)),{select:!0}),document.activeElement===f&&sA(s))}return()=>{s.removeEventListener(r6,u),setTimeout(()=>{const w=new CustomEvent(i6,YU);s.addEventListener(i6,d),s.dispatchEvent(w),w.defaultPrevented||sA(f!=null?f:document.body,{select:!0}),s.removeEventListener(i6,d),VU.remove(m)},0)}}},[s,u,d,m]);const g=ue.useCallback(f=>{if(!n&&!a||m.paused)return;const y=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,w=document.activeElement;if(y&&w){const k=f.currentTarget,[v,_]=EDe(k);v&&_?!f.shiftKey&&w===_?(f.preventDefault(),n&&sA(v,{select:!0})):f.shiftKey&&w===v&&(f.preventDefault(),n&&sA(_,{select:!0})):w===k&&f.preventDefault()}},[n,a,m.paused]);return ie.jsx(Qi.div,{tabIndex:-1,...o,ref:A,onKeyDown:g})});WU.displayName=_De;function xDe(t,{select:e=!1}={}){const n=document.activeElement;for(const a of t)if(sA(a,{select:e}),document.activeElement!==n)return}function EDe(t){const e=KU(t),n=ZU(e,t),a=ZU(e.reverse(),t);return[n,a]}function KU(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function ZU(t,e){for(const n of t)if(!BDe(n,{upTo:e}))return n}function BDe(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function IDe(t){return t instanceof HTMLInputElement&&"select"in t}function sA(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&IDe(t)&&e&&t.select()}}var VU=DDe();function DDe(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=JU(t,e),t.unshift(e)},remove(e){var n;t=JU(t,e),(n=t[0])==null||n.resume()}}}function JU(t,e){const n=[...t],a=n.indexOf(e);return a!==-1&&n.splice(a,1),n}function QDe(t){return t.filter(e=>e.tagName!=="A")}var Kc=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},SDe=JT[" useId ".trim().toString()]||(()=>{}),TDe=0;function XU(t){const[e,n]=ue.useState(SDe());return Kc(()=>{n(a=>a!=null?a:String(TDe++))},[t]),t||(e?`radix-${e}`:"")}const FDe=["top","right","bottom","left"],cA=Math.min,hc=Math.max,uB=Math.round,dB=Math.floor,bu=t=>({x:t,y:t}),LDe={left:"right",right:"left",bottom:"top",top:"bottom"},NDe={start:"end",end:"start"};function o6(t,e,n){return hc(t,cA(e,n))}function xd(t,e){return typeof t=="function"?t(e):t}function Ed(t){return t.split("-")[0]}function db(t){return t.split("-")[1]}function s6(t){return t==="x"?"y":"x"}function c6(t){return t==="y"?"height":"width"}const RDe=new Set(["top","bottom"]);function yu(t){return RDe.has(Ed(t))?"y":"x"}function l6(t){return s6(yu(t))}function MDe(t,e,n){n===void 0&&(n=!1);const a=db(t),r=l6(t),i=c6(r);let o=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=pB(o)),[o,pB(o)]}function $De(t){const e=pB(t);return[u6(t),e,u6(e)]}function u6(t){return t.replace(/start|end/g,e=>NDe[e])}const eH=["left","right"],tH=["right","left"],PDe=["top","bottom"],ODe=["bottom","top"];function jDe(t,e,n){switch(t){case"top":case"bottom":return n?e?tH:eH:e?eH:tH;case"left":case"right":return e?PDe:ODe;default:return[]}}function qDe(t,e,n,a){const r=db(t);let i=jDe(Ed(t),n==="start",a);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(u6)))),i}function pB(t){return t.replace(/left|right|bottom|top/g,e=>LDe[e])}function GDe(t){return{top:0,right:0,bottom:0,left:0,...t}}function nH(t){return typeof t!="number"?GDe(t):{top:t,right:t,bottom:t,left:t}}function AB(t){const{x:e,y:n,width:a,height:r}=t;return{width:a,height:r,top:n,left:e,right:e+a,bottom:n+r,x:e,y:n}}function aH(t,e,n){let{reference:a,floating:r}=t;const i=yu(e),o=l6(e),s=c6(o),l=Ed(e),u=i==="y",d=a.x+a.width/2-r.width/2,p=a.y+a.height/2-r.height/2,A=a[s]/2-r[s]/2;let m;switch(l){case"top":m={x:d,y:a.y-r.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:p};break;case"left":m={x:a.x-r.width,y:p};break;default:m={x:a.x,y:a.y}}switch(db(e)){case"start":m[o]-=A*(n&&u?-1:1);break;case"end":m[o]+=A*(n&&u?-1:1);break}return m}const zDe=async(t,e,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:p}=aH(u,a,l),A=a,m={},g=0;for(let f=0;f({name:"arrow",options:t,async fn(e){const{x:n,y:a,placement:r,rects:i,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:d=0}=xd(t,e)||{};if(u==null)return{};const p=nH(d),A={x:n,y:a},m=l6(r),g=c6(m),f=await o.getDimensions(u),y=m==="y",w=y?"top":"left",k=y?"bottom":"right",v=y?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[m]-A[m]-i.floating[g],E=A[m]-i.reference[m],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let B=I?I[v]:0;(!B||!await(o.isElement==null?void 0:o.isElement(I)))&&(B=s.floating[v]||i.floating[g]);const Q=_/2-E/2,T=B/2-f[g]/2-1,N=cA(p[w],T),F=cA(p[k],T),P=N,q=B-f[g]-F,S=B/2-f[g]/2+Q,$=o6(P,S,q),L=!l.arrow&&db(r)!=null&&S!==$&&i.reference[g]/2-(SS<=0)){var F,P;const S=(((F=i.flip)==null?void 0:F.index)||0)+1,$=B[S];if($&&(!(p==="alignment"?k!==yu($):!1)||N.every(R=>yu(R.placement)===k?R.overflows[0]>0:!0)))return{data:{index:S,overflows:N},reset:{placement:$}};let L=(P=N.filter(M=>M.overflows[0]<=0).sort((M,R)=>M.overflows[1]-R.overflows[1])[0])==null?void 0:P.placement;if(!L)switch(m){case"bestFit":{var q;const M=(q=N.filter(R=>{if(I){const G=yu(R.placement);return G===k||G==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(G=>G>0).reduce((G,O)=>G+O,0)]).sort((R,G)=>R[1]-G[1])[0])==null?void 0:q[0];M&&(L=M);break}case"initialPlacement":L=s;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function rH(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function iH(t){return FDe.some(e=>t[e]>=0)}const YDe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:a="referenceHidden",...r}=xd(t,e);switch(a){case"referenceHidden":{const i=await bv(e,{...r,elementContext:"reference"}),o=rH(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:iH(o)}}}case"escaped":{const i=await bv(e,{...r,altBoundary:!0}),o=rH(i,n.floating);return{data:{escapedOffsets:o,escaped:iH(o)}}}default:return{}}}}},oH=new Set(["left","top"]);async function WDe(t,e){const{placement:n,platform:a,elements:r}=t,i=await(a.isRTL==null?void 0:a.isRTL(r.floating)),o=Ed(n),s=db(n),l=yu(n)==="y",u=oH.has(o)?-1:1,d=i&&l?-1:1,p=xd(e,t);let{mainAxis:A,crossAxis:m,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),l?{x:m*d,y:A*u}:{x:A*u,y:m*d}}const KDe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,a;const{x:r,y:i,placement:o,middlewareData:s}=e,l=await WDe(e,t);return o===((n=s.offset)==null?void 0:n.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}}},ZDe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:a,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:y=>{let{x:w,y:k}=y;return{x:w,y:k}}},...l}=xd(t,e),u={x:n,y:a},d=await bv(e,l),p=yu(Ed(r)),A=s6(p);let m=u[A],g=u[p];if(i){const y=A==="y"?"top":"left",w=A==="y"?"bottom":"right",k=m+d[y],v=m-d[w];m=o6(k,m,v)}if(o){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",k=g+d[y],v=g-d[w];g=o6(k,g,v)}const f=s.fn({...e,[A]:m,[p]:g});return{...f,data:{x:f.x-n,y:f.y-a,enabled:{[A]:i,[p]:o}}}}}},VDe=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:a,placement:r,rects:i,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=xd(t,e),d={x:n,y:a},p=yu(r),A=s6(p);let m=d[A],g=d[p];const f=xd(s,e),y=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const v=A==="y"?"height":"width",_=i.reference[A]-i.floating[v]+y.mainAxis,E=i.reference[A]+i.reference[v]-y.mainAxis;m<_?m=_:m>E&&(m=E)}if(u){var w,k;const v=A==="y"?"width":"height",_=oH.has(Ed(r)),E=i.reference[p]-i.floating[v]+(_&&((w=o.offset)==null?void 0:w[p])||0)+(_?0:y.crossAxis),I=i.reference[p]+i.reference[v]+(_?0:((k=o.offset)==null?void 0:k[p])||0)-(_?y.crossAxis:0);gI&&(g=I)}return{[A]:m,[p]:g}}}},JDe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,a;const{placement:r,rects:i,platform:o,elements:s}=e,{apply:l=()=>{},...u}=xd(t,e),d=await bv(e,u),p=Ed(r),A=db(r),m=yu(r)==="y",{width:g,height:f}=i.floating;let y,w;p==="top"||p==="bottom"?(y=p,w=A===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(w=p,y=A==="end"?"top":"bottom");const k=f-d.top-d.bottom,v=g-d.left-d.right,_=cA(f-d[y],k),E=cA(g-d[w],v),I=!e.middlewareData.shift;let B=_,Q=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(Q=v),(a=e.middlewareData.shift)!=null&&a.enabled.y&&(B=k),I&&!A){const N=hc(d.left,0),F=hc(d.right,0),P=hc(d.top,0),q=hc(d.bottom,0);m?Q=g-2*(N!==0||F!==0?N+F:hc(d.left,d.right)):B=f-2*(P!==0||q!==0?P+q:hc(d.top,d.bottom))}await l({...e,availableWidth:Q,availableHeight:B});const T=await o.getDimensions(s.floating);return g!==T.width||f!==T.height?{reset:{rects:!0}}:{}}}};function mB(){return typeof window!="undefined"}function pb(t){return sH(t)?(t.nodeName||"").toLowerCase():"#document"}function fc(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function wu(t){var e;return(e=(sH(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sH(t){return mB()?t instanceof Node||t instanceof fc(t).Node:!1}function Nl(t){return mB()?t instanceof Element||t instanceof fc(t).Element:!1}function ku(t){return mB()?t instanceof HTMLElement||t instanceof fc(t).HTMLElement:!1}function cH(t){return!mB()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof fc(t).ShadowRoot}const XDe=new Set(["inline","contents"]);function yv(t){const{overflow:e,overflowX:n,overflowY:a,display:r}=Rl(t);return/auto|scroll|overlay|hidden|clip/.test(e+a+n)&&!XDe.has(r)}const eQe=new Set(["table","td","th"]);function tQe(t){return eQe.has(pb(t))}const nQe=[":popover-open",":modal"];function gB(t){return nQe.some(e=>{try{return t.matches(e)}catch{return!1}})}const aQe=["transform","translate","scale","rotate","perspective"],rQe=["transform","translate","scale","rotate","perspective","filter"],iQe=["paint","layout","strict","content"];function d6(t){const e=p6(),n=Nl(t)?Rl(t):t;return aQe.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||rQe.some(a=>(n.willChange||"").includes(a))||iQe.some(a=>(n.contain||"").includes(a))}function oQe(t){let e=lA(t);for(;ku(e)&&!Ab(e);){if(d6(e))return e;if(gB(e))return null;e=lA(e)}return null}function p6(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sQe=new Set(["html","body","#document"]);function Ab(t){return sQe.has(pb(t))}function Rl(t){return fc(t).getComputedStyle(t)}function hB(t){return Nl(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function lA(t){if(pb(t)==="html")return t;const e=t.assignedSlot||t.parentNode||cH(t)&&t.host||wu(t);return cH(e)?e.host:e}function lH(t){const e=lA(t);return Ab(e)?t.ownerDocument?t.ownerDocument.body:t.body:ku(e)&&yv(e)?e:lH(e)}function wv(t,e,n){var a;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=lH(t),i=r===((a=t.ownerDocument)==null?void 0:a.body),o=fc(r);if(i){const s=A6(o);return e.concat(o,o.visualViewport||[],yv(r)?r:[],s&&n?wv(s):[])}return e.concat(r,wv(r,[],n))}function A6(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function uH(t){const e=Rl(t);let n=parseFloat(e.width)||0,a=parseFloat(e.height)||0;const r=ku(t),i=r?t.offsetWidth:n,o=r?t.offsetHeight:a,s=uB(n)!==i||uB(a)!==o;return s&&(n=i,a=o),{width:n,height:a,$:s}}function m6(t){return Nl(t)?t:t.contextElement}function mb(t){const e=m6(t);if(!ku(e))return bu(1);const n=e.getBoundingClientRect(),{width:a,height:r,$:i}=uH(e);let o=(i?uB(n.width):n.width)/a,s=(i?uB(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const cQe=bu(0);function dH(t){const e=fc(t);return!p6()||!e.visualViewport?cQe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function lQe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==fc(t)?!1:e}function Dg(t,e,n,a){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=m6(t);let o=bu(1);e&&(a?Nl(a)&&(o=mb(a)):o=mb(t));const s=lQe(i,n,a)?dH(i):bu(0);let l=(r.left+s.x)/o.x,u=(r.top+s.y)/o.y,d=r.width/o.x,p=r.height/o.y;if(i){const A=fc(i),m=a&&Nl(a)?fc(a):a;let g=A,f=A6(g);for(;f&&a&&m!==g;){const y=mb(f),w=f.getBoundingClientRect(),k=Rl(f),v=w.left+(f.clientLeft+parseFloat(k.paddingLeft))*y.x,_=w.top+(f.clientTop+parseFloat(k.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,p*=y.y,l+=v,u+=_,g=fc(f),f=A6(g)}}return AB({width:d,height:p,x:l,y:u})}function fB(t,e){const n=hB(t).scrollLeft;return e?e.left+n:Dg(wu(t)).left+n}function pH(t,e){const n=t.getBoundingClientRect(),a=n.left+e.scrollLeft-fB(t,n),r=n.top+e.scrollTop;return{x:a,y:r}}function uQe(t){let{elements:e,rect:n,offsetParent:a,strategy:r}=t;const i=r==="fixed",o=wu(a),s=e?gB(e.floating):!1;if(a===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=bu(1);const d=bu(0),p=ku(a);if((p||!p&&!i)&&((pb(a)!=="body"||yv(o))&&(l=hB(a)),ku(a))){const m=Dg(a);u=mb(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}const A=o&&!p&&!i?pH(o,l):bu(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+A.x,y:n.y*u.y-l.scrollTop*u.y+d.y+A.y}}function dQe(t){return Array.from(t.getClientRects())}function pQe(t){const e=wu(t),n=hB(t),a=t.ownerDocument.body,r=hc(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),i=hc(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let o=-n.scrollLeft+fB(t);const s=-n.scrollTop;return Rl(a).direction==="rtl"&&(o+=hc(e.clientWidth,a.clientWidth)-r),{width:r,height:i,x:o,y:s}}const AH=25;function AQe(t,e){const n=fc(t),a=wu(t),r=n.visualViewport;let i=a.clientWidth,o=a.clientHeight,s=0,l=0;if(r){i=r.width,o=r.height;const d=p6();(!d||d&&e==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}const u=fB(a);if(u<=0){const d=a.ownerDocument,p=d.body,A=getComputedStyle(p),m=d.compatMode==="CSS1Compat"&&parseFloat(A.marginLeft)+parseFloat(A.marginRight)||0,g=Math.abs(a.clientWidth-p.clientWidth-m);g<=AH&&(i-=g)}else u<=AH&&(i+=u);return{width:i,height:o,x:s,y:l}}const mQe=new Set(["absolute","fixed"]);function gQe(t,e){const n=Dg(t,!0,e==="fixed"),a=n.top+t.clientTop,r=n.left+t.clientLeft,i=ku(t)?mb(t):bu(1),o=t.clientWidth*i.x,s=t.clientHeight*i.y,l=r*i.x,u=a*i.y;return{width:o,height:s,x:l,y:u}}function mH(t,e,n){let a;if(e==="viewport")a=AQe(t,n);else if(e==="document")a=pQe(wu(t));else if(Nl(e))a=gQe(e,n);else{const r=dH(t);a={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return AB(a)}function gH(t,e){const n=lA(t);return n===e||!Nl(n)||Ab(n)?!1:Rl(n).position==="fixed"||gH(n,e)}function hQe(t,e){const n=e.get(t);if(n)return n;let a=wv(t,[],!1).filter(s=>Nl(s)&&pb(s)!=="body"),r=null;const i=Rl(t).position==="fixed";let o=i?lA(t):t;for(;Nl(o)&&!Ab(o);){const s=Rl(o),l=d6(o);!l&&s.position==="fixed"&&(r=null),(i?!l&&!r:!l&&s.position==="static"&&!!r&&mQe.has(r.position)||yv(o)&&!l&&gH(t,o))?a=a.filter(d=>d!==o):r=s,o=lA(o)}return e.set(t,a),a}function fQe(t){let{element:e,boundary:n,rootBoundary:a,strategy:r}=t;const o=[...n==="clippingAncestors"?gB(e)?[]:hQe(e,this._c):[].concat(n),a],s=o[0],l=o.reduce((u,d)=>{const p=mH(e,d,r);return u.top=hc(p.top,u.top),u.right=cA(p.right,u.right),u.bottom=cA(p.bottom,u.bottom),u.left=hc(p.left,u.left),u},mH(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bQe(t){const{width:e,height:n}=uH(t);return{width:e,height:n}}function yQe(t,e,n){const a=ku(e),r=wu(e),i=n==="fixed",o=Dg(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=bu(0);function u(){l.x=fB(r)}if(a||!a&&!i)if((pb(e)!=="body"||yv(r))&&(s=hB(e)),a){const m=Dg(e,!0,i,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else r&&u();i&&!a&&r&&u();const d=r&&!a&&!i?pH(r,s):bu(0),p=o.left+s.scrollLeft-l.x-d.x,A=o.top+s.scrollTop-l.y-d.y;return{x:p,y:A,width:o.width,height:o.height}}function g6(t){return Rl(t).position==="static"}function hH(t,e){if(!ku(t)||Rl(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return wu(t)===n&&(n=n.ownerDocument.body),n}function fH(t,e){const n=fc(t);if(gB(t))return n;if(!ku(t)){let r=lA(t);for(;r&&!Ab(r);){if(Nl(r)&&!g6(r))return r;r=lA(r)}return n}let a=hH(t,e);for(;a&&tQe(a)&&g6(a);)a=hH(a,e);return a&&Ab(a)&&g6(a)&&!d6(a)?n:a||oQe(t)||n}const wQe=async function(t){const e=this.getOffsetParent||fH,n=this.getDimensions,a=await n(t.floating);return{reference:yQe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function kQe(t){return Rl(t).direction==="rtl"}const vQe={convertOffsetParentRelativeRectToViewportRelativeRect:uQe,getDocumentElement:wu,getClippingRect:fQe,getOffsetParent:fH,getElementRects:wQe,getClientRects:dQe,getDimensions:bQe,getScale:mb,isElement:Nl,isRTL:kQe};function bH(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function CQe(t,e){let n=null,a;const r=wu(t);function i(){var s;clearTimeout(a),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:p,width:A,height:m}=u;if(s||e(),!A||!m)return;const g=dB(p),f=dB(r.clientWidth-(d+A)),y=dB(r.clientHeight-(p+m)),w=dB(d),v={rootMargin:-g+"px "+-f+"px "+-y+"px "+-w+"px",threshold:hc(0,cA(1,l))||1};let _=!0;function E(I){const B=I[0].intersectionRatio;if(B!==l){if(!_)return o();B?o(!1,B):a=setTimeout(()=>{o(!1,1e-7)},1e3)}B===1&&!bH(u,t.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(E,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(t)}return o(!0),i}function _Qe(t,e,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,u=m6(t),d=r||i?[...u?wv(u):[],...wv(e)]:[];d.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const p=u&&s?CQe(u,n):null;let A=-1,m=null;o&&(m=new ResizeObserver(w=>{let[k]=w;k&&k.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(e)})),n()}),u&&!l&&m.observe(u),m.observe(e));let g,f=l?Dg(t):null;l&&y();function y(){const w=Dg(t);f&&!bH(f,w)&&n(),f=w,g=requestAnimationFrame(y)}return n(),()=>{var w;d.forEach(k=>{r&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),p==null||p(),(w=m)==null||w.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const xQe=KDe,EQe=ZDe,BQe=HDe,IQe=JDe,DQe=YDe,yH=UDe,QQe=VDe,SQe=(t,e,n)=>{const a=new Map,r={platform:vQe,...n},i={...r.platform,_c:a};return zDe(t,e,{...r,platform:i})};var TQe=typeof document!="undefined",FQe=function(){},bB=TQe?ue.useLayoutEffect:FQe;function yB(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,a,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(a=n;a--!==0;)if(!yB(t[a],e[a]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(e,r[a]))return!1;for(a=n;a--!==0;){const i=r[a];if(!(i==="_owner"&&t.$$typeof)&&!yB(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function wH(t){return typeof window=="undefined"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kH(t,e){const n=wH(t);return Math.round(e*n)/n}function h6(t){const e=ue.useRef(t);return bB(()=>{e.current=t}),e}function LQe(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=t,[d,p]=ue.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[A,m]=ue.useState(a);yB(A,a)||m(a);const[g,f]=ue.useState(null),[y,w]=ue.useState(null),k=ue.useCallback(R=>{R!==I.current&&(I.current=R,f(R))},[]),v=ue.useCallback(R=>{R!==B.current&&(B.current=R,w(R))},[]),_=i||g,E=o||y,I=ue.useRef(null),B=ue.useRef(null),Q=ue.useRef(d),T=l!=null,N=h6(l),F=h6(r),P=h6(u),q=ue.useCallback(()=>{if(!I.current||!B.current)return;const R={placement:e,strategy:n,middleware:A};F.current&&(R.platform=F.current),SQe(I.current,B.current,R).then(G=>{const O={...G,isPositioned:P.current!==!1};S.current&&!yB(Q.current,O)&&(Q.current=O,XT.flushSync(()=>{p(O)}))})},[A,e,n,F,P]);bB(()=>{u===!1&&Q.current.isPositioned&&(Q.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[u]);const S=ue.useRef(!1);bB(()=>(S.current=!0,()=>{S.current=!1}),[]),bB(()=>{if(_&&(I.current=_),E&&(B.current=E),_&&E){if(N.current)return N.current(_,E,q);q()}},[_,E,q,N,T]);const $=ue.useMemo(()=>({reference:I,floating:B,setReference:k,setFloating:v}),[k,v]),L=ue.useMemo(()=>({reference:_,floating:E}),[_,E]),M=ue.useMemo(()=>{const R={position:n,left:0,top:0};if(!L.floating)return R;const G=kH(L.floating,d.x),O=kH(L.floating,d.y);return s?{...R,transform:"translate("+G+"px, "+O+"px)",...wH(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:O}},[n,s,L.floating,d.x,d.y]);return ue.useMemo(()=>({...d,update:q,refs:$,elements:L,floatingStyles:M}),[d,q,$,L,M])}const NQe=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:a,padding:r}=typeof t=="function"?t(n):t;return a&&e(a)?a.current!=null?yH({element:a.current,padding:r}).fn(n):{}:a?yH({element:a,padding:r}).fn(n):{}}}},RQe=(t,e)=>({...xQe(t),options:[t,e]}),MQe=(t,e)=>({...EQe(t),options:[t,e]}),$Qe=(t,e)=>({...QQe(t),options:[t,e]}),PQe=(t,e)=>({...BQe(t),options:[t,e]}),OQe=(t,e)=>({...IQe(t),options:[t,e]}),jQe=(t,e)=>({...DQe(t),options:[t,e]}),qQe=(t,e)=>({...NQe(t),options:[t,e]});var GQe="Arrow",vH=ue.forwardRef((t,e)=>{const{children:n,width:a=10,height:r=5,...i}=t;return ie.jsx(Qi.svg,{...i,ref:e,width:a,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:ie.jsx("polygon",{points:"0,0 30,0 15,10"})})});vH.displayName=GQe;var zQe=vH;function UQe(t){const[e,n]=ue.useState(void 0);return Kc(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=t.offsetWidth,s=t.offsetHeight;n({width:o,height:s})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else n(void 0)},[t]),e}var f6="Popper",[CH,wB]=fv(f6),[HQe,_H]=CH(f6),xH=t=>{const{__scopePopper:e,children:n}=t,[a,r]=ue.useState(null);return ie.jsx(HQe,{scope:e,anchor:a,onAnchorChange:r,children:n})};xH.displayName=f6;var EH="PopperAnchor",BH=ue.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:a,...r}=t,i=_H(EH,n),o=ue.useRef(null),s=$o(e,o),l=ue.useRef(null);return ue.useEffect(()=>{const u=l.current;l.current=(a==null?void 0:a.current)||o.current,u!==l.current&&i.onAnchorChange(l.current)}),a?null:ie.jsx(Qi.div,{...r,ref:s})});BH.displayName=EH;var b6="PopperContent",[YQe,WQe]=CH(b6),IH=ue.forwardRef((t,e)=>{var le,be,te,re,ne,ee,de,se;const{__scopePopper:n,side:a="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:A=!1,updatePositionStrategy:m="optimized",onPlaced:g,...f}=t,y=_H(b6,n),[w,k]=ue.useState(null),v=$o(e,Ce=>k(Ce)),[_,E]=ue.useState(null),I=UQe(_),B=(le=I==null?void 0:I.width)!=null?le:0,Q=(be=I==null?void 0:I.height)!=null?be:0,T=a+(i!=="center"?"-"+i:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],P=F.length>0,q={padding:N,boundary:F.filter(ZQe),altBoundary:P},{refs:S,floatingStyles:$,placement:L,isPositioned:M,middlewareData:R}=LQe({strategy:"fixed",placement:T,whileElementsMounted:(...Ce)=>_Qe(...Ce,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[RQe({mainAxis:r+Q,alignmentAxis:o}),l&&MQe({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?$Qe():void 0,...q}),l&&PQe({...q}),OQe({...q,apply:({elements:Ce,rects:Ae,availableWidth:ze,availableHeight:ae})=>{const{width:Xe,height:xe}=Ae.reference,rt=Ce.floating.style;rt.setProperty("--radix-popper-available-width",`${ze}px`),rt.setProperty("--radix-popper-available-height",`${ae}px`),rt.setProperty("--radix-popper-anchor-width",`${Xe}px`),rt.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),_&&qQe({element:_,padding:s}),VQe({arrowWidth:B,arrowHeight:Q}),A&&jQe({strategy:"referenceHidden",...q})]}),[G,O]=SH(L),j=Ns(g);Kc(()=>{M&&(j==null||j())},[M,j]);const W=(te=R.arrow)==null?void 0:te.x,H=(re=R.arrow)==null?void 0:re.y,J=((ne=R.arrow)==null?void 0:ne.centerOffset)!==0,[V,ce]=ue.useState();return Kc(()=>{w&&ce(window.getComputedStyle(w).zIndex)},[w]),ie.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:M?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(ee=R.transformOrigin)==null?void 0:ee.x,(de=R.transformOrigin)==null?void 0:de.y].join(" "),...((se=R.hide)==null?void 0:se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:ie.jsx(YQe,{scope:n,placedSide:G,onArrowChange:E,arrowX:W,arrowY:H,shouldHideArrow:J,children:ie.jsx(Qi.div,{"data-side":G,"data-align":O,...f,ref:v,style:{...f.style,animation:M?void 0:"none"}})})})});IH.displayName=b6;var DH="PopperArrow",KQe={top:"bottom",right:"left",bottom:"top",left:"right"},QH=ue.forwardRef(function(e,n){const{__scopePopper:a,...r}=e,i=WQe(DH,a),o=KQe[i.placedSide];return ie.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:ie.jsx(zQe,{...r,ref:n,style:{...r.style,display:"block"}})})});QH.displayName=DH;function ZQe(t){return t!==null}var VQe=t=>({name:"transformOrigin",options:t,fn(e){var y,w,k,v,_;const{placement:n,rects:a,middlewareData:r}=e,o=((y=r.arrow)==null?void 0:y.centerOffset)!==0,s=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[u,d]=SH(n),p={start:"0%",center:"50%",end:"100%"}[d],A=((k=(w=r.arrow)==null?void 0:w.x)!=null?k:0)+s/2,m=((_=(v=r.arrow)==null?void 0:v.y)!=null?_:0)+l/2;let g="",f="";return u==="bottom"?(g=o?p:`${A}px`,f=`${-l}px`):u==="top"?(g=o?p:`${A}px`,f=`${a.floating.height+l}px`):u==="right"?(g=`${-l}px`,f=o?p:`${m}px`):u==="left"&&(g=`${a.floating.width+l}px`,f=o?p:`${m}px`),{data:{x:g,y:f}}}});function SH(t){const[e,n="center"]=t.split("-");return[e,n]}var TH=xH,y6=BH,FH=IH,LH=QH,JQe="Portal",w6=ue.forwardRef((t,e)=>{var s;const{container:n,...a}=t,[r,i]=ue.useState(!1);Kc(()=>i(!0),[]);const o=n||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?oDe.createPortal(ie.jsx(Qi.div,{...a,ref:e}),o):null});w6.displayName=JQe;function XQe(t,e){return ue.useReducer((n,a)=>{const r=e[n][a];return r!=null?r:n},t)}var Bd=t=>{const{present:e,children:n}=t,a=eSe(e),r=typeof n=="function"?n({present:a.isPresent}):ue.Children.only(n),i=$o(a.ref,tSe(r));return typeof n=="function"||a.isPresent?ue.cloneElement(r,{ref:i}):null};Bd.displayName="Presence";function eSe(t){const[e,n]=ue.useState(),a=ue.useRef(null),r=ue.useRef(t),i=ue.useRef("none"),o=t?"mounted":"unmounted",[s,l]=XQe(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const u=kB(a.current);i.current=s==="mounted"?u:"none"},[s]),Kc(()=>{const u=a.current,d=r.current;if(d!==t){const A=i.current,m=kB(u);t?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&A!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=t}},[t,l]),Kc(()=>{var u;if(e){let d;const p=(u=e.ownerDocument.defaultView)!=null?u:window,A=g=>{const y=kB(a.current).includes(CSS.escape(g.animationName));if(g.target===e&&y&&(l("ANIMATION_END"),!r.current)){const w=e.style.animationFillMode;e.style.animationFillMode="forwards",d=p.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=w)})}},m=g=>{g.target===e&&(i.current=kB(a.current))};return e.addEventListener("animationstart",m),e.addEventListener("animationcancel",A),e.addEventListener("animationend",A),()=>{p.clearTimeout(d),e.removeEventListener("animationstart",m),e.removeEventListener("animationcancel",A),e.removeEventListener("animationend",A)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:ue.useCallback(u=>{a.current=u?getComputedStyle(u):null,n(u)},[])}}function kB(t){return(t==null?void 0:t.animationName)||"none"}function tSe(t){var a,r;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var nSe=JT[" useInsertionEffect ".trim().toString()]||Kc;function NH({prop:t,defaultProp:e,onChange:n=()=>{},caller:a}){const[r,i,o]=aSe({defaultProp:e,onChange:n}),s=t!==void 0,l=s?t:r;{const d=ue.useRef(t!==void 0);ue.useEffect(()=>{const p=d.current;p!==s&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,a])}const u=ue.useCallback(d=>{var p;if(s){const A=rSe(d)?d(t):d;A!==t&&((p=o.current)==null||p.call(o,A))}else i(d)},[s,t,i,o]);return[l,u]}function aSe({defaultProp:t,onChange:e}){const[n,a]=ue.useState(t),r=ue.useRef(n),i=ue.useRef(e);return nSe(()=>{i.current=e},[e]),ue.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,a,i]}function rSe(t){return typeof t=="function"}var iSe=function(t){if(typeof document=="undefined")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},gb=new WeakMap,vB=new WeakMap,CB={},k6=0,RH=function(t){return t&&(t.host||RH(t.parentNode))},oSe=function(t,e){return e.map(function(n){if(t.contains(n))return n;var a=RH(n);return a&&t.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},sSe=function(t,e,n,a){var r=oSe(e,Array.isArray(t)?t:[t]);CB[n]||(CB[n]=new WeakMap);var i=CB[n],o=[],s=new Set,l=new Set(r),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(A){if(s.has(A))d(A);else try{var m=A.getAttribute(a),g=m!==null&&m!=="false",f=(gb.get(A)||0)+1,y=(i.get(A)||0)+1;gb.set(A,f),i.set(A,y),o.push(A),f===1&&g&&vB.set(A,!0),y===1&&A.setAttribute(n,"true"),g||A.setAttribute(a,"true")}catch(w){console.error("aria-hidden: cannot operate on ",A,w)}})};return d(e),s.clear(),k6++,function(){o.forEach(function(p){var A=gb.get(p)-1,m=i.get(p)-1;gb.set(p,A),i.set(p,m),A||(vB.has(p)||p.removeAttribute(a),vB.delete(p)),m||p.removeAttribute(n)}),k6--,k6||(gb=new WeakMap,gb=new WeakMap,vB=new WeakMap,CB={})}},cSe=function(t,e,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),r=iSe(t);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),sSe(a,r,n,"aria-hidden")):function(){return null}},vu=function(){return vu=Object.assign||function(e){for(var n,a=1,r=arguments.length;a0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function v6(t,e,n){if(n||arguments.length===2)for(var a=0,r=e.length,i;a