import{r as bu,a as p,R as Jp,W as qn}from"./@monaco-editor-Di1Jq_O0.js";import{g as ax}from"./@elkjs-CmhuJAjY.js";function ux(n,i){for(var o=0;o<i.length;o++){const s=i[o];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in n)){const c=Object.getOwnPropertyDescriptor(s,a);c&&Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var eu={exports:{}},Oo={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mp;function cx(){if(mp)return Oo;mp=1;var n=bu(),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(v,m,h){var y,w={},S=null,E=null;h!==void 0&&(S=""+h),m.key!==void 0&&(S=""+m.key),m.ref!==void 0&&(E=m.ref);for(y in m)s.call(m,y)&&!c.hasOwnProperty(y)&&(w[y]=m[y]);if(v&&v.defaultProps)for(y in m=v.defaultProps,m)w[y]===void 0&&(w[y]=m[y]);return{$$typeof:i,type:v,key:S,ref:E,props:w,_owner:a.current}}return Oo.Fragment=o,Oo.jsx=f,Oo.jsxs=f,Oo}var hp;function dx(){return hp||(hp=1,eu.exports=cx()),eu.exports}var x=dx(),tu={exports:{}},ut={},nu={exports:{}},ru={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gp;function fx(){return gp||(gp=1,function(n){function i(b,j){var W=b.length;b.push(j);e:for(;0<W;){var de=W-1>>>1,me=b[de];if(0<a(me,j))b[de]=j,b[W]=me,W=de;else break e}}function o(b){return b.length===0?null:b[0]}function s(b){if(b.length===0)return null;var j=b[0],W=b.pop();if(W!==j){b[0]=W;e:for(var de=0,me=b.length,Ae=me>>>1;de<Ae;){var Pe=2*(de+1)-1,Je=b[Pe],Te=Pe+1,oe=b[Te];if(0>a(Je,W))Te<me&&0>a(oe,Je)?(b[de]=oe,b[Te]=W,de=Te):(b[de]=Je,b[Pe]=W,de=Pe);else if(Te<me&&0>a(oe,W))b[de]=oe,b[Te]=W,de=Te;else break e}}return j}function a(b,j){var W=b.sortIndex-j.sortIndex;return W!==0?W:b.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,v=f.now();n.unstable_now=function(){return f.now()-v}}var m=[],h=[],y=1,w=null,S=3,E=!1,T=!1,C=!1,P=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(b){for(var j=o(h);j!==null;){if(j.callback===null)s(h);else if(j.startTime<=b)s(h),j.sortIndex=j.expirationTime,i(m,j);else break;j=o(h)}}function L(b){if(C=!1,M(b),!T)if(o(m)!==null)T=!0,q(F);else{var j=o(h);j!==null&&ve(L,j.startTime-b)}}function F(b,j){T=!1,C&&(C=!1,A(Y),Y=-1),E=!0;var W=S;try{for(M(j),w=o(m);w!==null&&(!(w.expirationTime>j)||b&&!se());){var de=w.callback;if(typeof de=="function"){w.callback=null,S=w.priorityLevel;var me=de(w.expirationTime<=j);j=n.unstable_now(),typeof me=="function"?w.callback=me:w===o(m)&&s(m),M(j)}else s(m);w=o(m)}if(w!==null)var Ae=!0;else{var Pe=o(h);Pe!==null&&ve(L,Pe.startTime-j),Ae=!1}return Ae}finally{w=null,S=W,E=!1}}var V=!1,$=null,Y=-1,Z=5,ne=-1;function se(){return!(n.unstable_now()-ne<Z)}function ue(){if($!==null){var b=n.unstable_now();ne=b;var j=!0;try{j=$(!0,b)}finally{j?ce():(V=!1,$=null)}}else V=!1}var ce;if(typeof k=="function")ce=function(){k(ue)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,pe=G.port2;G.port1.onmessage=ue,ce=function(){pe.postMessage(null)}}else ce=function(){P(ue,0)};function q(b){$=b,V||(V=!0,ce())}function ve(b,j){Y=P(function(){b(n.unstable_now())},j)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(b){b.callback=null},n.unstable_continueExecution=function(){T||E||(T=!0,q(F))},n.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<b?Math.floor(1e3/b):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return o(m)},n.unstable_next=function(b){switch(S){case 1:case 2:case 3:var j=3;break;default:j=S}var W=S;S=j;try{return b()}finally{S=W}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(b,j){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var W=S;S=b;try{return j()}finally{S=W}},n.unstable_scheduleCallback=function(b,j,W){var de=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?de+W:de):W=de,b){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=W+me,b={id:y++,callback:j,priorityLevel:b,startTime:W,expirationTime:me,sortIndex:-1},W>de?(b.sortIndex=W,i(h,b),o(m)===null&&b===o(h)&&(C?(A(Y),Y=-1):C=!0,ve(L,W-de))):(b.sortIndex=me,i(m,b),T||E||(T=!0,q(F))),b},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(b){var j=S;return function(){var W=S;S=j;try{return b.apply(this,arguments)}finally{S=W}}}}(ru)),ru}var yp;function px(){return yp||(yp=1,nu.exports=fx()),nu.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wp;function vx(){if(wp)return ut;wp=1;var n=bu(),i=px();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},w={};function S(e){return m.call(w,e)?!0:m.call(y,e)?!1:h.test(e)?w[e]=!0:(y[e]=!0,!1)}function E(e,t,r,l){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,t,r,l){if(t===null||typeof t>"u"||E(e,t,r,l))return!0;if(l)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function C(e,t,r,l,u,d,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=u,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=g}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new C(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new C(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function k(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,k);P[t]=new C(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,k);P[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,k);P[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,t,r,l){var u=P.hasOwnProperty(t)?P[t]:null;(u!==null?u.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(T(t,r,u,l)&&(r=null),l||u===null?S(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):u.mustUseProperty?e[u.propertyName]=r===null?u.type===3?!1:"":r:(t=u.attributeName,l=u.attributeNamespace,r===null?e.removeAttribute(t):(u=u.type,r=u===3||u===4&&r===!0?"":""+r,l?e.setAttributeNS(l,t,r):e.setAttribute(t,r))))}var L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),V=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),se=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),b=Symbol.iterator;function j(e){return e===null||typeof e!="object"?null:(e=b&&e[b]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,de;function me(e){if(de===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||""}return`
`+de+e}var Ae=!1;function Pe(e,t){if(!e||Ae)return"";Ae=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(O){var l=O}Reflect.construct(e,[],t)}else{try{t.call()}catch(O){l=O}e.call(t.prototype)}else{try{throw Error()}catch(O){l=O}e()}}catch(O){if(O&&l&&typeof O.stack=="string"){for(var u=O.stack.split(`
`),d=l.stack.split(`
`),g=u.length-1,R=d.length-1;1<=g&&0<=R&&u[g]!==d[R];)R--;for(;1<=g&&0<=R;g--,R--)if(u[g]!==d[R]){if(g!==1||R!==1)do if(g--,R--,0>R||u[g]!==d[R]){var _=`
`+u[g].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=g&&0<=R);break}}}finally{Ae=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?me(e):""}function Je(e){switch(e.tag){case 5:return me(e.type);case 16:return me("Lazy");case 13:return me("Suspense");case 19:return me("SuspenseList");case 0:case 2:case 15:return e=Pe(e.type,!1),e;case 11:return e=Pe(e.type.render,!1),e;case 1:return e=Pe(e.type,!0),e;default:return""}}function Te(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case V:return"Portal";case Z:return"Profiler";case Y:return"StrictMode";case ce:return"Suspense";case G:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case se:return(e.displayName||"Context")+".Consumer";case ne:return(e._context.displayName||"Context")+".Provider";case ue:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pe:return t=e.displayName||null,t!==null?t:Te(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return Te(e(t))}catch{}}return null}function oe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(t);case 8:return t===Y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xe(e){var t=Ce(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){l=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ge(e){e._valueTracker||(e._valueTracker=xe(e))}function Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=Ce(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function He(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rt(e,t){var r=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function an(e,t){var r=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;r=he(t.value!=null?t.value:r),e._wrapperState={initialChecked:l,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function un(e,t){t=t.checked,t!=null&&M(e,"checked",t,!1)}function Xt(e,t){un(e,t);var r=he(t.value),l=t.type;if(r!=null)l==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cn(e,t.type,r):t.hasOwnProperty("defaultValue")&&cn(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jo(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function cn(e,t,r){(t!=="number"||He(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Yr=Array.isArray;function lr(e,t,r,l){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&l&&(e[r].defaultSelected=!0)}else{for(r=""+he(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function cs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pc(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(o(92));if(Yr(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:he(r)}}function Rc(e,t){var r=he(t.value),l=he(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),l!=null&&(e.defaultValue=""+l)}function Tc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _c(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ds(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_c(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ei,kc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,l,u){MSApp.execUnsafeLocalFunction(function(){return e(t,r,l,u)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ei=ei||document.createElement("div"),ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Qr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fy=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){fy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function Nc(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function Ac(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var l=r.indexOf("--")===0,u=Nc(r,t[r],l);r==="float"&&(r="cssFloat"),l?e.setProperty(r,u):e[r]=u}}var py=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fs(e,t){if(t){if(py[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function ps(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vs=null;function ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hs=null,sr=null,ar=null;function Mc(e){if(e=wo(e)){if(typeof hs!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Ei(t),hs(e.stateNode,e.type,t))}}function Ic(e){sr?ar?ar.push(e):ar=[e]:sr=e}function Dc(){if(sr){var e=sr,t=ar;if(ar=sr=null,Mc(e),t)for(e=0;e<t.length;e++)Mc(t[e])}}function Oc(e,t){return e(t)}function Lc(){}var gs=!1;function bc(e,t,r){if(gs)return e(t,r);gs=!0;try{return Oc(e,t,r)}finally{gs=!1,(sr!==null||ar!==null)&&(Lc(),Dc())}}function Zr(e,t){var r=e.stateNode;if(r===null)return null;var l=Ei(r);if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(o(231,t,typeof r));return r}var ys=!1;if(v)try{var qr={};Object.defineProperty(qr,"passive",{get:function(){ys=!0}}),window.addEventListener("test",qr,qr),window.removeEventListener("test",qr,qr)}catch{ys=!1}function vy(e,t,r,l,u,d,g,R,_){var O=Array.prototype.slice.call(arguments,3);try{t.apply(r,O)}catch(U){this.onError(U)}}var Jr=!1,ti=null,ni=!1,ws=null,my={onError:function(e){Jr=!0,ti=e}};function hy(e,t,r,l,u,d,g,R,_){Jr=!1,ti=null,vy.apply(my,arguments)}function gy(e,t,r,l,u,d,g,R,_){if(hy.apply(this,arguments),Jr){if(Jr){var O=ti;Jr=!1,ti=null}else throw Error(o(198));ni||(ni=!0,ws=O)}}function $n(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function jc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fc(e){if($n(e)!==e)throw Error(o(188))}function yy(e){var t=e.alternate;if(!t){if(t=$n(e),t===null)throw Error(o(188));return t!==e?null:e}for(var r=e,l=t;;){var u=r.return;if(u===null)break;var d=u.alternate;if(d===null){if(l=u.return,l!==null){r=l;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===r)return Fc(u),e;if(d===l)return Fc(u),t;d=d.sibling}throw Error(o(188))}if(r.return!==l.return)r=u,l=d;else{for(var g=!1,R=u.child;R;){if(R===r){g=!0,r=u,l=d;break}if(R===l){g=!0,l=u,r=d;break}R=R.sibling}if(!g){for(R=d.child;R;){if(R===r){g=!0,r=d,l=u;break}if(R===l){g=!0,l=d,r=u;break}R=R.sibling}if(!g)throw Error(o(189))}}if(r.alternate!==l)throw Error(o(190))}if(r.tag!==3)throw Error(o(188));return r.stateNode.current===r?e:t}function $c(e){return e=yy(e),e!==null?zc(e):null}function zc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zc(e);if(t!==null)return t;e=e.sibling}return null}var Bc=i.unstable_scheduleCallback,Uc=i.unstable_cancelCallback,wy=i.unstable_shouldYield,xy=i.unstable_requestPaint,be=i.unstable_now,Sy=i.unstable_getCurrentPriorityLevel,xs=i.unstable_ImmediatePriority,Hc=i.unstable_UserBlockingPriority,ri=i.unstable_NormalPriority,Cy=i.unstable_LowPriority,Wc=i.unstable_IdlePriority,oi=null,jt=null;function Ey(e){if(jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(oi,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:Ty,Py=Math.log,Ry=Math.LN2;function Ty(e){return e>>>=0,e===0?32:31-(Py(e)/Ry|0)|0}var ii=64,li=4194304;function eo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function si(e,t){var r=e.pendingLanes;if(r===0)return 0;var l=0,u=e.suspendedLanes,d=e.pingedLanes,g=r&268435455;if(g!==0){var R=g&~u;R!==0?l=eo(R):(d&=g,d!==0&&(l=eo(d)))}else g=r&~u,g!==0?l=eo(g):d!==0&&(l=eo(d));if(l===0)return 0;if(t!==0&&t!==l&&(t&u)===0&&(u=l&-l,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if((l&4)!==0&&(l|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)r=31-Tt(t),u=1<<r,l|=e[r],t&=~u;return l}function _y(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ky(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes;0<d;){var g=31-Tt(d),R=1<<g,_=u[g];_===-1?((R&r)===0||(R&l)!==0)&&(u[g]=_y(R,t)):_<=t&&(e.expiredLanes|=R),d&=~R}}function Ss(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function Cs(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function to(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=r}function Ny(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<r;){var u=31-Tt(r),d=1<<u;t[u]=0,l[u]=-1,e[u]=-1,r&=~d}}function Es(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-Tt(r),u=1<<l;u&t|e[l]&t&&(e[l]|=t),r&=~u}}var Ee=0;function Kc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Gc,Ps,Yc,Xc,Qc,Rs=!1,ai=[],dn=null,fn=null,pn=null,no=new Map,ro=new Map,vn=[],Ay="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Zc(e,t){switch(e){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":no.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ro.delete(t.pointerId)}}function oo(e,t,r,l,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:d,targetContainers:[u]},t!==null&&(t=wo(t),t!==null&&Ps(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function My(e,t,r,l,u){switch(t){case"focusin":return dn=oo(dn,e,t,r,l,u),!0;case"dragenter":return fn=oo(fn,e,t,r,l,u),!0;case"mouseover":return pn=oo(pn,e,t,r,l,u),!0;case"pointerover":var d=u.pointerId;return no.set(d,oo(no.get(d)||null,e,t,r,l,u)),!0;case"gotpointercapture":return d=u.pointerId,ro.set(d,oo(ro.get(d)||null,e,t,r,l,u)),!0}return!1}function qc(e){var t=zn(e.target);if(t!==null){var r=$n(t);if(r!==null){if(t=r.tag,t===13){if(t=jc(r),t!==null){e.blockedOn=t,Qc(e.priority,function(){Yc(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ui(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=_s(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);vs=l,r.target.dispatchEvent(l),vs=null}else return t=wo(r),t!==null&&Ps(t),e.blockedOn=r,!1;t.shift()}return!0}function Jc(e,t,r){ui(e)&&r.delete(t)}function Iy(){Rs=!1,dn!==null&&ui(dn)&&(dn=null),fn!==null&&ui(fn)&&(fn=null),pn!==null&&ui(pn)&&(pn=null),no.forEach(Jc),ro.forEach(Jc)}function io(e,t){e.blockedOn===t&&(e.blockedOn=null,Rs||(Rs=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Iy)))}function lo(e){function t(u){return io(u,e)}if(0<ai.length){io(ai[0],e);for(var r=1;r<ai.length;r++){var l=ai[r];l.blockedOn===e&&(l.blockedOn=null)}}for(dn!==null&&io(dn,e),fn!==null&&io(fn,e),pn!==null&&io(pn,e),no.forEach(t),ro.forEach(t),r=0;r<vn.length;r++)l=vn[r],l.blockedOn===e&&(l.blockedOn=null);for(;0<vn.length&&(r=vn[0],r.blockedOn===null);)qc(r),r.blockedOn===null&&vn.shift()}var ur=L.ReactCurrentBatchConfig,ci=!0;function Dy(e,t,r,l){var u=Ee,d=ur.transition;ur.transition=null;try{Ee=1,Ts(e,t,r,l)}finally{Ee=u,ur.transition=d}}function Oy(e,t,r,l){var u=Ee,d=ur.transition;ur.transition=null;try{Ee=4,Ts(e,t,r,l)}finally{Ee=u,ur.transition=d}}function Ts(e,t,r,l){if(ci){var u=_s(e,t,r,l);if(u===null)Ws(e,t,l,di,r),Zc(e,l);else if(My(u,e,t,r,l))l.stopPropagation();else if(Zc(e,l),t&4&&-1<Ay.indexOf(e)){for(;u!==null;){var d=wo(u);if(d!==null&&Gc(d),d=_s(e,t,r,l),d===null&&Ws(e,t,l,di,r),d===u)break;u=d}u!==null&&l.stopPropagation()}else Ws(e,t,l,null,r)}}var di=null;function _s(e,t,r,l){if(di=null,e=ms(l),e=zn(e),e!==null)if(t=$n(e),t===null)e=null;else if(r=t.tag,r===13){if(e=jc(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return di=e,null}function ed(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Sy()){case xs:return 1;case Hc:return 4;case ri:case Cy:return 16;case Wc:return 536870912;default:return 16}default:return 16}}var mn=null,ks=null,fi=null;function td(){if(fi)return fi;var e,t=ks,r=t.length,l,u="value"in mn?mn.value:mn.textContent,d=u.length;for(e=0;e<r&&t[e]===u[e];e++);var g=r-e;for(l=1;l<=g&&t[r-l]===u[d-l];l++);return fi=u.slice(e,1<l?1-l:void 0)}function pi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vi(){return!0}function nd(){return!1}function dt(e){function t(r,l,u,d,g){this._reactName=r,this._targetInst=u,this.type=l,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(r=e[R],this[R]=r?r(d):d[R]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?vi:nd,this.isPropagationStopped=nd,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=dt(cr),so=W({},cr,{view:0,detail:0}),Ly=dt(so),As,Ms,ao,mi=W({},so,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ds,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ao&&(ao&&e.type==="mousemove"?(As=e.screenX-ao.screenX,Ms=e.screenY-ao.screenY):Ms=As=0,ao=e),As)},movementY:function(e){return"movementY"in e?e.movementY:Ms}}),rd=dt(mi),by=W({},mi,{dataTransfer:0}),jy=dt(by),Fy=W({},so,{relatedTarget:0}),Is=dt(Fy),$y=W({},cr,{animationName:0,elapsedTime:0,pseudoElement:0}),zy=dt($y),By=W({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=dt(By),Hy=W({},cr,{data:0}),od=dt(Hy),Wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ky={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ky[e])?!!t[e]:!1}function Ds(){return Gy}var Yy=W({},so,{key:function(e){if(e.key){var t=Wy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ds,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xy=dt(Yy),Qy=W({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),id=dt(Qy),Zy=W({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ds}),qy=dt(Zy),Jy=W({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ew=dt(Jy),tw=W({},mi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nw=dt(tw),rw=[9,13,27,32],Os=v&&"CompositionEvent"in window,uo=null;v&&"documentMode"in document&&(uo=document.documentMode);var ow=v&&"TextEvent"in window&&!uo,ld=v&&(!Os||uo&&8<uo&&11>=uo),sd=" ",ad=!1;function ud(e,t){switch(e){case"keyup":return rw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dr=!1;function iw(e,t){switch(e){case"compositionend":return cd(t);case"keypress":return t.which!==32?null:(ad=!0,sd);case"textInput":return e=t.data,e===sd&&ad?null:e;default:return null}}function lw(e,t){if(dr)return e==="compositionend"||!Os&&ud(e,t)?(e=td(),fi=ks=mn=null,dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ld&&t.locale!=="ko"?null:t.data;default:return null}}var sw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sw[e.type]:t==="textarea"}function fd(e,t,r,l){Ic(l),t=xi(t,"onChange"),0<t.length&&(r=new Ns("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var co=null,fo=null;function aw(e){Ad(e,0)}function hi(e){var t=hr(e);if(Se(t))return e}function uw(e,t){if(e==="change")return t}var pd=!1;if(v){var Ls;if(v){var bs="oninput"in document;if(!bs){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),bs=typeof vd.oninput=="function"}Ls=bs}else Ls=!1;pd=Ls&&(!document.documentMode||9<document.documentMode)}function md(){co&&(co.detachEvent("onpropertychange",hd),fo=co=null)}function hd(e){if(e.propertyName==="value"&&hi(fo)){var t=[];fd(t,fo,e,ms(e)),bc(aw,t)}}function cw(e,t,r){e==="focusin"?(md(),co=t,fo=r,co.attachEvent("onpropertychange",hd)):e==="focusout"&&md()}function dw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hi(fo)}function fw(e,t){if(e==="click")return hi(t)}function pw(e,t){if(e==="input"||e==="change")return hi(t)}function vw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:vw;function po(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var u=r[l];if(!m.call(t,u)||!_t(e[u],t[u]))return!1}return!0}function gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yd(e,t){var r=gd(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=gd(r)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xd(){for(var e=window,t=He();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=He(e.document)}return t}function js(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mw(e){var t=xd(),r=e.focusedElem,l=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wd(r.ownerDocument.documentElement,r)){if(l!==null&&js(r)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=r.textContent.length,d=Math.min(l.start,u);l=l.end===void 0?d:Math.min(l.end,u),!e.extend&&d>l&&(u=l,l=d,d=u),u=yd(r,d);var g=yd(r,l);u&&g&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>l?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hw=v&&"documentMode"in document&&11>=document.documentMode,fr=null,Fs=null,vo=null,$s=!1;function Sd(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$s||fr==null||fr!==He(l)||(l=fr,"selectionStart"in l&&js(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vo&&po(vo,l)||(vo=l,l=xi(Fs,"onSelect"),0<l.length&&(t=new Ns("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=fr)))}function gi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var pr={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionend:gi("Transition","TransitionEnd")},zs={},Cd={};v&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);function yi(e){if(zs[e])return zs[e];if(!pr[e])return e;var t=pr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Cd)return zs[e]=t[r];return e}var Ed=yi("animationend"),Pd=yi("animationiteration"),Rd=yi("animationstart"),Td=yi("transitionend"),_d=new Map,kd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function hn(e,t){_d.set(e,t),c(t,[e])}for(var Bs=0;Bs<kd.length;Bs++){var Us=kd[Bs],gw=Us.toLowerCase(),yw=Us[0].toUpperCase()+Us.slice(1);hn(gw,"on"+yw)}hn(Ed,"onAnimationEnd"),hn(Pd,"onAnimationIteration"),hn(Rd,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(Td,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ww=new Set("cancel close invalid load scroll toggle".split(" ").concat(mo));function Nd(e,t,r){var l=e.type||"unknown-event";e.currentTarget=r,gy(l,t,void 0,e),e.currentTarget=null}function Ad(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],u=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var g=l.length-1;0<=g;g--){var R=l[g],_=R.instance,O=R.currentTarget;if(R=R.listener,_!==d&&u.isPropagationStopped())break e;Nd(u,R,O),d=_}else for(g=0;g<l.length;g++){if(R=l[g],_=R.instance,O=R.currentTarget,R=R.listener,_!==d&&u.isPropagationStopped())break e;Nd(u,R,O),d=_}}}if(ni)throw e=ws,ni=!1,ws=null,e}function _e(e,t){var r=t[Qs];r===void 0&&(r=t[Qs]=new Set);var l=e+"__bubble";r.has(l)||(Md(t,e,2,!1),r.add(l))}function Hs(e,t,r){var l=0;t&&(l|=4),Md(r,e,l,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function ho(e){if(!e[wi]){e[wi]=!0,s.forEach(function(r){r!=="selectionchange"&&(ww.has(r)||Hs(r,!1,e),Hs(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,Hs("selectionchange",!1,t))}}function Md(e,t,r,l){switch(ed(t)){case 1:var u=Dy;break;case 4:u=Oy;break;default:u=Ts}r=u.bind(null,t,r,e),u=void 0,!ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function Ws(e,t,r,l,u){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var R=l.stateNode.containerInfo;if(R===u||R.nodeType===8&&R.parentNode===u)break;if(g===4)for(g=l.return;g!==null;){var _=g.tag;if((_===3||_===4)&&(_=g.stateNode.containerInfo,_===u||_.nodeType===8&&_.parentNode===u))return;g=g.return}for(;R!==null;){if(g=zn(R),g===null)return;if(_=g.tag,_===5||_===6){l=d=g;continue e}R=R.parentNode}}l=l.return}bc(function(){var O=d,U=ms(r),H=[];e:{var B=_d.get(e);if(B!==void 0){var X=Ns,ee=e;switch(e){case"keypress":if(pi(r)===0)break e;case"keydown":case"keyup":X=Xy;break;case"focusin":ee="focus",X=Is;break;case"focusout":ee="blur",X=Is;break;case"beforeblur":case"afterblur":X=Is;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=jy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=qy;break;case Ed:case Pd:case Rd:X=zy;break;case Td:X=ew;break;case"scroll":X=Ly;break;case"wheel":X=nw;break;case"copy":case"cut":case"paste":X=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=id}var te=(t&4)!==0,je=!te&&e==="scroll",I=te?B!==null?B+"Capture":null:B;te=[];for(var N=O,D;N!==null;){D=N;var K=D.stateNode;if(D.tag===5&&K!==null&&(D=K,I!==null&&(K=Zr(N,I),K!=null&&te.push(go(N,K,D)))),je)break;N=N.return}0<te.length&&(B=new X(B,ee,null,r,U),H.push({event:B,listeners:te}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",B&&r!==vs&&(ee=r.relatedTarget||r.fromElement)&&(zn(ee)||ee[Qt]))break e;if((X||B)&&(B=U.window===U?U:(B=U.ownerDocument)?B.defaultView||B.parentWindow:window,X?(ee=r.relatedTarget||r.toElement,X=O,ee=ee?zn(ee):null,ee!==null&&(je=$n(ee),ee!==je||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(X=null,ee=O),X!==ee)){if(te=rd,K="onMouseLeave",I="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(te=id,K="onPointerLeave",I="onPointerEnter",N="pointer"),je=X==null?B:hr(X),D=ee==null?B:hr(ee),B=new te(K,N+"leave",X,r,U),B.target=je,B.relatedTarget=D,K=null,zn(U)===O&&(te=new te(I,N+"enter",ee,r,U),te.target=D,te.relatedTarget=je,K=te),je=K,X&&ee)t:{for(te=X,I=ee,N=0,D=te;D;D=vr(D))N++;for(D=0,K=I;K;K=vr(K))D++;for(;0<N-D;)te=vr(te),N--;for(;0<D-N;)I=vr(I),D--;for(;N--;){if(te===I||I!==null&&te===I.alternate)break t;te=vr(te),I=vr(I)}te=null}else te=null;X!==null&&Id(H,B,X,te,!1),ee!==null&&je!==null&&Id(H,je,ee,te,!0)}}e:{if(B=O?hr(O):window,X=B.nodeName&&B.nodeName.toLowerCase(),X==="select"||X==="input"&&B.type==="file")var re=uw;else if(dd(B))if(pd)re=pw;else{re=dw;var ie=cw}else(X=B.nodeName)&&X.toLowerCase()==="input"&&(B.type==="checkbox"||B.type==="radio")&&(re=fw);if(re&&(re=re(e,O))){fd(H,re,r,U);break e}ie&&ie(e,B,O),e==="focusout"&&(ie=B._wrapperState)&&ie.controlled&&B.type==="number"&&cn(B,"number",B.value)}switch(ie=O?hr(O):window,e){case"focusin":(dd(ie)||ie.contentEditable==="true")&&(fr=ie,Fs=O,vo=null);break;case"focusout":vo=Fs=fr=null;break;case"mousedown":$s=!0;break;case"contextmenu":case"mouseup":case"dragend":$s=!1,Sd(H,r,U);break;case"selectionchange":if(hw)break;case"keydown":case"keyup":Sd(H,r,U)}var le;if(Os)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else dr?ud(e,r)&&(fe="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(fe="onCompositionStart");fe&&(ld&&r.locale!=="ko"&&(dr||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&dr&&(le=td()):(mn=U,ks="value"in mn?mn.value:mn.textContent,dr=!0)),ie=xi(O,fe),0<ie.length&&(fe=new od(fe,e,null,r,U),H.push({event:fe,listeners:ie}),le?fe.data=le:(le=cd(r),le!==null&&(fe.data=le)))),(le=ow?iw(e,r):lw(e,r))&&(O=xi(O,"onBeforeInput"),0<O.length&&(U=new od("onBeforeInput","beforeinput",null,r,U),H.push({event:U,listeners:O}),U.data=le))}Ad(H,t)})}function go(e,t,r){return{instance:e,listener:t,currentTarget:r}}function xi(e,t){for(var r=t+"Capture",l=[];e!==null;){var u=e,d=u.stateNode;u.tag===5&&d!==null&&(u=d,d=Zr(e,r),d!=null&&l.unshift(go(e,d,u)),d=Zr(e,t),d!=null&&l.push(go(e,d,u))),e=e.return}return l}function vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Id(e,t,r,l,u){for(var d=t._reactName,g=[];r!==null&&r!==l;){var R=r,_=R.alternate,O=R.stateNode;if(_!==null&&_===l)break;R.tag===5&&O!==null&&(R=O,u?(_=Zr(r,d),_!=null&&g.unshift(go(r,_,R))):u||(_=Zr(r,d),_!=null&&g.push(go(r,_,R)))),r=r.return}g.length!==0&&e.push({event:t,listeners:g})}var xw=/\r\n?/g,Sw=/\u0000|\uFFFD/g;function Dd(e){return(typeof e=="string"?e:""+e).replace(xw,`
`).replace(Sw,"")}function Si(e,t,r){if(t=Dd(t),Dd(e)!==t&&r)throw Error(o(425))}function Ci(){}var Vs=null,Ks=null;function Gs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ys=typeof setTimeout=="function"?setTimeout:void 0,Cw=typeof clearTimeout=="function"?clearTimeout:void 0,Od=typeof Promise=="function"?Promise:void 0,Ew=typeof queueMicrotask=="function"?queueMicrotask:typeof Od<"u"?function(e){return Od.resolve(null).then(e).catch(Pw)}:Ys;function Pw(e){setTimeout(function(){throw e})}function Xs(e,t){var r=t,l=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r==="/$"){if(l===0){e.removeChild(u),lo(t);return}l--}else r!=="$"&&r!=="$?"&&r!=="$!"||l++;r=u}while(r);lo(t)}function gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ld(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var mr=Math.random().toString(36).slice(2),Ft="__reactFiber$"+mr,yo="__reactProps$"+mr,Qt="__reactContainer$"+mr,Qs="__reactEvents$"+mr,Rw="__reactListeners$"+mr,Tw="__reactHandles$"+mr;function zn(e){var t=e[Ft];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Qt]||r[Ft]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ld(e);e!==null;){if(r=e[Ft])return r;e=Ld(e)}return t}e=r,r=e.parentNode}return null}function wo(e){return e=e[Ft]||e[Qt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ei(e){return e[yo]||null}var Zs=[],gr=-1;function yn(e){return{current:e}}function ke(e){0>gr||(e.current=Zs[gr],Zs[gr]=null,gr--)}function Re(e,t){gr++,Zs[gr]=e.current,e.current=t}var wn={},Xe=yn(wn),ot=yn(!1),Bn=wn;function yr(e,t){var r=e.type.contextTypes;if(!r)return wn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in r)u[d]=t[d];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function it(e){return e=e.childContextTypes,e!=null}function Pi(){ke(ot),ke(Xe)}function bd(e,t,r){if(Xe.current!==wn)throw Error(o(168));Re(Xe,t),Re(ot,r)}function jd(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return r;l=l.getChildContext();for(var u in l)if(!(u in t))throw Error(o(108,oe(e)||"Unknown",u));return W({},r,l)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wn,Bn=Xe.current,Re(Xe,e),Re(ot,ot.current),!0}function Fd(e,t,r){var l=e.stateNode;if(!l)throw Error(o(169));r?(e=jd(e,t,Bn),l.__reactInternalMemoizedMergedChildContext=e,ke(ot),ke(Xe),Re(Xe,e)):ke(ot),Re(ot,r)}var Zt=null,Ti=!1,qs=!1;function $d(e){Zt===null?Zt=[e]:Zt.push(e)}function _w(e){Ti=!0,$d(e)}function xn(){if(!qs&&Zt!==null){qs=!0;var e=0,t=Ee;try{var r=Zt;for(Ee=1;e<r.length;e++){var l=r[e];do l=l(!0);while(l!==null)}Zt=null,Ti=!1}catch(u){throw Zt!==null&&(Zt=Zt.slice(e+1)),Bc(xs,xn),u}finally{Ee=t,qs=!1}}return null}var wr=[],xr=0,_i=null,ki=0,yt=[],wt=0,Un=null,qt=1,Jt="";function Hn(e,t){wr[xr++]=ki,wr[xr++]=_i,_i=e,ki=t}function zd(e,t,r){yt[wt++]=qt,yt[wt++]=Jt,yt[wt++]=Un,Un=e;var l=qt;e=Jt;var u=32-Tt(l)-1;l&=~(1<<u),r+=1;var d=32-Tt(t)+u;if(30<d){var g=u-u%5;d=(l&(1<<g)-1).toString(32),l>>=g,u-=g,qt=1<<32-Tt(t)+u|r<<u|l,Jt=d+e}else qt=1<<d|r<<u|l,Jt=e}function Js(e){e.return!==null&&(Hn(e,1),zd(e,1,0))}function ea(e){for(;e===_i;)_i=wr[--xr],wr[xr]=null,ki=wr[--xr],wr[xr]=null;for(;e===Un;)Un=yt[--wt],yt[wt]=null,Jt=yt[--wt],yt[wt]=null,qt=yt[--wt],yt[wt]=null}var ft=null,pt=null,Ne=!1,kt=null;function Bd(e,t){var r=Et(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Ud(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ft=e,pt=gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ft=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Un!==null?{id:qt,overflow:Jt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Et(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ft=e,pt=null,!0):!1;default:return!1}}function ta(e){return(e.mode&1)!==0&&(e.flags&128)===0}function na(e){if(Ne){var t=pt;if(t){var r=t;if(!Ud(e,t)){if(ta(e))throw Error(o(418));t=gn(r.nextSibling);var l=ft;t&&Ud(e,t)?Bd(l,r):(e.flags=e.flags&-4097|2,Ne=!1,ft=e)}}else{if(ta(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ne=!1,ft=e}}}function Hd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ft=e}function Ni(e){if(e!==ft)return!1;if(!Ne)return Hd(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gs(e.type,e.memoizedProps)),t&&(t=pt)){if(ta(e))throw Wd(),Error(o(418));for(;t;)Bd(e,t),t=gn(t.nextSibling)}if(Hd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){pt=gn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=ft?gn(e.stateNode.nextSibling):null;return!0}function Wd(){for(var e=pt;e;)e=gn(e.nextSibling)}function Sr(){pt=ft=null,Ne=!1}function ra(e){kt===null?kt=[e]:kt.push(e)}var kw=L.ReactCurrentBatchConfig;function xo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(o(309));var l=r.stateNode}if(!l)throw Error(o(147,e));var u=l,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(g){var R=u.refs;g===null?delete R[d]:R[d]=g},t._stringRef=d,t)}if(typeof e!="string")throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Ai(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vd(e){var t=e._init;return t(e._payload)}function Kd(e){function t(I,N){if(e){var D=I.deletions;D===null?(I.deletions=[N],I.flags|=16):D.push(N)}}function r(I,N){if(!e)return null;for(;N!==null;)t(I,N),N=N.sibling;return null}function l(I,N){for(I=new Map;N!==null;)N.key!==null?I.set(N.key,N):I.set(N.index,N),N=N.sibling;return I}function u(I,N){return I=kn(I,N),I.index=0,I.sibling=null,I}function d(I,N,D){return I.index=D,e?(D=I.alternate,D!==null?(D=D.index,D<N?(I.flags|=2,N):D):(I.flags|=2,N)):(I.flags|=1048576,N)}function g(I){return e&&I.alternate===null&&(I.flags|=2),I}function R(I,N,D,K){return N===null||N.tag!==6?(N=Ya(D,I.mode,K),N.return=I,N):(N=u(N,D),N.return=I,N)}function _(I,N,D,K){var re=D.type;return re===$?U(I,N,D.props.children,K,D.key):N!==null&&(N.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===q&&Vd(re)===N.type)?(K=u(N,D.props),K.ref=xo(I,N,D),K.return=I,K):(K=el(D.type,D.key,D.props,null,I.mode,K),K.ref=xo(I,N,D),K.return=I,K)}function O(I,N,D,K){return N===null||N.tag!==4||N.stateNode.containerInfo!==D.containerInfo||N.stateNode.implementation!==D.implementation?(N=Xa(D,I.mode,K),N.return=I,N):(N=u(N,D.children||[]),N.return=I,N)}function U(I,N,D,K,re){return N===null||N.tag!==7?(N=Zn(D,I.mode,K,re),N.return=I,N):(N=u(N,D),N.return=I,N)}function H(I,N,D){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Ya(""+N,I.mode,D),N.return=I,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case F:return D=el(N.type,N.key,N.props,null,I.mode,D),D.ref=xo(I,null,N),D.return=I,D;case V:return N=Xa(N,I.mode,D),N.return=I,N;case q:var K=N._init;return H(I,K(N._payload),D)}if(Yr(N)||j(N))return N=Zn(N,I.mode,D,null),N.return=I,N;Ai(I,N)}return null}function B(I,N,D,K){var re=N!==null?N.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return re!==null?null:R(I,N,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case F:return D.key===re?_(I,N,D,K):null;case V:return D.key===re?O(I,N,D,K):null;case q:return re=D._init,B(I,N,re(D._payload),K)}if(Yr(D)||j(D))return re!==null?null:U(I,N,D,K,null);Ai(I,D)}return null}function X(I,N,D,K,re){if(typeof K=="string"&&K!==""||typeof K=="number")return I=I.get(D)||null,R(N,I,""+K,re);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case F:return I=I.get(K.key===null?D:K.key)||null,_(N,I,K,re);case V:return I=I.get(K.key===null?D:K.key)||null,O(N,I,K,re);case q:var ie=K._init;return X(I,N,D,ie(K._payload),re)}if(Yr(K)||j(K))return I=I.get(D)||null,U(N,I,K,re,null);Ai(N,K)}return null}function ee(I,N,D,K){for(var re=null,ie=null,le=N,fe=N=0,Ke=null;le!==null&&fe<D.length;fe++){le.index>fe?(Ke=le,le=null):Ke=le.sibling;var we=B(I,le,D[fe],K);if(we===null){le===null&&(le=Ke);break}e&&le&&we.alternate===null&&t(I,le),N=d(we,N,fe),ie===null?re=we:ie.sibling=we,ie=we,le=Ke}if(fe===D.length)return r(I,le),Ne&&Hn(I,fe),re;if(le===null){for(;fe<D.length;fe++)le=H(I,D[fe],K),le!==null&&(N=d(le,N,fe),ie===null?re=le:ie.sibling=le,ie=le);return Ne&&Hn(I,fe),re}for(le=l(I,le);fe<D.length;fe++)Ke=X(le,I,fe,D[fe],K),Ke!==null&&(e&&Ke.alternate!==null&&le.delete(Ke.key===null?fe:Ke.key),N=d(Ke,N,fe),ie===null?re=Ke:ie.sibling=Ke,ie=Ke);return e&&le.forEach(function(Nn){return t(I,Nn)}),Ne&&Hn(I,fe),re}function te(I,N,D,K){var re=j(D);if(typeof re!="function")throw Error(o(150));if(D=re.call(D),D==null)throw Error(o(151));for(var ie=re=null,le=N,fe=N=0,Ke=null,we=D.next();le!==null&&!we.done;fe++,we=D.next()){le.index>fe?(Ke=le,le=null):Ke=le.sibling;var Nn=B(I,le,we.value,K);if(Nn===null){le===null&&(le=Ke);break}e&&le&&Nn.alternate===null&&t(I,le),N=d(Nn,N,fe),ie===null?re=Nn:ie.sibling=Nn,ie=Nn,le=Ke}if(we.done)return r(I,le),Ne&&Hn(I,fe),re;if(le===null){for(;!we.done;fe++,we=D.next())we=H(I,we.value,K),we!==null&&(N=d(we,N,fe),ie===null?re=we:ie.sibling=we,ie=we);return Ne&&Hn(I,fe),re}for(le=l(I,le);!we.done;fe++,we=D.next())we=X(le,I,fe,we.value,K),we!==null&&(e&&we.alternate!==null&&le.delete(we.key===null?fe:we.key),N=d(we,N,fe),ie===null?re=we:ie.sibling=we,ie=we);return e&&le.forEach(function(sx){return t(I,sx)}),Ne&&Hn(I,fe),re}function je(I,N,D,K){if(typeof D=="object"&&D!==null&&D.type===$&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case F:e:{for(var re=D.key,ie=N;ie!==null;){if(ie.key===re){if(re=D.type,re===$){if(ie.tag===7){r(I,ie.sibling),N=u(ie,D.props.children),N.return=I,I=N;break e}}else if(ie.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===q&&Vd(re)===ie.type){r(I,ie.sibling),N=u(ie,D.props),N.ref=xo(I,ie,D),N.return=I,I=N;break e}r(I,ie);break}else t(I,ie);ie=ie.sibling}D.type===$?(N=Zn(D.props.children,I.mode,K,D.key),N.return=I,I=N):(K=el(D.type,D.key,D.props,null,I.mode,K),K.ref=xo(I,N,D),K.return=I,I=K)}return g(I);case V:e:{for(ie=D.key;N!==null;){if(N.key===ie)if(N.tag===4&&N.stateNode.containerInfo===D.containerInfo&&N.stateNode.implementation===D.implementation){r(I,N.sibling),N=u(N,D.children||[]),N.return=I,I=N;break e}else{r(I,N);break}else t(I,N);N=N.sibling}N=Xa(D,I.mode,K),N.return=I,I=N}return g(I);case q:return ie=D._init,je(I,N,ie(D._payload),K)}if(Yr(D))return ee(I,N,D,K);if(j(D))return te(I,N,D,K);Ai(I,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,N!==null&&N.tag===6?(r(I,N.sibling),N=u(N,D),N.return=I,I=N):(r(I,N),N=Ya(D,I.mode,K),N.return=I,I=N),g(I)):r(I,N)}return je}var Cr=Kd(!0),Gd=Kd(!1),Mi=yn(null),Ii=null,Er=null,oa=null;function ia(){oa=Er=Ii=null}function la(e){var t=Mi.current;ke(Mi),e._currentValue=t}function sa(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function Pr(e,t){Ii=e,oa=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(lt=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(Ii===null)throw Error(o(308));Er=e,Ii.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Wn=null;function aa(e){Wn===null?Wn=[e]:Wn.push(e)}function Yd(e,t,r,l){var u=t.interleaved;return u===null?(r.next=r,aa(t)):(r.next=u.next,u.next=r),t.interleaved=r,en(e,l)}function en(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Sn=!1;function ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ye&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,en(e,r)}return u=l.interleaved,u===null?(t.next=t,aa(l)):(t.next=u.next,u.next=t),l.interleaved=t,en(e,r)}function Di(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Es(e,r)}}function Qd(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var u=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var g={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?u=d=g:d=d.next=g,r=r.next}while(r!==null);d===null?u=d=t:d=d.next=t}else u=d=t;r={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:l.shared,effects:l.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Oi(e,t,r,l){var u=e.updateQueue;Sn=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,R=u.shared.pending;if(R!==null){u.shared.pending=null;var _=R,O=_.next;_.next=null,g===null?d=O:g.next=O,g=_;var U=e.alternate;U!==null&&(U=U.updateQueue,R=U.lastBaseUpdate,R!==g&&(R===null?U.firstBaseUpdate=O:R.next=O,U.lastBaseUpdate=_))}if(d!==null){var H=u.baseState;g=0,U=O=_=null,R=d;do{var B=R.lane,X=R.eventTime;if((l&B)===B){U!==null&&(U=U.next={eventTime:X,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ee=e,te=R;switch(B=t,X=r,te.tag){case 1:if(ee=te.payload,typeof ee=="function"){H=ee.call(X,H,B);break e}H=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=te.payload,B=typeof ee=="function"?ee.call(X,H,B):ee,B==null)break e;H=W({},H,B);break e;case 2:Sn=!0}}R.callback!==null&&R.lane!==0&&(e.flags|=64,B=u.effects,B===null?u.effects=[R]:B.push(R))}else X={eventTime:X,lane:B,tag:R.tag,payload:R.payload,callback:R.callback,next:null},U===null?(O=U=X,_=H):U=U.next=X,g|=B;if(R=R.next,R===null){if(R=u.shared.pending,R===null)break;B=R,R=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);if(U===null&&(_=H),u.baseState=_,u.firstBaseUpdate=O,u.lastBaseUpdate=U,t=u.shared.interleaved,t!==null){u=t;do g|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);Gn|=g,e.lanes=g,e.memoizedState=H}}function Zd(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],u=l.callback;if(u!==null){if(l.callback=null,l=r,typeof u!="function")throw Error(o(191,u));u.call(l)}}}var So={},$t=yn(So),Co=yn(So),Eo=yn(So);function Vn(e){if(e===So)throw Error(o(174));return e}function ca(e,t){switch(Re(Eo,t),Re(Co,e),Re($t,So),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ds(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ds(t,e)}ke($t),Re($t,t)}function Rr(){ke($t),ke(Co),ke(Eo)}function qd(e){Vn(Eo.current);var t=Vn($t.current),r=ds(t,e.type);t!==r&&(Re(Co,e),Re($t,r))}function da(e){Co.current===e&&(ke($t),ke(Co))}var Me=yn(0);function Li(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=[];function pa(){for(var e=0;e<fa.length;e++)fa[e]._workInProgressVersionPrimary=null;fa.length=0}var bi=L.ReactCurrentDispatcher,va=L.ReactCurrentBatchConfig,Kn=0,Ie=null,Be=null,We=null,ji=!1,Po=!1,Ro=0,Nw=0;function Qe(){throw Error(o(321))}function ma(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!_t(e[r],t[r]))return!1;return!0}function ha(e,t,r,l,u,d){if(Kn=d,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bi.current=e===null||e.memoizedState===null?Dw:Ow,e=r(l,u),Po){d=0;do{if(Po=!1,Ro=0,25<=d)throw Error(o(301));d+=1,We=Be=null,t.updateQueue=null,bi.current=Lw,e=r(l,u)}while(Po)}if(bi.current=zi,t=Be!==null&&Be.next!==null,Kn=0,We=Be=Ie=null,ji=!1,t)throw Error(o(300));return e}function ga(){var e=Ro!==0;return Ro=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Ie.memoizedState=We=e:We=We.next=e,We}function St(){if(Be===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=We===null?Ie.memoizedState:We.next;if(t!==null)We=t,Be=e;else{if(e===null)throw Error(o(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},We===null?Ie.memoizedState=We=e:We=We.next=e}return We}function To(e,t){return typeof t=="function"?t(e):t}function ya(e){var t=St(),r=t.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=e;var l=Be,u=l.baseQueue,d=r.pending;if(d!==null){if(u!==null){var g=u.next;u.next=d.next,d.next=g}l.baseQueue=u=d,r.pending=null}if(u!==null){d=u.next,l=l.baseState;var R=g=null,_=null,O=d;do{var U=O.lane;if((Kn&U)===U)_!==null&&(_=_.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),l=O.hasEagerState?O.eagerState:e(l,O.action);else{var H={lane:U,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};_===null?(R=_=H,g=l):_=_.next=H,Ie.lanes|=U,Gn|=U}O=O.next}while(O!==null&&O!==d);_===null?g=l:_.next=R,_t(l,t.memoizedState)||(lt=!0),t.memoizedState=l,t.baseState=g,t.baseQueue=_,r.lastRenderedState=l}if(e=r.interleaved,e!==null){u=e;do d=u.lane,Ie.lanes|=d,Gn|=d,u=u.next;while(u!==e)}else u===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=St(),r=t.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=e;var l=r.dispatch,u=r.pending,d=t.memoizedState;if(u!==null){r.pending=null;var g=u=u.next;do d=e(d,g.action),g=g.next;while(g!==u);_t(d,t.memoizedState)||(lt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,l]}function Jd(){}function ef(e,t){var r=Ie,l=St(),u=t(),d=!_t(l.memoizedState,u);if(d&&(l.memoizedState=u,lt=!0),l=l.queue,xa(rf.bind(null,r,l,e),[e]),l.getSnapshot!==t||d||We!==null&&We.memoizedState.tag&1){if(r.flags|=2048,_o(9,nf.bind(null,r,l,u,t),void 0,null),Ve===null)throw Error(o(349));(Kn&30)!==0||tf(r,t,u)}return u}function tf(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function nf(e,t,r,l){t.value=r,t.getSnapshot=l,of(t)&&lf(e)}function rf(e,t,r){return r(function(){of(t)&&lf(e)})}function of(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_t(e,r)}catch{return!0}}function lf(e){var t=en(e,1);t!==null&&It(t,e,1,-1)}function sf(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:e},t.queue=e,e=e.dispatch=Iw.bind(null,Ie,e),[t.memoizedState,e]}function _o(e,t,r,l){return e={tag:e,create:t,destroy:r,deps:l,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e)),e}function af(){return St().memoizedState}function Fi(e,t,r,l){var u=zt();Ie.flags|=e,u.memoizedState=_o(1|t,r,void 0,l===void 0?null:l)}function $i(e,t,r,l){var u=St();l=l===void 0?null:l;var d=void 0;if(Be!==null){var g=Be.memoizedState;if(d=g.destroy,l!==null&&ma(l,g.deps)){u.memoizedState=_o(t,r,d,l);return}}Ie.flags|=e,u.memoizedState=_o(1|t,r,d,l)}function uf(e,t){return Fi(8390656,8,e,t)}function xa(e,t){return $i(2048,8,e,t)}function cf(e,t){return $i(4,2,e,t)}function df(e,t){return $i(4,4,e,t)}function ff(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pf(e,t,r){return r=r!=null?r.concat([e]):null,$i(4,4,ff.bind(null,t,e),r)}function Sa(){}function vf(e,t){var r=St();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&ma(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function mf(e,t){var r=St();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&ma(t,l[1])?l[0]:(e=e(),r.memoizedState=[e,t],e)}function hf(e,t,r){return(Kn&21)===0?(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=r):(_t(r,t)||(r=Vc(),Ie.lanes|=r,Gn|=r,e.baseState=!0),t)}function Aw(e,t){var r=Ee;Ee=r!==0&&4>r?r:4,e(!0);var l=va.transition;va.transition={};try{e(!1),t()}finally{Ee=r,va.transition=l}}function gf(){return St().memoizedState}function Mw(e,t,r){var l=Tn(e);if(r={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null},yf(e))wf(t,r);else if(r=Yd(e,t,r,l),r!==null){var u=tt();It(r,e,l,u),xf(r,t,l)}}function Iw(e,t,r){var l=Tn(e),u={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null};if(yf(e))wf(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,R=d(g,r);if(u.hasEagerState=!0,u.eagerState=R,_t(R,g)){var _=t.interleaved;_===null?(u.next=u,aa(t)):(u.next=_.next,_.next=u),t.interleaved=u;return}}catch{}finally{}r=Yd(e,t,u,l),r!==null&&(u=tt(),It(r,e,l,u),xf(r,t,l))}}function yf(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function wf(e,t){Po=ji=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function xf(e,t,r){if((r&4194240)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Es(e,r)}}var zi={readContext:xt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Dw={readContext:xt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:uf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Fi(4194308,4,ff.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var r=zt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var l=zt();return t=r!==void 0?r(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=Mw.bind(null,Ie,e),[l.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:sf,useDebugValue:Sa,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=sf(!1),t=e[0];return e=Aw.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var l=Ie,u=zt();if(Ne){if(r===void 0)throw Error(o(407));r=r()}else{if(r=t(),Ve===null)throw Error(o(349));(Kn&30)!==0||tf(l,t,r)}u.memoizedState=r;var d={value:r,getSnapshot:t};return u.queue=d,uf(rf.bind(null,l,d,e),[e]),l.flags|=2048,_o(9,nf.bind(null,l,d,r,t),void 0,null),r},useId:function(){var e=zt(),t=Ve.identifierPrefix;if(Ne){var r=Jt,l=qt;r=(l&~(1<<32-Tt(l)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ro++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Nw++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ow={readContext:xt,useCallback:vf,useContext:xt,useEffect:xa,useImperativeHandle:pf,useInsertionEffect:cf,useLayoutEffect:df,useMemo:mf,useReducer:ya,useRef:af,useState:function(){return ya(To)},useDebugValue:Sa,useDeferredValue:function(e){var t=St();return hf(t,Be.memoizedState,e)},useTransition:function(){var e=ya(To)[0],t=St().memoizedState;return[e,t]},useMutableSource:Jd,useSyncExternalStore:ef,useId:gf,unstable_isNewReconciler:!1},Lw={readContext:xt,useCallback:vf,useContext:xt,useEffect:xa,useImperativeHandle:pf,useInsertionEffect:cf,useLayoutEffect:df,useMemo:mf,useReducer:wa,useRef:af,useState:function(){return wa(To)},useDebugValue:Sa,useDeferredValue:function(e){var t=St();return Be===null?t.memoizedState=e:hf(t,Be.memoizedState,e)},useTransition:function(){var e=wa(To)[0],t=St().memoizedState;return[e,t]},useMutableSource:Jd,useSyncExternalStore:ef,useId:gf,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Ca(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:W({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bi={isMounted:function(e){return(e=e._reactInternals)?$n(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var l=tt(),u=Tn(e),d=tn(l,u);d.payload=t,r!=null&&(d.callback=r),t=Cn(e,d,u),t!==null&&(It(t,e,u,l),Di(t,e,u))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=tt(),u=Tn(e),d=tn(l,u);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=Cn(e,d,u),t!==null&&(It(t,e,u,l),Di(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tt(),l=Tn(e),u=tn(r,l);u.tag=2,t!=null&&(u.callback=t),t=Cn(e,u,l),t!==null&&(It(t,e,l,r),Di(t,e,l))}};function Sf(e,t,r,l,u,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,g):t.prototype&&t.prototype.isPureReactComponent?!po(r,l)||!po(u,d):!0}function Cf(e,t,r){var l=!1,u=wn,d=t.contextType;return typeof d=="object"&&d!==null?d=xt(d):(u=it(t)?Bn:Xe.current,l=t.contextTypes,d=(l=l!=null)?yr(e,u):wn),t=new t(r,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bi,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=d),t}function Ef(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&Bi.enqueueReplaceState(t,t.state,null)}function Ea(e,t,r,l){var u=e.stateNode;u.props=r,u.state=e.memoizedState,u.refs={},ua(e);var d=t.contextType;typeof d=="object"&&d!==null?u.context=xt(d):(d=it(t)?Bn:Xe.current,u.context=yr(e,d)),u.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Ca(e,t,d,r),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&Bi.enqueueReplaceState(u,u.state,null),Oi(e,r,u,l),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Tr(e,t){try{var r="",l=t;do r+=Je(l),l=l.return;while(l);var u=r}catch(d){u=`
Error generating stack: `+d.message+`
`+d.stack}return{value:e,source:t,stack:u,digest:null}}function Pa(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ra(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var bw=typeof WeakMap=="function"?WeakMap:Map;function Pf(e,t,r){r=tn(-1,r),r.tag=3,r.payload={element:null};var l=t.value;return r.callback=function(){Yi||(Yi=!0,za=l),Ra(e,t)},r}function Rf(e,t,r){r=tn(-1,r),r.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var u=t.value;r.payload=function(){return l(u)},r.callback=function(){Ra(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){Ra(e,t),typeof l!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),r}function Tf(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new bw;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(r)||(u.add(r),e=Qw.bind(null,e,t,r),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kf(e,t,r,l,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=tn(-1,1),t.tag=2,Cn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var jw=L.ReactCurrentOwner,lt=!1;function et(e,t,r,l){t.child=e===null?Gd(t,null,r,l):Cr(t,e.child,r,l)}function Nf(e,t,r,l,u){r=r.render;var d=t.ref;return Pr(t,u),l=ha(e,t,r,l,d,u),r=ga(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,nn(e,t,u)):(Ne&&r&&Js(t),t.flags|=1,et(e,t,l,u),t.child)}function Af(e,t,r,l,u){if(e===null){var d=r.type;return typeof d=="function"&&!Ga(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Mf(e,t,d,l,u)):(e=el(r.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&u)===0){var g=d.memoizedProps;if(r=r.compare,r=r!==null?r:po,r(g,l)&&e.ref===t.ref)return nn(e,t,u)}return t.flags|=1,e=kn(d,l),e.ref=t.ref,e.return=t,t.child=e}function Mf(e,t,r,l,u){if(e!==null){var d=e.memoizedProps;if(po(d,l)&&e.ref===t.ref)if(lt=!1,t.pendingProps=l=d,(e.lanes&u)!==0)(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,nn(e,t,u)}return Ta(e,t,r,l,u)}function If(e,t,r){var l=t.pendingProps,u=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(kr,vt),vt|=r;else{if((r&1073741824)===0)return e=d!==null?d.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(kr,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=d!==null?d.baseLanes:r,Re(kr,vt),vt|=l}else d!==null?(l=d.baseLanes|r,t.memoizedState=null):l=r,Re(kr,vt),vt|=l;return et(e,t,u,r),t.child}function Df(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ta(e,t,r,l,u){var d=it(r)?Bn:Xe.current;return d=yr(t,d),Pr(t,u),r=ha(e,t,r,l,d,u),l=ga(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,nn(e,t,u)):(Ne&&l&&Js(t),t.flags|=1,et(e,t,r,u),t.child)}function Of(e,t,r,l,u){if(it(r)){var d=!0;Ri(t)}else d=!1;if(Pr(t,u),t.stateNode===null)Hi(e,t),Cf(t,r,l),Ea(t,r,l,u),l=!0;else if(e===null){var g=t.stateNode,R=t.memoizedProps;g.props=R;var _=g.context,O=r.contextType;typeof O=="object"&&O!==null?O=xt(O):(O=it(r)?Bn:Xe.current,O=yr(t,O));var U=r.getDerivedStateFromProps,H=typeof U=="function"||typeof g.getSnapshotBeforeUpdate=="function";H||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R!==l||_!==O)&&Ef(t,g,l,O),Sn=!1;var B=t.memoizedState;g.state=B,Oi(t,l,g,u),_=t.memoizedState,R!==l||B!==_||ot.current||Sn?(typeof U=="function"&&(Ca(t,r,U,l),_=t.memoizedState),(R=Sn||Sf(t,r,R,l,B,_,O))?(H||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=_),g.props=l,g.state=_,g.context=O,l=R):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{g=t.stateNode,Xd(e,t),R=t.memoizedProps,O=t.type===t.elementType?R:Nt(t.type,R),g.props=O,H=t.pendingProps,B=g.context,_=r.contextType,typeof _=="object"&&_!==null?_=xt(_):(_=it(r)?Bn:Xe.current,_=yr(t,_));var X=r.getDerivedStateFromProps;(U=typeof X=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R!==H||B!==_)&&Ef(t,g,l,_),Sn=!1,B=t.memoizedState,g.state=B,Oi(t,l,g,u);var ee=t.memoizedState;R!==H||B!==ee||ot.current||Sn?(typeof X=="function"&&(Ca(t,r,X,l),ee=t.memoizedState),(O=Sn||Sf(t,r,O,l,B,ee,_)||!1)?(U||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,ee,_),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,ee,_)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||R===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=ee),g.props=l,g.state=ee,g.context=_,l=O):(typeof g.componentDidUpdate!="function"||R===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return _a(e,t,r,l,d,u)}function _a(e,t,r,l,u,d){Df(e,t);var g=(t.flags&128)!==0;if(!l&&!g)return u&&Fd(t,r,!1),nn(e,t,d);l=t.stateNode,jw.current=t;var R=g&&typeof r.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&g?(t.child=Cr(t,e.child,null,d),t.child=Cr(t,null,R,d)):et(e,t,R,d),t.memoizedState=l.state,u&&Fd(t,r,!0),t.child}function Lf(e){var t=e.stateNode;t.pendingContext?bd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bd(e,t.context,!1),ca(e,t.containerInfo)}function bf(e,t,r,l,u){return Sr(),ra(u),t.flags|=256,et(e,t,r,l),t.child}var ka={dehydrated:null,treeContext:null,retryLane:0};function Na(e){return{baseLanes:e,cachePool:null,transitions:null}}function jf(e,t,r){var l=t.pendingProps,u=Me.current,d=!1,g=(t.flags&128)!==0,R;if((R=g)||(R=e!==null&&e.memoizedState===null?!1:(u&2)!==0),R?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),Re(Me,u&1),e===null)return na(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=l.children,e=l.fallback,d?(l=t.mode,d=t.child,g={mode:"hidden",children:g},(l&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=tl(g,l,0,null),e=Zn(e,l,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Na(r),t.memoizedState=ka,e):Aa(t,g));if(u=e.memoizedState,u!==null&&(R=u.dehydrated,R!==null))return Fw(e,t,g,l,R,u,r);if(d){d=l.fallback,g=t.mode,u=e.child,R=u.sibling;var _={mode:"hidden",children:l.children};return(g&1)===0&&t.child!==u?(l=t.child,l.childLanes=0,l.pendingProps=_,t.deletions=null):(l=kn(u,_),l.subtreeFlags=u.subtreeFlags&14680064),R!==null?d=kn(R,d):(d=Zn(d,g,r,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,l=d,d=t.child,g=e.child.memoizedState,g=g===null?Na(r):{baseLanes:g.baseLanes|r,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~r,t.memoizedState=ka,l}return d=e.child,e=d.sibling,l=kn(d,{mode:"visible",children:l.children}),(t.mode&1)===0&&(l.lanes=r),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Aa(e,t){return t=tl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ui(e,t,r,l){return l!==null&&ra(l),Cr(t,e.child,null,r),e=Aa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fw(e,t,r,l,u,d,g){if(r)return t.flags&256?(t.flags&=-257,l=Pa(Error(o(422))),Ui(e,t,g,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=l.fallback,u=t.mode,l=tl({mode:"visible",children:l.children},u,0,null),d=Zn(d,u,g,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,(t.mode&1)!==0&&Cr(t,e.child,null,g),t.child.memoizedState=Na(g),t.memoizedState=ka,d);if((t.mode&1)===0)return Ui(e,t,g,null);if(u.data==="$!"){if(l=u.nextSibling&&u.nextSibling.dataset,l)var R=l.dgst;return l=R,d=Error(o(419)),l=Pa(d,l,void 0),Ui(e,t,g,l)}if(R=(g&e.childLanes)!==0,lt||R){if(l=Ve,l!==null){switch(g&-g){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(l.suspendedLanes|g))!==0?0:u,u!==0&&u!==d.retryLane&&(d.retryLane=u,en(e,u),It(l,e,u,-1))}return Ka(),l=Pa(Error(o(421))),Ui(e,t,g,l)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Zw.bind(null,e),u._reactRetry=t,null):(e=d.treeContext,pt=gn(u.nextSibling),ft=t,Ne=!0,kt=null,e!==null&&(yt[wt++]=qt,yt[wt++]=Jt,yt[wt++]=Un,qt=e.id,Jt=e.overflow,Un=t),t=Aa(t,l.children),t.flags|=4096,t)}function Ff(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),sa(e.return,t,r)}function Ma(e,t,r,l,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=r,d.tailMode=u)}function $f(e,t,r){var l=t.pendingProps,u=l.revealOrder,d=l.tail;if(et(e,t,l.children,r),l=Me.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ff(e,r,t);else if(e.tag===19)Ff(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(Re(Me,l),(t.mode&1)===0)t.memoizedState=null;else switch(u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&Li(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),Ma(t,!1,u,r,d);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Li(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}Ma(t,!0,r,null,d);break;case"together":Ma(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,r=kn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=kn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function $w(e,t,r){switch(t.tag){case 3:Lf(t),Sr();break;case 5:qd(t);break;case 1:it(t.type)&&Ri(t);break;case 4:ca(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,u=t.memoizedProps.value;Re(Mi,l._currentValue),l._currentValue=u;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Re(Me,Me.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?jf(e,t,r):(Re(Me,Me.current&1),e=nn(e,t,r),e!==null?e.sibling:null);Re(Me,Me.current&1);break;case 19:if(l=(r&t.childLanes)!==0,(e.flags&128)!==0){if(l)return $f(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Re(Me,Me.current),l)break;return null;case 22:case 23:return t.lanes=0,If(e,t,r)}return nn(e,t,r)}var zf,Ia,Bf,Uf;zf=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ia=function(){},Bf=function(e,t,r,l){var u=e.memoizedProps;if(u!==l){e=t.stateNode,Vn($t.current);var d=null;switch(r){case"input":u=rt(e,u),l=rt(e,l),d=[];break;case"select":u=W({},u,{value:void 0}),l=W({},l,{value:void 0}),d=[];break;case"textarea":u=cs(e,u),l=cs(e,l),d=[];break;default:typeof u.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Ci)}fs(r,l);var g;r=null;for(O in u)if(!l.hasOwnProperty(O)&&u.hasOwnProperty(O)&&u[O]!=null)if(O==="style"){var R=u[O];for(g in R)R.hasOwnProperty(g)&&(r||(r={}),r[g]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(a.hasOwnProperty(O)?d||(d=[]):(d=d||[]).push(O,null));for(O in l){var _=l[O];if(R=u!=null?u[O]:void 0,l.hasOwnProperty(O)&&_!==R&&(_!=null||R!=null))if(O==="style")if(R){for(g in R)!R.hasOwnProperty(g)||_&&_.hasOwnProperty(g)||(r||(r={}),r[g]="");for(g in _)_.hasOwnProperty(g)&&R[g]!==_[g]&&(r||(r={}),r[g]=_[g])}else r||(d||(d=[]),d.push(O,r)),r=_;else O==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,R=R?R.__html:void 0,_!=null&&R!==_&&(d=d||[]).push(O,_)):O==="children"?typeof _!="string"&&typeof _!="number"||(d=d||[]).push(O,""+_):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(a.hasOwnProperty(O)?(_!=null&&O==="onScroll"&&_e("scroll",e),d||R===_||(d=[])):(d=d||[]).push(O,_))}r&&(d=d||[]).push("style",r);var O=d;(t.updateQueue=O)&&(t.flags|=4)}},Uf=function(e,t,r,l){r!==l&&(t.flags|=4)};function ko(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags&14680064,l|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function zw(e,t,r){var l=t.pendingProps;switch(ea(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return it(t.type)&&Pi(),Ze(t),null;case 3:return l=t.stateNode,Rr(),ke(ot),ke(Xe),pa(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ni(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kt!==null&&(Ha(kt),kt=null))),Ia(e,t),Ze(t),null;case 5:da(t);var u=Vn(Eo.current);if(r=t.type,e!==null&&t.stateNode!=null)Bf(e,t,r,l,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ze(t),null}if(e=Vn($t.current),Ni(t)){l=t.stateNode,r=t.type;var d=t.memoizedProps;switch(l[Ft]=t,l[yo]=d,e=(t.mode&1)!==0,r){case"dialog":_e("cancel",l),_e("close",l);break;case"iframe":case"object":case"embed":_e("load",l);break;case"video":case"audio":for(u=0;u<mo.length;u++)_e(mo[u],l);break;case"source":_e("error",l);break;case"img":case"image":case"link":_e("error",l),_e("load",l);break;case"details":_e("toggle",l);break;case"input":an(l,d),_e("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!d.multiple},_e("invalid",l);break;case"textarea":Pc(l,d),_e("invalid",l)}fs(r,d),u=null;for(var g in d)if(d.hasOwnProperty(g)){var R=d[g];g==="children"?typeof R=="string"?l.textContent!==R&&(d.suppressHydrationWarning!==!0&&Si(l.textContent,R,e),u=["children",R]):typeof R=="number"&&l.textContent!==""+R&&(d.suppressHydrationWarning!==!0&&Si(l.textContent,R,e),u=["children",""+R]):a.hasOwnProperty(g)&&R!=null&&g==="onScroll"&&_e("scroll",l)}switch(r){case"input":ge(l),Jo(l,d,!0);break;case"textarea":ge(l),Tc(l);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(l.onclick=Ci)}l=u,t.updateQueue=l,l!==null&&(t.flags|=4)}else{g=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_c(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=g.createElement(r,{is:l.is}):(e=g.createElement(r),r==="select"&&(g=e,l.multiple?g.multiple=!0:l.size&&(g.size=l.size))):e=g.createElementNS(e,r),e[Ft]=t,e[yo]=l,zf(e,t,!1,!1),t.stateNode=e;e:{switch(g=ps(r,l),r){case"dialog":_e("cancel",e),_e("close",e),u=l;break;case"iframe":case"object":case"embed":_e("load",e),u=l;break;case"video":case"audio":for(u=0;u<mo.length;u++)_e(mo[u],e);u=l;break;case"source":_e("error",e),u=l;break;case"img":case"image":case"link":_e("error",e),_e("load",e),u=l;break;case"details":_e("toggle",e),u=l;break;case"input":an(e,l),u=rt(e,l),_e("invalid",e);break;case"option":u=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},u=W({},l,{value:void 0}),_e("invalid",e);break;case"textarea":Pc(e,l),u=cs(e,l),_e("invalid",e);break;default:u=l}fs(r,u),R=u;for(d in R)if(R.hasOwnProperty(d)){var _=R[d];d==="style"?Ac(e,_):d==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,_!=null&&kc(e,_)):d==="children"?typeof _=="string"?(r!=="textarea"||_!=="")&&Xr(e,_):typeof _=="number"&&Xr(e,""+_):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(a.hasOwnProperty(d)?_!=null&&d==="onScroll"&&_e("scroll",e):_!=null&&M(e,d,_,g))}switch(r){case"input":ge(e),Jo(e,l,!1);break;case"textarea":ge(e),Tc(e);break;case"option":l.value!=null&&e.setAttribute("value",""+he(l.value));break;case"select":e.multiple=!!l.multiple,d=l.value,d!=null?lr(e,!!l.multiple,d,!1):l.defaultValue!=null&&lr(e,!!l.multiple,l.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Ci)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)Uf(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(r=Vn(Eo.current),Vn($t.current),Ni(t)){if(l=t.stateNode,r=t.memoizedProps,l[Ft]=t,(d=l.nodeValue!==r)&&(e=ft,e!==null))switch(e.tag){case 3:Si(l.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Si(l.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else l=(r.nodeType===9?r:r.ownerDocument).createTextNode(l),l[Ft]=t,t.stateNode=l}return Ze(t),null;case 13:if(ke(Me),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&pt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wd(),Sr(),t.flags|=98560,d=!1;else if(d=Ni(t),l!==null&&l.dehydrated!==null){if(e===null){if(!d)throw Error(o(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[Ft]=t}else Sr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),d=!1}else kt!==null&&(Ha(kt),kt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Me.current&1)!==0?Ue===0&&(Ue=3):Ka())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return Rr(),Ia(e,t),e===null&&ho(t.stateNode.containerInfo),Ze(t),null;case 10:return la(t.type._context),Ze(t),null;case 17:return it(t.type)&&Pi(),Ze(t),null;case 19:if(ke(Me),d=t.memoizedState,d===null)return Ze(t),null;if(l=(t.flags&128)!==0,g=d.rendering,g===null)if(l)ko(d,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=Li(e),g!==null){for(t.flags|=128,ko(d,!1),l=g.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;r!==null;)d=r,e=l,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Re(Me,Me.current&1|2),t.child}e=e.sibling}d.tail!==null&&be()>Nr&&(t.flags|=128,l=!0,ko(d,!1),t.lanes=4194304)}else{if(!l)if(e=Li(g),e!==null){if(t.flags|=128,l=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ko(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Ne)return Ze(t),null}else 2*be()-d.renderingStartTime>Nr&&r!==1073741824&&(t.flags|=128,l=!0,ko(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(r=d.last,r!==null?r.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=be(),t.sibling=null,r=Me.current,Re(Me,l?r&1|2:r&1),t):(Ze(t),null);case 22:case 23:return Va(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&(t.mode&1)!==0?(vt&1073741824)!==0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Bw(e,t){switch(ea(t),t.tag){case 1:return it(t.type)&&Pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),ke(ot),ke(Xe),pa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return da(t),null;case 13:if(ke(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Me),null;case 4:return Rr(),null;case 10:return la(t.type._context),null;case 22:case 23:return Va(),null;case 24:return null;default:return null}}var Wi=!1,qe=!1,Uw=typeof WeakSet=="function"?WeakSet:Set,J=null;function _r(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(l){De(e,t,l)}else r.current=null}function Da(e,t,r){try{r()}catch(l){De(e,t,l)}}var Hf=!1;function Hw(e,t){if(Vs=ci,e=xd(),js(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var g=0,R=-1,_=-1,O=0,U=0,H=e,B=null;t:for(;;){for(var X;H!==r||u!==0&&H.nodeType!==3||(R=g+u),H!==d||l!==0&&H.nodeType!==3||(_=g+l),H.nodeType===3&&(g+=H.nodeValue.length),(X=H.firstChild)!==null;)B=H,H=X;for(;;){if(H===e)break t;if(B===r&&++O===u&&(R=g),B===d&&++U===l&&(_=g),(X=H.nextSibling)!==null)break;H=B,B=H.parentNode}H=X}r=R===-1||_===-1?null:{start:R,end:_}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ks={focusedElem:e,selectionRange:r},ci=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var te=ee.memoizedProps,je=ee.memoizedState,I=t.stateNode,N=I.getSnapshotBeforeUpdate(t.elementType===t.type?te:Nt(t.type,te),je);I.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(K){De(t,t.return,K)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return ee=Hf,Hf=!1,ee}function No(e,t,r){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var u=l=l.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&Da(t,r,d)}u=u.next}while(u!==l)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var l=r.create;r.destroy=l()}r=r.next}while(r!==t)}}function Oa(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[yo],delete t[Qs],delete t[Rw],delete t[Tw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vf(e){return e.tag===5||e.tag===3||e.tag===4}function Kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function La(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ci));else if(l!==4&&(e=e.child,e!==null))for(La(e,t,r),e=e.sibling;e!==null;)La(e,t,r),e=e.sibling}function ba(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(ba(e,t,r),e=e.sibling;e!==null;)ba(e,t,r),e=e.sibling}var Ge=null,At=!1;function En(e,t,r){for(r=r.child;r!==null;)Gf(e,t,r),r=r.sibling}function Gf(e,t,r){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(oi,r)}catch{}switch(r.tag){case 5:qe||_r(r,t);case 6:var l=Ge,u=At;Ge=null,En(e,t,r),Ge=l,At=u,Ge!==null&&(At?(e=Ge,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ge.removeChild(r.stateNode));break;case 18:Ge!==null&&(At?(e=Ge,r=r.stateNode,e.nodeType===8?Xs(e.parentNode,r):e.nodeType===1&&Xs(e,r),lo(e)):Xs(Ge,r.stateNode));break;case 4:l=Ge,u=At,Ge=r.stateNode.containerInfo,At=!0,En(e,t,r),Ge=l,At=u;break;case 0:case 11:case 14:case 15:if(!qe&&(l=r.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){u=l=l.next;do{var d=u,g=d.destroy;d=d.tag,g!==void 0&&((d&2)!==0||(d&4)!==0)&&Da(r,t,g),u=u.next}while(u!==l)}En(e,t,r);break;case 1:if(!qe&&(_r(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=r.memoizedProps,l.state=r.memoizedState,l.componentWillUnmount()}catch(R){De(r,t,R)}En(e,t,r);break;case 21:En(e,t,r);break;case 22:r.mode&1?(qe=(l=qe)||r.memoizedState!==null,En(e,t,r),qe=l):En(e,t,r);break;default:En(e,t,r)}}function Yf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Uw),t.forEach(function(l){var u=qw.bind(null,e,l);r.has(l)||(r.add(l),l.then(u,u))})}}function Mt(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var u=r[l];try{var d=e,g=t,R=g;e:for(;R!==null;){switch(R.tag){case 5:Ge=R.stateNode,At=!1;break e;case 3:Ge=R.stateNode.containerInfo,At=!0;break e;case 4:Ge=R.stateNode.containerInfo,At=!0;break e}R=R.return}if(Ge===null)throw Error(o(160));Gf(d,g,u),Ge=null,At=!1;var _=u.alternate;_!==null&&(_.return=null),u.return=null}catch(O){De(u,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xf(t,e),t=t.sibling}function Xf(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Bt(e),l&4){try{No(3,e,e.return),Vi(3,e)}catch(te){De(e,e.return,te)}try{No(5,e,e.return)}catch(te){De(e,e.return,te)}}break;case 1:Mt(t,e),Bt(e),l&512&&r!==null&&_r(r,r.return);break;case 5:if(Mt(t,e),Bt(e),l&512&&r!==null&&_r(r,r.return),e.flags&32){var u=e.stateNode;try{Xr(u,"")}catch(te){De(e,e.return,te)}}if(l&4&&(u=e.stateNode,u!=null)){var d=e.memoizedProps,g=r!==null?r.memoizedProps:d,R=e.type,_=e.updateQueue;if(e.updateQueue=null,_!==null)try{R==="input"&&d.type==="radio"&&d.name!=null&&un(u,d),ps(R,g);var O=ps(R,d);for(g=0;g<_.length;g+=2){var U=_[g],H=_[g+1];U==="style"?Ac(u,H):U==="dangerouslySetInnerHTML"?kc(u,H):U==="children"?Xr(u,H):M(u,U,H,O)}switch(R){case"input":Xt(u,d);break;case"textarea":Rc(u,d);break;case"select":var B=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!d.multiple;var X=d.value;X!=null?lr(u,!!d.multiple,X,!1):B!==!!d.multiple&&(d.defaultValue!=null?lr(u,!!d.multiple,d.defaultValue,!0):lr(u,!!d.multiple,d.multiple?[]:"",!1))}u[yo]=d}catch(te){De(e,e.return,te)}}break;case 6:if(Mt(t,e),Bt(e),l&4){if(e.stateNode===null)throw Error(o(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(te){De(e,e.return,te)}}break;case 3:if(Mt(t,e),Bt(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{lo(t.containerInfo)}catch(te){De(e,e.return,te)}break;case 4:Mt(t,e),Bt(e);break;case 13:Mt(t,e),Bt(e),u=e.child,u.flags&8192&&(d=u.memoizedState!==null,u.stateNode.isHidden=d,!d||u.alternate!==null&&u.alternate.memoizedState!==null||($a=be())),l&4&&Yf(e);break;case 22:if(U=r!==null&&r.memoizedState!==null,e.mode&1?(qe=(O=qe)||U,Mt(t,e),qe=O):Mt(t,e),Bt(e),l&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!U&&(e.mode&1)!==0)for(J=e,U=e.child;U!==null;){for(H=J=U;J!==null;){switch(B=J,X=B.child,B.tag){case 0:case 11:case 14:case 15:No(4,B,B.return);break;case 1:_r(B,B.return);var ee=B.stateNode;if(typeof ee.componentWillUnmount=="function"){l=B,r=B.return;try{t=l,ee.props=t.memoizedProps,ee.state=t.memoizedState,ee.componentWillUnmount()}catch(te){De(l,r,te)}}break;case 5:_r(B,B.return);break;case 22:if(B.memoizedState!==null){qf(H);continue}}X!==null?(X.return=B,J=X):qf(H)}U=U.sibling}e:for(U=null,H=e;;){if(H.tag===5){if(U===null){U=H;try{u=H.stateNode,O?(d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(R=H.stateNode,_=H.memoizedProps.style,g=_!=null&&_.hasOwnProperty("display")?_.display:null,R.style.display=Nc("display",g))}catch(te){De(e,e.return,te)}}}else if(H.tag===6){if(U===null)try{H.stateNode.nodeValue=O?"":H.memoizedProps}catch(te){De(e,e.return,te)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===e)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===e)break e;for(;H.sibling===null;){if(H.return===null||H.return===e)break e;U===H&&(U=null),H=H.return}U===H&&(U=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Mt(t,e),Bt(e),l&4&&Yf(e);break;case 21:break;default:Mt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Vf(r)){var l=r;break e}r=r.return}throw Error(o(160))}switch(l.tag){case 5:var u=l.stateNode;l.flags&32&&(Xr(u,""),l.flags&=-33);var d=Kf(e);ba(e,d,u);break;case 3:case 4:var g=l.stateNode.containerInfo,R=Kf(e);La(e,R,g);break;default:throw Error(o(161))}}catch(_){De(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ww(e,t,r){J=e,Qf(e)}function Qf(e,t,r){for(var l=(e.mode&1)!==0;J!==null;){var u=J,d=u.child;if(u.tag===22&&l){var g=u.memoizedState!==null||Wi;if(!g){var R=u.alternate,_=R!==null&&R.memoizedState!==null||qe;R=Wi;var O=qe;if(Wi=g,(qe=_)&&!O)for(J=u;J!==null;)g=J,_=g.child,g.tag===22&&g.memoizedState!==null?Jf(u):_!==null?(_.return=g,J=_):Jf(u);for(;d!==null;)J=d,Qf(d),d=d.sibling;J=u,Wi=R,qe=O}Zf(e)}else(u.subtreeFlags&8772)!==0&&d!==null?(d.return=u,J=d):Zf(e)}}function Zf(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:qe||Vi(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!qe)if(r===null)l.componentDidMount();else{var u=t.elementType===t.type?r.memoizedProps:Nt(t.type,r.memoizedProps);l.componentDidUpdate(u,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Zd(t,d,l);break;case 3:var g=t.updateQueue;if(g!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Zd(t,g,r)}break;case 5:var R=t.stateNode;if(r===null&&t.flags&4){r=R;var _=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":_.autoFocus&&r.focus();break;case"img":_.src&&(r.src=_.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var O=t.alternate;if(O!==null){var U=O.memoizedState;if(U!==null){var H=U.dehydrated;H!==null&&lo(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}qe||t.flags&512&&Oa(t)}catch(B){De(t,t.return,B)}}if(t===e){J=null;break}if(r=t.sibling,r!==null){r.return=t.return,J=r;break}J=t.return}}function qf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var r=t.sibling;if(r!==null){r.return=t.return,J=r;break}J=t.return}}function Jf(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vi(4,t)}catch(_){De(t,r,_)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var u=t.return;try{l.componentDidMount()}catch(_){De(t,u,_)}}var d=t.return;try{Oa(t)}catch(_){De(t,d,_)}break;case 5:var g=t.return;try{Oa(t)}catch(_){De(t,g,_)}}}catch(_){De(t,t.return,_)}if(t===e){J=null;break}var R=t.sibling;if(R!==null){R.return=t.return,J=R;break}J=t.return}}var Vw=Math.ceil,Ki=L.ReactCurrentDispatcher,ja=L.ReactCurrentOwner,Ct=L.ReactCurrentBatchConfig,ye=0,Ve=null,ze=null,Ye=0,vt=0,kr=yn(0),Ue=0,Ao=null,Gn=0,Gi=0,Fa=0,Mo=null,st=null,$a=0,Nr=1/0,rn=null,Yi=!1,za=null,Pn=null,Xi=!1,Rn=null,Qi=0,Io=0,Ba=null,Zi=-1,qi=0;function tt(){return(ye&6)!==0?be():Zi!==-1?Zi:Zi=be()}function Tn(e){return(e.mode&1)===0?1:(ye&2)!==0&&Ye!==0?Ye&-Ye:kw.transition!==null?(qi===0&&(qi=Vc()),qi):(e=Ee,e!==0||(e=window.event,e=e===void 0?16:ed(e.type)),e)}function It(e,t,r,l){if(50<Io)throw Io=0,Ba=null,Error(o(185));to(e,r,l),((ye&2)===0||e!==Ve)&&(e===Ve&&((ye&2)===0&&(Gi|=r),Ue===4&&_n(e,Ye)),at(e,l),r===1&&ye===0&&(t.mode&1)===0&&(Nr=be()+500,Ti&&xn()))}function at(e,t){var r=e.callbackNode;ky(e,t);var l=si(e,e===Ve?Ye:0);if(l===0)r!==null&&Uc(r),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(r!=null&&Uc(r),t===1)e.tag===0?_w(tp.bind(null,e)):$d(tp.bind(null,e)),Ew(function(){(ye&6)===0&&xn()}),r=null;else{switch(Kc(l)){case 1:r=xs;break;case 4:r=Hc;break;case 16:r=ri;break;case 536870912:r=Wc;break;default:r=ri}r=up(r,ep.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ep(e,t){if(Zi=-1,qi=0,(ye&6)!==0)throw Error(o(327));var r=e.callbackNode;if(Ar()&&e.callbackNode!==r)return null;var l=si(e,e===Ve?Ye:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||t)t=Ji(e,l);else{t=l;var u=ye;ye|=2;var d=rp();(Ve!==e||Ye!==t)&&(rn=null,Nr=be()+500,Xn(e,t));do try{Yw();break}catch(R){np(e,R)}while(!0);ia(),Ki.current=d,ye=u,ze!==null?t=0:(Ve=null,Ye=0,t=Ue)}if(t!==0){if(t===2&&(u=Ss(e),u!==0&&(l=u,t=Ua(e,u))),t===1)throw r=Ao,Xn(e,0),_n(e,l),at(e,be()),r;if(t===6)_n(e,l);else{if(u=e.current.alternate,(l&30)===0&&!Kw(u)&&(t=Ji(e,l),t===2&&(d=Ss(e),d!==0&&(l=d,t=Ua(e,d))),t===1))throw r=Ao,Xn(e,0),_n(e,l),at(e,be()),r;switch(e.finishedWork=u,e.finishedLanes=l,t){case 0:case 1:throw Error(o(345));case 2:Qn(e,st,rn);break;case 3:if(_n(e,l),(l&130023424)===l&&(t=$a+500-be(),10<t)){if(si(e,0)!==0)break;if(u=e.suspendedLanes,(u&l)!==l){tt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=Ys(Qn.bind(null,e,st,rn),t);break}Qn(e,st,rn);break;case 4:if(_n(e,l),(l&4194240)===l)break;for(t=e.eventTimes,u=-1;0<l;){var g=31-Tt(l);d=1<<g,g=t[g],g>u&&(u=g),l&=~d}if(l=u,l=be()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Vw(l/1960))-l,10<l){e.timeoutHandle=Ys(Qn.bind(null,e,st,rn),l);break}Qn(e,st,rn);break;case 5:Qn(e,st,rn);break;default:throw Error(o(329))}}}return at(e,be()),e.callbackNode===r?ep.bind(null,e):null}function Ua(e,t){var r=Mo;return e.current.memoizedState.isDehydrated&&(Xn(e,t).flags|=256),e=Ji(e,t),e!==2&&(t=st,st=r,t!==null&&Ha(t)),e}function Ha(e){st===null?st=e:st.push.apply(st,e)}function Kw(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var l=0;l<r.length;l++){var u=r[l],d=u.getSnapshot;u=u.value;try{if(!_t(d(),u))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _n(e,t){for(t&=~Fa,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Tt(t),l=1<<r;e[r]=-1,t&=~l}}function tp(e){if((ye&6)!==0)throw Error(o(327));Ar();var t=si(e,0);if((t&1)===0)return at(e,be()),null;var r=Ji(e,t);if(e.tag!==0&&r===2){var l=Ss(e);l!==0&&(t=l,r=Ua(e,l))}if(r===1)throw r=Ao,Xn(e,0),_n(e,t),at(e,be()),r;if(r===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qn(e,st,rn),at(e,be()),null}function Wa(e,t){var r=ye;ye|=1;try{return e(t)}finally{ye=r,ye===0&&(Nr=be()+500,Ti&&xn())}}function Yn(e){Rn!==null&&Rn.tag===0&&(ye&6)===0&&Ar();var t=ye;ye|=1;var r=Ct.transition,l=Ee;try{if(Ct.transition=null,Ee=1,e)return e()}finally{Ee=l,Ct.transition=r,ye=t,(ye&6)===0&&xn()}}function Va(){vt=kr.current,ke(kr)}function Xn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Cw(r)),ze!==null)for(r=ze.return;r!==null;){var l=r;switch(ea(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Pi();break;case 3:Rr(),ke(ot),ke(Xe),pa();break;case 5:da(l);break;case 4:Rr();break;case 13:ke(Me);break;case 19:ke(Me);break;case 10:la(l.type._context);break;case 22:case 23:Va()}r=r.return}if(Ve=e,ze=e=kn(e.current,null),Ye=vt=t,Ue=0,Ao=null,Fa=Gi=Gn=0,st=Mo=null,Wn!==null){for(t=0;t<Wn.length;t++)if(r=Wn[t],l=r.interleaved,l!==null){r.interleaved=null;var u=l.next,d=r.pending;if(d!==null){var g=d.next;d.next=u,l.next=g}r.pending=l}Wn=null}return e}function np(e,t){do{var r=ze;try{if(ia(),bi.current=zi,ji){for(var l=Ie.memoizedState;l!==null;){var u=l.queue;u!==null&&(u.pending=null),l=l.next}ji=!1}if(Kn=0,We=Be=Ie=null,Po=!1,Ro=0,ja.current=null,r===null||r.return===null){Ue=1,Ao=t,ze=null;break}e:{var d=e,g=r.return,R=r,_=t;if(t=Ye,R.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var O=_,U=R,H=U.tag;if((U.mode&1)===0&&(H===0||H===11||H===15)){var B=U.alternate;B?(U.updateQueue=B.updateQueue,U.memoizedState=B.memoizedState,U.lanes=B.lanes):(U.updateQueue=null,U.memoizedState=null)}var X=_f(g);if(X!==null){X.flags&=-257,kf(X,g,R,d,t),X.mode&1&&Tf(d,O,t),t=X,_=O;var ee=t.updateQueue;if(ee===null){var te=new Set;te.add(_),t.updateQueue=te}else ee.add(_);break e}else{if((t&1)===0){Tf(d,O,t),Ka();break e}_=Error(o(426))}}else if(Ne&&R.mode&1){var je=_f(g);if(je!==null){(je.flags&65536)===0&&(je.flags|=256),kf(je,g,R,d,t),ra(Tr(_,R));break e}}d=_=Tr(_,R),Ue!==4&&(Ue=2),Mo===null?Mo=[d]:Mo.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var I=Pf(d,_,t);Qd(d,I);break e;case 1:R=_;var N=d.type,D=d.stateNode;if((d.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(Pn===null||!Pn.has(D)))){d.flags|=65536,t&=-t,d.lanes|=t;var K=Rf(d,R,t);Qd(d,K);break e}}d=d.return}while(d!==null)}ip(r)}catch(re){t=re,ze===r&&r!==null&&(ze=r=r.return);continue}break}while(!0)}function rp(){var e=Ki.current;return Ki.current=zi,e===null?zi:e}function Ka(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ve===null||(Gn&268435455)===0&&(Gi&268435455)===0||_n(Ve,Ye)}function Ji(e,t){var r=ye;ye|=2;var l=rp();(Ve!==e||Ye!==t)&&(rn=null,Xn(e,t));do try{Gw();break}catch(u){np(e,u)}while(!0);if(ia(),ye=r,Ki.current=l,ze!==null)throw Error(o(261));return Ve=null,Ye=0,Ue}function Gw(){for(;ze!==null;)op(ze)}function Yw(){for(;ze!==null&&!wy();)op(ze)}function op(e){var t=ap(e.alternate,e,vt);e.memoizedProps=e.pendingProps,t===null?ip(e):ze=t,ja.current=null}function ip(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=zw(r,t,vt),r!==null){ze=r;return}}else{if(r=Bw(r,t),r!==null){r.flags&=32767,ze=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,ze=null;return}}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);Ue===0&&(Ue=5)}function Qn(e,t,r){var l=Ee,u=Ct.transition;try{Ct.transition=null,Ee=1,Xw(e,t,r,l)}finally{Ct.transition=u,Ee=l}return null}function Xw(e,t,r,l){do Ar();while(Rn!==null);if((ye&6)!==0)throw Error(o(327));r=e.finishedWork;var u=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var d=r.lanes|r.childLanes;if(Ny(e,d),e===Ve&&(ze=Ve=null,Ye=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Xi||(Xi=!0,up(ri,function(){return Ar(),null})),d=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||d){d=Ct.transition,Ct.transition=null;var g=Ee;Ee=1;var R=ye;ye|=4,ja.current=null,Hw(e,r),Xf(r,e),mw(Ks),ci=!!Vs,Ks=Vs=null,e.current=r,Ww(r),xy(),ye=R,Ee=g,Ct.transition=d}else e.current=r;if(Xi&&(Xi=!1,Rn=e,Qi=u),d=e.pendingLanes,d===0&&(Pn=null),Ey(r.stateNode),at(e,be()),t!==null)for(l=e.onRecoverableError,r=0;r<t.length;r++)u=t[r],l(u.value,{componentStack:u.stack,digest:u.digest});if(Yi)throw Yi=!1,e=za,za=null,e;return(Qi&1)!==0&&e.tag!==0&&Ar(),d=e.pendingLanes,(d&1)!==0?e===Ba?Io++:(Io=0,Ba=e):Io=0,xn(),null}function Ar(){if(Rn!==null){var e=Kc(Qi),t=Ct.transition,r=Ee;try{if(Ct.transition=null,Ee=16>e?16:e,Rn===null)var l=!1;else{if(e=Rn,Rn=null,Qi=0,(ye&6)!==0)throw Error(o(331));var u=ye;for(ye|=4,J=e.current;J!==null;){var d=J,g=d.child;if((J.flags&16)!==0){var R=d.deletions;if(R!==null){for(var _=0;_<R.length;_++){var O=R[_];for(J=O;J!==null;){var U=J;switch(U.tag){case 0:case 11:case 15:No(8,U,d)}var H=U.child;if(H!==null)H.return=U,J=H;else for(;J!==null;){U=J;var B=U.sibling,X=U.return;if(Wf(U),U===O){J=null;break}if(B!==null){B.return=X,J=B;break}J=X}}}var ee=d.alternate;if(ee!==null){var te=ee.child;if(te!==null){ee.child=null;do{var je=te.sibling;te.sibling=null,te=je}while(te!==null)}}J=d}}if((d.subtreeFlags&2064)!==0&&g!==null)g.return=d,J=g;else e:for(;J!==null;){if(d=J,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:No(9,d,d.return)}var I=d.sibling;if(I!==null){I.return=d.return,J=I;break e}J=d.return}}var N=e.current;for(J=N;J!==null;){g=J;var D=g.child;if((g.subtreeFlags&2064)!==0&&D!==null)D.return=g,J=D;else e:for(g=N;J!==null;){if(R=J,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Vi(9,R)}}catch(re){De(R,R.return,re)}if(R===g){J=null;break e}var K=R.sibling;if(K!==null){K.return=R.return,J=K;break e}J=R.return}}if(ye=u,xn(),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(oi,e)}catch{}l=!0}return l}finally{Ee=r,Ct.transition=t}}return!1}function lp(e,t,r){t=Tr(r,t),t=Pf(e,t,1),e=Cn(e,t,1),t=tt(),e!==null&&(to(e,1,t),at(e,t))}function De(e,t,r){if(e.tag===3)lp(e,e,r);else for(;t!==null;){if(t.tag===3){lp(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Pn===null||!Pn.has(l))){e=Tr(r,e),e=Rf(t,e,1),t=Cn(t,e,1),e=tt(),t!==null&&(to(t,1,e),at(t,e));break}}t=t.return}}function Qw(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&r,Ve===e&&(Ye&r)===r&&(Ue===4||Ue===3&&(Ye&130023424)===Ye&&500>be()-$a?Xn(e,0):Fa|=r),at(e,t)}function sp(e,t){t===0&&((e.mode&1)===0?t=1:(t=li,li<<=1,(li&130023424)===0&&(li=4194304)));var r=tt();e=en(e,t),e!==null&&(to(e,t,r),at(e,r))}function Zw(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sp(e,r)}function qw(e,t){var r=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(t),sp(e,r)}var ap;ap=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)lt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return lt=!1,$w(e,t,r);lt=(e.flags&131072)!==0}else lt=!1,Ne&&(t.flags&1048576)!==0&&zd(t,ki,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Hi(e,t),e=t.pendingProps;var u=yr(t,Xe.current);Pr(t,r),u=ha(null,t,l,e,u,r);var d=ga();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(l)?(d=!0,Ri(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,ua(t),u.updater=Bi,t.stateNode=u,u._reactInternals=t,Ea(t,l,e,r),t=_a(null,t,l,!0,d,r)):(t.tag=0,Ne&&d&&Js(t),et(null,t,u,r),t=t.child),t;case 16:l=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,u=l._init,l=u(l._payload),t.type=l,u=t.tag=ex(l),e=Nt(l,e),u){case 0:t=Ta(null,t,l,e,r);break e;case 1:t=Of(null,t,l,e,r);break e;case 11:t=Nf(null,t,l,e,r);break e;case 14:t=Af(null,t,l,Nt(l.type,e),r);break e}throw Error(o(306,l,""))}return t;case 0:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),Ta(e,t,l,u,r);case 1:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),Of(e,t,l,u,r);case 3:e:{if(Lf(t),e===null)throw Error(o(387));l=t.pendingProps,d=t.memoizedState,u=d.element,Xd(e,t),Oi(t,l,null,r);var g=t.memoizedState;if(l=g.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=Tr(Error(o(423)),t),t=bf(e,t,l,r,u);break e}else if(l!==u){u=Tr(Error(o(424)),t),t=bf(e,t,l,r,u);break e}else for(pt=gn(t.stateNode.containerInfo.firstChild),ft=t,Ne=!0,kt=null,r=Gd(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Sr(),l===u){t=nn(e,t,r);break e}et(e,t,l,r)}t=t.child}return t;case 5:return qd(t),e===null&&na(t),l=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,g=u.children,Gs(l,u)?g=null:d!==null&&Gs(l,d)&&(t.flags|=32),Df(e,t),et(e,t,g,r),t.child;case 6:return e===null&&na(t),null;case 13:return jf(e,t,r);case 4:return ca(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Cr(t,null,l,r):et(e,t,l,r),t.child;case 11:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),Nf(e,t,l,u,r);case 7:return et(e,t,t.pendingProps,r),t.child;case 8:return et(e,t,t.pendingProps.children,r),t.child;case 12:return et(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(l=t.type._context,u=t.pendingProps,d=t.memoizedProps,g=u.value,Re(Mi,l._currentValue),l._currentValue=g,d!==null)if(_t(d.value,g)){if(d.children===u.children&&!ot.current){t=nn(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var R=d.dependencies;if(R!==null){g=d.child;for(var _=R.firstContext;_!==null;){if(_.context===l){if(d.tag===1){_=tn(-1,r&-r),_.tag=2;var O=d.updateQueue;if(O!==null){O=O.shared;var U=O.pending;U===null?_.next=_:(_.next=U.next,U.next=_),O.pending=_}}d.lanes|=r,_=d.alternate,_!==null&&(_.lanes|=r),sa(d.return,r,t),R.lanes|=r;break}_=_.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(o(341));g.lanes|=r,R=g.alternate,R!==null&&(R.lanes|=r),sa(g,r,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}et(e,t,u.children,r),t=t.child}return t;case 9:return u=t.type,l=t.pendingProps.children,Pr(t,r),u=xt(u),l=l(u),t.flags|=1,et(e,t,l,r),t.child;case 14:return l=t.type,u=Nt(l,t.pendingProps),u=Nt(l.type,u),Af(e,t,l,u,r);case 15:return Mf(e,t,t.type,t.pendingProps,r);case 17:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),Hi(e,t),t.tag=1,it(l)?(e=!0,Ri(t)):e=!1,Pr(t,r),Cf(t,l,u),Ea(t,l,u,r),_a(null,t,l,!0,e,r);case 19:return $f(e,t,r);case 22:return If(e,t,r)}throw Error(o(156,t.tag))};function up(e,t){return Bc(e,t)}function Jw(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,r,l){return new Jw(e,t,r,l)}function Ga(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ex(e){if(typeof e=="function")return Ga(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ue)return 11;if(e===pe)return 14}return 2}function kn(e,t){var r=e.alternate;return r===null?(r=Et(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function el(e,t,r,l,u,d){var g=2;if(l=e,typeof e=="function")Ga(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case $:return Zn(r.children,u,d,t);case Y:g=8,u|=8;break;case Z:return e=Et(12,r,t,u|2),e.elementType=Z,e.lanes=d,e;case ce:return e=Et(13,r,t,u),e.elementType=ce,e.lanes=d,e;case G:return e=Et(19,r,t,u),e.elementType=G,e.lanes=d,e;case ve:return tl(r,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:g=10;break e;case se:g=9;break e;case ue:g=11;break e;case pe:g=14;break e;case q:g=16,l=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Et(g,r,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function Zn(e,t,r,l){return e=Et(7,e,l,t),e.lanes=r,e}function tl(e,t,r,l){return e=Et(22,e,l,t),e.elementType=ve,e.lanes=r,e.stateNode={isHidden:!1},e}function Ya(e,t,r){return e=Et(6,e,null,t),e.lanes=r,e}function Xa(e,t,r){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tx(e,t,r,l,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cs(0),this.expirationTimes=Cs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cs(0),this.identifierPrefix=l,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Qa(e,t,r,l,u,d,g,R,_){return e=new tx(e,t,r,R,_),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Et(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:l,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ua(d),e}function nx(e,t,r){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:l==null?null:""+l,children:e,containerInfo:t,implementation:r}}function cp(e){if(!e)return wn;e=e._reactInternals;e:{if($n(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var r=e.type;if(it(r))return jd(e,r,t)}return t}function dp(e,t,r,l,u,d,g,R,_){return e=Qa(r,l,!0,e,u,d,g,R,_),e.context=cp(null),r=e.current,l=tt(),u=Tn(r),d=tn(l,u),d.callback=t??null,Cn(r,d,u),e.current.lanes=u,to(e,u,l),at(e,l),e}function nl(e,t,r,l){var u=t.current,d=tt(),g=Tn(u);return r=cp(r),t.context===null?t.context=r:t.pendingContext=r,t=tn(d,g),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=Cn(u,t,g),e!==null&&(It(e,u,g,d),Di(e,u,g)),g}function rl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Za(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function rx(){return null}var pp=typeof reportError=="function"?reportError:function(e){console.error(e)};function qa(e){this._internalRoot=e}ol.prototype.render=qa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));nl(e,t,null,null)},ol.prototype.unmount=qa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yn(function(){nl(null,e,null,null)}),t[Qt]=null}};function ol(e){this._internalRoot=e}ol.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xc();e={blockedOn:null,target:e,priority:t};for(var r=0;r<vn.length&&t!==0&&t<vn[r].priority;r++);vn.splice(r,0,e),r===0&&qc(e)}};function Ja(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function il(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vp(){}function ox(e,t,r,l,u){if(u){if(typeof l=="function"){var d=l;l=function(){var O=rl(g);d.call(O)}}var g=dp(t,l,e,0,null,!1,!1,"",vp);return e._reactRootContainer=g,e[Qt]=g.current,ho(e.nodeType===8?e.parentNode:e),Yn(),g}for(;u=e.lastChild;)e.removeChild(u);if(typeof l=="function"){var R=l;l=function(){var O=rl(_);R.call(O)}}var _=Qa(e,0,!1,null,null,!1,!1,"",vp);return e._reactRootContainer=_,e[Qt]=_.current,ho(e.nodeType===8?e.parentNode:e),Yn(function(){nl(t,_,r,l)}),_}function ll(e,t,r,l,u){var d=r._reactRootContainer;if(d){var g=d;if(typeof u=="function"){var R=u;u=function(){var _=rl(g);R.call(_)}}nl(t,g,e,u)}else g=ox(r,t,e,u,l);return rl(g)}Gc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=eo(t.pendingLanes);r!==0&&(Es(t,r|1),at(t,be()),(ye&6)===0&&(Nr=be()+500,xn()))}break;case 13:Yn(function(){var l=en(e,1);if(l!==null){var u=tt();It(l,e,1,u)}}),Za(e,1)}},Ps=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var r=tt();It(t,e,134217728,r)}Za(e,134217728)}},Yc=function(e){if(e.tag===13){var t=Tn(e),r=en(e,t);if(r!==null){var l=tt();It(r,e,t,l)}Za(e,t)}},Xc=function(){return Ee},Qc=function(e,t){var r=Ee;try{return Ee=e,t()}finally{Ee=r}},hs=function(e,t,r){switch(t){case"input":if(Xt(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var u=Ei(l);if(!u)throw Error(o(90));Se(l),Xt(l,u)}}}break;case"textarea":Rc(e,r);break;case"select":t=r.value,t!=null&&lr(e,!!r.multiple,t,!1)}},Oc=Wa,Lc=Yn;var ix={usingClientEntryPoint:!1,Events:[wo,hr,Ei,Ic,Dc,Wa]},Do={findFiberByHostInstance:zn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lx={bundleType:Do.bundleType,version:Do.version,rendererPackageName:Do.rendererPackageName,rendererConfig:Do.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$c(e),e===null?null:e.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||rx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{oi=sl.inject(lx),jt=sl}catch{}}return ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ix,ut.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ja(t))throw Error(o(200));return nx(e,t,null,r)},ut.createRoot=function(e,t){if(!Ja(e))throw Error(o(299));var r=!1,l="",u=pp;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Qa(e,1,!1,null,null,r,!1,l,u),e[Qt]=t.current,ho(e.nodeType===8?e.parentNode:e),new qa(t)},ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=$c(t),e=e===null?null:e.stateNode,e},ut.flushSync=function(e){return Yn(e)},ut.hydrate=function(e,t,r){if(!il(t))throw Error(o(200));return ll(null,e,t,!0,r)},ut.hydrateRoot=function(e,t,r){if(!Ja(e))throw Error(o(405));var l=r!=null&&r.hydratedSources||null,u=!1,d="",g=pp;if(r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(g=r.onRecoverableError)),t=dp(t,null,e,1,r??null,u,!1,d,g),e[Qt]=t.current,ho(e),l)for(e=0;e<l.length;e++)r=l[e],u=r._getVersion,u=u(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,u]:t.mutableSourceEagerHydrationData.push(r,u);return new ol(t)},ut.render=function(e,t,r){if(!il(t))throw Error(o(200));return ll(null,e,t,!1,r)},ut.unmountComponentAtNode=function(e){if(!il(e))throw Error(o(40));return e._reactRootContainer?(Yn(function(){ll(null,null,e,!1,function(){e._reactRootContainer=null,e[Qt]=null})}),!0):!1},ut.unstable_batchedUpdates=Wa,ut.unstable_renderSubtreeIntoContainer=function(e,t,r,l){if(!il(r))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ll(e,t,r,!1,l)},ut.version="18.3.1-next-f1338f8080-20240426",ut}var xp;function mx(){if(xp)return tu.exports;xp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),tu.exports=vx(),tu.exports}function Sp(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Ml(...n){return i=>{let o=!1;const s=n.map(a=>{const c=Sp(a,i);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let a=0;a<s.length;a++){const c=s[a];typeof c=="function"?c():Sp(n[a],null)}}}}function ae(...n){return p.useCallback(Ml(...n),n)}function In(n){const i=hx(n),o=p.forwardRef((s,a)=>{const{children:c,...f}=s,v=p.Children.toArray(c),m=v.find(gx);if(m){const h=m.props.children,y=v.map(w=>w===m?p.Children.count(h)>1?p.Children.only(null):p.isValidElement(h)?h.props.children:null:w);return x.jsx(i,{...f,ref:a,children:p.isValidElement(h)?p.cloneElement(h,void 0,y):null})}return x.jsx(i,{...f,ref:a,children:c})});return o.displayName=`${n}.Slot`,o}var s1=In("Slot");function hx(n){const i=p.forwardRef((o,s)=>{const{children:a,...c}=o;if(p.isValidElement(a)){const f=wx(a),v=yx(c,a.props);return a.type!==p.Fragment&&(v.ref=s?Ml(s,f):f),p.cloneElement(a,v)}return p.Children.count(a)>1?p.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var ev=Symbol("radix.slottable");function ju(n){const i=({children:o})=>x.jsx(x.Fragment,{children:o});return i.displayName=`${n}.Slottable`,i.__radixId=ev,i}var a1=ju("Slottable");function gx(n){return p.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===ev}function yx(n,i){const o={...i};for(const s in i){const a=n[s],c=i[s];/^on[A-Z]/.test(s)?a&&c?o[s]=(...v)=>{const m=c(...v);return a(...v),m}:a&&(o[s]=a):s==="style"?o[s]={...a,...c}:s==="className"&&(o[s]=[a,c].filter(Boolean).join(" "))}return{...n,...o}}function wx(n){var s,a;let i=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function xx(n,i){const o=p.createContext(i),s=c=>{const{children:f,...v}=c,m=p.useMemo(()=>v,Object.values(v));return x.jsx(o.Provider,{value:m,children:f})};s.displayName=n+"Provider";function a(c){const f=p.useContext(o);if(f)return f;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[s,a]}function Fe(n,i=[]){let o=[];function s(c,f){const v=p.createContext(f),m=o.length;o=[...o,f];const h=w=>{var A;const{scope:S,children:E,...T}=w,C=((A=S==null?void 0:S[n])==null?void 0:A[m])||v,P=p.useMemo(()=>T,Object.values(T));return x.jsx(C.Provider,{value:P,children:E})};h.displayName=c+"Provider";function y(w,S){var C;const E=((C=S==null?void 0:S[n])==null?void 0:C[m])||v,T=p.useContext(E);if(T)return T;if(f!==void 0)return f;throw new Error(`\`${w}\` must be used within \`${c}\``)}return[h,y]}const a=()=>{const c=o.map(f=>p.createContext(f));return function(v){const m=(v==null?void 0:v[n])||c;return p.useMemo(()=>({[`__scope${n}`]:{...v,[n]:m}}),[v,m])}};return a.scopeName=n,[s,Sx(a,...i)]}function Sx(...n){const i=n[0];if(n.length===1)return i;const o=()=>{const s=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const f=s.reduce((v,{useScope:m,scopeName:h})=>{const w=m(c)[`__scope${h}`];return{...v,...w}},{});return p.useMemo(()=>({[`__scope${i.scopeName}`]:f}),[f])}};return o.scopeName=i.scopeName,o}function Oe(n){const i=p.useRef(n);return p.useEffect(()=>{i.current=n}),p.useMemo(()=>(...o)=>{var s;return(s=i.current)==null?void 0:s.call(i,...o)},[])}var Le=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},rr=mx();const tv=ax(rr),u1=ux({__proto__:null,default:tv},[rr]);var Cx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=Cx.reduce((n,i)=>{const o=In(`Primitive.${i}`),s=p.forwardRef((a,c)=>{const{asChild:f,...v}=a,m=f?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(m,{...v,ref:c})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{});function Fu(n,i){n&&rr.flushSync(()=>n.dispatchEvent(i))}var ou={exports:{}},iu={};/**
 * @license React
 * use-sync-external-store-shim.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 Cp;function Ex(){if(Cp)return iu;Cp=1;var n=bu();function i(w,S){return w===S&&(w!==0||1/w===1/S)||w!==w&&S!==S}var o=typeof Object.is=="function"?Object.is:i,s=n.useState,a=n.useEffect,c=n.useLayoutEffect,f=n.useDebugValue;function v(w,S){var E=S(),T=s({inst:{value:E,getSnapshot:S}}),C=T[0].inst,P=T[1];return c(function(){C.value=E,C.getSnapshot=S,m(C)&&P({inst:C})},[w,E,S]),a(function(){return m(C)&&P({inst:C}),w(function(){m(C)&&P({inst:C})})},[w]),f(E),E}function m(w){var S=w.getSnapshot;w=w.value;try{var E=S();return!o(w,E)}catch{return!0}}function h(w,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:v;return iu.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,iu}var Ep;function Px(){return Ep||(Ep=1,ou.exports=Ex()),ou.exports}var Rx=Px();function Tx(){return Rx.useSyncExternalStore(_x,()=>!0,()=>!1)}function _x(){return()=>{}}var $u="Avatar",[kx,c1]=Fe($u),[Nx,nv]=kx($u),rv=p.forwardRef((n,i)=>{const{__scopeAvatar:o,...s}=n,[a,c]=p.useState("idle");return x.jsx(Nx,{scope:o,imageLoadingStatus:a,onImageLoadingStatusChange:c,children:x.jsx(Q.span,{...s,ref:i})})});rv.displayName=$u;var ov="AvatarImage",iv=p.forwardRef((n,i)=>{const{__scopeAvatar:o,src:s,onLoadingStatusChange:a=()=>{},...c}=n,f=nv(ov,o),v=Ax(s,c),m=Oe(h=>{a(h),f.onImageLoadingStatusChange(h)});return Le(()=>{v!=="idle"&&m(v)},[v,m]),v==="loaded"?x.jsx(Q.img,{...c,ref:i,src:s}):null});iv.displayName=ov;var lv="AvatarFallback",sv=p.forwardRef((n,i)=>{const{__scopeAvatar:o,delayMs:s,...a}=n,c=nv(lv,o),[f,v]=p.useState(s===void 0);return p.useEffect(()=>{if(s!==void 0){const m=window.setTimeout(()=>v(!0),s);return()=>window.clearTimeout(m)}},[s]),f&&c.imageLoadingStatus!=="loaded"?x.jsx(Q.span,{...a,ref:i}):null});sv.displayName=lv;function Pp(n,i){return n?i?(n.src!==i&&(n.src=i),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Ax(n,{referrerPolicy:i,crossOrigin:o}){const s=Tx(),a=p.useRef(null),c=s?(a.current||(a.current=new window.Image),a.current):null,[f,v]=p.useState(()=>Pp(c,n));return Le(()=>{v(Pp(c,n))},[c,n]),Le(()=>{const m=w=>()=>{v(w)};if(!c)return;const h=m("loaded"),y=m("error");return c.addEventListener("load",h),c.addEventListener("error",y),i&&(c.referrerPolicy=i),typeof o=="string"&&(c.crossOrigin=o),()=>{c.removeEventListener("load",h),c.removeEventListener("error",y)}},[c,o,i]),f}var d1=rv,f1=iv,p1=sv;function z(n,i,{checkForDefaultPrevented:o=!0}={}){return function(a){if(n==null||n(a),o===!1||!a.defaultPrevented)return i==null?void 0:i(a)}}var Mx=Jp[" useInsertionEffect ".trim().toString()]||Le;function ct({prop:n,defaultProp:i,onChange:o=()=>{},caller:s}){const[a,c,f]=Ix({defaultProp:i,onChange:o}),v=n!==void 0,m=v?n:a;{const y=p.useRef(n!==void 0);p.useEffect(()=>{const w=y.current;w!==v&&console.warn(`${s} is changing from ${w?"controlled":"uncontrolled"} to ${v?"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.`),y.current=v},[v,s])}const h=p.useCallback(y=>{var w;if(v){const S=Dx(y)?y(n):y;S!==n&&((w=f.current)==null||w.call(f,S))}else c(y)},[v,n,c,f]);return[m,h]}function Ix({defaultProp:n,onChange:i}){const[o,s]=p.useState(n),a=p.useRef(o),c=p.useRef(i);return Mx(()=>{c.current=i},[i]),p.useEffect(()=>{var f;a.current!==o&&((f=c.current)==null||f.call(c,o),a.current=o)},[o,a]),[o,s,c]}function Dx(n){return typeof n=="function"}function Il(n){const i=n+"CollectionProvider",[o,s]=Fe(i),[a,c]=o(i,{collectionRef:{current:null},itemMap:new Map}),f=C=>{const{scope:P,children:A}=C,k=qn.useRef(null),M=qn.useRef(new Map).current;return x.jsx(a,{scope:P,itemMap:M,collectionRef:k,children:A})};f.displayName=i;const v=n+"CollectionSlot",m=In(v),h=qn.forwardRef((C,P)=>{const{scope:A,children:k}=C,M=c(v,A),L=ae(P,M.collectionRef);return x.jsx(m,{ref:L,children:k})});h.displayName=v;const y=n+"CollectionItemSlot",w="data-radix-collection-item",S=In(y),E=qn.forwardRef((C,P)=>{const{scope:A,children:k,...M}=C,L=qn.useRef(null),F=ae(P,L),V=c(y,A);return qn.useEffect(()=>(V.itemMap.set(L,{ref:L,...M}),()=>void V.itemMap.delete(L))),x.jsx(S,{[w]:"",ref:F,children:k})});E.displayName=y;function T(C){const P=c(n+"CollectionConsumer",C);return qn.useCallback(()=>{const k=P.collectionRef.current;if(!k)return[];const M=Array.from(k.querySelectorAll(`[${w}]`));return Array.from(P.itemMap.values()).sort((V,$)=>M.indexOf(V.ref.current)-M.indexOf($.ref.current))},[P.collectionRef,P.itemMap])}return[{Provider:f,Slot:h,ItemSlot:E},T,s]}var Ox=p.createContext(void 0);function Br(n){const i=p.useContext(Ox);return n||i||"ltr"}function Lx(n,i=globalThis==null?void 0:globalThis.document){const o=Oe(n);p.useEffect(()=>{const s=a=>{a.key==="Escape"&&o(a)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[o,i])}var bx="DismissableLayer",yu="dismissableLayer.update",jx="dismissableLayer.pointerDownOutside",Fx="dismissableLayer.focusOutside",Rp,av=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ln=p.forwardRef((n,i)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,onDismiss:v,...m}=n,h=p.useContext(av),[y,w]=p.useState(null),S=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=p.useState({}),T=ae(i,$=>w($)),C=Array.from(h.layers),[P]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),A=C.indexOf(P),k=y?C.indexOf(y):-1,M=h.layersWithOutsidePointerEventsDisabled.size>0,L=k>=A,F=zx($=>{const Y=$.target,Z=[...h.branches].some(ne=>ne.contains(Y));!L||Z||(a==null||a($),f==null||f($),$.defaultPrevented||v==null||v())},S),V=Bx($=>{const Y=$.target;[...h.branches].some(ne=>ne.contains(Y))||(c==null||c($),f==null||f($),$.defaultPrevented||v==null||v())},S);return Lx($=>{k===h.layers.size-1&&(s==null||s($),!$.defaultPrevented&&v&&($.preventDefault(),v()))},S),p.useEffect(()=>{if(y)return o&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Rp=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),Tp(),()=>{o&&h.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Rp)}},[y,S,o,h]),p.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),Tp())},[y,h]),p.useEffect(()=>{const $=()=>E({});return document.addEventListener(yu,$),()=>document.removeEventListener(yu,$)},[]),x.jsx(Q.div,{...m,ref:T,style:{pointerEvents:M?L?"auto":"none":void 0,...n.style},onFocusCapture:z(n.onFocusCapture,V.onFocusCapture),onBlurCapture:z(n.onBlurCapture,V.onBlurCapture),onPointerDownCapture:z(n.onPointerDownCapture,F.onPointerDownCapture)})});Ln.displayName=bx;var $x="DismissableLayerBranch",uv=p.forwardRef((n,i)=>{const o=p.useContext(av),s=p.useRef(null),a=ae(i,s);return p.useEffect(()=>{const c=s.current;if(c)return o.branches.add(c),()=>{o.branches.delete(c)}},[o.branches]),x.jsx(Q.div,{...n,ref:a})});uv.displayName=$x;function zx(n,i=globalThis==null?void 0:globalThis.document){const o=Oe(n),s=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const c=v=>{if(v.target&&!s.current){let m=function(){cv(jx,o,h,{discrete:!0})};const h={originalEvent:v};v.pointerType==="touch"?(i.removeEventListener("click",a.current),a.current=m,i.addEventListener("click",a.current,{once:!0})):m()}else i.removeEventListener("click",a.current);s.current=!1},f=window.setTimeout(()=>{i.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),i.removeEventListener("pointerdown",c),i.removeEventListener("click",a.current)}},[i,o]),{onPointerDownCapture:()=>s.current=!0}}function Bx(n,i=globalThis==null?void 0:globalThis.document){const o=Oe(n),s=p.useRef(!1);return p.useEffect(()=>{const a=c=>{c.target&&!s.current&&cv(Fx,o,{originalEvent:c},{discrete:!1})};return i.addEventListener("focusin",a),()=>i.removeEventListener("focusin",a)},[i,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Tp(){const n=new CustomEvent(yu);document.dispatchEvent(n)}function cv(n,i,o,{discrete:s}){const a=o.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});i&&a.addEventListener(n,i,{once:!0}),s?Fu(a,c):a.dispatchEvent(c)}var Ux=Ln,Hx=uv,lu=0;function Dl(){p.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??_p()),document.body.insertAdjacentElement("beforeend",n[1]??_p()),lu++,()=>{lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),lu--}},[])}function _p(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var su="focusScope.autoFocusOnMount",au="focusScope.autoFocusOnUnmount",kp={bubbles:!1,cancelable:!0},Wx="FocusScope",Uo=p.forwardRef((n,i)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:c,...f}=n,[v,m]=p.useState(null),h=Oe(a),y=Oe(c),w=p.useRef(null),S=ae(i,C=>m(C)),E=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(s){let C=function(M){if(E.paused||!v)return;const L=M.target;v.contains(L)?w.current=L:An(w.current,{select:!0})},P=function(M){if(E.paused||!v)return;const L=M.relatedTarget;L!==null&&(v.contains(L)||An(w.current,{select:!0}))},A=function(M){if(document.activeElement===document.body)for(const F of M)F.removedNodes.length>0&&An(v)};document.addEventListener("focusin",C),document.addEventListener("focusout",P);const k=new MutationObserver(A);return v&&k.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",P),k.disconnect()}}},[s,v,E.paused]),p.useEffect(()=>{if(v){Ap.add(E);const C=document.activeElement;if(!v.contains(C)){const A=new CustomEvent(su,kp);v.addEventListener(su,h),v.dispatchEvent(A),A.defaultPrevented||(Vx(Qx(dv(v)),{select:!0}),document.activeElement===C&&An(v))}return()=>{v.removeEventListener(su,h),setTimeout(()=>{const A=new CustomEvent(au,kp);v.addEventListener(au,y),v.dispatchEvent(A),A.defaultPrevented||An(C??document.body,{select:!0}),v.removeEventListener(au,y),Ap.remove(E)},0)}}},[v,h,y,E]);const T=p.useCallback(C=>{if(!o&&!s||E.paused)return;const P=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,A=document.activeElement;if(P&&A){const k=C.currentTarget,[M,L]=Kx(k);M&&L?!C.shiftKey&&A===L?(C.preventDefault(),o&&An(M,{select:!0})):C.shiftKey&&A===M&&(C.preventDefault(),o&&An(L,{select:!0})):A===k&&C.preventDefault()}},[o,s,E.paused]);return x.jsx(Q.div,{tabIndex:-1,...f,ref:S,onKeyDown:T})});Uo.displayName=Wx;function Vx(n,{select:i=!1}={}){const o=document.activeElement;for(const s of n)if(An(s,{select:i}),document.activeElement!==o)return}function Kx(n){const i=dv(n),o=Np(i,n),s=Np(i.reverse(),n);return[o,s]}function dv(n){const i=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function Np(n,i){for(const o of n)if(!Gx(o,{upTo:i}))return o}function Gx(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Yx(n){return n instanceof HTMLInputElement&&"select"in n}function An(n,{select:i=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&Yx(n)&&i&&n.select()}}var Ap=Xx();function Xx(){let n=[];return{add(i){const o=n[0];i!==o&&(o==null||o.pause()),n=Mp(n,i),n.unshift(i)},remove(i){var o;n=Mp(n,i),(o=n[0])==null||o.resume()}}}function Mp(n,i){const o=[...n],s=o.indexOf(i);return s!==-1&&o.splice(s,1),o}function Qx(n){return n.filter(i=>i.tagName!=="A")}var Zx=Jp[" useId ".trim().toString()]||(()=>{}),qx=0;function ht(n){const[i,o]=p.useState(Zx());return Le(()=>{o(s=>s??String(qx++))},[n]),n||(i?`radix-${i}`:"")}const Jx=["top","right","bottom","left"],Dn=Math.min,mt=Math.max,yl=Math.round,al=Math.floor,Wt=n=>({x:n,y:n}),eS={left:"right",right:"left",bottom:"top",top:"bottom"},tS={start:"end",end:"start"};function wu(n,i,o){return mt(n,Dn(i,o))}function on(n,i){return typeof n=="function"?n(i):n}function ln(n){return n.split("-")[0]}function Ur(n){return n.split("-")[1]}function zu(n){return n==="x"?"y":"x"}function Bu(n){return n==="y"?"height":"width"}const nS=new Set(["top","bottom"]);function Ht(n){return nS.has(ln(n))?"y":"x"}function Uu(n){return zu(Ht(n))}function rS(n,i,o){o===void 0&&(o=!1);const s=Ur(n),a=Uu(n),c=Bu(a);let f=a==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[c]>i.floating[c]&&(f=wl(f)),[f,wl(f)]}function oS(n){const i=wl(n);return[xu(n),i,xu(i)]}function xu(n){return n.replace(/start|end/g,i=>tS[i])}const Ip=["left","right"],Dp=["right","left"],iS=["top","bottom"],lS=["bottom","top"];function sS(n,i,o){switch(n){case"top":case"bottom":return o?i?Dp:Ip:i?Ip:Dp;case"left":case"right":return i?iS:lS;default:return[]}}function aS(n,i,o,s){const a=Ur(n);let c=sS(ln(n),o==="start",s);return a&&(c=c.map(f=>f+"-"+a),i&&(c=c.concat(c.map(xu)))),c}function wl(n){return n.replace(/left|right|bottom|top/g,i=>eS[i])}function uS(n){return{top:0,right:0,bottom:0,left:0,...n}}function fv(n){return typeof n!="number"?uS(n):{top:n,right:n,bottom:n,left:n}}function xl(n){const{x:i,y:o,width:s,height:a}=n;return{width:s,height:a,top:o,left:i,right:i+s,bottom:o+a,x:i,y:o}}function Op(n,i,o){let{reference:s,floating:a}=n;const c=Ht(i),f=Uu(i),v=Bu(f),m=ln(i),h=c==="y",y=s.x+s.width/2-a.width/2,w=s.y+s.height/2-a.height/2,S=s[v]/2-a[v]/2;let E;switch(m){case"top":E={x:y,y:s.y-a.height};break;case"bottom":E={x:y,y:s.y+s.height};break;case"right":E={x:s.x+s.width,y:w};break;case"left":E={x:s.x-a.width,y:w};break;default:E={x:s.x,y:s.y}}switch(Ur(i)){case"start":E[f]-=S*(o&&h?-1:1);break;case"end":E[f]+=S*(o&&h?-1:1);break}return E}const cS=async(n,i,o)=>{const{placement:s="bottom",strategy:a="absolute",middleware:c=[],platform:f}=o,v=c.filter(Boolean),m=await(f.isRTL==null?void 0:f.isRTL(i));let h=await f.getElementRects({reference:n,floating:i,strategy:a}),{x:y,y:w}=Op(h,s,m),S=s,E={},T=0;for(let C=0;C<v.length;C++){const{name:P,fn:A}=v[C],{x:k,y:M,data:L,reset:F}=await A({x:y,y:w,initialPlacement:s,placement:S,strategy:a,middlewareData:E,rects:h,platform:f,elements:{reference:n,floating:i}});y=k??y,w=M??w,E={...E,[P]:{...E[P],...L}},F&&T<=50&&(T++,typeof F=="object"&&(F.placement&&(S=F.placement),F.rects&&(h=F.rects===!0?await f.getElementRects({reference:n,floating:i,strategy:a}):F.rects),{x:y,y:w}=Op(h,S,m)),C=-1)}return{x:y,y:w,placement:S,strategy:a,middlewareData:E}};async function jo(n,i){var o;i===void 0&&(i={});const{x:s,y:a,platform:c,rects:f,elements:v,strategy:m}=n,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:w="floating",altBoundary:S=!1,padding:E=0}=on(i,n),T=fv(E),P=v[S?w==="floating"?"reference":"floating":w],A=xl(await c.getClippingRect({element:(o=await(c.isElement==null?void 0:c.isElement(P)))==null||o?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(v.floating)),boundary:h,rootBoundary:y,strategy:m})),k=w==="floating"?{x:s,y:a,width:f.floating.width,height:f.floating.height}:f.reference,M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(v.floating)),L=await(c.isElement==null?void 0:c.isElement(M))?await(c.getScale==null?void 0:c.getScale(M))||{x:1,y:1}:{x:1,y:1},F=xl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:k,offsetParent:M,strategy:m}):k);return{top:(A.top-F.top+T.top)/L.y,bottom:(F.bottom-A.bottom+T.bottom)/L.y,left:(A.left-F.left+T.left)/L.x,right:(F.right-A.right+T.right)/L.x}}const dS=n=>({name:"arrow",options:n,async fn(i){const{x:o,y:s,placement:a,rects:c,platform:f,elements:v,middlewareData:m}=i,{element:h,padding:y=0}=on(n,i)||{};if(h==null)return{};const w=fv(y),S={x:o,y:s},E=Uu(a),T=Bu(E),C=await f.getDimensions(h),P=E==="y",A=P?"top":"left",k=P?"bottom":"right",M=P?"clientHeight":"clientWidth",L=c.reference[T]+c.reference[E]-S[E]-c.floating[T],F=S[E]-c.reference[E],V=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let $=V?V[M]:0;(!$||!await(f.isElement==null?void 0:f.isElement(V)))&&($=v.floating[M]||c.floating[T]);const Y=L/2-F/2,Z=$/2-C[T]/2-1,ne=Dn(w[A],Z),se=Dn(w[k],Z),ue=ne,ce=$-C[T]-se,G=$/2-C[T]/2+Y,pe=wu(ue,G,ce),q=!m.arrow&&Ur(a)!=null&&G!==pe&&c.reference[T]/2-(G<ue?ne:se)-C[T]/2<0,ve=q?G<ue?G-ue:G-ce:0;return{[E]:S[E]+ve,data:{[E]:pe,centerOffset:G-pe-ve,...q&&{alignmentOffset:ve}},reset:q}}}),fS=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var o,s;const{placement:a,middlewareData:c,rects:f,initialPlacement:v,platform:m,elements:h}=i,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:C=!0,...P}=on(n,i);if((o=c.arrow)!=null&&o.alignmentOffset)return{};const A=ln(a),k=Ht(v),M=ln(v)===v,L=await(m.isRTL==null?void 0:m.isRTL(h.floating)),F=S||(M||!C?[wl(v)]:oS(v)),V=T!=="none";!S&&V&&F.push(...aS(v,C,T,L));const $=[v,...F],Y=await jo(i,P),Z=[];let ne=((s=c.flip)==null?void 0:s.overflows)||[];if(y&&Z.push(Y[A]),w){const G=rS(a,f,L);Z.push(Y[G[0]],Y[G[1]])}if(ne=[...ne,{placement:a,overflows:Z}],!Z.every(G=>G<=0)){var se,ue;const G=(((se=c.flip)==null?void 0:se.index)||0)+1,pe=$[G];if(pe&&(!(w==="alignment"?k!==Ht(pe):!1)||ne.every(b=>Ht(b.placement)===k?b.overflows[0]>0:!0)))return{data:{index:G,overflows:ne},reset:{placement:pe}};let q=(ue=ne.filter(ve=>ve.overflows[0]<=0).sort((ve,b)=>ve.overflows[1]-b.overflows[1])[0])==null?void 0:ue.placement;if(!q)switch(E){case"bestFit":{var ce;const ve=(ce=ne.filter(b=>{if(V){const j=Ht(b.placement);return j===k||j==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(j=>j>0).reduce((j,W)=>j+W,0)]).sort((b,j)=>b[1]-j[1])[0])==null?void 0:ce[0];ve&&(q=ve);break}case"initialPlacement":q=v;break}if(a!==q)return{reset:{placement:q}}}return{}}}};function Lp(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function bp(n){return Jx.some(i=>n[i]>=0)}const pS=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:o}=i,{strategy:s="referenceHidden",...a}=on(n,i);switch(s){case"referenceHidden":{const c=await jo(i,{...a,elementContext:"reference"}),f=Lp(c,o.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:bp(f)}}}case"escaped":{const c=await jo(i,{...a,altBoundary:!0}),f=Lp(c,o.floating);return{data:{escapedOffsets:f,escaped:bp(f)}}}default:return{}}}}},pv=new Set(["left","top"]);async function vS(n,i){const{placement:o,platform:s,elements:a}=n,c=await(s.isRTL==null?void 0:s.isRTL(a.floating)),f=ln(o),v=Ur(o),m=Ht(o)==="y",h=pv.has(f)?-1:1,y=c&&m?-1:1,w=on(i,n);let{mainAxis:S,crossAxis:E,alignmentAxis:T}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return v&&typeof T=="number"&&(E=v==="end"?T*-1:T),m?{x:E*y,y:S*h}:{x:S*h,y:E*y}}const mS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var o,s;const{x:a,y:c,placement:f,middlewareData:v}=i,m=await vS(i,n);return f===((o=v.offset)==null?void 0:o.placement)&&(s=v.arrow)!=null&&s.alignmentOffset?{}:{x:a+m.x,y:c+m.y,data:{...m,placement:f}}}}},hS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:o,y:s,placement:a}=i,{mainAxis:c=!0,crossAxis:f=!1,limiter:v={fn:P=>{let{x:A,y:k}=P;return{x:A,y:k}}},...m}=on(n,i),h={x:o,y:s},y=await jo(i,m),w=Ht(ln(a)),S=zu(w);let E=h[S],T=h[w];if(c){const P=S==="y"?"top":"left",A=S==="y"?"bottom":"right",k=E+y[P],M=E-y[A];E=wu(k,E,M)}if(f){const P=w==="y"?"top":"left",A=w==="y"?"bottom":"right",k=T+y[P],M=T-y[A];T=wu(k,T,M)}const C=v.fn({...i,[S]:E,[w]:T});return{...C,data:{x:C.x-o,y:C.y-s,enabled:{[S]:c,[w]:f}}}}}},gS=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:o,y:s,placement:a,rects:c,middlewareData:f}=i,{offset:v=0,mainAxis:m=!0,crossAxis:h=!0}=on(n,i),y={x:o,y:s},w=Ht(a),S=zu(w);let E=y[S],T=y[w];const C=on(v,i),P=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(m){const M=S==="y"?"height":"width",L=c.reference[S]-c.floating[M]+P.mainAxis,F=c.reference[S]+c.reference[M]-P.mainAxis;E<L?E=L:E>F&&(E=F)}if(h){var A,k;const M=S==="y"?"width":"height",L=pv.has(ln(a)),F=c.reference[w]-c.floating[M]+(L&&((A=f.offset)==null?void 0:A[w])||0)+(L?0:P.crossAxis),V=c.reference[w]+c.reference[M]+(L?0:((k=f.offset)==null?void 0:k[w])||0)-(L?P.crossAxis:0);T<F?T=F:T>V&&(T=V)}return{[S]:E,[w]:T}}}},yS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var o,s;const{placement:a,rects:c,platform:f,elements:v}=i,{apply:m=()=>{},...h}=on(n,i),y=await jo(i,h),w=ln(a),S=Ur(a),E=Ht(a)==="y",{width:T,height:C}=c.floating;let P,A;w==="top"||w==="bottom"?(P=w,A=S===(await(f.isRTL==null?void 0:f.isRTL(v.floating))?"start":"end")?"left":"right"):(A=w,P=S==="end"?"top":"bottom");const k=C-y.top-y.bottom,M=T-y.left-y.right,L=Dn(C-y[P],k),F=Dn(T-y[A],M),V=!i.middlewareData.shift;let $=L,Y=F;if((o=i.middlewareData.shift)!=null&&o.enabled.x&&(Y=M),(s=i.middlewareData.shift)!=null&&s.enabled.y&&($=k),V&&!S){const ne=mt(y.left,0),se=mt(y.right,0),ue=mt(y.top,0),ce=mt(y.bottom,0);E?Y=T-2*(ne!==0||se!==0?ne+se:mt(y.left,y.right)):$=C-2*(ue!==0||ce!==0?ue+ce:mt(y.top,y.bottom))}await m({...i,availableWidth:Y,availableHeight:$});const Z=await f.getDimensions(v.floating);return T!==Z.width||C!==Z.height?{reset:{rects:!0}}:{}}}};function Ol(){return typeof window<"u"}function Hr(n){return vv(n)?(n.nodeName||"").toLowerCase():"#document"}function gt(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Kt(n){var i;return(i=(vv(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function vv(n){return Ol()?n instanceof Node||n instanceof gt(n).Node:!1}function Ot(n){return Ol()?n instanceof Element||n instanceof gt(n).Element:!1}function Vt(n){return Ol()?n instanceof HTMLElement||n instanceof gt(n).HTMLElement:!1}function jp(n){return!Ol()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof gt(n).ShadowRoot}const wS=new Set(["inline","contents"]);function Ho(n){const{overflow:i,overflowX:o,overflowY:s,display:a}=Lt(n);return/auto|scroll|overlay|hidden|clip/.test(i+s+o)&&!wS.has(a)}const xS=new Set(["table","td","th"]);function SS(n){return xS.has(Hr(n))}const CS=[":popover-open",":modal"];function Ll(n){return CS.some(i=>{try{return n.matches(i)}catch{return!1}})}const ES=["transform","translate","scale","rotate","perspective"],PS=["transform","translate","scale","rotate","perspective","filter"],RS=["paint","layout","strict","content"];function Hu(n){const i=Wu(),o=Ot(n)?Lt(n):n;return ES.some(s=>o[s]?o[s]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!i&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!i&&(o.filter?o.filter!=="none":!1)||PS.some(s=>(o.willChange||"").includes(s))||RS.some(s=>(o.contain||"").includes(s))}function TS(n){let i=On(n);for(;Vt(i)&&!jr(i);){if(Hu(i))return i;if(Ll(i))return null;i=On(i)}return null}function Wu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _S=new Set(["html","body","#document"]);function jr(n){return _S.has(Hr(n))}function Lt(n){return gt(n).getComputedStyle(n)}function bl(n){return Ot(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function On(n){if(Hr(n)==="html")return n;const i=n.assignedSlot||n.parentNode||jp(n)&&n.host||Kt(n);return jp(i)?i.host:i}function mv(n){const i=On(n);return jr(i)?n.ownerDocument?n.ownerDocument.body:n.body:Vt(i)&&Ho(i)?i:mv(i)}function Fo(n,i,o){var s;i===void 0&&(i=[]),o===void 0&&(o=!0);const a=mv(n),c=a===((s=n.ownerDocument)==null?void 0:s.body),f=gt(a);if(c){const v=Su(f);return i.concat(f,f.visualViewport||[],Ho(a)?a:[],v&&o?Fo(v):[])}return i.concat(a,Fo(a,[],o))}function Su(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function hv(n){const i=Lt(n);let o=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const a=Vt(n),c=a?n.offsetWidth:o,f=a?n.offsetHeight:s,v=yl(o)!==c||yl(s)!==f;return v&&(o=c,s=f),{width:o,height:s,$:v}}function Vu(n){return Ot(n)?n:n.contextElement}function Or(n){const i=Vu(n);if(!Vt(i))return Wt(1);const o=i.getBoundingClientRect(),{width:s,height:a,$:c}=hv(i);let f=(c?yl(o.width):o.width)/s,v=(c?yl(o.height):o.height)/a;return(!f||!Number.isFinite(f))&&(f=1),(!v||!Number.isFinite(v))&&(v=1),{x:f,y:v}}const kS=Wt(0);function gv(n){const i=gt(n);return!Wu()||!i.visualViewport?kS:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function NS(n,i,o){return i===void 0&&(i=!1),!o||i&&o!==gt(n)?!1:i}function Jn(n,i,o,s){i===void 0&&(i=!1),o===void 0&&(o=!1);const a=n.getBoundingClientRect(),c=Vu(n);let f=Wt(1);i&&(s?Ot(s)&&(f=Or(s)):f=Or(n));const v=NS(c,o,s)?gv(c):Wt(0);let m=(a.left+v.x)/f.x,h=(a.top+v.y)/f.y,y=a.width/f.x,w=a.height/f.y;if(c){const S=gt(c),E=s&&Ot(s)?gt(s):s;let T=S,C=Su(T);for(;C&&s&&E!==T;){const P=Or(C),A=C.getBoundingClientRect(),k=Lt(C),M=A.left+(C.clientLeft+parseFloat(k.paddingLeft))*P.x,L=A.top+(C.clientTop+parseFloat(k.paddingTop))*P.y;m*=P.x,h*=P.y,y*=P.x,w*=P.y,m+=M,h+=L,T=gt(C),C=Su(T)}}return xl({width:y,height:w,x:m,y:h})}function jl(n,i){const o=bl(n).scrollLeft;return i?i.left+o:Jn(Kt(n)).left+o}function yv(n,i){const o=n.getBoundingClientRect(),s=o.left+i.scrollLeft-jl(n,o),a=o.top+i.scrollTop;return{x:s,y:a}}function AS(n){let{elements:i,rect:o,offsetParent:s,strategy:a}=n;const c=a==="fixed",f=Kt(s),v=i?Ll(i.floating):!1;if(s===f||v&&c)return o;let m={scrollLeft:0,scrollTop:0},h=Wt(1);const y=Wt(0),w=Vt(s);if((w||!w&&!c)&&((Hr(s)!=="body"||Ho(f))&&(m=bl(s)),Vt(s))){const E=Jn(s);h=Or(s),y.x=E.x+s.clientLeft,y.y=E.y+s.clientTop}const S=f&&!w&&!c?yv(f,m):Wt(0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-m.scrollLeft*h.x+y.x+S.x,y:o.y*h.y-m.scrollTop*h.y+y.y+S.y}}function MS(n){return Array.from(n.getClientRects())}function IS(n){const i=Kt(n),o=bl(n),s=n.ownerDocument.body,a=mt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),c=mt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let f=-o.scrollLeft+jl(n);const v=-o.scrollTop;return Lt(s).direction==="rtl"&&(f+=mt(i.clientWidth,s.clientWidth)-a),{width:a,height:c,x:f,y:v}}const Fp=25;function DS(n,i){const o=gt(n),s=Kt(n),a=o.visualViewport;let c=s.clientWidth,f=s.clientHeight,v=0,m=0;if(a){c=a.width,f=a.height;const y=Wu();(!y||y&&i==="fixed")&&(v=a.offsetLeft,m=a.offsetTop)}const h=jl(s);if(h<=0){const y=s.ownerDocument,w=y.body,S=getComputedStyle(w),E=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,T=Math.abs(s.clientWidth-w.clientWidth-E);T<=Fp&&(c-=T)}else h<=Fp&&(c+=h);return{width:c,height:f,x:v,y:m}}const OS=new Set(["absolute","fixed"]);function LS(n,i){const o=Jn(n,!0,i==="fixed"),s=o.top+n.clientTop,a=o.left+n.clientLeft,c=Vt(n)?Or(n):Wt(1),f=n.clientWidth*c.x,v=n.clientHeight*c.y,m=a*c.x,h=s*c.y;return{width:f,height:v,x:m,y:h}}function $p(n,i,o){let s;if(i==="viewport")s=DS(n,o);else if(i==="document")s=IS(Kt(n));else if(Ot(i))s=LS(i,o);else{const a=gv(n);s={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return xl(s)}function wv(n,i){const o=On(n);return o===i||!Ot(o)||jr(o)?!1:Lt(o).position==="fixed"||wv(o,i)}function bS(n,i){const o=i.get(n);if(o)return o;let s=Fo(n,[],!1).filter(v=>Ot(v)&&Hr(v)!=="body"),a=null;const c=Lt(n).position==="fixed";let f=c?On(n):n;for(;Ot(f)&&!jr(f);){const v=Lt(f),m=Hu(f);!m&&v.position==="fixed"&&(a=null),(c?!m&&!a:!m&&v.position==="static"&&!!a&&OS.has(a.position)||Ho(f)&&!m&&wv(n,f))?s=s.filter(y=>y!==f):a=v,f=On(f)}return i.set(n,s),s}function jS(n){let{element:i,boundary:o,rootBoundary:s,strategy:a}=n;const f=[...o==="clippingAncestors"?Ll(i)?[]:bS(i,this._c):[].concat(o),s],v=f[0],m=f.reduce((h,y)=>{const w=$p(i,y,a);return h.top=mt(w.top,h.top),h.right=Dn(w.right,h.right),h.bottom=Dn(w.bottom,h.bottom),h.left=mt(w.left,h.left),h},$p(i,v,a));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function FS(n){const{width:i,height:o}=hv(n);return{width:i,height:o}}function $S(n,i,o){const s=Vt(i),a=Kt(i),c=o==="fixed",f=Jn(n,!0,c,i);let v={scrollLeft:0,scrollTop:0};const m=Wt(0);function h(){m.x=jl(a)}if(s||!s&&!c)if((Hr(i)!=="body"||Ho(a))&&(v=bl(i)),s){const E=Jn(i,!0,c,i);m.x=E.x+i.clientLeft,m.y=E.y+i.clientTop}else a&&h();c&&!s&&a&&h();const y=a&&!s&&!c?yv(a,v):Wt(0),w=f.left+v.scrollLeft-m.x-y.x,S=f.top+v.scrollTop-m.y-y.y;return{x:w,y:S,width:f.width,height:f.height}}function uu(n){return Lt(n).position==="static"}function zp(n,i){if(!Vt(n)||Lt(n).position==="fixed")return null;if(i)return i(n);let o=n.offsetParent;return Kt(n)===o&&(o=o.ownerDocument.body),o}function xv(n,i){const o=gt(n);if(Ll(n))return o;if(!Vt(n)){let a=On(n);for(;a&&!jr(a);){if(Ot(a)&&!uu(a))return a;a=On(a)}return o}let s=zp(n,i);for(;s&&SS(s)&&uu(s);)s=zp(s,i);return s&&jr(s)&&uu(s)&&!Hu(s)?o:s||TS(n)||o}const zS=async function(n){const i=this.getOffsetParent||xv,o=this.getDimensions,s=await o(n.floating);return{reference:$S(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function BS(n){return Lt(n).direction==="rtl"}const US={convertOffsetParentRelativeRectToViewportRelativeRect:AS,getDocumentElement:Kt,getClippingRect:jS,getOffsetParent:xv,getElementRects:zS,getClientRects:MS,getDimensions:FS,getScale:Or,isElement:Ot,isRTL:BS};function Sv(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function HS(n,i){let o=null,s;const a=Kt(n);function c(){var v;clearTimeout(s),(v=o)==null||v.disconnect(),o=null}function f(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),c();const h=n.getBoundingClientRect(),{left:y,top:w,width:S,height:E}=h;if(v||i(),!S||!E)return;const T=al(w),C=al(a.clientWidth-(y+S)),P=al(a.clientHeight-(w+E)),A=al(y),M={rootMargin:-T+"px "+-C+"px "+-P+"px "+-A+"px",threshold:mt(0,Dn(1,m))||1};let L=!0;function F(V){const $=V[0].intersectionRatio;if($!==m){if(!L)return f();$?f(!1,$):s=setTimeout(()=>{f(!1,1e-7)},1e3)}$===1&&!Sv(h,n.getBoundingClientRect())&&f(),L=!1}try{o=new IntersectionObserver(F,{...M,root:a.ownerDocument})}catch{o=new IntersectionObserver(F,M)}o.observe(n)}return f(!0),c}function WS(n,i,o,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=s,h=Vu(n),y=a||c?[...h?Fo(h):[],...Fo(i)]:[];y.forEach(A=>{a&&A.addEventListener("scroll",o,{passive:!0}),c&&A.addEventListener("resize",o)});const w=h&&v?HS(h,o):null;let S=-1,E=null;f&&(E=new ResizeObserver(A=>{let[k]=A;k&&k.target===h&&E&&(E.unobserve(i),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var M;(M=E)==null||M.observe(i)})),o()}),h&&!m&&E.observe(h),E.observe(i));let T,C=m?Jn(n):null;m&&P();function P(){const A=Jn(n);C&&!Sv(C,A)&&o(),C=A,T=requestAnimationFrame(P)}return o(),()=>{var A;y.forEach(k=>{a&&k.removeEventListener("scroll",o),c&&k.removeEventListener("resize",o)}),w==null||w(),(A=E)==null||A.disconnect(),E=null,m&&cancelAnimationFrame(T)}}const VS=mS,KS=hS,GS=fS,YS=yS,XS=pS,Bp=dS,QS=gS,ZS=(n,i,o)=>{const s=new Map,a={platform:US,...o},c={...a.platform,_c:s};return cS(n,i,{...a,platform:c})};var qS=typeof document<"u",JS=function(){},ml=qS?p.useLayoutEffect:JS;function Sl(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let o,s,a;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==i.length)return!1;for(s=o;s--!==0;)if(!Sl(n[s],i[s]))return!1;return!0}if(a=Object.keys(n),o=a.length,o!==Object.keys(i).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(i,a[s]))return!1;for(s=o;s--!==0;){const c=a[s];if(!(c==="_owner"&&n.$$typeof)&&!Sl(n[c],i[c]))return!1}return!0}return n!==n&&i!==i}function Cv(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Up(n,i){const o=Cv(n);return Math.round(i*o)/o}function cu(n){const i=p.useRef(n);return ml(()=>{i.current=n}),i}function e0(n){n===void 0&&(n={});const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:a,elements:{reference:c,floating:f}={},transform:v=!0,whileElementsMounted:m,open:h}=n,[y,w]=p.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[S,E]=p.useState(s);Sl(S,s)||E(s);const[T,C]=p.useState(null),[P,A]=p.useState(null),k=p.useCallback(b=>{b!==V.current&&(V.current=b,C(b))},[]),M=p.useCallback(b=>{b!==$.current&&($.current=b,A(b))},[]),L=c||T,F=f||P,V=p.useRef(null),$=p.useRef(null),Y=p.useRef(y),Z=m!=null,ne=cu(m),se=cu(a),ue=cu(h),ce=p.useCallback(()=>{if(!V.current||!$.current)return;const b={placement:i,strategy:o,middleware:S};se.current&&(b.platform=se.current),ZS(V.current,$.current,b).then(j=>{const W={...j,isPositioned:ue.current!==!1};G.current&&!Sl(Y.current,W)&&(Y.current=W,rr.flushSync(()=>{w(W)}))})},[S,i,o,se,ue]);ml(()=>{h===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,w(b=>({...b,isPositioned:!1})))},[h]);const G=p.useRef(!1);ml(()=>(G.current=!0,()=>{G.current=!1}),[]),ml(()=>{if(L&&(V.current=L),F&&($.current=F),L&&F){if(ne.current)return ne.current(L,F,ce);ce()}},[L,F,ce,ne,Z]);const pe=p.useMemo(()=>({reference:V,floating:$,setReference:k,setFloating:M}),[k,M]),q=p.useMemo(()=>({reference:L,floating:F}),[L,F]),ve=p.useMemo(()=>{const b={position:o,left:0,top:0};if(!q.floating)return b;const j=Up(q.floating,y.x),W=Up(q.floating,y.y);return v?{...b,transform:"translate("+j+"px, "+W+"px)",...Cv(q.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:j,top:W}},[o,v,q.floating,y.x,y.y]);return p.useMemo(()=>({...y,update:ce,refs:pe,elements:q,floatingStyles:ve}),[y,ce,pe,q,ve])}const t0=n=>{function i(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:s,padding:a}=typeof n=="function"?n(o):n;return s&&i(s)?s.current!=null?Bp({element:s.current,padding:a}).fn(o):{}:s?Bp({element:s,padding:a}).fn(o):{}}}},n0=(n,i)=>({...VS(n),options:[n,i]}),r0=(n,i)=>({...KS(n),options:[n,i]}),o0=(n,i)=>({...QS(n),options:[n,i]}),i0=(n,i)=>({...GS(n),options:[n,i]}),l0=(n,i)=>({...YS(n),options:[n,i]}),s0=(n,i)=>({...XS(n),options:[n,i]}),a0=(n,i)=>({...t0(n),options:[n,i]});var u0="Arrow",Ev=p.forwardRef((n,i)=>{const{children:o,width:s=10,height:a=5,...c}=n;return x.jsx(Q.svg,{...c,ref:i,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ev.displayName=u0;var c0=Ev;function Fl(n){const[i,o]=p.useState(void 0);return Le(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const c=a[0];let f,v;if("borderBoxSize"in c){const m=c.borderBoxSize,h=Array.isArray(m)?m[0]:m;f=h.inlineSize,v=h.blockSize}else f=n.offsetWidth,v=n.offsetHeight;o({width:f,height:v})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else o(void 0)},[n]),i}var Ku="Popper",[Pv,Gt]=Fe(Ku),[d0,Rv]=Pv(Ku),Tv=n=>{const{__scopePopper:i,children:o}=n,[s,a]=p.useState(null);return x.jsx(d0,{scope:i,anchor:s,onAnchorChange:a,children:o})};Tv.displayName=Ku;var _v="PopperAnchor",kv=p.forwardRef((n,i)=>{const{__scopePopper:o,virtualRef:s,...a}=n,c=Rv(_v,o),f=p.useRef(null),v=ae(i,f),m=p.useRef(null);return p.useEffect(()=>{const h=m.current;m.current=(s==null?void 0:s.current)||f.current,h!==m.current&&c.onAnchorChange(m.current)}),s?null:x.jsx(Q.div,{...a,ref:v})});kv.displayName=_v;var Gu="PopperContent",[f0,p0]=Pv(Gu),Nv=p.forwardRef((n,i)=>{var oe,he,Ce,xe,ge,Se;const{__scopePopper:o,side:s="bottom",sideOffset:a=0,align:c="center",alignOffset:f=0,arrowPadding:v=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:S=!1,updatePositionStrategy:E="optimized",onPlaced:T,...C}=n,P=Rv(Gu,o),[A,k]=p.useState(null),M=ae(i,He=>k(He)),[L,F]=p.useState(null),V=Fl(L),$=(V==null?void 0:V.width)??0,Y=(V==null?void 0:V.height)??0,Z=s+(c!=="center"?"-"+c:""),ne=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},se=Array.isArray(h)?h:[h],ue=se.length>0,ce={padding:ne,boundary:se.filter(m0),altBoundary:ue},{refs:G,floatingStyles:pe,placement:q,isPositioned:ve,middlewareData:b}=e0({strategy:"fixed",placement:Z,whileElementsMounted:(...He)=>WS(...He,{animationFrame:E==="always"}),elements:{reference:P.anchor},middleware:[n0({mainAxis:a+Y,alignmentAxis:f}),m&&r0({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?o0():void 0,...ce}),m&&i0({...ce}),l0({...ce,apply:({elements:He,rects:rt,availableWidth:an,availableHeight:un})=>{const{width:Xt,height:Jo}=rt.reference,cn=He.floating.style;cn.setProperty("--radix-popper-available-width",`${an}px`),cn.setProperty("--radix-popper-available-height",`${un}px`),cn.setProperty("--radix-popper-anchor-width",`${Xt}px`),cn.setProperty("--radix-popper-anchor-height",`${Jo}px`)}}),L&&a0({element:L,padding:v}),h0({arrowWidth:$,arrowHeight:Y}),S&&s0({strategy:"referenceHidden",...ce})]}),[j,W]=Iv(q),de=Oe(T);Le(()=>{ve&&(de==null||de())},[ve,de]);const me=(oe=b.arrow)==null?void 0:oe.x,Ae=(he=b.arrow)==null?void 0:he.y,Pe=((Ce=b.arrow)==null?void 0:Ce.centerOffset)!==0,[Je,Te]=p.useState();return Le(()=>{A&&Te(window.getComputedStyle(A).zIndex)},[A]),x.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:ve?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Je,"--radix-popper-transform-origin":[(xe=b.transformOrigin)==null?void 0:xe.x,(ge=b.transformOrigin)==null?void 0:ge.y].join(" "),...((Se=b.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:x.jsx(f0,{scope:o,placedSide:j,onArrowChange:F,arrowX:me,arrowY:Ae,shouldHideArrow:Pe,children:x.jsx(Q.div,{"data-side":j,"data-align":W,...C,ref:M,style:{...C.style,animation:ve?void 0:"none"}})})})});Nv.displayName=Gu;var Av="PopperArrow",v0={top:"bottom",right:"left",bottom:"top",left:"right"},Mv=p.forwardRef(function(i,o){const{__scopePopper:s,...a}=i,c=p0(Av,s),f=v0[c.placedSide];return x.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:x.jsx(c0,{...a,ref:o,style:{...a.style,display:"block"}})})});Mv.displayName=Av;function m0(n){return n!==null}var h0=n=>({name:"transformOrigin",options:n,fn(i){var P,A,k;const{placement:o,rects:s,middlewareData:a}=i,f=((P=a.arrow)==null?void 0:P.centerOffset)!==0,v=f?0:n.arrowWidth,m=f?0:n.arrowHeight,[h,y]=Iv(o),w={start:"0%",center:"50%",end:"100%"}[y],S=(((A=a.arrow)==null?void 0:A.x)??0)+v/2,E=(((k=a.arrow)==null?void 0:k.y)??0)+m/2;let T="",C="";return h==="bottom"?(T=f?w:`${S}px`,C=`${-m}px`):h==="top"?(T=f?w:`${S}px`,C=`${s.floating.height+m}px`):h==="right"?(T=`${-m}px`,C=f?w:`${E}px`):h==="left"&&(T=`${s.floating.width+m}px`,C=f?w:`${E}px`),{data:{x:T,y:C}}}});function Iv(n){const[i,o="center"]=n.split("-");return[i,o]}var Wo=Tv,Wr=kv,Vo=Nv,Ko=Mv,g0="Portal",Vr=p.forwardRef((n,i)=>{var v;const{container:o,...s}=n,[a,c]=p.useState(!1);Le(()=>c(!0),[]);const f=o||a&&((v=globalThis==null?void 0:globalThis.document)==null?void 0:v.body);return f?tv.createPortal(x.jsx(Q.div,{...s,ref:i}),f):null});Vr.displayName=g0;function y0(n,i){return p.useReducer((o,s)=>i[o][s]??o,n)}var $e=n=>{const{present:i,children:o}=n,s=w0(i),a=typeof o=="function"?o({present:s.isPresent}):p.Children.only(o),c=ae(s.ref,x0(a));return typeof o=="function"||s.isPresent?p.cloneElement(a,{ref:c}):null};$e.displayName="Presence";function w0(n){const[i,o]=p.useState(),s=p.useRef(null),a=p.useRef(n),c=p.useRef("none"),f=n?"mounted":"unmounted",[v,m]=y0(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const h=ul(s.current);c.current=v==="mounted"?h:"none"},[v]),Le(()=>{const h=s.current,y=a.current;if(y!==n){const S=c.current,E=ul(h);n?m("MOUNT"):E==="none"||(h==null?void 0:h.display)==="none"?m("UNMOUNT"):m(y&&S!==E?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,m]),Le(()=>{if(i){let h;const y=i.ownerDocument.defaultView??window,w=E=>{const C=ul(s.current).includes(CSS.escape(E.animationName));if(E.target===i&&C&&(m("ANIMATION_END"),!a.current)){const P=i.style.animationFillMode;i.style.animationFillMode="forwards",h=y.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=P)})}},S=E=>{E.target===i&&(c.current=ul(s.current))};return i.addEventListener("animationstart",S),i.addEventListener("animationcancel",w),i.addEventListener("animationend",w),()=>{y.clearTimeout(h),i.removeEventListener("animationstart",S),i.removeEventListener("animationcancel",w),i.removeEventListener("animationend",w)}}else m("ANIMATION_END")},[i,m]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:p.useCallback(h=>{s.current=h?getComputedStyle(h):null,o(h)},[])}}function ul(n){return(n==null?void 0:n.animationName)||"none"}function x0(n){var s,a;let i=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var du="rovingFocusGroup.onEntryFocus",S0={bubbles:!1,cancelable:!0},Go="RovingFocusGroup",[Cu,Dv,C0]=Il(Go),[E0,Kr]=Fe(Go,[C0]),[P0,R0]=E0(Go),Ov=p.forwardRef((n,i)=>x.jsx(Cu.Provider,{scope:n.__scopeRovingFocusGroup,children:x.jsx(Cu.Slot,{scope:n.__scopeRovingFocusGroup,children:x.jsx(T0,{...n,ref:i})})}));Ov.displayName=Go;var T0=p.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:a=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...w}=n,S=p.useRef(null),E=ae(i,S),T=Br(c),[C,P]=ct({prop:f,defaultProp:v??null,onChange:m,caller:Go}),[A,k]=p.useState(!1),M=Oe(h),L=Dv(o),F=p.useRef(!1),[V,$]=p.useState(0);return p.useEffect(()=>{const Y=S.current;if(Y)return Y.addEventListener(du,M),()=>Y.removeEventListener(du,M)},[M]),x.jsx(P0,{scope:o,orientation:s,dir:T,loop:a,currentTabStopId:C,onItemFocus:p.useCallback(Y=>P(Y),[P]),onItemShiftTab:p.useCallback(()=>k(!0),[]),onFocusableItemAdd:p.useCallback(()=>$(Y=>Y+1),[]),onFocusableItemRemove:p.useCallback(()=>$(Y=>Y-1),[]),children:x.jsx(Q.div,{tabIndex:A||V===0?-1:0,"data-orientation":s,...w,ref:E,style:{outline:"none",...n.style},onMouseDown:z(n.onMouseDown,()=>{F.current=!0}),onFocus:z(n.onFocus,Y=>{const Z=!F.current;if(Y.target===Y.currentTarget&&Z&&!A){const ne=new CustomEvent(du,S0);if(Y.currentTarget.dispatchEvent(ne),!ne.defaultPrevented){const se=L().filter(q=>q.focusable),ue=se.find(q=>q.active),ce=se.find(q=>q.id===C),pe=[ue,ce,...se].filter(Boolean).map(q=>q.ref.current);jv(pe,y)}}F.current=!1}),onBlur:z(n.onBlur,()=>k(!1))})})}),Lv="RovingFocusGroupItem",bv=p.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:a=!1,tabStopId:c,children:f,...v}=n,m=ht(),h=c||m,y=R0(Lv,o),w=y.currentTabStopId===h,S=Dv(o),{onFocusableItemAdd:E,onFocusableItemRemove:T,currentTabStopId:C}=y;return p.useEffect(()=>{if(s)return E(),()=>T()},[s,E,T]),x.jsx(Cu.ItemSlot,{scope:o,id:h,focusable:s,active:a,children:x.jsx(Q.span,{tabIndex:w?0:-1,"data-orientation":y.orientation,...v,ref:i,onMouseDown:z(n.onMouseDown,P=>{s?y.onItemFocus(h):P.preventDefault()}),onFocus:z(n.onFocus,()=>y.onItemFocus(h)),onKeyDown:z(n.onKeyDown,P=>{if(P.key==="Tab"&&P.shiftKey){y.onItemShiftTab();return}if(P.target!==P.currentTarget)return;const A=N0(P,y.orientation,y.dir);if(A!==void 0){if(P.metaKey||P.ctrlKey||P.altKey||P.shiftKey)return;P.preventDefault();let M=S().filter(L=>L.focusable).map(L=>L.ref.current);if(A==="last")M.reverse();else if(A==="prev"||A==="next"){A==="prev"&&M.reverse();const L=M.indexOf(P.currentTarget);M=y.loop?A0(M,L+1):M.slice(L+1)}setTimeout(()=>jv(M))}}),children:typeof f=="function"?f({isCurrentTabStop:w,hasTabStop:C!=null}):f})})});bv.displayName=Lv;var _0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k0(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function N0(n,i,o){const s=k0(n.key,o);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return _0[s]}function jv(n,i=!1){const o=document.activeElement;for(const s of n)if(s===o||(s.focus({preventScroll:i}),document.activeElement!==o))return}function A0(n,i){return n.map((o,s)=>n[(i+s)%n.length])}var Yu=Ov,Xu=bv,M0=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},Mr=new WeakMap,cl=new WeakMap,dl={},fu=0,Fv=function(n){return n&&(n.host||Fv(n.parentNode))},I0=function(n,i){return i.map(function(o){if(n.contains(o))return o;var s=Fv(o);return s&&n.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},D0=function(n,i,o,s){var a=I0(i,Array.isArray(n)?n:[n]);dl[o]||(dl[o]=new WeakMap);var c=dl[o],f=[],v=new Set,m=new Set(a),h=function(w){!w||v.has(w)||(v.add(w),h(w.parentNode))};a.forEach(h);var y=function(w){!w||m.has(w)||Array.prototype.forEach.call(w.children,function(S){if(v.has(S))y(S);else try{var E=S.getAttribute(s),T=E!==null&&E!=="false",C=(Mr.get(S)||0)+1,P=(c.get(S)||0)+1;Mr.set(S,C),c.set(S,P),f.push(S),C===1&&T&&cl.set(S,!0),P===1&&S.setAttribute(o,"true"),T||S.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",S,A)}})};return y(i),v.clear(),fu++,function(){f.forEach(function(w){var S=Mr.get(w)-1,E=c.get(w)-1;Mr.set(w,S),c.set(w,E),S||(cl.has(w)||w.removeAttribute(s),cl.delete(w)),E||w.removeAttribute(o)}),fu--,fu||(Mr=new WeakMap,Mr=new WeakMap,cl=new WeakMap,dl={})}},$l=function(n,i,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),a=M0(n);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),D0(s,a,o,"aria-hidden")):function(){return null}},Ut=function(){return Ut=Object.assign||function(i){for(var o,s=1,a=arguments.length;s<a;s++){o=arguments[s];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c])}return i},Ut.apply(this,arguments)};function $v(n,i){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(o[s[a]]=n[s[a]]);return o}function O0(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,c;s<a;s++)(c||!(s in i))&&(c||(c=Array.prototype.slice.call(i,0,s)),c[s]=i[s]);return n.concat(c||Array.prototype.slice.call(i))}var hl="right-scroll-bar-position",gl="width-before-scroll-bar",L0="with-scroll-bars-hidden",b0="--removed-body-scroll-bar-size";function pu(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function j0(n,i){var o=p.useState(function(){return{value:n,callback:i,facade:{get current(){return o.value},set current(s){var a=o.value;a!==s&&(o.value=s,o.callback(s,a))}}}})[0];return o.callback=i,o.facade}var F0=typeof window<"u"?p.useLayoutEffect:p.useEffect,Hp=new WeakMap;function $0(n,i){var o=j0(null,function(s){return n.forEach(function(a){return pu(a,s)})});return F0(function(){var s=Hp.get(o);if(s){var a=new Set(s),c=new Set(n),f=o.current;a.forEach(function(v){c.has(v)||pu(v,null)}),c.forEach(function(v){a.has(v)||pu(v,f)})}Hp.set(o,n)},[n]),o}function z0(n){return n}function B0(n,i){i===void 0&&(i=z0);var o=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(c){var f=i(c,s);return o.push(f),function(){o=o.filter(function(v){return v!==f})}},assignSyncMedium:function(c){for(s=!0;o.length;){var f=o;o=[],f.forEach(c)}o={push:function(v){return c(v)},filter:function(){return o}}},assignMedium:function(c){s=!0;var f=[];if(o.length){var v=o;o=[],v.forEach(c),f=o}var m=function(){var y=f;f=[],y.forEach(c)},h=function(){return Promise.resolve().then(m)};h(),o={push:function(y){f.push(y),h()},filter:function(y){return f=f.filter(y),o}}}};return a}function U0(n){n===void 0&&(n={});var i=B0(null);return i.options=Ut({async:!0,ssr:!1},n),i}var zv=function(n){var i=n.sideCar,o=$v(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return p.createElement(s,Ut({},o))};zv.isSideCarExport=!0;function H0(n,i){return n.useMedium(i),zv}var Bv=U0(),vu=function(){},zl=p.forwardRef(function(n,i){var o=p.useRef(null),s=p.useState({onScrollCapture:vu,onWheelCapture:vu,onTouchMoveCapture:vu}),a=s[0],c=s[1],f=n.forwardProps,v=n.children,m=n.className,h=n.removeScrollBar,y=n.enabled,w=n.shards,S=n.sideCar,E=n.noRelative,T=n.noIsolation,C=n.inert,P=n.allowPinchZoom,A=n.as,k=A===void 0?"div":A,M=n.gapMode,L=$v(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=S,V=$0([o,i]),$=Ut(Ut({},L),a);return p.createElement(p.Fragment,null,y&&p.createElement(F,{sideCar:Bv,removeScrollBar:h,shards:w,noRelative:E,noIsolation:T,inert:C,setCallbacks:c,allowPinchZoom:!!P,lockRef:o,gapMode:M}),f?p.cloneElement(p.Children.only(v),Ut(Ut({},$),{ref:V})):p.createElement(k,Ut({},$,{className:m,ref:V}),v))});zl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zl.classNames={fullWidth:gl,zeroRight:hl};var W0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function V0(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=W0();return i&&n.setAttribute("nonce",i),n}function K0(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function G0(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var Y0=function(){var n=0,i=null;return{add:function(o){n==0&&(i=V0())&&(K0(i,o),G0(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},X0=function(){var n=Y0();return function(i,o){p.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&o])}},Uv=function(){var n=X0(),i=function(o){var s=o.styles,a=o.dynamic;return n(s,a),null};return i},Q0={left:0,top:0,right:0,gap:0},mu=function(n){return parseInt(n||"",10)||0},Z0=function(n){var i=window.getComputedStyle(document.body),o=i[n==="padding"?"paddingLeft":"marginLeft"],s=i[n==="padding"?"paddingTop":"marginTop"],a=i[n==="padding"?"paddingRight":"marginRight"];return[mu(o),mu(s),mu(a)]},q0=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Q0;var i=Z0(n),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-o+i[2]-i[0])}},J0=Uv(),Lr="data-scroll-locked",eC=function(n,i,o,s){var a=n.left,c=n.top,f=n.right,v=n.gap;return o===void 0&&(o="margin"),`
  .`.concat(L0,` {
   overflow: hidden `).concat(s,`;
   padding-right: `).concat(v,"px ").concat(s,`;
  }
  body[`).concat(Lr,`] {
    overflow: hidden `).concat(s,`;
    overscroll-behavior: contain;
    `).concat([i&&"position: relative ".concat(s,";"),o==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(c,`px;
    padding-right: `).concat(f,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(v,"px ").concat(s,`;
    `),o==="padding"&&"padding-right: ".concat(v,"px ").concat(s,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(hl,` {
    right: `).concat(v,"px ").concat(s,`;
  }
  
  .`).concat(gl,` {
    margin-right: `).concat(v,"px ").concat(s,`;
  }
  
  .`).concat(hl," .").concat(hl,` {
    right: 0 `).concat(s,`;
  }
  
  .`).concat(gl," .").concat(gl,` {
    margin-right: 0 `).concat(s,`;
  }
  
  body[`).concat(Lr,`] {
    `).concat(b0,": ").concat(v,`px;
  }
`)},Wp=function(){var n=parseInt(document.body.getAttribute(Lr)||"0",10);return isFinite(n)?n:0},tC=function(){p.useEffect(function(){return document.body.setAttribute(Lr,(Wp()+1).toString()),function(){var n=Wp()-1;n<=0?document.body.removeAttribute(Lr):document.body.setAttribute(Lr,n.toString())}},[])},nC=function(n){var i=n.noRelative,o=n.noImportant,s=n.gapMode,a=s===void 0?"margin":s;tC();var c=p.useMemo(function(){return q0(a)},[a]);return p.createElement(J0,{styles:eC(c,!i,a,o?"":"!important")})},Eu=!1;if(typeof window<"u")try{var fl=Object.defineProperty({},"passive",{get:function(){return Eu=!0,!0}});window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{Eu=!1}var Ir=Eu?{passive:!1}:!1,rC=function(n){return n.tagName==="TEXTAREA"},Hv=function(n,i){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[i]!=="hidden"&&!(o.overflowY===o.overflowX&&!rC(n)&&o[i]==="visible")},oC=function(n){return Hv(n,"overflowY")},iC=function(n){return Hv(n,"overflowX")},Vp=function(n,i){var o=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=Wv(n,s);if(a){var c=Vv(n,s),f=c[1],v=c[2];if(f>v)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},lC=function(n){var i=n.scrollTop,o=n.scrollHeight,s=n.clientHeight;return[i,o,s]},sC=function(n){var i=n.scrollLeft,o=n.scrollWidth,s=n.clientWidth;return[i,o,s]},Wv=function(n,i){return n==="v"?oC(i):iC(i)},Vv=function(n,i){return n==="v"?lC(i):sC(i)},aC=function(n,i){return n==="h"&&i==="rtl"?-1:1},uC=function(n,i,o,s,a){var c=aC(n,window.getComputedStyle(i).direction),f=c*s,v=o.target,m=i.contains(v),h=!1,y=f>0,w=0,S=0;do{if(!v)break;var E=Vv(n,v),T=E[0],C=E[1],P=E[2],A=C-P-c*T;(T||A)&&Wv(n,v)&&(w+=A,S+=T);var k=v.parentNode;v=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!m&&v!==document.body||m&&(i.contains(v)||i===v));return(y&&Math.abs(w)<1||!y&&Math.abs(S)<1)&&(h=!0),h},pl=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Kp=function(n){return[n.deltaX,n.deltaY]},Gp=function(n){return n&&"current"in n?n.current:n},cC=function(n,i){return n[0]===i[0]&&n[1]===i[1]},dC=function(n){return`
  .block-interactivity-`.concat(n,` {pointer-events: none;}
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
`)},fC=0,Dr=[];function pC(n){var i=p.useRef([]),o=p.useRef([0,0]),s=p.useRef(),a=p.useState(fC++)[0],c=p.useState(Uv)[0],f=p.useRef(n);p.useEffect(function(){f.current=n},[n]),p.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var C=O0([n.lockRef.current],(n.shards||[]).map(Gp),!0).filter(Boolean);return C.forEach(function(P){return P.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),C.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var v=p.useCallback(function(C,P){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!f.current.allowPinchZoom;var A=pl(C),k=o.current,M="deltaX"in C?C.deltaX:k[0]-A[0],L="deltaY"in C?C.deltaY:k[1]-A[1],F,V=C.target,$=Math.abs(M)>Math.abs(L)?"h":"v";if("touches"in C&&$==="h"&&V.type==="range")return!1;var Y=Vp($,V);if(!Y)return!0;if(Y?F=$:(F=$==="v"?"h":"v",Y=Vp($,V)),!Y)return!1;if(!s.current&&"changedTouches"in C&&(M||L)&&(s.current=F),!F)return!0;var Z=s.current||F;return uC(Z,P,C,Z==="h"?M:L)},[]),m=p.useCallback(function(C){var P=C;if(!(!Dr.length||Dr[Dr.length-1]!==c)){var A="deltaY"in P?Kp(P):pl(P),k=i.current.filter(function(F){return F.name===P.type&&(F.target===P.target||P.target===F.shadowParent)&&cC(F.delta,A)})[0];if(k&&k.should){P.cancelable&&P.preventDefault();return}if(!k){var M=(f.current.shards||[]).map(Gp).filter(Boolean).filter(function(F){return F.contains(P.target)}),L=M.length>0?v(P,M[0]):!f.current.noIsolation;L&&P.cancelable&&P.preventDefault()}}},[]),h=p.useCallback(function(C,P,A,k){var M={name:C,delta:P,target:A,should:k,shadowParent:vC(A)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(L){return L!==M})},1)},[]),y=p.useCallback(function(C){o.current=pl(C),s.current=void 0},[]),w=p.useCallback(function(C){h(C.type,Kp(C),C.target,v(C,n.lockRef.current))},[]),S=p.useCallback(function(C){h(C.type,pl(C),C.target,v(C,n.lockRef.current))},[]);p.useEffect(function(){return Dr.push(c),n.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:S}),document.addEventListener("wheel",m,Ir),document.addEventListener("touchmove",m,Ir),document.addEventListener("touchstart",y,Ir),function(){Dr=Dr.filter(function(C){return C!==c}),document.removeEventListener("wheel",m,Ir),document.removeEventListener("touchmove",m,Ir),document.removeEventListener("touchstart",y,Ir)}},[]);var E=n.removeScrollBar,T=n.inert;return p.createElement(p.Fragment,null,T?p.createElement(c,{styles:dC(a)}):null,E?p.createElement(nC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function vC(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const mC=H0(Bv,pC);var Yo=p.forwardRef(function(n,i){return p.createElement(zl,Ut({},n,{ref:i,sideCar:mC}))});Yo.classNames=zl.classNames;var Pu=["Enter"," "],hC=["ArrowDown","PageUp","Home"],Kv=["ArrowUp","PageDown","End"],gC=[...hC,...Kv],yC={ltr:[...Pu,"ArrowRight"],rtl:[...Pu,"ArrowLeft"]},wC={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Xo="Menu",[$o,xC,SC]=Il(Xo),[or,Gv]=Fe(Xo,[SC,Gt,Kr]),Bl=Gt(),Yv=Kr(),[CC,ir]=or(Xo),[EC,Qo]=or(Xo),Xv=n=>{const{__scopeMenu:i,open:o=!1,children:s,dir:a,onOpenChange:c,modal:f=!0}=n,v=Bl(i),[m,h]=p.useState(null),y=p.useRef(!1),w=Oe(c),S=Br(a);return p.useEffect(()=>{const E=()=>{y.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>y.current=!1;return document.addEventListener("keydown",E,{capture:!0}),()=>{document.removeEventListener("keydown",E,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),x.jsx(Wo,{...v,children:x.jsx(CC,{scope:i,open:o,onOpenChange:w,content:m,onContentChange:h,children:x.jsx(EC,{scope:i,onClose:p.useCallback(()=>w(!1),[w]),isUsingKeyboardRef:y,dir:S,modal:f,children:s})})})};Xv.displayName=Xo;var PC="MenuAnchor",Qu=p.forwardRef((n,i)=>{const{__scopeMenu:o,...s}=n,a=Bl(o);return x.jsx(Wr,{...a,...s,ref:i})});Qu.displayName=PC;var Zu="MenuPortal",[RC,Qv]=or(Zu,{forceMount:void 0}),Zv=n=>{const{__scopeMenu:i,forceMount:o,children:s,container:a}=n,c=ir(Zu,i);return x.jsx(RC,{scope:i,forceMount:o,children:x.jsx($e,{present:o||c.open,children:x.jsx(Vr,{asChild:!0,container:a,children:s})})})};Zv.displayName=Zu;var Pt="MenuContent",[TC,qu]=or(Pt),qv=p.forwardRef((n,i)=>{const o=Qv(Pt,n.__scopeMenu),{forceMount:s=o.forceMount,...a}=n,c=ir(Pt,n.__scopeMenu),f=Qo(Pt,n.__scopeMenu);return x.jsx($o.Provider,{scope:n.__scopeMenu,children:x.jsx($e,{present:s||c.open,children:x.jsx($o.Slot,{scope:n.__scopeMenu,children:f.modal?x.jsx(_C,{...a,ref:i}):x.jsx(kC,{...a,ref:i})})})})}),_C=p.forwardRef((n,i)=>{const o=ir(Pt,n.__scopeMenu),s=p.useRef(null),a=ae(i,s);return p.useEffect(()=>{const c=s.current;if(c)return $l(c)},[]),x.jsx(Ju,{...n,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:z(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),kC=p.forwardRef((n,i)=>{const o=ir(Pt,n.__scopeMenu);return x.jsx(Ju,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),NC=In("MenuContent.ScrollLock"),Ju=p.forwardRef((n,i)=>{const{__scopeMenu:o,loop:s=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:f,disableOutsidePointerEvents:v,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:S,onDismiss:E,disableOutsideScroll:T,...C}=n,P=ir(Pt,o),A=Qo(Pt,o),k=Bl(o),M=Yv(o),L=xC(o),[F,V]=p.useState(null),$=p.useRef(null),Y=ae(i,$,P.onContentChange),Z=p.useRef(0),ne=p.useRef(""),se=p.useRef(0),ue=p.useRef(null),ce=p.useRef("right"),G=p.useRef(0),pe=T?Yo:p.Fragment,q=T?{as:NC,allowPinchZoom:!0}:void 0,ve=j=>{var oe,he;const W=ne.current+j,de=L().filter(Ce=>!Ce.disabled),me=document.activeElement,Ae=(oe=de.find(Ce=>Ce.ref.current===me))==null?void 0:oe.textValue,Pe=de.map(Ce=>Ce.textValue),Je=BC(Pe,W,Ae),Te=(he=de.find(Ce=>Ce.textValue===Je))==null?void 0:he.ref.current;(function Ce(xe){ne.current=xe,window.clearTimeout(Z.current),xe!==""&&(Z.current=window.setTimeout(()=>Ce(""),1e3))})(W),Te&&setTimeout(()=>Te.focus())};p.useEffect(()=>()=>window.clearTimeout(Z.current),[]),Dl();const b=p.useCallback(j=>{var de,me;return ce.current===((de=ue.current)==null?void 0:de.side)&&HC(j,(me=ue.current)==null?void 0:me.area)},[]);return x.jsx(TC,{scope:o,searchRef:ne,onItemEnter:p.useCallback(j=>{b(j)&&j.preventDefault()},[b]),onItemLeave:p.useCallback(j=>{var W;b(j)||((W=$.current)==null||W.focus(),V(null))},[b]),onTriggerLeave:p.useCallback(j=>{b(j)&&j.preventDefault()},[b]),pointerGraceTimerRef:se,onPointerGraceIntentChange:p.useCallback(j=>{ue.current=j},[]),children:x.jsx(pe,{...q,children:x.jsx(Uo,{asChild:!0,trapped:a,onMountAutoFocus:z(c,j=>{var W;j.preventDefault(),(W=$.current)==null||W.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:x.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:S,onDismiss:E,children:x.jsx(Yu,{asChild:!0,...M,dir:A.dir,orientation:"vertical",loop:s,currentTabStopId:F,onCurrentTabStopIdChange:V,onEntryFocus:z(m,j=>{A.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:x.jsx(Vo,{role:"menu","aria-orientation":"vertical","data-state":vm(P.open),"data-radix-menu-content":"",dir:A.dir,...k,...C,ref:Y,style:{outline:"none",...C.style},onKeyDown:z(C.onKeyDown,j=>{const de=j.target.closest("[data-radix-menu-content]")===j.currentTarget,me=j.ctrlKey||j.altKey||j.metaKey,Ae=j.key.length===1;de&&(j.key==="Tab"&&j.preventDefault(),!me&&Ae&&ve(j.key));const Pe=$.current;if(j.target!==Pe||!gC.includes(j.key))return;j.preventDefault();const Te=L().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);Kv.includes(j.key)&&Te.reverse(),$C(Te)}),onBlur:z(n.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(Z.current),ne.current="")}),onPointerMove:z(n.onPointerMove,zo(j=>{const W=j.target,de=G.current!==j.clientX;if(j.currentTarget.contains(W)&&de){const me=j.clientX>G.current?"right":"left";ce.current=me,G.current=j.clientX}}))})})})})})})});qv.displayName=Pt;var AC="MenuGroup",ec=p.forwardRef((n,i)=>{const{__scopeMenu:o,...s}=n;return x.jsx(Q.div,{role:"group",...s,ref:i})});ec.displayName=AC;var MC="MenuLabel",Jv=p.forwardRef((n,i)=>{const{__scopeMenu:o,...s}=n;return x.jsx(Q.div,{...s,ref:i})});Jv.displayName=MC;var Cl="MenuItem",Yp="menu.itemSelect",Ul=p.forwardRef((n,i)=>{const{disabled:o=!1,onSelect:s,...a}=n,c=p.useRef(null),f=Qo(Cl,n.__scopeMenu),v=qu(Cl,n.__scopeMenu),m=ae(i,c),h=p.useRef(!1),y=()=>{const w=c.current;if(!o&&w){const S=new CustomEvent(Yp,{bubbles:!0,cancelable:!0});w.addEventListener(Yp,E=>s==null?void 0:s(E),{once:!0}),Fu(w,S),S.defaultPrevented?h.current=!1:f.onClose()}};return x.jsx(em,{...a,ref:m,disabled:o,onClick:z(n.onClick,y),onPointerDown:w=>{var S;(S=n.onPointerDown)==null||S.call(n,w),h.current=!0},onPointerUp:z(n.onPointerUp,w=>{var S;h.current||(S=w.currentTarget)==null||S.click()}),onKeyDown:z(n.onKeyDown,w=>{const S=v.searchRef.current!=="";o||S&&w.key===" "||Pu.includes(w.key)&&(w.currentTarget.click(),w.preventDefault())})})});Ul.displayName=Cl;var em=p.forwardRef((n,i)=>{const{__scopeMenu:o,disabled:s=!1,textValue:a,...c}=n,f=qu(Cl,o),v=Yv(o),m=p.useRef(null),h=ae(i,m),[y,w]=p.useState(!1),[S,E]=p.useState("");return p.useEffect(()=>{const T=m.current;T&&E((T.textContent??"").trim())},[c.children]),x.jsx($o.ItemSlot,{scope:o,disabled:s,textValue:a??S,children:x.jsx(Xu,{asChild:!0,...v,focusable:!s,children:x.jsx(Q.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:h,onPointerMove:z(n.onPointerMove,zo(T=>{s?f.onItemLeave(T):(f.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:z(n.onPointerLeave,zo(T=>f.onItemLeave(T))),onFocus:z(n.onFocus,()=>w(!0)),onBlur:z(n.onBlur,()=>w(!1))})})})}),IC="MenuCheckboxItem",tm=p.forwardRef((n,i)=>{const{checked:o=!1,onCheckedChange:s,...a}=n;return x.jsx(lm,{scope:n.__scopeMenu,checked:o,children:x.jsx(Ul,{role:"menuitemcheckbox","aria-checked":El(o)?"mixed":o,...a,ref:i,"data-state":nc(o),onSelect:z(a.onSelect,()=>s==null?void 0:s(El(o)?!0:!o),{checkForDefaultPrevented:!1})})})});tm.displayName=IC;var nm="MenuRadioGroup",[DC,OC]=or(nm,{value:void 0,onValueChange:()=>{}}),rm=p.forwardRef((n,i)=>{const{value:o,onValueChange:s,...a}=n,c=Oe(s);return x.jsx(DC,{scope:n.__scopeMenu,value:o,onValueChange:c,children:x.jsx(ec,{...a,ref:i})})});rm.displayName=nm;var om="MenuRadioItem",im=p.forwardRef((n,i)=>{const{value:o,...s}=n,a=OC(om,n.__scopeMenu),c=o===a.value;return x.jsx(lm,{scope:n.__scopeMenu,checked:c,children:x.jsx(Ul,{role:"menuitemradio","aria-checked":c,...s,ref:i,"data-state":nc(c),onSelect:z(s.onSelect,()=>{var f;return(f=a.onValueChange)==null?void 0:f.call(a,o)},{checkForDefaultPrevented:!1})})})});im.displayName=om;var tc="MenuItemIndicator",[lm,LC]=or(tc,{checked:!1}),sm=p.forwardRef((n,i)=>{const{__scopeMenu:o,forceMount:s,...a}=n,c=LC(tc,o);return x.jsx($e,{present:s||El(c.checked)||c.checked===!0,children:x.jsx(Q.span,{...a,ref:i,"data-state":nc(c.checked)})})});sm.displayName=tc;var bC="MenuSeparator",am=p.forwardRef((n,i)=>{const{__scopeMenu:o,...s}=n;return x.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...s,ref:i})});am.displayName=bC;var jC="MenuArrow",um=p.forwardRef((n,i)=>{const{__scopeMenu:o,...s}=n,a=Bl(o);return x.jsx(Ko,{...a,...s,ref:i})});um.displayName=jC;var FC="MenuSub",[v1,cm]=or(FC),Lo="MenuSubTrigger",dm=p.forwardRef((n,i)=>{const o=ir(Lo,n.__scopeMenu),s=Qo(Lo,n.__scopeMenu),a=cm(Lo,n.__scopeMenu),c=qu(Lo,n.__scopeMenu),f=p.useRef(null),{pointerGraceTimerRef:v,onPointerGraceIntentChange:m}=c,h={__scopeMenu:n.__scopeMenu},y=p.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return p.useEffect(()=>y,[y]),p.useEffect(()=>{const w=v.current;return()=>{window.clearTimeout(w),m(null)}},[v,m]),x.jsx(Qu,{asChild:!0,...h,children:x.jsx(em,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":a.contentId,"data-state":vm(o.open),...n,ref:Ml(i,a.onTriggerChange),onClick:w=>{var S;(S=n.onClick)==null||S.call(n,w),!(n.disabled||w.defaultPrevented)&&(w.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:z(n.onPointerMove,zo(w=>{c.onItemEnter(w),!w.defaultPrevented&&!n.disabled&&!o.open&&!f.current&&(c.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{o.onOpenChange(!0),y()},100))})),onPointerLeave:z(n.onPointerLeave,zo(w=>{var E,T;y();const S=(E=o.content)==null?void 0:E.getBoundingClientRect();if(S){const C=(T=o.content)==null?void 0:T.dataset.side,P=C==="right",A=P?-5:5,k=S[P?"left":"right"],M=S[P?"right":"left"];c.onPointerGraceIntentChange({area:[{x:w.clientX+A,y:w.clientY},{x:k,y:S.top},{x:M,y:S.top},{x:M,y:S.bottom},{x:k,y:S.bottom}],side:C}),window.clearTimeout(v.current),v.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(w),w.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:z(n.onKeyDown,w=>{var E;const S=c.searchRef.current!=="";n.disabled||S&&w.key===" "||yC[s.dir].includes(w.key)&&(o.onOpenChange(!0),(E=o.content)==null||E.focus(),w.preventDefault())})})})});dm.displayName=Lo;var fm="MenuSubContent",pm=p.forwardRef((n,i)=>{const o=Qv(Pt,n.__scopeMenu),{forceMount:s=o.forceMount,...a}=n,c=ir(Pt,n.__scopeMenu),f=Qo(Pt,n.__scopeMenu),v=cm(fm,n.__scopeMenu),m=p.useRef(null),h=ae(i,m);return x.jsx($o.Provider,{scope:n.__scopeMenu,children:x.jsx($e,{present:s||c.open,children:x.jsx($o.Slot,{scope:n.__scopeMenu,children:x.jsx(Ju,{id:v.contentId,"aria-labelledby":v.triggerId,...a,ref:h,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var w;f.isUsingKeyboardRef.current&&((w=m.current)==null||w.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:z(n.onFocusOutside,y=>{y.target!==v.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:z(n.onEscapeKeyDown,y=>{f.onClose(),y.preventDefault()}),onKeyDown:z(n.onKeyDown,y=>{var E;const w=y.currentTarget.contains(y.target),S=wC[f.dir].includes(y.key);w&&S&&(c.onOpenChange(!1),(E=v.trigger)==null||E.focus(),y.preventDefault())})})})})})});pm.displayName=fm;function vm(n){return n?"open":"closed"}function El(n){return n==="indeterminate"}function nc(n){return El(n)?"indeterminate":n?"checked":"unchecked"}function $C(n){const i=document.activeElement;for(const o of n)if(o===i||(o.focus(),document.activeElement!==i))return}function zC(n,i){return n.map((o,s)=>n[(i+s)%n.length])}function BC(n,i,o){const a=i.length>1&&Array.from(i).every(h=>h===i[0])?i[0]:i,c=o?n.indexOf(o):-1;let f=zC(n,Math.max(c,0));a.length===1&&(f=f.filter(h=>h!==o));const m=f.find(h=>h.toLowerCase().startsWith(a.toLowerCase()));return m!==o?m:void 0}function UC(n,i){const{x:o,y:s}=n;let a=!1;for(let c=0,f=i.length-1;c<i.length;f=c++){const v=i[c],m=i[f],h=v.x,y=v.y,w=m.x,S=m.y;y>s!=S>s&&o<(w-h)*(s-y)/(S-y)+h&&(a=!a)}return a}function HC(n,i){if(!i)return!1;const o={x:n.clientX,y:n.clientY};return UC(o,i)}function zo(n){return i=>i.pointerType==="mouse"?n(i):void 0}var WC=Xv,VC=Qu,KC=Zv,GC=qv,YC=ec,XC=Jv,QC=Ul,ZC=tm,qC=rm,JC=im,eE=sm,tE=am,nE=um,rE=dm,oE=pm,Hl="DropdownMenu",[iE,m1]=Fe(Hl,[Gv]),nt=Gv(),[lE,mm]=iE(Hl),hm=n=>{const{__scopeDropdownMenu:i,children:o,dir:s,open:a,defaultOpen:c,onOpenChange:f,modal:v=!0}=n,m=nt(i),h=p.useRef(null),[y,w]=ct({prop:a,defaultProp:c??!1,onChange:f,caller:Hl});return x.jsx(lE,{scope:i,triggerId:ht(),triggerRef:h,contentId:ht(),open:y,onOpenChange:w,onOpenToggle:p.useCallback(()=>w(S=>!S),[w]),modal:v,children:x.jsx(WC,{...m,open:y,onOpenChange:w,dir:s,modal:v,children:o})})};hm.displayName=Hl;var gm="DropdownMenuTrigger",ym=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,disabled:s=!1,...a}=n,c=mm(gm,o),f=nt(o);return x.jsx(VC,{asChild:!0,...f,children:x.jsx(Q.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...a,ref:Ml(i,c.triggerRef),onPointerDown:z(n.onPointerDown,v=>{!s&&v.button===0&&v.ctrlKey===!1&&(c.onOpenToggle(),c.open||v.preventDefault())}),onKeyDown:z(n.onKeyDown,v=>{s||(["Enter"," "].includes(v.key)&&c.onOpenToggle(),v.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(v.key)&&v.preventDefault())})})})});ym.displayName=gm;var sE="DropdownMenuPortal",wm=n=>{const{__scopeDropdownMenu:i,...o}=n,s=nt(i);return x.jsx(KC,{...s,...o})};wm.displayName=sE;var xm="DropdownMenuContent",Sm=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=mm(xm,o),c=nt(o),f=p.useRef(!1);return x.jsx(GC,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...s,ref:i,onCloseAutoFocus:z(n.onCloseAutoFocus,v=>{var m;f.current||(m=a.triggerRef.current)==null||m.focus(),f.current=!1,v.preventDefault()}),onInteractOutside:z(n.onInteractOutside,v=>{const m=v.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0,y=m.button===2||h;(!a.modal||y)&&(f.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Sm.displayName=xm;var aE="DropdownMenuGroup",uE=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(YC,{...a,...s,ref:i})});uE.displayName=aE;var cE="DropdownMenuLabel",Cm=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(XC,{...a,...s,ref:i})});Cm.displayName=cE;var dE="DropdownMenuItem",Em=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(QC,{...a,...s,ref:i})});Em.displayName=dE;var fE="DropdownMenuCheckboxItem",Pm=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(ZC,{...a,...s,ref:i})});Pm.displayName=fE;var pE="DropdownMenuRadioGroup",vE=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(qC,{...a,...s,ref:i})});vE.displayName=pE;var mE="DropdownMenuRadioItem",Rm=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(JC,{...a,...s,ref:i})});Rm.displayName=mE;var hE="DropdownMenuItemIndicator",Tm=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(eE,{...a,...s,ref:i})});Tm.displayName=hE;var gE="DropdownMenuSeparator",_m=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(tE,{...a,...s,ref:i})});_m.displayName=gE;var yE="DropdownMenuArrow",wE=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(nE,{...a,...s,ref:i})});wE.displayName=yE;var xE="DropdownMenuSubTrigger",km=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(rE,{...a,...s,ref:i})});km.displayName=xE;var SE="DropdownMenuSubContent",Nm=p.forwardRef((n,i)=>{const{__scopeDropdownMenu:o,...s}=n,a=nt(o);return x.jsx(oE,{...a,...s,ref:i,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Nm.displayName=SE;var h1=hm,g1=ym,y1=wm,w1=Sm,x1=Cm,S1=Em,C1=Pm,E1=Rm,P1=Tm,R1=_m,T1=km,_1=Nm,Wl="Dialog",[Am,Mm]=Fe(Wl),[CE,bt]=Am(Wl),Im=n=>{const{__scopeDialog:i,children:o,open:s,defaultOpen:a,onOpenChange:c,modal:f=!0}=n,v=p.useRef(null),m=p.useRef(null),[h,y]=ct({prop:s,defaultProp:a??!1,onChange:c,caller:Wl});return x.jsx(CE,{scope:i,triggerRef:v,contentRef:m,contentId:ht(),titleId:ht(),descriptionId:ht(),open:h,onOpenChange:y,onOpenToggle:p.useCallback(()=>y(w=>!w),[y]),modal:f,children:o})};Im.displayName=Wl;var Dm="DialogTrigger",Om=p.forwardRef((n,i)=>{const{__scopeDialog:o,...s}=n,a=bt(Dm,o),c=ae(i,a.triggerRef);return x.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ic(a.open),...s,ref:c,onClick:z(n.onClick,a.onOpenToggle)})});Om.displayName=Dm;var rc="DialogPortal",[EE,Lm]=Am(rc,{forceMount:void 0}),bm=n=>{const{__scopeDialog:i,forceMount:o,children:s,container:a}=n,c=bt(rc,i);return x.jsx(EE,{scope:i,forceMount:o,children:p.Children.map(s,f=>x.jsx($e,{present:o||c.open,children:x.jsx(Vr,{asChild:!0,container:a,children:f})}))})};bm.displayName=rc;var Pl="DialogOverlay",jm=p.forwardRef((n,i)=>{const o=Lm(Pl,n.__scopeDialog),{forceMount:s=o.forceMount,...a}=n,c=bt(Pl,n.__scopeDialog);return c.modal?x.jsx($e,{present:s||c.open,children:x.jsx(RE,{...a,ref:i})}):null});jm.displayName=Pl;var PE=In("DialogOverlay.RemoveScroll"),RE=p.forwardRef((n,i)=>{const{__scopeDialog:o,...s}=n,a=bt(Pl,o);return x.jsx(Yo,{as:PE,allowPinchZoom:!0,shards:[a.contentRef],children:x.jsx(Q.div,{"data-state":ic(a.open),...s,ref:i,style:{pointerEvents:"auto",...s.style}})})}),er="DialogContent",Fm=p.forwardRef((n,i)=>{const o=Lm(er,n.__scopeDialog),{forceMount:s=o.forceMount,...a}=n,c=bt(er,n.__scopeDialog);return x.jsx($e,{present:s||c.open,children:c.modal?x.jsx(TE,{...a,ref:i}):x.jsx(_E,{...a,ref:i})})});Fm.displayName=er;var TE=p.forwardRef((n,i)=>{const o=bt(er,n.__scopeDialog),s=p.useRef(null),a=ae(i,o.contentRef,s);return p.useEffect(()=>{const c=s.current;if(c)return $l(c)},[]),x.jsx($m,{...n,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(n.onCloseAutoFocus,c=>{var f;c.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:z(n.onPointerDownOutside,c=>{const f=c.detail.originalEvent,v=f.button===0&&f.ctrlKey===!0;(f.button===2||v)&&c.preventDefault()}),onFocusOutside:z(n.onFocusOutside,c=>c.preventDefault())})}),_E=p.forwardRef((n,i)=>{const o=bt(er,n.__scopeDialog),s=p.useRef(!1),a=p.useRef(!1);return x.jsx($m,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,v;(f=n.onCloseAutoFocus)==null||f.call(n,c),c.defaultPrevented||(s.current||(v=o.triggerRef.current)==null||v.focus(),c.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:c=>{var m,h;(m=n.onInteractOutside)==null||m.call(n,c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const f=c.target;((h=o.triggerRef.current)==null?void 0:h.contains(f))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.current&&c.preventDefault()}})}),$m=p.forwardRef((n,i)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:c,...f}=n,v=bt(er,o),m=p.useRef(null),h=ae(i,m);return Dl(),x.jsxs(x.Fragment,{children:[x.jsx(Uo,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:c,children:x.jsx(Ln,{role:"dialog",id:v.contentId,"aria-describedby":v.descriptionId,"aria-labelledby":v.titleId,"data-state":ic(v.open),...f,ref:h,onDismiss:()=>v.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(NE,{titleId:v.titleId}),x.jsx(ME,{contentRef:m,descriptionId:v.descriptionId})]})]})}),oc="DialogTitle",zm=p.forwardRef((n,i)=>{const{__scopeDialog:o,...s}=n,a=bt(oc,o);return x.jsx(Q.h2,{id:a.titleId,...s,ref:i})});zm.displayName=oc;var Bm="DialogDescription",Um=p.forwardRef((n,i)=>{const{__scopeDialog:o,...s}=n,a=bt(Bm,o);return x.jsx(Q.p,{id:a.descriptionId,...s,ref:i})});Um.displayName=Bm;var Hm="DialogClose",Wm=p.forwardRef((n,i)=>{const{__scopeDialog:o,...s}=n,a=bt(Hm,o);return x.jsx(Q.button,{type:"button",...s,ref:i,onClick:z(n.onClick,()=>a.onOpenChange(!1))})});Wm.displayName=Hm;function ic(n){return n?"open":"closed"}var Vm="DialogTitleWarning",[kE,Km]=xx(Vm,{contentName:er,titleName:oc,docsSlug:"dialog"}),NE=({titleId:n})=>{const i=Km(Vm),o=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return p.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},AE="DialogDescriptionWarning",ME=({contentRef:n,descriptionId:i})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Km(AE).contentName}}.`;return p.useEffect(()=>{var c;const a=(c=n.current)==null?void 0:c.getAttribute("aria-describedby");i&&a&&(document.getElementById(i)||console.warn(s))},[s,n,i]),null},IE=Im,DE=Om,OE=bm,LE=jm,bE=Fm,jE=zm,FE=Um,Gm=Wm,Vl="Tabs",[$E,k1]=Fe(Vl,[Kr]),Ym=Kr(),[zE,lc]=$E(Vl),Xm=p.forwardRef((n,i)=>{const{__scopeTabs:o,value:s,onValueChange:a,defaultValue:c,orientation:f="horizontal",dir:v,activationMode:m="automatic",...h}=n,y=Br(v),[w,S]=ct({prop:s,onChange:a,defaultProp:c??"",caller:Vl});return x.jsx(zE,{scope:o,baseId:ht(),value:w,onValueChange:S,orientation:f,dir:y,activationMode:m,children:x.jsx(Q.div,{dir:y,"data-orientation":f,...h,ref:i})})});Xm.displayName=Vl;var Qm="TabsList",Zm=p.forwardRef((n,i)=>{const{__scopeTabs:o,loop:s=!0,...a}=n,c=lc(Qm,o),f=Ym(o);return x.jsx(Yu,{asChild:!0,...f,orientation:c.orientation,dir:c.dir,loop:s,children:x.jsx(Q.div,{role:"tablist","aria-orientation":c.orientation,...a,ref:i})})});Zm.displayName=Qm;var qm="TabsTrigger",Jm=p.forwardRef((n,i)=>{const{__scopeTabs:o,value:s,disabled:a=!1,...c}=n,f=lc(qm,o),v=Ym(o),m=nh(f.baseId,s),h=rh(f.baseId,s),y=s===f.value;return x.jsx(Xu,{asChild:!0,...v,focusable:!a,active:y,children:x.jsx(Q.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":h,"data-state":y?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:m,...c,ref:i,onMouseDown:z(n.onMouseDown,w=>{!a&&w.button===0&&w.ctrlKey===!1?f.onValueChange(s):w.preventDefault()}),onKeyDown:z(n.onKeyDown,w=>{[" ","Enter"].includes(w.key)&&f.onValueChange(s)}),onFocus:z(n.onFocus,()=>{const w=f.activationMode!=="manual";!y&&!a&&w&&f.onValueChange(s)})})})});Jm.displayName=qm;var eh="TabsContent",th=p.forwardRef((n,i)=>{const{__scopeTabs:o,value:s,forceMount:a,children:c,...f}=n,v=lc(eh,o),m=nh(v.baseId,s),h=rh(v.baseId,s),y=s===v.value,w=p.useRef(y);return p.useEffect(()=>{const S=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(S)},[]),x.jsx($e,{present:a||y,children:({present:S})=>x.jsx(Q.div,{"data-state":y?"active":"inactive","data-orientation":v.orientation,role:"tabpanel","aria-labelledby":m,hidden:!S,id:h,tabIndex:0,...f,ref:i,style:{...n.style,animationDuration:w.current?"0s":void 0},children:S&&c})})});th.displayName=eh;function nh(n,i){return`${n}-trigger-${i}`}function rh(n,i){return`${n}-content-${i}`}var N1=Xm,A1=Zm,M1=Jm,I1=th,Kl="Collapsible",[BE,D1]=Fe(Kl),[UE,sc]=BE(Kl),oh=p.forwardRef((n,i)=>{const{__scopeCollapsible:o,open:s,defaultOpen:a,disabled:c,onOpenChange:f,...v}=n,[m,h]=ct({prop:s,defaultProp:a??!1,onChange:f,caller:Kl});return x.jsx(UE,{scope:o,disabled:c,contentId:ht(),open:m,onOpenToggle:p.useCallback(()=>h(y=>!y),[h]),children:x.jsx(Q.div,{"data-state":uc(m),"data-disabled":c?"":void 0,...v,ref:i})})});oh.displayName=Kl;var ih="CollapsibleTrigger",lh=p.forwardRef((n,i)=>{const{__scopeCollapsible:o,...s}=n,a=sc(ih,o);return x.jsx(Q.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":uc(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:i,onClick:z(n.onClick,a.onOpenToggle)})});lh.displayName=ih;var ac="CollapsibleContent",sh=p.forwardRef((n,i)=>{const{forceMount:o,...s}=n,a=sc(ac,n.__scopeCollapsible);return x.jsx($e,{present:o||a.open,children:({present:c})=>x.jsx(HE,{...s,ref:i,present:c})})});sh.displayName=ac;var HE=p.forwardRef((n,i)=>{const{__scopeCollapsible:o,present:s,children:a,...c}=n,f=sc(ac,o),[v,m]=p.useState(s),h=p.useRef(null),y=ae(i,h),w=p.useRef(0),S=w.current,E=p.useRef(0),T=E.current,C=f.open||v,P=p.useRef(C),A=p.useRef(void 0);return p.useEffect(()=>{const k=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(k)},[]),Le(()=>{const k=h.current;if(k){A.current=A.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const M=k.getBoundingClientRect();w.current=M.height,E.current=M.width,P.current||(k.style.transitionDuration=A.current.transitionDuration,k.style.animationName=A.current.animationName),m(s)}},[f.open,s]),x.jsx(Q.div,{"data-state":uc(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!C,...c,ref:y,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":T?`${T}px`:void 0,...n.style},children:C&&a})});function uc(n){return n?"open":"closed"}var O1=oh,L1=lh,b1=sh,ah=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),WE="VisuallyHidden",Gl=p.forwardRef((n,i)=>x.jsx(Q.span,{...n,ref:i,style:{...ah,...n.style}}));Gl.displayName=WE;var VE=Gl,[Yl,j1]=Fe("Tooltip",[Gt]),Xl=Gt(),uh="TooltipProvider",KE=700,Ru="tooltip.open",[GE,cc]=Yl(uh),ch=n=>{const{__scopeTooltip:i,delayDuration:o=KE,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:c}=n,f=p.useRef(!0),v=p.useRef(!1),m=p.useRef(0);return p.useEffect(()=>{const h=m.current;return()=>window.clearTimeout(h)},[]),x.jsx(GE,{scope:i,isOpenDelayedRef:f,delayDuration:o,onOpen:p.useCallback(()=>{window.clearTimeout(m.current),f.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>f.current=!0,s)},[s]),isPointerInTransitRef:v,onPointerInTransitChange:p.useCallback(h=>{v.current=h},[]),disableHoverableContent:a,children:c})};ch.displayName=uh;var Bo="Tooltip",[YE,Ql]=Yl(Bo),dh=n=>{const{__scopeTooltip:i,children:o,open:s,defaultOpen:a,onOpenChange:c,disableHoverableContent:f,delayDuration:v}=n,m=cc(Bo,n.__scopeTooltip),h=Xl(i),[y,w]=p.useState(null),S=ht(),E=p.useRef(0),T=f??m.disableHoverableContent,C=v??m.delayDuration,P=p.useRef(!1),[A,k]=ct({prop:s,defaultProp:a??!1,onChange:$=>{$?(m.onOpen(),document.dispatchEvent(new CustomEvent(Ru))):m.onClose(),c==null||c($)},caller:Bo}),M=p.useMemo(()=>A?P.current?"delayed-open":"instant-open":"closed",[A]),L=p.useCallback(()=>{window.clearTimeout(E.current),E.current=0,P.current=!1,k(!0)},[k]),F=p.useCallback(()=>{window.clearTimeout(E.current),E.current=0,k(!1)},[k]),V=p.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{P.current=!0,k(!0),E.current=0},C)},[C,k]);return p.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),x.jsx(Wo,{...h,children:x.jsx(YE,{scope:i,contentId:S,open:A,stateAttribute:M,trigger:y,onTriggerChange:w,onTriggerEnter:p.useCallback(()=>{m.isOpenDelayedRef.current?V():L()},[m.isOpenDelayedRef,V,L]),onTriggerLeave:p.useCallback(()=>{T?F():(window.clearTimeout(E.current),E.current=0)},[F,T]),onOpen:L,onClose:F,disableHoverableContent:T,children:o})})};dh.displayName=Bo;var Tu="TooltipTrigger",fh=p.forwardRef((n,i)=>{const{__scopeTooltip:o,...s}=n,a=Ql(Tu,o),c=cc(Tu,o),f=Xl(o),v=p.useRef(null),m=ae(i,v,a.onTriggerChange),h=p.useRef(!1),y=p.useRef(!1),w=p.useCallback(()=>h.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),x.jsx(Wr,{asChild:!0,...f,children:x.jsx(Q.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:m,onPointerMove:z(n.onPointerMove,S=>{S.pointerType!=="touch"&&!y.current&&!c.isPointerInTransitRef.current&&(a.onTriggerEnter(),y.current=!0)}),onPointerLeave:z(n.onPointerLeave,()=>{a.onTriggerLeave(),y.current=!1}),onPointerDown:z(n.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:z(n.onFocus,()=>{h.current||a.onOpen()}),onBlur:z(n.onBlur,a.onClose),onClick:z(n.onClick,a.onClose)})})});fh.displayName=Tu;var XE="TooltipPortal",[F1,QE]=Yl(XE,{forceMount:void 0}),Fr="TooltipContent",ph=p.forwardRef((n,i)=>{const o=QE(Fr,n.__scopeTooltip),{forceMount:s=o.forceMount,side:a="top",...c}=n,f=Ql(Fr,n.__scopeTooltip);return x.jsx($e,{present:s||f.open,children:f.disableHoverableContent?x.jsx(vh,{side:a,...c,ref:i}):x.jsx(ZE,{side:a,...c,ref:i})})}),ZE=p.forwardRef((n,i)=>{const o=Ql(Fr,n.__scopeTooltip),s=cc(Fr,n.__scopeTooltip),a=p.useRef(null),c=ae(i,a),[f,v]=p.useState(null),{trigger:m,onClose:h}=o,y=a.current,{onPointerInTransitChange:w}=s,S=p.useCallback(()=>{v(null),w(!1)},[w]),E=p.useCallback((T,C)=>{const P=T.currentTarget,A={x:T.clientX,y:T.clientY},k=nP(A,P.getBoundingClientRect()),M=rP(A,k),L=oP(C.getBoundingClientRect()),F=lP([...M,...L]);v(F),w(!0)},[w]);return p.useEffect(()=>()=>S(),[S]),p.useEffect(()=>{if(m&&y){const T=P=>E(P,y),C=P=>E(P,m);return m.addEventListener("pointerleave",T),y.addEventListener("pointerleave",C),()=>{m.removeEventListener("pointerleave",T),y.removeEventListener("pointerleave",C)}}},[m,y,E,S]),p.useEffect(()=>{if(f){const T=C=>{const P=C.target,A={x:C.clientX,y:C.clientY},k=(m==null?void 0:m.contains(P))||(y==null?void 0:y.contains(P)),M=!iP(A,f);k?S():M&&(S(),h())};return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[m,y,f,h,S]),x.jsx(vh,{...n,ref:c})}),[qE,JE]=Yl(Bo,{isInside:!1}),eP=ju("TooltipContent"),vh=p.forwardRef((n,i)=>{const{__scopeTooltip:o,children:s,"aria-label":a,onEscapeKeyDown:c,onPointerDownOutside:f,...v}=n,m=Ql(Fr,o),h=Xl(o),{onClose:y}=m;return p.useEffect(()=>(document.addEventListener(Ru,y),()=>document.removeEventListener(Ru,y)),[y]),p.useEffect(()=>{if(m.trigger){const w=S=>{const E=S.target;E!=null&&E.contains(m.trigger)&&y()};return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[m.trigger,y]),x.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:w=>w.preventDefault(),onDismiss:y,children:x.jsxs(Vo,{"data-state":m.stateAttribute,...h,...v,ref:i,style:{...v.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(eP,{children:s}),x.jsx(qE,{scope:o,isInside:!0,children:x.jsx(VE,{id:m.contentId,role:"tooltip",children:a||s})})]})})});ph.displayName=Fr;var mh="TooltipArrow",tP=p.forwardRef((n,i)=>{const{__scopeTooltip:o,...s}=n,a=Xl(o);return JE(mh,o).isInside?null:x.jsx(Ko,{...a,...s,ref:i})});tP.displayName=mh;function nP(n,i){const o=Math.abs(i.top-n.y),s=Math.abs(i.bottom-n.y),a=Math.abs(i.right-n.x),c=Math.abs(i.left-n.x);switch(Math.min(o,s,a,c)){case c:return"left";case a:return"right";case o:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function rP(n,i,o=5){const s=[];switch(i){case"top":s.push({x:n.x-o,y:n.y+o},{x:n.x+o,y:n.y+o});break;case"bottom":s.push({x:n.x-o,y:n.y-o},{x:n.x+o,y:n.y-o});break;case"left":s.push({x:n.x+o,y:n.y-o},{x:n.x+o,y:n.y+o});break;case"right":s.push({x:n.x-o,y:n.y-o},{x:n.x-o,y:n.y+o});break}return s}function oP(n){const{top:i,right:o,bottom:s,left:a}=n;return[{x:a,y:i},{x:o,y:i},{x:o,y:s},{x:a,y:s}]}function iP(n,i){const{x:o,y:s}=n;let a=!1;for(let c=0,f=i.length-1;c<i.length;f=c++){const v=i[c],m=i[f],h=v.x,y=v.y,w=m.x,S=m.y;y>s!=S>s&&o<(w-h)*(s-y)/(S-y)+h&&(a=!a)}return a}function lP(n){const i=n.slice();return i.sort((o,s)=>o.x<s.x?-1:o.x>s.x?1:o.y<s.y?-1:o.y>s.y?1:0),sP(i)}function sP(n){if(n.length<=1)return n.slice();const i=[];for(let s=0;s<n.length;s++){const a=n[s];for(;i.length>=2;){const c=i[i.length-1],f=i[i.length-2];if((c.x-f.x)*(a.y-f.y)>=(c.y-f.y)*(a.x-f.x))i.pop();else break}i.push(a)}i.pop();const o=[];for(let s=n.length-1;s>=0;s--){const a=n[s];for(;o.length>=2;){const c=o[o.length-1],f=o[o.length-2];if((c.x-f.x)*(a.y-f.y)>=(c.y-f.y)*(a.x-f.x))o.pop();else break}o.push(a)}return o.pop(),i.length===1&&o.length===1&&i[0].x===o[0].x&&i[0].y===o[0].y?i:i.concat(o)}var $1=ch,z1=dh,B1=fh,U1=ph;function Zl(n){const i=p.useRef({value:n,previous:n});return p.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}var ql="Checkbox",[aP,H1]=Fe(ql),[uP,dc]=aP(ql);function cP(n){const{__scopeCheckbox:i,checked:o,children:s,defaultChecked:a,disabled:c,form:f,name:v,onCheckedChange:m,required:h,value:y="on",internal_do_not_use_render:w}=n,[S,E]=ct({prop:o,defaultProp:a??!1,onChange:m,caller:ql}),[T,C]=p.useState(null),[P,A]=p.useState(null),k=p.useRef(!1),M=T?!!f||!!T.closest("form"):!0,L={checked:S,disabled:c,setChecked:E,control:T,setControl:C,name:v,form:f,value:y,hasConsumerStoppedPropagationRef:k,required:h,defaultChecked:Mn(a)?!1:a,isFormControl:M,bubbleInput:P,setBubbleInput:A};return x.jsx(uP,{scope:i,...L,children:pP(w)?w(L):s})}var hh="CheckboxTrigger",gh=p.forwardRef(({__scopeCheckbox:n,onKeyDown:i,onClick:o,...s},a)=>{const{control:c,value:f,disabled:v,checked:m,required:h,setControl:y,setChecked:w,hasConsumerStoppedPropagationRef:S,isFormControl:E,bubbleInput:T}=dc(hh,n),C=ae(a,y),P=p.useRef(m);return p.useEffect(()=>{const A=c==null?void 0:c.form;if(A){const k=()=>w(P.current);return A.addEventListener("reset",k),()=>A.removeEventListener("reset",k)}},[c,w]),x.jsx(Q.button,{type:"button",role:"checkbox","aria-checked":Mn(m)?"mixed":m,"aria-required":h,"data-state":Sh(m),"data-disabled":v?"":void 0,disabled:v,value:f,...s,ref:C,onKeyDown:z(i,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:z(o,A=>{w(k=>Mn(k)?!0:!k),T&&E&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})})});gh.displayName=hh;var dP=p.forwardRef((n,i)=>{const{__scopeCheckbox:o,name:s,checked:a,defaultChecked:c,required:f,disabled:v,value:m,onCheckedChange:h,form:y,...w}=n;return x.jsx(cP,{__scopeCheckbox:o,checked:a,defaultChecked:c,disabled:v,required:f,onCheckedChange:h,name:s,form:y,value:m,internal_do_not_use_render:({isFormControl:S})=>x.jsxs(x.Fragment,{children:[x.jsx(gh,{...w,ref:i,__scopeCheckbox:o}),S&&x.jsx(xh,{__scopeCheckbox:o})]})})});dP.displayName=ql;var yh="CheckboxIndicator",fP=p.forwardRef((n,i)=>{const{__scopeCheckbox:o,forceMount:s,...a}=n,c=dc(yh,o);return x.jsx($e,{present:s||Mn(c.checked)||c.checked===!0,children:x.jsx(Q.span,{"data-state":Sh(c.checked),"data-disabled":c.disabled?"":void 0,...a,ref:i,style:{pointerEvents:"none",...n.style}})})});fP.displayName=yh;var wh="CheckboxBubbleInput",xh=p.forwardRef(({__scopeCheckbox:n,...i},o)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:c,defaultChecked:f,required:v,disabled:m,name:h,value:y,form:w,bubbleInput:S,setBubbleInput:E}=dc(wh,n),T=ae(o,E),C=Zl(c),P=Fl(s);p.useEffect(()=>{const k=S;if(!k)return;const M=window.HTMLInputElement.prototype,F=Object.getOwnPropertyDescriptor(M,"checked").set,V=!a.current;if(C!==c&&F){const $=new Event("click",{bubbles:V});k.indeterminate=Mn(c),F.call(k,Mn(c)?!1:c),k.dispatchEvent($)}},[S,C,c,a]);const A=p.useRef(Mn(c)?!1:c);return x.jsx(Q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??A.current,required:v,disabled:m,name:h,value:y,form:w,...i,tabIndex:-1,ref:T,style:{...i.style,...P,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});xh.displayName=wh;function pP(n){return typeof n=="function"}function Mn(n){return n==="indeterminate"}function Sh(n){return Mn(n)?"indeterminate":n?"checked":"unchecked"}var fc="ToastProvider",[pc,vP,mP]=Il("Toast"),[Ch,W1]=Fe("Toast",[mP]),[hP,Jl]=Ch(fc),Eh=n=>{const{__scopeToast:i,label:o="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:c=50,children:f}=n,[v,m]=p.useState(null),[h,y]=p.useState(0),w=p.useRef(!1),S=p.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${fc}\`. Expected non-empty \`string\`.`),x.jsx(pc.Provider,{scope:i,children:x.jsx(hP,{scope:i,label:o,duration:s,swipeDirection:a,swipeThreshold:c,toastCount:h,viewport:v,onViewportChange:m,onToastAdd:p.useCallback(()=>y(E=>E+1),[]),onToastRemove:p.useCallback(()=>y(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:w,isClosePausedRef:S,children:f})})};Eh.displayName=fc;var Ph="ToastViewport",gP=["F8"],_u="toast.viewportPause",ku="toast.viewportResume",Rh=p.forwardRef((n,i)=>{const{__scopeToast:o,hotkey:s=gP,label:a="Notifications ({hotkey})",...c}=n,f=Jl(Ph,o),v=vP(o),m=p.useRef(null),h=p.useRef(null),y=p.useRef(null),w=p.useRef(null),S=ae(i,w,f.onViewportChange),E=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=f.toastCount>0;p.useEffect(()=>{const P=A=>{var M;s.length!==0&&s.every(L=>A[L]||A.code===L)&&((M=w.current)==null||M.focus())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[s]),p.useEffect(()=>{const P=m.current,A=w.current;if(T&&P&&A){const k=()=>{if(!f.isClosePausedRef.current){const V=new CustomEvent(_u);A.dispatchEvent(V),f.isClosePausedRef.current=!0}},M=()=>{if(f.isClosePausedRef.current){const V=new CustomEvent(ku);A.dispatchEvent(V),f.isClosePausedRef.current=!1}},L=V=>{!P.contains(V.relatedTarget)&&M()},F=()=>{P.contains(document.activeElement)||M()};return P.addEventListener("focusin",k),P.addEventListener("focusout",L),P.addEventListener("pointermove",k),P.addEventListener("pointerleave",F),window.addEventListener("blur",k),window.addEventListener("focus",M),()=>{P.removeEventListener("focusin",k),P.removeEventListener("focusout",L),P.removeEventListener("pointermove",k),P.removeEventListener("pointerleave",F),window.removeEventListener("blur",k),window.removeEventListener("focus",M)}}},[T,f.isClosePausedRef]);const C=p.useCallback(({tabbingDirection:P})=>{const k=v().map(M=>{const L=M.ref.current,F=[L,...AP(L)];return P==="forwards"?F:F.reverse()});return(P==="forwards"?k.reverse():k).flat()},[v]);return p.useEffect(()=>{const P=w.current;if(P){const A=k=>{var F,V,$;const M=k.altKey||k.ctrlKey||k.metaKey;if(k.key==="Tab"&&!M){const Y=document.activeElement,Z=k.shiftKey;if(k.target===P&&Z){(F=h.current)==null||F.focus();return}const ue=C({tabbingDirection:Z?"backwards":"forwards"}),ce=ue.findIndex(G=>G===Y);hu(ue.slice(ce+1))?k.preventDefault():Z?(V=h.current)==null||V.focus():($=y.current)==null||$.focus()}};return P.addEventListener("keydown",A),()=>P.removeEventListener("keydown",A)}},[v,C]),x.jsxs(Hx,{ref:m,role:"region","aria-label":a.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:T?void 0:"none"},children:[T&&x.jsx(Nu,{ref:h,onFocusFromOutsideViewport:()=>{const P=C({tabbingDirection:"forwards"});hu(P)}}),x.jsx(pc.Slot,{scope:o,children:x.jsx(Q.ol,{tabIndex:-1,...c,ref:S})}),T&&x.jsx(Nu,{ref:y,onFocusFromOutsideViewport:()=>{const P=C({tabbingDirection:"backwards"});hu(P)}})]})});Rh.displayName=Ph;var Th="ToastFocusProxy",Nu=p.forwardRef((n,i)=>{const{__scopeToast:o,onFocusFromOutsideViewport:s,...a}=n,c=Jl(Th,o);return x.jsx(Gl,{tabIndex:0,...a,ref:i,style:{position:"fixed"},onFocus:f=>{var h;const v=f.relatedTarget;!((h=c.viewport)!=null&&h.contains(v))&&s()}})});Nu.displayName=Th;var Zo="Toast",yP="toast.swipeStart",wP="toast.swipeMove",xP="toast.swipeCancel",SP="toast.swipeEnd",_h=p.forwardRef((n,i)=>{const{forceMount:o,open:s,defaultOpen:a,onOpenChange:c,...f}=n,[v,m]=ct({prop:s,defaultProp:a??!0,onChange:c,caller:Zo});return x.jsx($e,{present:o||v,children:x.jsx(PP,{open:v,...f,ref:i,onClose:()=>m(!1),onPause:Oe(n.onPause),onResume:Oe(n.onResume),onSwipeStart:z(n.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:z(n.onSwipeMove,h=>{const{x:y,y:w}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${w}px`)}),onSwipeCancel:z(n.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:z(n.onSwipeEnd,h=>{const{x:y,y:w}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${w}px`),m(!1)})})})});_h.displayName=Zo;var[CP,EP]=Ch(Zo,{onClose(){}}),PP=p.forwardRef((n,i)=>{const{__scopeToast:o,type:s="foreground",duration:a,open:c,onClose:f,onEscapeKeyDown:v,onPause:m,onResume:h,onSwipeStart:y,onSwipeMove:w,onSwipeCancel:S,onSwipeEnd:E,...T}=n,C=Jl(Zo,o),[P,A]=p.useState(null),k=ae(i,G=>A(G)),M=p.useRef(null),L=p.useRef(null),F=a||C.duration,V=p.useRef(0),$=p.useRef(F),Y=p.useRef(0),{onToastAdd:Z,onToastRemove:ne}=C,se=Oe(()=>{var pe;(P==null?void 0:P.contains(document.activeElement))&&((pe=C.viewport)==null||pe.focus()),f()}),ue=p.useCallback(G=>{!G||G===1/0||(window.clearTimeout(Y.current),V.current=new Date().getTime(),Y.current=window.setTimeout(se,G))},[se]);p.useEffect(()=>{const G=C.viewport;if(G){const pe=()=>{ue($.current),h==null||h()},q=()=>{const ve=new Date().getTime()-V.current;$.current=$.current-ve,window.clearTimeout(Y.current),m==null||m()};return G.addEventListener(_u,q),G.addEventListener(ku,pe),()=>{G.removeEventListener(_u,q),G.removeEventListener(ku,pe)}}},[C.viewport,F,m,h,ue]),p.useEffect(()=>{c&&!C.isClosePausedRef.current&&ue(F)},[c,F,C.isClosePausedRef,ue]),p.useEffect(()=>(Z(),()=>ne()),[Z,ne]);const ce=p.useMemo(()=>P?Oh(P):null,[P]);return C.viewport?x.jsxs(x.Fragment,{children:[ce&&x.jsx(RP,{__scopeToast:o,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:ce}),x.jsx(CP,{scope:o,onClose:se,children:rr.createPortal(x.jsx(pc.ItemSlot,{scope:o,children:x.jsx(Ux,{asChild:!0,onEscapeKeyDown:z(v,()=>{C.isFocusedToastEscapeKeyDownRef.current||se(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:x.jsx(Q.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":C.swipeDirection,...T,ref:k,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:z(n.onKeyDown,G=>{G.key==="Escape"&&(v==null||v(G.nativeEvent),G.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,se()))}),onPointerDown:z(n.onPointerDown,G=>{G.button===0&&(M.current={x:G.clientX,y:G.clientY})}),onPointerMove:z(n.onPointerMove,G=>{if(!M.current)return;const pe=G.clientX-M.current.x,q=G.clientY-M.current.y,ve=!!L.current,b=["left","right"].includes(C.swipeDirection),j=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,W=b?j(0,pe):0,de=b?0:j(0,q),me=G.pointerType==="touch"?10:2,Ae={x:W,y:de},Pe={originalEvent:G,delta:Ae};ve?(L.current=Ae,vl(wP,w,Pe,{discrete:!1})):Xp(Ae,C.swipeDirection,me)?(L.current=Ae,vl(yP,y,Pe,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(pe)>me||Math.abs(q)>me)&&(M.current=null)}),onPointerUp:z(n.onPointerUp,G=>{const pe=L.current,q=G.target;if(q.hasPointerCapture(G.pointerId)&&q.releasePointerCapture(G.pointerId),L.current=null,M.current=null,pe){const ve=G.currentTarget,b={originalEvent:G,delta:pe};Xp(pe,C.swipeDirection,C.swipeThreshold)?vl(SP,E,b,{discrete:!0}):vl(xP,S,b,{discrete:!0}),ve.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),RP=n=>{const{__scopeToast:i,children:o,...s}=n,a=Jl(Zo,i),[c,f]=p.useState(!1),[v,m]=p.useState(!1);return kP(()=>f(!0)),p.useEffect(()=>{const h=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(h)},[]),v?null:x.jsx(Vr,{asChild:!0,children:x.jsx(Gl,{...s,children:c&&x.jsxs(x.Fragment,{children:[a.label," ",o]})})})},TP="ToastTitle",kh=p.forwardRef((n,i)=>{const{__scopeToast:o,...s}=n;return x.jsx(Q.div,{...s,ref:i})});kh.displayName=TP;var _P="ToastDescription",Nh=p.forwardRef((n,i)=>{const{__scopeToast:o,...s}=n;return x.jsx(Q.div,{...s,ref:i})});Nh.displayName=_P;var Ah="ToastAction",Mh=p.forwardRef((n,i)=>{const{altText:o,...s}=n;return o.trim()?x.jsx(Dh,{altText:o,asChild:!0,children:x.jsx(vc,{...s,ref:i})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ah}\`. Expected non-empty \`string\`.`),null)});Mh.displayName=Ah;var Ih="ToastClose",vc=p.forwardRef((n,i)=>{const{__scopeToast:o,...s}=n,a=EP(Ih,o);return x.jsx(Dh,{asChild:!0,children:x.jsx(Q.button,{type:"button",...s,ref:i,onClick:z(n.onClick,a.onClose)})})});vc.displayName=Ih;var Dh=p.forwardRef((n,i)=>{const{__scopeToast:o,altText:s,...a}=n;return x.jsx(Q.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:i})});function Oh(n){const i=[];return Array.from(n.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&i.push(s.textContent),NP(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",c=s.dataset.radixToastAnnounceExclude==="";if(!a)if(c){const f=s.dataset.radixToastAnnounceAlt;f&&i.push(f)}else i.push(...Oh(s))}}),i}function vl(n,i,o,{discrete:s}){const a=o.originalEvent.currentTarget,c=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:o});i&&a.addEventListener(n,i,{once:!0}),s?Fu(a,c):a.dispatchEvent(c)}var Xp=(n,i,o=0)=>{const s=Math.abs(n.x),a=Math.abs(n.y),c=s>a;return i==="left"||i==="right"?c&&s>o:!c&&a>o};function kP(n=()=>{}){const i=Oe(n);Le(()=>{let o=0,s=0;return o=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(i)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(s)}},[i])}function NP(n){return n.nodeType===n.ELEMENT_NODE}function AP(n){const i=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function hu(n){const i=document.activeElement;return n.some(o=>o===i?!0:(o.focus(),document.activeElement!==i))}var V1=Eh,K1=Rh,G1=_h,Y1=kh,X1=Nh,Q1=Mh,Z1=vc,mc="Progress",hc=100,[MP,q1]=Fe(mc),[IP,DP]=MP(mc),Lh=p.forwardRef((n,i)=>{const{__scopeProgress:o,value:s=null,max:a,getValueLabel:c=OP,...f}=n;(a||a===0)&&!Qp(a)&&console.error(LP(`${a}`,"Progress"));const v=Qp(a)?a:hc;s!==null&&!Zp(s,v)&&console.error(bP(`${s}`,"Progress"));const m=Zp(s,v)?s:null,h=Rl(m)?c(m,v):void 0;return x.jsx(IP,{scope:o,value:m,max:v,children:x.jsx(Q.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":Rl(m)?m:void 0,"aria-valuetext":h,role:"progressbar","data-state":Fh(m,v),"data-value":m??void 0,"data-max":v,...f,ref:i})})});Lh.displayName=mc;var bh="ProgressIndicator",jh=p.forwardRef((n,i)=>{const{__scopeProgress:o,...s}=n,a=DP(bh,o);return x.jsx(Q.div,{"data-state":Fh(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...s,ref:i})});jh.displayName=bh;function OP(n,i){return`${Math.round(n/i*100)}%`}function Fh(n,i){return n==null?"indeterminate":n===i?"complete":"loading"}function Rl(n){return typeof n=="number"}function Qp(n){return Rl(n)&&!isNaN(n)&&n>0}function Zp(n,i){return Rl(n)&&!isNaN(n)&&n<=i&&n>=0}function LP(n,i){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${i}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${hc}\`.`}function bP(n,i){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${i}\`. The \`value\` prop must be:
  - a positive number
  - less than the value passed to \`max\` (or ${hc} if no \`max\` prop is set)
  - \`null\` or \`undefined\` if the progress is indeterminate.

Defaulting to \`null\`.`}var J1=Lh,eT=jh;function Au(n,[i,o]){return Math.min(o,Math.max(i,n))}var jP=[" ","Enter","ArrowUp","ArrowDown"],FP=[" ","Enter"],tr="Select",[es,ts,$P]=Il(tr),[Gr,tT]=Fe(tr,[$P,Gt]),ns=Gt(),[zP,bn]=Gr(tr),[BP,UP]=Gr(tr),$h=n=>{const{__scopeSelect:i,children:o,open:s,defaultOpen:a,onOpenChange:c,value:f,defaultValue:v,onValueChange:m,dir:h,name:y,autoComplete:w,disabled:S,required:E,form:T}=n,C=ns(i),[P,A]=p.useState(null),[k,M]=p.useState(null),[L,F]=p.useState(!1),V=Br(h),[$,Y]=ct({prop:s,defaultProp:a??!1,onChange:c,caller:tr}),[Z,ne]=ct({prop:f,defaultProp:v,onChange:m,caller:tr}),se=p.useRef(null),ue=P?T||!!P.closest("form"):!0,[ce,G]=p.useState(new Set),pe=Array.from(ce).map(q=>q.props.value).join(";");return x.jsx(Wo,{...C,children:x.jsxs(zP,{required:E,scope:i,trigger:P,onTriggerChange:A,valueNode:k,onValueNodeChange:M,valueNodeHasChildren:L,onValueNodeHasChildrenChange:F,contentId:ht(),value:Z,onValueChange:ne,open:$,onOpenChange:Y,dir:V,triggerPointerDownPosRef:se,disabled:S,children:[x.jsx(es.Provider,{scope:i,children:x.jsx(BP,{scope:n.__scopeSelect,onNativeOptionAdd:p.useCallback(q=>{G(ve=>new Set(ve).add(q))},[]),onNativeOptionRemove:p.useCallback(q=>{G(ve=>{const b=new Set(ve);return b.delete(q),b})},[]),children:o})}),ue?x.jsxs(lg,{"aria-hidden":!0,required:E,tabIndex:-1,name:y,autoComplete:w,value:Z,onChange:q=>ne(q.target.value),disabled:S,form:T,children:[Z===void 0?x.jsx("option",{value:""}):null,Array.from(ce)]},pe):null]})})};$h.displayName=tr;var zh="SelectTrigger",Bh=p.forwardRef((n,i)=>{const{__scopeSelect:o,disabled:s=!1,...a}=n,c=ns(o),f=bn(zh,o),v=f.disabled||s,m=ae(i,f.onTriggerChange),h=ts(o),y=p.useRef("touch"),[w,S,E]=ag(C=>{const P=h().filter(M=>!M.disabled),A=P.find(M=>M.value===f.value),k=ug(P,C,A);k!==void 0&&f.onValueChange(k.value)}),T=C=>{v||(f.onOpenChange(!0),E()),C&&(f.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return x.jsx(Wr,{asChild:!0,...c,children:x.jsx(Q.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:v,"data-disabled":v?"":void 0,"data-placeholder":sg(f.value)?"":void 0,...a,ref:m,onClick:z(a.onClick,C=>{C.currentTarget.focus(),y.current!=="mouse"&&T(C)}),onPointerDown:z(a.onPointerDown,C=>{y.current=C.pointerType;const P=C.target;P.hasPointerCapture(C.pointerId)&&P.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(T(C),C.preventDefault())}),onKeyDown:z(a.onKeyDown,C=>{const P=w.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&S(C.key),!(P&&C.key===" ")&&jP.includes(C.key)&&(T(),C.preventDefault())})})})});Bh.displayName=zh;var Uh="SelectValue",Hh=p.forwardRef((n,i)=>{const{__scopeSelect:o,className:s,style:a,children:c,placeholder:f="",...v}=n,m=bn(Uh,o),{onValueNodeHasChildrenChange:h}=m,y=c!==void 0,w=ae(i,m.onValueNodeChange);return Le(()=>{h(y)},[h,y]),x.jsx(Q.span,{...v,ref:w,style:{pointerEvents:"none"},children:sg(m.value)?x.jsx(x.Fragment,{children:f}):c})});Hh.displayName=Uh;var HP="SelectIcon",Wh=p.forwardRef((n,i)=>{const{__scopeSelect:o,children:s,...a}=n;return x.jsx(Q.span,{"aria-hidden":!0,...a,ref:i,children:s||"▼"})});Wh.displayName=HP;var WP="SelectPortal",Vh=n=>x.jsx(Vr,{asChild:!0,...n});Vh.displayName=WP;var nr="SelectContent",Kh=p.forwardRef((n,i)=>{const o=bn(nr,n.__scopeSelect),[s,a]=p.useState();if(Le(()=>{a(new DocumentFragment)},[]),!o.open){const c=s;return c?rr.createPortal(x.jsx(Gh,{scope:n.__scopeSelect,children:x.jsx(es.Slot,{scope:n.__scopeSelect,children:x.jsx("div",{children:n.children})})}),c):null}return x.jsx(Yh,{...n,ref:i})});Kh.displayName=nr;var Dt=10,[Gh,jn]=Gr(nr),VP="SelectContentImpl",KP=In("SelectContent.RemoveScroll"),Yh=p.forwardRef((n,i)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:f,side:v,sideOffset:m,align:h,alignOffset:y,arrowPadding:w,collisionBoundary:S,collisionPadding:E,sticky:T,hideWhenDetached:C,avoidCollisions:P,...A}=n,k=bn(nr,o),[M,L]=p.useState(null),[F,V]=p.useState(null),$=ae(i,oe=>L(oe)),[Y,Z]=p.useState(null),[ne,se]=p.useState(null),ue=ts(o),[ce,G]=p.useState(!1),pe=p.useRef(!1);p.useEffect(()=>{if(M)return $l(M)},[M]),Dl();const q=p.useCallback(oe=>{const[he,...Ce]=ue().map(Se=>Se.ref.current),[xe]=Ce.slice(-1),ge=document.activeElement;for(const Se of oe)if(Se===ge||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===he&&F&&(F.scrollTop=0),Se===xe&&F&&(F.scrollTop=F.scrollHeight),Se==null||Se.focus(),document.activeElement!==ge))return},[ue,F]),ve=p.useCallback(()=>q([Y,M]),[q,Y,M]);p.useEffect(()=>{ce&&ve()},[ce,ve]);const{onOpenChange:b,triggerPointerDownPosRef:j}=k;p.useEffect(()=>{if(M){let oe={x:0,y:0};const he=xe=>{var ge,Se;oe={x:Math.abs(Math.round(xe.pageX)-(((ge=j.current)==null?void 0:ge.x)??0)),y:Math.abs(Math.round(xe.pageY)-(((Se=j.current)==null?void 0:Se.y)??0))}},Ce=xe=>{oe.x<=10&&oe.y<=10?xe.preventDefault():M.contains(xe.target)||b(!1),document.removeEventListener("pointermove",he),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[M,b,j]),p.useEffect(()=>{const oe=()=>b(!1);return window.addEventListener("blur",oe),window.addEventListener("resize",oe),()=>{window.removeEventListener("blur",oe),window.removeEventListener("resize",oe)}},[b]);const[W,de]=ag(oe=>{const he=ue().filter(ge=>!ge.disabled),Ce=he.find(ge=>ge.ref.current===document.activeElement),xe=ug(he,oe,Ce);xe&&setTimeout(()=>xe.ref.current.focus())}),me=p.useCallback((oe,he,Ce)=>{const xe=!pe.current&&!Ce;(k.value!==void 0&&k.value===he||xe)&&(Z(oe),xe&&(pe.current=!0))},[k.value]),Ae=p.useCallback(()=>M==null?void 0:M.focus(),[M]),Pe=p.useCallback((oe,he,Ce)=>{const xe=!pe.current&&!Ce;(k.value!==void 0&&k.value===he||xe)&&se(oe)},[k.value]),Je=s==="popper"?Mu:Xh,Te=Je===Mu?{side:v,sideOffset:m,align:h,alignOffset:y,arrowPadding:w,collisionBoundary:S,collisionPadding:E,sticky:T,hideWhenDetached:C,avoidCollisions:P}:{};return x.jsx(Gh,{scope:o,content:M,viewport:F,onViewportChange:V,itemRefCallback:me,selectedItem:Y,onItemLeave:Ae,itemTextRefCallback:Pe,focusSelectedItem:ve,selectedItemText:ne,position:s,isPositioned:ce,searchRef:W,children:x.jsx(Yo,{as:KP,allowPinchZoom:!0,children:x.jsx(Uo,{asChild:!0,trapped:k.open,onMountAutoFocus:oe=>{oe.preventDefault()},onUnmountAutoFocus:z(a,oe=>{var he;(he=k.trigger)==null||he.focus({preventScroll:!0}),oe.preventDefault()}),children:x.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:oe=>oe.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:x.jsx(Je,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:oe=>oe.preventDefault(),...A,...Te,onPlaced:()=>G(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:z(A.onKeyDown,oe=>{const he=oe.ctrlKey||oe.altKey||oe.metaKey;if(oe.key==="Tab"&&oe.preventDefault(),!he&&oe.key.length===1&&de(oe.key),["ArrowUp","ArrowDown","Home","End"].includes(oe.key)){let xe=ue().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(oe.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(oe.key)){const ge=oe.target,Se=xe.indexOf(ge);xe=xe.slice(Se+1)}setTimeout(()=>q(xe)),oe.preventDefault()}})})})})})})});Yh.displayName=VP;var GP="SelectItemAlignedPosition",Xh=p.forwardRef((n,i)=>{const{__scopeSelect:o,onPlaced:s,...a}=n,c=bn(nr,o),f=jn(nr,o),[v,m]=p.useState(null),[h,y]=p.useState(null),w=ae(i,$=>y($)),S=ts(o),E=p.useRef(!1),T=p.useRef(!0),{viewport:C,selectedItem:P,selectedItemText:A,focusSelectedItem:k}=f,M=p.useCallback(()=>{if(c.trigger&&c.valueNode&&v&&h&&C&&P&&A){const $=c.trigger.getBoundingClientRect(),Y=h.getBoundingClientRect(),Z=c.valueNode.getBoundingClientRect(),ne=A.getBoundingClientRect();if(c.dir!=="rtl"){const ge=ne.left-Y.left,Se=Z.left-ge,He=$.left-Se,rt=$.width+He,an=Math.max(rt,Y.width),un=window.innerWidth-Dt,Xt=Au(Se,[Dt,Math.max(Dt,un-an)]);v.style.minWidth=rt+"px",v.style.left=Xt+"px"}else{const ge=Y.right-ne.right,Se=window.innerWidth-Z.right-ge,He=window.innerWidth-$.right-Se,rt=$.width+He,an=Math.max(rt,Y.width),un=window.innerWidth-Dt,Xt=Au(Se,[Dt,Math.max(Dt,un-an)]);v.style.minWidth=rt+"px",v.style.right=Xt+"px"}const se=S(),ue=window.innerHeight-Dt*2,ce=C.scrollHeight,G=window.getComputedStyle(h),pe=parseInt(G.borderTopWidth,10),q=parseInt(G.paddingTop,10),ve=parseInt(G.borderBottomWidth,10),b=parseInt(G.paddingBottom,10),j=pe+q+ce+b+ve,W=Math.min(P.offsetHeight*5,j),de=window.getComputedStyle(C),me=parseInt(de.paddingTop,10),Ae=parseInt(de.paddingBottom,10),Pe=$.top+$.height/2-Dt,Je=ue-Pe,Te=P.offsetHeight/2,oe=P.offsetTop+Te,he=pe+q+oe,Ce=j-he;if(he<=Pe){const ge=se.length>0&&P===se[se.length-1].ref.current;v.style.bottom="0px";const Se=h.clientHeight-C.offsetTop-C.offsetHeight,He=Math.max(Je,Te+(ge?Ae:0)+Se+ve),rt=he+He;v.style.height=rt+"px"}else{const ge=se.length>0&&P===se[0].ref.current;v.style.top="0px";const He=Math.max(Pe,pe+C.offsetTop+(ge?me:0)+Te)+Ce;v.style.height=He+"px",C.scrollTop=he-Pe+C.offsetTop}v.style.margin=`${Dt}px 0`,v.style.minHeight=W+"px",v.style.maxHeight=ue+"px",s==null||s(),requestAnimationFrame(()=>E.current=!0)}},[S,c.trigger,c.valueNode,v,h,C,P,A,c.dir,s]);Le(()=>M(),[M]);const[L,F]=p.useState();Le(()=>{h&&F(window.getComputedStyle(h).zIndex)},[h]);const V=p.useCallback($=>{$&&T.current===!0&&(M(),k==null||k(),T.current=!1)},[M,k]);return x.jsx(XP,{scope:o,contentWrapper:v,shouldExpandOnScrollRef:E,onScrollButtonChange:V,children:x.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:x.jsx(Q.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Xh.displayName=GP;var YP="SelectPopperPosition",Mu=p.forwardRef((n,i)=>{const{__scopeSelect:o,align:s="start",collisionPadding:a=Dt,...c}=n,f=ns(o);return x.jsx(Vo,{...f,...c,ref:i,align:s,collisionPadding:a,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Mu.displayName=YP;var[XP,gc]=Gr(nr,{}),Iu="SelectViewport",Qh=p.forwardRef((n,i)=>{const{__scopeSelect:o,nonce:s,...a}=n,c=jn(Iu,o),f=gc(Iu,o),v=ae(i,c.onViewportChange),m=p.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),x.jsx(es.Slot,{scope:o,children:x.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:v,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:z(a.onScroll,h=>{const y=h.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&w){const E=Math.abs(m.current-y.scrollTop);if(E>0){const T=window.innerHeight-Dt*2,C=parseFloat(w.style.minHeight),P=parseFloat(w.style.height),A=Math.max(C,P);if(A<T){const k=A+E,M=Math.min(T,k),L=k-M;w.style.height=M+"px",w.style.bottom==="0px"&&(y.scrollTop=L>0?L:0,w.style.justifyContent="flex-end")}}}m.current=y.scrollTop})})})]})});Qh.displayName=Iu;var Zh="SelectGroup",[QP,ZP]=Gr(Zh),qP=p.forwardRef((n,i)=>{const{__scopeSelect:o,...s}=n,a=ht();return x.jsx(QP,{scope:o,id:a,children:x.jsx(Q.div,{role:"group","aria-labelledby":a,...s,ref:i})})});qP.displayName=Zh;var qh="SelectLabel",Jh=p.forwardRef((n,i)=>{const{__scopeSelect:o,...s}=n,a=ZP(qh,o);return x.jsx(Q.div,{id:a.id,...s,ref:i})});Jh.displayName=qh;var Tl="SelectItem",[JP,eg]=Gr(Tl),tg=p.forwardRef((n,i)=>{const{__scopeSelect:o,value:s,disabled:a=!1,textValue:c,...f}=n,v=bn(Tl,o),m=jn(Tl,o),h=v.value===s,[y,w]=p.useState(c??""),[S,E]=p.useState(!1),T=ae(i,k=>{var M;return(M=m.itemRefCallback)==null?void 0:M.call(m,k,s,a)}),C=ht(),P=p.useRef("touch"),A=()=>{a||(v.onValueChange(s),v.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(JP,{scope:o,value:s,disabled:a,textId:C,isSelected:h,onItemTextChange:p.useCallback(k=>{w(M=>M||((k==null?void 0:k.textContent)??"").trim())},[]),children:x.jsx(es.ItemSlot,{scope:o,value:s,disabled:a,textValue:y,children:x.jsx(Q.div,{role:"option","aria-labelledby":C,"data-highlighted":S?"":void 0,"aria-selected":h&&S,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...f,ref:T,onFocus:z(f.onFocus,()=>E(!0)),onBlur:z(f.onBlur,()=>E(!1)),onClick:z(f.onClick,()=>{P.current!=="mouse"&&A()}),onPointerUp:z(f.onPointerUp,()=>{P.current==="mouse"&&A()}),onPointerDown:z(f.onPointerDown,k=>{P.current=k.pointerType}),onPointerMove:z(f.onPointerMove,k=>{var M;P.current=k.pointerType,a?(M=m.onItemLeave)==null||M.call(m):P.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(f.onPointerLeave,k=>{var M;k.currentTarget===document.activeElement&&((M=m.onItemLeave)==null||M.call(m))}),onKeyDown:z(f.onKeyDown,k=>{var L;((L=m.searchRef)==null?void 0:L.current)!==""&&k.key===" "||(FP.includes(k.key)&&A(),k.key===" "&&k.preventDefault())})})})})});tg.displayName=Tl;var bo="SelectItemText",ng=p.forwardRef((n,i)=>{const{__scopeSelect:o,className:s,style:a,...c}=n,f=bn(bo,o),v=jn(bo,o),m=eg(bo,o),h=UP(bo,o),[y,w]=p.useState(null),S=ae(i,A=>w(A),m.onItemTextChange,A=>{var k;return(k=v.itemTextRefCallback)==null?void 0:k.call(v,A,m.value,m.disabled)}),E=y==null?void 0:y.textContent,T=p.useMemo(()=>x.jsx("option",{value:m.value,disabled:m.disabled,children:E},m.value),[m.disabled,m.value,E]),{onNativeOptionAdd:C,onNativeOptionRemove:P}=h;return Le(()=>(C(T),()=>P(T)),[C,P,T]),x.jsxs(x.Fragment,{children:[x.jsx(Q.span,{id:m.textId,...c,ref:S}),m.isSelected&&f.valueNode&&!f.valueNodeHasChildren?rr.createPortal(c.children,f.valueNode):null]})});ng.displayName=bo;var rg="SelectItemIndicator",eR=p.forwardRef((n,i)=>{const{__scopeSelect:o,...s}=n;return eg(rg,o).isSelected?x.jsx(Q.span,{"aria-hidden":!0,...s,ref:i}):null});eR.displayName=rg;var Du="SelectScrollUpButton",tR=p.forwardRef((n,i)=>{const o=jn(Du,n.__scopeSelect),s=gc(Du,n.__scopeSelect),[a,c]=p.useState(!1),f=ae(i,s.onScrollButtonChange);return Le(()=>{if(o.viewport&&o.isPositioned){let v=function(){const h=m.scrollTop>0;c(h)};const m=o.viewport;return v(),m.addEventListener("scroll",v),()=>m.removeEventListener("scroll",v)}},[o.viewport,o.isPositioned]),a?x.jsx(og,{...n,ref:f,onAutoScroll:()=>{const{viewport:v,selectedItem:m}=o;v&&m&&(v.scrollTop=v.scrollTop-m.offsetHeight)}}):null});tR.displayName=Du;var Ou="SelectScrollDownButton",nR=p.forwardRef((n,i)=>{const o=jn(Ou,n.__scopeSelect),s=gc(Ou,n.__scopeSelect),[a,c]=p.useState(!1),f=ae(i,s.onScrollButtonChange);return Le(()=>{if(o.viewport&&o.isPositioned){let v=function(){const h=m.scrollHeight-m.clientHeight,y=Math.ceil(m.scrollTop)<h;c(y)};const m=o.viewport;return v(),m.addEventListener("scroll",v),()=>m.removeEventListener("scroll",v)}},[o.viewport,o.isPositioned]),a?x.jsx(og,{...n,ref:f,onAutoScroll:()=>{const{viewport:v,selectedItem:m}=o;v&&m&&(v.scrollTop=v.scrollTop+m.offsetHeight)}}):null});nR.displayName=Ou;var og=p.forwardRef((n,i)=>{const{__scopeSelect:o,onAutoScroll:s,...a}=n,c=jn("SelectScrollButton",o),f=p.useRef(null),v=ts(o),m=p.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return p.useEffect(()=>()=>m(),[m]),Le(()=>{var y;const h=v().find(w=>w.ref.current===document.activeElement);(y=h==null?void 0:h.ref.current)==null||y.scrollIntoView({block:"nearest"})},[v]),x.jsx(Q.div,{"aria-hidden":!0,...a,ref:i,style:{flexShrink:0,...a.style},onPointerDown:z(a.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(s,50))}),onPointerMove:z(a.onPointerMove,()=>{var h;(h=c.onItemLeave)==null||h.call(c),f.current===null&&(f.current=window.setInterval(s,50))}),onPointerLeave:z(a.onPointerLeave,()=>{m()})})}),rR="SelectSeparator",ig=p.forwardRef((n,i)=>{const{__scopeSelect:o,...s}=n;return x.jsx(Q.div,{"aria-hidden":!0,...s,ref:i})});ig.displayName=rR;var Lu="SelectArrow",oR=p.forwardRef((n,i)=>{const{__scopeSelect:o,...s}=n,a=ns(o),c=bn(Lu,o),f=jn(Lu,o);return c.open&&f.position==="popper"?x.jsx(Ko,{...a,...s,ref:i}):null});oR.displayName=Lu;var iR="SelectBubbleInput",lg=p.forwardRef(({__scopeSelect:n,value:i,...o},s)=>{const a=p.useRef(null),c=ae(s,a),f=Zl(i);return p.useEffect(()=>{const v=a.current;if(!v)return;const m=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(m,"value").set;if(f!==i&&y){const w=new Event("change",{bubbles:!0});y.call(v,i),v.dispatchEvent(w)}},[f,i]),x.jsx(Q.select,{...o,style:{...ah,...o.style},ref:c,defaultValue:i})});lg.displayName=iR;function sg(n){return n===""||n===void 0}function ag(n){const i=Oe(n),o=p.useRef(""),s=p.useRef(0),a=p.useCallback(f=>{const v=o.current+f;i(v),function m(h){o.current=h,window.clearTimeout(s.current),h!==""&&(s.current=window.setTimeout(()=>m(""),1e3))}(v)},[i]),c=p.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,a,c]}function ug(n,i,o){const a=i.length>1&&Array.from(i).every(h=>h===i[0])?i[0]:i,c=o?n.indexOf(o):-1;let f=lR(n,Math.max(c,0));a.length===1&&(f=f.filter(h=>h!==o));const m=f.find(h=>h.textValue.toLowerCase().startsWith(a.toLowerCase()));return m!==o?m:void 0}function lR(n,i){return n.map((o,s)=>n[(i+s)%n.length])}var nT=$h,rT=Bh,oT=Hh,iT=Wh,lT=Vh,sT=Kh,aT=Qh,uT=Jh,cT=tg,dT=ng,fT=ig,rs="Switch",[sR,pT]=Fe(rs),[aR,uR]=sR(rs),cg=p.forwardRef((n,i)=>{const{__scopeSwitch:o,name:s,checked:a,defaultChecked:c,required:f,disabled:v,value:m="on",onCheckedChange:h,form:y,...w}=n,[S,E]=p.useState(null),T=ae(i,M=>E(M)),C=p.useRef(!1),P=S?y||!!S.closest("form"):!0,[A,k]=ct({prop:a,defaultProp:c??!1,onChange:h,caller:rs});return x.jsxs(aR,{scope:o,checked:A,disabled:v,children:[x.jsx(Q.button,{type:"button",role:"switch","aria-checked":A,"aria-required":f,"data-state":vg(A),"data-disabled":v?"":void 0,disabled:v,value:m,...w,ref:T,onClick:z(n.onClick,M=>{k(L=>!L),P&&(C.current=M.isPropagationStopped(),C.current||M.stopPropagation())})}),P&&x.jsx(pg,{control:S,bubbles:!C.current,name:s,value:m,checked:A,required:f,disabled:v,form:y,style:{transform:"translateX(-100%)"}})]})});cg.displayName=rs;var dg="SwitchThumb",fg=p.forwardRef((n,i)=>{const{__scopeSwitch:o,...s}=n,a=uR(dg,o);return x.jsx(Q.span,{"data-state":vg(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:i})});fg.displayName=dg;var cR="SwitchBubbleInput",pg=p.forwardRef(({__scopeSwitch:n,control:i,checked:o,bubbles:s=!0,...a},c)=>{const f=p.useRef(null),v=ae(f,c),m=Zl(o),h=Fl(i);return p.useEffect(()=>{const y=f.current;if(!y)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set;if(m!==o&&E){const T=new Event("click",{bubbles:s});E.call(y,o),y.dispatchEvent(T)}},[m,o,s]),x.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...a,tabIndex:-1,ref:v,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});pg.displayName=cR;function vg(n){return n?"checked":"unchecked"}var vT=cg,mT=fg,mg="AlertDialog",[dR,hT]=Fe(mg,[Mm]),sn=Mm(),hg=n=>{const{__scopeAlertDialog:i,...o}=n,s=sn(i);return x.jsx(IE,{...s,...o,modal:!0})};hg.displayName=mg;var fR="AlertDialogTrigger",gg=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,...s}=n,a=sn(o);return x.jsx(DE,{...a,...s,ref:i})});gg.displayName=fR;var pR="AlertDialogPortal",yg=n=>{const{__scopeAlertDialog:i,...o}=n,s=sn(i);return x.jsx(OE,{...s,...o})};yg.displayName=pR;var vR="AlertDialogOverlay",wg=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,...s}=n,a=sn(o);return x.jsx(LE,{...a,...s,ref:i})});wg.displayName=vR;var br="AlertDialogContent",[mR,hR]=dR(br),gR=ju("AlertDialogContent"),xg=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,children:s,...a}=n,c=sn(o),f=p.useRef(null),v=ae(i,f),m=p.useRef(null);return x.jsx(kE,{contentName:br,titleName:Sg,docsSlug:"alert-dialog",children:x.jsx(mR,{scope:o,cancelRef:m,children:x.jsxs(bE,{role:"alertdialog",...c,...a,ref:v,onOpenAutoFocus:z(a.onOpenAutoFocus,h=>{var y;h.preventDefault(),(y=m.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[x.jsx(gR,{children:s}),x.jsx(wR,{contentRef:f})]})})})});xg.displayName=br;var Sg="AlertDialogTitle",Cg=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,...s}=n,a=sn(o);return x.jsx(jE,{...a,...s,ref:i})});Cg.displayName=Sg;var Eg="AlertDialogDescription",Pg=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,...s}=n,a=sn(o);return x.jsx(FE,{...a,...s,ref:i})});Pg.displayName=Eg;var yR="AlertDialogAction",Rg=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,...s}=n,a=sn(o);return x.jsx(Gm,{...a,...s,ref:i})});Rg.displayName=yR;var Tg="AlertDialogCancel",_g=p.forwardRef((n,i)=>{const{__scopeAlertDialog:o,...s}=n,{cancelRef:a}=hR(Tg,o),c=sn(o),f=ae(i,a);return x.jsx(Gm,{...c,...s,ref:f})});_g.displayName=Tg;var wR=({contentRef:n})=>{const i=`\`${br}\` requires a description for the component to be accessible for screen reader users.

You can add a description to the \`${br}\` by passing a \`${Eg}\` component as a child, which also benefits sighted users by adding visible context to the dialog.

Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${br}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.

For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{var s;document.getElementById((s=n.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(i)},[i,n]),null},gT=hg,yT=gg,wT=yg,xT=wg,ST=xg,CT=Rg,ET=_g,PT=Cg,RT=Pg;function xR(n,i){return p.useReducer((o,s)=>i[o][s]??o,n)}var yc="ScrollArea",[kg,TT]=Fe(yc),[SR,Rt]=kg(yc),Ng=p.forwardRef((n,i)=>{const{__scopeScrollArea:o,type:s="hover",dir:a,scrollHideDelay:c=600,...f}=n,[v,m]=p.useState(null),[h,y]=p.useState(null),[w,S]=p.useState(null),[E,T]=p.useState(null),[C,P]=p.useState(null),[A,k]=p.useState(0),[M,L]=p.useState(0),[F,V]=p.useState(!1),[$,Y]=p.useState(!1),Z=ae(i,se=>m(se)),ne=Br(a);return x.jsx(SR,{scope:o,type:s,dir:ne,scrollHideDelay:c,scrollArea:v,viewport:h,onViewportChange:y,content:w,onContentChange:S,scrollbarX:E,onScrollbarXChange:T,scrollbarXEnabled:F,onScrollbarXEnabledChange:V,scrollbarY:C,onScrollbarYChange:P,scrollbarYEnabled:$,onScrollbarYEnabledChange:Y,onCornerWidthChange:k,onCornerHeightChange:L,children:x.jsx(Q.div,{dir:ne,...f,ref:Z,style:{position:"relative","--radix-scroll-area-corner-width":A+"px","--radix-scroll-area-corner-height":M+"px",...n.style}})})});Ng.displayName=yc;var Ag="ScrollAreaViewport",Mg=p.forwardRef((n,i)=>{const{__scopeScrollArea:o,children:s,nonce:a,...c}=n,f=Rt(Ag,o),v=p.useRef(null),m=ae(i,v,f.onViewportChange);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),x.jsx(Q.div,{"data-radix-scroll-area-viewport":"",...c,ref:m,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:x.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});Mg.displayName=Ag;var Yt="ScrollAreaScrollbar",CR=p.forwardRef((n,i)=>{const{forceMount:o,...s}=n,a=Rt(Yt,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:f}=a,v=n.orientation==="horizontal";return p.useEffect(()=>(v?c(!0):f(!0),()=>{v?c(!1):f(!1)}),[v,c,f]),a.type==="hover"?x.jsx(ER,{...s,ref:i,forceMount:o}):a.type==="scroll"?x.jsx(PR,{...s,ref:i,forceMount:o}):a.type==="auto"?x.jsx(Ig,{...s,ref:i,forceMount:o}):a.type==="always"?x.jsx(wc,{...s,ref:i}):null});CR.displayName=Yt;var ER=p.forwardRef((n,i)=>{const{forceMount:o,...s}=n,a=Rt(Yt,n.__scopeScrollArea),[c,f]=p.useState(!1);return p.useEffect(()=>{const v=a.scrollArea;let m=0;if(v){const h=()=>{window.clearTimeout(m),f(!0)},y=()=>{m=window.setTimeout(()=>f(!1),a.scrollHideDelay)};return v.addEventListener("pointerenter",h),v.addEventListener("pointerleave",y),()=>{window.clearTimeout(m),v.removeEventListener("pointerenter",h),v.removeEventListener("pointerleave",y)}}},[a.scrollArea,a.scrollHideDelay]),x.jsx($e,{present:o||c,children:x.jsx(Ig,{"data-state":c?"visible":"hidden",...s,ref:i})})}),PR=p.forwardRef((n,i)=>{const{forceMount:o,...s}=n,a=Rt(Yt,n.__scopeScrollArea),c=n.orientation==="horizontal",f=is(()=>m("SCROLL_END"),100),[v,m]=xR("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(v==="idle"){const h=window.setTimeout(()=>m("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(h)}},[v,a.scrollHideDelay,m]),p.useEffect(()=>{const h=a.viewport,y=c?"scrollLeft":"scrollTop";if(h){let w=h[y];const S=()=>{const E=h[y];w!==E&&(m("SCROLL"),f()),w=E};return h.addEventListener("scroll",S),()=>h.removeEventListener("scroll",S)}},[a.viewport,c,m,f]),x.jsx($e,{present:o||v!=="hidden",children:x.jsx(wc,{"data-state":v==="hidden"?"hidden":"visible",...s,ref:i,onPointerEnter:z(n.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:z(n.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),Ig=p.forwardRef((n,i)=>{const o=Rt(Yt,n.__scopeScrollArea),{forceMount:s,...a}=n,[c,f]=p.useState(!1),v=n.orientation==="horizontal",m=is(()=>{if(o.viewport){const h=o.viewport.offsetWidth<o.viewport.scrollWidth,y=o.viewport.offsetHeight<o.viewport.scrollHeight;f(v?h:y)}},10);return $r(o.viewport,m),$r(o.content,m),x.jsx($e,{present:s||c,children:x.jsx(wc,{"data-state":c?"visible":"hidden",...a,ref:i})})}),wc=p.forwardRef((n,i)=>{const{orientation:o="vertical",...s}=n,a=Rt(Yt,n.__scopeScrollArea),c=p.useRef(null),f=p.useRef(0),[v,m]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=bg(v.viewport,v.content),y={...s,sizes:v,onSizesChange:m,hasThumb:h>0&&h<1,onThumbChange:S=>c.current=S,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:S=>f.current=S};function w(S,E){return MR(S,f.current,v,E)}return o==="horizontal"?x.jsx(RR,{...y,ref:i,onThumbPositionChange:()=>{if(a.viewport&&c.current){const S=a.viewport.scrollLeft,E=qp(S,v,a.dir);c.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:S=>{a.viewport&&(a.viewport.scrollLeft=S)},onDragScroll:S=>{a.viewport&&(a.viewport.scrollLeft=w(S,a.dir))}}):o==="vertical"?x.jsx(TR,{...y,ref:i,onThumbPositionChange:()=>{if(a.viewport&&c.current){const S=a.viewport.scrollTop,E=qp(S,v);c.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:S=>{a.viewport&&(a.viewport.scrollTop=S)},onDragScroll:S=>{a.viewport&&(a.viewport.scrollTop=w(S))}}):null}),RR=p.forwardRef((n,i)=>{const{sizes:o,onSizesChange:s,...a}=n,c=Rt(Yt,n.__scopeScrollArea),[f,v]=p.useState(),m=p.useRef(null),h=ae(i,m,c.onScrollbarXChange);return p.useEffect(()=>{m.current&&v(getComputedStyle(m.current))},[m]),x.jsx(Og,{"data-orientation":"horizontal",...a,ref:h,sizes:o,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":os(o)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,w)=>{if(c.viewport){const S=c.viewport.scrollLeft+y.deltaX;n.onWheelScroll(S),Fg(S,w)&&y.preventDefault()}},onResize:()=>{m.current&&c.viewport&&f&&s({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:kl(f.paddingLeft),paddingEnd:kl(f.paddingRight)}})}})}),TR=p.forwardRef((n,i)=>{const{sizes:o,onSizesChange:s,...a}=n,c=Rt(Yt,n.__scopeScrollArea),[f,v]=p.useState(),m=p.useRef(null),h=ae(i,m,c.onScrollbarYChange);return p.useEffect(()=>{m.current&&v(getComputedStyle(m.current))},[m]),x.jsx(Og,{"data-orientation":"vertical",...a,ref:h,sizes:o,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":os(o)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,w)=>{if(c.viewport){const S=c.viewport.scrollTop+y.deltaY;n.onWheelScroll(S),Fg(S,w)&&y.preventDefault()}},onResize:()=>{m.current&&c.viewport&&f&&s({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:kl(f.paddingTop),paddingEnd:kl(f.paddingBottom)}})}})}),[_R,Dg]=kg(Yt),Og=p.forwardRef((n,i)=>{const{__scopeScrollArea:o,sizes:s,hasThumb:a,onThumbChange:c,onThumbPointerUp:f,onThumbPointerDown:v,onThumbPositionChange:m,onDragScroll:h,onWheelScroll:y,onResize:w,...S}=n,E=Rt(Yt,o),[T,C]=p.useState(null),P=ae(i,Z=>C(Z)),A=p.useRef(null),k=p.useRef(""),M=E.viewport,L=s.content-s.viewport,F=Oe(y),V=Oe(m),$=is(w,10);function Y(Z){if(A.current){const ne=Z.clientX-A.current.left,se=Z.clientY-A.current.top;h({x:ne,y:se})}}return p.useEffect(()=>{const Z=ne=>{const se=ne.target;(T==null?void 0:T.contains(se))&&F(ne,L)};return document.addEventListener("wheel",Z,{passive:!1}),()=>document.removeEventListener("wheel",Z,{passive:!1})},[M,T,L,F]),p.useEffect(V,[s,V]),$r(T,$),$r(E.content,$),x.jsx(_R,{scope:o,scrollbar:T,hasThumb:a,onThumbChange:Oe(c),onThumbPointerUp:Oe(f),onThumbPositionChange:V,onThumbPointerDown:Oe(v),children:x.jsx(Q.div,{...S,ref:P,style:{position:"absolute",...S.style},onPointerDown:z(n.onPointerDown,Z=>{Z.button===0&&(Z.target.setPointerCapture(Z.pointerId),A.current=T.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E.viewport&&(E.viewport.style.scrollBehavior="auto"),Y(Z))}),onPointerMove:z(n.onPointerMove,Y),onPointerUp:z(n.onPointerUp,Z=>{const ne=Z.target;ne.hasPointerCapture(Z.pointerId)&&ne.releasePointerCapture(Z.pointerId),document.body.style.webkitUserSelect=k.current,E.viewport&&(E.viewport.style.scrollBehavior=""),A.current=null})})})}),_l="ScrollAreaThumb",kR=p.forwardRef((n,i)=>{const{forceMount:o,...s}=n,a=Dg(_l,n.__scopeScrollArea);return x.jsx($e,{present:o||a.hasThumb,children:x.jsx(NR,{ref:i,...s})})}),NR=p.forwardRef((n,i)=>{const{__scopeScrollArea:o,style:s,...a}=n,c=Rt(_l,o),f=Dg(_l,o),{onThumbPositionChange:v}=f,m=ae(i,w=>f.onThumbChange(w)),h=p.useRef(void 0),y=is(()=>{h.current&&(h.current(),h.current=void 0)},100);return p.useEffect(()=>{const w=c.viewport;if(w){const S=()=>{if(y(),!h.current){const E=IR(w,v);h.current=E,v()}};return v(),w.addEventListener("scroll",S),()=>w.removeEventListener("scroll",S)}},[c.viewport,y,v]),x.jsx(Q.div,{"data-state":f.hasThumb?"visible":"hidden",...a,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:z(n.onPointerDownCapture,w=>{const E=w.target.getBoundingClientRect(),T=w.clientX-E.left,C=w.clientY-E.top;f.onThumbPointerDown({x:T,y:C})}),onPointerUp:z(n.onPointerUp,f.onThumbPointerUp)})});kR.displayName=_l;var xc="ScrollAreaCorner",Lg=p.forwardRef((n,i)=>{const o=Rt(xc,n.__scopeScrollArea),s=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&s?x.jsx(AR,{...n,ref:i}):null});Lg.displayName=xc;var AR=p.forwardRef((n,i)=>{const{__scopeScrollArea:o,...s}=n,a=Rt(xc,o),[c,f]=p.useState(0),[v,m]=p.useState(0),h=!!(c&&v);return $r(a.scrollbarX,()=>{var w;const y=((w=a.scrollbarX)==null?void 0:w.offsetHeight)||0;a.onCornerHeightChange(y),m(y)}),$r(a.scrollbarY,()=>{var w;const y=((w=a.scrollbarY)==null?void 0:w.offsetWidth)||0;a.onCornerWidthChange(y),f(y)}),h?x.jsx(Q.div,{...s,ref:i,style:{width:c,height:v,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function kl(n){return n?parseInt(n,10):0}function bg(n,i){const o=n/i;return isNaN(o)?0:o}function os(n){const i=bg(n.viewport,n.content),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=(n.scrollbar.size-o)*i;return Math.max(s,18)}function MR(n,i,o,s="ltr"){const a=os(o),c=a/2,f=i||c,v=a-f,m=o.scrollbar.paddingStart+f,h=o.scrollbar.size-o.scrollbar.paddingEnd-v,y=o.content-o.viewport,w=s==="ltr"?[0,y]:[y*-1,0];return jg([m,h],w)(n)}function qp(n,i,o="ltr"){const s=os(i),a=i.scrollbar.paddingStart+i.scrollbar.paddingEnd,c=i.scrollbar.size-a,f=i.content-i.viewport,v=c-s,m=o==="ltr"?[0,f]:[f*-1,0],h=Au(n,m);return jg([0,f],[0,v])(h)}function jg(n,i){return o=>{if(n[0]===n[1]||i[0]===i[1])return i[0];const s=(i[1]-i[0])/(n[1]-n[0]);return i[0]+s*(o-n[0])}}function Fg(n,i){return n>0&&n<i}var IR=(n,i=()=>{})=>{let o={left:n.scrollLeft,top:n.scrollTop},s=0;return function a(){const c={left:n.scrollLeft,top:n.scrollTop},f=o.left!==c.left,v=o.top!==c.top;(f||v)&&i(),o=c,s=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(s)};function is(n,i){const o=Oe(n),s=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(s.current),[]),p.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(o,i)},[o,i])}function $r(n,i){const o=Oe(i);Le(()=>{let s=0;if(n){const a=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(o)});return a.observe(n),()=>{window.cancelAnimationFrame(s),a.unobserve(n)}}},[n,o])}var _T=Ng,kT=Mg,NT=Lg,gu,ls="HoverCard",[$g,AT]=Fe(ls,[Gt]),ss=Gt(),[DR,Sc]=$g(ls),zg=n=>{const{__scopeHoverCard:i,children:o,open:s,defaultOpen:a,onOpenChange:c,openDelay:f=700,closeDelay:v=300}=n,m=ss(i),h=p.useRef(0),y=p.useRef(0),w=p.useRef(!1),S=p.useRef(!1),[E,T]=ct({prop:s,defaultProp:a??!1,onChange:c,caller:ls}),C=p.useCallback(()=>{clearTimeout(y.current),h.current=window.setTimeout(()=>T(!0),f)},[f,T]),P=p.useCallback(()=>{clearTimeout(h.current),!w.current&&!S.current&&(y.current=window.setTimeout(()=>T(!1),v))},[v,T]),A=p.useCallback(()=>T(!1),[T]);return p.useEffect(()=>()=>{clearTimeout(h.current),clearTimeout(y.current)},[]),x.jsx(DR,{scope:i,open:E,onOpenChange:T,onOpen:C,onClose:P,onDismiss:A,hasSelectionRef:w,isPointerDownOnContentRef:S,children:x.jsx(Wo,{...m,children:o})})};zg.displayName=ls;var Bg="HoverCardTrigger",Ug=p.forwardRef((n,i)=>{const{__scopeHoverCard:o,...s}=n,a=Sc(Bg,o),c=ss(o);return x.jsx(Wr,{asChild:!0,...c,children:x.jsx(Q.a,{"data-state":a.open?"open":"closed",...s,ref:i,onPointerEnter:z(n.onPointerEnter,Al(a.onOpen)),onPointerLeave:z(n.onPointerLeave,Al(a.onClose)),onFocus:z(n.onFocus,a.onOpen),onBlur:z(n.onBlur,a.onClose),onTouchStart:z(n.onTouchStart,f=>f.preventDefault())})})});Ug.displayName=Bg;var OR="HoverCardPortal",[MT,LR]=$g(OR,{forceMount:void 0}),Nl="HoverCardContent",Hg=p.forwardRef((n,i)=>{const o=LR(Nl,n.__scopeHoverCard),{forceMount:s=o.forceMount,...a}=n,c=Sc(Nl,n.__scopeHoverCard);return x.jsx($e,{present:s||c.open,children:x.jsx(bR,{"data-state":c.open?"open":"closed",...a,onPointerEnter:z(n.onPointerEnter,Al(c.onOpen)),onPointerLeave:z(n.onPointerLeave,Al(c.onClose)),ref:i})})});Hg.displayName=Nl;var bR=p.forwardRef((n,i)=>{const{__scopeHoverCard:o,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,...v}=n,m=Sc(Nl,o),h=ss(o),y=p.useRef(null),w=ae(i,y),[S,E]=p.useState(!1);return p.useEffect(()=>{if(S){const T=document.body;return gu=T.style.userSelect||T.style.webkitUserSelect,T.style.userSelect="none",T.style.webkitUserSelect="none",()=>{T.style.userSelect=gu,T.style.webkitUserSelect=gu}}},[S]),p.useEffect(()=>{if(y.current){const T=()=>{E(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var P;((P=document.getSelection())==null?void 0:P.toString())!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",T),()=>{document.removeEventListener("pointerup",T),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),p.useEffect(()=>{y.current&&$R(y.current).forEach(C=>C.setAttribute("tabindex","-1"))}),x.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:z(c,T=>{T.preventDefault()}),onDismiss:m.onDismiss,children:x.jsx(Vo,{...h,...v,onPointerDown:z(v.onPointerDown,T=>{T.currentTarget.contains(T.target)&&E(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:w,style:{...v.style,userSelect:S?"text":void 0,WebkitUserSelect:S?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),jR="HoverCardArrow",FR=p.forwardRef((n,i)=>{const{__scopeHoverCard:o,...s}=n,a=ss(o);return x.jsx(Ko,{...a,...s,ref:i})});FR.displayName=jR;function Al(n){return i=>i.pointerType==="touch"?void 0:n()}function $R(n){const i=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;o.nextNode();)i.push(o.currentNode);return i}var IT=zg,DT=Ug,OT=Hg,Cc="Radio",[zR,Wg]=Fe(Cc),[BR,UR]=zR(Cc),Vg=p.forwardRef((n,i)=>{const{__scopeRadio:o,name:s,checked:a=!1,required:c,disabled:f,value:v="on",onCheck:m,form:h,...y}=n,[w,S]=p.useState(null),E=ae(i,P=>S(P)),T=p.useRef(!1),C=w?h||!!w.closest("form"):!0;return x.jsxs(BR,{scope:o,checked:a,disabled:f,children:[x.jsx(Q.button,{type:"button",role:"radio","aria-checked":a,"data-state":Xg(a),"data-disabled":f?"":void 0,disabled:f,value:v,...y,ref:E,onClick:z(n.onClick,P=>{a||m==null||m(),C&&(T.current=P.isPropagationStopped(),T.current||P.stopPropagation())})}),C&&x.jsx(Yg,{control:w,bubbles:!T.current,name:s,value:v,checked:a,required:c,disabled:f,form:h,style:{transform:"translateX(-100%)"}})]})});Vg.displayName=Cc;var Kg="RadioIndicator",Gg=p.forwardRef((n,i)=>{const{__scopeRadio:o,forceMount:s,...a}=n,c=UR(Kg,o);return x.jsx($e,{present:s||c.checked,children:x.jsx(Q.span,{"data-state":Xg(c.checked),"data-disabled":c.disabled?"":void 0,...a,ref:i})})});Gg.displayName=Kg;var HR="RadioBubbleInput",Yg=p.forwardRef(({__scopeRadio:n,control:i,checked:o,bubbles:s=!0,...a},c)=>{const f=p.useRef(null),v=ae(f,c),m=Zl(o),h=Fl(i);return p.useEffect(()=>{const y=f.current;if(!y)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set;if(m!==o&&E){const T=new Event("click",{bubbles:s});E.call(y,o),y.dispatchEvent(T)}},[m,o,s]),x.jsx(Q.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...a,tabIndex:-1,ref:v,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Yg.displayName=HR;function Xg(n){return n?"checked":"unchecked"}var WR=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],as="RadioGroup",[VR,LT]=Fe(as,[Kr,Wg]),Qg=Kr(),Zg=Wg(),[KR,GR]=VR(as),qg=p.forwardRef((n,i)=>{const{__scopeRadioGroup:o,name:s,defaultValue:a,value:c,required:f=!1,disabled:v=!1,orientation:m,dir:h,loop:y=!0,onValueChange:w,...S}=n,E=Qg(o),T=Br(h),[C,P]=ct({prop:c,defaultProp:a??null,onChange:w,caller:as});return x.jsx(KR,{scope:o,name:s,required:f,disabled:v,value:C,onValueChange:P,children:x.jsx(Yu,{asChild:!0,...E,orientation:m,dir:T,loop:y,children:x.jsx(Q.div,{role:"radiogroup","aria-required":f,"aria-orientation":m,"data-disabled":v?"":void 0,dir:T,...S,ref:i})})})});qg.displayName=as;var Jg="RadioGroupItem",ey=p.forwardRef((n,i)=>{const{__scopeRadioGroup:o,disabled:s,...a}=n,c=GR(Jg,o),f=c.disabled||s,v=Qg(o),m=Zg(o),h=p.useRef(null),y=ae(i,h),w=c.value===a.value,S=p.useRef(!1);return p.useEffect(()=>{const E=C=>{WR.includes(C.key)&&(S.current=!0)},T=()=>S.current=!1;return document.addEventListener("keydown",E),document.addEventListener("keyup",T),()=>{document.removeEventListener("keydown",E),document.removeEventListener("keyup",T)}},[]),x.jsx(Xu,{asChild:!0,...v,focusable:!f,active:w,children:x.jsx(Vg,{disabled:f,required:c.required,checked:w,...m,...a,name:c.name,ref:y,onCheck:()=>c.onValueChange(a.value),onKeyDown:z(E=>{E.key==="Enter"&&E.preventDefault()}),onFocus:z(a.onFocus,()=>{var E;S.current&&((E=h.current)==null||E.click())})})})});ey.displayName=Jg;var YR="RadioGroupIndicator",ty=p.forwardRef((n,i)=>{const{__scopeRadioGroup:o,...s}=n,a=Zg(o);return x.jsx(Gg,{...a,...s,ref:i})});ty.displayName=YR;var bT=qg,jT=ey,FT=ty,us="Popover",[ny,$T]=Fe(us,[Gt]),qo=Gt(),[XR,Fn]=ny(us),ry=n=>{const{__scopePopover:i,children:o,open:s,defaultOpen:a,onOpenChange:c,modal:f=!1}=n,v=qo(i),m=p.useRef(null),[h,y]=p.useState(!1),[w,S]=ct({prop:s,defaultProp:a??!1,onChange:c,caller:us});return x.jsx(Wo,{...v,children:x.jsx(XR,{scope:i,contentId:ht(),triggerRef:m,open:w,onOpenChange:S,onOpenToggle:p.useCallback(()=>S(E=>!E),[S]),hasCustomAnchor:h,onCustomAnchorAdd:p.useCallback(()=>y(!0),[]),onCustomAnchorRemove:p.useCallback(()=>y(!1),[]),modal:f,children:o})})};ry.displayName=us;var oy="PopoverAnchor",QR=p.forwardRef((n,i)=>{const{__scopePopover:o,...s}=n,a=Fn(oy,o),c=qo(o),{onCustomAnchorAdd:f,onCustomAnchorRemove:v}=a;return p.useEffect(()=>(f(),()=>v()),[f,v]),x.jsx(Wr,{...c,...s,ref:i})});QR.displayName=oy;var iy="PopoverTrigger",ly=p.forwardRef((n,i)=>{const{__scopePopover:o,...s}=n,a=Fn(iy,o),c=qo(o),f=ae(i,a.triggerRef),v=x.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":dy(a.open),...s,ref:f,onClick:z(n.onClick,a.onOpenToggle)});return a.hasCustomAnchor?v:x.jsx(Wr,{asChild:!0,...c,children:v})});ly.displayName=iy;var Ec="PopoverPortal",[ZR,qR]=ny(Ec,{forceMount:void 0}),sy=n=>{const{__scopePopover:i,forceMount:o,children:s,container:a}=n,c=Fn(Ec,i);return x.jsx(ZR,{scope:i,forceMount:o,children:x.jsx($e,{present:o||c.open,children:x.jsx(Vr,{asChild:!0,container:a,children:s})})})};sy.displayName=Ec;var zr="PopoverContent",ay=p.forwardRef((n,i)=>{const o=qR(zr,n.__scopePopover),{forceMount:s=o.forceMount,...a}=n,c=Fn(zr,n.__scopePopover);return x.jsx($e,{present:s||c.open,children:c.modal?x.jsx(e1,{...a,ref:i}):x.jsx(t1,{...a,ref:i})})});ay.displayName=zr;var JR=In("PopoverContent.RemoveScroll"),e1=p.forwardRef((n,i)=>{const o=Fn(zr,n.__scopePopover),s=p.useRef(null),a=ae(i,s),c=p.useRef(!1);return p.useEffect(()=>{const f=s.current;if(f)return $l(f)},[]),x.jsx(Yo,{as:JR,allowPinchZoom:!0,children:x.jsx(uy,{...n,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(n.onCloseAutoFocus,f=>{var v;f.preventDefault(),c.current||(v=o.triggerRef.current)==null||v.focus()}),onPointerDownOutside:z(n.onPointerDownOutside,f=>{const v=f.detail.originalEvent,m=v.button===0&&v.ctrlKey===!0,h=v.button===2||m;c.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:z(n.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),t1=p.forwardRef((n,i)=>{const o=Fn(zr,n.__scopePopover),s=p.useRef(!1),a=p.useRef(!1);return x.jsx(uy,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,v;(f=n.onCloseAutoFocus)==null||f.call(n,c),c.defaultPrevented||(s.current||(v=o.triggerRef.current)==null||v.focus(),c.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:c=>{var m,h;(m=n.onInteractOutside)==null||m.call(n,c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const f=c.target;((h=o.triggerRef.current)==null?void 0:h.contains(f))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.current&&c.preventDefault()}})}),uy=p.forwardRef((n,i)=>{const{__scopePopover:o,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:y,...w}=n,S=Fn(zr,o),E=qo(o);return Dl(),x.jsx(Uo,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:c,children:x.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:y,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:h,onDismiss:()=>S.onOpenChange(!1),children:x.jsx(Vo,{"data-state":dy(S.open),role:"dialog",id:S.contentId,...E,...w,ref:i,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),cy="PopoverClose",n1=p.forwardRef((n,i)=>{const{__scopePopover:o,...s}=n,a=Fn(cy,o);return x.jsx(Q.button,{type:"button",...s,ref:i,onClick:z(n.onClick,()=>a.onOpenChange(!1))})});n1.displayName=cy;var r1="PopoverArrow",o1=p.forwardRef((n,i)=>{const{__scopePopover:o,...s}=n,a=qo(o);return x.jsx(Ko,{...a,...s,ref:i})});o1.displayName=r1;function dy(n){return n?"open":"closed"}var zT=ry,BT=ly,UT=sy,HT=ay;export{mT as $,Q1 as A,Z1 as B,bE as C,FE as D,Y1 as E,p1 as F,X1 as G,J1 as H,f1 as I,eT as J,rT as K,x1 as L,iT as M,lT as N,LE as O,Q as P,sT as Q,u1 as R,s1 as S,jE as T,aT as U,K1 as V,uT as W,cT as X,dT as Y,fT as Z,vT as _,mx as a,xT as a0,wT as a1,ST as a2,PT as a3,RT as a4,_T as a5,kT as a6,NT as a7,CR as a8,kR as a9,V1 as aA,Xm as aB,Zm as aC,Jm as aD,L1 as aE,b1 as aF,th as aG,OT as aa,bT as ab,jT as ac,FT as ad,UT as ae,HT as af,DE as ag,lh as ah,sh as ai,gT as aj,h1 as ak,g1 as al,Gm as am,$1 as an,z1 as ao,B1 as ap,ET as aq,N1 as ar,CT as as,nT as at,oT as au,yT as av,zT as aw,BT as ax,IT as ay,DT as az,IE as b,OE as c,Ml as d,d1 as e,T1 as f,_1 as g,y1 as h,w1 as i,x as j,S1 as k,a1 as l,C1 as m,P1 as n,E1 as o,R1 as p,A1 as q,rr as r,M1 as s,I1 as t,ht as u,O1 as v,U1 as w,dP as x,fP as y,G1 as z};
