var Pc=e=>{throw TypeError(e)};var yl=(e,t,n)=>t.has(e)||Pc("Cannot "+n);var P=(e,t,n)=>(yl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Pc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(yl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Pe=(e,t,n)=>(yl(e,t,"access private method"),n);var ki=(e,t,n,r)=>({set _(o){U(e,t,o,n)},get _(){return P(e,t,r)}});function _g(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},Bs={},Of={exports:{}},G={};/** * @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 fi=Symbol.for("react.element"),Mg=Symbol.for("react.portal"),Ag=Symbol.for("react.fragment"),Lg=Symbol.for("react.strict_mode"),Dg=Symbol.for("react.profiler"),Ig=Symbol.for("react.provider"),zg=Symbol.for("react.context"),Fg=Symbol.for("react.forward_ref"),$g=Symbol.for("react.suspense"),Bg=Symbol.for("react.memo"),Ug=Symbol.for("react.lazy"),Nc=Symbol.iterator;function Vg(e){return e===null||typeof e!="object"?null:(e=Nc&&e[Nc]||e["@@iterator"],typeof e=="function"?e:null)}var _f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mf=Object.assign,Af={};function ro(e,t,n){this.props=e,this.context=t,this.refs=Af,this.updater=n||_f}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 Lf(){}Lf.prototype=ro.prototype;function lu(e,t,n){this.props=e,this.context=t,this.refs=Af,this.updater=n||_f}var au=lu.prototype=new Lf;au.constructor=lu;Mf(au,ro.prototype);au.isPureReactComponent=!0;var Tc=Array.isArray,Df=Object.prototype.hasOwnProperty,uu={current:null},If={key:!0,ref:!0,__self:!0,__source:!0};function zf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Df.call(t,r)&&!If.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=N[V];if(0>>1;Vo(he,L))beo(J,he)?(N[V]=J,N[be]=L,V=be):(N[V]=he,N[Y]=L,V=Y);else if(beo(J,L))N[V]=J,N[be]=L,V=be;else break e}}return T}function o(N,T){var L=N.sortIndex-T.sortIndex;return L!==0?L:N.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,h=3,d=!1,S=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=N)r(u),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(u)}}function E(N){if(v=!1,g(N),!S)if(n(a)!==null)S=!0,$(C);else{var T=n(u);T!==null&&H(E,T.startTime-N)}}function C(N,T){S=!1,v&&(v=!1,m(R),R=-1),d=!0;var L=h;try{for(g(T),f=n(a);f!==null&&(!(f.expirationTime>T)||N&&!F());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var z=V(f.expirationTime<=T);T=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(a)&&r(a),g(T)}else r(a);f=n(a)}if(f!==null)var K=!0;else{var Y=n(u);Y!==null&&H(E,Y.startTime-T),K=!1}return K}finally{f=null,h=L,d=!1}}var k=!1,b=null,R=-1,M=5,_=-1;function F(){return!(e.unstable_now()-_N||125V?(N.sortIndex=L,t(u,N),n(a)===null&&N===n(u)&&(v?(m(R),R=-1):v=!0,H(E,L-V))):(N.sortIndex=z,t(a,N),S||d||(S=!0,$(C))),N},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(N){var T=h;return function(){var L=h;h=T;try{return N.apply(this,arguments)}finally{h=L}}}})(Hf);Vf.exports=Hf;var ev=Vf.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 tv=x,Xe=ev;function j(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"),Jl=Object.prototype.hasOwnProperty,nv=/^[: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]*$/,jc={},Oc={};function rv(e){return Jl.call(Oc,e)?!0:Jl.call(jc,e)?!1:nv.test(e)?Oc[e]=!0:(jc[e]=!0,!1)}function ov(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 iv(e,t,n,r){if(t===null||typeof t>"u"||ov(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 Ie(e,t,n,r,o,i,s){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=i,this.removeEmptyString=s}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ie(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){ke[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var du=/[\-:]([a-z])/g;function fu(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(du,fu);ke[t]=new Ie(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(du,fu);ke[t]=new Ie(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(du,fu);ke[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ko(e):""}function sv(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function ra(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 wr:return"Fragment";case xr:return"Portal";case ea:return"Profiler";case hu:return"StrictMode";case ta:return"Suspense";case na:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kf:return(e.displayName||"Context")+".Consumer";case Qf:return(e._context.displayName||"Context")+".Provider";case mu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gu:return t=e.displayName||null,t!==null?t:ra(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return ra(e(t))}catch{}}return null}function lv(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 ra(t);case 8:return t===hu?"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 Tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function av(e){var t=Yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ni(e){e._valueTracker||(e._valueTracker=av(e))}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(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 oa(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tn(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 qf(e,t){t=t.checked,t!=null&&pu(e,"checked",t,!1)}function ia(e,t){qf(e,t);var n=Tn(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")?sa(e,t.type,n):t.hasOwnProperty("defaultValue")&&sa(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ac(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 sa(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bo=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ro={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},uv=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){uv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ro.hasOwnProperty(e)&&Ro[e]?(""+t).trim():t+"px"}function np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var cv=ce({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 ua(e,t){if(t){if(cv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ca(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 da=null;function vu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,_r=null,Mr=null;function Ic(e){if(e=mi(e)){if(typeof fa!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Qs(t),fa(e.stateNode,e.type,t))}}function rp(e){_r?Mr?Mr.push(e):Mr=[e]:_r=e}function op(){if(_r){var e=_r,t=Mr;if(Mr=_r=null,Ic(e),t)for(e=0;e>>=0,e===0?32:31-(Sv(e)/Ev|0)|0}var Ri=64,ji=4194304;function Po(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 fs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Po(l):(i&=s,i!==0&&(r=Po(i)))}else s=n&~o,s!==0?r=Po(s):i!==0&&(r=Po(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function Pv(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=Oo),Qc=" ",Kc=!1;function kp(e,t){switch(e){case"keyup":return ey.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function ny(e,t){switch(e){case"compositionend":return bp(t);case"keypress":return t.which!==32?null:(Kc=!0,Qc);case"textInput":return e=t.data,e===Qc&&Kc?null:e;default:return null}}function ry(e,t){if(Sr)return e==="compositionend"||!bu&&kp(e,t)?(e=Ep(),Xi=Eu=gn=null,Sr=!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=qc(n)}}function Rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function Pu(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 fy(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rp(n.ownerDocument.documentElement,n)){if(r!==null&&Pu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Zc(n,i);var s=Zc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,Er=null,ya=null,Mo=null,xa=!1;function Jc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xa||Er==null||Er!==as(r)||(r=Er,"selectionStart"in r&&Pu(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}),Mo&&Ko(Mo,r)||(Mo=r,r=ms(ya,"onSelect"),0br||(e.current=ba[br],ba[br]=null,br--)}function ne(e,t){br++,ba[br]=e.current,e.current=t}var Rn={},Oe=In(Rn),Be=In(!1),nr=Rn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function vs(){ie(Be),ie(Oe)}function sd(e,t,n){if(Oe.current!==Rn)throw Error(j(168));ne(Oe,t),ne(Be,n)}function Fp(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(j(108,lv(e)||"Unknown",o));return ce({},n,r)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,nr=Oe.current,ne(Oe,e),ne(Be,Be.current),!0}function ld(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Fp(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,ie(Be),ie(Oe),ne(Oe,e)):ie(Be),ne(Be,n)}var zt=null,Ks=!1,Dl=!1;function $p(e){zt===null?zt=[e]:zt.push(e)}function ky(e){Ks=!0,$p(e)}function zn(){if(!Dl&&zt!==null){Dl=!0;var e=0,t=ee;try{var n=zt;for(ee=1;e>=s,o-=s,$t=1<<32-yt(t)+o|n<R?(M=b,b=null):M=b.sibling;var _=h(m,b,g[R],E);if(_===null){b===null&&(b=M);break}e&&b&&_.alternate===null&&t(m,b),p=i(_,p,R),k===null?C=_:k.sibling=_,k=_,b=M}if(R===g.length)return n(m,b),le&&Vn(m,R),C;if(b===null){for(;RR?(M=b,b=null):M=b.sibling;var F=h(m,b,_.value,E);if(F===null){b===null&&(b=M);break}e&&b&&F.alternate===null&&t(m,b),p=i(F,p,R),k===null?C=F:k.sibling=F,k=F,b=M}if(_.done)return n(m,b),le&&Vn(m,R),C;if(b===null){for(;!_.done;R++,_=g.next())_=f(m,_.value,E),_!==null&&(p=i(_,p,R),k===null?C=_:k.sibling=_,k=_);return le&&Vn(m,R),C}for(b=r(m,b);!_.done;R++,_=g.next())_=d(b,m,R,_.value,E),_!==null&&(e&&_.alternate!==null&&b.delete(_.key===null?R:_.key),p=i(_,p,R),k===null?C=_:k.sibling=_,k=_);return e&&b.forEach(function(I){return t(m,I)}),le&&Vn(m,R),C}function w(m,p,g,E){if(typeof g=="object"&&g!==null&&g.type===wr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pi:e:{for(var C=g.key,k=p;k!==null;){if(k.key===C){if(C=g.type,C===wr){if(k.tag===7){n(m,k.sibling),p=o(k,g.props.children),p.return=m,m=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ln&&cd(C)===k.type){n(m,k.sibling),p=o(k,g.props),p.ref=xo(m,k,g),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}g.type===wr?(p=tr(g.props.children,m.mode,E,g.key),p.return=m,m=p):(E=os(g.type,g.key,g.props,null,m.mode,E),E.ref=xo(m,p,g),E.return=m,m=E)}return s(m);case xr:e:{for(k=g.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Hl(g,m.mode,E),p.return=m,m=p}return s(m);case ln:return k=g._init,w(m,p,k(g._payload),E)}if(bo(g))return S(m,p,g,E);if(ho(g))return v(m,p,g,E);Ii(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,g),p.return=m,m=p):(n(m,p),p=Vl(g,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return w}var qr=Hp(!0),Wp=Hp(!1),Ss=In(null),Es=null,Tr=null,ju=null;function Ou(){ju=Tr=Es=null}function _u(e){var t=Ss.current;ie(Ss),e._currentValue=t}function Ta(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 Lr(e,t){Es=e,ju=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(ju!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if(Es===null)throw Error(j(308));Tr=e,Es.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Qn=null;function Mu(e){Qn===null?Qn=[e]:Qn.push(e)}function Qp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Wt(e,r)}function Wt(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 an=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kp(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Wt(e,n)}return o=r.interleaved,o===null?(t.next=t,Mu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Wt(e,n)}function Zi(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,xu(e,n)}}function dd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cs(e,t,n,r){var o=e.updateQueue;an=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,c=u=a=null,l=i;do{var h=l.lane,d=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,v=l;switch(h=t,d=n,v.tag){case 1:if(S=v.payload,typeof S=="function"){f=S.call(d,f,h);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,h=typeof S=="function"?S.call(d,f,h):S,h==null)break e;f=ce({},f,h);break e;case 2:an=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else d={eventTime:d,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=d,a=f):c=c.next=d,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ir|=s,e.lanes=s,e.memoizedState=f}}function fd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{ee=n,zl.transition=r}}function ch(){return st().memoizedState}function Ty(e,t,n){var r=bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dh(e))fh(t,n);else if(n=Qp(e,t,n,r),n!==null){var o=Le();xt(n,e,r,o),ph(n,t,r)}}function Ry(e,t,n){var r=bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dh(e))fh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,wt(l,s)){var a=t.interleaved;a===null?(o.next=o,Mu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qp(e,t,o,r),n!==null&&(o=Le(),xt(n,e,r,o),ph(n,t,r))}}function dh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function fh(e,t){Ao=bs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xu(e,n)}}var Ps={readContext:it,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},jy={readContext:it,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:hd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,es(4194308,4,ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();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=Ty.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:pd,useDebugValue:Uu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=pd(!1),t=e[0];return e=Ny.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Pt();if(le){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Se===null)throw Error(j(349));or&30||qp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hd(Jp.bind(null,r,i,e),[e]),r.flags|=2048,ti(9,Zp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Se.identifierPrefix;if(le){var n=Bt,r=$t;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jt]=t,e[Xo]=r,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(s=ca(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oeo&&(t.flags|=128,r=!0,wo(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return Te(t),null}else 2*pe()-i.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,wo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function zy(e,t){switch(Tu(t),t.tag){case 1:return Ue(t.type)&&vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),ie(Be),ie(Oe),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Du(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Zr(),null;case 10:return _u(t.type._context),null;case 22:case 23:return Gu(),null;case 24:return null;default:return null}}var Fi=!1,je=!1,Fy=typeof WeakSet=="function"?WeakSet:Set,D=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Ia(e,t,n){try{n()}catch(r){fe(e,t,r)}}var bd=!1;function $y(e,t){if(wa=ps,e=jp(),Pu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var d;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sa={focusedElem:e,selectionRange:n},ps=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;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,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ft(t.type,v),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=bd,bd=!1,S}function Lo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ia(t,n,i)}o=o.next}while(o!==r)}}function Xs(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 za(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 Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Xo],delete t[ka],delete t[Ey],delete t[Cy])),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 Nh(e){return e.tag===5||e.tag===3||e.tag===4}function Pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nh(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 Fa(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=gs));else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}function $a(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($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}var Ee=null,gt=!1;function nn(e,t,n){for(n=n.child;n!==null;)Th(e,t,n),n=n.sibling}function Th(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Us,n)}catch{}switch(n.tag){case 5:je||Rr(n,t);case 6:var r=Ee,o=gt;Ee=null,nn(e,t,n),Ee=r,gt=o,Ee!==null&&(gt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(gt?(e=Ee,n=n.stateNode,e.nodeType===8?Ll(e.parentNode,n):e.nodeType===1&&Ll(e,n),Wo(e)):Ll(Ee,n.stateNode));break;case 4:r=Ee,o=gt,Ee=n.stateNode.containerInfo,gt=!0,nn(e,t,n),Ee=r,gt=o;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ia(n,t,s),o=o.next}while(o!==r)}nn(e,t,n);break;case 1:if(!je&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,nn(e,t,n),je=r):nn(e,t,n);break;default:nn(e,t,n)}}function Nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fy),t.forEach(function(r){var o=Yy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uy(r/1960))-r,10e?16:e,vn===null)var r=!1;else{if(e=vn,vn=null,Rs=0,q&6)throw Error(j(331));var o=q;for(q|=4,D=e.current;D!==null;){var i=D,s=i.child;if(D.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Qu?er(e,0):Wu|=n),Ve(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=ji,ji<<=1,!(ji&130023424)&&(ji=4194304)):t=1);var n=Le();e=Wt(e,t),e!==null&&(pi(e,t,n),Ve(e,n))}function Gy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function Yy(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(j(314))}r!==null&&r.delete(t),Dh(e,n)}var Ih;Ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,Dy(e,t,n);$e=!!(e.flags&131072)}else $e=!1,le&&t.flags&1048576&&Bp(t,ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ts(e,t),e=t.pendingProps;var o=Yr(t,Oe.current);Lr(t,n),o=Fu(null,t,r,e,o,n);var i=$u();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,Ue(r)?(i=!0,ys(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Au(t),o.updater=Ys,t.stateNode=o,o._reactInternals=t,ja(t,r,e,n),t=Ma(null,t,r,!0,i,n)):(t.tag=0,le&&i&&Nu(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=qy(r),e=ft(r,e),o){case 0:t=_a(null,t,r,e,n);break e;case 1:t=Ed(null,t,r,e,n);break e;case 11:t=wd(null,t,r,e,n);break e;case 14:t=Sd(null,t,r,ft(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),_a(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),Ed(e,t,r,o,n);case 3:e:{if(wh(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Kp(e,t),Cs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jr(Error(j(423)),t),t=Cd(e,t,r,n,o);break e}else if(r!==o){o=Jr(Error(j(424)),t),t=Cd(e,t,r,n,o);break e}else for(Ke=En(t.stateNode.containerInfo.firstChild),Ge=t,le=!0,vt=null,n=Wp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===o){t=Qt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&Na(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ea(r,o)?s=null:i!==null&&Ea(r,i)&&(t.flags|=32),xh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return Sh(e,t,n);case 4:return Lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),wd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(Ss,r._currentValue),r._currentValue=s,i!==null)if(wt(i.value,s)){if(i.children===o.children&&!Be.current){t=Qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ut(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ta(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ta(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lr(t,n),o=it(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=ft(r,t.pendingProps),o=ft(r.type,o),Sd(e,t,r,o,n);case 15:return vh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ft(r,o),ts(e,t),t.tag=1,Ue(r)?(e=!0,ys(t)):e=!1,Lr(t,n),hh(t,r,o),ja(t,r,o,n),Ma(null,t,r,!0,e,n);case 19:return Eh(e,t,n);case 22:return yh(e,t,n)}throw Error(j(156,t.tag))};function zh(e,t){return dp(e,t)}function Xy(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 rt(e,t,n,r){return new Xy(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qy(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mu)return 11;if(e===gu)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=rt(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 os(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Xu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wr:return tr(n.children,o,i,t);case hu:s=8,o|=8;break;case ea:return e=rt(12,n,t,o|2),e.elementType=ea,e.lanes=i,e;case ta:return e=rt(13,n,t,o),e.elementType=ta,e.lanes=i,e;case na:return e=rt(19,n,t,o),e.elementType=na,e.lanes=i,e;case Gf:return Zs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qf:s=10;break e;case Kf:s=9;break e;case mu:s=11;break e;case gu:s=14;break e;case ln:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function tr(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Zs(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Vl(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Hl(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zy(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=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qu(e,t,n,r,o,i,s,l,a){return e=new Zy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Au(i),e}function Jy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uh)}catch(e){console.error(e)}}Uh(),Uf.exports=qe;var vi=Uf.exports;const Vh=Rf(vi);var Hh,Ld=vi;Hh=Ld.createRoot,Ld.hydrateRoot;const o0=1,i0=1e6;let Wl=0;function s0(){return Wl=(Wl+1)%Number.MAX_SAFE_INTEGER,Wl.toString()}const Ql=new Map,Dd=e=>{if(Ql.has(e))return;const t=setTimeout(()=>{Ql.delete(e),zo({type:"REMOVE_TOAST",toastId:e})},i0);Ql.set(e,t)},l0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,o0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Dd(n):e.toasts.forEach(r=>{Dd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},is=[];let ss={toasts:[]};function zo(e){ss=l0(ss,e),is.forEach(t=>{t(ss)})}function a0({...e}){const t=s0(),n=o=>zo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>zo({type:"DISMISS_TOAST",toastId:t});return zo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function u0(){const[e,t]=x.useState(ss);return x.useEffect(()=>(is.push(t),()=>{const n=is.indexOf(t);n>-1&&is.splice(n,1)}),[e]),{...e,toast:a0,dismiss:n=>zo({type:"DISMISS_TOAST",toastId:n})}}function ye(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 Id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Id(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var m;const{scope:h,children:d,...S}=f,v=((m=h==null?void 0:h[e])==null?void 0:m[a])||l,w=x.useMemo(()=>S,Object.values(S));return y.jsx(v.Provider,{value:w,children:d})};u.displayName=i+"Provider";function c(f,h){var v;const d=((v=h==null?void 0:h[e])==null?void 0:v[a])||l,S=x.useContext(d);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,c0(o,...t)]}function c0(...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(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function _s(e){const t=f0(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,l=x.Children.toArray(i),a=l.find(h0);if(a){const u=a.props.children,c=l.map(f=>f===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return y.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var d0=_s("Slot");function f0(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=g0(o),l=m0(i,o.props);return o.type!==x.Fragment&&(l.ref=r?Wh(r,s):s),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qh=Symbol("radix.slottable");function p0(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qh,t}function h0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qh}function m0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function g0(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)}function v0(e){const t=e+"CollectionProvider",[n,r]=rl(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:w,children:m}=v,p=O.useRef(null),g=O.useRef(new Map).current;return y.jsx(o,{scope:w,itemMap:g,collectionRef:p,children:m})};s.displayName=t;const l=e+"CollectionSlot",a=_s(l),u=O.forwardRef((v,w)=>{const{scope:m,children:p}=v,g=i(l,m),E=St(w,g.collectionRef);return y.jsx(a,{ref:E,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=_s(c),d=O.forwardRef((v,w)=>{const{scope:m,children:p,...g}=v,E=O.useRef(null),C=St(w,E),k=i(c,m);return O.useEffect(()=>(k.itemMap.set(E,{ref:E,...g}),()=>void k.itemMap.delete(E))),y.jsx(h,{[f]:"",ref:C,children:p})});d.displayName=c;function S(v){const w=i(e+"CollectionConsumer",v);return O.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((k,b)=>g.indexOf(k.ref.current)-g.indexOf(b.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},S,r]}var y0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=y0.reduce((e,t)=>{const n=_s(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kh(e,t){e&&vi.flushSync(()=>e.dispatchEvent(t))}function jn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function x0(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e);x.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 w0="DismissableLayer",Wa="dismissableLayer.update",S0="dismissableLayer.pointerDownOutside",E0="dismissableLayer.focusOutside",zd,Gh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=x.useContext(Gh),[c,f]=x.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=x.useState({}),S=St(t,b=>f(b)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(w),p=c?v.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=m,C=k0(b=>{const R=b.target,M=[...u.branches].some(_=>_.contains(R));!E||M||(o==null||o(b),s==null||s(b),b.defaultPrevented||l==null||l())},h),k=b0(b=>{const R=b.target;[...u.branches].some(_=>_.contains(R))||(i==null||i(b),s==null||s(b),b.defaultPrevented||l==null||l())},h);return x0(b=>{p===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&l&&(b.preventDefault(),l()))},h),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Fd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=zd)}},[c,h,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Fd())},[c,u]),x.useEffect(()=>{const b=()=>d({});return document.addEventListener(Wa,b),()=>document.removeEventListener(Wa,b)},[]),y.jsx(He.div,{...a,ref:S,style:{pointerEvents:g?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,C.onPointerDownCapture)})});tc.displayName=w0;var C0="DismissableLayerBranch",Yh=x.forwardRef((e,t)=>{const n=x.useContext(Gh),r=x.useRef(null),o=St(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(He.div,{...e,ref:o})});Yh.displayName=C0;function k0(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Xh(S0,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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b0(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xh(E0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fd(){const e=new CustomEvent(Wa);document.dispatchEvent(e)}function Xh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kh(o,i):o.dispatchEvent(i)}var P0=tc,N0=Yh,On=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},T0="Portal",qh=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=x.useState(!1);On(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Vh.createPortal(y.jsx(He.div,{...r,ref:t}),s):null});qh.displayName=T0;function R0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var nc=e=>{const{present:t,children:n}=e,r=j0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=St(r.ref,O0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};nc.displayName="Presence";function j0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[l,a]=R0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Ui(r.current);i.current=l==="mounted"?u:"none"},[l]),On(()=>{const u=r.current,c=o.current;if(c!==e){const h=i.current,d=Ui(u);e?a("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),On(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=d=>{const v=Ui(r.current).includes(d.animationName);if(d.target===t&&v&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=d=>{d.target===t&&(i.current=Ui(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ui(e){return(e==null?void 0:e.animationName)||"none"}function O0(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 _0=$f[" useInsertionEffect ".trim().toString()]||On;function M0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=A0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const f=c.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.`),c.current=l},[l,r])}const u=x.useCallback(c=>{var f;if(l){const h=L0(c)?c(e):c;h!==e&&((f=s.current)==null||f.call(s,h))}else i(c)},[l,e,i,s]);return[a,u]}function A0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return _0(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function L0(e){return typeof e=="function"}var D0=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"}),I0="VisuallyHidden",ol=x.forwardRef((e,t)=>y.jsx(He.span,{...e,ref:t,style:{...D0,...e.style}}));ol.displayName=I0;var z0=ol,rc="ToastProvider",[oc,F0,$0]=v0("Toast"),[Zh,IE]=rl("Toast",[$0]),[B0,il]=Zh(rc),Jh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${rc}\`. Expected non-empty \`string\`.`),y.jsx(oc.Provider,{scope:t,children:y.jsx(B0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>c(d=>d+1),[]),onToastRemove:x.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};Jh.displayName=rc;var em="ToastViewport",U0=["F8"],Qa="toast.viewportPause",Ka="toast.viewportResume",tm=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=U0,label:o="Notifications ({hotkey})",...i}=e,s=il(em,n),l=F0(n),a=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),h=St(t,f,s.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=s.toastCount>0;x.useEffect(()=>{const w=m=>{var g;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,m=f.current;if(S&&w&&m){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(Qa);m.dispatchEvent(k),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(Ka);m.dispatchEvent(k),s.isClosePausedRef.current=!1}},E=k=>{!w.contains(k.relatedTarget)&&g()},C=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",p),w.addEventListener("focusout",E),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",E),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[S,s.isClosePausedRef]);const v=x.useCallback(({tabbingDirection:w})=>{const p=l().map(g=>{const E=g.ref.current,C=[E,...tx(E)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return x.useEffect(()=>{const w=f.current;if(w){const m=p=>{var C,k,b;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const R=document.activeElement,M=p.shiftKey;if(p.target===w&&M){(C=u.current)==null||C.focus();return}const I=v({tabbingDirection:M?"backwards":"forwards"}),Q=I.findIndex(A=>A===R);Kl(I.slice(Q+1))?p.preventDefault():M?(k=u.current)==null||k.focus():(b=c.current)==null||b.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,v]),y.jsxs(N0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&y.jsx(Ga,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});Kl(w)}}),y.jsx(oc.Slot,{scope:n,children:y.jsx(He.ol,{tabIndex:-1,...i,ref:h})}),S&&y.jsx(Ga,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});Kl(w)}})]})});tm.displayName=em;var nm="ToastFocusProxy",Ga=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=il(nm,n);return y.jsx(ol,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Ga.displayName=nm;var yi="Toast",V0="toast.swipeStart",H0="toast.swipeMove",W0="toast.swipeCancel",Q0="toast.swipeEnd",rm=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=M0({prop:r,defaultProp:o??!0,onChange:i,caller:yi});return y.jsx(nc,{present:n||l,children:y.jsx(Y0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:jn(e.onPause),onResume:jn(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});rm.displayName=yi;var[K0,G0]=Zh(yi,{onClose(){}}),Y0=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:d,...S}=e,v=il(yi,n),[w,m]=x.useState(null),p=St(t,A=>m(A)),g=x.useRef(null),E=x.useRef(null),C=o||v.duration,k=x.useRef(0),b=x.useRef(C),R=x.useRef(0),{onToastAdd:M,onToastRemove:_}=v,F=jn(()=>{var X;(w==null?void 0:w.contains(document.activeElement))&&((X=v.viewport)==null||X.focus()),s()}),I=x.useCallback(A=>{!A||A===1/0||(window.clearTimeout(R.current),k.current=new Date().getTime(),R.current=window.setTimeout(F,A))},[F]);x.useEffect(()=>{const A=v.viewport;if(A){const X=()=>{I(b.current),u==null||u()},$=()=>{const H=new Date().getTime()-k.current;b.current=b.current-H,window.clearTimeout(R.current),a==null||a()};return A.addEventListener(Qa,$),A.addEventListener(Ka,X),()=>{A.removeEventListener(Qa,$),A.removeEventListener(Ka,X)}}},[v.viewport,C,a,u,I]),x.useEffect(()=>{i&&!v.isClosePausedRef.current&&I(C)},[i,C,v.isClosePausedRef,I]),x.useEffect(()=>(M(),()=>_()),[M,_]);const Q=x.useMemo(()=>w?cm(w):null,[w]);return v.viewport?y.jsxs(y.Fragment,{children:[Q&&y.jsx(X0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),y.jsx(K0,{scope:n,onClose:F,children:vi.createPortal(y.jsx(oc.ItemSlot,{scope:n,children:y.jsx(P0,{asChild:!0,onEscapeKeyDown:ye(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||F(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...S,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,A=>{A.key==="Escape"&&(l==null||l(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:ye(e.onPointerDown,A=>{A.button===0&&(g.current={x:A.clientX,y:A.clientY})}),onPointerMove:ye(e.onPointerMove,A=>{if(!g.current)return;const X=A.clientX-g.current.x,$=A.clientY-g.current.y,H=!!E.current,N=["left","right"].includes(v.swipeDirection),T=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=N?T(0,X):0,V=N?0:T(0,$),z=A.pointerType==="touch"?10:2,K={x:L,y:V},Y={originalEvent:A,delta:K};H?(E.current=K,Vi(H0,f,Y,{discrete:!1})):$d(K,v.swipeDirection,z)?(E.current=K,Vi(V0,c,Y,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(X)>z||Math.abs($)>z)&&(g.current=null)}),onPointerUp:ye(e.onPointerUp,A=>{const X=E.current,$=A.target;if($.hasPointerCapture(A.pointerId)&&$.releasePointerCapture(A.pointerId),E.current=null,g.current=null,X){const H=A.currentTarget,N={originalEvent:A,delta:X};$d(X,v.swipeDirection,v.swipeThreshold)?Vi(Q0,d,N,{discrete:!0}):Vi(W0,h,N,{discrete:!0}),H.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),X0=e=>{const{__scopeToast:t,children:n,...r}=e,o=il(yi,t),[i,s]=x.useState(!1),[l,a]=x.useState(!1);return J0(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:y.jsx(qh,{asChild:!0,children:y.jsx(ol,{...r,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},q0="ToastTitle",om=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(He.div,{...r,ref:t})});om.displayName=q0;var Z0="ToastDescription",im=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(He.div,{...r,ref:t})});im.displayName=Z0;var sm="ToastAction",lm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(um,{altText:n,asChild:!0,children:y.jsx(ic,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sm}\`. Expected non-empty \`string\`.`),null)});lm.displayName=sm;var am="ToastClose",ic=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=G0(am,n);return y.jsx(um,{asChild:!0,children:y.jsx(He.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});ic.displayName=am;var um=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ex(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...cm(r))}}),t}function Vi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kh(o,i):o.dispatchEvent(i)}var $d=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function J0(e=()=>{}){const t=jn(e);On(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function ex(e){return e.nodeType===e.ELEMENT_NODE}function tx(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 Kl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var nx=Jh,dm=tm,fm=rm,pm=om,hm=im,mm=lm,gm=ic;function vm(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;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Ud=ym,xm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ud(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const h=Bd(c)||Bd(f);return o[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:h,...d}=c;return Object.entries(d).every(S=>{let[v,w]=S;return Array.isArray(w)?w.includes({...i,...l}[v]):{...i,...l}[v]===w})?[...u,f,h]:u},[]);return Ud(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @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 rx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wm=(...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 ox={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 ix=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>x.createElement("svg",{ref:a,...ox,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wm("lucide",o),...l},[...s.map(([u,c])=>x.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @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 kt=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement(ix,{ref:i,iconNode:t,className:wm(`lucide-${rx(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 sx=kt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @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 ri=kt("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** * @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 Vd=kt("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 lx=kt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @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 Hd=kt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @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 ax=kt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @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 ux=kt("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @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 Ms=kt("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @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 cx=kt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @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 dx=kt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @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 Sm=kt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),sc="-",fx=e=>{const t=hx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(sc);return l[0]===""&&l.length!==1&&l.shift(),Em(l,t)||px(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Em=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Em(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(sc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Wd=/^\[(.+)\]$/,px=e=>{if(Wd.test(e)){const t=Wd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return gx(Object.entries(e.classGroups),n).forEach(([i,s])=>{Ya(s,r,i,t)}),r},Ya=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Qd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(mx(o)){Ya(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Ya(s,Qd(t,i),n,r)})})},Qd=(e,t)=>{let n=e;return t.split(sc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},mx=e=>e.isThemeGetter,gx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,vx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Cm="!",yx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,f;for(let w=0;wc?f-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:S,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},xx=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},wx=e=>({cache:vx(e.cacheSize),parseClassName:yx(e),...fx(e)}),Sx=/\s+/,Ex=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Sx);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=n(u);let S=!!d,v=r(S?h.substring(0,d):h);if(!v){if(!S){l=u+(l.length>0?" "+l:l);continue}if(v=r(h),!v){l=u+(l.length>0?" "+l:l);continue}S=!1}const w=xx(c).join(":"),m=f?w+Cm:w,p=m+v;if(i.includes(p))continue;i.push(p);const g=o(v,S);for(let E=0;E0?" "+l:l)}return l};function Cx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=wx(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=Ex(a,n);return o(a,c),c}return function(){return i(Cx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bm=/^\[(?:([a-z-]+):)?(.+)\]$/i,bx=/^\d+\/\d+$/,Px=new Set(["px","full","screen"]),Nx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tx=/\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$/,Rx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ox=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lt=e=>Ir(e)||Px.has(e)||bx.test(e),rn=e=>so(e,"length",Fx),Ir=e=>!!e&&!Number.isNaN(Number(e)),Gl=e=>so(e,"number",Ir),Eo=e=>!!e&&Number.isInteger(Number(e)),_x=e=>e.endsWith("%")&&Ir(e.slice(0,-1)),W=e=>bm.test(e),on=e=>Nx.test(e),Mx=new Set(["length","size","percentage"]),Ax=e=>so(e,Mx,Pm),Lx=e=>so(e,"position",Pm),Dx=new Set(["image","url"]),Ix=e=>so(e,Dx,Bx),zx=e=>so(e,"",$x),Co=()=>!0,so=(e,t,n)=>{const r=bm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fx=e=>Tx.test(e)&&!Rx.test(e),Pm=()=>!1,$x=e=>jx.test(e),Bx=e=>Ox.test(e),Ux=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),f=re("invert"),h=re("gap"),d=re("gradientColorStops"),S=re("gradientColorStopPositions"),v=re("inset"),w=re("margin"),m=re("opacity"),p=re("padding"),g=re("saturate"),E=re("scale"),C=re("sepia"),k=re("skew"),b=re("space"),R=re("translate"),M=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",W,t],I=()=>[W,t],Q=()=>["",Lt,rn],A=()=>["auto",Ir,W],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Ir,W];return{cacheSize:500,separator:":",theme:{colors:[Co],spacing:[Lt,rn],blur:["none","",on,W],brightness:V(),borderColor:[e],borderRadius:["none","","full",on,W],borderSpacing:I(),borderWidth:Q(),contrast:V(),grayscale:T(),hueRotate:V(),invert:T(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[_x,rn],inset:F(),margin:F(),opacity:V(),padding:I(),saturate:V(),scale:V(),sepia:T(),skew:V(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[on]}],"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:[...X(),W]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",Eo,W]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",Eo,W]}],"grid-cols":[{"grid-cols":[Co]}],"col-start-end":[{col:["auto",{span:["full",Eo,W]},W]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Co]}],"row-start-end":[{row:["auto",{span:[Eo,W]},W]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],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":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[on]},on]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",on,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gl]}],"font-family":[{font:[Co]}],"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",W]}],"line-clamp":[{"line-clamp":["none",Ir,Gl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,rn]}],"underline-offset":[{"underline-offset":["auto",Lt,W]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],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",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Lx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ax]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ix]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"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":[m]}],"border-style":[{border:[...$(),"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":[m]}],"divide-style":[{divide:$()}],"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:["",...$()]}],"outline-offset":[{"outline-offset":[Lt,W]}],"outline-w":[{outline:[Lt,rn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Lt,rn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",on,zx]}],"shadow-color":[{shadow:[Co]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",on,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],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":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Eo,W]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lt,rn,Gl]}],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"]}}},Vx=kx(Ux);function Fn(...e){return Vx(ym(e))}const Hx=nx,Nm=x.forwardRef(({className:e,...t},n)=>y.jsx(dm,{ref:n,className:Fn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Nm.displayName=dm.displayName;const Wx=xm("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Tm=x.forwardRef(({className:e,variant:t,...n},r)=>y.jsx(fm,{ref:r,className:Fn(Wx({variant:t}),e),...n}));Tm.displayName=fm.displayName;const Qx=x.forwardRef(({className:e,...t},n)=>y.jsx(mm,{ref:n,className:Fn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Qx.displayName=mm.displayName;const Rm=x.forwardRef(({className:e,...t},n)=>y.jsx(gm,{ref:n,className:Fn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:y.jsx(Sm,{className:"h-4 w-4"})}));Rm.displayName=gm.displayName;const jm=x.forwardRef(({className:e,...t},n)=>y.jsx(pm,{ref:n,className:Fn("text-sm font-semibold",e),...t}));jm.displayName=pm.displayName;const Om=x.forwardRef(({className:e,...t},n)=>y.jsx(hm,{ref:n,className:Fn("text-sm opacity-90",e),...t}));Om.displayName=hm.displayName;function Kx(){const{toasts:e}=u0();return y.jsxs(Hx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return y.jsxs(Tm,{...i,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(jm,{children:n}),r&&y.jsx(Om,{children:r})]}),o,y.jsx(Rm,{})]},t)}),y.jsx(Nm,{})]})}var Kd=["light","dark"],Gx="(prefers-color-scheme: dark)",Yx=x.createContext(void 0),Xx={setTheme:e=>{},themes:[]},qx=()=>{var e;return(e=x.useContext(Yx))!=null?e:Xx};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=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?Kd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(S,v=!1,w=!0)=>{let m=s?s[S]:S,p=v?S+"|| ''":`'${m}'`,g="";return o&&w&&!v&&Kd.includes(S)&&(g+=`d.style.colorScheme = '${S}';`),n==="class"?v||m?g+=`c.add(${p})`:g+="null":m&&(g+=`d[s](n,${p})`),g},d=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Gx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:d}})});var Zx=e=>{switch(e){case"success":return t1;case"info":return r1;case"warning":return n1;case"error":return o1;default:return null}},Jx=Array(12).fill(0),e1=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},Jx.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),t1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),n1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),r1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),i1=O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),s1=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Xa=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:Xa++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,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,i,s=r.then(async a=>{if(i=["resolve",a],O.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(u1(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[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)||Xa++;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}},ze=new l1,a1=(e,t)=>{let n=(t==null?void 0:t.id)||Xa++;return ze.addToast({title:e,...t,id:n}),n},u1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",c1=a1,d1=()=>ze.toasts,f1=()=>ze.getActiveToasts();Object.assign(c1,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:d1,getToasts:f1});function p1(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))}p1(`: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 Hi(e){return e.label!==void 0}var h1=3,m1="32px",g1="16px",Gd=4e3,v1=356,y1=14,x1=20,w1=200;function dt(...e){return e.filter(Boolean).join(" ")}function S1(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var E1=e=>{var t,n,r,o,i,s,l,a,u,c,f;let{invert:h,toast:d,unstyled:S,interacting:v,setHeights:w,visibleToasts:m,heights:p,index:g,toasts:E,expanded:C,removeToast:k,defaultRichColors:b,closeButton:R,style:M,cancelButtonStyle:_,actionButtonStyle:F,className:I="",descriptionClassName:Q="",duration:A,position:X,gap:$,loadingIcon:H,expandByDefault:N,classNames:T,icons:L,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:z}=e,[K,Y]=O.useState(null),[he,be]=O.useState(null),[J,fr]=O.useState(!1),[Xt,$n]=O.useState(!1),[qt,pr]=O.useState(!1),[Zt,Si]=O.useState(!1),[hl,Ei]=O.useState(!1),[ml,fo]=O.useState(0),[hr,wc]=O.useState(0),po=O.useRef(d.duration||A||Gd),Sc=O.useRef(null),Bn=O.useRef(null),Cg=g===0,kg=g+1<=m,Je=d.type,mr=d.dismissible!==!1,bg=d.className||"",Pg=d.descriptionClassName||"",Ci=O.useMemo(()=>p.findIndex(B=>B.toastId===d.id)||0,[p,d.id]),Ng=O.useMemo(()=>{var B;return(B=d.closeButton)!=null?B:R},[d.closeButton,R]),Ec=O.useMemo(()=>d.duration||A||Gd,[d.duration,A]),gl=O.useRef(0),gr=O.useRef(0),Cc=O.useRef(0),vr=O.useRef(null),[Tg,Rg]=X.split("-"),kc=O.useMemo(()=>p.reduce((B,te,se)=>se>=Ci?B:B+te.height,0),[p,Ci]),bc=s1(),jg=d.invert||h,vl=Je==="loading";gr.current=O.useMemo(()=>Ci*$+kc,[Ci,kc]),O.useEffect(()=>{po.current=Ec},[Ec]),O.useEffect(()=>{fr(!0)},[]),O.useEffect(()=>{let B=Bn.current;if(B){let te=B.getBoundingClientRect().height;return wc(te),w(se=>[{toastId:d.id,height:te,position:d.position},...se]),()=>w(se=>se.filter(lt=>lt.toastId!==d.id))}},[w,d.id]),O.useLayoutEffect(()=>{if(!J)return;let B=Bn.current,te=B.style.height;B.style.height="auto";let se=B.getBoundingClientRect().height;B.style.height=te,wc(se),w(lt=>lt.find(at=>at.toastId===d.id)?lt.map(at=>at.toastId===d.id?{...at,height:se}:at):[{toastId:d.id,height:se,position:d.position},...lt])},[J,d.title,d.description,w,d.id]);let Jt=O.useCallback(()=>{$n(!0),fo(gr.current),w(B=>B.filter(te=>te.toastId!==d.id)),setTimeout(()=>{k(d)},w1)},[d,k,w,gr]);O.useEffect(()=>{if(d.promise&&Je==="loading"||d.duration===1/0||d.type==="loading")return;let B;return C||v||z&&bc?(()=>{if(Cc.current{var te;(te=d.onAutoClose)==null||te.call(d,d),Jt()},po.current)),()=>clearTimeout(B)},[C,v,d,Je,z,bc,Jt]),O.useEffect(()=>{d.delete&&Jt()},[Jt,d.delete]);function Og(){var B,te,se;return L!=null&&L.loading?O.createElement("div",{className:dt(T==null?void 0:T.loader,(B=d==null?void 0:d.classNames)==null?void 0:B.loader,"sonner-loader"),"data-visible":Je==="loading"},L.loading):H?O.createElement("div",{className:dt(T==null?void 0:T.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Je==="loading"},H):O.createElement(e1,{className:dt(T==null?void 0:T.loader,(se=d==null?void 0:d.classNames)==null?void 0:se.loader),visible:Je==="loading"})}return O.createElement("li",{tabIndex:0,ref:Bn,className:dt(I,bg,T==null?void 0:T.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Je],(n=d==null?void 0:d.classNames)==null?void 0:n[Je]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:b,"data-styled":!(d.jsx||d.unstyled||S),"data-mounted":J,"data-promise":!!d.promise,"data-swiped":hl,"data-removed":Xt,"data-visible":kg,"data-y-position":Tg,"data-x-position":Rg,"data-index":g,"data-front":Cg,"data-swiping":qt,"data-dismissible":mr,"data-type":Je,"data-invert":jg,"data-swipe-out":Zt,"data-swipe-direction":he,"data-expanded":!!(C||N&&J),style:{"--index":g,"--toasts-before":g,"--z-index":E.length-g,"--offset":`${Xt?ml:gr.current}px`,"--initial-height":N?"auto":`${hr}px`,...M,...d.style},onDragEnd:()=>{pr(!1),Y(null),vr.current=null},onPointerDown:B=>{vl||!mr||(Sc.current=new Date,fo(gr.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(pr(!0),vr.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,te,se,lt;if(Zt||!mr)return;vr.current=null;let at=Number(((B=Bn.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),en=Number(((te=Bn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Un=new Date().getTime()-((se=Sc.current)==null?void 0:se.getTime()),ut=K==="x"?at:en,tn=Math.abs(ut)/Un;if(Math.abs(ut)>=x1||tn>.11){fo(gr.current),(lt=d.onDismiss)==null||lt.call(d,d),be(K==="x"?at>0?"right":"left":en>0?"down":"up"),Jt(),Si(!0),Ei(!1);return}pr(!1),Y(null)},onPointerMove:B=>{var te,se,lt,at;if(!vr.current||!mr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let en=B.clientY-vr.current.y,Un=B.clientX-vr.current.x,ut=(se=e.swipeDirections)!=null?se:S1(X);!K&&(Math.abs(Un)>1||Math.abs(en)>1)&&Y(Math.abs(Un)>Math.abs(en)?"x":"y");let tn={x:0,y:0};K==="y"?(ut.includes("top")||ut.includes("bottom"))&&(ut.includes("top")&&en<0||ut.includes("bottom")&&en>0)&&(tn.y=en):K==="x"&&(ut.includes("left")||ut.includes("right"))&&(ut.includes("left")&&Un<0||ut.includes("right")&&Un>0)&&(tn.x=Un),(Math.abs(tn.x)>0||Math.abs(tn.y)>0)&&Ei(!0),(lt=Bn.current)==null||lt.style.setProperty("--swipe-amount-x",`${tn.x}px`),(at=Bn.current)==null||at.style.setProperty("--swipe-amount-y",`${tn.y}px`)}},Ng&&!d.jsx?O.createElement("button",{"aria-label":V,"data-disabled":vl,"data-close-button":!0,onClick:vl||!mr?()=>{}:()=>{var B;Jt(),(B=d.onDismiss)==null||B.call(d,d)},className:dt(T==null?void 0:T.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:i1):null,d.jsx||x.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:O.createElement(O.Fragment,null,Je||d.icon||d.promise?O.createElement("div",{"data-icon":"",className:dt(T==null?void 0:T.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Og():null,d.type!=="loading"?d.icon||(L==null?void 0:L[Je])||Zx(Je):null):null,O.createElement("div",{"data-content":"",className:dt(T==null?void 0:T.content,(l=d==null?void 0:d.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:dt(T==null?void 0:T.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},typeof d.title=="function"?d.title():d.title),d.description?O.createElement("div",{"data-description":"",className:dt(Q,Pg,T==null?void 0:T.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),x.isValidElement(d.cancel)?d.cancel:d.cancel&&Hi(d.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||_,onClick:B=>{var te,se;Hi(d.cancel)&&mr&&((se=(te=d.cancel).onClick)==null||se.call(te,B),Jt())},className:dt(T==null?void 0:T.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,x.isValidElement(d.action)?d.action:d.action&&Hi(d.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||F,onClick:B=>{var te,se;Hi(d.action)&&((se=(te=d.action).onClick)==null||se.call(te,B),!B.defaultPrevented&&Jt())},className:dt(T==null?void 0:T.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function Yd(){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 C1(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?g1:m1;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=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[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var k1=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:f,duration:h,style:d,visibleToasts:S=h1,toastOptions:v,dir:w=Yd(),gap:m=y1,loadingIcon:p,icons:g,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:C}=e,[k,b]=O.useState([]),R=O.useMemo(()=>Array.from(new Set([r].concat(k.filter(z=>z.position).map(z=>z.position)))),[k,r]),[M,_]=O.useState([]),[F,I]=O.useState(!1),[Q,A]=O.useState(!1),[X,$]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=O.useRef(null),N=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=O.useRef(null),L=O.useRef(!1),V=O.useCallback(z=>{b(K=>{var Y;return(Y=K.find(he=>he.id===z.id))!=null&&Y.delete||ze.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return O.useEffect(()=>ze.subscribe(z=>{if(z.dismiss){b(K=>K.map(Y=>Y.id===z.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{Vh.flushSync(()=>{b(K=>{let Y=K.findIndex(he=>he.id===z.id);return Y!==-1?[...K.slice(0,Y),{...K[Y],...z},...K.slice(Y+1)]:[z,...K]})})})}),[]),O.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{$(K?"dark":"light")})}catch{z.addListener(({matches:Y})=>{try{$(Y?"dark":"light")}catch(he){console.error(he)}})}},[c]),O.useEffect(()=>{k.length<=1&&I(!1)},[k]),O.useEffect(()=>{let z=K=>{var Y,he;o.every(be=>K[be]||K.code===be)&&(I(!0),(Y=H.current)==null||Y.focus()),K.code==="Escape"&&(document.activeElement===H.current||(he=H.current)!=null&&he.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),O.useEffect(()=>{if(H.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,L.current=!1)}},[H.current]),O.createElement("section",{ref:t,"aria-label":`${E} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((z,K)=>{var Y;let[he,be]=z.split("-");return k.length?O.createElement("ol",{key:z,dir:w==="auto"?Yd():w,tabIndex:-1,ref:H,className:l,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":he,"data-lifted":F&&k.length>1&&!i,"data-x-position":be,style:{"--front-toast-height":`${((Y=M[0])==null?void 0:Y.height)||0}px`,"--width":`${v1}px`,"--gap":`${m}px`,...d,...C1(a,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,T.current=J.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{Q||I(!1)},onDragEnd:()=>I(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},k.filter(J=>!J.position&&K===0||J.position===z).map((J,fr)=>{var Xt,$n;return O.createElement(E1,{key:J.id,icons:g,index:fr,toast:J,defaultRichColors:f,duration:(Xt=v==null?void 0:v.duration)!=null?Xt:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:S,closeButton:($n=v==null?void 0:v.closeButton)!=null?$n:s,interacting:Q,position:z,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:V,toasts:k.filter(qt=>qt.position==J.position),heights:M.filter(qt=>qt.position==J.position),setHeights:_,expandByDefault:i,gap:m,loadingIcon:p,expanded:F,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const b1=({...e})=>{const{theme:t="system"}=qx();return y.jsx(k1,{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})},P1=["top","right","bottom","left"],_n=Math.min,Qe=Math.max,As=Math.round,Wi=Math.floor,Mn=e=>({x:e,y:e}),N1={left:"right",right:"left",bottom:"top",top:"bottom"},T1={start:"end",end:"start"};function qa(e,t,n){return Qe(e,_n(t,n))}function Kt(e,t){return typeof e=="function"?e(t):e}function Gt(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function lc(e){return e==="x"?"y":"x"}function ac(e){return e==="y"?"height":"width"}function An(e){return["top","bottom"].includes(Gt(e))?"y":"x"}function uc(e){return lc(An(e))}function R1(e,t,n){n===void 0&&(n=!1);const r=lo(e),o=uc(e),i=ac(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ls(s)),[s,Ls(s)]}function j1(e){const t=Ls(e);return[Za(e),t,Za(t)]}function Za(e){return e.replace(/start|end/g,t=>T1[t])}function O1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function _1(e,t,n,r){const o=lo(e);let i=O1(Gt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Za)))),i}function Ls(e){return e.replace(/left|right|bottom|top/g,t=>N1[t])}function M1(e){return{top:0,right:0,bottom:0,left:0,...e}}function _m(e){return typeof e!="number"?M1(e):{top:e,right:e,bottom:e,left:e}}function Ds(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 Xd(e,t,n){let{reference:r,floating:o}=e;const i=An(t),s=uc(t),l=ac(s),a=Gt(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let d;switch(a){case"top":d={x:c,y:r.y-o.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-o.width,y:f};break;default:d={x:r.x,y:r.y}}switch(lo(t)){case"start":d[s]-=h*(n&&u?-1:1);break;case"end":d[s]+=h*(n&&u?-1:1);break}return d}const A1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Xd(u,r,a),h=r,d={},S=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Kt(e,t)||{};if(u==null)return{};const f=_m(c),h={x:n,y:r},d=uc(o),S=ac(d),v=await s.getDimensions(u),w=d==="y",m=w?"top":"left",p=w?"bottom":"right",g=w?"clientHeight":"clientWidth",E=i.reference[S]+i.reference[d]-h[d]-i.floating[S],C=h[d]-i.reference[d],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let b=k?k[g]:0;(!b||!await(s.isElement==null?void 0:s.isElement(k)))&&(b=l.floating[g]||i.floating[S]);const R=E/2-C/2,M=b/2-v[S]/2-1,_=_n(f[m],M),F=_n(f[p],M),I=_,Q=b-v[S]-F,A=b/2-v[S]/2+R,X=qa(I,A,Q),$=!a.arrow&&lo(o)!=null&&A!==X&&i.reference[S]/2-(AA<=0)){var F,I;const A=(((F=i.flip)==null?void 0:F.index)||0)+1,X=b[A];if(X)return{data:{index:A,overflows:_},reset:{placement:X}};let $=(I=_.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(d){case"bestFit":{var Q;const H=(Q=_.filter(N=>{if(k){const T=An(N.placement);return T===p||T==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)]).sort((N,T)=>N[1]-T[1])[0])==null?void 0:Q[0];H&&($=H);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function qd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zd(e){return P1.some(t=>e[t]>=0)}const I1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Kt(e,t);switch(r){case"referenceHidden":{const i=await oi(t,{...o,elementContext:"reference"}),s=qd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zd(s)}}}case"escaped":{const i=await oi(t,{...o,altBoundary:!0}),s=qd(i,n.floating);return{data:{escapedOffsets:s,escaped:Zd(s)}}}default:return{}}}}};async function z1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Gt(n),l=lo(n),a=An(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&a?-1:1,f=Kt(t,e);let{mainAxis:h,crossAxis:d,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"&&(d=l==="end"?S*-1:S),a?{x:d*c,y:h*u}:{x:h*u,y:d*c}}const F1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await z1(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},$1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:m,y:p}=w;return{x:m,y:p}}},...a}=Kt(e,t),u={x:n,y:r},c=await oi(t,a),f=An(Gt(o)),h=lc(f);let d=u[h],S=u[f];if(i){const w=h==="y"?"top":"left",m=h==="y"?"bottom":"right",p=d+c[w],g=d-c[m];d=qa(p,d,g)}if(s){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=S+c[w],g=S-c[m];S=qa(p,S,g)}const v=l.fn({...t,[h]:d,[f]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:i,[f]:s}}}}}},B1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Kt(e,t),c={x:n,y:r},f=An(o),h=lc(f);let d=c[h],S=c[f];const v=Kt(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const g=h==="y"?"height":"width",E=i.reference[h]-i.floating[g]+w.mainAxis,C=i.reference[h]+i.reference[g]-w.mainAxis;dC&&(d=C)}if(u){var m,p;const g=h==="y"?"width":"height",E=["top","left"].includes(Gt(o)),C=i.reference[f]-i.floating[g]+(E&&((m=s.offset)==null?void 0:m[f])||0)+(E?0:w.crossAxis),k=i.reference[f]+i.reference[g]+(E?0:((p=s.offset)==null?void 0:p[f])||0)-(E?w.crossAxis:0);Sk&&(S=k)}return{[h]:d,[f]:S}}}},U1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Kt(e,t),c=await oi(t,u),f=Gt(o),h=lo(o),d=An(o)==="y",{width:S,height:v}=i.floating;let w,m;f==="top"||f==="bottom"?(w=f,m=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=f,w=h==="end"?"top":"bottom");const p=v-c.top-c.bottom,g=S-c.left-c.right,E=_n(v-c[w],p),C=_n(S-c[m],g),k=!t.middlewareData.shift;let b=E,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=p),k&&!h){const _=Qe(c.left,0),F=Qe(c.right,0),I=Qe(c.top,0),Q=Qe(c.bottom,0);d?R=S-2*(_!==0||F!==0?_+F:Qe(c.left,c.right)):b=v-2*(I!==0||Q!==0?I+Q:Qe(c.top,c.bottom))}await a({...t,availableWidth:R,availableHeight:b});const M=await s.getDimensions(l.floating);return S!==M.width||v!==M.height?{reset:{rects:!0}}:{}}}};function sl(){return typeof window<"u"}function ao(e){return Mm(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){var t;return(t=(Mm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mm(e){return sl()?e instanceof Node||e instanceof Ye(e).Node:!1}function Et(e){return sl()?e instanceof Element||e instanceof Ye(e).Element:!1}function Mt(e){return sl()?e instanceof HTMLElement||e instanceof Ye(e).HTMLElement:!1}function Jd(e){return!sl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}function xi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function V1(e){return["table","td","th"].includes(ao(e))}function ll(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function cc(e){const t=dc(),n=Et(e)?Ct(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function H1(e){let t=Ln(e);for(;Mt(t)&&!to(t);){if(cc(t))return t;if(ll(t))return null;t=Ln(t)}return null}function dc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(ao(e))}function Ct(e){return Ye(e).getComputedStyle(e)}function al(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jd(e)&&e.host||At(e);return Jd(t)?t.host:t}function Am(e){const t=Ln(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mt(t)&&xi(t)?t:Am(t)}function ii(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Am(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ye(o);if(i){const l=Ja(s);return t.concat(s,s.visualViewport||[],xi(o)?o:[],l&&n?ii(l):[])}return t.concat(o,ii(o,[],n))}function Ja(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lm(e){const t=Ct(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=As(n)!==i||As(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function fc(e){return Et(e)?e:e.contextElement}function zr(e){const t=fc(e);if(!Mt(t))return Mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lm(t);let s=(i?As(n.width):n.width)/r,l=(i?As(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const W1=Mn(0);function Dm(e){const t=Ye(e);return!dc()||!t.visualViewport?W1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=fc(e);let s=Mn(1);t&&(r?Et(r)&&(s=zr(r)):s=zr(e));const l=Q1(i,n,r)?Dm(i):Mn(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const h=Ye(i),d=r&&Et(r)?Ye(r):r;let S=h,v=Ja(S);for(;v&&r&&d!==S;){const w=zr(v),m=v.getBoundingClientRect(),p=Ct(v),g=m.left+(v.clientLeft+parseFloat(p.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=g,u+=E,S=Ye(v),v=Ja(S)}}return Ds({width:c,height:f,x:a,y:u})}function K1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=At(r),l=t?ll(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Mn(1);const c=Mn(0),f=Mt(r);if((f||!f&&!i)&&((ao(r)!=="body"||xi(s))&&(a=al(r)),Mt(r))){const h=lr(r);u=zr(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function G1(e){return Array.from(e.getClientRects())}function eu(e,t){const n=al(e).scrollLeft;return t?t.left+n:lr(At(e)).left+n}function Y1(e){const t=At(e),n=al(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+eu(e);const l=-n.scrollTop;return Ct(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function X1(e,t){const n=Ye(e),r=At(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=dc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function q1(e,t){const n=lr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mt(e)?zr(e):Mn(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function ef(e,t,n){let r;if(t==="viewport")r=X1(e,n);else if(t==="document")r=Y1(At(e));else if(Et(t))r=q1(t,n);else{const o=Dm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ds(r)}function Im(e,t){const n=Ln(e);return n===t||!Et(n)||to(n)?!1:Ct(n).position==="fixed"||Im(n,t)}function Z1(e,t){const n=t.get(e);if(n)return n;let r=ii(e,[],!1).filter(l=>Et(l)&&ao(l)!=="body"),o=null;const i=Ct(e).position==="fixed";let s=i?Ln(e):e;for(;Et(s)&&!to(s);){const l=Ct(s),a=cc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xi(s)&&!a&&Im(e,s))?r=r.filter(c=>c!==s):o=l,s=Ln(s)}return t.set(e,r),r}function J1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ll(t)?[]:Z1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=ef(t,c,o);return u.top=Qe(f.top,u.top),u.right=_n(f.right,u.right),u.bottom=_n(f.bottom,u.bottom),u.left=Qe(f.left,u.left),u},ef(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ew(e){const{width:t,height:n}=Lm(e);return{width:t,height:n}}function tw(e,t,n){const r=Mt(t),o=At(t),i=n==="fixed",s=lr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Mn(0);if(r||!r&&!i)if((ao(t)!=="body"||xi(o))&&(l=al(t)),r){const d=lr(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&(a.x=eu(o));let u=0,c=0;if(o&&!r&&!i){const d=o.getBoundingClientRect();c=d.top+l.scrollTop,u=d.left+l.scrollLeft-eu(o,d)}const f=s.left+l.scrollLeft-a.x-u,h=s.top+l.scrollTop-a.y-c;return{x:f,y:h,width:s.width,height:s.height}}function Yl(e){return Ct(e).position==="static"}function tf(e,t){if(!Mt(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return At(e)===n&&(n=n.ownerDocument.body),n}function zm(e,t){const n=Ye(e);if(ll(e))return n;if(!Mt(e)){let o=Ln(e);for(;o&&!to(o);){if(Et(o)&&!Yl(o))return o;o=Ln(o)}return n}let r=tf(e,t);for(;r&&V1(r)&&Yl(r);)r=tf(r,t);return r&&to(r)&&Yl(r)&&!cc(r)?n:r||H1(e)||n}const nw=async function(e){const t=this.getOffsetParent||zm,n=this.getDimensions,r=await n(e.floating);return{reference:tw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rw(e){return Ct(e).direction==="rtl"}const ow={convertOffsetParentRelativeRectToViewportRelativeRect:K1,getDocumentElement:At,getClippingRect:J1,getOffsetParent:zm,getElementRects:nw,getClientRects:G1,getDimensions:ew,getScale:zr,isElement:Et,isRTL:rw};function iw(e,t){let n=null,r;const o=At(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const d=Wi(c),S=Wi(o.clientWidth-(u+f)),v=Wi(o.clientHeight-(c+h)),w=Wi(u),p={rootMargin:-d+"px "+-S+"px "+-v+"px "+-w+"px",threshold:Qe(0,_n(1,a))||1};let g=!0;function E(C){const k=C[0].intersectionRatio;if(k!==a){if(!g)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(E,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(e)}return s(!0),i}function sw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=fc(e),c=o||i?[...u?ii(u):[],...ii(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&l?iw(u,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=d)==null||g.observe(t)})),n()}),u&&!a&&d.observe(u),d.observe(t));let S,v=a?lr(e):null;a&&w();function w(){const m=lr(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,S=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(m=d)==null||m.disconnect(),d=null,a&&cancelAnimationFrame(S)}}const lw=F1,aw=$1,uw=D1,cw=U1,dw=I1,nf=L1,fw=B1,pw=(e,t,n)=>{const r=new Map,o={platform:ow,...n},i={...o.platform,_c:r};return A1(e,t,{...o,platform:i})};var ls=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Is(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(!Is(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Is(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Fm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rf(e,t){const n=Fm(e);return Math.round(t*n)/n}function Xl(e){const t=x.useRef(e);return ls(()=>{t.current=e}),t}function hw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=x.useState(r);Is(h,r)||d(r);const[S,v]=x.useState(null),[w,m]=x.useState(null),p=x.useCallback(N=>{N!==k.current&&(k.current=N,v(N))},[]),g=x.useCallback(N=>{N!==b.current&&(b.current=N,m(N))},[]),E=i||S,C=s||w,k=x.useRef(null),b=x.useRef(null),R=x.useRef(c),M=a!=null,_=Xl(a),F=Xl(o),I=Xl(u),Q=x.useCallback(()=>{if(!k.current||!b.current)return;const N={placement:t,strategy:n,middleware:h};F.current&&(N.platform=F.current),pw(k.current,b.current,N).then(T=>{const L={...T,isPositioned:I.current!==!1};A.current&&!Is(R.current,L)&&(R.current=L,vi.flushSync(()=>{f(L)}))})},[h,t,n,F,I]);ls(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const A=x.useRef(!1);ls(()=>(A.current=!0,()=>{A.current=!1}),[]),ls(()=>{if(E&&(k.current=E),C&&(b.current=C),E&&C){if(_.current)return _.current(E,C,Q);Q()}},[E,C,Q,_,M]);const X=x.useMemo(()=>({reference:k,floating:b,setReference:p,setFloating:g}),[p,g]),$=x.useMemo(()=>({reference:E,floating:C}),[E,C]),H=x.useMemo(()=>{const N={position:n,left:0,top:0};if(!$.floating)return N;const T=rf($.floating,c.x),L=rf($.floating,c.y);return l?{...N,transform:"translate("+T+"px, "+L+"px)",...Fm($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:L}},[n,l,$.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:Q,refs:X,elements:$,floatingStyles:H}),[c,Q,X,$,H])}const mw=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?nf({element:r.current,padding:o}).fn(n):{}:r?nf({element:r,padding:o}).fn(n):{}}}},gw=(e,t)=>({...lw(e),options:[e,t]}),vw=(e,t)=>({...aw(e),options:[e,t]}),yw=(e,t)=>({...fw(e),options:[e,t]}),xw=(e,t)=>({...uw(e),options:[e,t]}),ww=(e,t)=>({...cw(e),options:[e,t]}),Sw=(e,t)=>({...dw(e),options:[e,t]}),Ew=(e,t)=>({...mw(e),options:[e,t]});var Cw="Arrow",$m=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return y.jsx(He.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});$m.displayName=Cw;var kw=$m;function bw(e){const[t,n]=x.useState(void 0);return On(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Bm="Popper",[Um,Vm]=rl(Bm),[zE,Hm]=Um(Bm),Wm="PopperAnchor",Qm=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Hm(Wm,n),s=x.useRef(null),l=St(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:y.jsx(He.div,{...o,ref:l})});Qm.displayName=Wm;var pc="PopperContent",[Pw,Nw]=Um(pc),Km=x.forwardRef((e,t)=>{var J,fr,Xt,$n,qt,pr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:S,...v}=e,w=Hm(pc,n),[m,p]=x.useState(null),g=St(t,Zt=>p(Zt)),[E,C]=x.useState(null),k=bw(E),b=(k==null?void 0:k.width)??0,R=(k==null?void 0:k.height)??0,M=r+(i!=="center"?"-"+i:""),_=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},F=Array.isArray(u)?u:[u],I=F.length>0,Q={padding:_,boundary:F.filter(Rw),altBoundary:I},{refs:A,floatingStyles:X,placement:$,isPositioned:H,middlewareData:N}=hw({strategy:"fixed",placement:M,whileElementsMounted:(...Zt)=>sw(...Zt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[gw({mainAxis:o+R,alignmentAxis:s}),a&&vw({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?yw():void 0,...Q}),a&&xw({...Q}),ww({...Q,apply:({elements:Zt,rects:Si,availableWidth:hl,availableHeight:Ei})=>{const{width:ml,height:fo}=Si.reference,hr=Zt.floating.style;hr.setProperty("--radix-popper-available-width",`${hl}px`),hr.setProperty("--radix-popper-available-height",`${Ei}px`),hr.setProperty("--radix-popper-anchor-width",`${ml}px`),hr.setProperty("--radix-popper-anchor-height",`${fo}px`)}}),E&&Ew({element:E,padding:l}),jw({arrowWidth:b,arrowHeight:R}),h&&Sw({strategy:"referenceHidden",...Q})]}),[T,L]=Xm($),V=jn(S);On(()=>{H&&(V==null||V())},[H,V]);const z=(J=N.arrow)==null?void 0:J.x,K=(fr=N.arrow)==null?void 0:fr.y,Y=((Xt=N.arrow)==null?void 0:Xt.centerOffset)!==0,[he,be]=x.useState();return On(()=>{m&&be(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:H?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[($n=N.transformOrigin)==null?void 0:$n.x,(qt=N.transformOrigin)==null?void 0:qt.y].join(" "),...((pr=N.hide)==null?void 0:pr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(Pw,{scope:n,placedSide:T,onArrowChange:C,arrowX:z,arrowY:K,shouldHideArrow:Y,children:y.jsx(He.div,{"data-side":T,"data-align":L,...v,ref:g,style:{...v.style,animation:H?void 0:"none"}})})})});Km.displayName=pc;var Gm="PopperArrow",Tw={top:"bottom",right:"left",bottom:"top",left:"right"},Ym=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Nw(Gm,r),s=Tw[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(kw,{...o,ref:n,style:{...o.style,display:"block"}})})});Ym.displayName=Gm;function Rw(e){return e!==null}var jw=e=>({name:"transformOrigin",options:e,fn(t){var w,m,p;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Xm(n),f={start:"0%",center:"50%",end:"100%"}[c],h=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,d=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",v="";return u==="bottom"?(S=s?f:`${h}px`,v=`${-a}px`):u==="top"?(S=s?f:`${h}px`,v=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,v=s?f:`${d}px`):u==="left"&&(S=`${r.floating.width+a}px`,v=s?f:`${d}px`),{data:{x:S,y:v}}}});function Xm(e){const[t,n="center"]=e.split("-");return[t,n]}var Ow=Qm,_w=Km,Mw=Ym,[ul,FE]=rl("Tooltip",[Vm]),hc=Vm(),qm="TooltipProvider",Aw=700,of="tooltip.open",[Lw,Zm]=ul(qm),Jm=e=>{const{__scopeTooltip:t,delayDuration:n=Aw,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),y.jsx(Lw,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Jm.displayName=qm;var eg="Tooltip",[$E,cl]=ul(eg),tu="TooltipTrigger",Dw=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=cl(tu,n),i=Zm(tu,n),s=hc(n),l=x.useRef(null),a=St(t,l,o.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),y.jsx(Ow,{asChild:!0,...s,children:y.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});Dw.displayName=tu;var Iw="TooltipPortal",[BE,zw]=ul(Iw,{forceMount:void 0}),no="TooltipContent",tg=x.forwardRef((e,t)=>{const n=zw(no,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=cl(no,e.__scopeTooltip);return y.jsx(nc,{present:r||s.open,children:s.disableHoverableContent?y.jsx(ng,{side:o,...i,ref:t}):y.jsx(Fw,{side:o,...i,ref:t})})}),Fw=x.forwardRef((e,t)=>{const n=cl(no,e.__scopeTooltip),r=Zm(no,e.__scopeTooltip),o=x.useRef(null),i=St(t,o),[s,l]=x.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,h=x.useCallback(()=>{l(null),f(!1)},[f]),d=x.useCallback((S,v)=>{const w=S.currentTarget,m={x:S.clientX,y:S.clientY},p=Hw(m,w.getBoundingClientRect()),g=Ww(m,p),E=Qw(v.getBoundingClientRect()),C=Gw([...g,...E]);l(C),f(!0)},[f]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(a&&c){const S=w=>d(w,c),v=w=>d(w,a);return a.addEventListener("pointerleave",S),c.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",S),c.removeEventListener("pointerleave",v)}}},[a,c,d,h]),x.useEffect(()=>{if(s){const S=v=>{const w=v.target,m={x:v.clientX,y:v.clientY},p=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),g=!Kw(m,s);p?h():g&&(h(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,c,s,u,h]),y.jsx(ng,{...e,ref:i})}),[$w,Bw]=ul(eg,{isInside:!1}),Uw=p0("TooltipContent"),ng=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=cl(no,n),u=hc(n),{onClose:c}=a;return x.useEffect(()=>(document.addEventListener(of,c),()=>document.removeEventListener(of,c)),[c]),x.useEffect(()=>{if(a.trigger){const f=h=>{const d=h.target;d!=null&&d.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),y.jsx(tc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:y.jsxs(_w,{"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:[y.jsx(Uw,{children:r}),y.jsx($w,{scope:n,isInside:!0,children:y.jsx(z0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});tg.displayName=no;var rg="TooltipArrow",Vw=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hc(n);return Bw(rg,n).isInside?null:y.jsx(Mw,{...o,...r,ref:t})});Vw.displayName=rg;function Hw(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ww(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 Qw(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 Kw(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=h>r&&n<(f-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function Gw(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Yw(t)}function Yw(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 Xw=Jm,og=tg;const qw=Xw,Zw=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(og,{ref:r,sideOffset:t,className:Fn("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}));Zw.displayName=og.displayName;var dl=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(){}},fl=typeof window>"u"||"Deno"in globalThis;function pt(){}function Jw(e,t){return typeof e=="function"?e(t):e}function eS(e){return typeof e=="number"&&e>=0&&e!==1/0}function tS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nu(e,t){return typeof e=="function"?e(t):e}function nS(e,t){return typeof e=="function"?e(t):e}function sf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==mc(s,t.options))return!1}else if(!li(t.queryKey,s))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||i&&!i(t))}function lf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(si(t.options.mutationKey)!==si(i))return!1}else if(!li(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function mc(e,t){return((t==null?void 0:t.queryKeyHashFn)||si)(e)}function si(e){return JSON.stringify(e,(t,n)=>ru(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function li(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>li(e[n],t[n])):!1}function ig(e,t){if(e===t)return e;const n=af(e)&&af(t);if(n||ru(e)&&ru(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function oS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ig(e,t):t}function iS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gc=Symbol();function sg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===gc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Gn,dn,$r,Sf,lS=(Sf=class extends dl{constructor(){super();Z(this,Gn);Z(this,dn);Z(this,$r);U(this,$r,t=>{if(!fl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,dn)||this.setEventListener(P(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,dn))==null||t.call(this),U(this,dn,void 0))}setEventListener(t){var n;U(this,$r,t),(n=P(this,dn))==null||n.call(this),U(this,dn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Gn)!==t&&(U(this,Gn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Gn)=="boolean"?P(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,dn=new WeakMap,$r=new WeakMap,Sf),lg=new lS,Br,fn,Ur,Ef,aS=(Ef=class extends dl{constructor(){super();Z(this,Br,!0);Z(this,fn);Z(this,Ur);U(this,Ur,t=>{if(!fl&&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(){P(this,fn)||this.setEventListener(P(this,Ur))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,fn))==null||t.call(this),U(this,fn,void 0))}setEventListener(t){var n;U(this,Ur,t),(n=P(this,fn))==null||n.call(this),U(this,fn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Br)!==t&&(U(this,Br,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Br)}},Br=new WeakMap,fn=new WeakMap,Ur=new WeakMap,Ef),zs=new aS;function uS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});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 cS(e){return Math.min(1e3*2**e,3e4)}function ag(e){return(e??"online")==="online"?zs.isOnline():!0}var ug=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ql(e){return e instanceof ug}function cg(e){let t=!1,n=0,r=!1,o;const i=uS(),s=v=>{var w;r||(h(new ug(v)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>lg.isFocused()&&(e.networkMode==="always"||zs.isOnline())&&e.canRun(),c=()=>ag(e.networkMode)&&e.canRun(),f=v=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,v),o==null||o(),i.resolve(v))},h=v=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,v),o==null||o(),i.reject(v))},d=()=>new Promise(v=>{var w;o=m=>{(r||u())&&v(m)},(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(m){v=Promise.reject(m)}Promise.resolve(v).then(f).catch(m=>{var k;if(r)return;const p=e.retry??(fl?0:3),g=e.retryDelay??cS,E=typeof g=="function"?g(n,m):g,C=p===!0||typeof p=="number"&&nu()?void 0:d()).then(()=>{t?h(m):S()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?S():d().then(S),i)}}var dS=e=>setTimeout(e,0);function fS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=dS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{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||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ae=fS(),Yn,Cf,dg=(Cf=class{constructor(){Z(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eS(this.gcTime)&&U(this,Yn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fl?1/0:5*60*1e3))}clearGcTimeout(){P(this,Yn)&&(clearTimeout(P(this,Yn)),U(this,Yn,void 0))}},Yn=new WeakMap,Cf),Vr,Xn,et,qn,Re,ci,Zn,ht,Dt,kf,pS=(kf=class extends dg{constructor(t){super();Z(this,ht);Z(this,Vr);Z(this,Xn);Z(this,et);Z(this,qn);Z(this,Re);Z(this,ci);Z(this,Zn);U(this,Zn,!1),U(this,ci,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,qn,t.client),U(this,et,P(this,qn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Vr,mS(this.options)),this.state=t.state??P(this,Vr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,Re))==null?void 0:t.promise}setOptions(t){this.options={...P(this,ci),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,et).remove(this)}setData(t,n){const r=oS(this.state.data,t,this.options);return Pe(this,ht,Dt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Pe(this,ht,Dt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,Re))==null?void 0:r.promise;return(o=P(this,Re))==null||o.cancel(t),n?n.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Vr))}isActive(){return this.observers.some(t=>nS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>nu(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:!tS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,et).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,Re)&&(P(this,Zn)?P(this,Re).cancel({revert:!0}):P(this,Re).cancelRetry()),this.scheduleGc()),P(this,et).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,ht,Dt).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Re))return P(this,Re).continueRetry(),P(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(U(this,Zn,!0),r.signal)})},i=()=>{const h=sg(this.options,n),S=(()=>{const v={client:P(this,qn),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return U(this,Zn,!1),this.options.persister?this.options.persister(h,S,this):h(S)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,qn),state:this.state,fetchFn:i};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),U(this,Xn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Pe(this,ht,Dt).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const a=h=>{var d,S,v,w;ql(h)&&h.silent||Pe(this,ht,Dt).call(this,{type:"error",error:h}),ql(h)||((S=(d=P(this,et).config).onError)==null||S.call(d,h,this),(w=(v=P(this,et).config).onSettled)==null||w.call(v,this.state.data,h,this)),this.scheduleGc()};return U(this,Re,cg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var d,S,v,w;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){a(m);return}(S=(d=P(this,et).config).onSuccess)==null||S.call(d,h,this),(w=(v=P(this,et).config).onSettled)==null||w.call(v,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,d)=>{Pe(this,ht,Dt).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{Pe(this,ht,Dt).call(this,{type:"pause"})},onContinue:()=>{Pe(this,ht,Dt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),P(this,Re).start()}},Vr=new WeakMap,Xn=new WeakMap,et=new WeakMap,qn=new WeakMap,Re=new WeakMap,ci=new WeakMap,Zn=new WeakMap,ht=new WeakSet,Dt=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,...hS(r.data,this.options),fetchMeta:t.meta??null};case"success":return U(this,Xn,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 ql(o)&&o.revert&&P(this,Xn)?{...P(this,Xn),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),Ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,et).notify({query:this,type:"updated",action:t})})},kf);function hS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ag(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mS(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 Nt,bf,gS=(bf=class extends dl{constructor(t={}){super();Z(this,Nt);this.config=t,U(this,Nt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??mc(o,n);let s=this.get(i);return s||(s=new pS({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,Nt).has(t.queryHash)||(P(this,Nt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Nt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Nt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Nt).get(t)}getAll(){return[...P(this,Nt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>sf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>sf(t,r)):n}notify(t){Ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Nt=new WeakMap,bf),Tt,_e,Jn,Rt,sn,Pf,vS=(Pf=class extends dg{constructor(t){super();Z(this,Rt);Z(this,Tt);Z(this,_e);Z(this,Jn);this.mutationId=t.mutationId,U(this,_e,t.mutationCache),U(this,Tt,[]),this.state=t.state||yS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Tt).includes(t)||(P(this,Tt).push(t),this.clearGcTimeout(),P(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,Tt,P(this,Tt).filter(n=>n!==t)),this.scheduleGc(),P(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Tt).length||(this.state.status==="pending"?this.scheduleGc():P(this,_e).remove(this))}continue(){var t;return((t=P(this,Jn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,f,h,d,S,v,w,m,p,g,E,C,k,b,R;const n=()=>{Pe(this,Rt,sn).call(this,{type:"continue"})};U(this,Jn,cg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,_)=>{Pe(this,Rt,sn).call(this,{type:"failed",failureCount:M,error:_})},onPause:()=>{Pe(this,Rt,sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,_e).canRun(this)}));const r=this.state.status==="pending",o=!P(this,Jn).canStart();try{if(r)n();else{Pe(this,Rt,sn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=P(this,_e).config).onMutate)==null?void 0:s.call(i,t,this));const _=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));_!==this.state.context&&Pe(this,Rt,sn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const M=await P(this,Jn).start();return await((c=(u=P(this,_e).config).onSuccess)==null?void 0:c.call(u,M,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,M,t,this.state.context)),await((S=(d=P(this,_e).config).onSettled)==null?void 0:S.call(d,M,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,M,null,t,this.state.context)),Pe(this,Rt,sn).call(this,{type:"success",data:M}),M}catch(M){try{throw await((p=(m=P(this,_e).config).onError)==null?void 0:p.call(m,M,t,this.state.context,this)),await((E=(g=this.options).onError)==null?void 0:E.call(g,M,t,this.state.context)),await((k=(C=P(this,_e).config).onSettled)==null?void 0:k.call(C,void 0,M,this.state.variables,this.state.context,this)),await((R=(b=this.options).onSettled)==null?void 0:R.call(b,void 0,M,t,this.state.context)),M}finally{Pe(this,Rt,sn).call(this,{type:"error",error:M})}}finally{P(this,_e).runNext(this)}}},Tt=new WeakMap,_e=new WeakMap,Jn=new WeakMap,Rt=new WeakSet,sn=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),Ae.batch(()=>{P(this,Tt).forEach(r=>{r.onMutationUpdate(t)}),P(this,_e).notify({mutation:this,type:"updated",action:t})})},Pf);function yS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ft,mt,di,Nf,xS=(Nf=class extends dl{constructor(t={}){super();Z(this,Ft);Z(this,mt);Z(this,di);this.config=t,U(this,Ft,new Set),U(this,mt,new Map),U(this,di,0)}build(t,n,r){const o=new vS({mutationCache:this,mutationId:++ki(this,di)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,Ft).add(t);const n=Qi(t);if(typeof n=="string"){const r=P(this,mt).get(n);r?r.push(t):P(this,mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Ft).delete(t)){const n=Qi(t);if(typeof n=="string"){const r=P(this,mt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qi(t);if(typeof n=="string"){const r=P(this,mt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Qi(t);if(typeof n=="string"){const o=(r=P(this,mt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ae.batch(()=>{P(this,Ft).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Ft).clear(),P(this,mt).clear()})}getAll(){return Array.from(P(this,Ft))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lf(n,r))}findAll(t={}){return this.getAll().filter(n=>lf(t,n))}notify(t){Ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(pt))))}},Ft=new WeakMap,mt=new WeakMap,di=new WeakMap,Nf);function Qi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function cf(e){return{onFetch:(t,n)=>{var c,f,h,d,S;const r=t.options,o=(h=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((d=t.state.data)==null?void 0:d.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const w=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=sg(t.options,t.fetchOptions),p=async(g,E,C)=>{if(v)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);const b=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};return w(F),F})(),R=await m(b),{maxPages:M}=t.options,_=C?sS:iS;return{pages:_(g.pages,R,M),pageParams:_(g.pageParams,E,M)}};if(o&&i.length){const g=o==="backward",E=g?wS:df,C={pages:i,pageParams:s},k=E(r,C);l=await p(C,k,g)}else{const g=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:df(r,l);if(a>0&&E==null)break;l=await p(l,E),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 df(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 wS(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 de,pn,hn,Hr,Wr,mn,Qr,Kr,Tf,SS=(Tf=class{constructor(e={}){Z(this,de);Z(this,pn);Z(this,hn);Z(this,Hr);Z(this,Wr);Z(this,mn);Z(this,Qr);Z(this,Kr);U(this,de,e.queryCache||new gS),U(this,pn,e.mutationCache||new xS),U(this,hn,e.defaultOptions||{}),U(this,Hr,new Map),U(this,Wr,new Map),U(this,mn,0)}mount(){ki(this,mn)._++,P(this,mn)===1&&(U(this,Qr,lg.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),U(this,Kr,zs.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onOnline())})))}unmount(){var e,t;ki(this,mn)._--,P(this,mn)===0&&((e=P(this,Qr))==null||e.call(this),U(this,Qr,void 0),(t=P(this,Kr))==null||t.call(this),U(this,Kr,void 0))}isFetching(e){return P(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,pn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(nu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,de).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=P(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=Jw(t,i);if(s!==void 0)return P(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ae.batch(()=>P(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,de);Ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de);return Ae.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ae.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(pt).catch(pt)}invalidateQueries(e,t={}){return Ae.batch(()=>(P(this,de).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=Ae.batch(()=>P(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(pt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,de).build(this,t);return n.isStaleByTime(nu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pt).catch(pt)}fetchInfiniteQuery(e){return e.behavior=cf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pt).catch(pt)}ensureInfiniteQueryData(e){return e.behavior=cf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zs.isOnline()?P(this,pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,de)}getMutationCache(){return P(this,pn)}getDefaultOptions(){return P(this,hn)}setDefaultOptions(e){U(this,hn,e)}setQueryDefaults(e,t){P(this,Hr).set(si(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Hr).values()],n={};return t.forEach(r=>{li(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Wr).set(si(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Wr).values()],n={};return t.forEach(r=>{li(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,hn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mc(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===gc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,hn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,de).clear(),P(this,pn).clear()}},de=new WeakMap,pn=new WeakMap,hn=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,mn=new WeakMap,Qr=new WeakMap,Kr=new WeakMap,Tf),ES=x.createContext(void 0),CS=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(ES.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 ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function fg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bS(){return Math.random().toString(36).substr(2,8)}function pf(e,t){return{usr:e.state,key:e.key,idx:t}}function ou(e,t,n,r){return n===void 0&&(n=null),ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uo(t):t,{state:n,key:t&&t.key||r||bS()})}function Fs(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 uo(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 PS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=yn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(ai({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=yn.Pop;let w=c(),m=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:m})}function h(w,m){l=yn.Push;let p=ou(v.location,w,m);u=c()+1;let g=pf(p,u),E=v.createHref(p);try{s.pushState(g,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}i&&a&&a({action:l,location:v.location,delta:1})}function d(w,m){l=yn.Replace;let p=ou(v.location,w,m);u=c();let g=pf(p,u),E=v.createHref(p);s.replaceState(g,"",E),i&&a&&a({action:l,location:v.location,delta:0})}function S(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof w=="string"?w:Fs(w);return p=p.replace(/ $/,"%20"),ge(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let v={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(ff,f),a=w,()=>{o.removeEventListener(ff,f),a=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let m=S(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:d,go(w){return s.go(w)}};return v}var hf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hf||(hf={}));function NS(e,t,n){return n===void 0&&(n="/"),TS(e,t,n,!1)}function TS(e,t,n,r){let o=typeof t=="string"?uo(t):t,i=vc(o.pathname||"/",n);if(i==null)return null;let s=pg(e);RS(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ge(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=Nn([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(ge(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),pg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:DS(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of hg(i.path))o(i,s,a)}),t}function hg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=hg(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function RS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:IS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jS=/^:[\w-]+$/,OS=3,_S=2,MS=1,AS=10,LS=-2,mf=e=>e==="*";function DS(e,t){let n=e.split("/"),r=n.length;return n.some(mf)&&(r+=LS),t&&(r+=_S),n.filter(o=>!mf(o)).reduce((o,i)=>o+(jS.test(i)?OS:i===""?MS:AS),r)}function IS(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 zS(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:h,isOptional:d}=c;if(h==="*"){let v=l[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const S=l[f];return d&&!S?u[h]=void 0:u[h]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function FS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fg(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,(s,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 $S(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fg(!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 vc(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)||"/"}function BS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?uo(e):e;return{pathname:n?n.startsWith("/")?n:US(n,t):t,search:WS(r),hash:QS(o)}}function US(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Zl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function VS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mg(e,t){let n=VS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function gg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=uo(e):(o=ai({},e),ge(!o.pathname||!o.pathname.includes("?"),Zl("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Zl("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Zl("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}l=f>=0?t[f]:"/"}let a=BS(o,l),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Nn=e=>e.join("/").replace(/\/\/+/g,"/"),HS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,QS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function KS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vg=["post","put","patch","delete"];new Set(vg);const GS=["get",...vg];new Set(GS);/** * 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 ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=gg(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Nn([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,i,e])}function wg(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(cr),{matches:o}=x.useContext(dr),{pathname:i}=co(),s=JSON.stringify(mg(o,r.v7_relativeSplatPath));return x.useMemo(()=>gg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function JS(e,t){return eE(e,t)}function eE(e,t,n,r){wi()||ge(!1);let{navigator:o}=x.useContext(cr),{matches:i}=x.useContext(dr),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=co(),c;if(t){var f;let w=typeof t=="string"?uo(t):t;a==="/"||(f=w.pathname)!=null&&f.startsWith(a)||ge(!1),c=w}else c=u;let h=c.pathname||"/",d=h;if(a!=="/"){let w=a.replace(/^\//,"").split("/");d="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=NS(e,{pathname:d}),v=iE(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Nn([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Nn([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&v?x.createElement(pl.Provider,{value:{location:ui({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:yn.Pop}},v):v}function tE(){let e=uE(),t=KS(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const nE=x.createElement(tE,null);class rE extends x.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?x.createElement(dr.Provider,{value:this.props.routeContext},x.createElement(yg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oE(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(yc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(dr.Provider,{value:t},r)}function iE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||ge(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,h)=>{let d,S=!1,v=null,w=null;n&&(d=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||nE,a&&(u<0&&h===0?(S=!0,w=null):u===h&&(S=!0,w=f.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,h+1)),p=()=>{let g;return d?g=v:S?g=w:f.route.Component?g=x.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,x.createElement(oE,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(rE,{location:n.location,revalidation:n.revalidation,component:v,error:d,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var Sg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sg||{}),$s=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}($s||{});function sE(e){let t=x.useContext(yc);return t||ge(!1),t}function lE(e){let t=x.useContext(YS);return t||ge(!1),t}function aE(e){let t=x.useContext(dr);return t||ge(!1),t}function Eg(e){let t=aE(),n=t.matches[t.matches.length-1];return n.route.id||ge(!1),n.route.id}function uE(){var e;let t=x.useContext(yg),n=lE($s.UseRouteError),r=Eg($s.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cE(){let{router:e}=sE(Sg.UseNavigateStable),t=Eg($s.UseNavigateStable),n=x.useRef(!1);return xg(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ui({fromRouteId:t},i)))},[e,t])}function dE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function To(e){ge(!1)}function fE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=yn.Pop,navigator:i,static:s=!1,future:l}=e;wi()&&ge(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:i,static:s,future:ui({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=uo(r));let{pathname:c="/",search:f="",hash:h="",state:d=null,key:S="default"}=r,v=x.useMemo(()=>{let w=vc(c,a);return w==null?null:{location:{pathname:w,search:f,hash:h,state:d,key:S},navigationType:o}},[a,c,f,h,d,S,o]);return v==null?null:x.createElement(cr.Provider,{value:u},x.createElement(pl.Provider,{children:n,value:v}))}function pE(e){let{children:t,location:n}=e;return JS(iu(t),n)}new Promise(()=>{});function iu(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,iu(r.props.children,i));return}r.type!==To&&ge(!1),!r.props.index||!r.props.children||ge(!1);let s={id:r.props.id||i.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&&(s.children=iu(r.props.children,i)),n.push(s)}),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 */function su(){return su=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function mE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gE(e,t){return e.button===0&&(!t||t==="_self")&&!mE(e)}const vE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yE="6";try{window.__reactRouterVersion=yE}catch{}const xE="startTransition",vf=$f[xE];function wE(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=kS({window:o,v5Compat:!0}));let s=i.current,[l,a]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&vf?vf(()=>a(f)):a(f)},[a,u]);return x.useLayoutEffect(()=>s.listen(c),[s,c]),x.useEffect(()=>dE(r),[r]),x.createElement(fE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const SE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:c,viewTransition:f}=t,h=hE(t,vE),{basename:d}=x.useContext(cr),S,v=!1;if(typeof u=="string"&&EE.test(u)&&(S=u,SE))try{let g=new URL(window.location.href),E=u.startsWith("//")?new URL(g.protocol+u):new URL(u),C=vc(E.pathname,d);E.origin===g.origin&&C!=null?u=C+E.search+E.hash:v=!0}catch{}let w=XS(u,{relative:o}),m=CE(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:o,viewTransition:f});function p(g){r&&r(g),g.defaultPrevented||m(g)}return x.createElement("a",su({},h,{href:S||w,onClick:v||i?r:p,ref:n,target:a}))});var yf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yf||(yf={}));var xf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xf||(xf={}));function CE(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,a=qS(),u=co(),c=wg(e,{relative:s});return x.useCallback(f=>{if(gE(f,n)){f.preventDefault();let h=r!==void 0?r:Fs(u)===Fs(c);a(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[u,a,c,r,o,n,e,i,s,l])}const kE=xm("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"}}),Fr=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?d0:"button";return y.jsx(s,{className:Fn(kE({variant:t,size:n,className:e})),ref:i,...o})});Fr.displayName="Button";const wf=[{label:"Home",path:"/"},{label:"Schedule & Themes",path:"/schedule"},{label:"Registration",path:"/registration"}],xc=({children:e})=>{const t=co(),[n,r]=x.useState(!1);return y.jsxs("div",{className:"min-h-screen flex flex-col",children:[y.jsxs("header",{className:"sticky top-0 z-50 border-b bg-background/90 backdrop-blur-md",children:[y.jsxs("div",{className:"container mx-auto flex items-center justify-between px-4 py-3",children:[y.jsx(Fo,{to:"/",className:"flex items-center gap-2",children:y.jsx("span",{className:"text-2xl font-black gradient-text",style:{fontFamily:"var(--font-heading)"},children:"BODHI 2026"})}),y.jsx("nav",{className:"hidden md:flex gap-1",children:wf.map(o=>y.jsx(Fo,{to:o.path,className:`px-4 py-2 rounded-lg text-sm font-semibold transition-colors ${t.pathname===o.path?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted"}`,children:o.label},o.path))}),y.jsx("button",{className:"md:hidden p-2 rounded-lg hover:bg-muted",onClick:()=>r(!n),children:n?y.jsx(Sm,{size:22}):y.jsx(cx,{size:22})})]}),n&&y.jsx("nav",{className:"md:hidden border-t bg-background px-4 py-3 flex flex-col gap-1",children:wf.map(o=>y.jsx(Fo,{to:o.path,onClick:()=>r(!1),className:`px-4 py-2 rounded-lg text-sm font-semibold transition-colors ${t.pathname===o.path?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted"}`,children:o.label},o.path))})]}),y.jsx("main",{className:"flex-1",children:e}),y.jsx("footer",{className:"border-t bg-card py-8",children:y.jsxs("div",{className:"container mx-auto px-4 text-center space-y-2",children:[y.jsx("p",{className:"font-bold text-lg",style:{fontFamily:"var(--font-heading)"},children:"Kumbalathu Sankupillai Memorial Devaswom Board College"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"Sasthamcotta, Kollam, Kerala · Affiliated to the University of Kerala · NAAC A+ Grade"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"Organized by IQAC · In association with KSHEC & KMML"}),y.jsx("p",{className:"text-xs text-muted-foreground pt-2",children:"© 2026 BODHI — Two Day Multidisciplinary National Seminar"})]})})]})},bE="/assets/hero-banner-C4WP08Vo.jpg",PE=()=>y.jsxs(xc,{children:[y.jsxs("section",{className:"relative overflow-hidden",children:[y.jsxs("div",{className:"absolute inset-0",children:[y.jsx("img",{src:bE,alt:"KSMDB College Campus",className:"w-full h-full object-cover"}),y.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-foreground/80 via-foreground/60 to-foreground/30"})]}),y.jsx("div",{className:"relative container mx-auto px-4 py-24 md:py-36",children:y.jsxs("div",{className:"max-w-2xl space-y-6",children:[y.jsx("p",{className:"text-accent font-semibold tracking-widest uppercase text-sm",children:"Two Day Multidisciplinary National Seminar (Hybrid Mode)"}),y.jsxs("h1",{className:"text-5xl md:text-7xl font-black text-primary-foreground leading-[1.05]",style:{fontFamily:"var(--font-heading)"},children:["Bodhi ",y.jsx("span",{className:"text-accent",children:"2026"})]}),y.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/90 font-light leading-relaxed",style:{fontFamily:"var(--font-heading)"},children:"Future Fusion: Sustainability Across Disciplines"}),y.jsxs("div",{className:"flex flex-wrap gap-4 text-primary-foreground/80 text-sm",children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx(ri,{size:16})," March 17–18, 2026"]}),y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx(Ms,{size:16})," KSMDB College, Sasthamcotta"]})]}),y.jsxs("div",{className:"flex gap-3 pt-2",children:[y.jsx(Fr,{asChild:!0,size:"lg",className:"font-semibold",children:y.jsx(Fo,{to:"/registration",children:"Register Now"})}),y.jsx(Fr,{asChild:!0,variant:"outline",size:"lg",className:"font-semibold bg-primary-foreground/10 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/20",children:y.jsx(Fo,{to:"/schedule",children:"View Schedule"})})]})]})})]}),y.jsx("section",{className:"container mx-auto px-4 py-16 md:py-24",children:y.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-6",children:[y.jsxs("h2",{className:"section-heading",children:["About ",y.jsx("span",{className:"gradient-text",children:"BODHI"})]}),y.jsx("p",{className:"section-subheading mx-auto leading-relaxed",children:"The present global scenario underscores an urgent need for sustainability-focused development and interdisciplinary research. Challenges related to climate change, environmental degradation, social inequality, economic resilience, and technological transitions require integrated solutions across disciplines."}),y.jsxs("p",{className:"text-muted-foreground leading-relaxed max-w-2xl mx-auto",children:["KSMDB College is organizing BODHI 2026 with the theme ",y.jsx("strong",{className:"text-foreground",children:'"Future Fusion: Sustainability Across Disciplines"'}),". The seminar creates a common academic platform where perspectives from Languages, Sciences, Social Sciences, Commerce, and Applied Sciences converge to address sustainability challenges."]})]})}),y.jsx("section",{className:"bg-card border-y",children:y.jsx("div",{className:"container mx-auto px-4 py-12 grid grid-cols-2 md:grid-cols-4 gap-6 text-center",children:[{icon:sx,label:"Disciplines",value:"5"},{icon:dx,label:"Invited Lectures",value:"5+"},{icon:ri,label:"Days",value:"2"},{icon:Ms,label:"Venue",value:"KSMDB"}].map(e=>y.jsxs("div",{className:"space-y-2",children:[y.jsx(e.icon,{className:"mx-auto text-primary",size:28}),y.jsx("p",{className:"text-2xl font-bold",style:{fontFamily:"var(--font-heading)"},children:e.value}),y.jsx("p",{className:"text-sm text-muted-foreground",children:e.label})]},e.label))})}),y.jsx("section",{className:"container mx-auto px-4 py-16 md:py-24",children:y.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-6",children:[y.jsx("h2",{className:"section-heading",children:"About the College"}),y.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"KSMDB College, Sasthamcotta, established in 1964 in Kunnathur Taluk, is a distinguished centre of higher education in South Kerala. Managed by the Travancore Devaswom Board and affiliated to the University of Kerala, the institution offers 17 Undergraduate, 7 Postgraduate, 2 Ph.D., and 2 Diploma programmes, serving approximately 1,700 students across diverse disciplines."}),y.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Re-accredited with an ",y.jsx("strong",{className:"text-foreground",children:"A+ Grade by NAAC"}),", the college is committed to academic distinction, research-oriented learning, and social responsibility."]})]})}),y.jsx("section",{className:"bg-card border-y",children:y.jsxs("div",{className:"container mx-auto px-4 py-12 text-center space-y-6",children:[y.jsx("h2",{className:"section-heading",children:"Patrons"}),y.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-3xl mx-auto",children:[{name:"Sri. K. Jayakumar IAS",role:"Hon. President, Travancore Devaswom Board"},{name:"Adv. P.D. Santhosh Kumar",role:"Hon. Member, Travancore Devaswom Board"},{name:"Sri K. Raju (Ex. MLA)",role:"Hon. Member, Travancore Devaswom Board"}].map(e=>y.jsxs("div",{className:"warm-card text-center",children:[y.jsx("p",{className:"font-bold",children:e.name}),y.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]},e.name))}),y.jsxs("div",{className:"pt-4 space-y-1",children:[y.jsxs("p",{className:"text-sm text-muted-foreground",children:["Principal & Professor: ",y.jsx("strong",{className:"text-foreground",children:"Prof. (Dr). K.S. Anil Kumar"})]}),y.jsxs("p",{className:"text-sm text-muted-foreground",children:["Convenor, BODHI 2026: ",y.jsx("strong",{className:"text-foreground",children:"Dr. Meera A.P."})]})]})]})})]}),NE=[{discipline:"Science",topics:["Sustainable Science","Sustainability & Climate Solutions","Carbon Capture & Utilization","Smart Ecology: A Resilient Biodiversity"]},{discipline:"Social Science",topics:["Localisation of SDGs — The Kerala Experience","Reimagining Sustainable Futures: Social Justice & Equity","Sustainability & Social Metamorphosis: Historical Perspectives","Political Economy of Sustainability: Power, Resources & Social Change"]},{discipline:"Applied Science",topics:["AI-Driven Vertical Farming & Smart Agriculture","Digital & AI-Driven Sustainability","Localized Empowerment Models for Socio-Ecological Sustainability","Eco-preneurs of Tomorrow"]},{discipline:"Language",topics:["The Concept of Sustainability in Literature","From Growth to Green: Reimagining Sustainable Development","Beyond Development: Towards a Sustainable Civilization","Indigenous Knowledge and Sustainability","Indian Knowledge Systems for a Sustainable Future"]},{discipline:"Commerce",topics:["Environmental Sustainability and Creativity","ESG for Business and Industry"]}],TE=[{time:"09:30 AM",event:"Registration"},{time:"10:00 – 11:30",event:"Inaugural Session",detail:"Chief Guest: Prof. (Dr). P.T. Baburaj — Commissioner, State Commissionerate For Persons With Disabilities"},{time:"11:45 – 12:45",event:"Invited Lecture 1 (Social Science)",detail:"Dr. Manju S. Nair — Professor, Economics & Dean, Faculty of Social Sciences, University of Kerala"}],RE=[{time:"10:00 – 11:00",event:"Invited Lecture 3 (Commerce)",detail:"Prof. (Dr.) Rajesh T. — Dean, Faculty of Commerce, University of Kerala"},{time:"10:00 – 11:00",event:"Invited Lecture 5 (Science) — Chemistry Seminar Hall",detail:"Dr. Vinod P. — Associate Professor, NSS College, Pandalam. Topic: The Invisible Intruders of the Body"},{time:"11:30 – 1:00 PM",event:"Technical Session (Paper Presentations)"},{time:"2:00 PM",event:"Valedictory Session & Best Paper Awards",detail:"Chief Guest: Shri. Pradeep Kumar P. — Managing Director, KMML"}],jE=()=>y.jsx(xc,{children:y.jsxs("section",{className:"container mx-auto px-4 py-16 md:py-24 space-y-16",children:[y.jsxs("div",{className:"text-center space-y-4",children:[y.jsxs("h1",{className:"section-heading",children:["Schedule & ",y.jsx("span",{className:"gradient-text",children:"Themes"})]}),y.jsx("p",{className:"section-subheading mx-auto",children:"Two days of invited lectures, paper presentations, and interdisciplinary discourse."})]}),y.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[y.jsxs("div",{className:"warm-card space-y-4 hover:translate-y-0",children:[y.jsxs("div",{className:"flex items-center gap-2 text-primary font-bold",children:[y.jsx(ri,{size:20}),y.jsx("span",{className:"text-xl",style:{fontFamily:"var(--font-heading)"},children:"Day 1 — March 17, 2026"})]}),y.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1.5",children:[y.jsx(Ms,{size:14})," General Seminar Hall"]}),y.jsx("div",{className:"space-y-3",children:TE.map((e,t)=>y.jsxs("div",{className:"border-l-2 border-primary/30 pl-4 py-1",children:[y.jsxs("p",{className:"text-xs text-primary font-semibold flex items-center gap-1",children:[y.jsx(Vd,{size:12})," ",e.time]}),y.jsx("p",{className:"font-semibold text-sm",children:e.event}),e.detail&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:e.detail})]},t))})]}),y.jsxs("div",{className:"warm-card space-y-4 hover:translate-y-0",children:[y.jsxs("div",{className:"flex items-center gap-2 text-primary font-bold",children:[y.jsx(ri,{size:20}),y.jsx("span",{className:"text-xl",style:{fontFamily:"var(--font-heading)"},children:"Day 2 — March 18, 2026"})]}),y.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1.5",children:[y.jsx(Ms,{size:14})," General Seminar Hall & Chemistry Seminar Hall"]}),y.jsx("div",{className:"space-y-3",children:RE.map((e,t)=>y.jsxs("div",{className:"border-l-2 border-primary/30 pl-4 py-1",children:[y.jsxs("p",{className:"text-xs text-primary font-semibold flex items-center gap-1",children:[y.jsx(Vd,{size:12})," ",e.time]}),y.jsx("p",{className:"font-semibold text-sm",children:e.event}),e.detail&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:e.detail})]},t))})]})]}),y.jsxs("div",{className:"space-y-8",children:[y.jsx("h2",{className:"section-heading text-center",children:"Thrust Areas"}),y.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:NE.map(e=>y.jsxs("div",{className:"warm-card space-y-3",children:[y.jsx("h3",{className:"text-lg font-bold gradient-text",style:{fontFamily:"var(--font-heading)"},children:e.discipline}),y.jsx("ul",{className:"space-y-1.5",children:e.topics.map(t=>y.jsxs("li",{className:"text-sm text-muted-foreground flex gap-2",children:[y.jsx("span",{className:"text-primary mt-1",children:"•"}),y.jsx("span",{children:t})]},t))})]},e.discipline))})]})]})}),OE=[{label:"Last date for Registration & Abstract Submission",date:"12 March 2026"},{label:"Notification of Acceptance",date:"13 March 2026"},{label:"Last Date for Full Paper Submission",date:"16 March 2026"},{label:"Seminar Dates",date:"17–18 March 2026"}],_E=()=>y.jsx(xc,{children:y.jsxs("section",{className:"container mx-auto px-4 py-16 md:py-24 space-y-16",children:[y.jsxs("div",{className:"text-center space-y-4",children:[y.jsxs("h1",{className:"section-heading",children:["Registration & ",y.jsx("span",{className:"gradient-text",children:"Submission"})]}),y.jsx("p",{className:"section-subheading mx-auto",children:"Join scholars, faculty, and students from across disciplines."})]}),y.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[y.jsxs("div",{className:"warm-card space-y-4 hover:translate-y-0",children:[y.jsxs("div",{className:"flex items-center gap-2 text-primary font-bold",children:[y.jsx(lx,{size:20}),y.jsx("h2",{className:"text-xl",style:{fontFamily:"var(--font-heading)"},children:"Registration Fees"})]}),y.jsxs("div",{className:"space-y-3",children:[y.jsxs("div",{className:"flex justify-between items-center p-3 rounded-lg bg-muted",children:[y.jsx("span",{className:"font-medium",children:"Students"}),y.jsx("span",{className:"text-lg font-bold gradient-text",children:"₹ 100/-"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 rounded-lg bg-muted",children:[y.jsx("span",{className:"font-medium",children:"Academicians"}),y.jsx("span",{className:"text-lg font-bold gradient-text",children:"₹ 500/-"})]})]}),y.jsxs("div",{className:"border-t pt-4 space-y-2",children:[y.jsx("h3",{className:"font-semibold text-sm",children:"Payment Details"}),y.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[y.jsxs("p",{children:["Account Holder: ",y.jsx("strong",{className:"text-foreground",children:"Principal, KSMDB College"})]}),y.jsxs("p",{children:["Bank: ",y.jsx("strong",{className:"text-foreground",children:"CANARA BANK"})]}),y.jsxs("p",{children:["A/c No: ",y.jsx("strong",{className:"text-foreground",children:"3537101007683"})]}),y.jsxs("p",{children:["IFSC: ",y.jsx("strong",{className:"text-foreground",children:"CNRB0003537"})]})]})]}),y.jsx(Fr,{asChild:!0,className:"w-full font-semibold",size:"lg",children:y.jsxs("a",{href:"https://forms.gle/23TU57nzEi19H66x6",target:"_blank",rel:"noopener noreferrer",children:["Register Now ",y.jsx(Hd,{size:16,className:"ml-2"})]})})]}),y.jsxs("div",{className:"warm-card space-y-4 hover:translate-y-0",children:[y.jsxs("div",{className:"flex items-center gap-2 text-primary font-bold",children:[y.jsx(ri,{size:20}),y.jsx("h2",{className:"text-xl",style:{fontFamily:"var(--font-heading)"},children:"Important Dates"})]}),y.jsx("div",{className:"space-y-3",children:OE.map(e=>y.jsxs("div",{className:"flex justify-between items-start gap-4 p-3 rounded-lg bg-muted",children:[y.jsx("span",{className:"text-sm text-muted-foreground",children:e.label}),y.jsx("span",{className:"text-sm font-bold whitespace-nowrap",children:e.date})]},e.label))})]})]}),y.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:y.jsxs("div",{className:"warm-card space-y-4 hover:translate-y-0",children:[y.jsxs("div",{className:"flex items-center gap-2 text-primary font-bold",children:[y.jsx(ax,{size:20}),y.jsx("h2",{className:"text-xl",style:{fontFamily:"var(--font-heading)"},children:"Guidelines for Abstract Submission"})]}),y.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[y.jsxs("p",{children:["The abstract should not exceed ",y.jsx("strong",{className:"text-foreground",children:"250 words"}),". It should include the Title, Author(s) Name(s), Institutional Affiliation, Corresponding Author's Email, and 3–5 Keywords."]}),y.jsx("p",{children:"It must clearly highlight the Research Objectives, Methodology, Major Findings / Expected Outcomes."}),y.jsx("h3",{className:"font-semibold text-foreground pt-2",children:"Submission Format"}),y.jsxs("ul",{className:"space-y-1 list-disc list-inside",children:[y.jsx("li",{children:"MS Word (A4), Times New Roman font"}),y.jsx("li",{children:"Title: 14pt (Bold), Author details: 12pt, Abstract text: 12pt, single line spacing"}),y.jsxs("li",{children:["All abstracts and full papers may be mailed to ",y.jsx("a",{href:"mailto:bodhi2026@ksmdbc.ac.in",className:"text-primary font-semibold hover:underline",children:"bodhi2026@ksmdbc.ac.in"})]})]}),y.jsx("h3",{className:"font-semibold text-foreground pt-2",children:"Publication"}),y.jsxs("ul",{className:"space-y-1 list-disc list-inside",children:[y.jsx("li",{children:"All accepted papers will be published in the seminar proceedings with ISBN and DOI."}),y.jsx("li",{children:"Selected full-length papers will be published in peer-reviewed journals with ISSN, subject to payment of publication fee."})]})]}),y.jsxs("div",{className:"flex flex-wrap gap-3 pt-2",children:[y.jsx(Fr,{asChild:!0,variant:"outline",className:"font-semibold",children:y.jsxs("a",{href:"mailto:bodhi2026@ksmdbc.ac.in",children:[y.jsx(ux,{size:16,className:"mr-2"})," Email Submission"]})}),y.jsx(Fr,{asChild:!0,variant:"outline",className:"font-semibold",children:y.jsxs("a",{href:"https://www.ksmdbc.ac.in",target:"_blank",rel:"noopener noreferrer",children:[y.jsx(Hd,{size:16,className:"mr-2"})," College Website"]})})]})]})})]})}),ME=()=>{const e=co();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:y.jsxs("div",{className:"text-center",children:[y.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),y.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),y.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},AE=new SS,LE=()=>y.jsx(CS,{client:AE,children:y.jsxs(qw,{children:[y.jsx(Kx,{}),y.jsx(b1,{}),y.jsx(wE,{children:y.jsxs(pE,{children:[y.jsx(To,{path:"/",element:y.jsx(PE,{})}),y.jsx(To,{path:"/schedule",element:y.jsx(jE,{})}),y.jsx(To,{path:"/registration",element:y.jsx(_E,{})}),y.jsx(To,{path:"*",element:y.jsx(ME,{})})]})})]})});Hh(document.getElementById("root")).render(y.jsx(LE,{}));