var Pd=e=>{throw TypeError(e)};var il=(e,t,n)=>t.has(e)||Pd("Cannot "+n);var T=(e,t,n)=>(il(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Pd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(il(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(il(e,t,"access private method"),n);var Zs=(e,t,n,r)=>({set _(o){q(e,t,o,n)},get _(){return T(e,t,r)}});function _0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jp={exports:{}},Ca={},em={exports:{}},Z={};/** * @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 Is=Symbol.for("react.element"),L0=Symbol.for("react.portal"),D0=Symbol.for("react.fragment"),I0=Symbol.for("react.strict_mode"),z0=Symbol.for("react.profiler"),F0=Symbol.for("react.provider"),$0=Symbol.for("react.context"),B0=Symbol.for("react.forward_ref"),U0=Symbol.for("react.suspense"),V0=Symbol.for("react.memo"),W0=Symbol.for("react.lazy"),Td=Symbol.iterator;function H0(e){return e===null||typeof e!="object"?null:(e=Td&&e[Td]||e["@@iterator"],typeof e=="function"?e:null)}var tm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nm=Object.assign,rm={};function To(e,t,n){this.props=e,this.context=t,this.refs=rm,this.updater=n||tm}To.prototype.isReactComponent={};To.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")};To.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function om(){}om.prototype=To.prototype;function ic(e,t,n){this.props=e,this.context=t,this.refs=rm,this.updater=n||tm}var ac=ic.prototype=new om;ac.constructor=ic;nm(ac,To.prototype);ac.isPureReactComponent=!0;var Rd=Array.isArray,sm=Object.prototype.hasOwnProperty,lc={current:null},im={key:!0,ref:!0,__self:!0,__source:!0};function am(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)sm.call(t,r)&&!im.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,$=P[U];if(0>>1;Uo(se,D))xe<$&&0>o(Y,se)?(P[U]=Y,P[xe]=D,U=xe):(P[U]=se,P[Q]=D,U=Q);else if(xe<$&&0>o(Y,D))P[U]=Y,P[xe]=D,U=xe;else break e}}return R}function o(P,R){var D=P.sortIndex-R.sortIndex;return D!==0?D:P.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,c=null,h=3,f=!1,S=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=P)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function E(P){if(g=!1,y(P),!S)if(n(l)!==null)S=!0,B(C);else{var R=n(u);R!==null&&V(E,R.startTime-P)}}function C(P,R){S=!1,g&&(g=!1,p(N),N=-1),f=!0;var D=h;try{for(y(R),c=n(l);c!==null&&(!(c.expirationTime>R)||P&&!I());){var U=c.callback;if(typeof U=="function"){c.callback=null,h=c.priorityLevel;var $=U(c.expirationTime<=R);R=e.unstable_now(),typeof $=="function"?c.callback=$:c===n(l)&&r(l),y(R)}else r(l);c=n(l)}if(c!==null)var G=!0;else{var Q=n(u);Q!==null&&V(E,Q.startTime-R),G=!1}return G}finally{c=null,h=D,f=!1}}var k=!1,b=null,N=-1,j=5,O=-1;function I(){return!(e.unstable_now()-OP||125U?(P.sortIndex=D,t(u,P),n(l)===null&&P===n(u)&&(g?(p(N),N=-1):g=!0,V(E,D-U))):(P.sortIndex=$,t(l,P),S||f||(S=!0,B(C))),P},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(P){var R=h;return function(){var D=h;h=R;try{return P.apply(this,arguments)}finally{h=D}}}})(fm);dm.exports=fm;var ny=dm.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 ry=w,mt=ny;function A(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"),Gl=Object.prototype.hasOwnProperty,oy=/^[: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]*$/,Od={},Ad={};function sy(e){return Gl.call(Ad,e)?!0:Gl.call(Od,e)?!1:oy.test(e)?Ad[e]=!0:(Od[e]=!0,!1)}function iy(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 ay(e,t,n,r){if(t===null||typeof t>"u"||iy(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 Ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ze(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){De[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var dc=/[\-:]([a-z])/g;function fc(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(dc,fc);De[t]=new Ze(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(dc,fc);De[t]=new Ze(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(dc,fc);De[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function pc(e,t,n,r){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ul=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Go(e):""}function ly(e){switch(e.tag){case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Zl(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 Vr:return"Fragment";case Ur:return"Portal";case Yl:return"Profiler";case mc:return"StrictMode";case ql:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hm:return(e.displayName||"Context")+".Consumer";case mm:return(e._context.displayName||"Context")+".Provider";case hc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gc:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function uy(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 Zl(t);case 8:return t===mc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cy(e){var t=vm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){e._valueTracker||(e._valueTracker=cy(e))}function ym(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wi(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 Jl(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _d(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(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 xm(e,t){t=t.checked,t!=null&&pc(e,"checked",t,!1)}function eu(e,t){xm(e,t);var n=nr(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")?tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&tu(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ld(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 tu(e,t,n){(t!=="number"||Wi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yo=Array.isArray;function eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ds(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jo={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},dy=["Webkit","ms","Moz","O"];Object.keys(Jo).forEach(function(e){dy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jo[t]=Jo[e]})});function Cm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jo.hasOwnProperty(e)&&Jo[e]?(""+t).trim():t+"px"}function bm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var fy=ye({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 ou(e,t){if(t){if(fy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function su(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 iu=null;function vc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var au=null,to=null,no=null;function zd(e){if(e=$s(e)){if(typeof au!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Ta(t),au(e.stateNode,e.type,t))}}function km(e){to?no?no.push(e):no=[e]:to=e}function Nm(){if(to){var e=to,t=no;if(no=to=null,zd(e),t)for(e=0;e>>=0,e===0?32:31-(Cy(e)/by|0)|0}var ri=64,oi=4194304;function qo(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 Gi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=qo(a):(s&=i,s!==0&&(r=qo(s)))}else i=n&~o,i!==0?r=qo(i):s!==0&&(r=qo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Ty(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=ts),Kd=" ",Gd=!1;function Qm(e,t){switch(e){case"keyup":return nx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Km(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function ox(e,t){switch(e){case"compositionend":return Km(t);case"keypress":return t.which!==32?null:(Gd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Gd?null:e;default:return null}}function sx(e,t){if(Wr)return e==="compositionend"||!kc&&Qm(e,t)?(e=Wm(),Ti=Ec=Hn=null,Wr=!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=Zd(n)}}function Xm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zm(){for(var e=window,t=Wi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wi(e.document)}return t}function Nc(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 mx(e){var t=Zm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xm(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Jd(n,s);var i=Jd(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hr=null,pu=null,rs=null,mu=!1;function ef(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mu||Hr==null||Hr!==Wi(r)||(r=Hr,"selectionStart"in r&&Nc(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}),rs&&vs(rs,r)||(rs=r,r=Xi(pu,"onSelect"),0Gr||(e.current=wu[Gr],wu[Gr]=null,Gr--)}function ae(e,t){Gr++,wu[Gr]=e.current,e.current=t}var rr={},Ue=ar(rr),rt=ar(!1),Cr=rr;function wo(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ot(e){return e=e.childContextTypes,e!=null}function Ji(){de(rt),de(Ue)}function lf(e,t,n){if(Ue.current!==rr)throw Error(A(168));ae(Ue,t),ae(rt,n)}function ah(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(A(108,uy(e)||"Unknown",o));return ye({},n,r)}function ea(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Cr=Ue.current,ae(Ue,e),ae(rt,rt.current),!0}function uf(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=ah(e,t,Cr),r.__reactInternalMemoizedMergedChildContext=e,de(rt),de(Ue),ae(Ue,e)):de(rt),ae(rt,n)}var fn=null,Ra=!1,bl=!1;function lh(e){fn===null?fn=[e]:fn.push(e)}function Nx(e){Ra=!0,lh(e)}function lr(){if(!bl&&fn!==null){bl=!0;var e=0,t=oe;try{var n=fn;for(oe=1;e>=i,o-=i,mn=1<<32-Ft(t)+o|n<N?(j=b,b=null):j=b.sibling;var O=h(p,b,y[N],E);if(O===null){b===null&&(b=j);break}e&&b&&O.alternate===null&&t(p,b),m=s(O,m,N),k===null?C=O:k.sibling=O,k=O,b=j}if(N===y.length)return n(p,b),fe&&cr(p,N),C;if(b===null){for(;NN?(j=b,b=null):j=b.sibling;var I=h(p,b,O.value,E);if(I===null){b===null&&(b=j);break}e&&b&&I.alternate===null&&t(p,b),m=s(I,m,N),k===null?C=I:k.sibling=I,k=I,b=j}if(O.done)return n(p,b),fe&&cr(p,N),C;if(b===null){for(;!O.done;N++,O=y.next())O=c(p,O.value,E),O!==null&&(m=s(O,m,N),k===null?C=O:k.sibling=O,k=O);return fe&&cr(p,N),C}for(b=r(p,b);!O.done;N++,O=y.next())O=f(b,p,N,O.value,E),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?N:O.key),m=s(O,m,N),k===null?C=O:k.sibling=O,k=O);return e&&b.forEach(function(L){return t(p,L)}),fe&&cr(p,N),C}function x(p,m,y,E){if(typeof y=="object"&&y!==null&&y.type===Vr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ei:e:{for(var C=y.key,k=m;k!==null;){if(k.key===C){if(C=y.type,C===Vr){if(k.tag===7){n(p,k.sibling),m=o(k,y.props.children),m.return=p,p=m;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Dn&&ff(C)===k.type){n(p,k.sibling),m=o(k,y.props),m.ref=Vo(p,k,y),m.return=p,p=m;break e}n(p,k);break}else t(p,k);k=k.sibling}y.type===Vr?(m=Er(y.props.children,p.mode,E,y.key),m.return=p,p=m):(E=Di(y.type,y.key,y.props,null,p.mode,E),E.ref=Vo(p,m,y),E.return=p,p=E)}return i(p);case Ur:e:{for(k=y.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=o(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Al(y,p.mode,E),m.return=p,p=m}return i(p);case Dn:return k=y._init,x(p,m,k(y._payload),E)}if(Yo(y))return S(p,m,y,E);if(zo(y))return g(p,m,y,E);di(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=o(m,y),m.return=p,p=m):(n(p,m),m=Ol(y,p.mode,E),m.return=p,p=m),i(p)):n(p,m)}return x}var Eo=fh(!0),ph=fh(!1),ra=ar(null),oa=null,Xr=null,jc=null;function Oc(){jc=Xr=oa=null}function Ac(e){var t=ra.current;de(ra),e._currentValue=t}function Cu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function oo(e,t){oa=e,jc=Xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(jc!==e)if(e={context:e,memoizedValue:t,next:null},Xr===null){if(oa===null)throw Error(A(308));Xr=e,oa.dependencies={lanes:0,firstContext:e}}else Xr=Xr.next=e;return t}var pr=null;function Mc(e){pr===null?pr=[e]:pr.push(e)}function mh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mc(t)):(n.next=o.next,o.next=n),t.interleaved=n,xn(e,r)}function xn(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 In=!1;function _c(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hh(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 gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,xn(e,n)}return o=r.interleaved,o===null?(t.next=t,Mc(r)):(t.next=o.next,o.next=t),r.interleaved=t,xn(e,n)}function ji(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,xc(e,n)}}function pf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sa(e,t,n,r){var o=e.updateQueue;In=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var c=o.baseState;i=0,d=u=l=null,a=s;do{var h=a.lane,f=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var S=e,g=a;switch(h=t,f=n,g.tag){case 1:if(S=g.payload,typeof S=="function"){c=S.call(f,c,h);break e}c=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=g.payload,h=typeof S=="function"?S.call(f,c,h):S,h==null)break e;c=ye({},c,h);break e;case 2:In=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=c):d=d.next=f,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Nr|=i,e.lanes=i,e.memoizedState=c}}function mf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Nl.transition;Nl.transition={};try{e(!1),t()}finally{oe=n,Nl.transition=r}}function Ah(){return Ct().memoizedState}function jx(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mh(e))_h(t,n);else if(n=mh(e,t,n,r),n!==null){var o=Ye();$t(n,e,r,o),Lh(n,t,r)}}function Ox(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mh(e))_h(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Ut(a,i)){var l=t.interleaved;l===null?(o.next=o,Mc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=mh(e,t,o,r),n!==null&&(o=Ye(),$t(n,e,r,o),Lh(n,t,r))}}function Mh(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function _h(e,t){os=aa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xc(e,n)}}var la={readContext:Et,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},Ax={readContext:Et,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:gf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4194308,4,Ph.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=Gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gt();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=jx.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:hf,useDebugValue:Uc,useDeferredValue:function(e){return Gt().memoizedState=e},useTransition:function(){var e=hf(!1),t=e[0];return e=Rx.bind(null,e[1]),Gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,o=Gt();if(fe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Me===null)throw Error(A(349));kr&30||xh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,gf(Sh.bind(null,r,s,e),[e]),r.flags|=2048,ks(9,wh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Gt(),t=Me.identifierPrefix;if(fe){var n=hn,r=mn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Zt]=t,e[ws]=r,Hh(e,t,!1,!1),t.stateNode=e;e:{switch(i=su(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;oko&&(t.flags|=128,r=!0,Wo(s,!1),t.lanes=4194304)}else{if(!r)if(e=ia(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!fe)return Fe(t),null}else 2*Ce()-s.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,r=!0,Wo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ce(),t.sibling=null,n=he.current,ae(he,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Gc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function $x(e,t){switch(Tc(t),t.tag){case 1:return ot(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),de(rt),de(Ue),Ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dc(t),null;case 13:if(de(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(he),null;case 4:return Co(),null;case 10:return Ac(t.type._context),null;case 22:case 23:return Gc(),null;case 24:return null;default:return null}}var pi=!1,Be=!1,Bx=typeof WeakSet=="function"?WeakSet:Set,z=null;function Zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Au(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Pf=!1;function Ux(e,t){if(hu=Yi,e=Zm(),Nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,c=e,h=null;t:for(;;){for(var f;c!==n||o!==0&&c.nodeType!==3||(a=i+o),c!==s||r!==0&&c.nodeType!==3||(l=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(f=c.firstChild)!==null;)h=c,c=f;for(;;){if(c===e)break t;if(h===n&&++u===o&&(a=i),h===s&&++d===r&&(l=i),(f=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(gu={focusedElem:e,selectionRange:n},Yi=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;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 g=S.memoizedProps,x=S.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Mt(t.type,g),x);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(E){Ee(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return S=Pf,Pf=!1,S}function ss(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Au(t,n,s)}o=o.next}while(o!==r)}}function Aa(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 Mu(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 Gh(e){var t=e.alternate;t!==null&&(e.alternate=null,Gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[ws],delete t[xu],delete t[bx],delete t[kx])),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 Yh(e){return e.tag===5||e.tag===3||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yh(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 _u(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=Zi));else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}function Lu(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(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}var _e=null,It=!1;function jn(e,t,n){for(n=n.child;n!==null;)qh(e,t,n),n=n.sibling}function qh(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(ba,n)}catch{}switch(n.tag){case 5:Be||Zr(n,t);case 6:var r=_e,o=It;_e=null,jn(e,t,n),_e=r,It=o,_e!==null&&(It?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(It?(e=_e,n=n.stateNode,e.nodeType===8?Cl(e.parentNode,n):e.nodeType===1&&Cl(e,n),hs(e)):Cl(_e,n.stateNode));break;case 4:r=_e,o=It,_e=n.stateNode.containerInfo,It=!0,jn(e,t,n),_e=r,It=o;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Au(n,t,i),o=o.next}while(o!==r)}jn(e,t,n);break;case 1:if(!Be&&(Zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}jn(e,t,n);break;case 21:jn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,jn(e,t,n),Be=r):jn(e,t,n);break;default:jn(e,t,n)}}function Rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bx),t.forEach(function(r){var o=Xx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wx(r/1960))-r,10e?16:e,Qn===null)var r=!1;else{if(e=Qn,Qn=null,da=0,ee&6)throw Error(A(331));var o=ee;for(ee|=4,z=e.current;z!==null;){var s=z,i=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lCe()-Qc?Sr(e,0):Hc|=n),st(e,t)}function og(e,t){t===0&&(e.mode&1?(t=oi,oi<<=1,!(oi&130023424)&&(oi=4194304)):t=1);var n=Ye();e=xn(e,t),e!==null&&(zs(e,t,n),st(e,n))}function qx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),og(e,n)}function Xx(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(A(314))}r!==null&&r.delete(t),og(e,n)}var sg;sg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,zx(e,t,n);nt=!!(e.flags&131072)}else nt=!1,fe&&t.flags&1048576&&uh(t,na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Mi(e,t),e=t.pendingProps;var o=wo(t,Ue.current);oo(t,n),o=Fc(null,t,r,e,o,n);var s=$c();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,ot(r)?(s=!0,ea(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_c(t),o.updater=Oa,t.stateNode=o,o._reactInternals=t,ku(t,r,e,n),t=Tu(null,t,r,!0,s,n)):(t.tag=0,fe&&s&&Pc(t),Ke(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Mi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Jx(r),e=Mt(r,e),o){case 0:t=Pu(null,t,r,e,n);break e;case 1:t=bf(null,t,r,e,n);break e;case 11:t=Ef(null,t,r,e,n);break e;case 14:t=Cf(null,t,r,Mt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Pu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),bf(e,t,r,o,n);case 3:e:{if(Uh(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,o=s.element,hh(e,t),sa(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=bo(Error(A(423)),t),t=kf(e,t,r,n,o);break e}else if(r!==o){o=bo(Error(A(424)),t),t=kf(e,t,r,n,o);break e}else for(dt=Xn(t.stateNode.containerInfo.firstChild),ft=t,fe=!0,zt=null,n=ph(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=wn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return gh(t),e===null&&Eu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,vu(r,o)?i=null:s!==null&&vu(r,s)&&(t.flags|=32),Bh(e,t),Ke(e,t,i,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return Vh(e,t,n);case 4:return Lc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Eo(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Ef(e,t,r,o,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ae(ra,r._currentValue),r._currentValue=i,s!==null)if(Ut(s.value,i)){if(s.children===o.children&&!rt.current){t=wn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=gn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Cu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(A(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Cu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ke(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,oo(t,n),o=Et(o),r=r(o),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,o=Mt(r,t.pendingProps),o=Mt(r.type,o),Cf(e,t,r,o,n);case 15:return Fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Mi(e,t),t.tag=1,ot(r)?(e=!0,ea(t)):e=!1,oo(t,n),Dh(t,r,o),ku(t,r,o,n),Tu(null,t,r,!0,e,n);case 19:return Wh(e,t,n);case 22:return $h(e,t,n)}throw Error(A(156,t.tag))};function ig(e,t){return Mm(e,t)}function Zx(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 wt(e,t,n,r){return new Zx(e,t,n,r)}function qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jx(e){if(typeof e=="function")return qc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hc)return 11;if(e===gc)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=wt(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 Di(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")qc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vr:return Er(n.children,o,s,t);case mc:i=8,o|=8;break;case Yl:return e=wt(12,n,t,o|2),e.elementType=Yl,e.lanes=s,e;case ql:return e=wt(13,n,t,o),e.elementType=ql,e.lanes=s,e;case Xl:return e=wt(19,n,t,o),e.elementType=Xl,e.lanes=s,e;case gm:return _a(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mm:i=10;break e;case hm:i=9;break e;case hc:i=11;break e;case gc:i=14;break e;case Dn:i=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=wt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Er(e,t,n,r){return e=wt(7,e,r,t),e.lanes=n,e}function _a(e,t,n,r){return e=wt(22,e,r,t),e.elementType=gm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ol(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Al(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e1(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=fl(0),this.expirationTimes=fl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xc(e,t,n,r,o,s,i,a,l){return e=new e1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=wt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_c(s),e}function t1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cg)}catch(e){console.error(e)}}cg(),cm.exports=ht;var Us=cm.exports;const dg=Zp(Us);var fg,If=Us;fg=If.createRoot,If.hydrateRoot;const i1=1,a1=1e6;let Ml=0;function l1(){return Ml=(Ml+1)%Number.MAX_SAFE_INTEGER,Ml.toString()}const _l=new Map,zf=e=>{if(_l.has(e))return;const t=setTimeout(()=>{_l.delete(e),ls({type:"REMOVE_TOAST",toastId:e})},a1);_l.set(e,t)},u1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,i1)};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?zf(n):e.toasts.forEach(r=>{zf(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)}}},Ii=[];let zi={toasts:[]};function ls(e){zi=u1(zi,e),Ii.forEach(t=>{t(zi)})}function c1({...e}){const t=l1(),n=o=>ls({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>ls({type:"DISMISS_TOAST",toastId:t});return ls({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function d1(){const[e,t]=w.useState(zi);return w.useEffect(()=>(Ii.push(t),()=>{const n=Ii.indexOf(t);n>-1&&Ii.splice(n,1)}),[e]),{...e,toast:c1,dismiss:n=>ls({type:"DISMISS_TOAST",toastId:n})}}function pe(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 Ff(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pg(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ff(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{const{children:i,...a}=s,l=w.useMemo(()=>a,Object.values(a));return v.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=w.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Vs(e,t=[]){let n=[];function r(s,i){const a=w.createContext(i),l=n.length;n=[...n,i];const u=c=>{var p;const{scope:h,children:f,...S}=c,g=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,x=w.useMemo(()=>S,Object.values(S));return v.jsx(g.Provider,{value:x,children:f})};u.displayName=s+"Provider";function d(c,h){var g;const f=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,S=w.useContext(f);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,p1(o,...t)]}function p1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const c=l(s)[`__scope${u}`];return{...a,...c}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ps(e){const t=h1(e),n=w.forwardRef((r,o)=>{const{children:s,...i}=r,a=w.Children.toArray(s),l=a.find(v1);if(l){const u=l.props.children,d=a.map(c=>c===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:c);return v.jsx(t,{...i,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return v.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var m1=Ps("Slot");function h1(e){const t=w.forwardRef((n,r)=>{const{children:o,...s}=n;if(w.isValidElement(o)){const i=x1(o),a=y1(s,o.props);return o.type!==w.Fragment&&(a.ref=r?pg(r,i):i),w.cloneElement(o,a)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mg=Symbol("radix.slottable");function g1(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=mg,t}function v1(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mg}function y1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function x1(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 w1(e){const t=e+"CollectionProvider",[n,r]=Vs(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:x,children:p}=g,m=M.useRef(null),y=M.useRef(new Map).current;return v.jsx(o,{scope:x,itemMap:y,collectionRef:m,children:p})};i.displayName=t;const a=e+"CollectionSlot",l=Ps(a),u=M.forwardRef((g,x)=>{const{scope:p,children:m}=g,y=s(a,p),E=qe(x,y.collectionRef);return v.jsx(l,{ref:E,children:m})});u.displayName=a;const d=e+"CollectionItemSlot",c="data-radix-collection-item",h=Ps(d),f=M.forwardRef((g,x)=>{const{scope:p,children:m,...y}=g,E=M.useRef(null),C=qe(x,E),k=s(d,p);return M.useEffect(()=>(k.itemMap.set(E,{ref:E,...y}),()=>void k.itemMap.delete(E))),v.jsx(h,{[c]:"",ref:C,children:m})});f.displayName=d;function S(g){const x=s(e+"CollectionConsumer",g);return M.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((k,b)=>y.indexOf(k.ref.current)-y.indexOf(b.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},S,r]}var S1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=S1.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),r=w.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hg(e,t){e&&Us.flushSync(()=>e.dispatchEvent(t))}function on(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function E1(e,t=globalThis==null?void 0:globalThis.document){const n=on(e);w.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 C1="DismissableLayer",$u="dismissableLayer.update",b1="dismissableLayer.pointerDownOutside",k1="dismissableLayer.focusOutside",$f,gg=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fa=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=w.useContext(gg),[d,c]=w.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),S=qe(t,b=>c(b)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=g.indexOf(x),m=d?g.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,E=m>=p,C=P1(b=>{const N=b.target,j=[...u.branches].some(O=>O.contains(N));!E||j||(o==null||o(b),i==null||i(b),b.defaultPrevented||a==null||a())},h),k=T1(b=>{const N=b.target;[...u.branches].some(O=>O.contains(N))||(s==null||s(b),i==null||i(b),b.defaultPrevented||a==null||a())},h);return E1(b=>{m===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},h),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($f=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Bf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=$f)}},[d,h,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Bf())},[d,u]),w.useEffect(()=>{const b=()=>f({});return document.addEventListener($u,b),()=>document.removeEventListener($u,b)},[]),v.jsx(Ne.div,{...l,ref:S,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,C.onPointerDownCapture)})});Fa.displayName=C1;var N1="DismissableLayerBranch",vg=w.forwardRef((e,t)=>{const n=w.useContext(gg),r=w.useRef(null),o=qe(t,r);return w.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(Ne.div,{...e,ref:o})});vg.displayName=N1;function P1(e,t=globalThis==null?void 0:globalThis.document){const n=on(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){yg(b1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function T1(e,t=globalThis==null?void 0:globalThis.document){const n=on(e),r=w.useRef(!1);return w.useEffect(()=>{const o=s=>{s.target&&!r.current&&yg(k1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bf(){const e=new CustomEvent($u);document.dispatchEvent(e)}function yg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hg(o,s):o.dispatchEvent(s)}var R1=Fa,j1=vg,Sn=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},O1="Portal",td=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=w.useState(!1);Sn(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?dg.createPortal(v.jsx(Ne.div,{...r,ref:t}),i):null});td.displayName=O1;function A1(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Oo=e=>{const{present:t,children:n}=e,r=M1(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),s=qe(r.ref,_1(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:s}):null};Oo.displayName="Presence";function M1(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),s=w.useRef("none"),i=e?"mounted":"unmounted",[a,l]=A1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=gi(r.current);s.current=a==="mounted"?u:"none"},[a]),Sn(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,f=gi(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Sn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=f=>{const g=gi(r.current).includes(f.animationName);if(f.target===t&&g&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=f=>{f.target===t&&(s.current=gi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function gi(e){return(e==null?void 0:e.animationName)||"none"}function _1(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 L1=cc[" useInsertionEffect ".trim().toString()]||Sn;function xg({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=D1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const c=d.current;c!==a&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=w.useCallback(d=>{var c;if(a){const h=I1(d)?d(e):d;h!==e&&((c=i.current)==null||c.call(i,h))}else s(d)},[a,e,s,i]);return[l,u]}function D1({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),s=w.useRef(t);return L1(()=>{s.current=t},[t]),w.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function I1(e){return typeof e=="function"}var z1=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"}),F1="VisuallyHidden",$a=w.forwardRef((e,t)=>v.jsx(Ne.span,{...e,ref:t,style:{...z1,...e.style}}));$a.displayName=F1;var $1=$a,nd="ToastProvider",[rd,B1,U1]=w1("Toast"),[wg,Bk]=Vs("Toast",[U1]),[V1,Ba]=wg(nd),Sg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=w.useState(null),[u,d]=w.useState(0),c=w.useRef(!1),h=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${nd}\`. Expected non-empty \`string\`.`),v.jsx(rd.Provider,{scope:t,children:v.jsx(V1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>d(f=>f+1),[]),onToastRemove:w.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:c,isClosePausedRef:h,children:i})})};Sg.displayName=nd;var Eg="ToastViewport",W1=["F8"],Bu="toast.viewportPause",Uu="toast.viewportResume",Cg=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=W1,label:o="Notifications ({hotkey})",...s}=e,i=Ba(Eg,n),a=B1(n),l=w.useRef(null),u=w.useRef(null),d=w.useRef(null),c=w.useRef(null),h=qe(t,c,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=i.toastCount>0;w.useEffect(()=>{const x=p=>{var y;r.length!==0&&r.every(E=>p[E]||p.code===E)&&((y=c.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=l.current,p=c.current;if(S&&x&&p){const m=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Bu);p.dispatchEvent(k),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(Uu);p.dispatchEvent(k),i.isClosePausedRef.current=!1}},E=k=>{!x.contains(k.relatedTarget)&&y()},C=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",m),x.addEventListener("focusout",E),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",E),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[S,i.isClosePausedRef]);const g=w.useCallback(({tabbingDirection:x})=>{const m=a().map(y=>{const E=y.ref.current,C=[E,...rw(E)];return x==="forwards"?C:C.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return w.useEffect(()=>{const x=c.current;if(x){const p=m=>{var C,k,b;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const N=document.activeElement,j=m.shiftKey;if(m.target===x&&j){(C=u.current)==null||C.focus();return}const L=g({tabbingDirection:j?"backwards":"forwards"}),W=L.findIndex(_=>_===N);Ll(L.slice(W+1))?m.preventDefault():j?(k=u.current)==null||k.focus():(b=d.current)==null||b.focus()}};return x.addEventListener("keydown",p),()=>x.removeEventListener("keydown",p)}},[a,g]),v.jsxs(j1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&v.jsx(Vu,{ref:u,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});Ll(x)}}),v.jsx(rd.Slot,{scope:n,children:v.jsx(Ne.ol,{tabIndex:-1,...s,ref:h})}),S&&v.jsx(Vu,{ref:d,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});Ll(x)}})]})});Cg.displayName=Eg;var bg="ToastFocusProxy",Vu=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Ba(bg,n);return v.jsx($a,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Vu.displayName=bg;var Ws="Toast",H1="toast.swipeStart",Q1="toast.swipeMove",K1="toast.swipeCancel",G1="toast.swipeEnd",kg=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=xg({prop:r,defaultProp:o??!0,onChange:s,caller:Ws});return v.jsx(Oo,{present:n||a,children:v.jsx(X1,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:on(e.onPause),onResume:on(e.onResume),onSwipeStart:pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,u=>{const{x:d,y:c}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${c}px`)}),onSwipeCancel:pe(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:pe(e.onSwipeEnd,u=>{const{x:d,y:c}=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",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${c}px`),l(!1)})})})});kg.displayName=Ws;var[Y1,q1]=wg(Ws,{onClose(){}}),X1=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:c,onSwipeCancel:h,onSwipeEnd:f,...S}=e,g=Ba(Ws,n),[x,p]=w.useState(null),m=qe(t,_=>p(_)),y=w.useRef(null),E=w.useRef(null),C=o||g.duration,k=w.useRef(0),b=w.useRef(C),N=w.useRef(0),{onToastAdd:j,onToastRemove:O}=g,I=on(()=>{var H;(x==null?void 0:x.contains(document.activeElement))&&((H=g.viewport)==null||H.focus()),i()}),L=w.useCallback(_=>{!_||_===1/0||(window.clearTimeout(N.current),k.current=new Date().getTime(),N.current=window.setTimeout(I,_))},[I]);w.useEffect(()=>{const _=g.viewport;if(_){const H=()=>{L(b.current),u==null||u()},B=()=>{const V=new Date().getTime()-k.current;b.current=b.current-V,window.clearTimeout(N.current),l==null||l()};return _.addEventListener(Bu,B),_.addEventListener(Uu,H),()=>{_.removeEventListener(Bu,B),_.removeEventListener(Uu,H)}}},[g.viewport,C,l,u,L]),w.useEffect(()=>{s&&!g.isClosePausedRef.current&&L(C)},[s,C,g.isClosePausedRef,L]),w.useEffect(()=>(j(),()=>O()),[j,O]);const W=w.useMemo(()=>x?Ag(x):null,[x]);return g.viewport?v.jsxs(v.Fragment,{children:[W&&v.jsx(Z1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),v.jsx(Y1,{scope:n,onClose:I,children:Us.createPortal(v.jsx(rd.ItemSlot,{scope:n,children:v.jsx(R1,{asChild:!0,onEscapeKeyDown:pe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||I(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(Ne.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...S,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,_=>{_.key==="Escape"&&(a==null||a(_.nativeEvent),_.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:pe(e.onPointerDown,_=>{_.button===0&&(y.current={x:_.clientX,y:_.clientY})}),onPointerMove:pe(e.onPointerMove,_=>{if(!y.current)return;const H=_.clientX-y.current.x,B=_.clientY-y.current.y,V=!!E.current,P=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,D=P?R(0,H):0,U=P?0:R(0,B),$=_.pointerType==="touch"?10:2,G={x:D,y:U},Q={originalEvent:_,delta:G};V?(E.current=G,vi(Q1,c,Q,{discrete:!1})):Uf(G,g.swipeDirection,$)?(E.current=G,vi(H1,d,Q,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(H)>$||Math.abs(B)>$)&&(y.current=null)}),onPointerUp:pe(e.onPointerUp,_=>{const H=E.current,B=_.target;if(B.hasPointerCapture(_.pointerId)&&B.releasePointerCapture(_.pointerId),E.current=null,y.current=null,H){const V=_.currentTarget,P={originalEvent:_,delta:H};Uf(H,g.swipeDirection,g.swipeThreshold)?vi(G1,f,P,{discrete:!0}):vi(K1,h,P,{discrete:!0}),V.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Z1=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ba(Ws,t),[s,i]=w.useState(!1),[a,l]=w.useState(!1);return tw(()=>i(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:v.jsx(td,{asChild:!0,children:v.jsx($a,{...r,children:s&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},J1="ToastTitle",Ng=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(Ne.div,{...r,ref:t})});Ng.displayName=J1;var ew="ToastDescription",Pg=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(Ne.div,{...r,ref:t})});Pg.displayName=ew;var Tg="ToastAction",Rg=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(Og,{altText:n,asChild:!0,children:v.jsx(od,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tg}\`. Expected non-empty \`string\`.`),null)});Rg.displayName=Tg;var jg="ToastClose",od=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=q1(jg,n);return v.jsx(Og,{asChild:!0,children:v.jsx(Ne.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,o.onClose)})})});od.displayName=jg;var Og=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(Ne.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Ag(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),nw(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Ag(r))}}),t}function vi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hg(o,s):o.dispatchEvent(s)}var Uf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function tw(e=()=>{}){const t=on(e);Sn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function nw(e){return e.nodeType===e.ELEMENT_NODE}function rw(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 Ll(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ow=Sg,Mg=Cg,_g=kg,Lg=Ng,Dg=Pg,Ig=Rg,zg=od;function Fg(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,Wf=$g,Bg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],c=s==null?void 0:s[u];if(d===null)return null;const h=Vf(d)||Vf(c);return o[u][h]}),a=n&&Object.entries(n).reduce((u,d)=>{let[c,h]=d;return h===void 0||(u[c]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:h,...f}=d;return Object.entries(f).every(S=>{let[g,x]=S;return Array.isArray(x)?x.includes({...s,...a}[g]):{...s,...a}[g]===x})?[...u,c,h]:u},[]);return Wf(e,i,l,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 sw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ug=(...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 iw={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 aw=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>w.createElement("svg",{ref:l,...iw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ug("lucide",o),...a},[...i.map(([u,d])=>w.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pe=(e,t)=>{const n=w.forwardRef(({className:r,...o},s)=>w.createElement(aw,{ref:s,iconNode:t,className:Ug(`lucide-${sw(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 lw=Pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mn=Pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @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 uw=Pe("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @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 cw=Pe("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/** * @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 Ir=Pe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @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 dw=Pe("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** * @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 fw=Pe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pw=Pe("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** * @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 mw=Pe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @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 Hf=Pe("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 hw=Pe("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 gw=Pe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** * @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 vw=Pe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @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 yw=Pe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xw=Pe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ww=Pe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @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 Vg=Pe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wu=Pe("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 sd=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @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 Sw=Pe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),id="-",Ew=e=>{const t=bw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(id);return a[0]===""&&a.length!==1&&a.shift(),Wg(a,t)||Cw(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Wg=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Wg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(id);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Qf=/^\[(.+)\]$/,Cw=e=>{if(Qf.test(e)){const t=Qf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Nw(Object.entries(e.classGroups),n).forEach(([s,i])=>{Hu(i,r,s,t)}),r},Hu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Kf(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(kw(o)){Hu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Hu(i,Kf(t,s),n,r)})})},Kf=(e,t)=>{let n=e;return t.split(id).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},kw=e=>e.isThemeGetter,Nw=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,Pw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Hg="!",Tw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,d=0,c;for(let x=0;xd?c-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:S,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},Rw=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},jw=e=>({cache:Pw(e.cacheSize),parseClassName:Tw(e),...Ew(e)}),Ow=/\s+/,Aw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(Ow);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:c,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let S=!!f,g=r(S?h.substring(0,f):h);if(!g){if(!S){a=u+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=u+(a.length>0?" "+a:a);continue}S=!1}const x=Rw(d).join(":"),p=c?x+Hg:x,m=p+g;if(s.includes(m))continue;s.push(m);const y=o(g,S);for(let E=0;E0?" "+a:a)}return a};function Mw(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rc(d),e());return n=jw(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=Aw(l,n);return o(l,d),d}return function(){return s(Mw.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Kg=/^\[(?:([a-z-]+):)?(.+)\]$/i,Lw=/^\d+\/\d+$/,Dw=new Set(["px","full","screen"]),Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zw=/\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$/,Fw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,un=e=>io(e)||Dw.has(e)||Lw.test(e),On=e=>Ao(e,"length",Yw),io=e=>!!e&&!Number.isNaN(Number(e)),Dl=e=>Ao(e,"number",io),Qo=e=>!!e&&Number.isInteger(Number(e)),Uw=e=>e.endsWith("%")&&io(e.slice(0,-1)),X=e=>Kg.test(e),An=e=>Iw.test(e),Vw=new Set(["length","size","percentage"]),Ww=e=>Ao(e,Vw,Gg),Hw=e=>Ao(e,"position",Gg),Qw=new Set(["image","url"]),Kw=e=>Ao(e,Qw,Xw),Gw=e=>Ao(e,"",qw),Ko=()=>!0,Ao=(e,t,n)=>{const r=Kg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Yw=e=>zw.test(e)&&!Fw.test(e),Gg=()=>!1,qw=e=>$w.test(e),Xw=e=>Bw.test(e),Zw=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),o=ue("borderColor"),s=ue("borderRadius"),i=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),u=ue("grayscale"),d=ue("hueRotate"),c=ue("invert"),h=ue("gap"),f=ue("gradientColorStops"),S=ue("gradientColorStopPositions"),g=ue("inset"),x=ue("margin"),p=ue("opacity"),m=ue("padding"),y=ue("saturate"),E=ue("scale"),C=ue("sepia"),k=ue("skew"),b=ue("space"),N=ue("translate"),j=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",X,t],L=()=>[X,t],W=()=>["",un,On],_=()=>["auto",io,X],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",X],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[io,X];return{cacheSize:500,separator:":",theme:{colors:[Ko],spacing:[un,On],blur:["none","",An,X],brightness:U(),borderColor:[e],borderRadius:["none","","full",An,X],borderSpacing:L(),borderWidth:W(),contrast:U(),grayscale:R(),hueRotate:U(),invert:R(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[Uw,On],inset:I(),margin:I(),opacity:U(),padding:L(),saturate:U(),scale:U(),sepia:R(),skew:U(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[An]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...H(),X]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qo,X]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Qo,X]}],"grid-cols":[{"grid-cols":[Ko]}],"col-start-end":[{col:["auto",{span:["full",Qo,X]},X]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Ko]}],"row-start-end":[{row:["auto",{span:[Qo,X]},X]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"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",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[An]},An]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",An,On]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dl]}],"font-family":[{font:[Ko]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",io,Dl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",un,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",un,On]}],"underline-offset":[{"underline-offset":["auto",un,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),Hw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ww]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[un,X]}],"outline-w":[{outline:[un,On]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[un,On]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",An,Gw]}],"shadow-color":[{shadow:[Ko]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",An,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Qo,X]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"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",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[un,On,Dl]}],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"]}}},Jw=_w(Zw);function me(...e){return Jw($g(e))}const eS=ow,Yg=w.forwardRef(({className:e,...t},n)=>v.jsx(Mg,{ref:n,className:me("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}));Yg.displayName=Mg.displayName;const tS=Bg("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"}}),qg=w.forwardRef(({className:e,variant:t,...n},r)=>v.jsx(_g,{ref:r,className:me(tS({variant:t}),e),...n}));qg.displayName=_g.displayName;const nS=w.forwardRef(({className:e,...t},n)=>v.jsx(Ig,{ref:n,className:me("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}));nS.displayName=Ig.displayName;const Xg=w.forwardRef(({className:e,...t},n)=>v.jsx(zg,{ref:n,className:me("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:v.jsx(sd,{className:"h-4 w-4"})}));Xg.displayName=zg.displayName;const Zg=w.forwardRef(({className:e,...t},n)=>v.jsx(Lg,{ref:n,className:me("text-sm font-semibold",e),...t}));Zg.displayName=Lg.displayName;const Jg=w.forwardRef(({className:e,...t},n)=>v.jsx(Dg,{ref:n,className:me("text-sm opacity-90",e),...t}));Jg.displayName=Dg.displayName;function rS(){const{toasts:e}=d1();return v.jsxs(eS,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return v.jsxs(qg,{...s,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(Zg,{children:n}),r&&v.jsx(Jg,{children:r})]}),o,v.jsx(Xg,{})]},t)}),v.jsx(Yg,{})]})}var Gf=["light","dark"],oS="(prefers-color-scheme: dark)",sS=w.createContext(void 0),iS={setTheme:e=>{},themes:[]},aS=()=>{var e;return(e=w.useContext(sS))!=null?e:iS};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,c=o?Gf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(S,g=!1,x=!0)=>{let p=i?i[S]:S,m=g?S+"|| ''":`'${p}'`,y="";return o&&x&&!g&&Gf.includes(S)&&(y+=`d.style.colorScheme = '${S}';`),n==="class"?g||p?y+=`c.add(${m})`:y+="null":p&&(y+=`d[s](n,${m})`),y},f=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${oS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(s,!1,!1)+"}"}${c}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${c}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var lS=e=>{switch(e){case"success":return dS;case"info":return pS;case"warning":return fS;case"error":return mS;default:return null}},uS=Array(12).fill(0),cS=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},uS.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dS=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),fS=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),pS=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),mS=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),hS=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),gS=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Qu=1,vS=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:Qu++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],M.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(xS(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Qu++;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}},et=new vS,yS=(e,t)=>{let n=(t==null?void 0:t.id)||Qu++;return et.addToast({title:e,...t,id:n}),n},xS=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",wS=yS,SS=()=>et.toasts,ES=()=>et.getActiveToasts();Object.assign(wS,{success:et.success,info:et.info,warning:et.warning,error:et.error,custom:et.custom,message:et.message,promise:et.promise,dismiss:et.dismiss,loading:et.loading},{getHistory:SS,getToasts:ES});function CS(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))}CS(`: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 yi(e){return e.label!==void 0}var bS=3,kS="32px",NS="16px",Yf=4e3,PS=356,TS=14,RS=20,jS=200;function At(...e){return e.filter(Boolean).join(" ")}function OS(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var AS=e=>{var t,n,r,o,s,i,a,l,u,d,c;let{invert:h,toast:f,unstyled:S,interacting:g,setHeights:x,visibleToasts:p,heights:m,index:y,toasts:E,expanded:C,removeToast:k,defaultRichColors:b,closeButton:N,style:j,cancelButtonStyle:O,actionButtonStyle:I,className:L="",descriptionClassName:W="",duration:_,position:H,gap:B,loadingIcon:V,expandByDefault:P,classNames:R,icons:D,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:$}=e,[G,Q]=M.useState(null),[se,xe]=M.useState(null),[Y,we]=M.useState(!1),[Oe,be]=M.useState(!1),[te,F]=M.useState(!1),[J,le]=M.useState(!1),[Te,Ve]=M.useState(!1),[at,lt]=M.useState(0),[We,Qt]=M.useState(0),bt=M.useRef(f.duration||_||Yf),Mr=M.useRef(null),kt=M.useRef(null),Ks=y===0,Gs=y+1<=p,Je=f.type,ln=f.dismissible!==!1,nl=f.className||"",Lo=f.descriptionClassName||"",Nt=M.useMemo(()=>m.findIndex(K=>K.toastId===f.id)||0,[m,f.id]),Do=M.useMemo(()=>{var K;return(K=f.closeButton)!=null?K:N},[f.closeButton,N]),_r=M.useMemo(()=>f.duration||_||Yf,[f.duration,_]),kn=M.useRef(0),Nn=M.useRef(0),Ys=M.useRef(0),Pn=M.useRef(null),[rl,ol]=H.split("-"),Io=M.useMemo(()=>m.reduce((K,re,ie)=>ie>=Nt?K:K+re.height,0),[m,Nt]),qs=gS(),Xs=f.invert||h,Lr=Je==="loading";Nn.current=M.useMemo(()=>Nt*B+Io,[Nt,Io]),M.useEffect(()=>{bt.current=_r},[_r]),M.useEffect(()=>{we(!0)},[]),M.useEffect(()=>{let K=kt.current;if(K){let re=K.getBoundingClientRect().height;return Qt(re),x(ie=>[{toastId:f.id,height:re,position:f.position},...ie]),()=>x(ie=>ie.filter(Tt=>Tt.toastId!==f.id))}},[x,f.id]),M.useLayoutEffect(()=>{if(!Y)return;let K=kt.current,re=K.style.height;K.style.height="auto";let ie=K.getBoundingClientRect().height;K.style.height=re,Qt(ie),x(Tt=>Tt.find(Rt=>Rt.toastId===f.id)?Tt.map(Rt=>Rt.toastId===f.id?{...Rt,height:ie}:Rt):[{toastId:f.id,height:ie,position:f.position},...Tt])},[Y,f.title,f.description,x,f.id]);let Pt=M.useCallback(()=>{be(!0),lt(Nn.current),x(K=>K.filter(re=>re.toastId!==f.id)),setTimeout(()=>{k(f)},jS)},[f,k,x,Nn]);M.useEffect(()=>{if(f.promise&&Je==="loading"||f.duration===1/0||f.type==="loading")return;let K;return C||g||$&&qs?(()=>{if(Ys.current{var re;(re=f.onAutoClose)==null||re.call(f,f),Pt()},bt.current)),()=>clearTimeout(K)},[C,g,f,Je,$,qs,Pt]),M.useEffect(()=>{f.delete&&Pt()},[Pt,f.delete]);function sl(){var K,re,ie;return D!=null&&D.loading?M.createElement("div",{className:At(R==null?void 0:R.loader,(K=f==null?void 0:f.classNames)==null?void 0:K.loader,"sonner-loader"),"data-visible":Je==="loading"},D.loading):V?M.createElement("div",{className:At(R==null?void 0:R.loader,(re=f==null?void 0:f.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":Je==="loading"},V):M.createElement(cS,{className:At(R==null?void 0:R.loader,(ie=f==null?void 0:f.classNames)==null?void 0:ie.loader),visible:Je==="loading"})}return M.createElement("li",{tabIndex:0,ref:kt,className:At(L,nl,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Je],(n=f==null?void 0:f.classNames)==null?void 0:n[Je]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:b,"data-styled":!(f.jsx||f.unstyled||S),"data-mounted":Y,"data-promise":!!f.promise,"data-swiped":Te,"data-removed":Oe,"data-visible":Gs,"data-y-position":rl,"data-x-position":ol,"data-index":y,"data-front":Ks,"data-swiping":te,"data-dismissible":ln,"data-type":Je,"data-invert":Xs,"data-swipe-out":J,"data-swipe-direction":se,"data-expanded":!!(C||P&&Y),style:{"--index":y,"--toasts-before":y,"--z-index":E.length-y,"--offset":`${Oe?at:Nn.current}px`,"--initial-height":P?"auto":`${We}px`,...j,...f.style},onDragEnd:()=>{F(!1),Q(null),Pn.current=null},onPointerDown:K=>{Lr||!ln||(Mr.current=new Date,lt(Nn.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(F(!0),Pn.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,re,ie,Tt;if(J||!ln)return;Pn.current=null;let Rt=Number(((K=kt.current)==null?void 0:K.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tn=Number(((re=kt.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ur=new Date().getTime()-((ie=Mr.current)==null?void 0:ie.getTime()),jt=G==="x"?Rt:Tn,Rn=Math.abs(jt)/ur;if(Math.abs(jt)>=RS||Rn>.11){lt(Nn.current),(Tt=f.onDismiss)==null||Tt.call(f,f),xe(G==="x"?Rt>0?"right":"left":Tn>0?"down":"up"),Pt(),le(!0),Ve(!1);return}F(!1),Q(null)},onPointerMove:K=>{var re,ie,Tt,Rt;if(!Pn.current||!ln||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let Tn=K.clientY-Pn.current.y,ur=K.clientX-Pn.current.x,jt=(ie=e.swipeDirections)!=null?ie:OS(H);!G&&(Math.abs(ur)>1||Math.abs(Tn)>1)&&Q(Math.abs(ur)>Math.abs(Tn)?"x":"y");let Rn={x:0,y:0};G==="y"?(jt.includes("top")||jt.includes("bottom"))&&(jt.includes("top")&&Tn<0||jt.includes("bottom")&&Tn>0)&&(Rn.y=Tn):G==="x"&&(jt.includes("left")||jt.includes("right"))&&(jt.includes("left")&&ur<0||jt.includes("right")&&ur>0)&&(Rn.x=ur),(Math.abs(Rn.x)>0||Math.abs(Rn.y)>0)&&Ve(!0),(Tt=kt.current)==null||Tt.style.setProperty("--swipe-amount-x",`${Rn.x}px`),(Rt=kt.current)==null||Rt.style.setProperty("--swipe-amount-y",`${Rn.y}px`)}},Do&&!f.jsx?M.createElement("button",{"aria-label":U,"data-disabled":Lr,"data-close-button":!0,onClick:Lr||!ln?()=>{}:()=>{var K;Pt(),(K=f.onDismiss)==null||K.call(f,f)},className:At(R==null?void 0:R.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=D==null?void 0:D.close)!=null?s:hS):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:M.createElement(M.Fragment,null,Je||f.icon||f.promise?M.createElement("div",{"data-icon":"",className:At(R==null?void 0:R.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||sl():null,f.type!=="loading"?f.icon||(D==null?void 0:D[Je])||lS(Je):null):null,M.createElement("div",{"data-content":"",className:At(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:At(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?M.createElement("div",{"data-description":"",className:At(W,Lo,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&yi(f.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:K=>{var re,ie;yi(f.cancel)&&ln&&((ie=(re=f.cancel).onClick)==null||ie.call(re,K),Pt())},className:At(R==null?void 0:R.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&yi(f.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||I,onClick:K=>{var re,ie;yi(f.action)&&((ie=(re=f.action).onClick)==null||ie.call(re,K),!K.defaultPrevented&&Pt())},className:At(R==null?void 0:R.actionButton,(c=f==null?void 0:f.classNames)==null?void 0:c.actionButton)},f.action.label):null))};function qf(){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 MS(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?NS:kS;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var _S=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:c,duration:h,style:f,visibleToasts:S=bS,toastOptions:g,dir:x=qf(),gap:p=TS,loadingIcon:m,icons:y,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:C}=e,[k,b]=M.useState([]),N=M.useMemo(()=>Array.from(new Set([r].concat(k.filter($=>$.position).map($=>$.position)))),[k,r]),[j,O]=M.useState([]),[I,L]=M.useState(!1),[W,_]=M.useState(!1),[H,B]=M.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=M.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=M.useRef(null),D=M.useRef(!1),U=M.useCallback($=>{b(G=>{var Q;return(Q=G.find(se=>se.id===$.id))!=null&&Q.delete||et.dismiss($.id),G.filter(({id:se})=>se!==$.id)})},[]);return M.useEffect(()=>et.subscribe($=>{if($.dismiss){b(G=>G.map(Q=>Q.id===$.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{dg.flushSync(()=>{b(G=>{let Q=G.findIndex(se=>se.id===$.id);return Q!==-1?[...G.slice(0,Q),{...G[Q],...$},...G.slice(Q+1)]:[$,...G]})})})}),[]),M.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:G})=>{B(G?"dark":"light")})}catch{$.addListener(({matches:Q})=>{try{B(Q?"dark":"light")}catch(se){console.error(se)}})}},[d]),M.useEffect(()=>{k.length<=1&&L(!1)},[k]),M.useEffect(()=>{let $=G=>{var Q,se;o.every(xe=>G[xe]||G.code===xe)&&(L(!0),(Q=V.current)==null||Q.focus()),G.code==="Escape"&&(document.activeElement===V.current||(se=V.current)!=null&&se.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[o]),M.useEffect(()=>{if(V.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[V.current]),M.createElement("section",{ref:t,"aria-label":`${E} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map(($,G)=>{var Q;let[se,xe]=$.split("-");return k.length?M.createElement("ol",{key:$,dir:x==="auto"?qf():x,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":se,"data-lifted":I&&k.length>1&&!s,"data-x-position":xe,style:{"--front-toast-height":`${((Q=j[0])==null?void 0:Q.height)||0}px`,"--width":`${PS}px`,"--gap":`${p}px`,...f,...MS(l,u)},onBlur:Y=>{D.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||D.current||(D.current=!0,R.current=Y.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{W||L(!1)},onDragEnd:()=>L(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},k.filter(Y=>!Y.position&&G===0||Y.position===$).map((Y,we)=>{var Oe,be;return M.createElement(AS,{key:Y.id,icons:y,index:we,toast:Y,defaultRichColors:c,duration:(Oe=g==null?void 0:g.duration)!=null?Oe:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:S,closeButton:(be=g==null?void 0:g.closeButton)!=null?be:i,interacting:W,position:$,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:U,toasts:k.filter(te=>te.position==Y.position),heights:j.filter(te=>te.position==Y.position),setHeights:O,expandByDefault:s,gap:p,loadingIcon:m,expanded:I,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const LS=({...e})=>{const{theme:t="system"}=aS();return v.jsx(_S,{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})};var DS=cc[" useId ".trim().toString()]||(()=>{}),IS=0;function Il(e){const[t,n]=w.useState(DS());return Sn(()=>{e||n(r=>r??String(IS++))},[e]),e||(t?`radix-${t}`:"")}const zS=["top","right","bottom","left"],or=Math.min,ct=Math.max,ma=Math.round,xi=Math.floor,rn=e=>({x:e,y:e}),FS={left:"right",right:"left",bottom:"top",top:"bottom"},$S={start:"end",end:"start"};function Ku(e,t,n){return ct(e,or(t,n))}function En(e,t){return typeof e=="function"?e(t):e}function Cn(e){return e.split("-")[0]}function Mo(e){return e.split("-")[1]}function ad(e){return e==="x"?"y":"x"}function ld(e){return e==="y"?"height":"width"}const BS=new Set(["top","bottom"]);function en(e){return BS.has(Cn(e))?"y":"x"}function ud(e){return ad(en(e))}function US(e,t,n){n===void 0&&(n=!1);const r=Mo(e),o=ud(e),s=ld(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ha(i)),[i,ha(i)]}function VS(e){const t=ha(e);return[Gu(e),t,Gu(t)]}function Gu(e){return e.replace(/start|end/g,t=>$S[t])}const Xf=["left","right"],Zf=["right","left"],WS=["top","bottom"],HS=["bottom","top"];function QS(e,t,n){switch(e){case"top":case"bottom":return n?t?Zf:Xf:t?Xf:Zf;case"left":case"right":return t?WS:HS;default:return[]}}function KS(e,t,n,r){const o=Mo(e);let s=QS(Cn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Gu)))),s}function ha(e){return e.replace(/left|right|bottom|top/g,t=>FS[t])}function GS(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?GS(e):{top:e,right:e,bottom:e,left:e}}function ga(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jf(e,t,n){let{reference:r,floating:o}=e;const s=en(t),i=ud(t),a=ld(i),l=Cn(t),u=s==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:c};break;case"left":f={x:r.x-o.width,y:c};break;default:f={x:r.x,y:r.y}}switch(Mo(t)){case"start":f[i]-=h*(n&&u?-1:1);break;case"end":f[i]+=h*(n&&u?-1:1);break}return f}const YS=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=Jf(u,r,l),h=r,f={},S=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=En(e,t)||{};if(u==null)return{};const c=ev(d),h={x:n,y:r},f=ud(o),S=ld(f),g=await i.getDimensions(u),x=f==="y",p=x?"top":"left",m=x?"bottom":"right",y=x?"clientHeight":"clientWidth",E=s.reference[S]+s.reference[f]-h[f]-s.floating[S],C=h[f]-s.reference[f],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let b=k?k[y]:0;(!b||!await(i.isElement==null?void 0:i.isElement(k)))&&(b=a.floating[y]||s.floating[S]);const N=E/2-C/2,j=b/2-g[S]/2-1,O=or(c[p],j),I=or(c[m],j),L=O,W=b-g[S]-I,_=b/2-g[S]/2+N,H=Ku(L,_,W),B=!l.arrow&&Mo(o)!=null&&_!==H&&s.reference[S]/2-(__<=0)){var I,L;const _=(((I=s.flip)==null?void 0:I.index)||0)+1,H=b[_];if(H&&(!(c==="alignment"?m!==en(H):!1)||O.every(P=>P.overflows[0]>0&&en(P.placement)===m)))return{data:{index:_,overflows:O},reset:{placement:H}};let B=(L=O.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(f){case"bestFit":{var W;const V=(W=O.filter(P=>{if(k){const R=en(P.placement);return R===m||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:W[0];V&&(B=V);break}case"initialPlacement":B=a;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function ep(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tp(e){return zS.some(t=>e[t]>=0)}const ZS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=En(e,t);switch(r){case"referenceHidden":{const s=await Ts(t,{...o,elementContext:"reference"}),i=ep(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:tp(i)}}}case"escaped":{const s=await Ts(t,{...o,altBoundary:!0}),i=ep(s,n.floating);return{data:{escapedOffsets:i,escaped:tp(i)}}}default:return{}}}}},tv=new Set(["left","top"]);async function JS(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Cn(n),a=Mo(n),l=en(n)==="y",u=tv.has(i)?-1:1,d=s&&l?-1:1,c=En(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:S}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof S=="number"&&(f=a==="end"?S*-1:S),l?{x:f*d,y:h*u}:{x:h*u,y:f*d}}const eE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await JS(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},tE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:p,y:m}=x;return{x:p,y:m}}},...l}=En(e,t),u={x:n,y:r},d=await Ts(t,l),c=en(Cn(o)),h=ad(c);let f=u[h],S=u[c];if(s){const x=h==="y"?"top":"left",p=h==="y"?"bottom":"right",m=f+d[x],y=f-d[p];f=Ku(m,f,y)}if(i){const x=c==="y"?"top":"left",p=c==="y"?"bottom":"right",m=S+d[x],y=S-d[p];S=Ku(m,S,y)}const g=a.fn({...t,[h]:f,[c]:S});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[c]:i}}}}}},nE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=En(e,t),d={x:n,y:r},c=en(o),h=ad(c);let f=d[h],S=d[c];const g=En(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const y=h==="y"?"height":"width",E=s.reference[h]-s.floating[y]+x.mainAxis,C=s.reference[h]+s.reference[y]-x.mainAxis;fC&&(f=C)}if(u){var p,m;const y=h==="y"?"width":"height",E=tv.has(Cn(o)),C=s.reference[c]-s.floating[y]+(E&&((p=i.offset)==null?void 0:p[c])||0)+(E?0:x.crossAxis),k=s.reference[c]+s.reference[y]+(E?0:((m=i.offset)==null?void 0:m[c])||0)-(E?x.crossAxis:0);Sk&&(S=k)}return{[h]:f,[c]:S}}}},rE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=En(e,t),d=await Ts(t,u),c=Cn(o),h=Mo(o),f=en(o)==="y",{width:S,height:g}=s.floating;let x,p;c==="top"||c==="bottom"?(x=c,p=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(p=c,x=h==="end"?"top":"bottom");const m=g-d.top-d.bottom,y=S-d.left-d.right,E=or(g-d[x],m),C=or(S-d[p],y),k=!t.middlewareData.shift;let b=E,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=m),k&&!h){const O=ct(d.left,0),I=ct(d.right,0),L=ct(d.top,0),W=ct(d.bottom,0);f?N=S-2*(O!==0||I!==0?O+I:ct(d.left,d.right)):b=g-2*(L!==0||W!==0?L+W:ct(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:b});const j=await i.getDimensions(a.floating);return S!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function Ua(){return typeof window<"u"}function _o(e){return nv(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(nv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nv(e){return Ua()?e instanceof Node||e instanceof pt(e).Node:!1}function Vt(e){return Ua()?e instanceof Element||e instanceof pt(e).Element:!1}function sn(e){return Ua()?e instanceof HTMLElement||e instanceof pt(e).HTMLElement:!1}function np(e){return!Ua()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot}const oE=new Set(["inline","contents"]);function Hs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!oE.has(o)}const sE=new Set(["table","td","th"]);function iE(e){return sE.has(_o(e))}const aE=[":popover-open",":modal"];function Va(e){return aE.some(t=>{try{return e.matches(t)}catch{return!1}})}const lE=["transform","translate","scale","rotate","perspective"],uE=["transform","translate","scale","rotate","perspective","filter"],cE=["paint","layout","strict","content"];function cd(e){const t=dd(),n=Vt(e)?Wt(e):e;return lE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uE.some(r=>(n.willChange||"").includes(r))||cE.some(r=>(n.contain||"").includes(r))}function dE(e){let t=sr(e);for(;sn(t)&&!No(t);){if(cd(t))return t;if(Va(t))return null;t=sr(t)}return null}function dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fE=new Set(["html","body","#document"]);function No(e){return fE.has(_o(e))}function Wt(e){return pt(e).getComputedStyle(e)}function Wa(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sr(e){if(_o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||np(e)&&e.host||an(e);return np(t)?t.host:t}function rv(e){const t=sr(e);return No(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&Hs(t)?t:rv(t)}function Rs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rv(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=pt(o);if(s){const a=Yu(i);return t.concat(i,i.visualViewport||[],Hs(o)?o:[],a&&n?Rs(a):[])}return t.concat(o,Rs(o,[],n))}function Yu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ov(e){const t=Wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=sn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ma(n)!==s||ma(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function fd(e){return Vt(e)?e:e.contextElement}function ao(e){const t=fd(e);if(!sn(t))return rn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ov(t);let i=(s?ma(n.width):n.width)/r,a=(s?ma(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const pE=rn(0);function sv(e){const t=pt(e);return!dd()||!t.visualViewport?pE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pt(e)?!1:t}function Tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=fd(e);let i=rn(1);t&&(r?Vt(r)&&(i=ao(r)):i=ao(e));const a=mE(s,n,r)?sv(s):rn(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,c=o.height/i.y;if(s){const h=pt(s),f=r&&Vt(r)?pt(r):r;let S=h,g=Yu(S);for(;g&&r&&f!==S;){const x=ao(g),p=g.getBoundingClientRect(),m=Wt(g),y=p.left+(g.clientLeft+parseFloat(m.paddingLeft))*x.x,E=p.top+(g.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,c*=x.y,l+=y,u+=E,S=pt(g),g=Yu(S)}}return ga({width:d,height:c,x:l,y:u})}function pd(e,t){const n=Wa(e).scrollLeft;return t?t.left+n:Tr(an(e)).left+n}function iv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:pd(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function hE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=an(r),a=t?Va(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=rn(1);const d=rn(0),c=sn(r);if((c||!c&&!s)&&((_o(r)!=="body"||Hs(i))&&(l=Wa(r)),sn(r))){const f=Tr(r);u=ao(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const h=i&&!c&&!s?iv(i,l,!0):rn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function gE(e){return Array.from(e.getClientRects())}function vE(e){const t=an(e),n=Wa(e),r=e.ownerDocument.body,o=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+pd(e);const a=-n.scrollTop;return Wt(r).direction==="rtl"&&(i+=ct(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function yE(e,t){const n=pt(e),r=an(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=dd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const xE=new Set(["absolute","fixed"]);function wE(e,t){const n=Tr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=sn(e)?ao(e):rn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function rp(e,t,n){let r;if(t==="viewport")r=yE(e,n);else if(t==="document")r=vE(an(e));else if(Vt(t))r=wE(t,n);else{const o=sv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ga(r)}function av(e,t){const n=sr(e);return n===t||!Vt(n)||No(n)?!1:Wt(n).position==="fixed"||av(n,t)}function SE(e,t){const n=t.get(e);if(n)return n;let r=Rs(e,[],!1).filter(a=>Vt(a)&&_o(a)!=="body"),o=null;const s=Wt(e).position==="fixed";let i=s?sr(e):e;for(;Vt(i)&&!No(i);){const a=Wt(i),l=cd(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&xE.has(o.position)||Hs(i)&&!l&&av(e,i))?r=r.filter(d=>d!==i):o=a,i=sr(i)}return t.set(e,r),r}function EE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Va(t)?[]:SE(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const c=rp(t,d,o);return u.top=ct(c.top,u.top),u.right=or(c.right,u.right),u.bottom=or(c.bottom,u.bottom),u.left=ct(c.left,u.left),u},rp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function CE(e){const{width:t,height:n}=ov(e);return{width:t,height:n}}function bE(e,t,n){const r=sn(t),o=an(t),s=n==="fixed",i=Tr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=rn(0);function u(){l.x=pd(o)}if(r||!r&&!s)if((_o(t)!=="body"||Hs(o))&&(a=Wa(t)),r){const f=Tr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?iv(o,a):rn(0),c=i.left+a.scrollLeft-l.x-d.x,h=i.top+a.scrollTop-l.y-d.y;return{x:c,y:h,width:i.width,height:i.height}}function zl(e){return Wt(e).position==="static"}function op(e,t){if(!sn(e)||Wt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function lv(e,t){const n=pt(e);if(Va(e))return n;if(!sn(e)){let o=sr(e);for(;o&&!No(o);){if(Vt(o)&&!zl(o))return o;o=sr(o)}return n}let r=op(e,t);for(;r&&iE(r)&&zl(r);)r=op(r,t);return r&&No(r)&&zl(r)&&!cd(r)?n:r||dE(e)||n}const kE=async function(e){const t=this.getOffsetParent||lv,n=this.getDimensions,r=await n(e.floating);return{reference:bE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NE(e){return Wt(e).direction==="rtl"}const PE={convertOffsetParentRelativeRectToViewportRelativeRect:hE,getDocumentElement:an,getClippingRect:EE,getOffsetParent:lv,getElementRects:kE,getClientRects:gE,getDimensions:CE,getScale:ao,isElement:Vt,isRTL:NE};function uv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function TE(e,t){let n=null,r;const o=an(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:c,width:h,height:f}=u;if(a||t(),!h||!f)return;const S=xi(c),g=xi(o.clientWidth-(d+h)),x=xi(o.clientHeight-(c+f)),p=xi(d),y={rootMargin:-S+"px "+-g+"px "+-x+"px "+-p+"px",threshold:ct(0,or(1,l))||1};let E=!0;function C(k){const b=k[0].intersectionRatio;if(b!==l){if(!E)return i();b?i(!1,b):r=setTimeout(()=>{i(!1,1e-7)},1e3)}b===1&&!uv(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(C,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,y)}n.observe(e)}return i(!0),s}function RE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=fd(e),d=o||s?[...u?Rs(u):[],...Rs(t)]:[];d.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});const c=u&&a?TE(u,n):null;let h=-1,f=null;i&&(f=new ResizeObserver(p=>{let[m]=p;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let S,g=l?Tr(e):null;l&&x();function x(){const p=Tr(e);g&&!uv(g,p)&&n(),g=p,S=requestAnimationFrame(x)}return n(),()=>{var p;d.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),c==null||c(),(p=f)==null||p.disconnect(),f=null,l&&cancelAnimationFrame(S)}}const jE=eE,OE=tE,AE=XS,ME=rE,_E=ZS,sp=qS,LE=nE,DE=(e,t,n)=>{const r=new Map,o={platform:PE,...n},s={...o.platform,_c:r};return YS(e,t,{...o,platform:s})};var IE=typeof document<"u",zE=function(){},Fi=IE?w.useLayoutEffect:zE;function va(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(!va(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!va(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function cv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ip(e,t){const n=cv(e);return Math.round(t*n)/n}function Fl(e){const t=w.useRef(e);return Fi(()=>{t.current=e}),t}function FE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,c]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=w.useState(r);va(h,r)||f(r);const[S,g]=w.useState(null),[x,p]=w.useState(null),m=w.useCallback(P=>{P!==k.current&&(k.current=P,g(P))},[]),y=w.useCallback(P=>{P!==b.current&&(b.current=P,p(P))},[]),E=s||S,C=i||x,k=w.useRef(null),b=w.useRef(null),N=w.useRef(d),j=l!=null,O=Fl(l),I=Fl(o),L=Fl(u),W=w.useCallback(()=>{if(!k.current||!b.current)return;const P={placement:t,strategy:n,middleware:h};I.current&&(P.platform=I.current),DE(k.current,b.current,P).then(R=>{const D={...R,isPositioned:L.current!==!1};_.current&&!va(N.current,D)&&(N.current=D,Us.flushSync(()=>{c(D)}))})},[h,t,n,I,L]);Fi(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(P=>({...P,isPositioned:!1})))},[u]);const _=w.useRef(!1);Fi(()=>(_.current=!0,()=>{_.current=!1}),[]),Fi(()=>{if(E&&(k.current=E),C&&(b.current=C),E&&C){if(O.current)return O.current(E,C,W);W()}},[E,C,W,O,j]);const H=w.useMemo(()=>({reference:k,floating:b,setReference:m,setFloating:y}),[m,y]),B=w.useMemo(()=>({reference:E,floating:C}),[E,C]),V=w.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const R=ip(B.floating,d.x),D=ip(B.floating,d.y);return a?{...P,transform:"translate("+R+"px, "+D+"px)",...cv(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,a,B.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:W,refs:H,elements:B,floatingStyles:V}),[d,W,H,B,V])}const $E=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?sp({element:r.current,padding:o}).fn(n):{}:r?sp({element:r,padding:o}).fn(n):{}}}},BE=(e,t)=>({...jE(e),options:[e,t]}),UE=(e,t)=>({...OE(e),options:[e,t]}),VE=(e,t)=>({...LE(e),options:[e,t]}),WE=(e,t)=>({...AE(e),options:[e,t]}),HE=(e,t)=>({...ME(e),options:[e,t]}),QE=(e,t)=>({..._E(e),options:[e,t]}),KE=(e,t)=>({...$E(e),options:[e,t]});var GE="Arrow",dv=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return v.jsx(Ne.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});dv.displayName=GE;var YE=dv;function qE(e){const[t,n]=w.useState(void 0);return Sn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var fv="Popper",[pv,mv]=Vs(fv),[Uk,hv]=pv(fv),gv="PopperAnchor",vv=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=hv(gv,n),i=w.useRef(null),a=qe(t,i);return w.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:v.jsx(Ne.div,{...o,ref:a})});vv.displayName=gv;var md="PopperContent",[XE,ZE]=pv(md),yv=w.forwardRef((e,t)=>{var Y,we,Oe,be,te,F;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:S,...g}=e,x=hv(md,n),[p,m]=w.useState(null),y=qe(t,J=>m(J)),[E,C]=w.useState(null),k=qE(E),b=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,j=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(u)?u:[u],L=I.length>0,W={padding:O,boundary:I.filter(eC),altBoundary:L},{refs:_,floatingStyles:H,placement:B,isPositioned:V,middlewareData:P}=FE({strategy:"fixed",placement:j,whileElementsMounted:(...J)=>RE(...J,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[BE({mainAxis:o+N,alignmentAxis:i}),l&&UE({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?VE():void 0,...W}),l&&WE({...W}),HE({...W,apply:({elements:J,rects:le,availableWidth:Te,availableHeight:Ve})=>{const{width:at,height:lt}=le.reference,We=J.floating.style;We.setProperty("--radix-popper-available-width",`${Te}px`),We.setProperty("--radix-popper-available-height",`${Ve}px`),We.setProperty("--radix-popper-anchor-width",`${at}px`),We.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),E&&KE({element:E,padding:a}),tC({arrowWidth:b,arrowHeight:N}),h&&QE({strategy:"referenceHidden",...W})]}),[R,D]=Sv(B),U=on(S);Sn(()=>{V&&(U==null||U())},[V,U]);const $=(Y=P.arrow)==null?void 0:Y.x,G=(we=P.arrow)==null?void 0:we.y,Q=((Oe=P.arrow)==null?void 0:Oe.centerOffset)!==0,[se,xe]=w.useState();return Sn(()=>{p&&xe(window.getComputedStyle(p).zIndex)},[p]),v.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:V?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(be=P.transformOrigin)==null?void 0:be.x,(te=P.transformOrigin)==null?void 0:te.y].join(" "),...((F=P.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(XE,{scope:n,placedSide:R,onArrowChange:C,arrowX:$,arrowY:G,shouldHideArrow:Q,children:v.jsx(Ne.div,{"data-side":R,"data-align":D,...g,ref:y,style:{...g.style,animation:V?void 0:"none"}})})})});yv.displayName=md;var xv="PopperArrow",JE={top:"bottom",right:"left",bottom:"top",left:"right"},wv=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ZE(xv,r),i=JE[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(YE,{...o,ref:n,style:{...o.style,display:"block"}})})});wv.displayName=xv;function eC(e){return e!==null}var tC=e=>({name:"transformOrigin",options:e,fn(t){var x,p,m;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Sv(n),c={start:"0%",center:"50%",end:"100%"}[d],h=(((p=o.arrow)==null?void 0:p.x)??0)+a/2,f=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let S="",g="";return u==="bottom"?(S=i?c:`${h}px`,g=`${-l}px`):u==="top"?(S=i?c:`${h}px`,g=`${r.floating.height+l}px`):u==="right"?(S=`${-l}px`,g=i?c:`${f}px`):u==="left"&&(S=`${r.floating.width+l}px`,g=i?c:`${f}px`),{data:{x:S,y:g}}}});function Sv(e){const[t,n="center"]=e.split("-");return[t,n]}var nC=vv,rC=yv,oC=wv,[Ha,Vk]=Vs("Tooltip",[mv]),hd=mv(),Ev="TooltipProvider",sC=700,ap="tooltip.open",[iC,Cv]=Ha(Ev),bv=e=>{const{__scopeTooltip:t,delayDuration:n=sC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(iC,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};bv.displayName=Ev;var kv="Tooltip",[Wk,Qa]=Ha(kv),qu="TooltipTrigger",aC=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qa(qu,n),s=Cv(qu,n),i=hd(n),a=w.useRef(null),l=qe(t,a,o.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),c=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),v.jsx(nC,{asChild:!0,...i,children:v.jsx(Ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});aC.displayName=qu;var lC="TooltipPortal",[Hk,uC]=Ha(lC,{forceMount:void 0}),Po="TooltipContent",Nv=w.forwardRef((e,t)=>{const n=uC(Po,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Qa(Po,e.__scopeTooltip);return v.jsx(Oo,{present:r||i.open,children:i.disableHoverableContent?v.jsx(Pv,{side:o,...s,ref:t}):v.jsx(cC,{side:o,...s,ref:t})})}),cC=w.forwardRef((e,t)=>{const n=Qa(Po,e.__scopeTooltip),r=Cv(Po,e.__scopeTooltip),o=w.useRef(null),s=qe(t,o),[i,a]=w.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,h=w.useCallback(()=>{a(null),c(!1)},[c]),f=w.useCallback((S,g)=>{const x=S.currentTarget,p={x:S.clientX,y:S.clientY},m=hC(p,x.getBoundingClientRect()),y=gC(p,m),E=vC(g.getBoundingClientRect()),C=xC([...y,...E]);a(C),c(!0)},[c]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(l&&d){const S=x=>f(x,d),g=x=>f(x,l);return l.addEventListener("pointerleave",S),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",g)}}},[l,d,f,h]),w.useEffect(()=>{if(i){const S=g=>{const x=g.target,p={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!yC(p,i);m?h():y&&(h(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[l,d,i,u,h]),v.jsx(Pv,{...e,ref:s})}),[dC,fC]=Ha(kv,{isInside:!1}),pC=g1("TooltipContent"),Pv=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Qa(Po,n),u=hd(n),{onClose:d}=l;return w.useEffect(()=>(document.addEventListener(ap,d),()=>document.removeEventListener(ap,d)),[d]),w.useEffect(()=>{if(l.trigger){const c=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),v.jsx(Fa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:v.jsxs(rC,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.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:[v.jsx(pC,{children:r}),v.jsx(dC,{scope:n,isInside:!0,children:v.jsx($1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Nv.displayName=Po;var Tv="TooltipArrow",mC=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hd(n);return fC(Tv,n).isInside?null:v.jsx(oC,{...o,...r,ref:t})});mC.displayName=Tv;function hC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gC(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 vC(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 yC(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=h>r&&n<(c-u)*(r-d)/(h-d)+u&&(o=!o)}return o}function xC(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),wC(t)}function wC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var SC=bv,Rv=Nv;const EC=SC,CC=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(Rv,{ref:r,sideOffset:t,className:me("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}));CC.displayName=Rv.displayName;var Ka=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(){}},Ga=typeof window>"u"||"Deno"in globalThis;function _t(){}function bC(e,t){return typeof e=="function"?e(t):e}function kC(e){return typeof e=="number"&&e>=0&&e!==1/0}function NC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xu(e,t){return typeof e=="function"?e(t):e}function PC(e,t){return typeof e=="function"?e(t):e}function lp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==gd(i,t.options))return!1}else if(!Os(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function up(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(js(t.options.mutationKey)!==js(s))return!1}else if(!Os(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function gd(e,t){return((t==null?void 0:t.queryKeyHashFn)||js)(e)}function js(e){return JSON.stringify(e,(t,n)=>Zu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Os(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Os(e[n],t[n])):!1}function jv(e,t){if(e===t)return e;const n=cp(e)&&cp(t);if(n||Zu(e)&&Zu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d{setTimeout(t,e)})}function RC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jv(e,t):t}function jC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function OC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vd=Symbol();function Ov(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var hr,$n,co,Wp,AC=(Wp=class extends Ka{constructor(){super();ne(this,hr);ne(this,$n);ne(this,co);q(this,co,t=>{if(!Ga&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,$n)||this.setEventListener(T(this,co))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,$n))==null||t.call(this),q(this,$n,void 0))}setEventListener(t){var n;q(this,co,t),(n=T(this,$n))==null||n.call(this),q(this,$n,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,hr)!==t&&(q(this,hr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,hr)=="boolean"?T(this,hr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},hr=new WeakMap,$n=new WeakMap,co=new WeakMap,Wp),Av=new AC,fo,Bn,po,Hp,MC=(Hp=class extends Ka{constructor(){super();ne(this,fo,!0);ne(this,Bn);ne(this,po);q(this,po,t=>{if(!Ga&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Bn)||this.setEventListener(T(this,po))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Bn))==null||t.call(this),q(this,Bn,void 0))}setEventListener(t){var n;q(this,po,t),(n=T(this,Bn))==null||n.call(this),q(this,Bn,t(this.setOnline.bind(this)))}setOnline(t){T(this,fo)!==t&&(q(this,fo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,fo)}},fo=new WeakMap,Bn=new WeakMap,po=new WeakMap,Hp),ya=new MC;function _C(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function LC(e){return Math.min(1e3*2**e,3e4)}function Mv(e){return(e??"online")==="online"?ya.isOnline():!0}var _v=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $l(e){return e instanceof _v}function Lv(e){let t=!1,n=0,r=!1,o;const s=_C(),i=g=>{var x;r||(h(new _v(g)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Av.isFocused()&&(e.networkMode==="always"||ya.isOnline())&&e.canRun(),d=()=>Mv(e.networkMode)&&e.canRun(),c=g=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,g),o==null||o(),s.resolve(g))},h=g=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,g),o==null||o(),s.reject(g))},f=()=>new Promise(g=>{var x;o=p=>{(r||u())&&g(p)},(x=e.onPause)==null||x.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),S=()=>{if(r)return;let g;const x=n===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(p){g=Promise.reject(p)}Promise.resolve(g).then(c).catch(p=>{var k;if(r)return;const m=e.retry??(Ga?0:3),y=e.retryDelay??LC,E=typeof y=="function"?y(n,p):y,C=m===!0||typeof m=="number"&&nu()?void 0:f()).then(()=>{t?h(p):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?S():f().then(S),s)}}var DC=e=>setTimeout(e,0);function IC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=DC;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ge=IC(),gr,Qp,Dv=(Qp=class{constructor(){ne(this,gr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kC(this.gcTime)&&q(this,gr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ga?1/0:5*60*1e3))}clearGcTimeout(){T(this,gr)&&(clearTimeout(T(this,gr)),q(this,gr,void 0))}},gr=new WeakMap,Qp),mo,vr,vt,yr,$e,Ls,xr,Lt,cn,Kp,zC=(Kp=class extends Dv{constructor(t){super();ne(this,Lt);ne(this,mo);ne(this,vr);ne(this,vt);ne(this,yr);ne(this,$e);ne(this,Ls);ne(this,xr);q(this,xr,!1),q(this,Ls,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,yr,t.client),q(this,vt,T(this,yr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,mo,$C(this.options)),this.state=t.state??T(this,mo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,$e))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Ls),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,vt).remove(this)}setData(t,n){const r=RC(this.state.data,t,this.options);return Ie(this,Lt,cn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ie(this,Lt,cn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,$e))==null?void 0:r.promise;return(o=T(this,$e))==null||o.cancel(t),n?n.then(_t).catch(_t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,mo))}isActive(){return this.observers.some(t=>PC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xu(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:!NC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,$e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,$e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,vt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,$e)&&(T(this,xr)?T(this,$e).cancel({revert:!0}):T(this,$e).cancelRetry()),this.scheduleGc()),T(this,vt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,Lt,cn).call(this,{type:"invalidate"})}fetch(t,n){var u,d,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,$e))return T(this,$e).continueRetry(),T(this,$e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(q(this,xr,!0),r.signal)})},s=()=>{const h=Ov(this.options,n),S=(()=>{const g={client:T(this,yr),queryKey:this.queryKey,meta:this.meta};return o(g),g})();return q(this,xr,!1),this.options.persister?this.options.persister(h,S,this):h(S)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,yr),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),q(this,vr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Ie(this,Lt,cn).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const l=h=>{var f,S,g,x;$l(h)&&h.silent||Ie(this,Lt,cn).call(this,{type:"error",error:h}),$l(h)||((S=(f=T(this,vt).config).onError)==null||S.call(f,h,this),(x=(g=T(this,vt).config).onSettled)==null||x.call(g,this.state.data,h,this)),this.scheduleGc()};return q(this,$e,Lv({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,S,g,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(p){l(p);return}(S=(f=T(this,vt).config).onSuccess)==null||S.call(f,h,this),(x=(g=T(this,vt).config).onSettled)==null||x.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{Ie(this,Lt,cn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Ie(this,Lt,cn).call(this,{type:"pause"})},onContinue:()=>{Ie(this,Lt,cn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,$e).start()}},mo=new WeakMap,vr=new WeakMap,vt=new WeakMap,yr=new WeakMap,$e=new WeakMap,Ls=new WeakMap,xr=new WeakMap,Lt=new WeakSet,cn=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,...FC(r.data,this.options),fetchMeta:t.meta??null};case"success":return q(this,vr,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 $l(o)&&o.revert&&T(this,vr)?{...T(this,vr),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),Ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,vt).notify({query:this,type:"updated",action:t})})},Kp);function FC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $C(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 Yt,Gp,BC=(Gp=class extends Ka{constructor(t={}){super();ne(this,Yt);this.config=t,q(this,Yt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??gd(o,n);let i=this.get(s);return i||(i=new zC({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){T(this,Yt).has(t.queryHash)||(T(this,Yt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Yt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Yt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Yt).get(t)}getAll(){return[...T(this,Yt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>lp(t,r)):n}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yt=new WeakMap,Gp),qt,He,wr,Xt,_n,Yp,UC=(Yp=class extends Dv{constructor(t){super();ne(this,Xt);ne(this,qt);ne(this,He);ne(this,wr);this.mutationId=t.mutationId,q(this,He,t.mutationCache),q(this,qt,[]),this.state=t.state||VC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,qt).includes(t)||(T(this,qt).push(t),this.clearGcTimeout(),T(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,qt,T(this,qt).filter(n=>n!==t)),this.scheduleGc(),T(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,He).remove(this))}continue(){var t;return((t=T(this,wr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,d,c,h,f,S,g,x,p,m,y,E,C,k,b,N;const n=()=>{Ie(this,Xt,_n).call(this,{type:"continue"})};q(this,wr,Lv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,O)=>{Ie(this,Xt,_n).call(this,{type:"failed",failureCount:j,error:O})},onPause:()=>{Ie(this,Xt,_n).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,He).canRun(this)}));const r=this.state.status==="pending",o=!T(this,wr).canStart();try{if(r)n();else{Ie(this,Xt,_n).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=T(this,He).config).onMutate)==null?void 0:i.call(s,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&Ie(this,Xt,_n).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const j=await T(this,wr).start();return await((d=(u=T(this,He).config).onSuccess)==null?void 0:d.call(u,j,t,this.state.context,this)),await((h=(c=this.options).onSuccess)==null?void 0:h.call(c,j,t,this.state.context)),await((S=(f=T(this,He).config).onSettled)==null?void 0:S.call(f,j,null,this.state.variables,this.state.context,this)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,j,null,t,this.state.context)),Ie(this,Xt,_n).call(this,{type:"success",data:j}),j}catch(j){try{throw await((m=(p=T(this,He).config).onError)==null?void 0:m.call(p,j,t,this.state.context,this)),await((E=(y=this.options).onError)==null?void 0:E.call(y,j,t,this.state.context)),await((k=(C=T(this,He).config).onSettled)==null?void 0:k.call(C,void 0,j,this.state.variables,this.state.context,this)),await((N=(b=this.options).onSettled)==null?void 0:N.call(b,void 0,j,t,this.state.context)),j}finally{Ie(this,Xt,_n).call(this,{type:"error",error:j})}}finally{T(this,He).runNext(this)}}},qt=new WeakMap,He=new WeakMap,wr=new WeakMap,Xt=new WeakSet,_n=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),Ge.batch(()=>{T(this,qt).forEach(r=>{r.onMutationUpdate(t)}),T(this,He).notify({mutation:this,type:"updated",action:t})})},Yp);function VC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pn,Dt,Ds,qp,WC=(qp=class extends Ka{constructor(t={}){super();ne(this,pn);ne(this,Dt);ne(this,Ds);this.config=t,q(this,pn,new Set),q(this,Dt,new Map),q(this,Ds,0)}build(t,n,r){const o=new UC({mutationCache:this,mutationId:++Zs(this,Ds)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,pn).add(t);const n=wi(t);if(typeof n=="string"){const r=T(this,Dt).get(n);r?r.push(t):T(this,Dt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,pn).delete(t)){const n=wi(t);if(typeof n=="string"){const r=T(this,Dt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,Dt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=wi(t);if(typeof n=="string"){const r=T(this,Dt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=wi(t);if(typeof n=="string"){const o=(r=T(this,Dt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ge.batch(()=>{T(this,pn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,pn).clear(),T(this,Dt).clear()})}getAll(){return Array.from(T(this,pn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>up(n,r))}findAll(t={}){return this.getAll().filter(n=>up(t,n))}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ge.batch(()=>Promise.all(t.map(n=>n.continue().catch(_t))))}},pn=new WeakMap,Dt=new WeakMap,Ds=new WeakMap,qp);function wi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function fp(e){return{onFetch:(t,n)=>{var d,c,h,f,S;const r=t.options,o=(h=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},p=Ov(t.options,t.fetchOptions),m=async(y,E,C)=>{if(g)return Promise.reject();if(E==null&&y.pages.length)return Promise.resolve(y);const b=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};return x(I),I})(),N=await p(b),{maxPages:j}=t.options,O=C?OC:jC;return{pages:O(y.pages,N,j),pageParams:O(y.pageParams,E,j)}};if(o&&s.length){const y=o==="backward",E=y?HC:pp,C={pages:s,pageParams:i},k=E(r,C);a=await m(C,k,y)}else{const y=e??s.length;do{const E=l===0?i[0]??r.initialPageParam:pp(r,a);if(l>0&&E==null)break;a=await m(a,E),l++}while(l{var g,x;return(x=(g=t.options).persister)==null?void 0:x.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function pp(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 HC(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 Se,Un,Vn,ho,go,Wn,vo,yo,Xp,QC=(Xp=class{constructor(e={}){ne(this,Se);ne(this,Un);ne(this,Vn);ne(this,ho);ne(this,go);ne(this,Wn);ne(this,vo);ne(this,yo);q(this,Se,e.queryCache||new BC),q(this,Un,e.mutationCache||new WC),q(this,Vn,e.defaultOptions||{}),q(this,ho,new Map),q(this,go,new Map),q(this,Wn,0)}mount(){Zs(this,Wn)._++,T(this,Wn)===1&&(q(this,vo,Av.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Se).onFocus())})),q(this,yo,ya.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Se).onOnline())})))}unmount(){var e,t;Zs(this,Wn)._--,T(this,Wn)===0&&((e=T(this,vo))==null||e.call(this),q(this,vo,void 0),(t=T(this,yo))==null||t.call(this),q(this,yo,void 0))}isFetching(e){return T(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Un).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Se).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Xu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,Se).get(r.queryHash),s=o==null?void 0:o.state.data,i=bC(t,s);if(i!==void 0)return T(this,Se).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ge.batch(()=>T(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Se);Ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Se);return Ge.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ge.batch(()=>T(this,Se).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(_t).catch(_t)}invalidateQueries(e,t={}){return Ge.batch(()=>(T(this,Se).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=Ge.batch(()=>T(this,Se).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(_t)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(_t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Se).build(this,t);return n.isStaleByTime(Xu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_t).catch(_t)}fetchInfiniteQuery(e){return e.behavior=fp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_t).catch(_t)}ensureInfiniteQueryData(e){return e.behavior=fp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ya.isOnline()?T(this,Un).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Se)}getMutationCache(){return T(this,Un)}getDefaultOptions(){return T(this,Vn)}setDefaultOptions(e){q(this,Vn,e)}setQueryDefaults(e,t){T(this,ho).set(js(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,ho).values()],n={};return t.forEach(r=>{Os(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,go).set(js(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,go).values()],n={};return t.forEach(r=>{Os(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gd(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===vd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Se).clear(),T(this,Un).clear()}},Se=new WeakMap,Un=new WeakMap,Vn=new WeakMap,ho=new WeakMap,go=new WeakMap,Wn=new WeakMap,vo=new WeakMap,yo=new WeakMap,Xp),KC=w.createContext(void 0),GC=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(KC.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 xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Iv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qC(){return Math.random().toString(36).substr(2,8)}function hp(e,t){return{usr:e.state,key:e.key,idx:t}}function Ju(e,t,n,r){return n===void 0&&(n=null),xa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ya(t):t,{state:n,key:t&&t.key||r||qC()})}function zv(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 Ya(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 XC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Kn.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(xa({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function c(){a=Kn.Pop;let x=d(),p=x==null?null:x-u;u=x,l&&l({action:a,location:g.location,delta:p})}function h(x,p){a=Kn.Push;let m=Ju(g.location,x,p);u=d()+1;let y=hp(m,u),E=g.createHref(m);try{i.pushState(y,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}s&&l&&l({action:a,location:g.location,delta:1})}function f(x,p){a=Kn.Replace;let m=Ju(g.location,x,p);u=d();let y=hp(m,u),E=g.createHref(m);i.replaceState(y,"",E),s&&l&&l({action:a,location:g.location,delta:0})}function S(x){let p=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof x=="string"?x:zv(x);return m=m.replace(/ $/,"%20"),it(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let g={get action(){return a},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(mp,c),l=x,()=>{o.removeEventListener(mp,c),l=null}},createHref(x){return t(o,x)},createURL:S,encodeLocation(x){let p=S(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:f,go(x){return i.go(x)}};return g}var gp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gp||(gp={}));function ZC(e,t,n){return n===void 0&&(n="/"),JC(e,t,n,!1)}function JC(e,t,n,r){let o=typeof t=="string"?Ya(t):t,s=Bv(o.pathname||"/",n);if(s==null)return null;let i=Fv(e);e2(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(it(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=lo([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(it(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fv(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:a2(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of $v(s.path))o(s,i,l)}),t}function $v(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=$v(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function e2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:l2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const t2=/^:[\w-]+$/,n2=3,r2=2,o2=1,s2=10,i2=-2,vp=e=>e==="*";function a2(e,t){let n=e.split("/"),r=n.length;return n.some(vp)&&(r+=i2),t&&(r+=r2),n.filter(o=>!vp(o)).reduce((o,s)=>o+(t2.test(s)?n2:s===""?o2:s2),r)}function l2(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 u2(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:h,isOptional:f}=d;if(h==="*"){let g=a[c]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const S=a[c];return f&&!S?u[h]=void 0:u[h]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function c2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Iv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function d2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Iv(!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 Bv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const lo=e=>e.join("/").replace(/\/\/+/g,"/"),f2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function p2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Uv=["post","put","patch","delete"];new Set(Uv);const m2=["get",...Uv];new Set(m2);/** * 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 wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},a,x.params),pathname:lo([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:lo([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&g?w.createElement(qa.Provider,{value:{location:wa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Kn.Pop}},g):g}function x2(){let e=P2(),t=p2(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 w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,null)}const w2=w.createElement(x2,null);class S2 extends w.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?w.createElement(Xa.Provider,{value:this.props.routeContext},w.createElement(Wv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E2(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(h2);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Xa.Provider,{value:t},r)}function C2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||it(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,c,h)=>{let f,S=!1,g=null,x=null;n&&(f=a&&c.route.id?a[c.route.id]:void 0,g=c.route.errorElement||w2,l&&(u<0&&h===0?(S=!0,x=null):u===h&&(S=!0,x=c.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,h+1)),m=()=>{let y;return f?y=g:S?y=x:c.route.Component?y=w.createElement(c.route.Component,null):c.route.element?y=c.route.element:y=d,w.createElement(E2,{match:c,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:y})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?w.createElement(S2,{location:n.location,revalidation:n.revalidation,component:g,error:f,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var ec=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}(ec||{});function b2(e){let t=w.useContext(g2);return t||it(!1),t}function k2(e){let t=w.useContext(Xa);return t||it(!1),t}function N2(e){let t=k2(),n=t.matches[t.matches.length-1];return n.route.id||it(!1),n.route.id}function P2(){var e;let t=w.useContext(Wv),n=b2(ec.UseRouteError),r=N2(ec.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function T2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function tc(e){it(!1)}function R2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Kn.Pop,navigator:s,static:i=!1,future:a}=e;yd()&&it(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:s,static:i,future:wa({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=Ya(r));let{pathname:d="/",search:c="",hash:h="",state:f=null,key:S="default"}=r,g=w.useMemo(()=>{let x=Bv(d,l);return x==null?null:{location:{pathname:x,search:c,hash:h,state:f,key:S},navigationType:o}},[l,d,c,h,f,S,o]);return g==null?null:w.createElement(Vv.Provider,{value:u},w.createElement(qa.Provider,{children:n,value:g}))}function j2(e){let{children:t,location:n}=e;return v2(nc(t),n)}new Promise(()=>{});function nc(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let s=[...t,o];if(r.type===w.Fragment){n.push.apply(n,nc(r.props.children,s));return}r.type!==tc&&it(!1),!r.props.index||!r.props.children||it(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=nc(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const O2="6";try{window.__reactRouterVersion=O2}catch{}const A2="startTransition",xp=cc[A2];function M2(e){let{basename:t,children:n,future:r,window:o}=e,s=w.useRef();s.current==null&&(s.current=YC({window:o,v5Compat:!0}));let i=s.current,[a,l]=w.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=w.useCallback(c=>{u&&xp?xp(()=>l(c)):l(c)},[l,u]);return w.useLayoutEffect(()=>i.listen(d),[i,d]),w.useEffect(()=>T2(r),[r]),w.createElement(R2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var wp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wp||(wp={}));var Sp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sp||(Sp={}));const _2=Bg("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"}}),Qe=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?m1:"button";return v.jsx(i,{className:me(_2({variant:t,size:n,className:e})),ref:s,...o})});Qe.displayName="Button";const Qv=w.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{type:t,className:me("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Qv.displayName="Input";const $i=w.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:me("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));$i.displayName="Card";const L2=w.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:me("flex flex-col space-y-1.5 p-6",e),...t}));L2.displayName="CardHeader";const D2=w.forwardRef(({className:e,...t},n)=>v.jsx("h3",{ref:n,className:me("text-2xl font-semibold leading-none tracking-tight",e),...t}));D2.displayName="CardTitle";const I2=w.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:me("text-sm text-muted-foreground",e),...t}));I2.displayName="CardDescription";const z2=w.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:me("p-6 pt-0",e),...t}));z2.displayName="CardContent";const F2=w.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:me("flex items-center p-6 pt-0",e),...t}));F2.displayName="CardFooter";function $2(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ep(e){return $2(e)||Array.isArray(e)}function B2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function xd(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(i=>{const a=e[i],l=t[i];return typeof a=="function"?`${a}`==`${l}`:!Ep(a)||!Ep(l)?a===l:xd(a,l)})}function Cp(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function U2(e,t){if(e.length!==t.length)return!1;const n=Cp(e),r=Cp(t);return n.every((o,s)=>{const i=r[s];return xd(o,i)})}function wd(e){return typeof e=="number"}function rc(e){return typeof e=="string"}function Za(e){return typeof e=="boolean"}function bp(e){return Object.prototype.toString.call(e)==="[object Object]"}function ge(e){return Math.abs(e)}function Sd(e){return Math.sign(e)}function us(e,t){return ge(e-t)}function V2(e,t){if(e===0||t===0||ge(e)<=ge(t))return 0;const n=us(ge(e),ge(t));return ge(n/e)}function W2(e){return Math.round(e*100)/100}function As(e){return Ms(e).map(Number)}function Bt(e){return e[Qs(e)]}function Qs(e){return Math.max(0,e.length-1)}function Ed(e,t){return t===Qs(e)}function kp(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Ms(e){return Object.keys(e)}function Kv(e,t){return[e,t].reduce((n,r)=>(Ms(r).forEach(o=>{const s=n[o],i=r[o],a=bp(s)&&bp(i);n[o]=a?Kv(s,i):i}),n),{})}function oc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function H2(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(l){return s(l)/2}function s(l){return t-l}function i(l,u){return rc(e)?n[e](l):e(t,l,u)}return{measure:i}}function _s(){let e=[];function t(o,s,i,a={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(s,i,a),l=()=>o.removeEventListener(s,i,a);else{const u=o;u.addListener(i),l=()=>u.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function Q2(e,t,n,r){const o=_s(),s=1e3/60;let i=null,a=0,l=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&S()})}function d(){f(),o.clear()}function c(x){if(!l)return;i||(i=x,n(),n());const p=x-i;for(i=x,a+=p;a>=s;)n(),a-=s;const m=a/s;r(m),l&&(l=t.requestAnimationFrame(c))}function h(){l||(l=t.requestAnimationFrame(c))}function f(){t.cancelAnimationFrame(l),i=null,a=0,l=0}function S(){i=null,a=0}return{init:u,destroy:d,start:h,stop:f,update:n,render:r}}function K2(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",i=!r&&n?-1:1,a=d(),l=c();function u(S){const{height:g,width:x}=S;return r?g:x}function d(){return r?"top":n?"right":"left"}function c(){return r?"bottom":n?"left":"right"}function h(S){return S*i}return{scroll:o,cross:s,startEdge:a,endEdge:l,measureSize:u,direction:h}}function Rr(e=0,t=0){const n=ge(e-t);function r(u){return ut}function s(u){return r(u)||o(u)}function i(u){return s(u)?r(u)?e:t:u}function a(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:a}}function Gv(e,t,n){const{constrain:r}=Rr(0,e),o=e+1;let s=i(t);function i(h){return n?ge((o+h)%o):r(h)}function a(){return s}function l(h){return s=i(h),c}function u(h){return d().set(a()+h)}function d(){return Gv(e,a(),n)}const c={get:a,set:l,add:u,clone:d};return c}function G2(e,t,n,r,o,s,i,a,l,u,d,c,h,f,S,g,x,p,m){const{cross:y,direction:E}=e,C=["INPUT","SELECT","TEXTAREA"],k={passive:!1},b=_s(),N=_s(),j=Rr(50,225).constrain(f.measure(20)),O={mouse:300,touch:400},I={mouse:500,touch:600},L=S?43:25;let W=!1,_=0,H=0,B=!1,V=!1,P=!1,R=!1;function D(F){if(!m)return;function J(Te){(Za(m)||m(F,Te))&&xe(Te)}const le=t;b.add(le,"dragstart",Te=>Te.preventDefault(),k).add(le,"touchmove",()=>{},k).add(le,"touchend",()=>{}).add(le,"touchstart",J).add(le,"mousedown",J).add(le,"touchcancel",we).add(le,"contextmenu",we).add(le,"click",Oe,!0)}function U(){b.clear(),N.clear()}function $(){const F=R?n:t;N.add(F,"touchmove",Y,k).add(F,"touchend",we).add(F,"mousemove",Y,k).add(F,"mouseup",we)}function G(F){const J=F.nodeName||"";return C.includes(J)}function Q(){return(S?I:O)[R?"mouse":"touch"]}function se(F,J){const le=c.add(Sd(F)*-1),Te=d.byDistance(F,!S).distance;return S||ge(F)=2,!(J&&F.button!==0)&&(G(F.target)||(B=!0,s.pointerDown(F),u.useFriction(0).useDuration(0),o.set(i),$(),_=s.readPoint(F),H=s.readPoint(F,y),h.emit("pointerDown")))}function Y(F){if(!oc(F,r)&&F.touches.length>=2)return we(F);const le=s.readPoint(F),Te=s.readPoint(F,y),Ve=us(le,_),at=us(Te,H);if(!V&&!R&&(!F.cancelable||(V=Ve>at,!V)))return we(F);const lt=s.pointerMove(F);Ve>g&&(P=!0),u.useFriction(.3).useDuration(.75),a.start(),o.add(E(lt)),F.preventDefault()}function we(F){const le=d.byDistance(0,!1).index!==c.get(),Te=s.pointerUp(F)*Q(),Ve=se(E(Te),le),at=V2(Te,Ve),lt=L-10*at,We=p+at/50;V=!1,B=!1,N.clear(),u.useDuration(lt).useFriction(We),l.distance(Ve,!S),R=!1,h.emit("pointerUp")}function Oe(F){P&&(F.stopPropagation(),F.preventDefault(),P=!1)}function be(){return B}return{init:D,destroy:U,pointerDown:be}}function Y2(e,t){let r,o;function s(c){return c.timeStamp}function i(c,h){const S=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(oc(c,t)?c:c.touches[0])[S]}function a(c){return r=c,o=c,i(c)}function l(c){const h=i(c)-i(o),f=s(c)-s(r)>170;return o=c,f&&(r=c),h}function u(c){if(!r||!o)return 0;const h=i(o)-i(r),f=s(c)-s(r),S=s(c)-s(o)>170,g=h/f;return f&&!S&&ge(g)>.1?g:0}return{pointerDown:a,pointerMove:l,pointerUp:u,readPoint:i}}function q2(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:s,offsetHeight:i}=n;return{top:r,right:o+s,bottom:r+i,left:o,width:s,height:i}}return{measure:e}}function X2(e){function t(r){return e*(r/100)}return{measure:t}}function Z2(e,t,n,r,o,s,i){const a=[e].concat(r);let l,u,d=[],c=!1;function h(x){return o.measureSize(i.measure(x))}function f(x){if(!s)return;u=h(e),d=r.map(h);function p(m){for(const y of m){if(c)return;const E=y.target===e,C=r.indexOf(y.target),k=E?u:d[C],b=h(E?e:r[C]);if(ge(b-k)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(m=>{(Za(s)||s(x,m))&&p(m)}),n.requestAnimationFrame(()=>{a.forEach(m=>l.observe(m))})}function S(){c=!0,l&&l.disconnect()}return{init:f,destroy:S}}function J2(e,t,n,r,o,s){let i=0,a=0,l=o,u=s,d=e.get(),c=0;function h(){const k=r.get()-e.get(),b=!l;let N=0;return b?(i=0,n.set(r),e.set(r),N=k):(n.set(e),i+=k/l,i*=u,d+=i,e.add(i),N=d-c),a=Sd(N),c=d,C}function f(){const k=r.get()-t.get();return ge(k)<.001}function S(){return l}function g(){return a}function x(){return i}function p(){return y(o)}function m(){return E(s)}function y(k){return l=k,C}function E(k){return u=k,C}const C={direction:g,duration:S,velocity:x,seek:h,settled:f,useBaseFriction:m,useBaseDuration:p,useFriction:E,useDuration:y};return C}function eb(e,t,n,r,o){const s=o.measure(10),i=o.measure(50),a=Rr(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(f){if(!u())return;const S=e.reachedMin(t.get())?"min":"max",g=ge(e[S]-t.get()),x=n.get()-t.get(),p=a.constrain(g/i);n.subtract(x*p),!f&&ge(x){const{min:x,max:p}=s,m=s.constrain(S),y=!g,E=Ed(n,g);return y?p:E||u(x,m)?x:u(p,m)?p:m}).map(S=>parseFloat(S.toFixed(3)))}function h(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return i;const{min:S,max:g}=a;return i.slice(S,g)}return{snapsContained:l,scrollContainLimit:a}}function nb(e,t,n){const r=t[0],o=n?r-e:Bt(t);return{limit:Rr(o,r)}}function rb(e,t,n,r){const s=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:l}=Rr(s,i);function u(h){return h===1?l(n.get()):h===-1?a(n.get()):!1}function d(h){if(!u(h))return;const f=e*(h*-1);r.forEach(S=>S.add(f))}return{loop:d}}function ob(e){const{max:t,length:n}=e;function r(s){const i=s-t;return n?i/-n:0}return{get:r}}function sb(e,t,n,r,o){const{startEdge:s,endEdge:i}=e,{groupSlides:a}=o,l=c().map(t.measure),u=h(),d=f();function c(){return a(r).map(g=>Bt(g)[i]-g[0][s]).map(ge)}function h(){return r.map(g=>n[s]-g[s]).map(g=>-ge(g))}function f(){return a(u).map(g=>g[0]).map((g,x)=>g+l[x])}return{snaps:u,snapsAligned:d}}function ib(e,t,n,r,o,s){const{groupSlides:i}=o,{min:a,max:l}=r,u=d();function d(){const h=i(s),f=!e||t==="keepSnaps";return n.length===1?[s]:f?h:h.slice(a,l).map((S,g,x)=>{const p=!g,m=Ed(x,g);if(p){const y=Bt(x[0])+1;return kp(y)}if(m){const y=Qs(s)-Bt(x)[0]+1;return kp(y,Bt(x)[0])}return S})}return{slideRegistry:u}}function ab(e,t,n,r,o){const{reachedAny:s,removeOffset:i,constrain:a}=r;function l(S){return S.concat().sort((g,x)=>ge(g)-ge(x))[0]}function u(S){const g=e?i(S):a(S),x=t.map((m,y)=>({diff:d(m-g,0),index:y})).sort((m,y)=>ge(m.diff)-ge(y.diff)),{index:p}=x[0];return{index:p,distance:g}}function d(S,g){const x=[S,S+n,S-n];if(!e)return S;if(!g)return l(x);const p=x.filter(m=>Sd(m)===g);return p.length?l(p):Bt(x)-n}function c(S,g){const x=t[S]-o.get(),p=d(x,g);return{index:S,distance:p}}function h(S,g){const x=o.get()+S,{index:p,distance:m}=u(x),y=!e&&s(x);if(!g||y)return{index:p,distance:S};const E=t[p]-m,C=S+d(E,0);return{index:p,distance:C}}return{byDistance:h,byIndex:c,shortcut:d}}function lb(e,t,n,r,o,s,i){function a(c){const h=c.distance,f=c.index!==t.get();s.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),f&&(n.set(t.get()),t.set(c.index),i.emit("select"))}function l(c,h){const f=o.byDistance(c,h);a(f)}function u(c,h){const f=t.clone().set(c),S=o.byIndex(f.get(),h);a(S)}return{distance:l,index:u}}function ub(e,t,n,r,o,s,i,a){const l={passive:!0,capture:!0};let u=0;function d(f){if(!a)return;function S(g){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const m=n.findIndex(y=>y.includes(g));wd(m)&&(o.useDuration(0),r.index(m,0),i.emit("slideFocus"))}s.add(document,"keydown",c,!1),t.forEach((g,x)=>{s.add(g,"focus",p=>{(Za(a)||a(f,p))&&S(x)},l)})}function c(f){f.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function Zo(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function s(l){t-=i(l)}function i(l){return wd(l)?l:l.get()}return{get:n,set:r,add:o,subtract:s}}function Yv(e,t){const n=e.scroll==="x"?i:a,r=t.style;let o=null,s=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function l(h){if(s)return;const f=W2(e.direction(h));f!==o&&(r.transform=n(f),o=f)}function u(h){s=!h}function d(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:u}}function cb(e,t,n,r,o,s,i,a,l){const d=As(o),c=As(o).reverse(),h=p().concat(m());function f(b,N){return b.reduce((j,O)=>j-o[O],N)}function S(b,N){return b.reduce((j,O)=>f(j,N)>0?j.concat([O]):j,[])}function g(b){return s.map((N,j)=>({start:N-r[j]+.5+b,end:N+t-.5+b}))}function x(b,N,j){const O=g(N);return b.map(I=>{const L=j?0:-n,W=j?n:0,_=j?"end":"start",H=O[I][_];return{index:I,loopPoint:H,slideLocation:Zo(-1),translate:Yv(e,l[I]),target:()=>a.get()>H?L:W}})}function p(){const b=i[0],N=S(c,b);return x(N,n,!1)}function m(){const b=t-i[0]-1,N=S(d,b);return x(N,-n,!0)}function y(){return h.every(({index:b})=>{const N=d.filter(j=>j!==b);return f(N,t)<=.1})}function E(){h.forEach(b=>{const{target:N,translate:j,slideLocation:O}=b,I=N();I!==O.get()&&(j.to(I),O.set(I))})}function C(){h.forEach(b=>b.translate.clear())}return{canLoop:y,clear:C,loop:E,loopPoints:h}}function db(e,t,n){let r,o=!1;function s(l){if(!n)return;function u(d){for(const c of d)if(c.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(Za(n)||n(l,d))&&u(d)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:s,destroy:i}}function fb(e,t,n,r){const o={};let s=null,i=null,a,l=!1;function u(){a=new IntersectionObserver(S=>{l||(S.forEach(g=>{const x=t.indexOf(g.target);o[x]=g}),s=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(S=>a.observe(S))}function d(){a&&a.disconnect(),l=!0}function c(S){return Ms(o).reduce((g,x)=>{const p=parseInt(x),{isIntersecting:m}=o[p];return(S&&m||!S&&!m)&&g.push(p),g},[])}function h(S=!0){if(S&&s)return s;if(!S&&i)return i;const g=c(S);return S&&(s=g),S||(i=g),g}return{init:u,destroy:d,get:h}}function pb(e,t,n,r,o,s){const{measureSize:i,startEdge:a,endEdge:l}=e,u=n[0]&&o,d=S(),c=g(),h=n.map(i),f=x();function S(){if(!u)return 0;const m=n[0];return ge(t[a]-m[a])}function g(){if(!u)return 0;const m=s.getComputedStyle(Bt(r));return parseFloat(m.getPropertyValue(`margin-${l}`))}function x(){return n.map((m,y,E)=>{const C=!y,k=Ed(E,y);return C?h[y]+d:k?h[y]+c:E[y+1][a]-m[a]}).map(ge)}return{slideSizes:h,slideSizesWithGaps:f,startGap:d,endGap:c}}function mb(e,t,n,r,o,s,i,a,l){const{startEdge:u,endEdge:d,direction:c}=e,h=wd(n);function f(p,m){return As(p).filter(y=>y%m===0).map(y=>p.slice(y,y+m))}function S(p){return p.length?As(p).reduce((m,y,E)=>{const C=Bt(m)||0,k=C===0,b=y===Qs(p),N=o[u]-s[C][u],j=o[u]-s[y][d],O=!r&&k?c(i):0,I=!r&&b?c(a):0,L=ge(j-I-(N+O));return E&&L>t+l&&m.push(y),b&&m.push(p.length),m},[]).map((m,y,E)=>{const C=Math.max(E[y-1]||0);return p.slice(C,m)}):[]}function g(p){return h?f(p,n):S(p)}return{groupSlides:g}}function hb(e,t,n,r,o,s,i){const{align:a,axis:l,direction:u,startIndex:d,loop:c,duration:h,dragFree:f,dragThreshold:S,inViewThreshold:g,slidesToScroll:x,skipSnaps:p,containScroll:m,watchResize:y,watchSlides:E,watchDrag:C,watchFocus:k}=s,b=2,N=q2(),j=N.measure(t),O=n.map(N.measure),I=K2(l,u),L=I.measureSize(j),W=X2(L),_=H2(a,L),H=!c&&!!m,B=c||!!m,{slideSizes:V,slideSizesWithGaps:P,startGap:R,endGap:D}=pb(I,j,O,n,B,o),U=mb(I,L,x,c,j,O,R,D,b),{snaps:$,snapsAligned:G}=sb(I,_,j,O,U),Q=-Bt($)+Bt(P),{snapsContained:se,scrollContainLimit:xe}=tb(L,Q,G,m,b),Y=H?se:G,{limit:we}=nb(Q,Y,c),Oe=Gv(Qs(Y),d,c),be=Oe.clone(),te=As(n),F=({dragHandler:Nt,scrollBody:Do,scrollBounds:_r,options:{loop:kn}})=>{kn||_r.constrain(Nt.pointerDown()),Do.seek()},J=({scrollBody:Nt,translate:Do,location:_r,offsetLocation:kn,previousLocation:Nn,scrollLooper:Ys,slideLooper:Pn,dragHandler:rl,animation:ol,eventHandler:Io,scrollBounds:qs,options:{loop:Xs}},Lr)=>{const Pt=Nt.settled(),sl=!qs.shouldConstrain(),K=Xs?Pt:Pt&&sl,re=K&&!rl.pointerDown();re&&ol.stop();const ie=_r.get()*Lr+Nn.get()*(1-Lr);kn.set(ie),Xs&&(Ys.loop(Nt.direction()),Pn.loop()),Do.to(kn.get()),re&&Io.emit("settle"),K||Io.emit("scroll")},le=Q2(r,o,()=>F(Lo),Nt=>J(Lo,Nt)),Te=.68,Ve=Y[Oe.get()],at=Zo(Ve),lt=Zo(Ve),We=Zo(Ve),Qt=Zo(Ve),bt=J2(at,We,lt,Qt,h,Te),Mr=ab(c,Y,Q,we,Qt),kt=lb(le,Oe,be,bt,Mr,Qt,i),Ks=ob(we),Gs=_s(),Je=fb(t,n,i,g),{slideRegistry:ln}=ib(H,m,Y,xe,U,te),nl=ub(e,n,ln,kt,bt,Gs,i,k),Lo={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:j,slideRects:O,animation:le,axis:I,dragHandler:G2(I,e,r,o,Qt,Y2(I,o),at,le,kt,bt,Mr,Oe,i,W,f,S,p,Te,C),eventStore:Gs,percentOfView:W,index:Oe,indexPrevious:be,limit:we,location:at,offsetLocation:We,previousLocation:lt,options:s,resizeHandler:Z2(t,i,o,n,I,y,N),scrollBody:bt,scrollBounds:eb(we,We,Qt,bt,W),scrollLooper:rb(Q,we,We,[at,We,lt,Qt]),scrollProgress:Ks,scrollSnapList:Y.map(Ks.get),scrollSnaps:Y,scrollTarget:Mr,scrollTo:kt,slideLooper:cb(I,L,Q,V,P,$,Y,We,n),slideFocus:nl,slidesHandler:db(t,i,E),slidesInView:Je,slideIndexes:te,slideRegistry:ln,slidesToScroll:U,target:Qt,translate:Yv(I,t)};return Lo}function gb(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(d=>d(t,u)),l}function s(u,d){return e[u]=r(u).concat([d]),l}function i(u,d){return e[u]=r(u).filter(c=>c!==d),l}function a(){e={}}const l={init:n,emit:o,off:i,on:s,clear:a};return l}const vb={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function yb(e){function t(s,i){return Kv(s,i||{})}function n(s){const i=s.breakpoints||{},a=Ms(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,u)=>t(l,u),{});return t(s,a)}function r(s){return s.map(i=>Ms(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function xb(e){let t=[];function n(s,i){return t=i.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(s,e)),i.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function Sa(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=yb(o),i=xb(s),a=_s(),l=gb(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:c}=s,{on:h,off:f,emit:S}=l,g=I;let x=!1,p,m=u(vb,Sa.globalOptions),y=u(m),E=[],C,k,b;function N(){const{container:te,slides:F}=y;k=(rc(te)?e.querySelector(te):te)||e.children[0];const le=rc(F)?k.querySelectorAll(F):F;b=[].slice.call(le||k.children)}function j(te){const F=hb(e,k,b,r,o,te,l);if(te.loop&&!F.slideLooper.canLoop()){const J=Object.assign({},te,{loop:!1});return j(J)}return F}function O(te,F){x||(m=u(m,te),y=d(m),E=F||E,N(),p=j(y),c([m,...E.map(({options:J})=>J)]).forEach(J=>a.add(J,"change",I)),y.active&&(p.translate.to(p.location.get()),p.animation.init(),p.slidesInView.init(),p.slideFocus.init(be),p.eventHandler.init(be),p.resizeHandler.init(be),p.slidesHandler.init(be),p.options.loop&&p.slideLooper.loop(),k.offsetParent&&b.length&&p.dragHandler.init(be),C=i.init(be,E)))}function I(te,F){const J=U();L(),O(u({startIndex:J},te),F),l.emit("reInit")}function L(){p.dragHandler.destroy(),p.eventStore.clear(),p.translate.clear(),p.slideLooper.clear(),p.resizeHandler.destroy(),p.slidesHandler.destroy(),p.slidesInView.destroy(),p.animation.destroy(),i.destroy(),a.clear()}function W(){x||(x=!0,a.clear(),L(),l.emit("destroy"),l.clear())}function _(te,F,J){!y.active||x||(p.scrollBody.useBaseFriction().useDuration(F===!0?0:y.duration),p.scrollTo.index(te,J||0))}function H(te){const F=p.index.add(1).get();_(F,te,-1)}function B(te){const F=p.index.add(-1).get();_(F,te,1)}function V(){return p.index.add(1).get()!==U()}function P(){return p.index.add(-1).get()!==U()}function R(){return p.scrollSnapList}function D(){return p.scrollProgress.get(p.offsetLocation.get())}function U(){return p.index.get()}function $(){return p.indexPrevious.get()}function G(){return p.slidesInView.get()}function Q(){return p.slidesInView.get(!1)}function se(){return C}function xe(){return p}function Y(){return e}function we(){return k}function Oe(){return b}const be={canScrollNext:V,canScrollPrev:P,containerNode:we,internalEngine:xe,destroy:W,off:f,on:h,emit:S,plugins:se,previousScrollSnap:$,reInit:g,rootNode:Y,scrollNext:H,scrollPrev:B,scrollProgress:D,scrollSnapList:R,scrollTo:_,selectedScrollSnap:U,slideNodes:Oe,slidesInView:G,slidesNotInView:Q};return O(t,n),setTimeout(()=>l.emit("init"),0),be}Sa.globalOptions=void 0;function Cd(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[o,s]=w.useState(),[i,a]=w.useState(),l=w.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return w.useEffect(()=>{xd(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{U2(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(B2()&&i){Sa.globalOptions=Cd.globalOptions;const u=Sa(i,n.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[i,s]),[a,o]}Cd.globalOptions=void 0;const qv=w.createContext(null);function Ja(){const e=w.useContext(qv);if(!e)throw new Error("useCarousel must be used within a ");return e}const Xv=w.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:s,...i},a)=>{const[l,u]=Cd({...t,axis:e==="horizontal"?"x":"y"},r),[d,c]=w.useState(!1),[h,f]=w.useState(!1),S=w.useCallback(m=>{m&&(c(m.canScrollPrev()),f(m.canScrollNext()))},[]),g=w.useCallback(()=>{u==null||u.scrollPrev()},[u]),x=w.useCallback(()=>{u==null||u.scrollNext()},[u]),p=w.useCallback(m=>{m.key==="ArrowLeft"?(m.preventDefault(),g()):m.key==="ArrowRight"&&(m.preventDefault(),x())},[g,x]);return w.useEffect(()=>{!u||!n||n(u)},[u,n]),w.useEffect(()=>{if(u)return S(u),u.on("reInit",S),u.on("select",S),()=>{u==null||u.off("select",S)}},[u,S]),v.jsx(qv.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:x,canScrollPrev:d,canScrollNext:h},children:v.jsx("div",{ref:a,onKeyDownCapture:p,className:me("relative",o),role:"region","aria-roledescription":"carousel",...i,children:s})})});Xv.displayName="Carousel";const Zv=w.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Ja();return v.jsx("div",{ref:r,className:"overflow-hidden",children:v.jsx("div",{ref:n,className:me("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Zv.displayName="CarouselContent";const Bi=w.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Ja();return v.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:me("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Bi.displayName="CarouselItem";const Jv=w.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:s,scrollPrev:i,canScrollPrev:a}=Ja();return v.jsxs(Qe,{ref:o,variant:t,size:n,className:me("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[v.jsx(lw,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Jv.displayName="CarouselPrevious";const e0=w.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:s,scrollNext:i,canScrollNext:a}=Ja();return v.jsxs(Qe,{ref:o,variant:t,size:n,className:me("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[v.jsx(Mn,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Next slide"})]})});e0.displayName="CarouselNext";const wb=()=>{const[e,t]=w.useState(!1);w.useEffect(()=>{localStorage.getItem("lgpd-accepted")||t(!0)},[]);const n=()=>{localStorage.setItem("lgpd-accepted","true"),t(!1)},r=()=>{localStorage.setItem("lgpd-accepted","false"),t(!1)};return e?v.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-end md:items-center justify-center z-50 p-4",children:v.jsx("div",{className:"bg-background border border-border rounded-lg shadow-2xl max-w-md w-full md:max-w-lg animate-fade-in",children:v.jsxs("div",{className:"p-6",children:[v.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[v.jsx("div",{className:"text-primary",children:v.jsx(xw,{size:24})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Proteção de Dados - LGPD"}),v.jsx("button",{onClick:r,className:"absolute top-4 right-4 text-muted-foreground hover:text-foreground",children:v.jsx(sd,{size:20})})]})]}),v.jsxs("div",{className:"space-y-3 mb-6",children:[v.jsx("p",{className:"text-sm text-muted-foreground",children:"Utilizamos cookies e coletamos dados para melhorar sua experiência em nosso site. Isso nos ajuda a personalizar conteúdo e analisar nosso tráfego."}),v.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[v.jsx(dw,{size:14}),v.jsx("span",{children:"Cookies essenciais e de marketing"})]}),v.jsx("p",{className:"text-xs text-muted-foreground",children:"Ao continuar navegando, você concorda com nossa coleta de dados conforme nossa Política de Privacidade. Seus dados estão seguros conosco."})]}),v.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[v.jsx(Qe,{onClick:n,className:"btn-gradient flex-1",children:"Aceitar e Continuar"}),v.jsx(Qe,{onClick:r,variant:"outline",className:"flex-1",children:"Apenas Essenciais"})]}),v.jsx("p",{className:"text-xs text-center text-muted-foreground mt-4",children:"Você pode alterar suas preferências a qualquer momento."})]})})}):null};var Bl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",Np={bubbles:!1,cancelable:!0},Sb="FocusScope",t0=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=w.useState(null),u=on(o),d=on(s),c=w.useRef(null),h=qe(t,g=>l(g)),f=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let g=function(y){if(f.paused||!a)return;const E=y.target;a.contains(E)?c.current=E:Ln(c.current,{select:!0})},x=function(y){if(f.paused||!a)return;const E=y.relatedTarget;E!==null&&(a.contains(E)||Ln(c.current,{select:!0}))},p=function(y){if(document.activeElement===document.body)for(const C of y)C.removedNodes.length>0&&Ln(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const m=new MutationObserver(p);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),m.disconnect()}}},[r,a,f.paused]),w.useEffect(()=>{if(a){Tp.add(f);const g=document.activeElement;if(!a.contains(g)){const p=new CustomEvent(Bl,Np);a.addEventListener(Bl,u),a.dispatchEvent(p),p.defaultPrevented||(Eb(Pb(n0(a)),{select:!0}),document.activeElement===g&&Ln(a))}return()=>{a.removeEventListener(Bl,u),setTimeout(()=>{const p=new CustomEvent(Ul,Np);a.addEventListener(Ul,d),a.dispatchEvent(p),p.defaultPrevented||Ln(g??document.body,{select:!0}),a.removeEventListener(Ul,d),Tp.remove(f)},0)}}},[a,u,d,f]);const S=w.useCallback(g=>{if(!n&&!r||f.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,p=document.activeElement;if(x&&p){const m=g.currentTarget,[y,E]=Cb(m);y&&E?!g.shiftKey&&p===E?(g.preventDefault(),n&&Ln(y,{select:!0})):g.shiftKey&&p===y&&(g.preventDefault(),n&&Ln(E,{select:!0})):p===m&&g.preventDefault()}},[n,r,f.paused]);return v.jsx(Ne.div,{tabIndex:-1,...i,ref:h,onKeyDown:S})});t0.displayName=Sb;function Eb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ln(r,{select:t}),document.activeElement!==n)return}function Cb(e){const t=n0(e),n=Pp(t,e),r=Pp(t.reverse(),e);return[n,r]}function n0(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 Pp(e,t){for(const n of e)if(!bb(n,{upTo:t}))return n}function bb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kb(e){return e instanceof HTMLInputElement&&"select"in e}function Ln(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kb(e)&&t&&e.select()}}var Tp=Nb();function Nb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rp(e,t),e.unshift(t)},remove(t){var n;e=Rp(e,t),(n=e[0])==null||n.resume()}}}function Rp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Pb(e){return e.filter(t=>t.tagName!=="A")}var Vl=0;function Tb(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jp()),document.body.insertAdjacentElement("beforeend",e[1]??jp()),Vl++,()=>{Vl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vl--}},[])}function jp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jt=function(){return Jt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return Hb;var t=Qb(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gb=i0(),uo="data-scroll-locked",Yb=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(jb,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(uo,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(s,`px; padding-right: `).concat(i,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Ui,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(Vi,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(Ui," .").concat(Ui,` { right: 0 `).concat(r,`; } .`).concat(Vi," .").concat(Vi,` { margin-right: 0 `).concat(r,`; } body[`).concat(uo,`] { `).concat(Ob,": ").concat(a,`px; } `)},Ap=function(){var e=parseInt(document.body.getAttribute(uo)||"0",10);return isFinite(e)?e:0},qb=function(){w.useEffect(function(){return document.body.setAttribute(uo,(Ap()+1).toString()),function(){var e=Ap()-1;e<=0?document.body.removeAttribute(uo):document.body.setAttribute(uo,e.toString())}},[])},Xb=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;qb();var s=w.useMemo(function(){return Kb(o)},[o]);return w.createElement(Gb,{styles:Yb(s,!t,o,n?"":"!important")})},sc=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return sc=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{sc=!1}var zr=sc?{passive:!1}:!1,Zb=function(e){return e.tagName==="TEXTAREA"},a0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Zb(e)&&n[t]==="visible")},Jb=function(e){return a0(e,"overflowY")},ek=function(e){return a0(e,"overflowX")},Mp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=l0(e,r);if(o){var s=u0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tk=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nk=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},l0=function(e,t){return e==="v"?Jb(t):ek(t)},u0=function(e,t){return e==="v"?tk(t):nk(t)},rk=function(e,t){return e==="h"&&t==="rtl"?-1:1},ok=function(e,t,n,r,o){var s=rk(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,d=i>0,c=0,h=0;do{if(!a)break;var f=u0(e,a),S=f[0],g=f[1],x=f[2],p=g-x-s*S;(S||p)&&l0(e,a)&&(c+=p,h+=S);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(c)<1||!o)||!d&&(Math.abs(h)<1||!o))&&(u=!0),u},Ei=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_p=function(e){return[e.deltaX,e.deltaY]},Lp=function(e){return e&&"current"in e?e.current:e},sk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ik=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},ak=0,Fr=[];function lk(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),o=w.useState(ak++)[0],s=w.useState(i0)[0],i=w.useRef(e);w.useEffect(function(){i.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Rb([e.lockRef.current],(e.shards||[]).map(Lp),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=w.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var p=Ei(g),m=n.current,y="deltaX"in g?g.deltaX:m[0]-p[0],E="deltaY"in g?g.deltaY:m[1]-p[1],C,k=g.target,b=Math.abs(y)>Math.abs(E)?"h":"v";if("touches"in g&&b==="h"&&k.type==="range")return!1;var N=Mp(b,k);if(!N)return!0;if(N?C=b:(C=b==="v"?"h":"v",N=Mp(b,k)),!N)return!1;if(!r.current&&"changedTouches"in g&&(y||E)&&(r.current=C),!C)return!0;var j=r.current||C;return ok(j,x,g,j==="h"?y:E,!0)},[]),l=w.useCallback(function(g){var x=g;if(!(!Fr.length||Fr[Fr.length-1]!==s)){var p="deltaY"in x?_p(x):Ei(x),m=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&sk(C.delta,p)})[0];if(m&&m.should){x.cancelable&&x.preventDefault();return}if(!m){var y=(i.current.shards||[]).map(Lp).filter(Boolean).filter(function(C){return C.contains(x.target)}),E=y.length>0?a(x,y[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=w.useCallback(function(g,x,p,m){var y={name:g,delta:x,target:p,should:m,shadowParent:uk(p)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(E){return E!==y})},1)},[]),d=w.useCallback(function(g){n.current=Ei(g),r.current=void 0},[]),c=w.useCallback(function(g){u(g.type,_p(g),g.target,a(g,e.lockRef.current))},[]),h=w.useCallback(function(g){u(g.type,Ei(g),g.target,a(g,e.lockRef.current))},[]);w.useEffect(function(){return Fr.push(s),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,zr),document.addEventListener("touchmove",l,zr),document.addEventListener("touchstart",d,zr),function(){Fr=Fr.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,zr),document.removeEventListener("touchmove",l,zr),document.removeEventListener("touchstart",d,zr)}},[]);var f=e.removeScrollBar,S=e.inert;return w.createElement(w.Fragment,null,S?w.createElement(s,{styles:ik(o)}):null,f?w.createElement(Xb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ck=zb(s0,lk);var c0=w.forwardRef(function(e,t){return w.createElement(el,Jt({},e,{ref:t,sideCar:ck}))});c0.classNames=el.classNames;var dk=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$r=new WeakMap,Ci=new WeakMap,bi={},Kl=0,d0=function(e){return e&&(e.host||d0(e.parentNode))},fk=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},pk=function(e,t,n,r){var o=fk(t,Array.isArray(e)?e:[e]);bi[n]||(bi[n]=new WeakMap);var s=bi[n],i=[],a=new Set,l=new Set(o),u=function(c){!c||a.has(c)||(a.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(a.has(h))d(h);else try{var f=h.getAttribute(r),S=f!==null&&f!=="false",g=($r.get(h)||0)+1,x=(s.get(h)||0)+1;$r.set(h,g),s.set(h,x),i.push(h),g===1&&S&&Ci.set(h,!0),x===1&&h.setAttribute(n,"true"),S||h.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",h,p)}})};return d(t),a.clear(),Kl++,function(){i.forEach(function(c){var h=$r.get(c)-1,f=s.get(c)-1;$r.set(c,h),s.set(c,f),h||(Ci.has(c)||c.removeAttribute(r),Ci.delete(c)),f||c.removeAttribute(n)}),Kl--,Kl||($r=new WeakMap,$r=new WeakMap,Ci=new WeakMap,bi={})}},mk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=dk(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),pk(r,o,n,"aria-hidden")):function(){return null}},tl="Dialog",[f0,Qk]=Vs(tl),[hk,Ht]=f0(tl),p0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=w.useRef(null),l=w.useRef(null),[u,d]=xg({prop:r,defaultProp:o??!1,onChange:s,caller:tl});return v.jsx(hk,{scope:t,triggerRef:a,contentRef:l,contentId:Il(),titleId:Il(),descriptionId:Il(),open:u,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(c=>!c),[d]),modal:i,children:n})};p0.displayName=tl;var m0="DialogTrigger",h0=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(m0,n),s=qe(t,o.triggerRef);return v.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nd(o.open),...r,ref:s,onClick:pe(e.onClick,o.onOpenToggle)})});h0.displayName=m0;var bd="DialogPortal",[gk,g0]=f0(bd,{forceMount:void 0}),v0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ht(bd,t);return v.jsx(gk,{scope:t,forceMount:n,children:w.Children.map(r,i=>v.jsx(Oo,{present:n||s.open,children:v.jsx(td,{asChild:!0,container:o,children:i})}))})};v0.displayName=bd;var Ea="DialogOverlay",y0=w.forwardRef((e,t)=>{const n=g0(Ea,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ht(Ea,e.__scopeDialog);return s.modal?v.jsx(Oo,{present:r||s.open,children:v.jsx(yk,{...o,ref:t})}):null});y0.displayName=Ea;var vk=Ps("DialogOverlay.RemoveScroll"),yk=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(Ea,n);return v.jsx(c0,{as:vk,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(Ne.div,{"data-state":Nd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jr="DialogContent",x0=w.forwardRef((e,t)=>{const n=g0(jr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ht(jr,e.__scopeDialog);return v.jsx(Oo,{present:r||s.open,children:s.modal?v.jsx(xk,{...o,ref:t}):v.jsx(wk,{...o,ref:t})})});x0.displayName=jr;var xk=w.forwardRef((e,t)=>{const n=Ht(jr,e.__scopeDialog),r=w.useRef(null),o=qe(t,n.contentRef,r);return w.useEffect(()=>{const s=r.current;if(s)return mk(s)},[]),v.jsx(w0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault())})}),wk=w.forwardRef((e,t)=>{const n=Ht(jr,e.__scopeDialog),r=w.useRef(!1),o=w.useRef(!1);return v.jsx(w0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),w0=w.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Ht(jr,n),l=w.useRef(null),u=qe(t,l);return Tb(),v.jsxs(v.Fragment,{children:[v.jsx(t0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:v.jsx(Fa,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Nd(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(Sk,{titleId:a.titleId}),v.jsx(Ck,{contentRef:l,descriptionId:a.descriptionId})]})]})}),kd="DialogTitle",S0=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(kd,n);return v.jsx(Ne.h2,{id:o.titleId,...r,ref:t})});S0.displayName=kd;var E0="DialogDescription",C0=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(E0,n);return v.jsx(Ne.p,{id:o.descriptionId,...r,ref:t})});C0.displayName=E0;var b0="DialogClose",k0=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ht(b0,n);return v.jsx(Ne.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});k0.displayName=b0;function Nd(e){return e?"open":"closed"}var N0="DialogTitleWarning",[Kk,P0]=f1(N0,{contentName:jr,titleName:kd,docsSlug:"dialog"}),Sk=({titleId:e})=>{const t=P0(N0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ek="DialogDescriptionWarning",Ck=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${P0(Ek).contentName}}.`;return w.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},bk=p0,kk=h0,Nk=v0,T0=y0,R0=x0,j0=S0,O0=C0,Pk=k0;const Tk=bk,Rk=kk,jk=Nk,A0=w.forwardRef(({className:e,...t},n)=>v.jsx(T0,{ref:n,className:me("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));A0.displayName=T0.displayName;const M0=w.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(jk,{children:[v.jsx(A0,{}),v.jsxs(R0,{ref:r,className:me("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,v.jsxs(Pk,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[v.jsx(sd,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));M0.displayName=R0.displayName;const Ok=w.forwardRef(({className:e,...t},n)=>v.jsx(j0,{ref:n,className:me("text-lg font-semibold leading-none tracking-tight",e),...t}));Ok.displayName=j0.displayName;const Ak=w.forwardRef(({className:e,...t},n)=>v.jsx(O0,{ref:n,className:me("text-sm text-muted-foreground",e),...t}));Ak.displayName=O0.displayName;const Br=({src:e,alt:t,className:n,children:r})=>v.jsxs(Tk,{children:[v.jsx(Rk,{asChild:!0,children:v.jsx("div",{className:`cursor-pointer hover:opacity-90 transition-opacity ${n}`,children:r||v.jsx("img",{src:e,alt:t,className:"w-full h-auto",loading:"lazy"})})}),v.jsx(M0,{className:"max-w-6xl w-full max-h-[90vh] p-0 bg-black/95 border-none",children:v.jsx("div",{className:"relative flex items-center justify-center min-h-[90vh]",children:v.jsx("img",{src:e,alt:t,className:"max-w-full max-h-full object-contain",loading:"lazy"})})})]}),Mk="/assets/hero-tech-background-ApcYM_w5.jpg",Dp="/assets/metaera-logo-new-1cCs_9E4.png",Ip="/assets/result-seguidores-new-BBJ6NDQb.jpeg",zp="/assets/result-interacoes-new-yzdI-FJm.jpeg",Fp="/assets/result-visualizacoes-new-Z3mNnSxM.jpeg",$p="/lovable-uploads/e7ba459f-8ae0-406e-a08d-e0dac44496c9.png",Bp="/lovable-uploads/4cba58ed-582e-4c52-a255-64fa36a30e21.png",Up="/lovable-uploads/team-photo-4.jpeg",_k=()=>{const e=t=>{var n;(n=document.getElementById(t))==null||n.scrollIntoView({behavior:"smooth"})};return v.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[v.jsx(wb,{}),v.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:v.jsxs("a",{href:"https://wa.me/5531997508750?text=Olá,%20vim%20pelo%20site%20da%20Metaera%20Digital!%20Gostaria%20de%20conhecer%20melhor%20os%20serviços%20de%20marketing%20digital.",target:"_blank",rel:"noopener noreferrer",className:"w-14 h-14 bg-green-600 hover:bg-green-700 text-white rounded-full flex items-center justify-center shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-110 group relative","aria-label":"Conversar no WhatsApp",children:[v.jsx(gw,{size:24}),v.jsx("span",{className:"absolute right-16 bg-gray-900 text-white text-xs px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap",children:"(31) 99750-8750"})]})}),v.jsxs("section",{id:"hero",className:"relative min-h-screen flex items-center gradient-hero",children:[v.jsxs("div",{className:"absolute inset-0 z-0",children:[v.jsx("img",{src:Mk,alt:"Background tecnológico representando inovação e transformação digital",className:"w-full h-full object-cover",loading:"eager"}),v.jsx("div",{className:"absolute inset-0 bg-black/60"})]}),v.jsx("div",{className:"relative z-10 container mx-auto px-4 lg:px-16",children:v.jsxs("div",{className:"max-w-4xl",children:[v.jsx("img",{src:Dp,alt:"Metaera Digital - Agência de Marketing Digital",className:"w-64 mb-8",loading:"eager"}),v.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold mb-6 leading-tight",children:["Transforme Seu Negócio Digital no"," ",v.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Brasil"})," ","com Resultados Reais"]}),v.jsx("p",{className:"text-xl md:text-2xl mb-8 text-muted-foreground max-w-3xl",children:"A Metaera Digital combina estratégia, criatividade e tecnologia para acelerar o crescimento da sua empresa. Somos especialistas em gerar leads, aumentar vendas e construir autoridade online."}),v.jsx("div",{className:"flex flex-col sm:flex-row gap-4 mb-8",children:v.jsxs(Qe,{className:"btn-primary text-lg",onClick:()=>window.open("https://wa.me/5531997508750?text=Olá!%20Vi%20que%20vocês%20são%20especialistas%20em%20transformar%20negócios%20digitalmente.%20Gostaria%20de%20conversar%20sobre%20uma%20estratégia%20para%20minha%20empresa.","_blank"),children:["Fale Conosco Agora",v.jsx(Mn,{className:"ml-2",size:20})]})}),v.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ir,{className:"text-green-400",size:16}),v.jsx("span",{children:"Atendemos todo Brasil"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ir,{className:"text-green-400",size:16}),v.jsx("span",{children:"Time especializado"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ir,{className:"text-green-400",size:16}),v.jsx("span",{children:"Foco em performance"})]})]})]})})]}),v.jsx("section",{id:"autoridade",className:"section-padding bg-card",children:v.jsxs("div",{className:"container mx-auto text-center",children:[v.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-8",children:["Resultados que Comprovam Nossa"," ",v.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Expertise"})]}),v.jsx("p",{className:"text-xl text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Estratégias baseadas em dados e execução focada em ROI"}),v.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[v.jsxs("div",{className:"card-elevated text-center",children:[v.jsx(Vg,{className:"text-primary mx-auto mb-4",size:48}),v.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"+150"}),v.jsx("div",{className:"text-lg",children:"Projetos Entregues"})]}),v.jsxs("div",{className:"card-elevated text-center",children:[v.jsx(Wu,{className:"text-secondary mx-auto mb-4",size:48}),v.jsx("div",{className:"text-4xl font-bold text-secondary mb-2",children:"+40"}),v.jsx("div",{className:"text-lg",children:"Segmentos Atendidos"})]}),v.jsxs("div",{className:"card-elevated text-center",children:[v.jsx(uw,{className:"text-primary mx-auto mb-4",size:48}),v.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"4.8/5"}),v.jsx("div",{className:"text-lg",children:"Satisfação Média dos Clientes"})]})]})]})}),v.jsx("section",{className:"section-padding bg-gradient-to-r from-primary to-secondary",children:v.jsx("div",{className:"container mx-auto px-4 lg:px-16",children:v.jsxs("div",{className:"text-center",children:[v.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"Pronto para Transformar Seu Negócio?"}),v.jsx("p",{className:"text-xl text-white/90 mb-8 max-w-2xl mx-auto",children:"Junte-se aos nossos +150 clientes satisfeitos e veja seu negócio crescer"}),v.jsxs(Qe,{size:"lg",variant:"secondary",className:"bg-white text-primary hover:bg-white/90 font-semibold px-8 py-4 text-lg",onClick:()=>window.open("https://wa.me/5531997508750?text=Olá!%20Estou%20pronto%20para%20começar%20meu%20projeto%20digital%20com%20a%20Metaera.%20Quero%20fazer%20parte%20dos%20seus%20clientes%20de%20sucesso!","_blank"),children:["Começar Agora",v.jsx(Mn,{className:"ml-2",size:20})]})]})})}),v.jsx("section",{className:"section-padding bg-gradient-to-br from-primary/5 to-secondary/5",children:v.jsxs("div",{className:"container mx-auto",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-8",children:["Conheça a"," ",v.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Equipe Metaera"})]}),v.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Profissionais especializados e apaixonados por transformar negócios através do marketing digital"})]}),v.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12",children:[v.jsxs("div",{className:"text-center",children:[v.jsx(Br,{src:$p,alt:"Equipe Metaera Digital - Estratégia e Execução",className:"mb-4",children:v.jsx("img",{src:$p,alt:"Equipe Metaera Digital - Estratégia e Execução",className:"w-full h-[300px] object-cover rounded-lg shadow-lg hover:shadow-xl transition-shadow",loading:"lazy"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Nossa Equipe"}),v.jsx("p",{className:"text-muted-foreground",children:"Da estratégia à execução, nós entregamos resultados"})]}),v.jsxs("div",{className:"text-center",children:[v.jsx(Br,{src:Bp,alt:"Escritório Metaera Digital no Brasil",className:"mb-4",children:v.jsx("img",{src:Bp,alt:"Escritório Metaera Digital no Brasil",className:"w-full h-[300px] object-cover rounded-lg shadow-lg hover:shadow-xl transition-shadow",loading:"lazy"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Ambiente Colaborativo"}),v.jsx("p",{className:"text-muted-foreground",children:"Espaço criativo onde as melhores ideias nascem"})]}),v.jsxs("div",{className:"text-center",children:[v.jsx(Br,{src:Up,alt:"Equipe Metaera Digital em evento",className:"mb-4",children:v.jsx("img",{src:Up,alt:"Equipe Metaera Digital em evento",className:"w-full h-[300px] object-cover rounded-lg shadow-lg hover:shadow-xl transition-shadow",loading:"lazy"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Presença em Eventos"}),v.jsx("p",{className:"text-muted-foreground",children:"Sempre conectados com as últimas tendências do mercado"})]})]}),v.jsxs("div",{className:"text-center bg-card p-8 rounded-lg",children:[v.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Por Que Nossa Equipe Faz a Diferença?"}),v.jsxs("div",{className:"grid md:grid-cols-3 gap-6 text-left mb-8",children:[v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx(Ir,{className:"text-primary mt-1 flex-shrink-0",size:20}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-1",children:"Experiência Comprovada"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"Mais de 5 anos transformando negócios digitalmente"})]})]}),v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx(Ir,{className:"text-primary mt-1 flex-shrink-0",size:20}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-1",children:"Foco em Resultados"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"Cada estratégia é pensada para gerar ROI mensurável"})]})]}),v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx(Ir,{className:"text-primary mt-1 flex-shrink-0",size:20}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-1",children:"Atendimento Personalizado"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"Dedicação exclusiva ao sucesso de cada cliente"})]})]})]}),v.jsxs(Qe,{className:"btn-gradient text-lg animate-pulse",onClick:()=>window.open("https://wa.me/5531997508750?text=Olá!%20Gostei%20muito%20do%20perfil%20da%20equipe%20da%20Metaera.%20Gostaria%20de%20agendar%20uma%20conversa%20para%20entender%20como%20vocês%20podem%20me%20ajudar.","_blank"),children:["Fale com Nossa Equipe Agora",v.jsx(Mn,{className:"ml-2",size:20})]})]})]})}),v.jsx("section",{id:"servicos",className:"section-padding",children:v.jsxs("div",{className:"container mx-auto",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-8",children:["Soluções Digitais Completas para"," ",v.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent whitespace-nowrap",children:"Seu Crescimento"})]}),v.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Da estratégia à execução, oferecemos tudo que sua empresa precisa para dominar o ambiente digital"})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:Lk.map((t,n)=>v.jsxs("div",{className:"card-elevated hover-lift text-center",children:[v.jsx("div",{className:"text-primary mx-auto mb-6",children:t.icon}),v.jsx("h3",{className:"font-semibold text-xl mb-4",children:t.title}),v.jsx("p",{className:"text-muted-foreground",children:t.description})]},n))}),v.jsx("div",{className:"text-center mt-12",children:v.jsxs(Qe,{className:"btn-gradient text-lg",onClick:()=>e("contato"),children:["Vamos Conversar Sobre Seu Projeto",v.jsx(Mn,{className:"ml-2",size:20})]})})]})}),v.jsx("section",{id:"processo",className:"section-padding",children:v.jsxs("div",{className:"container mx-auto",children:[v.jsx("div",{className:"text-center mb-16",children:v.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-8",children:["Nossa Metodologia"," ",v.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Comprovada"})]})}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:Vp.map((t,n)=>v.jsxs("div",{className:"card-elevated text-center hover-lift relative",children:[v.jsx("div",{className:"text-4xl font-bold text-primary mb-4",children:String(n+1).padStart(2,"0")}),v.jsx("div",{className:"text-secondary mx-auto mb-4",children:t.icon}),v.jsx("h3",{className:"font-semibold text-lg mb-3",children:t.title}),v.jsx("p",{className:"text-muted-foreground text-sm",children:t.description}),ne("contato"),children:["Aplique Nossa Metodologia no Seu Negócio",v.jsx(Mn,{className:"ml-2",size:20})]})})]})}),v.jsx("section",{id:"resultados-analises",className:"section-padding",children:v.jsxs("div",{className:"container mx-auto",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-8",children:["Resultados Comprovados que Geram"," ",v.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Autoridade"})]}),v.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Veja os dashboards reais dos nossos clientes e comprove o crescimento nas suas redes sociais"})]}),v.jsx("div",{className:"max-w-4xl mx-auto mb-12",children:v.jsxs(Xv,{className:"w-full",children:[v.jsxs(Zv,{children:[v.jsx(Bi,{children:v.jsx("div",{className:"p-1",children:v.jsx($i,{className:"overflow-hidden",children:v.jsx(Br,{src:Ip,alt:"Dashboard de crescimento mostrando 10.746 seguidores com +5,0% de crescimento",children:v.jsx("img",{src:Ip,alt:"Dashboard de crescimento mostrando 10.746 seguidores com +5,0% de crescimento",className:"w-full h-auto rounded-lg hover:scale-105 transition-transform",loading:"lazy"})})})})}),v.jsx(Bi,{children:v.jsx("div",{className:"p-1",children:v.jsx($i,{className:"overflow-hidden",children:v.jsx(Br,{src:zp,alt:"Dashboard de interações mostrando 2.553 interações com 42,8% de anúncios",children:v.jsx("img",{src:zp,alt:"Dashboard de interações mostrando 2.553 interações com 42,8% de anúncios",className:"w-full h-auto rounded-lg hover:scale-105 transition-transform",loading:"lazy"})})})})}),v.jsx(Bi,{children:v.jsx("div",{className:"p-1",children:v.jsx($i,{className:"overflow-hidden",children:v.jsx(Br,{src:Fp,alt:"Dashboard de visualizações com 227.377 visualizações e 71,4% de anúncios",children:v.jsx("img",{src:Fp,alt:"Dashboard de visualizações com 227.377 visualizações e 71,4% de anúncios",className:"w-full h-auto rounded-lg hover:scale-105 transition-transform",loading:"lazy"})})})})})]}),v.jsx(Jv,{className:"absolute left-4 top-1/2 -translate-y-1/2"}),v.jsx(e0,{className:"absolute right-4 top-1/2 -translate-y-1/2"})]})}),v.jsxs("div",{className:"text-center bg-gradient-to-r from-primary/10 to-secondary/10 p-8 rounded-2xl",children:[v.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Seus Resultados Podem Ser Ainda Melhores!"}),v.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:"Estes são apenas alguns exemplos dos resultados que entregamos. Cada estratégia é personalizada para maximizar o potencial do seu negócio."}),v.jsxs(Qe,{className:"btn-gradient text-lg",onClick:()=>window.open("https://wa.me/5531997508750?text=Olá!%20Vi%20os%20incríveis%20resultados%20que%20vocês%20entregam%20para%20seus%20clientes.%20Quero%20conquistar%20resultados%20assim%20para%20meu%20negócio%20também!","_blank"),children:["Quero Resultados Como Estes",v.jsx(Mn,{className:"ml-2",size:20})]})]})]})}),v.jsx("section",{className:"section-padding bg-gradient-to-r from-primary to-secondary text-white",children:v.jsx("div",{className:"container mx-auto text-center",children:v.jsxs("div",{className:"max-w-4xl mx-auto",children:[v.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Transforme Seu Negócio Digital Agora"}),v.jsx("p",{className:"text-xl mb-8 opacity-90",children:"Pare de perder oportunidades para a concorrência. É hora de investir em uma estratégia digital que realmente funciona."}),v.jsx("div",{className:"space-y-4 mb-8"})]})})}),v.jsxs("footer",{className:"bg-background border-t border-border",children:[v.jsx("div",{className:"section-padding border-b border-border",children:v.jsx("div",{className:"container mx-auto",children:v.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[v.jsxs("div",{children:[v.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Receba Dicas de Marketing Digital"}),v.jsx("p",{className:"text-muted-foreground",children:"Estratégias exclusivas, cases de sucesso e tendências do mercado direto no seu e-mail."})]}),v.jsxs("div",{className:"flex gap-3",children:[v.jsx(Qv,{placeholder:"Seu melhor e-mail",className:"flex-1"}),v.jsx(Qe,{className:"btn-gradient",children:"Inscrever-se"})]})]})})}),v.jsx("div",{className:"section-padding",children:v.jsxs("div",{className:"container mx-auto",children:[v.jsxs("div",{className:"grid md:grid-cols-4 gap-8 mb-8",children:[v.jsxs("div",{className:"md:col-span-2",children:[v.jsx("img",{src:Dp,alt:"Metaera Digital",className:"w-64 mb-4"}),v.jsx("p",{className:"text-muted-foreground mb-6 max-w-md",children:"Transformamos negócios através de estratégias de marketing digital comprovadas. Somos especialistas em gerar resultados reais para empresas do Brasil."}),v.jsxs("div",{className:"flex gap-4",children:[v.jsx(Qe,{variant:"outline",size:"sm",children:v.jsx(pw,{size:16})}),v.jsx(Qe,{variant:"outline",size:"sm",children:v.jsx(Wu,{size:16})}),v.jsx(Qe,{variant:"outline",size:"sm",children:v.jsx(Hf,{size:16})})]})]}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-semibold mb-4",children:"Serviços"}),v.jsxs("div",{className:"text-muted-foreground space-y-3",children:[v.jsx("div",{className:"hover:text-primary cursor-pointer transition-colors",children:"Landing Pages"}),v.jsx("div",{className:"hover:text-primary cursor-pointer transition-colors",children:"Tráfego Pago"}),v.jsx("div",{className:"hover:text-primary cursor-pointer transition-colors",children:"SEO"}),v.jsx("div",{className:"hover:text-primary cursor-pointer transition-colors",children:"Social Media"}),v.jsx("div",{className:"hover:text-primary cursor-pointer transition-colors",children:"Sites e E-commerce"})]})]}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-semibold mb-4",children:"Contato"}),v.jsxs("div",{className:"space-y-3 text-muted-foreground",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(hw,{size:16,className:"text-primary"}),v.jsx("span",{children:"Brasil"})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(vw,{size:16,className:"text-primary"}),v.jsx("span",{children:"(31) 99750-8750"})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Hf,{size:16,className:"text-primary"}),v.jsx("span",{children:"metaeradigital@gmail.com"})]}),v.jsxs("div",{className:"mt-3 space-y-1",children:[v.jsx("p",{className:"text-sm text-muted-foreground",children:"✅ Atendimento todo Brasil"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"🌎 Atendemos também clientes internacionais"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"⏰ Atendimento sem horário fixo"})]})]})]})]}),v.jsxs("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[v.jsx("p",{className:"text-muted-foreground text-center md:text-left",children:"© 2025 Metaera Digital. Todos os direitos reservados."}),v.jsxs("div",{className:"flex gap-6 text-sm text-muted-foreground",children:[v.jsx("span",{className:"hover:text-primary cursor-pointer transition-colors",children:"Política de Privacidade"}),v.jsx("span",{className:"hover:text-primary cursor-pointer transition-colors",children:"Termos de Uso"}),v.jsx("span",{className:"hover:text-primary cursor-pointer transition-colors",children:"LGPD"})]})]})]})})]})]})},Lk=[{title:"Tráfego Pago",description:"Google Ads e campanhas otimizadas para ROI máximo e geração de leads qualificados",icon:v.jsx(ww,{size:48})},{title:"Social Media",description:"Gestão completa de redes sociais com conteúdo estratégico que engaja e converte",icon:v.jsx(Wu,{size:48})},{title:"Criação de Conteúdo",description:"Marketing de conteúdo, materiais ricos e estratégias para construir autoridade",icon:v.jsx(mw,{size:48})},{title:"Landing Page",description:"Páginas de alta conversão otimizadas para capturar leads e aumentar vendas",icon:v.jsx(Vg,{size:48})}],Vp=[{title:"Diagnóstico e Estratégia",description:"Análise completa do seu negócio e mercado",icon:v.jsx(fw,{size:32})},{title:"Planejamento Detalhado",description:"Plano de ação personalizado",icon:v.jsx(yw,{size:32})},{title:"Execução e Otimização",description:"Implementação com monitoramento contínuo",icon:v.jsx(Sw,{size:32})},{title:"Análise e Crescimento",description:"Relatórios e ajustes para máxima performance",icon:v.jsx(cw,{size:32})}],Dk=()=>v.jsx(_k,{}),Ik=()=>{const e=Hv();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),v.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),v.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),v.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},zk=new QC,Fk=()=>v.jsx(GC,{client:zk,children:v.jsxs(EC,{children:[v.jsx(rS,{}),v.jsx(LS,{}),v.jsx(M2,{children:v.jsxs(j2,{children:[v.jsx(tc,{path:"/",element:v.jsx(Dk,{})}),v.jsx(tc,{path:"*",element:v.jsx(Ik,{})})]})})]})});fg(document.getElementById("root")).render(v.jsx(Fk,{}));