var Ad=e=>{throw TypeError(e)};var sa=(e,t,n)=>t.has(e)||Ad("Cannot "+n);var T=(e,t,n)=>(sa(e,t,"read from private field"),n?n.call(e):t.get(e)),se=(e,t,n)=>t.has(e)?Ad("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,r)=>(sa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(sa(e,t,"access private method"),n);var Ks=(e,t,n,r)=>({set _(o){Y(e,t,o,n)},get _(){return T(e,t,r)}});function X0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xp={exports:{}},xl={},Zp={exports:{}},J={};/** * @license React * react.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 As=Symbol.for("react.element"),Z0=Symbol.for("react.portal"),J0=Symbol.for("react.fragment"),ex=Symbol.for("react.strict_mode"),tx=Symbol.for("react.profiler"),nx=Symbol.for("react.provider"),rx=Symbol.for("react.context"),ox=Symbol.for("react.forward_ref"),sx=Symbol.for("react.suspense"),ix=Symbol.for("react.memo"),lx=Symbol.for("react.lazy"),Md=Symbol.iterator;function ax(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var Jp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eh=Object.assign,th={};function Ro(e,t,n){this.props=e,this.context=t,this.refs=th,this.updater=n||Jp}Ro.prototype.isReactComponent={};Ro.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nh(){}nh.prototype=Ro.prototype;function lc(e,t,n){this.props=e,this.context=t,this.refs=th,this.updater=n||Jp}var ac=lc.prototype=new nh;ac.constructor=lc;eh(ac,Ro.prototype);ac.isPureReactComponent=!0;var Ld=Array.isArray,rh=Object.prototype.hasOwnProperty,uc={current:null},oh={key:!0,ref:!0,__self:!0,__source:!0};function sh(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)rh.call(t,r)&&!oh.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,B=k[H];if(0>>1;Ho(ue,L))feo(F,ue)?(k[H]=F,k[fe]=L,H=fe):(k[H]=ue,k[q]=L,H=q);else if(feo(F,L))k[H]=F,k[fe]=L,H=fe;else break e}}return R}function o(k,R){var L=k.sortIndex-R.sortIndex;return L!==0?L:k.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],d=1,f=null,m=3,p=!1,S=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=k)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function b(k){if(v=!1,x(k),!S)if(n(a)!==null)S=!0,j(C);else{var R=n(u);R!==null&&I(b,R.startTime-k)}}function C(k,R){S=!1,v&&(v=!1,y(P),P=-1),p=!0;var L=m;try{for(x(R),f=n(a);f!==null&&(!(f.expirationTime>R)||k&&!z());){var H=f.callback;if(typeof H=="function"){f.callback=null,m=f.priorityLevel;var B=H(f.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(a)&&r(a),x(R)}else r(a);f=n(a)}if(f!==null)var Z=!0;else{var q=n(u);q!==null&&I(b,q.startTime-R),Z=!1}return Z}finally{f=null,m=L,p=!1}}var N=!1,E=null,P=-1,A=5,_=-1;function z(){return!(e.unstable_now()-_k||125H?(k.sortIndex=L,t(u,k),n(a)===null&&k===n(u)&&(v?(y(P),P=-1):v=!0,I(b,L-H))):(k.sortIndex=B,t(a,k),S||p||(S=!0,j(C))),k},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(k){var R=m;return function(){var L=m;m=R;try{return k.apply(this,arguments)}finally{m=L}}}})(ch);uh.exports=ch;var xx=uh.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 wx=h,at=xx;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ha=Object.prototype.hasOwnProperty,Sx=/^[: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]*$/,Fd={},zd={};function bx(e){return Ha.call(zd,e)?!0:Ha.call(Fd,e)?!1:Sx.test(e)?zd[e]=!0:(Fd[e]=!0,!1)}function Cx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ex(e,t,n,r){if(t===null||typeof t>"u"||Cx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qe(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Qe(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){Ae[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var fc=/[\-:]([a-z])/g;function pc(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(fc,pc);Ae[t]=new Qe(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(fc,pc);Ae[t]=new Qe(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(fc,pc);Ae[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function hc(e,t,n,r){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==s[l]){var a=` `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yo(e):""}function kx(e){switch(e.tag){case 5:return Yo(e.type);case 16:return Yo("Lazy");case 13:return Yo("Suspense");case 19:return Yo("SuspenseList");case 0:case 2:case 15:return e=ua(e.type,!1),e;case 11:return e=ua(e.type.render,!1),e;case 1:return e=ua(e.type,!0),e;default:return""}}function Qa(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 Ur:return"Fragment";case Br:return"Portal";case Wa:return"Profiler";case mc:return"StrictMode";case Ga:return"Suspense";case Ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ph:return(e.displayName||"Context")+".Consumer";case fh:return(e._context.displayName||"Context")+".Provider";case vc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gc:return t=e.displayName||null,t!==null?t:Qa(e.type)||"Memo";case Pn:t=e._payload,e=e._init;try{return Qa(e(t))}catch{}}return null}function Nx(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 Qa(t);case 8:return t===mc?"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 Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Px(e){var t=mh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qs(e){e._valueTracker||(e._valueTracker=Px(e))}function vh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fi(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 Ya(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gh(e,t){t=t.checked,t!=null&&hc(e,"checked",t,!1)}function qa(e,t){gh(e,t);var n=Yn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xa(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xa(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ud(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xa(e,t,n){(t!=="number"||Fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ds(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ts={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},Rx=["Webkit","ms","Moz","O"];Object.keys(ts).forEach(function(e){Rx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ts[t]=ts[e]})});function Sh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ts.hasOwnProperty(e)&&ts[e]?(""+t).trim():t+"px"}function bh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Sh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Tx=be({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 eu(e,t){if(t){if(Tx[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 tu(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 nu=null;function yc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ru=null,to=null,no=null;function Wd(e){if(e=Ds(e)){if(typeof ru!="function")throw Error(O(280));var t=e.stateNode;t&&(t=El(t),ru(e.stateNode,e.type,t))}}function Ch(e){to?no?no.push(e):no=[e]:to=e}function Eh(){if(to){var e=to,t=no;if(no=to=null,Wd(e),t)for(e=0;e>>=0,e===0?32:31-($x(e)/Bx|0)|0}var Zs=64,Js=4194304;function Xo(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 Ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Xo(l):(s&=i,s!==0&&(r=Xo(s)))}else i=n&~o,i!==0?r=Xo(i):s!==0&&(r=Xo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function Wx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=rs),ef=" ",tf=!1;function Hh(e,t){switch(e){case"keyup":return xw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function Sw(e,t){switch(e){case"compositionend":return Wh(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function bw(e,t){if(Vr)return e==="compositionend"||!Nc&&Hh(e,t)?(e=Uh(),bi=Cc=Ln=null,Vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sf(n)}}function Yh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qh(){for(var e=window,t=Fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Pc(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 Iw(e){var t=qh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yh(n.ownerDocument.documentElement,n)){if(r!==null&&Pc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=lf(n,s);var i=lf(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hr=null,uu=null,ss=null,cu=!1;function af(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cu||Hr==null||Hr!==Fi(r)||(r=Hr,"selectionStart"in r&&Pc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ss&&gs(ss,r)||(ss=r,r=Wi(uu,"onSelect"),0Kr||(e.current=vu[Kr],vu[Kr]=null,Kr--)}function de(e,t){Kr++,vu[Kr]=e.current,e.current=t}var qn={},Be=nr(qn),Ze=nr(!1),Cr=qn;function wo(e,t){var n=e.type.contextTypes;if(!n)return qn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function Ki(){me(Ze),me(Be)}function mf(e,t,n){if(Be.current!==qn)throw Error(O(168));de(Be,t),de(Ze,n)}function sm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,Nx(e)||"Unknown",o));return be({},n,r)}function Qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,Cr=Be.current,de(Be,e),de(Ze,Ze.current),!0}function vf(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=sm(e,t,Cr),r.__reactInternalMemoizedMergedChildContext=e,me(Ze),me(Be),de(Be,e)):me(Ze),de(Ze,n)}var sn=null,kl=!1,Ca=!1;function im(e){sn===null?sn=[e]:sn.push(e)}function Vw(e){kl=!0,im(e)}function rr(){if(!Ca&&sn!==null){Ca=!0;var e=0,t=ae;try{var n=sn;for(ae=1;e>=i,o-=i,an=1<<32-Lt(t)+o|n<P?(A=E,E=null):A=E.sibling;var _=m(y,E,x[P],b);if(_===null){E===null&&(E=A);break}e&&E&&_.alternate===null&&t(y,E),g=s(_,g,P),N===null?C=_:N.sibling=_,N=_,E=A}if(P===x.length)return n(y,E),xe&&cr(y,P),C;if(E===null){for(;PP?(A=E,E=null):A=E.sibling;var z=m(y,E,_.value,b);if(z===null){E===null&&(E=A);break}e&&E&&z.alternate===null&&t(y,E),g=s(z,g,P),N===null?C=z:N.sibling=z,N=z,E=A}if(_.done)return n(y,E),xe&&cr(y,P),C;if(E===null){for(;!_.done;P++,_=x.next())_=f(y,_.value,b),_!==null&&(g=s(_,g,P),N===null?C=_:N.sibling=_,N=_);return xe&&cr(y,P),C}for(E=r(y,E);!_.done;P++,_=x.next())_=p(E,y,P,_.value,b),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?P:_.key),g=s(_,g,P),N===null?C=_:N.sibling=_,N=_);return e&&E.forEach(function(D){return t(y,D)}),xe&&cr(y,P),C}function w(y,g,x,b){if(typeof x=="object"&&x!==null&&x.type===Ur&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ys:e:{for(var C=x.key,N=g;N!==null;){if(N.key===C){if(C=x.type,C===Ur){if(N.tag===7){n(y,N.sibling),g=o(N,x.props.children),g.return=y,y=g;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Pn&&xf(C)===N.type){n(y,N.sibling),g=o(N,x.props),g.ref=Ho(y,N,x),g.return=y,y=g;break e}n(y,N);break}else t(y,N);N=N.sibling}x.type===Ur?(g=br(x.props.children,y.mode,b,x.key),g.return=y,y=g):(b=ji(x.type,x.key,x.props,null,y.mode,b),b.ref=Ho(y,g,x),b.return=y,y=b)}return i(y);case Br:e:{for(N=x.key;g!==null;){if(g.key===N)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(y,g.sibling),g=o(g,x.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=Ia(x,y.mode,b),g.return=y,y=g}return i(y);case Pn:return N=x._init,w(y,g,N(x._payload),b)}if(qo(x))return S(y,g,x,b);if(zo(x))return v(y,g,x,b);ii(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(y,g.sibling),g=o(g,x),g.return=y,y=g):(n(y,g),g=ja(x,y.mode,b),g.return=y,y=g),i(y)):n(y,g)}return w}var bo=cm(!0),dm=cm(!1),Xi=nr(null),Zi=null,qr=null,Ic=null;function _c(){Ic=qr=Zi=null}function Oc(e){var t=Xi.current;me(Xi),e._currentValue=t}function xu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function oo(e,t){Zi=e,Ic=qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xe=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(Ic!==e)if(e={context:e,memoizedValue:t,next:null},qr===null){if(Zi===null)throw Error(O(308));qr=e,Zi.dependencies={lanes:0,firstContext:e}}else qr=qr.next=e;return t}var pr=null;function Ac(e){pr===null?pr=[e]:pr.push(e)}function fm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ac(t)):(n.next=o.next,o.next=n),t.interleaved=n,pn(e,r)}function pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rn=!1;function Mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pm(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 cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ac(r)):(t.next=o.next,o.next=t),r.interleaved=t,pn(e,n)}function Ei(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wc(e,n)}}function wf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ji(e,t,n,r){var o=e.updateQueue;Rn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(s!==null){var f=o.baseState;i=0,d=u=a=null,l=s;do{var m=l.lane,p=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,v=l;switch(m=t,p=n,v.tag){case 1:if(S=v.payload,typeof S=="function"){f=S.call(p,f,m);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,m=typeof S=="function"?S.call(p,f,m):S,m==null)break e;f=be({},f,m);break e;case 2:Rn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else p={eventTime:p,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,a=f):d=d.next=p,i|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Nr|=i,e.lanes=i,e.memoizedState=f}}function Sf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ka.transition;ka.transition={};try{e(!1),t()}finally{ae=n,ka.transition=r}}function jm(){return xt().memoizedState}function Kw(e,t,n){var r=Gn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Im(e))_m(t,n);else if(n=fm(e,t,n,r),n!==null){var o=Ge();Dt(n,e,r,o),Om(n,t,r)}}function Qw(e,t,n){var r=Gn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Im(e))_m(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ft(l,i)){var a=t.interleaved;a===null?(o.next=o,Ac(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=fm(e,t,o,r),n!==null&&(o=Ge(),Dt(n,e,r,o),Om(n,t,r))}}function Im(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function _m(e,t){is=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Om(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wc(e,n)}}var nl={readContext:yt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Yw={readContext:yt,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Cf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ni(4194308,4,km.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Kw.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:bf,useDebugValue:Vc,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=bf(!1),t=e[0];return e=Gw.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=Ht();if(xe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ie===null)throw Error(O(349));kr&30||gm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Cf(xm.bind(null,r,s,e),[e]),r.flags|=2048,ks(9,ym.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ht(),t=Ie.identifierPrefix;if(xe){var n=un,r=an;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Qt]=t,e[ws]=r,Vm(e,t,!1,!1),t.stateNode=e;e:{switch(i=tu(n,r),n){case"dialog":he("cancel",e),he("close",e),o=r;break;case"iframe":case"object":case"embed":he("load",e),o=r;break;case"video":case"audio":for(o=0;oko&&(t.flags|=128,r=!0,Wo(s,!1),t.lanes=4194304)}else{if(!r)if(e=el(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!xe)return Fe(t),null}else 2*Ne()-s.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,r=!0,Wo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ne(),t.sibling=null,n=we.current,de(we,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function r1(e,t){switch(Tc(t),t.tag){case 1:return Je(t.type)&&Ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),me(Ze),me(Be),Fc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dc(t),null;case 13:if(me(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(we),null;case 4:return Co(),null;case 10:return Oc(t.type._context),null;case 22:case 23:return Yc(),null;case 24:return null;default:return null}}var ai=!1,$e=!1,o1=typeof WeakSet=="function"?WeakSet:Set,$=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Ru(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Af=!1;function s1(e,t){if(du=Vi,e=qh(),Pc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==s||r!==0&&f.nodeType!==3||(a=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=i),m===s&&++d===r&&(a=i),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},Vi=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var v=S.memoizedProps,w=S.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:jt(t.type,v),w);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(b){ke(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return S=Af,Af=!1,S}function ls(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ru(t,n,s)}o=o.next}while(o!==r)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Tu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gm(e){var t=e.alternate;t!==null&&(e.alternate=null,Gm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[ws],delete t[mu],delete t[Bw],delete t[Uw])),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 Km(e){return e.tag===5||e.tag===3||e.tag===4}function Mf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Km(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 ju(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gi));else if(r!==4&&(e=e.child,e!==null))for(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}function Iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}var _e=null,At=!1;function bn(e,t,n){for(n=n.child;n!==null;)Qm(e,t,n),n=n.sibling}function Qm(e,t,n){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:$e||Xr(n,t);case 6:var r=_e,o=At;_e=null,bn(e,t,n),_e=r,At=o,_e!==null&&(At?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(At?(e=_e,n=n.stateNode,e.nodeType===8?ba(e.parentNode,n):e.nodeType===1&&ba(e,n),ms(e)):ba(_e,n.stateNode));break;case 4:r=_e,o=At,_e=n.stateNode.containerInfo,At=!0,bn(e,t,n),_e=r,At=o;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Ru(n,t,i),o=o.next}while(o!==r)}bn(e,t,n);break;case 1:if(!$e&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,bn(e,t,n),$e=r):bn(e,t,n);break;default:bn(e,t,n)}}function Lf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o1),t.forEach(function(r){var o=h1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*l1(r/1960))-r,10e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,sl=0,re&6)throw Error(O(331));var o=re;for(re|=4,$=e.current;$!==null;){var s=$,i=s.child;if($.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aNe()-Kc?Sr(e,0):Gc|=n),et(e,t)}function nv(e,t){t===0&&(e.mode&1?(t=Js,Js<<=1,!(Js&130023424)&&(Js=4194304)):t=1);var n=Ge();e=pn(e,t),e!==null&&(Ms(e,t,n),et(e,n))}function p1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nv(e,n)}function h1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),nv(e,n)}var rv;rv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)Xe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xe=!1,t1(e,t,n);Xe=!!(e.flags&131072)}else Xe=!1,xe&&t.flags&1048576&&lm(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pi(e,t),e=t.pendingProps;var o=wo(t,Be.current);oo(t,n),o=$c(null,t,r,e,o,n);var s=Bc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(s=!0,Qi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mc(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Su(t,r,e,n),t=Eu(null,t,r,!0,s,n)):(t.tag=0,xe&&s&&Rc(t),He(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=v1(r),e=jt(r,e),o){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=If(null,t,r,e,n);break e;case 11:t=Tf(null,t,r,e,n);break e;case 14:t=jf(null,t,r,jt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Cu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),If(e,t,r,o,n);case 3:e:{if($m(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,o=s.element,pm(e,t),Ji(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Eo(Error(O(423)),t),t=_f(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(O(424)),t),t=_f(e,t,r,n,o);break e}else for(st=Vn(t.stateNode.containerInfo.firstChild),it=t,xe=!0,Mt=null,n=dm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=hn(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return hm(t),e===null&&yu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,pu(r,o)?i=null:s!==null&&pu(r,s)&&(t.flags|=32),zm(e,t),He(e,t,i,n),t.child;case 6:return e===null&&yu(t),null;case 13:return Bm(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bo(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Tf(e,t,r,o,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,de(Xi,r._currentValue),r._currentValue=i,s!==null)if(Ft(s.value,i)){if(s.children===o.children&&!Ze.current){t=hn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=cn(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),xu(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(O(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),xu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}He(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,oo(t,n),o=yt(o),r=r(o),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),jf(e,t,r,o,n);case 15:return Dm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Pi(e,t),t.tag=1,Je(r)?(e=!0,Qi(t)):e=!1,oo(t,n),Am(t,r,o),Su(t,r,o,n),Eu(null,t,r,!0,e,n);case 19:return Um(e,t,n);case 22:return Fm(e,t,n)}throw Error(O(156,t.tag))};function ov(e,t){return Ih(e,t)}function m1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new m1(e,t,n,r)}function Xc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function v1(e){if(typeof e=="function")return Xc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vc)return 11;if(e===gc)return 14}return 2}function Kn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ji(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Xc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ur:return br(n.children,o,s,t);case mc:i=8,o|=8;break;case Wa:return e=vt(12,n,t,o|2),e.elementType=Wa,e.lanes=s,e;case Ga:return e=vt(13,n,t,o),e.elementType=Ga,e.lanes=s,e;case Ka:return e=vt(19,n,t,o),e.elementType=Ka,e.lanes=s,e;case hh:return jl(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fh:i=10;break e;case ph:i=9;break e;case vc:i=11;break e;case gc:i=14;break e;case Pn:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=vt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function br(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function jl(e,t,n,r){return e=vt(22,e,r,t),e.elementType=hh,e.lanes=n,e.stateNode={isHidden:!1},e}function ja(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Ia(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zc(e,t,n,r,o,s,i,l,a){return e=new g1(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=vt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mc(s),e}function y1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(av)}catch(e){console.error(e)}}av(),ah.exports=ut;var Io=ah.exports;const uv=qp(Io);var cv,Hf=Io;cv=Hf.createRoot,Hf.hydrateRoot;var Wf=["light","dark"],C1="(prefers-color-scheme: dark)",E1=h.createContext(void 0),k1={setTheme:e=>{},themes:[]},N1=()=>{var e;return(e=h.useContext(E1))!=null?e:k1};h.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:l,nonce:a})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?Wf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(S,v=!1,w=!0)=>{let y=i?i[S]:S,g=v?S+"|| ''":`'${y}'`,x="";return o&&w&&!v&&Wf.includes(S)&&(x+=`d.style.colorScheme = '${S}';`),n==="class"?v||y?x+=`c.add(${g})`:x+="null":y&&(x+=`d[s](n,${g})`),x},p=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${C1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${u?"":"else{"+m(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(s,!1,!1)};}${f}}catch(t){}}();`;return h.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:p}})});var P1=e=>{switch(e){case"success":return j1;case"info":return _1;case"warning":return I1;case"error":return O1;default:return null}},R1=Array(12).fill(0),T1=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},R1.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),j1=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),I1=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),_1=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),O1=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),A1=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),M1=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Lu=1,L1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Lu++,s=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async a=>{if(s=["resolve",a],M.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(F1(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async a=>{if(s=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>i.then(()=>s[0]==="reject"?u(s[1]):a(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Lu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ye=new L1,D1=(e,t)=>{let n=(t==null?void 0:t.id)||Lu++;return Ye.addToast({title:e,...t,id:n}),n},F1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",z1=D1,$1=()=>Ye.toasts,B1=()=>Ye.getActiveToasts(),nt=Object.assign(z1,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:$1,getToasts:B1});function U1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}U1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function di(e){return e.label!==void 0}var V1=3,H1="32px",W1="16px",Gf=4e3,G1=356,K1=14,Q1=20,Y1=200;function kt(...e){return e.filter(Boolean).join(" ")}function q1(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var X1=e=>{var t,n,r,o,s,i,l,a,u,d,f;let{invert:m,toast:p,unstyled:S,interacting:v,setHeights:w,visibleToasts:y,heights:g,index:x,toasts:b,expanded:C,removeToast:N,defaultRichColors:E,closeButton:P,style:A,cancelButtonStyle:_,actionButtonStyle:z,className:D="",descriptionClassName:U="",duration:V,position:G,gap:j,loadingIcon:I,expandByDefault:k,classNames:R,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:B}=e,[Z,q]=M.useState(null),[ue,fe]=M.useState(null),[F,le]=M.useState(!1),[Ce,ie]=M.useState(!1),[ee,oe]=M.useState(!1),[Me,dt]=M.useState(!1),[ir,yn]=M.useState(!1),[lr,Do]=M.useState(0),[Or,Rd]=M.useState(0),Fo=M.useRef(p.duration||V||Gf),Td=M.useRef(null),ar=M.useRef(null),U0=x===0,V0=x+1<=y,ft=p.type,Ar=p.dismissible!==!1,H0=p.className||"",W0=p.descriptionClassName||"",Gs=M.useMemo(()=>g.findIndex(Q=>Q.toastId===p.id)||0,[g,p.id]),G0=M.useMemo(()=>{var Q;return(Q=p.closeButton)!=null?Q:P},[p.closeButton,P]),jd=M.useMemo(()=>p.duration||V||Gf,[p.duration,V]),ra=M.useRef(0),Mr=M.useRef(0),Id=M.useRef(0),Lr=M.useRef(null),[K0,Q0]=G.split("-"),_d=M.useMemo(()=>g.reduce((Q,ce,ge)=>ge>=Gs?Q:Q+ce.height,0),[g,Gs]),Od=M1(),Y0=p.invert||m,oa=ft==="loading";Mr.current=M.useMemo(()=>Gs*j+_d,[Gs,_d]),M.useEffect(()=>{Fo.current=jd},[jd]),M.useEffect(()=>{le(!0)},[]),M.useEffect(()=>{let Q=ar.current;if(Q){let ce=Q.getBoundingClientRect().height;return Rd(ce),w(ge=>[{toastId:p.id,height:ce,position:p.position},...ge]),()=>w(ge=>ge.filter(St=>St.toastId!==p.id))}},[w,p.id]),M.useLayoutEffect(()=>{if(!F)return;let Q=ar.current,ce=Q.style.height;Q.style.height="auto";let ge=Q.getBoundingClientRect().height;Q.style.height=ce,Rd(ge),w(St=>St.find(bt=>bt.toastId===p.id)?St.map(bt=>bt.toastId===p.id?{...bt,height:ge}:bt):[{toastId:p.id,height:ge,position:p.position},...St])},[F,p.title,p.description,w,p.id]);let xn=M.useCallback(()=>{ie(!0),Do(Mr.current),w(Q=>Q.filter(ce=>ce.toastId!==p.id)),setTimeout(()=>{N(p)},Y1)},[p,N,w,Mr]);M.useEffect(()=>{if(p.promise&&ft==="loading"||p.duration===1/0||p.type==="loading")return;let Q;return C||v||B&&Od?(()=>{if(Id.current{var ce;(ce=p.onAutoClose)==null||ce.call(p,p),xn()},Fo.current)),()=>clearTimeout(Q)},[C,v,p,ft,B,Od,xn]),M.useEffect(()=>{p.delete&&xn()},[xn,p.delete]);function q0(){var Q,ce,ge;return L!=null&&L.loading?M.createElement("div",{className:kt(R==null?void 0:R.loader,(Q=p==null?void 0:p.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":ft==="loading"},L.loading):I?M.createElement("div",{className:kt(R==null?void 0:R.loader,(ce=p==null?void 0:p.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":ft==="loading"},I):M.createElement(T1,{className:kt(R==null?void 0:R.loader,(ge=p==null?void 0:p.classNames)==null?void 0:ge.loader),visible:ft==="loading"})}return M.createElement("li",{tabIndex:0,ref:ar,className:kt(D,H0,R==null?void 0:R.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[ft],(n=p==null?void 0:p.classNames)==null?void 0:n[ft]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:E,"data-styled":!(p.jsx||p.unstyled||S),"data-mounted":F,"data-promise":!!p.promise,"data-swiped":ir,"data-removed":Ce,"data-visible":V0,"data-y-position":K0,"data-x-position":Q0,"data-index":x,"data-front":U0,"data-swiping":ee,"data-dismissible":Ar,"data-type":ft,"data-invert":Y0,"data-swipe-out":Me,"data-swipe-direction":ue,"data-expanded":!!(C||k&&F),style:{"--index":x,"--toasts-before":x,"--z-index":b.length-x,"--offset":`${Ce?lr:Mr.current}px`,"--initial-height":k?"auto":`${Or}px`,...A,...p.style},onDragEnd:()=>{oe(!1),q(null),Lr.current=null},onPointerDown:Q=>{oa||!Ar||(Td.current=new Date,Do(Mr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(oe(!0),Lr.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,ce,ge,St;if(Me||!Ar)return;Lr.current=null;let bt=Number(((Q=ar.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wn=Number(((ce=ar.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ur=new Date().getTime()-((ge=Td.current)==null?void 0:ge.getTime()),Ct=Z==="x"?bt:wn,Sn=Math.abs(Ct)/ur;if(Math.abs(Ct)>=Q1||Sn>.11){Do(Mr.current),(St=p.onDismiss)==null||St.call(p,p),fe(Z==="x"?bt>0?"right":"left":wn>0?"down":"up"),xn(),dt(!0),yn(!1);return}oe(!1),q(null)},onPointerMove:Q=>{var ce,ge,St,bt;if(!Lr.current||!Ar||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;let wn=Q.clientY-Lr.current.y,ur=Q.clientX-Lr.current.x,Ct=(ge=e.swipeDirections)!=null?ge:q1(G);!Z&&(Math.abs(ur)>1||Math.abs(wn)>1)&&q(Math.abs(ur)>Math.abs(wn)?"x":"y");let Sn={x:0,y:0};Z==="y"?(Ct.includes("top")||Ct.includes("bottom"))&&(Ct.includes("top")&&wn<0||Ct.includes("bottom")&&wn>0)&&(Sn.y=wn):Z==="x"&&(Ct.includes("left")||Ct.includes("right"))&&(Ct.includes("left")&&ur<0||Ct.includes("right")&&ur>0)&&(Sn.x=ur),(Math.abs(Sn.x)>0||Math.abs(Sn.y)>0)&&yn(!0),(St=ar.current)==null||St.style.setProperty("--swipe-amount-x",`${Sn.x}px`),(bt=ar.current)==null||bt.style.setProperty("--swipe-amount-y",`${Sn.y}px`)}},G0&&!p.jsx?M.createElement("button",{"aria-label":H,"data-disabled":oa,"data-close-button":!0,onClick:oa||!Ar?()=>{}:()=>{var Q;xn(),(Q=p.onDismiss)==null||Q.call(p,p)},className:kt(R==null?void 0:R.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:A1):null,p.jsx||h.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:M.createElement(M.Fragment,null,ft||p.icon||p.promise?M.createElement("div",{"data-icon":"",className:kt(R==null?void 0:R.icon,(i=p==null?void 0:p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||q0():null,p.type!=="loading"?p.icon||(L==null?void 0:L[ft])||P1(ft):null):null,M.createElement("div",{"data-content":"",className:kt(R==null?void 0:R.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},M.createElement("div",{"data-title":"",className:kt(R==null?void 0:R.title,(a=p==null?void 0:p.classNames)==null?void 0:a.title)},typeof p.title=="function"?p.title():p.title),p.description?M.createElement("div",{"data-description":"",className:kt(U,W0,R==null?void 0:R.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),h.isValidElement(p.cancel)?p.cancel:p.cancel&&di(p.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||_,onClick:Q=>{var ce,ge;di(p.cancel)&&Ar&&((ge=(ce=p.cancel).onClick)==null||ge.call(ce,Q),xn())},className:kt(R==null?void 0:R.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,h.isValidElement(p.action)?p.action:p.action&&di(p.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||z,onClick:Q=>{var ce,ge;di(p.action)&&((ge=(ce=p.action).onClick)==null||ge.call(ce,Q),!Q.defaultPrevented&&xn())},className:kt(R==null?void 0:R.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function Kf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Z1(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",l=s?W1:H1;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var J1=h.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:l,offset:a,mobileOffset:u,theme:d="light",richColors:f,duration:m,style:p,visibleToasts:S=V1,toastOptions:v,dir:w=Kf(),gap:y=K1,loadingIcon:g,icons:x,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:C}=e,[N,E]=M.useState([]),P=M.useMemo(()=>Array.from(new Set([r].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,r]),[A,_]=M.useState([]),[z,D]=M.useState(!1),[U,V]=M.useState(!1),[G,j]=M.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=M.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=M.useRef(null),L=M.useRef(!1),H=M.useCallback(B=>{E(Z=>{var q;return(q=Z.find(ue=>ue.id===B.id))!=null&&q.delete||Ye.dismiss(B.id),Z.filter(({id:ue})=>ue!==B.id)})},[]);return M.useEffect(()=>Ye.subscribe(B=>{if(B.dismiss){E(Z=>Z.map(q=>q.id===B.id?{...q,delete:!0}:q));return}setTimeout(()=>{uv.flushSync(()=>{E(Z=>{let q=Z.findIndex(ue=>ue.id===B.id);return q!==-1?[...Z.slice(0,q),{...Z[q],...B},...Z.slice(q+1)]:[B,...Z]})})})}),[]),M.useEffect(()=>{if(d!=="system"){j(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Z})=>{j(Z?"dark":"light")})}catch{B.addListener(({matches:q})=>{try{j(q?"dark":"light")}catch(ue){console.error(ue)}})}},[d]),M.useEffect(()=>{N.length<=1&&D(!1)},[N]),M.useEffect(()=>{let B=Z=>{var q,ue;o.every(fe=>Z[fe]||Z.code===fe)&&(D(!0),(q=I.current)==null||q.focus()),Z.code==="Escape"&&(document.activeElement===I.current||(ue=I.current)!=null&&ue.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[o]),M.useEffect(()=>{if(I.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[I.current]),M.createElement("section",{ref:t,"aria-label":`${b} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((B,Z)=>{var q;let[ue,fe]=B.split("-");return N.length?M.createElement("ol",{key:B,dir:w==="auto"?Kf():w,tabIndex:-1,ref:I,className:l,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":ue,"data-lifted":z&&N.length>1&&!s,"data-x-position":fe,style:{"--front-toast-height":`${((q=A[0])==null?void 0:q.height)||0}px`,"--width":`${G1}px`,"--gap":`${y}px`,...p,...Z1(a,u)},onBlur:F=>{L.current&&!F.currentTarget.contains(F.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=F.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{U||D(!1)},onDragEnd:()=>D(!1),onPointerDown:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||V(!0)},onPointerUp:()=>V(!1)},N.filter(F=>!F.position&&Z===0||F.position===B).map((F,le)=>{var Ce,ie;return M.createElement(X1,{key:F.id,icons:x,index:le,toast:F,defaultRichColors:f,duration:(Ce=v==null?void 0:v.duration)!=null?Ce:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:S,closeButton:(ie=v==null?void 0:v.closeButton)!=null?ie:i,interacting:U,position:B,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:H,toasts:N.filter(ee=>ee.position==F.position),heights:A.filter(ee=>ee.position==F.position),setHeights:_,expandByDefault:s,gap:y,loadingIcon:g,expanded:z,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const eS=({...e})=>{const{theme:t="system"}=N1();return c.jsx(J1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Qf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dv(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Qf(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var y;const{scope:m,children:p,...S}=f,v=((y=m==null?void 0:m[e])==null?void 0:y[a])||l,w=h.useMemo(()=>S,Object.values(S));return c.jsx(v.Provider,{value:w,children:p})};u.displayName=s+"Provider";function d(f,m){var v;const p=((v=m==null?void 0:m[e])==null?void 0:v[a])||l,S=h.useContext(p);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,tS(o,...t)]}function tS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(s)[`__scope${u}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ps(e){const t=rS(e),n=h.forwardRef((r,o)=>{const{children:s,...i}=r,l=h.Children.toArray(s),a=l.find(sS);if(a){const u=a.props.children,d=l.map(f=>f===a?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:f);return c.jsx(t,{...i,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var nS=Ps("Slot");function rS(e){const t=h.forwardRef((n,r)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const i=lS(o),l=iS(s,o.props);return o.type!==h.Fragment&&(l.ref=r?dv(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fv=Symbol("radix.slottable");function oS(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fv,t}function sS(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fv}function iS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function lS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var aS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=aS.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),r=h.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function uS(e,t){e&&Io.flushSync(()=>e.dispatchEvent(t))}function Xn(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function cS(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var dS="DismissableLayer",Du="dismissableLayer.update",fS="dismissableLayer.pointerDownOutside",pS="dismissableLayer.focusOutside",Yf,pv=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nd=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,u=h.useContext(pv),[d,f]=h.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=h.useState({}),S=te(t,E=>f(E)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(w),g=d?v.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=g>=y,C=vS(E=>{const P=E.target,A=[...u.branches].some(_=>_.contains(P));!b||A||(o==null||o(E),i==null||i(E),E.defaultPrevented||l==null||l())},m),N=gS(E=>{const P=E.target;[...u.branches].some(_=>_.contains(P))||(s==null||s(E),i==null||i(E),E.defaultPrevented||l==null||l())},m);return cS(E=>{g===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},m),h.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),qf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Yf)}},[d,m,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),qf())},[d,u]),h.useEffect(()=>{const E=()=>p({});return document.addEventListener(Du,E),()=>document.removeEventListener(Du,E)},[]),c.jsx(K.div,{...a,ref:S,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,N.onFocusCapture),onBlurCapture:W(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});nd.displayName=dS;var hS="DismissableLayerBranch",mS=h.forwardRef((e,t)=>{const n=h.useContext(pv),r=h.useRef(null),o=te(t,r);return h.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(K.div,{...e,ref:o})});mS.displayName=hS;function vS(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){hv(fS,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function gS(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e),r=h.useRef(!1);return h.useEffect(()=>{const o=s=>{s.target&&!r.current&&hv(pS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qf(){const e=new CustomEvent(Du);document.dispatchEvent(e)}function hv(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uS(o,s):o.dispatchEvent(s)}var Ue=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},yS=dc[" useId ".trim().toString()]||(()=>{}),xS=0;function zs(e){const[t,n]=h.useState(yS());return Ue(()=>{n(r=>r??String(xS++))},[e]),t?`radix-${t}`:""}const wS=["top","right","bottom","left"],Zn=Math.min,ot=Math.max,al=Math.round,fi=Math.floor,Jt=e=>({x:e,y:e}),SS={left:"right",right:"left",bottom:"top",top:"bottom"},bS={start:"end",end:"start"};function Fu(e,t,n){return ot(e,Zn(t,n))}function mn(e,t){return typeof e=="function"?e(t):e}function vn(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function rd(e){return e==="x"?"y":"x"}function od(e){return e==="y"?"height":"width"}const CS=new Set(["top","bottom"]);function qt(e){return CS.has(vn(e))?"y":"x"}function sd(e){return rd(qt(e))}function ES(e,t,n){n===void 0&&(n=!1);const r=_o(e),o=sd(e),s=od(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ul(i)),[i,ul(i)]}function kS(e){const t=ul(e);return[zu(e),t,zu(t)]}function zu(e){return e.replace(/start|end/g,t=>bS[t])}const Xf=["left","right"],Zf=["right","left"],NS=["top","bottom"],PS=["bottom","top"];function RS(e,t,n){switch(e){case"top":case"bottom":return n?t?Zf:Xf:t?Xf:Zf;case"left":case"right":return t?NS:PS;default:return[]}}function TS(e,t,n,r){const o=_o(e);let s=RS(vn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(zu)))),s}function ul(e){return e.replace(/left|right|bottom|top/g,t=>SS[t])}function jS(e){return{top:0,right:0,bottom:0,left:0,...e}}function mv(e){return typeof e!="number"?jS(e):{top:e,right:e,bottom:e,left:e}}function cl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jf(e,t,n){let{reference:r,floating:o}=e;const s=qt(t),i=sd(t),l=od(i),a=vn(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(_o(t)){case"start":p[i]-=m*(n&&u?-1:1);break;case"end":p[i]+=m*(n&&u?-1:1);break}return p}const IS=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Jf(u,r,a),m=r,p={},S=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=mn(e,t)||{};if(u==null)return{};const f=mv(d),m={x:n,y:r},p=sd(o),S=od(p),v=await i.getDimensions(u),w=p==="y",y=w?"top":"left",g=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=s.reference[S]+s.reference[p]-m[p]-s.floating[S],C=m[p]-s.reference[p],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=l.floating[x]||s.floating[S]);const P=b/2-C/2,A=E/2-v[S]/2-1,_=Zn(f[y],A),z=Zn(f[g],A),D=_,U=E-v[S]-z,V=E/2-v[S]/2+P,G=Fu(D,V,U),j=!a.arrow&&_o(o)!=null&&V!==G&&s.reference[S]/2-(VV<=0)){var z,D;const V=(((z=s.flip)==null?void 0:z.index)||0)+1,G=E[V];if(G&&(!(f==="alignment"?g!==qt(G):!1)||_.every(k=>k.overflows[0]>0&&qt(k.placement)===g)))return{data:{index:V,overflows:_},reset:{placement:G}};let j=(D=_.filter(I=>I.overflows[0]<=0).sort((I,k)=>I.overflows[1]-k.overflows[1])[0])==null?void 0:D.placement;if(!j)switch(p){case"bestFit":{var U;const I=(U=_.filter(k=>{if(N){const R=qt(k.placement);return R===g||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:U[0];I&&(j=I);break}case"initialPlacement":j=l;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function ep(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tp(e){return wS.some(t=>e[t]>=0)}const AS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=mn(e,t);switch(r){case"referenceHidden":{const s=await Rs(t,{...o,elementContext:"reference"}),i=ep(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:tp(i)}}}case"escaped":{const s=await Rs(t,{...o,altBoundary:!0}),i=ep(s,n.floating);return{data:{escapedOffsets:i,escaped:tp(i)}}}default:return{}}}}},vv=new Set(["left","top"]);async function MS(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=vn(n),l=_o(n),a=qt(n)==="y",u=vv.has(i)?-1:1,d=s&&a?-1:1,f=mn(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof S=="number"&&(p=l==="end"?S*-1:S),a?{x:p*d,y:m*u}:{x:m*u,y:p*d}}const LS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await MS(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},DS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:y,y:g}=w;return{x:y,y:g}}},...a}=mn(e,t),u={x:n,y:r},d=await Rs(t,a),f=qt(vn(o)),m=rd(f);let p=u[m],S=u[f];if(s){const w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",g=p+d[w],x=p-d[y];p=Fu(g,p,x)}if(i){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=S+d[w],x=S-d[y];S=Fu(g,S,x)}const v=l.fn({...t,[m]:p,[f]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[f]:i}}}}}},FS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=mn(e,t),d={x:n,y:r},f=qt(o),m=rd(f);let p=d[m],S=d[f];const v=mn(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const x=m==="y"?"height":"width",b=s.reference[m]-s.floating[x]+w.mainAxis,C=s.reference[m]+s.reference[x]-w.mainAxis;pC&&(p=C)}if(u){var y,g;const x=m==="y"?"width":"height",b=vv.has(vn(o)),C=s.reference[f]-s.floating[x]+(b&&((y=i.offset)==null?void 0:y[f])||0)+(b?0:w.crossAxis),N=s.reference[f]+s.reference[x]+(b?0:((g=i.offset)==null?void 0:g[f])||0)-(b?w.crossAxis:0);SN&&(S=N)}return{[m]:p,[f]:S}}}},zS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...u}=mn(e,t),d=await Rs(t,u),f=vn(o),m=_o(o),p=qt(o)==="y",{width:S,height:v}=s.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=m===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,w=m==="end"?"top":"bottom");const g=v-d.top-d.bottom,x=S-d.left-d.right,b=Zn(v-d[w],g),C=Zn(S-d[y],x),N=!t.middlewareData.shift;let E=b,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),N&&!m){const _=ot(d.left,0),z=ot(d.right,0),D=ot(d.top,0),U=ot(d.bottom,0);p?P=S-2*(_!==0||z!==0?_+z:ot(d.left,d.right)):E=v-2*(D!==0||U!==0?D+U:ot(d.top,d.bottom))}await a({...t,availableWidth:P,availableHeight:E});const A=await i.getDimensions(l.floating);return S!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Ml(){return typeof window<"u"}function Oo(e){return gv(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){var t;return(t=(gv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gv(e){return Ml()?e instanceof Node||e instanceof lt(e).Node:!1}function zt(e){return Ml()?e instanceof Element||e instanceof lt(e).Element:!1}function en(e){return Ml()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function np(e){return!Ml()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}const $S=new Set(["inline","contents"]);function $s(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$S.has(o)}const BS=new Set(["table","td","th"]);function US(e){return BS.has(Oo(e))}const VS=[":popover-open",":modal"];function Ll(e){return VS.some(t=>{try{return e.matches(t)}catch{return!1}})}const HS=["transform","translate","scale","rotate","perspective"],WS=["transform","translate","scale","rotate","perspective","filter"],GS=["paint","layout","strict","content"];function id(e){const t=ld(),n=zt(e)?$t(e):e;return HS.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||WS.some(r=>(n.willChange||"").includes(r))||GS.some(r=>(n.contain||"").includes(r))}function KS(e){let t=Jn(e);for(;en(t)&&!No(t);){if(id(t))return t;if(Ll(t))return null;t=Jn(t)}return null}function ld(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const QS=new Set(["html","body","#document"]);function No(e){return QS.has(Oo(e))}function $t(e){return lt(e).getComputedStyle(e)}function Dl(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||np(e)&&e.host||tn(e);return np(t)?t.host:t}function yv(e){const t=Jn(e);return No(t)?e.ownerDocument?e.ownerDocument.body:e.body:en(t)&&$s(t)?t:yv(t)}function Ts(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yv(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=lt(o);if(s){const l=$u(i);return t.concat(i,i.visualViewport||[],$s(o)?o:[],l&&n?Ts(l):[])}return t.concat(o,Ts(o,[],n))}function $u(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xv(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=en(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=al(n)!==s||al(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function ad(e){return zt(e)?e:e.contextElement}function io(e){const t=ad(e);if(!en(t))return Jt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=xv(t);let i=(s?al(n.width):n.width)/r,l=(s?al(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const YS=Jt(0);function wv(e){const t=lt(e);return!ld()||!t.visualViewport?YS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lt(e)?!1:t}function Rr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ad(e);let i=Jt(1);t&&(r?zt(r)&&(i=io(r)):i=io(e));const l=qS(s,n,r)?wv(s):Jt(0);let a=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const m=lt(s),p=r&&zt(r)?lt(r):r;let S=m,v=$u(S);for(;v&&r&&p!==S;){const w=io(v),y=v.getBoundingClientRect(),g=$t(v),x=y.left+(v.clientLeft+parseFloat(g.paddingLeft))*w.x,b=y.top+(v.clientTop+parseFloat(g.paddingTop))*w.y;a*=w.x,u*=w.y,d*=w.x,f*=w.y,a+=x,u+=b,S=lt(v),v=$u(S)}}return cl({width:d,height:f,x:a,y:u})}function ud(e,t){const n=Dl(e).scrollLeft;return t?t.left+n:Rr(tn(e)).left+n}function Sv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ud(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function XS(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=tn(r),l=t?Ll(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=Jt(1);const d=Jt(0),f=en(r);if((f||!f&&!s)&&((Oo(r)!=="body"||$s(i))&&(a=Dl(r)),en(r))){const p=Rr(r);u=io(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const m=i&&!f&&!s?Sv(i,a,!0):Jt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function ZS(e){return Array.from(e.getClientRects())}function JS(e){const t=tn(e),n=Dl(e),r=e.ownerDocument.body,o=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ud(e);const l=-n.scrollTop;return $t(r).direction==="rtl"&&(i+=ot(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function eb(e,t){const n=lt(e),r=tn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const u=ld();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l,y:a}}const tb=new Set(["absolute","fixed"]);function nb(e,t){const n=Rr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=en(e)?io(e):Jt(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:l,x:a,y:u}}function rp(e,t,n){let r;if(t==="viewport")r=eb(e,n);else if(t==="document")r=JS(tn(e));else if(zt(t))r=nb(t,n);else{const o=wv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return cl(r)}function bv(e,t){const n=Jn(e);return n===t||!zt(n)||No(n)?!1:$t(n).position==="fixed"||bv(n,t)}function rb(e,t){const n=t.get(e);if(n)return n;let r=Ts(e,[],!1).filter(l=>zt(l)&&Oo(l)!=="body"),o=null;const s=$t(e).position==="fixed";let i=s?Jn(e):e;for(;zt(i)&&!No(i);){const l=$t(i),a=id(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&tb.has(o.position)||$s(i)&&!a&&bv(e,i))?r=r.filter(d=>d!==i):o=l,i=Jn(i)}return t.set(e,r),r}function ob(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ll(t)?[]:rb(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((u,d)=>{const f=rp(t,d,o);return u.top=ot(f.top,u.top),u.right=Zn(f.right,u.right),u.bottom=Zn(f.bottom,u.bottom),u.left=ot(f.left,u.left),u},rp(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function sb(e){const{width:t,height:n}=xv(e);return{width:t,height:n}}function ib(e,t,n){const r=en(t),o=tn(t),s=n==="fixed",i=Rr(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=Jt(0);function u(){a.x=ud(o)}if(r||!r&&!s)if((Oo(t)!=="body"||$s(o))&&(l=Dl(t)),r){const p=Rr(t,!0,s,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Sv(o,l):Jt(0),f=i.left+l.scrollLeft-a.x-d.x,m=i.top+l.scrollTop-a.y-d.y;return{x:f,y:m,width:i.width,height:i.height}}function _a(e){return $t(e).position==="static"}function op(e,t){if(!en(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tn(e)===n&&(n=n.ownerDocument.body),n}function Cv(e,t){const n=lt(e);if(Ll(e))return n;if(!en(e)){let o=Jn(e);for(;o&&!No(o);){if(zt(o)&&!_a(o))return o;o=Jn(o)}return n}let r=op(e,t);for(;r&&US(r)&&_a(r);)r=op(r,t);return r&&No(r)&&_a(r)&&!id(r)?n:r||KS(e)||n}const lb=async function(e){const t=this.getOffsetParent||Cv,n=this.getDimensions,r=await n(e.floating);return{reference:ib(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ab(e){return $t(e).direction==="rtl"}const ub={convertOffsetParentRelativeRectToViewportRelativeRect:XS,getDocumentElement:tn,getClippingRect:ob,getOffsetParent:Cv,getElementRects:lb,getClientRects:ZS,getDimensions:sb,getScale:io,isElement:zt,isRTL:ab};function Ev(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cb(e,t){let n=null,r;const o=tn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:p}=u;if(l||t(),!m||!p)return;const S=fi(f),v=fi(o.clientWidth-(d+m)),w=fi(o.clientHeight-(f+p)),y=fi(d),x={rootMargin:-S+"px "+-v+"px "+-w+"px "+-y+"px",threshold:ot(0,Zn(1,a))||1};let b=!0;function C(N){const E=N[0].intersectionRatio;if(E!==a){if(!b)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Ev(u,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function db(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=ad(e),d=o||s?[...u?Ts(u):[],...Ts(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&l?cb(u,n):null;let m=-1,p=null;i&&(p=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let S,v=a?Rr(e):null;a&&w();function w(){const y=Rr(e);v&&!Ev(v,y)&&n(),v=y,S=requestAnimationFrame(w)}return n(),()=>{var y;d.forEach(g=>{o&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,a&&cancelAnimationFrame(S)}}const fb=LS,pb=DS,hb=OS,mb=zS,vb=AS,sp=_S,gb=FS,yb=(e,t,n)=>{const r=new Map,o={platform:ub,...n},s={...o.platform,_c:r};return IS(e,t,{...o,platform:s})};var xb=typeof document<"u",wb=function(){},Ii=xb?h.useLayoutEffect:wb;function dl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!dl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function kv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ip(e,t){const n=kv(e);return Math.round(t*n)/n}function Oa(e){const t=h.useRef(e);return Ii(()=>{t.current=e}),t}function Sb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=h.useState(r);dl(m,r)||p(r);const[S,v]=h.useState(null),[w,y]=h.useState(null),g=h.useCallback(k=>{k!==N.current&&(N.current=k,v(k))},[]),x=h.useCallback(k=>{k!==E.current&&(E.current=k,y(k))},[]),b=s||S,C=i||w,N=h.useRef(null),E=h.useRef(null),P=h.useRef(d),A=a!=null,_=Oa(a),z=Oa(o),D=Oa(u),U=h.useCallback(()=>{if(!N.current||!E.current)return;const k={placement:t,strategy:n,middleware:m};z.current&&(k.platform=z.current),yb(N.current,E.current,k).then(R=>{const L={...R,isPositioned:D.current!==!1};V.current&&!dl(P.current,L)&&(P.current=L,Io.flushSync(()=>{f(L)}))})},[m,t,n,z,D]);Ii(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const V=h.useRef(!1);Ii(()=>(V.current=!0,()=>{V.current=!1}),[]),Ii(()=>{if(b&&(N.current=b),C&&(E.current=C),b&&C){if(_.current)return _.current(b,C,U);U()}},[b,C,U,_,A]);const G=h.useMemo(()=>({reference:N,floating:E,setReference:g,setFloating:x}),[g,x]),j=h.useMemo(()=>({reference:b,floating:C}),[b,C]),I=h.useMemo(()=>{const k={position:n,left:0,top:0};if(!j.floating)return k;const R=ip(j.floating,d.x),L=ip(j.floating,d.y);return l?{...k,transform:"translate("+R+"px, "+L+"px)",...kv(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,l,j.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:U,refs:G,elements:j,floatingStyles:I}),[d,U,G,j,I])}const bb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?sp({element:r.current,padding:o}).fn(n):{}:r?sp({element:r,padding:o}).fn(n):{}}}},Cb=(e,t)=>({...fb(e),options:[e,t]}),Eb=(e,t)=>({...pb(e),options:[e,t]}),kb=(e,t)=>({...gb(e),options:[e,t]}),Nb=(e,t)=>({...hb(e),options:[e,t]}),Pb=(e,t)=>({...mb(e),options:[e,t]}),Rb=(e,t)=>({...vb(e),options:[e,t]}),Tb=(e,t)=>({...bb(e),options:[e,t]});var jb="Arrow",Nv=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(K.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nv.displayName=jb;var Ib=Nv;function Bs(e){const[t,n]=h.useState(void 0);return Ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var cd="Popper",[Pv,Fl]=wt(cd),[_b,Rv]=Pv(cd),Tv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return c.jsx(_b,{scope:t,anchor:r,onAnchorChange:o,children:n})};Tv.displayName=cd;var jv="PopperAnchor",Iv=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Rv(jv,n),i=h.useRef(null),l=te(t,i);return h.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(K.div,{...o,ref:l})});Iv.displayName=jv;var dd="PopperContent",[Ob,Ab]=Pv(dd),_v=h.forwardRef((e,t)=>{var F,le,Ce,ie,ee,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:S,...v}=e,w=Rv(dd,n),[y,g]=h.useState(null),x=te(t,Me=>g(Me)),[b,C]=h.useState(null),N=Bs(b),E=(N==null?void 0:N.width)??0,P=(N==null?void 0:N.height)??0,A=r+(s!=="center"?"-"+s:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],D=z.length>0,U={padding:_,boundary:z.filter(Lb),altBoundary:D},{refs:V,floatingStyles:G,placement:j,isPositioned:I,middlewareData:k}=Sb({strategy:"fixed",placement:A,whileElementsMounted:(...Me)=>db(...Me,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[Cb({mainAxis:o+P,alignmentAxis:i}),a&&Eb({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?kb():void 0,...U}),a&&Nb({...U}),Pb({...U,apply:({elements:Me,rects:dt,availableWidth:ir,availableHeight:yn})=>{const{width:lr,height:Do}=dt.reference,Or=Me.floating.style;Or.setProperty("--radix-popper-available-width",`${ir}px`),Or.setProperty("--radix-popper-available-height",`${yn}px`),Or.setProperty("--radix-popper-anchor-width",`${lr}px`),Or.setProperty("--radix-popper-anchor-height",`${Do}px`)}}),b&&Tb({element:b,padding:l}),Db({arrowWidth:E,arrowHeight:P}),m&&Rb({strategy:"referenceHidden",...U})]}),[R,L]=Mv(j),H=Xn(S);Ue(()=>{I&&(H==null||H())},[I,H]);const B=(F=k.arrow)==null?void 0:F.x,Z=(le=k.arrow)==null?void 0:le.y,q=((Ce=k.arrow)==null?void 0:Ce.centerOffset)!==0,[ue,fe]=h.useState();return Ue(()=>{y&&fe(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:I?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(ie=k.transformOrigin)==null?void 0:ie.x,(ee=k.transformOrigin)==null?void 0:ee.y].join(" "),...((oe=k.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Ob,{scope:n,placedSide:R,onArrowChange:C,arrowX:B,arrowY:Z,shouldHideArrow:q,children:c.jsx(K.div,{"data-side":R,"data-align":L,...v,ref:x,style:{...v.style,animation:I?void 0:"none"}})})})});_v.displayName=dd;var Ov="PopperArrow",Mb={top:"bottom",right:"left",bottom:"top",left:"right"},Av=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ab(Ov,r),i=Mb[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(Ib,{...o,ref:n,style:{...o.style,display:"block"}})})});Av.displayName=Ov;function Lb(e){return e!==null}var Db=e=>({name:"transformOrigin",options:e,fn(t){var w,y,g;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,d]=Mv(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,p=(((g=o.arrow)==null?void 0:g.y)??0)+a/2;let S="",v="";return u==="bottom"?(S=i?f:`${m}px`,v=`${-a}px`):u==="top"?(S=i?f:`${m}px`,v=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,v=i?f:`${p}px`):u==="left"&&(S=`${r.floating.width+a}px`,v=i?f:`${p}px`),{data:{x:S,y:v}}}});function Mv(e){const[t,n="center"]=e.split("-");return[t,n]}var Fb=Tv,Lv=Iv,Dv=_v,Fv=Av,zb="Portal",zv=h.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=h.useState(!1);Ue(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?uv.createPortal(c.jsx(K.div,{...r,ref:t}),i):null});zv.displayName=zb;function $b(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Us=e=>{const{present:t,children:n}=e,r=Bb(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),s=te(r.ref,Ub(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:s}):null};Us.displayName="Presence";function Bb(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),s=h.useRef("none"),i=e?"mounted":"unmounted",[l,a]=$b(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=pi(r.current);s.current=l==="mounted"?u:"none"},[l]),Ue(()=>{const u=r.current,d=o.current;if(d!==e){const m=s.current,p=pi(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ue(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const v=pi(r.current).includes(p.animationName);if(p.target===t&&v&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=p=>{p.target===t&&(s.current=pi(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function pi(e){return(e==null?void 0:e.animationName)||"none"}function Ub(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Vb=dc[" useInsertionEffect ".trim().toString()]||Ue;function er({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Hb({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=h.useRef(e!==void 0);h.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=h.useCallback(d=>{var f;if(l){const m=Wb(d)?d(e):d;m!==e&&((f=i.current)==null||f.call(i,m))}else s(d)},[l,e,s,i]);return[a,u]}function Hb({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),s=h.useRef(t);return Vb(()=>{s.current=t},[t]),h.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Wb(e){return typeof e=="function"}var $v=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"}),Gb="VisuallyHidden",Bv=h.forwardRef((e,t)=>c.jsx(K.span,{...e,ref:t,style:{...$v,...e.style}}));Bv.displayName=Gb;var Kb=Bv,[zl,cP]=wt("Tooltip",[Fl]),fd=Fl(),Uv="TooltipProvider",Qb=700,lp="tooltip.open",[Yb,Vv]=zl(Uv),Hv=e=>{const{__scopeTooltip:t,delayDuration:n=Qb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=h.useRef(!0),l=h.useRef(!1),a=h.useRef(0);return h.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(Yb,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};Hv.displayName=Uv;var Wv="Tooltip",[dP,$l]=zl(Wv),Bu="TooltipTrigger",qb=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=$l(Bu,n),s=Vv(Bu,n),i=fd(n),l=h.useRef(null),a=te(t,l,o.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(Lv,{asChild:!0,...i,children:c.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:W(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:W(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:W(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:W(e.onBlur,o.onClose),onClick:W(e.onClick,o.onClose)})})});qb.displayName=Bu;var Xb="TooltipPortal",[fP,Zb]=zl(Xb,{forceMount:void 0}),Po="TooltipContent",Gv=h.forwardRef((e,t)=>{const n=Zb(Po,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=$l(Po,e.__scopeTooltip);return c.jsx(Us,{present:r||i.open,children:i.disableHoverableContent?c.jsx(Kv,{side:o,...s,ref:t}):c.jsx(Jb,{side:o,...s,ref:t})})}),Jb=h.forwardRef((e,t)=>{const n=$l(Po,e.__scopeTooltip),r=Vv(Po,e.__scopeTooltip),o=h.useRef(null),s=te(t,o),[i,l]=h.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,m=h.useCallback(()=>{l(null),f(!1)},[f]),p=h.useCallback((S,v)=>{const w=S.currentTarget,y={x:S.clientX,y:S.clientY},g=oC(y,w.getBoundingClientRect()),x=sC(y,g),b=iC(v.getBoundingClientRect()),C=aC([...x,...b]);l(C),f(!0)},[f]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(a&&d){const S=w=>p(w,d),v=w=>p(w,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",v)}}},[a,d,p,m]),h.useEffect(()=>{if(i){const S=v=>{const w=v.target,y={x:v.clientX,y:v.clientY},g=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),x=!lC(y,i);g?m():x&&(m(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,i,u,m]),c.jsx(Kv,{...e,ref:s})}),[eC,tC]=zl(Wv,{isInside:!1}),nC=oS("TooltipContent"),Kv=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=$l(Po,n),u=fd(n),{onClose:d}=a;return h.useEffect(()=>(document.addEventListener(lp,d),()=>document.removeEventListener(lp,d)),[d]),h.useEffect(()=>{if(a.trigger){const f=m=>{const p=m.target;p!=null&&p.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),c.jsx(nd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(Dv,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.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:[c.jsx(nC,{children:r}),c.jsx(eC,{scope:n,isInside:!0,children:c.jsx(Kb,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Gv.displayName=Po;var Qv="TooltipArrow",rC=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fd(n);return tC(Qv,n).isInside?null:c.jsx(Fv,{...o,...r,ref:t})});rC.displayName=Qv;function oC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function iC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function lC(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function aC(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),uC(t)}function uC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cC=Hv,Yv=Gv;function qv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=pC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(pd);return l[0]===""&&l.length!==1&&l.shift(),Zv(l,t)||fC(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},Zv=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Zv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(pd);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},ap=/^\[(.+)\]$/,fC=e=>{if(ap.test(e)){const t=ap.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mC(Object.entries(e.classGroups),n).forEach(([s,i])=>{Uu(i,r,s,t)}),r},Uu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:up(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(hC(o)){Uu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Uu(i,up(t,s),n,r)})})},up=(e,t)=>{let n=e;return t.split(pd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hC=e=>e.isThemeGetter,mC=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,vC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Jv="!",gC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let u=0,d=0,f;for(let w=0;wd?f-d:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:S,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:i}):i},yC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},xC=e=>({cache:vC(e.cacheSize),parseClassName:gC(e),...dC(e)}),wC=/\s+/,SC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(wC);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:p}=n(u);let S=!!p,v=r(S?m.substring(0,p):m);if(!v){if(!S){l=u+(l.length>0?" "+l:l);continue}if(v=r(m),!v){l=u+(l.length>0?" "+l:l);continue}S=!1}const w=yC(d).join(":"),y=f?w+Jv:w,g=y+v;if(s.includes(g))continue;s.push(g);const x=o(v,S);for(let b=0;b0?" "+l:l)}return l};function bC(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(d),e());return n=xC(u),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=SC(a,n);return o(a,d),d}return function(){return s(bC.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},tg=/^\[(?:([a-z-]+):)?(.+)\]$/i,EC=/^\d+\/\d+$/,kC=new Set(["px","full","screen"]),NC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,RC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nn=e=>lo(e)||kC.has(e)||EC.test(e),Cn=e=>Ao(e,"length",FC),lo=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>Ao(e,"number",lo),Ko=e=>!!e&&Number.isInteger(Number(e)),IC=e=>e.endsWith("%")&&lo(e.slice(0,-1)),X=e=>tg.test(e),En=e=>NC.test(e),_C=new Set(["length","size","percentage"]),OC=e=>Ao(e,_C,ng),AC=e=>Ao(e,"position",ng),MC=new Set(["image","url"]),LC=e=>Ao(e,MC,$C),DC=e=>Ao(e,"",zC),Qo=()=>!0,Ao=(e,t,n)=>{const r=tg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},FC=e=>PC.test(e)&&!RC.test(e),ng=()=>!1,zC=e=>TC.test(e),$C=e=>jC.test(e),BC=()=>{const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),s=pe("borderRadius"),i=pe("borderSpacing"),l=pe("borderWidth"),a=pe("contrast"),u=pe("grayscale"),d=pe("hueRotate"),f=pe("invert"),m=pe("gap"),p=pe("gradientColorStops"),S=pe("gradientColorStopPositions"),v=pe("inset"),w=pe("margin"),y=pe("opacity"),g=pe("padding"),x=pe("saturate"),b=pe("scale"),C=pe("sepia"),N=pe("skew"),E=pe("space"),P=pe("translate"),A=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",X,t],D=()=>[X,t],U=()=>["",nn,Cn],V=()=>["auto",lo,X],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],I=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",X],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[lo,X];return{cacheSize:500,separator:":",theme:{colors:[Qo],spacing:[nn,Cn],blur:["none","",En,X],brightness:H(),borderColor:[e],borderRadius:["none","","full",En,X],borderSpacing:D(),borderWidth:U(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[IC,Cn],inset:z(),margin:z(),opacity:H(),padding:D(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[En]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),X]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ko,X]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ko,X]}],"grid-cols":[{"grid-cols":[Qo]}],"col-start-end":[{col:["auto",{span:["full",Ko,X]},X]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[Qo]}],"row-start-end":[{row:["auto",{span:[Ko,X]},X]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[En]},En]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",En,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Aa]}],"font-family":[{font:[Qo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",lo,Aa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",nn,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",nn,Cn]}],"underline-offset":[{"underline-offset":["auto",nn,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),AC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",OC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},LC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:j()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[nn,X]}],"outline-w":[{outline:[nn,Cn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[nn,Cn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",En,DC]}],"shadow-color":[{shadow:[Qo]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...I(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":I()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",En,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Ko,X]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[nn,Cn,Aa]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},UC=CC(BC);function ne(...e){return UC(Xv(e))}const VC=cC,HC=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Yv,{ref:r,sideOffset:t,className:ne("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));HC.displayName=Yv.displayName;var Bl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ul=typeof window>"u"||"Deno"in globalThis;function It(){}function WC(e,t){return typeof e=="function"?e(t):e}function GC(e){return typeof e=="number"&&e>=0&&e!==1/0}function KC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vu(e,t){return typeof e=="function"?e(t):e}function QC(e,t){return typeof e=="function"?e(t):e}function cp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==hd(i,t.options))return!1}else if(!Is(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function dp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(js(t.options.mutationKey)!==js(s))return!1}else if(!Is(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function hd(e,t){return((t==null?void 0:t.queryKeyHashFn)||js)(e)}function js(e){return JSON.stringify(e,(t,n)=>Hu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Is(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Is(e[n],t[n])):!1}function rg(e,t){if(e===t)return e;const n=fp(e)&&fp(t);if(n||Hu(e)&&Hu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,l=n?[]:{},a=new Set(r);let u=0;for(let d=0;d{setTimeout(t,e)})}function qC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?rg(e,t):t}function XC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ZC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var md=Symbol();function og(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===md?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var mr,In,co,Up,JC=(Up=class extends Bl{constructor(){super();se(this,mr);se(this,In);se(this,co);Y(this,co,t=>{if(!Ul&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,In)||this.setEventListener(T(this,co))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,In))==null||t.call(this),Y(this,In,void 0))}setEventListener(t){var n;Y(this,co,t),(n=T(this,In))==null||n.call(this),Y(this,In,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,mr)!==t&&(Y(this,mr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,mr)=="boolean"?T(this,mr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},mr=new WeakMap,In=new WeakMap,co=new WeakMap,Up),sg=new JC,fo,_n,po,Vp,eE=(Vp=class extends Bl{constructor(){super();se(this,fo,!0);se(this,_n);se(this,po);Y(this,po,t=>{if(!Ul&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,_n)||this.setEventListener(T(this,po))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,_n))==null||t.call(this),Y(this,_n,void 0))}setEventListener(t){var n;Y(this,po,t),(n=T(this,_n))==null||n.call(this),Y(this,_n,t(this.setOnline.bind(this)))}setOnline(t){T(this,fo)!==t&&(Y(this,fo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,fo)}},fo=new WeakMap,_n=new WeakMap,po=new WeakMap,Vp),fl=new eE;function tE(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function nE(e){return Math.min(1e3*2**e,3e4)}function ig(e){return(e??"online")==="online"?fl.isOnline():!0}var lg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ma(e){return e instanceof lg}function ag(e){let t=!1,n=0,r=!1,o;const s=tE(),i=v=>{var w;r||(m(new lg(v)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>sg.isFocused()&&(e.networkMode==="always"||fl.isOnline())&&e.canRun(),d=()=>ig(e.networkMode)&&e.canRun(),f=v=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,v),o==null||o(),s.resolve(v))},m=v=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,v),o==null||o(),s.reject(v))},p=()=>new Promise(v=>{var w;o=y=>{(r||u())&&v(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),S=()=>{if(r)return;let v;const w=n===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(f).catch(y=>{var N;if(r)return;const g=e.retry??(Ul?0:3),x=e.retryDelay??nE,b=typeof x=="function"?x(n,y):x,C=g===!0||typeof g=="number"&&nu()?void 0:p()).then(()=>{t?m(y):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?S():p().then(S),s)}}var rE=e=>setTimeout(e,0);function oE(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=rE;const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var We=oE(),vr,Hp,ug=(Hp=class{constructor(){se(this,vr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GC(this.gcTime)&&Y(this,vr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ul?1/0:5*60*1e3))}clearGcTimeout(){T(this,vr)&&(clearTimeout(T(this,vr)),Y(this,vr,void 0))}},vr=new WeakMap,Hp),ho,gr,pt,yr,ze,_s,xr,_t,rn,Wp,sE=(Wp=class extends ug{constructor(t){super();se(this,_t);se(this,ho);se(this,gr);se(this,pt);se(this,yr);se(this,ze);se(this,_s);se(this,xr);Y(this,xr,!1),Y(this,_s,t.defaultOptions),this.setOptions(t.options),this.observers=[],Y(this,yr,t.client),Y(this,pt,T(this,yr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Y(this,ho,lE(this.options)),this.state=t.state??T(this,ho),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...T(this,_s),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,pt).remove(this)}setData(t,n){const r=qC(this.state.data,t,this.options);return Le(this,_t,rn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,_t,rn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,ze))==null?void 0:r.promise;return(o=T(this,ze))==null||o.cancel(t),n?n.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,ho))}isActive(){return this.observers.some(t=>QC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===md||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Vu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!KC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,ze)&&(T(this,xr)?T(this,ze).cancel({revert:!0}):T(this,ze).cancelRetry()),this.scheduleGc()),T(this,pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,_t,rn).call(this,{type:"invalidate"})}fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,ze))return T(this,ze).continueRetry(),T(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(Y(this,xr,!0),r.signal)})},s=()=>{const m=og(this.options,n),S=(()=>{const v={client:T(this,yr),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return Y(this,xr,!1),this.options.persister?this.options.persister(m,S,this):m(S)},l=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,yr),state:this.state,fetchFn:s};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(l,this),Y(this,gr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Le(this,_t,rn).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const a=m=>{var p,S,v,w;Ma(m)&&m.silent||Le(this,_t,rn).call(this,{type:"error",error:m}),Ma(m)||((S=(p=T(this,pt).config).onError)==null||S.call(p,m,this),(w=(v=T(this,pt).config).onSettled)==null||w.call(v,this.state.data,m,this)),this.scheduleGc()};return Y(this,ze,ag({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var p,S,v,w;if(m===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(y){a(y);return}(S=(p=T(this,pt).config).onSuccess)==null||S.call(p,m,this),(w=(v=T(this,pt).config).onSettled)==null||w.call(v,m,this.state.error,this),this.scheduleGc()},onError:a,onFail:(m,p)=>{Le(this,_t,rn).call(this,{type:"failed",failureCount:m,error:p})},onPause:()=>{Le(this,_t,rn).call(this,{type:"pause"})},onContinue:()=>{Le(this,_t,rn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),T(this,ze).start()}},ho=new WeakMap,gr=new WeakMap,pt=new WeakMap,yr=new WeakMap,ze=new WeakMap,_s=new WeakMap,xr=new WeakMap,_t=new WeakSet,rn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...iE(r.data,this.options),fetchMeta:t.meta??null};case"success":return Y(this,gr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ma(o)&&o.revert&&T(this,gr)?{...T(this,gr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),We.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,pt).notify({query:this,type:"updated",action:t})})},Wp);function iE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ig(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wt,Gp,aE=(Gp=class extends Bl{constructor(t={}){super();se(this,Wt);this.config=t,Y(this,Wt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??hd(o,n);let i=this.get(s);return i||(i=new sE({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){T(this,Wt).has(t.queryHash)||(T(this,Wt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Wt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Wt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Wt).get(t)}getAll(){return[...T(this,Wt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>cp(t,r)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wt=new WeakMap,Gp),Gt,Ve,wr,Kt,kn,Kp,uE=(Kp=class extends ug{constructor(t){super();se(this,Kt);se(this,Gt);se(this,Ve);se(this,wr);this.mutationId=t.mutationId,Y(this,Ve,t.mutationCache),Y(this,Gt,[]),this.state=t.state||cE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Gt).includes(t)||(T(this,Gt).push(t),this.clearGcTimeout(),T(this,Ve).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Y(this,Gt,T(this,Gt).filter(n=>n!==t)),this.scheduleGc(),T(this,Ve).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ve).remove(this))}continue(){var t;return((t=T(this,wr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,l,a,u,d,f,m,p,S,v,w,y,g,x,b,C,N,E,P;const n=()=>{Le(this,Kt,kn).call(this,{type:"continue"})};Y(this,wr,ag({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,_)=>{Le(this,Kt,kn).call(this,{type:"failed",failureCount:A,error:_})},onPause:()=>{Le(this,Kt,kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ve).canRun(this)}));const r=this.state.status==="pending",o=!T(this,wr).canStart();try{if(r)n();else{Le(this,Kt,kn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=T(this,Ve).config).onMutate)==null?void 0:i.call(s,t,this));const _=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));_!==this.state.context&&Le(this,Kt,kn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const A=await T(this,wr).start();return await((d=(u=T(this,Ve).config).onSuccess)==null?void 0:d.call(u,A,t,this.state.context,this)),await((m=(f=this.options).onSuccess)==null?void 0:m.call(f,A,t,this.state.context)),await((S=(p=T(this,Ve).config).onSettled)==null?void 0:S.call(p,A,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,A,null,t,this.state.context)),Le(this,Kt,kn).call(this,{type:"success",data:A}),A}catch(A){try{throw await((g=(y=T(this,Ve).config).onError)==null?void 0:g.call(y,A,t,this.state.context,this)),await((b=(x=this.options).onError)==null?void 0:b.call(x,A,t,this.state.context)),await((N=(C=T(this,Ve).config).onSettled)==null?void 0:N.call(C,void 0,A,this.state.variables,this.state.context,this)),await((P=(E=this.options).onSettled)==null?void 0:P.call(E,void 0,A,t,this.state.context)),A}finally{Le(this,Kt,kn).call(this,{type:"error",error:A})}}finally{T(this,Ve).runNext(this)}}},Gt=new WeakMap,Ve=new WeakMap,wr=new WeakMap,Kt=new WeakSet,kn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{T(this,Gt).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ve).notify({mutation:this,type:"updated",action:t})})},Kp);function cE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ln,Ot,Os,Qp,dE=(Qp=class extends Bl{constructor(t={}){super();se(this,ln);se(this,Ot);se(this,Os);this.config=t,Y(this,ln,new Set),Y(this,Ot,new Map),Y(this,Os,0)}build(t,n,r){const o=new uE({mutationCache:this,mutationId:++Ks(this,Os)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,ln).add(t);const n=hi(t);if(typeof n=="string"){const r=T(this,Ot).get(n);r?r.push(t):T(this,Ot).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,ln).delete(t)){const n=hi(t);if(typeof n=="string"){const r=T(this,Ot).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,Ot).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=hi(t);if(typeof n=="string"){const r=T(this,Ot).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=hi(t);if(typeof n=="string"){const o=(r=T(this,Ot).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){We.batch(()=>{T(this,ln).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,ln).clear(),T(this,Ot).clear()})}getAll(){return Array.from(T(this,ln))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dp(n,r))}findAll(t={}){return this.getAll().filter(n=>dp(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return We.batch(()=>Promise.all(t.map(n=>n.continue().catch(It))))}},ln=new WeakMap,Ot=new WeakMap,Os=new WeakMap,Qp);function hi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function hp(e){return{onFetch:(t,n)=>{var d,f,m,p,S;const r=t.options,o=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},y=og(t.options,t.fetchOptions),g=async(x,b,C)=>{if(v)return Promise.reject();if(b==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:b,direction:C?"backward":"forward",meta:t.options.meta};return w(z),z})(),P=await y(E),{maxPages:A}=t.options,_=C?ZC:XC;return{pages:_(x.pages,P,A),pageParams:_(x.pageParams,b,A)}};if(o&&s.length){const x=o==="backward",b=x?fE:mp,C={pages:s,pageParams:i},N=b(r,C);l=await g(C,N,x)}else{const x=e??s.length;do{const b=a===0?i[0]??r.initialPageParam:mp(r,l);if(a>0&&b==null)break;l=await g(l,b),a++}while(a{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function mp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fE(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ee,On,An,mo,vo,Mn,go,yo,Yp,pE=(Yp=class{constructor(e={}){se(this,Ee);se(this,On);se(this,An);se(this,mo);se(this,vo);se(this,Mn);se(this,go);se(this,yo);Y(this,Ee,e.queryCache||new aE),Y(this,On,e.mutationCache||new dE),Y(this,An,e.defaultOptions||{}),Y(this,mo,new Map),Y(this,vo,new Map),Y(this,Mn,0)}mount(){Ks(this,Mn)._++,T(this,Mn)===1&&(Y(this,go,sg.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ee).onFocus())})),Y(this,yo,fl.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ee).onOnline())})))}unmount(){var e,t;Ks(this,Mn)._--,T(this,Mn)===0&&((e=T(this,go))==null||e.call(this),Y(this,go,void 0),(t=T(this,yo))==null||t.call(this),Y(this,yo,void 0))}isFetching(e){return T(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,On).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ee).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,Ee).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,Ee).get(r.queryHash),s=o==null?void 0:o.state.data,i=WC(t,s);if(i!==void 0)return T(this,Ee).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>T(this,Ee).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ee);We.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ee);return We.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=We.batch(()=>T(this,Ee).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(It).catch(It)}invalidateQueries(e,t={}){return We.batch(()=>(T(this,Ee).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=We.batch(()=>T(this,Ee).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(It)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(It)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ee).build(this,t);return n.isStaleByTime(Vu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(It).catch(It)}fetchInfiniteQuery(e){return e.behavior=hp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(It).catch(It)}ensureInfiniteQueryData(e){return e.behavior=hp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fl.isOnline()?T(this,On).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ee)}getMutationCache(){return T(this,On)}getDefaultOptions(){return T(this,An)}setDefaultOptions(e){Y(this,An,e)}setQueryDefaults(e,t){T(this,mo).set(js(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,mo).values()],n={};return t.forEach(r=>{Is(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,vo).set(js(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,vo).values()],n={};return t.forEach(r=>{Is(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,An).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===md&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,An).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ee).clear(),T(this,On).clear()}},Ee=new WeakMap,On=new WeakMap,An=new WeakMap,mo=new WeakMap,vo=new WeakMap,Mn=new WeakMap,go=new WeakMap,yo=new WeakMap,Yp),hE=h.createContext(void 0),mE=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(hE.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gE(){return Math.random().toString(36).substr(2,8)}function gp(e,t){return{usr:e.state,key:e.key,idx:t}}function Wu(e,t,n,r){return n===void 0&&(n=null),pl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vl(t):t,{state:n,key:t&&t.key||r||gE()})}function dg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Vl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function yE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=Fn.Pop,a=null,u=d();u==null&&(u=0,i.replaceState(pl({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=Fn.Pop;let w=d(),y=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:y})}function m(w,y){l=Fn.Push;let g=Wu(v.location,w,y);u=d()+1;let x=gp(g,u),b=v.createHref(g);try{i.pushState(x,"",b)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(b)}s&&a&&a({action:l,location:v.location,delta:1})}function p(w,y){l=Fn.Replace;let g=Wu(v.location,w,y);u=d();let x=gp(g,u),b=v.createHref(g);i.replaceState(x,"",b),s&&a&&a({action:l,location:v.location,delta:0})}function S(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:dg(w);return g=g.replace(/ $/,"%20"),tt(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let v={get action(){return l},get location(){return e(o,i)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(vp,f),a=w,()=>{o.removeEventListener(vp,f),a=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let y=S(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:p,go(w){return i.go(w)}};return v}var yp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yp||(yp={}));function xE(e,t,n){return n===void 0&&(n="/"),wE(e,t,n)}function wE(e,t,n,r){let o=typeof t=="string"?Vl(t):t,s=hg(o.pathname||"/",n);if(s==null)return null;let i=fg(e);SE(i);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(tt(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=ao([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(tt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),fg(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:RE(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of pg(s.path))o(s,i,a)}),t}function pg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=pg(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function SE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bE=/^:[\w-]+$/,CE=3,EE=2,kE=1,NE=10,PE=-2,xp=e=>e==="*";function RE(e,t){let n=e.split("/"),r=n.length;return n.some(xp)&&(r+=PE),t&&(r+=EE),n.filter(o=>!xp(o)).reduce((o,s)=>o+(bE.test(s)?CE:s===""?kE:NE),r)}function TE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function jE(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let l=0;l{let{paramName:m,isOptional:p}=d;if(m==="*"){let v=l[f]||"";i=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const S=l[f];return p&&!S?u[m]=void 0:u[m]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function _E(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function OE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const ao=e=>e.join("/").replace(/\/\/+/g,"/"),AE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function ME(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mg=["post","put","patch","delete"];new Set(mg);const LE=["get",...mg];new Set(LE);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:ao([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:ao([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&v?h.createElement(Hl.Provider,{value:{location:hl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Fn.Pop}},v):v}function UE(){let e=qE(),t=ME(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const VE=h.createElement(UE,null);class HE extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Wl.Provider,{value:this.props.routeContext},h.createElement(gg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WE(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(DE);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Wl.Provider,{value:t},r)}function GE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||tt(!1),i=i.slice(0,Math.min(i.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let p,S=!1,v=null,w=null;n&&(p=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||VE,a&&(u<0&&m===0?(XE("route-fallback"),S=!0,w=null):u===m&&(S=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,m+1)),g=()=>{let x;return p?x=v:S?x=w:f.route.Component?x=h.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,h.createElement(WE,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?h.createElement(HE,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var yg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yg||{});function KE(e){let t=h.useContext(FE);return t||tt(!1),t}function QE(e){let t=h.useContext(Wl);return t||tt(!1),t}function YE(e){let t=QE(),n=t.matches[t.matches.length-1];return n.route.id||tt(!1),n.route.id}function qE(){var e;let t=h.useContext(gg),n=KE(yg.UseRouteError),r=YE();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const wp={};function XE(e,t,n){wp[e]||(wp[e]=!0)}function ZE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function _i(e){tt(!1)}function JE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Fn.Pop,navigator:s,static:i=!1,future:l}=e;vd()&&tt(!1);let a=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:a,navigator:s,static:i,future:hl({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=Vl(r));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:S="default"}=r,v=h.useMemo(()=>{let w=hg(d,a);return w==null?null:{location:{pathname:w,search:f,hash:m,state:p,key:S},navigationType:o}},[a,d,f,m,p,S,o]);return v==null?null:h.createElement(vg.Provider,{value:u},h.createElement(Hl.Provider,{children:n,value:v}))}function e2(e){let{children:t,location:n}=e;return $E(Gu(t),n)}new Promise(()=>{});function Gu(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let s=[...t,o];if(r.type===h.Fragment){n.push.apply(n,Gu(r.props.children,s));return}r.type!==_i&&tt(!1),!r.props.index||!r.props.children||tt(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Gu(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const t2="6";try{window.__reactRouterVersion=t2}catch{}const n2="startTransition",Sp=dc[n2];function r2(e){let{basename:t,children:n,future:r,window:o}=e,s=h.useRef();s.current==null&&(s.current=vE({window:o,v5Compat:!0}));let i=s.current,[l,a]=h.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=h.useCallback(f=>{u&&Sp?Sp(()=>a(f)):a(f)},[a,u]);return h.useLayoutEffect(()=>i.listen(d),[i,d]),h.useEffect(()=>ZE(r),[r]),h.createElement(JE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var bp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bp||(bp={}));var Cp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cp||(Cp={}));const Ep=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,kp=Xv,Gl=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return kp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const m=Ep(d)||Ep(f);return o[u][m]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:m,...p}=d;return Object.entries(p).every(S=>{let[v,w]=S;return Array.isArray(w)?w.includes({...s,...l}[v]):{...s,...l}[v]===w})?[...u,f,m]:u},[]);return kp(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},o2=Gl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ye=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?nS:"button";return c.jsx(i,{className:ne(o2({variant:t,size:n,className:e})),ref:s,...o})});ye.displayName="Button";const Nt=h.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ne("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Nt.displayName="Card";const Ut=h.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ne("flex flex-col space-y-1.5 p-6",e),...t}));Ut.displayName="CardHeader";const Vt=h.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:ne("text-2xl font-semibold leading-none tracking-tight",e),...t}));Vt.displayName="CardTitle";const Oi=h.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:ne("text-sm text-muted-foreground",e),...t}));Oi.displayName="CardDescription";const Pt=h.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ne("p-6 pt-0",e),...t}));Pt.displayName="CardContent";const s2=h.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ne("flex items-center p-6 pt-0",e),...t}));s2.displayName="CardFooter";const Ku=h.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Ku.displayName="Input";var i2="Label",xg=h.forwardRef((e,t)=>c.jsx(K.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));xg.displayName=i2;var wg=xg;const l2=Gl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Rt=h.forwardRef(({className:e,...t},n)=>c.jsx(wg,{ref:n,className:ne(l2(),e),...t}));Rt.displayName=wg.displayName;function gd(e){const t=e+"CollectionProvider",[n,r]=wt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:w,children:y}=v,g=M.useRef(null),x=M.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:x,collectionRef:g,children:y})};i.displayName=t;const l=e+"CollectionSlot",a=Ps(l),u=M.forwardRef((v,w)=>{const{scope:y,children:g}=v,x=s(l,y),b=te(w,x.collectionRef);return c.jsx(a,{ref:b,children:g})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Ps(d),p=M.forwardRef((v,w)=>{const{scope:y,children:g,...x}=v,b=M.useRef(null),C=te(w,b),N=s(d,y);return M.useEffect(()=>(N.itemMap.set(b,{ref:b,...x}),()=>void N.itemMap.delete(b))),c.jsx(m,{[f]:"",ref:C,children:g})});p.displayName=d;function S(v){const w=s(e+"CollectionConsumer",v);return M.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((N,E)=>x.indexOf(N.ref.current)-x.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},S,r]}var a2=h.createContext(void 0);function Vs(e){const t=h.useContext(a2);return e||t||"ltr"}var La="rovingFocusGroup.onEntryFocus",u2={bubbles:!1,cancelable:!0},Hs="RovingFocusGroup",[Qu,Sg,c2]=gd(Hs),[d2,Kl]=wt(Hs,[c2]),[f2,p2]=d2(Hs),bg=h.forwardRef((e,t)=>c.jsx(Qu.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Qu.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(h2,{...e,ref:t})})}));bg.displayName=Hs;var h2=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=h.useRef(null),p=te(t,m),S=Vs(s),[v,w]=er({prop:i,defaultProp:l??null,onChange:a,caller:Hs}),[y,g]=h.useState(!1),x=Xn(u),b=Sg(n),C=h.useRef(!1),[N,E]=h.useState(0);return h.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(La,x),()=>P.removeEventListener(La,x)},[x]),c.jsx(f2,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:v,onItemFocus:h.useCallback(P=>w(P),[w]),onItemShiftTab:h.useCallback(()=>g(!0),[]),onFocusableItemAdd:h.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:h.useCallback(()=>E(P=>P-1),[]),children:c.jsx(K.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{C.current=!0}),onFocus:W(e.onFocus,P=>{const A=!C.current;if(P.target===P.currentTarget&&A&&!y){const _=new CustomEvent(La,u2);if(P.currentTarget.dispatchEvent(_),!_.defaultPrevented){const z=b().filter(j=>j.focusable),D=z.find(j=>j.active),U=z.find(j=>j.id===v),G=[D,U,...z].filter(Boolean).map(j=>j.ref.current);kg(G,d)}}C.current=!1}),onBlur:W(e.onBlur,()=>g(!1))})})}),Cg="RovingFocusGroupItem",Eg=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...l}=e,a=zs(),u=s||a,d=p2(Cg,n),f=d.currentTabStopId===u,m=Sg(n),{onFocusableItemAdd:p,onFocusableItemRemove:S,currentTabStopId:v}=d;return h.useEffect(()=>{if(r)return p(),()=>S()},[r,p,S]),c.jsx(Qu.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:c.jsx(K.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:W(e.onMouseDown,w=>{r?d.onItemFocus(u):w.preventDefault()}),onFocus:W(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:W(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const y=g2(w,d.orientation,d.dir);if(y!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=m().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(w.currentTarget);x=d.loop?y2(x,b+1):x.slice(b+1)}setTimeout(()=>kg(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:v!=null}):i})})});Eg.displayName=Cg;var m2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function v2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function g2(e,t,n){const r=v2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return m2[r]}function kg(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function y2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ng=bg,Pg=Eg,Ql="Tabs",[x2,pP]=wt(Ql,[Kl]),Rg=Kl(),[w2,yd]=x2(Ql),Tg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:a="automatic",...u}=e,d=Vs(l),[f,m]=er({prop:r,onChange:o,defaultProp:s??"",caller:Ql});return c.jsx(w2,{scope:n,baseId:zs(),value:f,onValueChange:m,orientation:i,dir:d,activationMode:a,children:c.jsx(K.div,{dir:d,"data-orientation":i,...u,ref:t})})});Tg.displayName=Ql;var jg="TabsList",Ig=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=yd(jg,n),i=Rg(n);return c.jsx(Ng,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:c.jsx(K.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Ig.displayName=jg;var _g="TabsTrigger",Og=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=yd(_g,n),l=Rg(n),a=Lg(i.baseId,r),u=Dg(i.baseId,r),d=r===i.value;return c.jsx(Pg,{asChild:!0,...l,focusable:!o,active:d,children:c.jsx(K.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...s,ref:t,onMouseDown:W(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:W(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:W(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(r)})})})});Og.displayName=_g;var Ag="TabsContent",Mg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,l=yd(Ag,n),a=Lg(l.baseId,r),u=Dg(l.baseId,r),d=r===l.value,f=h.useRef(d);return h.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),c.jsx(Us,{present:o||d,children:({present:m})=>c.jsx(K.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!m,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&s})})});Mg.displayName=Ag;function Lg(e,t){return`${e}-trigger-${t}`}function Dg(e,t){return`${e}-content-${t}`}var S2=Tg,Fg=Ig,zg=Og,$g=Mg;const b2=S2,Bg=h.forwardRef(({className:e,...t},n)=>c.jsx(Fg,{ref:n,className:ne("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Bg.displayName=Fg.displayName;const Ai=h.forwardRef(({className:e,...t},n)=>c.jsx(zg,{ref:n,className:ne("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Ai.displayName=zg.displayName;const Mi=h.forwardRef(({className:e,...t},n)=>c.jsx($g,{ref:n,className:ne("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Mi.displayName=$g.displayName;const C2=Gl("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Jo({className:e,variant:t,...n}){return c.jsx("div",{className:ne(C2({variant:t}),e),...n})}const E2=Gl("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ug=h.forwardRef(({className:e,variant:t,...n},r)=>c.jsx("div",{ref:r,role:"alert",className:ne(E2({variant:t}),e),...n}));Ug.displayName="Alert";const Vg=h.forwardRef(({className:e,...t},n)=>c.jsx("h5",{ref:n,className:ne("mb-1 font-medium leading-none tracking-tight",e),...t}));Vg.displayName="AlertTitle";const Hg=h.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ne("text-sm [&_p]:leading-relaxed",e),...t}));Hg.displayName="AlertDescription";var xd="Progress",wd=100,[k2,hP]=wt(xd),[N2,P2]=k2(xd),Wg=h.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:s=R2,...i}=e;(o||o===0)&&!Np(o)&&console.error(T2(`${o}`,"Progress"));const l=Np(o)?o:wd;r!==null&&!Pp(r,l)&&console.error(j2(`${r}`,"Progress"));const a=Pp(r,l)?r:null,u=ml(a)?s(a,l):void 0;return c.jsx(N2,{scope:n,value:a,max:l,children:c.jsx(K.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":ml(a)?a:void 0,"aria-valuetext":u,role:"progressbar","data-state":Qg(a,l),"data-value":a??void 0,"data-max":l,...i,ref:t})})});Wg.displayName=xd;var Gg="ProgressIndicator",Kg=h.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=P2(Gg,n);return c.jsx(K.div,{"data-state":Qg(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Kg.displayName=Gg;function R2(e,t){return`${Math.round(e/t*100)}%`}function Qg(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ml(e){return typeof e=="number"}function Np(e){return ml(e)&&!isNaN(e)&&e>0}function Pp(e,t){return ml(e)&&!isNaN(e)&&e<=t&&e>=0}function T2(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wd}\`.`}function j2(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${wd} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. Defaulting to \`null\`.`}var Yg=Wg,I2=Kg;const qg=h.forwardRef(({className:e,value:t,...n},r)=>c.jsx(Yg,{ref:r,className:ne("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:c.jsx(I2,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));qg.displayName=Yg.displayName;function Ws(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Yl="Switch",[_2,mP]=wt(Yl),[O2,A2]=_2(Yl),Xg=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:i,disabled:l,value:a="on",onCheckedChange:u,form:d,...f}=e,[m,p]=h.useState(null),S=te(t,x=>p(x)),v=h.useRef(!1),w=m?d||!!m.closest("form"):!0,[y,g]=er({prop:o,defaultProp:s??!1,onChange:u,caller:Yl});return c.jsxs(O2,{scope:n,checked:y,disabled:l,children:[c.jsx(K.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":ty(y),"data-disabled":l?"":void 0,disabled:l,value:a,...f,ref:S,onClick:W(e.onClick,x=>{g(b=>!b),w&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),w&&c.jsx(ey,{control:m,bubbles:!v.current,name:r,value:a,checked:y,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Xg.displayName=Yl;var Zg="SwitchThumb",Jg=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=A2(Zg,n);return c.jsx(K.span,{"data-state":ty(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Jg.displayName=Zg;var M2="SwitchBubbleInput",ey=h.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=h.useRef(null),l=te(i,s),a=Ws(n),u=Bs(t);return h.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(a!==n&&p){const S=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(S)}},[a,n,r]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ey.displayName=M2;function ty(e){return e?"checked":"unchecked"}var ny=Xg,L2=Jg;const Jr=h.forwardRef(({className:e,...t},n)=>c.jsx(ny,{className:ne("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:c.jsx(L2,{className:ne("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Jr.displayName=ny.displayName;const vl=h.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));vl.displayName="Textarea";function gl(e,[t,n]){return Math.min(n,Math.max(t,e))}var Da=0;function D2(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rp()),document.body.insertAdjacentElement("beforeend",e[1]??Rp()),Da++,()=>{Da===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Da--}},[])}function Rp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Fa="focusScope.autoFocusOnMount",za="focusScope.autoFocusOnUnmount",Tp={bubbles:!1,cancelable:!0},F2="FocusScope",ry=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[l,a]=h.useState(null),u=Xn(o),d=Xn(s),f=h.useRef(null),m=te(t,v=>a(v)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let v=function(x){if(p.paused||!l)return;const b=x.target;l.contains(b)?f.current=b:Nn(f.current,{select:!0})},w=function(x){if(p.paused||!l)return;const b=x.relatedTarget;b!==null&&(l.contains(b)||Nn(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Nn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const g=new MutationObserver(y);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),g.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){Ip.add(p);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(Fa,Tp);l.addEventListener(Fa,u),l.dispatchEvent(y),y.defaultPrevented||(z2(H2(oy(l)),{select:!0}),document.activeElement===v&&Nn(l))}return()=>{l.removeEventListener(Fa,u),setTimeout(()=>{const y=new CustomEvent(za,Tp);l.addEventListener(za,d),l.dispatchEvent(y),y.defaultPrevented||Nn(v??document.body,{select:!0}),l.removeEventListener(za,d),Ip.remove(p)},0)}}},[l,u,d,p]);const S=h.useCallback(v=>{if(!n&&!r||p.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(w&&y){const g=v.currentTarget,[x,b]=$2(g);x&&b?!v.shiftKey&&y===b?(v.preventDefault(),n&&Nn(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),n&&Nn(b,{select:!0})):y===g&&v.preventDefault()}},[n,r,p.paused]);return c.jsx(K.div,{tabIndex:-1,...i,ref:m,onKeyDown:S})});ry.displayName=F2;function z2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function $2(e){const t=oy(e),n=jp(t,e),r=jp(t.reverse(),e);return[n,r]}function oy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jp(e,t){for(const n of e)if(!B2(n,{upTo:t}))return n}function B2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function U2(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&U2(e)&&t&&e.select()}}var Ip=V2();function V2(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_p(e,t),e.unshift(t)},remove(t){var n;e=_p(e,t),(n=e[0])==null||n.resume()}}}function _p(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function H2(e){return e.filter(t=>t.tagName!=="A")}var W2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fr=new WeakMap,mi=new WeakMap,vi={},$a=0,sy=function(e){return e&&(e.host||sy(e.parentNode))},G2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},K2=function(e,t,n,r){var o=G2(t,Array.isArray(e)?e:[e]);vi[n]||(vi[n]=new WeakMap);var s=vi[n],i=[],l=new Set,a=new Set(o),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else try{var p=m.getAttribute(r),S=p!==null&&p!=="false",v=(Fr.get(m)||0)+1,w=(s.get(m)||0)+1;Fr.set(m,v),s.set(m,w),i.push(m),v===1&&S&&mi.set(m,!0),w===1&&m.setAttribute(n,"true"),S||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return d(t),l.clear(),$a++,function(){i.forEach(function(f){var m=Fr.get(f)-1,p=s.get(f)-1;Fr.set(f,m),s.set(f,p),m||(mi.has(f)||f.removeAttribute(r),mi.delete(f)),p||f.removeAttribute(n)}),$a--,$a||(Fr=new WeakMap,Fr=new WeakMap,mi=new WeakMap,vi={})}},Q2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=W2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),K2(r,o,n,"aria-hidden")):function(){return null}},Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return dk;var t=fk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hk=uy(),uo="data-scroll-locked",mk=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(q2,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; } body[`).concat(uo,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(s,`px; padding-right: `).concat(i,`px; margin-left:0; margin-top:0; margin-right: `).concat(l,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Li,` { right: `).concat(l,"px ").concat(r,`; } .`).concat(Di,` { margin-right: `).concat(l,"px ").concat(r,`; } .`).concat(Li," .").concat(Li,` { right: 0 `).concat(r,`; } .`).concat(Di," .").concat(Di,` { margin-right: 0 `).concat(r,`; } body[`).concat(uo,`] { `).concat(X2,": ").concat(l,`px; } `)},Ap=function(){var e=parseInt(document.body.getAttribute(uo)||"0",10);return isFinite(e)?e:0},vk=function(){h.useEffect(function(){return document.body.setAttribute(uo,(Ap()+1).toString()),function(){var e=Ap()-1;e<=0?document.body.removeAttribute(uo):document.body.setAttribute(uo,e.toString())}},[])},gk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;vk();var s=h.useMemo(function(){return pk(o)},[o]);return h.createElement(hk,{styles:mk(s,!t,o,n?"":"!important")})},Yu=!1;if(typeof window<"u")try{var gi=Object.defineProperty({},"passive",{get:function(){return Yu=!0,!0}});window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{Yu=!1}var zr=Yu?{passive:!1}:!1,yk=function(e){return e.tagName==="TEXTAREA"},cy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yk(e)&&n[t]==="visible")},xk=function(e){return cy(e,"overflowY")},wk=function(e){return cy(e,"overflowX")},Mp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=dy(e,r);if(o){var s=fy(e,r),i=s[1],l=s[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Sk=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},bk=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dy=function(e,t){return e==="v"?xk(t):wk(t)},fy=function(e,t){return e==="v"?Sk(t):bk(t)},Ck=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ek=function(e,t,n,r,o){var s=Ck(e,window.getComputedStyle(t).direction),i=s*r,l=n.target,a=t.contains(l),u=!1,d=i>0,f=0,m=0;do{if(!l)break;var p=fy(e,l),S=p[0],v=p[1],w=p[2],y=v-w-s*S;(S||y)&&dy(e,l)&&(f+=y,m+=S);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(m)<1)&&(u=!0),u},yi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lp=function(e){return[e.deltaX,e.deltaY]},Dp=function(e){return e&&"current"in e?e.current:e},kk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nk=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},Pk=0,$r=[];function Rk(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(Pk++)[0],s=h.useState(uy)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Y2([e.lockRef.current],(e.shards||[]).map(Dp),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(v,w){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var y=yi(v),g=n.current,x="deltaX"in v?v.deltaX:g[0]-y[0],b="deltaY"in v?v.deltaY:g[1]-y[1],C,N=v.target,E=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in v&&E==="h"&&N.type==="range")return!1;var P=Mp(E,N);if(!P)return!0;if(P?C=E:(C=E==="v"?"h":"v",P=Mp(E,N)),!P)return!1;if(!r.current&&"changedTouches"in v&&(x||b)&&(r.current=C),!C)return!0;var A=r.current||C;return Ek(A,w,v,A==="h"?x:b)},[]),a=h.useCallback(function(v){var w=v;if(!(!$r.length||$r[$r.length-1]!==s)){var y="deltaY"in w?Lp(w):yi(w),g=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&kk(C.delta,y)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var x=(i.current.shards||[]).map(Dp).filter(Boolean).filter(function(C){return C.contains(w.target)}),b=x.length>0?l(w,x[0]):!i.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),u=h.useCallback(function(v,w,y,g){var x={name:v,delta:w,target:y,should:g,shadowParent:Tk(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),d=h.useCallback(function(v){n.current=yi(v),r.current=void 0},[]),f=h.useCallback(function(v){u(v.type,Lp(v),v.target,l(v,e.lockRef.current))},[]),m=h.useCallback(function(v){u(v.type,yi(v),v.target,l(v,e.lockRef.current))},[]);h.useEffect(function(){return $r.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",a,zr),document.addEventListener("touchmove",a,zr),document.addEventListener("touchstart",d,zr),function(){$r=$r.filter(function(v){return v!==s}),document.removeEventListener("wheel",a,zr),document.removeEventListener("touchmove",a,zr),document.removeEventListener("touchstart",d,zr)}},[]);var p=e.removeScrollBar,S=e.inert;return h.createElement(h.Fragment,null,S?h.createElement(s,{styles:Nk(o)}):null,p?h.createElement(gk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Tk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jk=ok(ay,Rk);var py=h.forwardRef(function(e,t){return h.createElement(ql,Yt({},e,{ref:t,sideCar:jk}))});py.classNames=ql.classNames;var Ik=[" ","Enter","ArrowUp","ArrowDown"],_k=[" ","Enter"],Tr="Select",[Xl,Zl,Ok]=gd(Tr),[Mo,vP]=wt(Tr,[Ok,Fl]),Jl=Fl(),[Ak,or]=Mo(Tr),[Mk,Lk]=Mo(Tr),hy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:l,onValueChange:a,dir:u,name:d,autoComplete:f,disabled:m,required:p,form:S}=e,v=Jl(t),[w,y]=h.useState(null),[g,x]=h.useState(null),[b,C]=h.useState(!1),N=Vs(u),[E,P]=er({prop:r,defaultProp:o??!1,onChange:s,caller:Tr}),[A,_]=er({prop:i,defaultProp:l,onChange:a,caller:Tr}),z=h.useRef(null),D=w?S||!!w.closest("form"):!0,[U,V]=h.useState(new Set),G=Array.from(U).map(j=>j.props.value).join(";");return c.jsx(Fb,{...v,children:c.jsxs(Ak,{required:p,scope:t,trigger:w,onTriggerChange:y,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:b,onValueNodeHasChildrenChange:C,contentId:zs(),value:A,onValueChange:_,open:E,onOpenChange:P,dir:N,triggerPointerDownPosRef:z,disabled:m,children:[c.jsx(Xl.Provider,{scope:t,children:c.jsx(Mk,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(j=>{V(I=>new Set(I).add(j))},[]),onNativeOptionRemove:h.useCallback(j=>{V(I=>{const k=new Set(I);return k.delete(j),k})},[]),children:n})}),D?c.jsxs(Fy,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:f,value:A,onChange:j=>_(j.target.value),disabled:m,form:S,children:[A===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},G):null]})})};hy.displayName=Tr;var my="SelectTrigger",vy=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Jl(n),i=or(my,n),l=i.disabled||r,a=te(t,i.onTriggerChange),u=Zl(n),d=h.useRef("touch"),[f,m,p]=$y(v=>{const w=u().filter(x=>!x.disabled),y=w.find(x=>x.value===i.value),g=By(w,v,y);g!==void 0&&i.onValueChange(g.value)}),S=v=>{l||(i.onOpenChange(!0),p()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return c.jsx(Lv,{asChild:!0,...s,children:c.jsx(K.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":zy(i.value)?"":void 0,...o,ref:a,onClick:W(o.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&S(v)}),onPointerDown:W(o.onPointerDown,v=>{d.current=v.pointerType;const w=v.target;w.hasPointerCapture(v.pointerId)&&w.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(S(v),v.preventDefault())}),onKeyDown:W(o.onKeyDown,v=>{const w=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(w&&v.key===" ")&&Ik.includes(v.key)&&(S(),v.preventDefault())})})})});vy.displayName=my;var gy="SelectValue",yy=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...l}=e,a=or(gy,n),{onValueNodeHasChildrenChange:u}=a,d=s!==void 0,f=te(t,a.onValueNodeChange);return Ue(()=>{u(d)},[u,d]),c.jsx(K.span,{...l,ref:f,style:{pointerEvents:"none"},children:zy(a.value)?c.jsx(c.Fragment,{children:i}):s})});yy.displayName=gy;var Dk="SelectIcon",xy=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});xy.displayName=Dk;var Fk="SelectPortal",wy=e=>c.jsx(zv,{asChild:!0,...e});wy.displayName=Fk;var jr="SelectContent",Sy=h.forwardRef((e,t)=>{const n=or(jr,e.__scopeSelect),[r,o]=h.useState();if(Ue(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Io.createPortal(c.jsx(by,{scope:e.__scopeSelect,children:c.jsx(Xl.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(Cy,{...e,ref:t})});Sy.displayName=jr;var Tt=10,[by,sr]=Mo(jr),zk="SelectContentImpl",$k=Ps("SelectContent.RemoveScroll"),Cy=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:S,hideWhenDetached:v,avoidCollisions:w,...y}=e,g=or(jr,n),[x,b]=h.useState(null),[C,N]=h.useState(null),E=te(t,F=>b(F)),[P,A]=h.useState(null),[_,z]=h.useState(null),D=Zl(n),[U,V]=h.useState(!1),G=h.useRef(!1);h.useEffect(()=>{if(x)return Q2(x)},[x]),D2();const j=h.useCallback(F=>{const[le,...Ce]=D().map(oe=>oe.ref.current),[ie]=Ce.slice(-1),ee=document.activeElement;for(const oe of F)if(oe===ee||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===le&&C&&(C.scrollTop=0),oe===ie&&C&&(C.scrollTop=C.scrollHeight),oe==null||oe.focus(),document.activeElement!==ee))return},[D,C]),I=h.useCallback(()=>j([P,x]),[j,P,x]);h.useEffect(()=>{U&&I()},[U,I]);const{onOpenChange:k,triggerPointerDownPosRef:R}=g;h.useEffect(()=>{if(x){let F={x:0,y:0};const le=ie=>{var ee,oe;F={x:Math.abs(Math.round(ie.pageX)-(((ee=R.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(ie.pageY)-(((oe=R.current)==null?void 0:oe.y)??0))}},Ce=ie=>{F.x<=10&&F.y<=10?ie.preventDefault():x.contains(ie.target)||k(!1),document.removeEventListener("pointermove",le),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[x,k,R]),h.useEffect(()=>{const F=()=>k(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[k]);const[L,H]=$y(F=>{const le=D().filter(ee=>!ee.disabled),Ce=le.find(ee=>ee.ref.current===document.activeElement),ie=By(le,F,Ce);ie&&setTimeout(()=>ie.ref.current.focus())}),B=h.useCallback((F,le,Ce)=>{const ie=!G.current&&!Ce;(g.value!==void 0&&g.value===le||ie)&&(A(F),ie&&(G.current=!0))},[g.value]),Z=h.useCallback(()=>x==null?void 0:x.focus(),[x]),q=h.useCallback((F,le,Ce)=>{const ie=!G.current&&!Ce;(g.value!==void 0&&g.value===le||ie)&&z(F)},[g.value]),ue=r==="popper"?qu:Ey,fe=ue===qu?{side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:S,hideWhenDetached:v,avoidCollisions:w}:{};return c.jsx(by,{scope:n,content:x,viewport:C,onViewportChange:N,itemRefCallback:B,selectedItem:P,onItemLeave:Z,itemTextRefCallback:q,focusSelectedItem:I,selectedItemText:_,position:r,isPositioned:U,searchRef:L,children:c.jsx(py,{as:$k,allowPinchZoom:!0,children:c.jsx(ry,{asChild:!0,trapped:g.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:W(o,F=>{var le;(le=g.trigger)==null||le.focus({preventScroll:!0}),F.preventDefault()}),children:c.jsx(nd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:c.jsx(ue,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:F=>F.preventDefault(),...y,...fe,onPlaced:()=>V(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:W(y.onKeyDown,F=>{const le=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!le&&F.key.length===1&&H(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let ie=D().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(F.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const ee=F.target,oe=ie.indexOf(ee);ie=ie.slice(oe+1)}setTimeout(()=>j(ie)),F.preventDefault()}})})})})})})});Cy.displayName=zk;var Bk="SelectItemAlignedPosition",Ey=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=or(jr,n),i=sr(jr,n),[l,a]=h.useState(null),[u,d]=h.useState(null),f=te(t,E=>d(E)),m=Zl(n),p=h.useRef(!1),S=h.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:y,focusSelectedItem:g}=i,x=h.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&u&&v&&w&&y){const E=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),_=y.getBoundingClientRect();if(s.dir!=="rtl"){const ee=_.left-P.left,oe=A.left-ee,Me=E.left-oe,dt=E.width+Me,ir=Math.max(dt,P.width),yn=window.innerWidth-Tt,lr=gl(oe,[Tt,Math.max(Tt,yn-ir)]);l.style.minWidth=dt+"px",l.style.left=lr+"px"}else{const ee=P.right-_.right,oe=window.innerWidth-A.right-ee,Me=window.innerWidth-E.right-oe,dt=E.width+Me,ir=Math.max(dt,P.width),yn=window.innerWidth-Tt,lr=gl(oe,[Tt,Math.max(Tt,yn-ir)]);l.style.minWidth=dt+"px",l.style.right=lr+"px"}const z=m(),D=window.innerHeight-Tt*2,U=v.scrollHeight,V=window.getComputedStyle(u),G=parseInt(V.borderTopWidth,10),j=parseInt(V.paddingTop,10),I=parseInt(V.borderBottomWidth,10),k=parseInt(V.paddingBottom,10),R=G+j+U+k+I,L=Math.min(w.offsetHeight*5,R),H=window.getComputedStyle(v),B=parseInt(H.paddingTop,10),Z=parseInt(H.paddingBottom,10),q=E.top+E.height/2-Tt,ue=D-q,fe=w.offsetHeight/2,F=w.offsetTop+fe,le=G+j+F,Ce=R-le;if(le<=q){const ee=z.length>0&&w===z[z.length-1].ref.current;l.style.bottom="0px";const oe=u.clientHeight-v.offsetTop-v.offsetHeight,Me=Math.max(ue,fe+(ee?Z:0)+oe+I),dt=le+Me;l.style.height=dt+"px"}else{const ee=z.length>0&&w===z[0].ref.current;l.style.top="0px";const Me=Math.max(q,G+v.offsetTop+(ee?B:0)+fe)+Ce;l.style.height=Me+"px",v.scrollTop=le-q+v.offsetTop}l.style.margin=`${Tt}px 0`,l.style.minHeight=L+"px",l.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[m,s.trigger,s.valueNode,l,u,v,w,y,s.dir,r]);Ue(()=>x(),[x]);const[b,C]=h.useState();Ue(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const N=h.useCallback(E=>{E&&S.current===!0&&(x(),g==null||g(),S.current=!1)},[x,g]);return c.jsx(Vk,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:c.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:c.jsx(K.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ey.displayName=Bk;var Uk="SelectPopperPosition",qu=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Tt,...s}=e,i=Jl(n);return c.jsx(Dv,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});qu.displayName=Uk;var[Vk,Sd]=Mo(jr,{}),Xu="SelectViewport",ky=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=sr(Xu,n),i=Sd(Xu,n),l=te(t,s.onViewportChange),a=h.useRef(0);return c.jsxs(c.Fragment,{children:[c.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:r}),c.jsx(Xl.Slot,{scope:n,children:c.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:W(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&f){const p=Math.abs(a.current-d.scrollTop);if(p>0){const S=window.innerHeight-Tt*2,v=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),y=Math.max(v,w);if(y0?b:0,f.style.justifyContent="flex-end")}}}a.current=d.scrollTop})})})]})});ky.displayName=Xu;var Ny="SelectGroup",[Hk,Wk]=Mo(Ny),Gk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zs();return c.jsx(Hk,{scope:n,id:o,children:c.jsx(K.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gk.displayName=Ny;var Py="SelectLabel",Ry=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wk(Py,n);return c.jsx(K.div,{id:o.id,...r,ref:t})});Ry.displayName=Py;var yl="SelectItem",[Kk,Ty]=Mo(yl),jy=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,l=or(yl,n),a=sr(yl,n),u=l.value===r,[d,f]=h.useState(s??""),[m,p]=h.useState(!1),S=te(t,g=>{var x;return(x=a.itemRefCallback)==null?void 0:x.call(a,g,r,o)}),v=zs(),w=h.useRef("touch"),y=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A 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 c.jsx(Kk,{scope:n,value:r,disabled:o,textId:v,isSelected:u,onItemTextChange:h.useCallback(g=>{f(x=>x||((g==null?void 0:g.textContent)??"").trim())},[]),children:c.jsx(Xl.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:c.jsx(K.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:S,onFocus:W(i.onFocus,()=>p(!0)),onBlur:W(i.onBlur,()=>p(!1)),onClick:W(i.onClick,()=>{w.current!=="mouse"&&y()}),onPointerUp:W(i.onPointerUp,()=>{w.current==="mouse"&&y()}),onPointerDown:W(i.onPointerDown,g=>{w.current=g.pointerType}),onPointerMove:W(i.onPointerMove,g=>{var x;w.current=g.pointerType,o?(x=a.onItemLeave)==null||x.call(a):w.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(i.onPointerLeave,g=>{var x;g.currentTarget===document.activeElement&&((x=a.onItemLeave)==null||x.call(a))}),onKeyDown:W(i.onKeyDown,g=>{var b;((b=a.searchRef)==null?void 0:b.current)!==""&&g.key===" "||(_k.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});jy.displayName=yl;var es="SelectItemText",Iy=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=or(es,n),l=sr(es,n),a=Ty(es,n),u=Lk(es,n),[d,f]=h.useState(null),m=te(t,y=>f(y),a.onItemTextChange,y=>{var g;return(g=l.itemTextRefCallback)==null?void 0:g.call(l,y,a.value,a.disabled)}),p=d==null?void 0:d.textContent,S=h.useMemo(()=>c.jsx("option",{value:a.value,disabled:a.disabled,children:p},a.value),[a.disabled,a.value,p]),{onNativeOptionAdd:v,onNativeOptionRemove:w}=u;return Ue(()=>(v(S),()=>w(S)),[v,w,S]),c.jsxs(c.Fragment,{children:[c.jsx(K.span,{id:a.textId,...s,ref:m}),a.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Io.createPortal(s.children,i.valueNode):null]})});Iy.displayName=es;var _y="SelectItemIndicator",Oy=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ty(_y,n).isSelected?c.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});Oy.displayName=_y;var Zu="SelectScrollUpButton",Ay=h.forwardRef((e,t)=>{const n=sr(Zu,e.__scopeSelect),r=Sd(Zu,e.__scopeSelect),[o,s]=h.useState(!1),i=te(t,r.onScrollButtonChange);return Ue(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;s(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?c.jsx(Ly,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Ay.displayName=Zu;var Ju="SelectScrollDownButton",My=h.forwardRef((e,t)=>{const n=sr(Ju,e.__scopeSelect),r=Sd(Ju,e.__scopeSelect),[o,s]=h.useState(!1),i=te(t,r.onScrollButtonChange);return Ue(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?c.jsx(Ly,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});My.displayName=Ju;var Ly=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=sr("SelectScrollButton",n),i=h.useRef(null),l=Zl(n),a=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>a(),[a]),Ue(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),c.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:W(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:W(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:W(o.onPointerLeave,()=>{a()})})}),Qk="SelectSeparator",Dy=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});Dy.displayName=Qk;var ec="SelectArrow",Yk=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Jl(n),s=or(ec,n),i=sr(ec,n);return s.open&&i.position==="popper"?c.jsx(Fv,{...o,...r,ref:t}):null});Yk.displayName=ec;var qk="SelectBubbleInput",Fy=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),s=te(r,o),i=Ws(t);return h.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[i,t]),c.jsx(K.select,{...n,style:{...$v,...n.style},ref:s,defaultValue:t})});Fy.displayName=qk;function zy(e){return e===""||e===void 0}function $y(e){const t=Xn(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(i=>{const l=n.current+i;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),s=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function By(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Xk(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const a=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function Xk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zk=hy,Uy=vy,Jk=yy,eN=xy,tN=wy,Vy=Sy,nN=ky,Hy=Ry,Wy=jy,rN=Iy,oN=Oy,Gy=Ay,Ky=My,Qy=Dy;/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var iN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lN=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>h.createElement("svg",{ref:a,...iN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yy("lucide",o),...l},[...i.map(([u,d])=>h.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ve=(e,t)=>{const n=h.forwardRef(({className:r,...o},s)=>h.createElement(lN,{ref:s,iconNode:t,className:Yy(`lucide-${sN(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aN=ve("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qy=ve("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xy=ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uN=ve("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cN=ve("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dN=ve("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fp=ve("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fN=ve("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pN=ve("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zp=ve("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hN=ve("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mN=ve("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vN=ve("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $p=ve("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gN=ve("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zy=ve("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tc=ve("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yN=ve("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bp=ve("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xN=ve("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wN=ve("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SN=ve("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bN=ve("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CN=ve("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nc=ve("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Jy=Zk,e0=Jk,bd=h.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(Uy,{ref:r,className:ne("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(eN,{asChild:!0,children:c.jsx(Xy,{className:"h-4 w-4 opacity-50"})})]}));bd.displayName=Uy.displayName;const t0=h.forwardRef(({className:e,...t},n)=>c.jsx(Gy,{ref:n,className:ne("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(uN,{className:"h-4 w-4"})}));t0.displayName=Gy.displayName;const n0=h.forwardRef(({className:e,...t},n)=>c.jsx(Ky,{ref:n,className:ne("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Xy,{className:"h-4 w-4"})}));n0.displayName=Ky.displayName;const Cd=h.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>c.jsx(tN,{children:c.jsxs(Vy,{ref:o,className:ne("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(t0,{}),c.jsx(nN,{className:ne("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(n0,{})]})}));Cd.displayName=Vy.displayName;const EN=h.forwardRef(({className:e,...t},n)=>c.jsx(Hy,{ref:n,className:ne("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));EN.displayName=Hy.displayName;const zn=h.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(Wy,{ref:r,className:ne("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(oN,{children:c.jsx(qy,{className:"h-4 w-4"})})}),c.jsx(rN,{children:t})]}));zn.displayName=Wy.displayName;const kN=h.forwardRef(({className:e,...t},n)=>c.jsx(Qy,{ref:n,className:ne("-mx-1 my-1 h-px bg-muted",e),...t}));kN.displayName=Qy.displayName;var ea="Checkbox",[NN,gP]=wt(ea),[PN,Ed]=NN(ea);function RN(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:i,name:l,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:f}=e,[m,p]=er({prop:n,defaultProp:o??!1,onChange:a,caller:ea}),[S,v]=h.useState(null),[w,y]=h.useState(null),g=h.useRef(!1),x=S?!!i||!!S.closest("form"):!0,b={checked:m,disabled:s,setChecked:p,control:S,setControl:v,name:l,form:i,value:d,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:Qn(o)?!1:o,isFormControl:x,bubbleInput:w,setBubbleInput:y};return c.jsx(PN,{scope:t,...b,children:TN(f)?f(b):r})}var r0="CheckboxTrigger",o0=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:i,disabled:l,checked:a,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:p,bubbleInput:S}=Ed(r0,e),v=te(o,d),w=h.useRef(a);return h.useEffect(()=>{const y=s==null?void 0:s.form;if(y){const g=()=>f(w.current);return y.addEventListener("reset",g),()=>y.removeEventListener("reset",g)}},[s,f]),c.jsx(K.button,{type:"button",role:"checkbox","aria-checked":Qn(a)?"mixed":a,"aria-required":u,"data-state":u0(a),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:v,onKeyDown:W(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:W(n,y=>{f(g=>Qn(g)?!0:!g),S&&p&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});o0.displayName=r0;var kd=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:i,disabled:l,value:a,onCheckedChange:u,form:d,...f}=e;return c.jsx(RN,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:l,required:i,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:m})=>c.jsxs(c.Fragment,{children:[c.jsx(o0,{...f,ref:t,__scopeCheckbox:n}),m&&c.jsx(a0,{__scopeCheckbox:n})]})})});kd.displayName=ea;var s0="CheckboxIndicator",i0=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Ed(s0,n);return c.jsx(Us,{present:r||Qn(s.checked)||s.checked===!0,children:c.jsx(K.span,{"data-state":u0(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});i0.displayName=s0;var l0="CheckboxBubbleInput",a0=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:i,required:l,disabled:a,name:u,value:d,form:f,bubbleInput:m,setBubbleInput:p}=Ed(l0,e),S=te(n,p),v=Ws(s),w=Bs(r);h.useEffect(()=>{const g=m;if(!g)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,N=!o.current;if(v!==s&&C){const E=new Event("click",{bubbles:N});g.indeterminate=Qn(s),C.call(g,Qn(s)?!1:s),g.dispatchEvent(E)}},[m,v,s,o]);const y=h.useRef(Qn(s)?!1:s);return c.jsx(K.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:l,disabled:a,name:u,value:d,form:f,...t,tabIndex:-1,ref:S,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});a0.displayName=l0;function TN(e){return typeof e=="function"}function Qn(e){return e==="indeterminate"}function u0(e){return Qn(e)?"indeterminate":e?"checked":"unchecked"}const c0=h.forwardRef(({className:e,...t},n)=>c.jsx(kd,{ref:n,className:ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:c.jsx(i0,{className:ne("flex items-center justify-center text-current"),children:c.jsx(qy,{className:"h-4 w-4"})})}));c0.displayName=kd.displayName;var Nd="Radio",[jN,d0]=wt(Nd),[IN,_N]=jN(Nd),f0=h.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:i,value:l="on",onCheck:a,form:u,...d}=e,[f,m]=h.useState(null),p=te(t,w=>m(w)),S=h.useRef(!1),v=f?u||!!f.closest("form"):!0;return c.jsxs(IN,{scope:n,checked:o,disabled:i,children:[c.jsx(K.button,{type:"button",role:"radio","aria-checked":o,"data-state":v0(o),"data-disabled":i?"":void 0,disabled:i,value:l,...d,ref:p,onClick:W(e.onClick,w=>{o||a==null||a(),v&&(S.current=w.isPropagationStopped(),S.current||w.stopPropagation())})}),v&&c.jsx(m0,{control:f,bubbles:!S.current,name:r,value:l,checked:o,required:s,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});f0.displayName=Nd;var p0="RadioIndicator",h0=h.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=_N(p0,n);return c.jsx(Us,{present:r||s.checked,children:c.jsx(K.span,{"data-state":v0(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});h0.displayName=p0;var ON="RadioBubbleInput",m0=h.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=h.useRef(null),l=te(i,s),a=Ws(n),u=Bs(t);return h.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(a!==n&&p){const S=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(S)}},[a,n,r]),c.jsx(K.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});m0.displayName=ON;function v0(e){return e?"checked":"unchecked"}var AN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ta="RadioGroup",[MN,yP]=wt(ta,[Kl,d0]),g0=Kl(),y0=d0(),[LN,DN]=MN(ta),x0=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:i=!1,disabled:l=!1,orientation:a,dir:u,loop:d=!0,onValueChange:f,...m}=e,p=g0(n),S=Vs(u),[v,w]=er({prop:s,defaultProp:o??null,onChange:f,caller:ta});return c.jsx(LN,{scope:n,name:r,required:i,disabled:l,value:v,onValueChange:w,children:c.jsx(Ng,{asChild:!0,...p,orientation:a,dir:S,loop:d,children:c.jsx(K.div,{role:"radiogroup","aria-required":i,"aria-orientation":a,"data-disabled":l?"":void 0,dir:S,...m,ref:t})})})});x0.displayName=ta;var w0="RadioGroupItem",S0=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=DN(w0,n),i=s.disabled||r,l=g0(n),a=y0(n),u=h.useRef(null),d=te(t,u),f=s.value===o.value,m=h.useRef(!1);return h.useEffect(()=>{const p=v=>{AN.includes(v.key)&&(m.current=!0)},S=()=>m.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",S),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",S)}},[]),c.jsx(Pg,{asChild:!0,...l,focusable:!i,active:f,children:c.jsx(f0,{disabled:i,required:s.required,checked:f,...a,...o,name:s.name,ref:d,onCheck:()=>s.onValueChange(o.value),onKeyDown:W(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:W(o.onFocus,()=>{var p;m.current&&((p=u.current)==null||p.click())})})})});S0.displayName=w0;var FN="RadioGroupIndicator",b0=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=y0(n);return c.jsx(h0,{...o,...r,ref:t})});b0.displayName=FN;var C0=x0,E0=S0,zN=b0;const k0=h.forwardRef(({className:e,...t},n)=>c.jsx(C0,{className:ne("grid gap-2",e),...t,ref:n}));k0.displayName=C0.displayName;const rc=h.forwardRef(({className:e,...t},n)=>c.jsx(E0,{ref:n,className:ne("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:c.jsx(zN,{className:"flex items-center justify-center",children:c.jsx(cN,{className:"h-2.5 w-2.5 fill-current text-current"})})}));rc.displayName=E0.displayName;var N0=["PageUp","PageDown"],P0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],R0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Lo="Slider",[oc,$N,BN]=gd(Lo),[T0,xP]=wt(Lo,[BN]),[UN,na]=T0(Lo),j0=h.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:a=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:m=()=>{},inverted:p=!1,form:S,...v}=e,w=h.useRef(new Set),y=h.useRef(0),x=i==="horizontal"?VN:HN,[b=[],C]=er({prop:d,defaultProp:u,onChange:z=>{var U;(U=[...w.current][y.current])==null||U.focus(),f(z)}}),N=h.useRef(b);function E(z){const D=YN(b,z);_(z,D)}function P(z){_(z,y.current)}function A(){const z=N.current[y.current];b[y.current]!==z&&m(b)}function _(z,D,{commit:U}={commit:!1}){const V=JN(s),G=eP(Math.round((z-r)/s)*s+r,V),j=gl(G,[r,o]);C((I=[])=>{const k=KN(I,j,D);if(ZN(k,a*s)){y.current=k.indexOf(j);const R=String(k)!==String(I);return R&&U&&m(k),R?k:I}else return I})}return c.jsx(UN,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:o,valueIndexToChangeRef:y,thumbs:w.current,values:b,orientation:i,form:S,children:c.jsx(oc.Provider,{scope:e.__scopeSlider,children:c.jsx(oc.Slot,{scope:e.__scopeSlider,children:c.jsx(x,{"aria-disabled":l,"data-disabled":l?"":void 0,...v,ref:t,onPointerDown:W(v.onPointerDown,()=>{l||(N.current=b)}),min:r,max:o,inverted:p,onSlideStart:l?void 0:E,onSlideMove:l?void 0:P,onSlideEnd:l?void 0:A,onHomeKeyDown:()=>!l&&_(r,0,{commit:!0}),onEndKeyDown:()=>!l&&_(o,b.length-1,{commit:!0}),onStepKeyDown:({event:z,direction:D})=>{if(!l){const G=N0.includes(z.key)||z.shiftKey&&P0.includes(z.key)?10:1,j=y.current,I=b[j],k=s*G*D;_(I+k,j,{commit:!0})}}})})})})});j0.displayName=Lo;var[I0,_0]=T0(Lo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),VN=h.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:l,onSlideEnd:a,onStepKeyDown:u,...d}=e,[f,m]=h.useState(null),p=te(t,x=>m(x)),S=h.useRef(void 0),v=Vs(o),w=v==="ltr",y=w&&!s||!w&&s;function g(x){const b=S.current||f.getBoundingClientRect(),C=[0,b.width],E=Pd(C,y?[n,r]:[r,n]);return S.current=b,E(x-b.left)}return c.jsx(I0,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:c.jsx(O0,{dir:v,"data-orientation":"horizontal",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const b=g(x.clientX);i==null||i(b)},onSlideMove:x=>{const b=g(x.clientX);l==null||l(b)},onSlideEnd:()=>{S.current=void 0,a==null||a()},onStepKeyDown:x=>{const C=R0[y?"from-left":"from-right"].includes(x.key);u==null||u({event:x,direction:C?-1:1})}})})}),HN=h.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:l,onStepKeyDown:a,...u}=e,d=h.useRef(null),f=te(t,d),m=h.useRef(void 0),p=!o;function S(v){const w=m.current||d.current.getBoundingClientRect(),y=[0,w.height],x=Pd(y,p?[r,n]:[n,r]);return m.current=w,x(v-w.top)}return c.jsx(I0,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:c.jsx(O0,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const w=S(v.clientY);s==null||s(w)},onSlideMove:v=>{const w=S(v.clientY);i==null||i(w)},onSlideEnd:()=>{m.current=void 0,l==null||l()},onStepKeyDown:v=>{const y=R0[p?"from-bottom":"from-top"].includes(v.key);a==null||a({event:v,direction:y?-1:1})}})})}),O0=h.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:a,...u}=e,d=na(Lo,n);return c.jsx(K.span,{...u,ref:t,onKeyDown:W(e.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(l(f),f.preventDefault()):N0.concat(P0).includes(f.key)&&(a(f),f.preventDefault())}),onPointerDown:W(e.onPointerDown,f=>{const m=f.target;m.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(m)?m.focus():r(f)}),onPointerMove:W(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:W(e.onPointerUp,f=>{const m=f.target;m.hasPointerCapture(f.pointerId)&&(m.releasePointerCapture(f.pointerId),s(f))})})}),A0="SliderTrack",M0=h.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=na(A0,n);return c.jsx(K.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});M0.displayName=A0;var sc="SliderRange",L0=h.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=na(sc,n),s=_0(sc,n),i=h.useRef(null),l=te(t,i),a=o.values.length,u=o.values.map(m=>z0(m,o.min,o.max)),d=a>1?Math.min(...u):0,f=100-Math.max(...u);return c.jsx(K.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:l,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:f+"%"}})});L0.displayName=sc;var ic="SliderThumb",D0=h.forwardRef((e,t)=>{const n=$N(e.__scopeSlider),[r,o]=h.useState(null),s=te(t,l=>o(l)),i=h.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return c.jsx(WN,{...e,ref:s,index:i})}),WN=h.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=na(ic,n),l=_0(ic,n),[a,u]=h.useState(null),d=te(t,g=>u(g)),f=a?i.form||!!a.closest("form"):!0,m=Bs(a),p=i.values[r],S=p===void 0?0:z0(p,i.min,i.max),v=QN(r,i.values.length),w=m==null?void 0:m[l.size],y=w?qN(w,S,l.direction):0;return h.useEffect(()=>{if(a)return i.thumbs.add(a),()=>{i.thumbs.delete(a)}},[a,i.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${S}% + ${y}px)`},children:[c.jsx(oc.ItemSlot,{scope:e.__scopeSlider,children:c.jsx(K.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":p,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:d,style:p===void 0?{display:"none"}:e.style,onFocus:W(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),f&&c.jsx(F0,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:p},r)]})});D0.displayName=ic;var GN="RadioBubbleInput",F0=h.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=h.useRef(null),s=te(o,r),i=Ws(t);return h.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==t&&d){const f=new Event("input",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[i,t]),c.jsx(K.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});F0.displayName=GN;function KN(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function z0(e,t,n){const s=100/(n-t)*(e-t);return gl(s,[0,100])}function QN(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function YN(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function qN(e,t,n){const r=e/2,s=Pd([0,50],[0,r]);return(r-s(t)*n)*n}function XN(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ZN(e,t){if(t>0){const n=XN(e);return Math.min(...n)>=t}return!0}function Pd(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function JN(e){return(String(e).split(".")[1]||"").length}function eP(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var $0=j0,tP=M0,nP=L0,rP=D0;const B0=h.forwardRef(({className:e,...t},n)=>c.jsxs($0,{ref:n,className:ne("relative flex w-full touch-none select-none items-center",e),...t,children:[c.jsx(tP,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:c.jsx(nP,{className:"absolute h-full bg-primary"})}),c.jsx(rP,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));B0.displayName=$0.displayName;const oP=()=>{const[e,t]=h.useState(33),[n,r]=h.useState(!1),[o,s]=h.useState([50]),i=()=>{t(a=>Math.min(a+10,100))},l=()=>{nt.success("Hello from shadcn/ui!",{description:"This is a toast notification using Sonner."})};return c.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800",children:[c.jsx("header",{className:"border-b bg-white/80 backdrop-blur-sm dark:bg-slate-900/80",children:c.jsx("div",{className:"container mx-auto px-4 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsx("div",{className:"h-8 w-8 rounded-lg bg-gradient-to-r from-blue-500 to-purple-600"}),c.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:"shadcn/ui Template"})]}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsxs(ye,{variant:"outline",size:"sm",children:[c.jsx(aN,{className:"mr-2 h-4 w-4"}),"Notifications"]}),c.jsxs(ye,{variant:"outline",size:"sm",children:[c.jsx(Zy,{className:"mr-2 h-4 w-4"}),"Settings"]}),c.jsxs(ye,{size:"sm",children:[c.jsx(CN,{className:"mr-2 h-4 w-4"}),"Profile"]})]})]})})}),c.jsxs("main",{className:"container mx-auto px-4 py-8",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h2",{className:"text-4xl font-bold text-slate-900 dark:text-white mb-4",children:"Welcome to your new project"}),c.jsx("p",{className:"text-xl text-slate-600 dark:text-slate-300 mb-8 max-w-2xl mx-auto",children:"This template includes shadcn/ui components, Tailwind CSS, TypeScript, and React Router. Start building your amazing application!"}),c.jsxs("div",{className:"flex justify-center space-x-4",children:[c.jsxs(ye,{size:"lg",onClick:l,children:[c.jsx(nc,{className:"mr-2 h-5 w-5"}),"Get Started"]}),c.jsxs(ye,{variant:"outline",size:"lg",children:[c.jsx(zp,{className:"mr-2 h-5 w-5"}),"View on GitHub"]})]})]}),c.jsxs(Ug,{className:"mb-8",children:[c.jsx(tc,{className:"h-4 w-4"}),c.jsx(Vg,{children:"Ready to build!"}),c.jsx(Hg,{children:"Your development environment is set up and ready. All shadcn/ui components are available for use."})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[c.jsxs(Nt,{children:[c.jsxs(Ut,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[c.jsx(Vt,{className:"text-sm font-medium",children:"Components"}),c.jsx(wN,{className:"h-4 w-4 text-muted-foreground"})]}),c.jsxs(Pt,{children:[c.jsx("div",{className:"text-2xl font-bold",children:"50+"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"shadcn/ui components included"})]})]}),c.jsxs(Nt,{children:[c.jsxs(Ut,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[c.jsx(Vt,{className:"text-sm font-medium",children:"TypeScript"}),c.jsx(tc,{className:"h-4 w-4 text-muted-foreground"})]}),c.jsxs(Pt,{children:[c.jsx("div",{className:"text-2xl font-bold",children:"100%"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Type-safe development"})]})]}),c.jsxs(Nt,{children:[c.jsxs(Ut,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[c.jsx(Vt,{className:"text-sm font-medium",children:"Performance"}),c.jsx(nc,{className:"h-4 w-4 text-muted-foreground"})]}),c.jsxs(Pt,{children:[c.jsx("div",{className:"text-2xl font-bold",children:"Fast"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Optimized for speed"})]})]})]}),c.jsxs(b2,{defaultValue:"components",className:"mb-8",children:[c.jsxs(Bg,{className:"grid w-full grid-cols-3",children:[c.jsx(Ai,{value:"components",children:"Components"}),c.jsx(Ai,{value:"forms",children:"Forms"}),c.jsx(Ai,{value:"features",children:"Features"})]}),c.jsx(Mi,{value:"components",className:"mt-6",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[c.jsxs(Nt,{children:[c.jsxs(Ut,{children:[c.jsx(Vt,{children:"Interactive Elements"}),c.jsx(Oi,{children:"Buttons, badges, and progress indicators"})]}),c.jsxs(Pt,{className:"space-y-4",children:[c.jsxs("div",{className:"flex space-x-2",children:[c.jsx(ye,{children:"Primary"}),c.jsx(ye,{variant:"secondary",children:"Secondary"}),c.jsx(ye,{variant:"outline",children:"Outline"}),c.jsx(ye,{variant:"ghost",children:"Ghost"})]}),c.jsxs("div",{className:"flex space-x-2",children:[c.jsx(Jo,{children:"Default"}),c.jsx(Jo,{variant:"secondary",children:"Secondary"}),c.jsx(Jo,{variant:"outline",children:"Outline"}),c.jsx(Jo,{variant:"destructive",children:"Destructive"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsxs("span",{className:"text-sm",children:["Progress: ",e,"%"]}),c.jsx(ye,{size:"sm",variant:"outline",onClick:i,children:"Increase"})]}),c.jsx(qg,{value:e,className:"w-full"})]})]})]}),c.jsxs(Nt,{children:[c.jsxs(Ut,{children:[c.jsx(Vt,{children:"Input Controls"}),c.jsx(Oi,{children:"Switches, sliders, and other controls"})]}),c.jsxs(Pt,{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Jr,{id:"dark-mode",checked:n,onCheckedChange:r}),c.jsx(Rt,{htmlFor:"dark-mode",children:"Dark mode"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs(Rt,{children:["Volume: ",o[0],"%"]}),c.jsx(B0,{value:o,onValueChange:s,max:100,step:1,className:"w-full"})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(c0,{id:"terms"}),c.jsx(Rt,{htmlFor:"terms",children:"Accept terms and conditions"})]})]})]})]})}),c.jsx(Mi,{value:"forms",className:"mt-6",children:c.jsxs(Nt,{children:[c.jsxs(Ut,{children:[c.jsx(Vt,{children:"Sample Form"}),c.jsx(Oi,{children:"Example form using shadcn/ui components"})]}),c.jsxs(Pt,{className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Rt,{htmlFor:"name",children:"Full Name"}),c.jsx(Ku,{id:"name",placeholder:"Enter your name"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Rt,{htmlFor:"email",children:"Email"}),c.jsx(Ku,{id:"email",type:"email",placeholder:"Enter your email"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Rt,{htmlFor:"role",children:"Role"}),c.jsxs(Jy,{children:[c.jsx(bd,{children:c.jsx(e0,{placeholder:"Select a role"})}),c.jsxs(Cd,{children:[c.jsx(zn,{value:"developer",children:"Developer"}),c.jsx(zn,{value:"designer",children:"Designer"}),c.jsx(zn,{value:"manager",children:"Manager"})]})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Rt,{children:"Preferred contact method"}),c.jsxs(k0,{defaultValue:"email",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(rc,{value:"email",id:"email-contact"}),c.jsx(Rt,{htmlFor:"email-contact",children:"Email"})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(rc,{value:"phone",id:"phone-contact"}),c.jsx(Rt,{htmlFor:"phone-contact",children:"Phone"})]})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Rt,{htmlFor:"message",children:"Message"}),c.jsx(vl,{id:"message",placeholder:"Enter your message"})]}),c.jsx(ye,{className:"w-full",children:"Submit Form"})]})]})}),c.jsx(Mi,{value:"features",className:"mt-6",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[c.jsxs(Nt,{children:[c.jsx(Ut,{children:c.jsxs(Vt,{className:"flex items-center",children:[c.jsx(hN,{className:"mr-2 h-5 w-5"}),"Responsive Design"]})}),c.jsx(Pt,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Built with mobile-first approach using Tailwind CSS"})})]}),c.jsxs(Nt,{children:[c.jsx(Ut,{children:c.jsxs(Vt,{className:"flex items-center",children:[c.jsx(gN,{className:"mr-2 h-5 w-5"}),"Accessibility"]})}),c.jsx(Pt,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"All components follow WAI-ARIA guidelines"})})]}),c.jsxs(Nt,{children:[c.jsx(Ut,{children:c.jsxs(Vt,{className:"flex items-center",children:[c.jsx(yN,{className:"mr-2 h-5 w-5"}),"Customizable"]})}),c.jsx(Pt,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Easy to customize with CSS variables and Tailwind"})})]})]})})]}),c.jsx(Nt,{children:c.jsx(Pt,{className:"pt-6",children:c.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[c.jsx("div",{className:"text-sm text-muted-foreground",children:"Built with ❤️ using shadcn/ui, React, and Tailwind CSS"}),c.jsxs("div",{className:"flex space-x-4",children:[c.jsx(ye,{variant:"ghost",size:"sm",children:c.jsx(zp,{className:"h-4 w-4"})}),c.jsx(ye,{variant:"ghost",size:"sm",children:c.jsx(SN,{className:"h-4 w-4"})}),c.jsx(ye,{variant:"ghost",size:"sm",children:c.jsx(mN,{className:"h-4 w-4"})})]})]})})})]})]})},sP=()=>{const[e,t]=h.useState(new Date),[n,r]=h.useState(` Secure Document

[ CLASSIFIED DOCUMENT ]

This document contains sensitive information.

`),[o,s]=h.useState(""),[i,l]=h.useState(!1),[a,u]=h.useState("base64"),[d,f]=h.useState(!0),[m,p]=h.useState(!0),[S,v]=h.useState(!0),[w,y]=h.useState(!1);h.useEffect(()=>{const j=setInterval(()=>{t(new Date)},1e3);return()=>clearInterval(j)},[]);const g=j=>j.toTimeString().split(" ")[0],x=j=>new Blob([j]).size,b=j=>btoa(unescape(encodeURIComponent(j))),C=j=>encodeURIComponent(j),N=j=>{const I="MGX_AES_KEY_2024";let k="";for(let R=0;R{let I=0,k="";for(let L=0;L{switch(I){case"base64":return b(j);case"url":return C(j);case"aes":return N(j);case"hash":return E(j);default:return j}},A=async()=>{if(!n.trim()){nt.error("INPUT BUFFER EMPTY",{description:"Please enter HTML code to encrypt"});return}l(!0),await new Promise(I=>setTimeout(I,2e3));let j=n;if(d&&(j=j.replace(/)<[^<]*)*<\/script>/gi,"")),m&&(j=j.replace(//g,"")),S||w){const I=P(j,a);a==="base64"?j=`