var Rd=e=>{throw TypeError(e)};var qa=(e,t,n)=>t.has(e)||Rd("Cannot "+n);var P=(e,t,n)=>(qa(e,t,"read from private field"),n?n.call(e):t.get(e)),re=(e,t,n)=>t.has(e)?Rd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(qa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(qa(e,t,"access private method"),n);var $i=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return P(e,t,r)}});function O0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Wp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qp={exports:{}},ca={},Kp={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 Ai=Symbol.for("react.element"),I0=Symbol.for("react.portal"),M0=Symbol.for("react.fragment"),L0=Symbol.for("react.strict_mode"),D0=Symbol.for("react.profiler"),F0=Symbol.for("react.provider"),z0=Symbol.for("react.context"),$0=Symbol.for("react.forward_ref"),B0=Symbol.for("react.suspense"),U0=Symbol.for("react.memo"),V0=Symbol.for("react.lazy"),jd=Symbol.iterator;function H0(e){return e===null||typeof e!="object"?null:(e=jd&&e[jd]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yp=Object.assign,qp={};function No(e,t,n){this.props=e,this.context=t,this.refs=qp,this.updater=n||Gp}No.prototype.isReactComponent={};No.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")};No.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xp(){}Xp.prototype=No.prototype;function Ju(e,t,n){this.props=e,this.context=t,this.refs=qp,this.updater=n||Gp}var ec=Ju.prototype=new Xp;ec.constructor=Ju;Yp(ec,No.prototype);ec.isPureReactComponent=!0;var Ad=Array.isArray,Zp=Object.prototype.hasOwnProperty,tc={current:null},Jp={key:!0,ref:!0,__self:!0,__source:!0};function em(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Zp.call(t,r)&&!Jp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,B=k[H];if(0>>1;Ho(ce,L))weo(D,ce)?(k[H]=D,k[we]=L,H=we):(k[H]=ce,k[Q]=L,H=Q);else if(weo(D,L))k[H]=D,k[we]=L,H=we;else break e}}return R}function o(k,R){var L=k.sortIndex-R.sortIndex;return L!==0?L:k.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,p=null,y=3,m=!1,S=!1,h=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=k)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function C(k){if(h=!1,x(k),!S)if(n(l)!==null)S=!0,z(E);else{var R=n(u);R!==null&&U(C,R.startTime-k)}}function E(k,R){S=!1,h&&(h=!1,g(T),T=-1),m=!0;var L=y;try{for(x(R),p=n(l);p!==null&&(!(p.expirationTime>R)||k&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,y=p.priorityLevel;var B=H(p.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?p.callback=B:p===n(l)&&r(l),x(R)}else r(l);p=n(l)}if(p!==null)var Y=!0;else{var Q=n(u);Q!==null&&U(C,Q.startTime-R),Y=!1}return Y}finally{p=null,y=L,m=!1}}var N=!1,b=null,T=-1,_=5,O=-1;function $(){return!(e.unstable_now()-O<_)}function M(){if(b!==null){var k=e.unstable_now();O=k;var R=!0;try{R=b(!0,k)}finally{R?V():(N=!1,b=null)}}else N=!1}var V;if(typeof f=="function")V=function(){f(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,W=I.port2;I.port1.onmessage=M,V=function(){W.postMessage(null)}}else V=function(){w(M,0)};function z(k){b=k,N||(N=!0,V())}function U(k,R){T=w(function(){k(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){S||m||(S=!0,z(E))},e.unstable_forceFrameRate=function(k){0>k||125H?(k.sortIndex=L,t(u,k),n(l)===null&&k===n(u)&&(h?(g(T),T=-1):h=!0,U(C,L-H))):(k.sortIndex=B,t(l,k),S||m||(S=!0,z(E))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var R=y;return function(){var L=y;y=R;try{return k.apply(this,arguments)}finally{y=L}}}})(im);om.exports=im;var tx=om.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 nx=v,st=tx;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"),Fl=Object.prototype.hasOwnProperty,rx=/^[: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={},Id={};function ox(e){return Fl.call(Id,e)?!0:Fl.call(Od,e)?!1:rx.test(e)?Id[e]=!0:(Od[e]=!0,!1)}function ix(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 sx(e,t,n,r){if(t===null||typeof t>"u"||ix(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 Ke(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ke(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){Ie[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var oc=/[\-:]([a-z])/g;function ic(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(oc,ic);Ie[t]=new Ke(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(oc,ic);Ie[t]=new Ke(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(oc,ic);Ie[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function sc(e,t,n,r){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ja=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qo(e):""}function ax(e){switch(e.tag){case 5:return Qo(e.type);case 16:return Qo("Lazy");case 13:return Qo("Suspense");case 19:return Qo("SuspenseList");case 0:case 2:case 15:return e=el(e.type,!1),e;case 11:return e=el(e.type.render,!1),e;case 1:return e=el(e.type,!0),e;default:return""}}function Ul(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 Fr:return"Fragment";case Dr:return"Portal";case zl:return"Profiler";case ac:return"StrictMode";case $l:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lm:return(e.displayName||"Context")+".Consumer";case am:return(e._context.displayName||"Context")+".Provider";case lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uc:return t=e.displayName||null,t!==null?t:Ul(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return Ul(e(t))}catch{}}return null}function lx(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 Ul(t);case 8:return t===ac?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ux(e){var t=cm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=ux(e))}function dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function As(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 fm(e,t){t=t.checked,t!=null&&sc(e,"checked",t,!1)}function Hl(e,t){fm(e,t);var n=Vn(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")?Wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wl(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dd(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 Wl(e,t,n){(t!=="number"||As(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ko=Array.isArray;function Yr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xo={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},cx=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(e){cx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xo[t]=Xo[e]})});function vm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xo.hasOwnProperty(e)&&Xo[e]?(""+t).trim():t+"px"}function gm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dx=xe({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 Gl(e,t){if(t){if(dx[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 Yl(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 ql=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,qr=null,Xr=null;function $d(e){if(e=Ii(e)){if(typeof Xl!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ha(t),Xl(e.stateNode,e.type,t))}}function ym(e){qr?Xr?Xr.push(e):Xr=[e]:qr=e}function xm(){if(qr){var e=qr,t=Xr;if(Xr=qr=null,$d(e),t)for(e=0;e>>=0,e===0?32:31-(Cx(e)/Ex|0)|0}var Wi=64,Qi=4194304;function Go(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 Ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Go(a):(i&=s,i!==0&&(r=Go(i)))}else s=n&~o,s!==0?r=Go(s):i!==0&&(r=Go(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function _i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function Px(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=Jo),Yd=" ",qd=!1;function zm(e,t){switch(e){case"keyup":return tw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zr=!1;function rw(e,t){switch(e){case"compositionend":return $m(t);case"keypress":return t.which!==32?null:(qd=!0,Yd);case"textInput":return e=t.data,e===Yd&&qd?null:e;default:return null}}function ow(e,t){if(zr)return e==="compositionend"||!yc&&zm(e,t)?(e=Dm(),vs=hc=An=null,zr=!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=ef(n)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(){for(var e=window,t=As();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=As(e.document)}return t}function xc(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 pw(e){var t=Wm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hm(n.ownerDocument.documentElement,n)){if(r!==null&&xc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=tf(n,i);var s=tf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$r=null,ru=null,ti=null,ou=!1;function nf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ou||$r==null||$r!==As(r)||(r=$r,"selectionStart"in r&&xc(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}),ti&&mi(ti,r)||(ti=r,r=Fs(ru,"onSelect"),0Vr||(e.current=cu[Vr],cu[Vr]=null,Vr--)}function ue(e,t){Vr++,cu[Vr]=e.current,e.current=t}var Hn={},Be=Gn(Hn),Xe=Gn(!1),vr=Hn;function ho(e,t){var n=e.type.contextTypes;if(!n)return Hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ze(e){return e=e.childContextTypes,e!=null}function $s(){pe(Xe),pe(Be)}function cf(e,t,n){if(Be.current!==Hn)throw Error(A(168));ue(Be,t),ue(Xe,n)}function eh(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,lx(e)||"Unknown",o));return xe({},n,r)}function Bs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,vr=Be.current,ue(Be,e),ue(Xe,Xe.current),!0}function df(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=eh(e,t,vr),r.__reactInternalMemoizedMergedChildContext=e,pe(Xe),pe(Be),ue(Be,e)):pe(Xe),ue(Xe,n)}var en=null,va=!1,ml=!1;function th(e){en===null?en=[e]:en.push(e)}function Nw(e){va=!0,th(e)}function Yn(){if(!ml&&en!==null){ml=!0;var e=0,t=ae;try{var n=en;for(ae=1;e>=s,o-=s,nn=1<<32-_t(t)+o|n<T?(_=b,b=null):_=b.sibling;var O=y(g,b,x[T],C);if(O===null){b===null&&(b=_);break}e&&b&&O.alternate===null&&t(g,b),f=i(O,f,T),N===null?E=O:N.sibling=O,N=O,b=_}if(T===x.length)return n(g,b),he&&rr(g,T),E;if(b===null){for(;TT?(_=b,b=null):_=b.sibling;var $=y(g,b,O.value,C);if($===null){b===null&&(b=_);break}e&&b&&$.alternate===null&&t(g,b),f=i($,f,T),N===null?E=$:N.sibling=$,N=$,b=_}if(O.done)return n(g,b),he&&rr(g,T),E;if(b===null){for(;!O.done;T++,O=x.next())O=p(g,O.value,C),O!==null&&(f=i(O,f,T),N===null?E=O:N.sibling=O,N=O);return he&&rr(g,T),E}for(b=r(g,b);!O.done;T++,O=x.next())O=m(b,g,T,O.value,C),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?T:O.key),f=i(O,f,T),N===null?E=O:N.sibling=O,N=O);return e&&b.forEach(function(M){return t(g,M)}),he&&rr(g,T),E}function w(g,f,x,C){if(typeof x=="object"&&x!==null&&x.type===Fr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ui:e:{for(var E=x.key,N=f;N!==null;){if(N.key===E){if(E=x.type,E===Fr){if(N.tag===7){n(g,N.sibling),f=o(N,x.props.children),f.return=g,g=f;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Cn&&mf(E)===N.type){n(g,N.sibling),f=o(N,x.props),f.ref=Bo(g,N,x),f.return=g,g=f;break e}n(g,N);break}else t(g,N);N=N.sibling}x.type===Fr?(f=hr(x.props.children,g.mode,C,x.key),f.return=g,g=f):(C=bs(x.type,x.key,x.props,null,g.mode,C),C.ref=Bo(g,f,x),C.return=g,g=C)}return s(g);case Dr:e:{for(N=x.key;f!==null;){if(f.key===N)if(f.tag===4&&f.stateNode.containerInfo===x.containerInfo&&f.stateNode.implementation===x.implementation){n(g,f.sibling),f=o(f,x.children||[]),f.return=g,g=f;break e}else{n(g,f);break}else t(g,f);f=f.sibling}f=Cl(x,g.mode,C),f.return=g,g=f}return s(g);case Cn:return N=x._init,w(g,f,N(x._payload),C)}if(Ko(x))return S(g,f,x,C);if(Lo(x))return h(g,f,x,C);Ji(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,f!==null&&f.tag===6?(n(g,f.sibling),f=o(f,x),f.return=g,g=f):(n(g,f),f=Sl(x,g.mode,C),f.return=g,g=f),s(g)):n(g,f)}return w}var go=ih(!0),sh=ih(!1),Hs=Gn(null),Ws=null,Qr=null,Ec=null;function bc(){Ec=Qr=Ws=null}function Nc(e){var t=Hs.current;pe(Hs),e._currentValue=t}function pu(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 Jr(e,t){Ws=e,Ec=Qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Ec!==e)if(e={context:e,memoizedValue:t,next:null},Qr===null){if(Ws===null)throw Error(A(308));Qr=e,Ws.dependencies={lanes:0,firstContext:e}}else Qr=Qr.next=e;return t}var sr=null;function kc(e){sr===null?sr=[e]:sr.push(e)}function ah(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,kc(t)):(n.next=o.next,o.next=n),t.interleaved=n,ln(e,r)}function ln(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 En=!1;function Pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(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 on(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,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ln(e,n)}return o=r.interleaved,o===null?(t.next=t,kc(r)):(t.next=o.next,o.next=t),r.interleaved=t,ln(e,n)}function ys(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,fc(e,n)}}function hf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qs(e,t,n,r){var o=e.updateQueue;En=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var p=o.baseState;s=0,d=u=l=null,a=i;do{var y=a.lane,m=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var S=e,h=a;switch(y=t,m=n,h.tag){case 1:if(S=h.payload,typeof S=="function"){p=S.call(m,p,y);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=h.payload,y=typeof S=="function"?S.call(m,p,y):S,y==null)break e;p=xe({},p,y);break e;case 2:En=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else m={eventTime:m,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=p):d=d.next=m,s|=y;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;y=a,a=y.next,y.next=null,o.lastBaseUpdate=y,o.shared.pending=null}}while(!0);if(d===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);xr|=s,e.lanes=s,e.memoizedState=p}}function vf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=vl.transition;vl.transition={};try{e(!1),t()}finally{ae=n,vl.transition=r}}function Nh(){return gt().memoizedState}function Rw(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kh(e))Ph(t,n);else if(n=ah(e,t,n,r),n!==null){var o=We();Ot(n,e,r,o),Th(n,t,r)}}function jw(e,t,n){var r=Bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kh(e))Ph(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,It(a,s)){var l=t.interleaved;l===null?(o.next=o,kc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=ah(e,t,o,r),n!==null&&(o=We(),Ot(n,e,r,o),Th(n,t,r))}}function kh(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Ph(e,t){ni=Gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Th(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fc(e,n)}}var Ys={readContext:vt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Aw={readContext:vt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:yf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ws(4194308,4,wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return ws(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();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=Rw.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:gf,useDebugValue:Mc,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=gf(!1),t=e[0];return e=Tw.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=zt();if(he){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ae===null)throw Error(A(349));yr&30||fh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,yf(mh.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,ph.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=Ae.identifierPrefix;if(he){var n=rn,r=nn;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vt]=t,e[gi]=r,Fh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yl(n,r),n){case"dialog":fe("cancel",e),fe("close",e),o=r;break;case"iframe":case"object":case"embed":fe("load",e),o=r;break;case"video":case"audio":for(o=0;owo&&(t.flags|=128,r=!0,Uo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ks(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Fe(t),null}else 2*be()-i.renderingStartTime>wo&&n!==1073741824&&(t.flags|=128,r=!0,Uo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=ge.current,ue(ge,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Bc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&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 zw(e,t){switch(Sc(t),t.tag){case 1:return Ze(t.type)&&$s(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),pe(Xe),pe(Be),jc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Rc(t),null;case 13:if(pe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ge),null;case 4:return yo(),null;case 10:return Nc(t.type._context),null;case 22:case 23:return Bc(),null;case 24:return null;default:return null}}var ts=!1,$e=!1,$w=typeof WeakSet=="function"?WeakSet:Set,F=null;function Kr(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 Cu(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Rf=!1;function Bw(e,t){if(iu=Ls,e=Wm(),xc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,p=e,y=null;t:for(;;){for(var m;p!==n||o!==0&&p.nodeType!==3||(a=s+o),p!==i||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(m=p.firstChild)!==null;)y=p,p=m;for(;;){if(p===e)break t;if(y===n&&++u===o&&(a=s),y===i&&++d===r&&(l=s),(m=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(su={focusedElem:e,selectionRange:n},Ls=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;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 h=S.memoizedProps,w=S.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?h:kt(t.type,h),w);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(C){Ee(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return S=Rf,Rf=!1,S}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Cu(t,n,i)}o=o.next}while(o!==r)}}function xa(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 Eu(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 Bh(e){var t=e.alternate;t!==null&&(e.alternate=null,Bh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[gi],delete t[uu],delete t[Ew],delete t[bw])),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 Uh(e){return e.tag===5||e.tag===3||e.tag===4}function jf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(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 bu(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=zs));else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}function Nu(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(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}var _e=null,jt=!1;function gn(e,t,n){for(n=n.child;n!==null;)Vh(e,t,n),n=n.sibling}function Vh(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(da,n)}catch{}switch(n.tag){case 5:$e||Kr(n,t);case 6:var r=_e,o=jt;_e=null,gn(e,t,n),_e=r,jt=o,_e!==null&&(jt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(jt?(e=_e,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),fi(e)):pl(_e,n.stateNode));break;case 4:r=_e,o=jt,_e=n.stateNode.containerInfo,jt=!0,gn(e,t,n),_e=r,jt=o;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Cu(n,t,s),o=o.next}while(o!==r)}gn(e,t,n);break;case 1:if(!$e&&(Kr(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)}gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,gn(e,t,n),$e=r):gn(e,t,n);break;default:gn(e,t,n)}}function Af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $w),t.forEach(function(r){var o=qw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vw(r/1960))-r,10e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,Zs=0,te&6)throw Error(A(331));var o=te;for(te|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lbe()-zc?mr(e,0):Fc|=n),Je(e,t)}function Xh(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=We();e=ln(e,t),e!==null&&(_i(e,t,n),Je(e,n))}function Yw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xh(e,n)}function qw(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),Xh(e,n)}var Zh;Zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Dw(e,t,n);qe=!!(e.flags&131072)}else qe=!1,he&&t.flags&1048576&&nh(t,Vs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ss(e,t),e=t.pendingProps;var o=ho(t,Be.current);Jr(t,n),o=_c(null,t,r,e,o,n);var i=Oc();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,Ze(r)?(i=!0,Bs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pc(t),o.updater=ya,t.stateNode=o,o._reactInternals=t,hu(t,r,e,n),t=yu(null,t,r,!0,i,n)):(t.tag=0,he&&i&&wc(t),Ve(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ss(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zw(r),e=kt(r,e),o){case 0:t=gu(null,t,r,e,n);break e;case 1:t=kf(null,t,r,e,n);break e;case 11:t=bf(null,t,r,e,n);break e;case 14:t=Nf(null,t,r,kt(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:kt(r,o),gu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),kf(e,t,r,o,n);case 3:e:{if(Mh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,lh(e,t),Qs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=xo(Error(A(423)),t),t=Pf(e,t,r,n,o);break e}else if(r!==o){o=xo(Error(A(424)),t),t=Pf(e,t,r,n,o);break e}else for(rt=Fn(t.stateNode.containerInfo.firstChild),ot=t,he=!0,At=null,n=sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vo(),r===o){t=un(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return uh(t),e===null&&fu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,au(r,o)?s=null:i!==null&&au(r,i)&&(t.flags|=32),Ih(e,t),Ve(e,t,s,n),t.child;case 6:return e===null&&fu(t),null;case 13:return Lh(e,t,n);case 4:return Tc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),bf(e,t,r,o,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ue(Hs,r._currentValue),r._currentValue=s,i!==null)if(It(i.value,s)){if(i.children===o.children&&!Xe.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=on(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),pu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pu(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ve(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Jr(t,n),o=vt(o),r=r(o),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,o=kt(r,t.pendingProps),o=kt(r.type,o),Nf(e,t,r,o,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Ss(e,t),t.tag=1,Ze(r)?(e=!0,Bs(t)):e=!1,Jr(t,n),Rh(t,r,o),hu(t,r,o,n),yu(null,t,r,!0,e,n);case 19:return Dh(e,t,n);case 22:return Oh(e,t,n)}throw Error(A(156,t.tag))};function Jh(e,t){return km(e,t)}function Xw(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 mt(e,t,n,r){return new Xw(e,t,n,r)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zw(e){if(typeof e=="function")return Vc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lc)return 11;if(e===uc)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=mt(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 bs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Vc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fr:return hr(n.children,o,i,t);case ac:s=8,o|=8;break;case zl:return e=mt(12,n,t,o|2),e.elementType=zl,e.lanes=i,e;case $l:return e=mt(13,n,t,o),e.elementType=$l,e.lanes=i,e;case Bl:return e=mt(19,n,t,o),e.elementType=Bl,e.lanes=i,e;case um:return Sa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case am:s=10;break e;case lm:s=9;break e;case lc:s=11;break e;case uc:s=14;break e;case Cn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=mt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function hr(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Sa(e,t,n,r){return e=mt(22,e,r,t),e.elementType=um,e.lanes=n,e.stateNode={isHidden:!1},e}function Sl(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Cl(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jw(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=nl(0),this.expirationTimes=nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,o,i,s,a,l){return e=new Jw(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(i),e}function e1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rv)}catch(e){console.error(e)}}rv(),rm.exports=at;var Pr=rm.exports;const ov=Wp(Pr);var iv,zf=Pr;iv=zf.createRoot,zf.hydrateRoot;const i1=1,s1=1e6;let El=0;function a1(){return El=(El+1)%Number.MAX_SAFE_INTEGER,El.toString()}const bl=new Map,$f=e=>{if(bl.has(e))return;const t=setTimeout(()=>{bl.delete(e),si({type:"REMOVE_TOAST",toastId:e})},s1);bl.set(e,t)},l1=(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?$f(n):e.toasts.forEach(r=>{$f(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)}}},Ns=[];let ks={toasts:[]};function si(e){ks=l1(ks,e),Ns.forEach(t=>{t(ks)})}function u1({...e}){const t=a1(),n=o=>si({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>si({type:"DISMISS_TOAST",toastId:t});return si({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function sv(){const[e,t]=v.useState(ks);return v.useEffect(()=>(Ns.push(t),()=>{const n=Ns.indexOf(t);n>-1&&Ns.splice(n,1)}),[e]),{...e,toast:u1,dismiss:n=>si({type:"DISMISS_TOAST",toastId:n})}}function X(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 Bf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function av(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Bf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:y,children:m,...S}=p,h=((g=y==null?void 0:y[e])==null?void 0:g[l])||a,w=v.useMemo(()=>S,Object.values(S));return c.jsx(h.Provider,{value:w,children:m})};u.displayName=i+"Provider";function d(p,y){var h;const m=((h=y==null?void 0:y[e])==null?void 0:h[l])||a,S=v.useContext(m);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,c1(o,...t)]}function c1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function bi(e){const t=f1(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,a=v.Children.toArray(i),l=a.find(m1);if(l){const u=l.props.children,d=a.map(p=>p===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var d1=bi("Slot");function f1(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=v1(o),a=h1(i,o.props);return o.type!==v.Fragment&&(a.ref=r?av(r,s):s),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lv=Symbol("radix.slottable");function p1(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=lv,t}function m1(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lv}function h1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function v1(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 Gc(e){const t=e+"CollectionProvider",[n,r]=qn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:w,children:g}=h,f=j.useRef(null),x=j.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:x,collectionRef:f,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=bi(a),u=j.forwardRef((h,w)=>{const{scope:g,children:f}=h,x=i(a,g),C=ve(w,x.collectionRef);return c.jsx(l,{ref:C,children:f})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",y=bi(d),m=j.forwardRef((h,w)=>{const{scope:g,children:f,...x}=h,C=j.useRef(null),E=ve(w,C),N=i(d,g);return j.useEffect(()=>(N.itemMap.set(C,{ref:C,...x}),()=>void N.itemMap.delete(C))),c.jsx(y,{[p]:"",ref:E,children:f})});m.displayName=d;function S(h){const w=i(e+"CollectionConsumer",h);return j.useCallback(()=>{const f=w.collectionRef.current;if(!f)return[];const x=Array.from(f.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((N,b)=>x.indexOf(N.ref.current)-x.indexOf(b.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},S,r]}var g1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=g1.reduce((e,t)=>{const n=bi(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function uv(e,t){e&&Pr.flushSync(()=>e.dispatchEvent(t))}function yt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function y1(e,t=globalThis==null?void 0:globalThis.document){const n=yt(e);v.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 x1="DismissableLayer",ju="dismissableLayer.update",w1="dismissableLayer.pointerDownOutside",S1="dismissableLayer.focusOutside",Uf,cv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ka=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(cv),[d,p]=v.useState(null),y=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=v.useState({}),S=ve(t,b=>p(b)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(w),f=d?h.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=f>=g,E=E1(b=>{const T=b.target,_=[...u.branches].some(O=>O.contains(T));!C||_||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},y),N=b1(b=>{const T=b.target;[...u.branches].some(O=>O.contains(T))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},y);return y1(b=>{f===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},y),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Uf=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Uf)}},[d,y,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vf())},[d,u]),v.useEffect(()=>{const b=()=>m({});return document.addEventListener(ju,b),()=>document.removeEventListener(ju,b)},[]),c.jsx(J.div,{...l,ref:S,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,N.onFocusCapture),onBlurCapture:X(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,E.onPointerDownCapture)})});ka.displayName=x1;var C1="DismissableLayerBranch",dv=v.forwardRef((e,t)=>{const n=v.useContext(cv),r=v.useRef(null),o=ve(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(J.div,{...e,ref:o})});dv.displayName=C1;function E1(e,t=globalThis==null?void 0:globalThis.document){const n=yt(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){fv(w1,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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b1(e,t=globalThis==null?void 0:globalThis.document){const n=yt(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&fv(S1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vf(){const e=new CustomEvent(ju);document.dispatchEvent(e)}function fv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uv(o,i):o.dispatchEvent(i)}var N1=ka,k1=dv,Ne=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},P1="Portal",Yc=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);Ne(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?ov.createPortal(c.jsx(J.div,{...r,ref:t}),s):null});Yc.displayName=P1;function T1(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Pa=e=>{const{present:t,children:n}=e,r=R1(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=ve(r.ref,j1(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Pa.displayName="Presence";function R1(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=T1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=os(r.current);i.current=a==="mounted"?u:"none"},[a]),Ne(()=>{const u=r.current,d=o.current;if(d!==e){const y=i.current,m=os(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&y!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ne(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=m=>{const h=os(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},y=m=>{m.target===t&&(i.current=os(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function os(e){return(e==null?void 0:e.animationName)||"none"}function j1(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 A1=rc[" useInsertionEffect ".trim().toString()]||Ne;function So({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=_1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=v.useRef(e!==void 0);v.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"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=v.useCallback(d=>{var p;if(a){const y=O1(d)?d(e):d;y!==e&&((p=s.current)==null||p.call(s,y))}else i(d)},[a,e,i,s]);return[l,u]}function _1({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return A1(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function O1(e){return typeof e=="function"}var pv=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"}),I1="VisuallyHidden",Ta=v.forwardRef((e,t)=>c.jsx(J.span,{...e,ref:t,style:{...pv,...e.style}}));Ta.displayName=I1;var M1=Ta,qc="ToastProvider",[Xc,L1,D1]=Gc("Toast"),[mv,uP]=qn("Toast",[D1]),[F1,Ra]=mv(qc),hv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[u,d]=v.useState(0),p=v.useRef(!1),y=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qc}\`. Expected non-empty \`string\`.`),c.jsx(Xc.Provider,{scope:t,children:c.jsx(F1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>d(m=>m+1),[]),onToastRemove:v.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:y,children:s})})};hv.displayName=qc;var vv="ToastViewport",z1=["F8"],Au="toast.viewportPause",_u="toast.viewportResume",gv=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=z1,label:o="Notifications ({hotkey})",...i}=e,s=Ra(vv,n),a=L1(n),l=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),y=ve(t,p,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=s.toastCount>0;v.useEffect(()=>{const w=g=>{var x;r.length!==0&&r.every(C=>g[C]||g.code===C)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=l.current,g=p.current;if(S&&w&&g){const f=()=>{if(!s.isClosePausedRef.current){const N=new CustomEvent(Au);g.dispatchEvent(N),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const N=new CustomEvent(_u);g.dispatchEvent(N),s.isClosePausedRef.current=!1}},C=N=>{!w.contains(N.relatedTarget)&&x()},E=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",f),w.addEventListener("focusout",C),w.addEventListener("pointermove",f),w.addEventListener("pointerleave",E),window.addEventListener("blur",f),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",f),w.removeEventListener("focusout",C),w.removeEventListener("pointermove",f),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",f),window.removeEventListener("focus",x)}}},[S,s.isClosePausedRef]);const h=v.useCallback(({tabbingDirection:w})=>{const f=a().map(x=>{const C=x.ref.current,E=[C,...Z1(C)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?f.reverse():f).flat()},[a]);return v.useEffect(()=>{const w=p.current;if(w){const g=f=>{var E,N,b;const x=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!x){const T=document.activeElement,_=f.shiftKey;if(f.target===w&&_){(E=u.current)==null||E.focus();return}const M=h({tabbingDirection:_?"backwards":"forwards"}),V=M.findIndex(I=>I===T);Nl(M.slice(V+1))?f.preventDefault():_?(N=u.current)==null||N.focus():(b=d.current)==null||b.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,h]),c.jsxs(k1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&c.jsx(Ou,{ref:u,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"forwards"});Nl(w)}}),c.jsx(Xc.Slot,{scope:n,children:c.jsx(J.ol,{tabIndex:-1,...i,ref:y})}),S&&c.jsx(Ou,{ref:d,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"backwards"});Nl(w)}})]})});gv.displayName=vv;var yv="ToastFocusProxy",Ou=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Ra(yv,n);return c.jsx(Ta,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Ou.displayName=yv;var Li="Toast",$1="toast.swipeStart",B1="toast.swipeMove",U1="toast.swipeCancel",V1="toast.swipeEnd",xv=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=So({prop:r,defaultProp:o??!0,onChange:i,caller:Li});return c.jsx(Pa,{present:n||a,children:c.jsx(Q1,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:yt(e.onPause),onResume:yt(e.onResume),onSwipeStart:X(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,u=>{const{x:d,y:p}=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",`${p}px`)}),onSwipeCancel:X(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:X(e.onSwipeEnd,u=>{const{x:d,y:p}=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",`${p}px`),l(!1)})})})});xv.displayName=Li;var[H1,W1]=mv(Li,{onClose(){}}),Q1=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:y,onSwipeEnd:m,...S}=e,h=Ra(Li,n),[w,g]=v.useState(null),f=ve(t,I=>g(I)),x=v.useRef(null),C=v.useRef(null),E=o||h.duration,N=v.useRef(0),b=v.useRef(E),T=v.useRef(0),{onToastAdd:_,onToastRemove:O}=h,$=yt(()=>{var W;(w==null?void 0:w.contains(document.activeElement))&&((W=h.viewport)==null||W.focus()),s()}),M=v.useCallback(I=>{!I||I===1/0||(window.clearTimeout(T.current),N.current=new Date().getTime(),T.current=window.setTimeout($,I))},[$]);v.useEffect(()=>{const I=h.viewport;if(I){const W=()=>{M(b.current),u==null||u()},z=()=>{const U=new Date().getTime()-N.current;b.current=b.current-U,window.clearTimeout(T.current),l==null||l()};return I.addEventListener(Au,z),I.addEventListener(_u,W),()=>{I.removeEventListener(Au,z),I.removeEventListener(_u,W)}}},[h.viewport,E,l,u,M]),v.useEffect(()=>{i&&!h.isClosePausedRef.current&&M(E)},[i,E,h.isClosePausedRef,M]),v.useEffect(()=>(_(),()=>O()),[_,O]);const V=v.useMemo(()=>w?kv(w):null,[w]);return h.viewport?c.jsxs(c.Fragment,{children:[V&&c.jsx(K1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),c.jsx(H1,{scope:n,onClose:$,children:Pr.createPortal(c.jsx(Xc.ItemSlot,{scope:n,children:c.jsx(N1,{asChild:!0,onEscapeKeyDown:X(a,()=>{h.isFocusedToastEscapeKeyDownRef.current||$(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(J.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":h.swipeDirection,...S,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:X(e.onPointerDown,I=>{I.button===0&&(x.current={x:I.clientX,y:I.clientY})}),onPointerMove:X(e.onPointerMove,I=>{if(!x.current)return;const W=I.clientX-x.current.x,z=I.clientY-x.current.y,U=!!C.current,k=["left","right"].includes(h.swipeDirection),R=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,L=k?R(0,W):0,H=k?0:R(0,z),B=I.pointerType==="touch"?10:2,Y={x:L,y:H},Q={originalEvent:I,delta:Y};U?(C.current=Y,is(B1,p,Q,{discrete:!1})):Hf(Y,h.swipeDirection,B)?(C.current=Y,is($1,d,Q,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(W)>B||Math.abs(z)>B)&&(x.current=null)}),onPointerUp:X(e.onPointerUp,I=>{const W=C.current,z=I.target;if(z.hasPointerCapture(I.pointerId)&&z.releasePointerCapture(I.pointerId),C.current=null,x.current=null,W){const U=I.currentTarget,k={originalEvent:I,delta:W};Hf(W,h.swipeDirection,h.swipeThreshold)?is(V1,m,k,{discrete:!0}):is(U1,y,k,{discrete:!0}),U.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),K1=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ra(Li,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return q1(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Yc,{asChild:!0,children:c.jsx(Ta,{...r,children:i&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},G1="ToastTitle",wv=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(J.div,{...r,ref:t})});wv.displayName=G1;var Y1="ToastDescription",Sv=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(J.div,{...r,ref:t})});Sv.displayName=Y1;var Cv="ToastAction",Ev=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(Nv,{altText:n,asChild:!0,children:c.jsx(Zc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Cv}\`. Expected non-empty \`string\`.`),null)});Ev.displayName=Cv;var bv="ToastClose",Zc=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=W1(bv,n);return c.jsx(Nv,{asChild:!0,children:c.jsx(J.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});Zc.displayName=bv;var Nv=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(J.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function kv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),X1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...kv(r))}}),t}function is(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uv(o,i):o.dispatchEvent(i)}var Hf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function q1(e=()=>{}){const t=yt(e);Ne(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function X1(e){return e.nodeType===e.ELEMENT_NODE}function Z1(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 Nl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var J1=hv,Pv=gv,Tv=xv,Rv=wv,jv=Sv,Av=Ev,_v=Zc;function Ov(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,Qf=Iv,Jc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const y=Wf(d)||Wf(p);return o[u][y]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,y]=d;return y===void 0||(u[p]=y),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:y,...m}=d;return Object.entries(m).every(S=>{let[h,w]=S;return Array.isArray(w)?w.includes({...i,...a}[h]):{...i,...a}[h]===w})?[...u,p,y]:u},[]);return Qf(e,s,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 eS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mv=(...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 tS={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 nS=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...tS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mv("lucide",o),...a},[...s.map(([u,d])=>v.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ke=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(nS,{ref:i,iconNode:t,className:Mv(`lucide-${eS(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 rS=ke("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 oS=ke("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]);/** * @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 iS=ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ed=ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sS=ke("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aS=ke("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lS=ke("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** * @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 uS=ke("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/** * @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 cS=ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dS=ke("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** * @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 Kf=ke("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** * @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 Lv=ke("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fS=ke("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 To=ke("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 Dv=ke("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 pS=ke("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mS=ke("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** * @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 Fv=ke("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 zv=ke("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hS=ke("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 vS=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),td="-",gS=e=>{const t=xS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(td);return a[0]===""&&a.length!==1&&a.shift(),$v(a,t)||yS(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},$v=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?$v(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(td);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Gf=/^\[(.+)\]$/,yS=e=>{if(Gf.test(e)){const t=Gf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return SS(Object.entries(e.classGroups),n).forEach(([i,s])=>{Iu(s,r,i,t)}),r},Iu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Yf(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(wS(o)){Iu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Iu(s,Yf(t,i),n,r)})})},Yf=(e,t)=>{let n=e;return t.split(td).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},wS=e=>e.isThemeGetter,SS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,CS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Bv="!",ES=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,d=0,p;for(let w=0;wd?p-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:S,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},bS=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},NS=e=>({cache:CS(e.cacheSize),parseClassName:ES(e),...gS(e)}),kS=/\s+/,PS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(kS);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:d,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);let S=!!m,h=r(S?y.substring(0,m):y);if(!h){if(!S){a=u+(a.length>0?" "+a:a);continue}if(h=r(y),!h){a=u+(a.length>0?" "+a:a);continue}S=!1}const w=bS(d).join(":"),g=p?w+Bv:w,f=g+h;if(i.includes(f))continue;i.push(f);const x=o(h,S);for(let C=0;C0?" "+a:a)}return a};function TS(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=NS(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=PS(l,n);return o(l,d),d}return function(){return i(TS.apply(null,arguments))}}const de=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vv=/^\[(?:([a-z-]+):)?(.+)\]$/i,jS=/^\d+\/\d+$/,AS=new Set(["px","full","screen"]),_S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OS=/\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$/,IS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,MS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>to(e)||AS.has(e)||jS.test(e),yn=e=>Ro(e,"length",HS),to=e=>!!e&&!Number.isNaN(Number(e)),kl=e=>Ro(e,"number",to),Ho=e=>!!e&&Number.isInteger(Number(e)),DS=e=>e.endsWith("%")&&to(e.slice(0,-1)),q=e=>Vv.test(e),xn=e=>_S.test(e),FS=new Set(["length","size","percentage"]),zS=e=>Ro(e,FS,Hv),$S=e=>Ro(e,"position",Hv),BS=new Set(["image","url"]),US=e=>Ro(e,BS,QS),VS=e=>Ro(e,"",WS),Wo=()=>!0,Ro=(e,t,n)=>{const r=Vv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},HS=e=>OS.test(e)&&!IS.test(e),Hv=()=>!1,WS=e=>MS.test(e),QS=e=>LS.test(e),KS=()=>{const e=de("colors"),t=de("spacing"),n=de("blur"),r=de("brightness"),o=de("borderColor"),i=de("borderRadius"),s=de("borderSpacing"),a=de("borderWidth"),l=de("contrast"),u=de("grayscale"),d=de("hueRotate"),p=de("invert"),y=de("gap"),m=de("gradientColorStops"),S=de("gradientColorStopPositions"),h=de("inset"),w=de("margin"),g=de("opacity"),f=de("padding"),x=de("saturate"),C=de("scale"),E=de("sepia"),N=de("skew"),b=de("space"),T=de("translate"),_=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",q,t],M=()=>[q,t],V=()=>["",Xt,yn],I=()=>["auto",to,q],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[to,q];return{cacheSize:500,separator:":",theme:{colors:[Wo],spacing:[Xt,yn],blur:["none","",xn,q],brightness:H(),borderColor:[e],borderRadius:["none","","full",xn,q],borderSpacing:M(),borderWidth:V(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[DS,yn],inset:$(),margin:$(),opacity:H(),padding:M(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[xn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),q]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ho,q]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ho,q]}],"grid-cols":[{"grid-cols":[Wo]}],"col-start-end":[{col:["auto",{span:["full",Ho,q]},q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wo]}],"row-start-end":[{row:["auto",{span:[Ho,q]},q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[xn]},xn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xn,yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",kl]}],"font-family":[{font:[Wo]}],"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",q]}],"line-clamp":[{"line-clamp":["none",to,kl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,yn]}],"underline-offset":[{"underline-offset":["auto",Xt,q]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],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",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),$S]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},US]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[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":[g]}],"border-style":[{border:[...z(),"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":[g]}],"divide-style":[{divide:z()}],"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:["",...z()]}],"outline-offset":[{"outline-offset":[Xt,q]}],"outline-w":[{outline:[Xt,yn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Xt,yn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xn,VS]}],"shadow-color":[{shadow:[Wo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xn,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"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":[p]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ho,q]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],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",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,yn,kl]}],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"]}}},GS=RS(KS);function ie(...e){return GS(Iv(e))}const YS=J1,Wv=v.forwardRef(({className:e,...t},n)=>c.jsx(Pv,{ref:n,className:ie("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}));Wv.displayName=Pv.displayName;const qS=Jc("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"}}),Qv=v.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Tv,{ref:r,className:ie(qS({variant:t}),e),...n}));Qv.displayName=Tv.displayName;const XS=v.forwardRef(({className:e,...t},n)=>c.jsx(Av,{ref:n,className:ie("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}));XS.displayName=Av.displayName;const Kv=v.forwardRef(({className:e,...t},n)=>c.jsx(_v,{ref:n,className:ie("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:c.jsx(vS,{className:"h-4 w-4"})}));Kv.displayName=_v.displayName;const Gv=v.forwardRef(({className:e,...t},n)=>c.jsx(Rv,{ref:n,className:ie("text-sm font-semibold",e),...t}));Gv.displayName=Rv.displayName;const Yv=v.forwardRef(({className:e,...t},n)=>c.jsx(jv,{ref:n,className:ie("text-sm opacity-90",e),...t}));Yv.displayName=jv.displayName;function ZS(){const{toasts:e}=sv();return c.jsxs(YS,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return c.jsxs(Qv,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Gv,{children:n}),r&&c.jsx(Yv,{children:r})]}),o,c.jsx(Kv,{})]},t)}),c.jsx(Wv,{})]})}var qf=["light","dark"],JS="(prefers-color-scheme: dark)",eC=v.createContext(void 0),tC={setTheme:e=>{},themes:[]},nC=()=>{var e;return(e=v.useContext(eC))!=null?e:tC};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="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';`,p=o?qf.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=(S,h=!1,w=!0)=>{let g=s?s[S]:S,f=h?S+"|| ''":`'${g}'`,x="";return o&&w&&!h&&qf.includes(S)&&(x+=`d.style.colorScheme = '${S}';`),n==="class"?h||g?x+=`c.add(${f})`:x+="null":g&&(x+=`d[s](n,${f})`),x},m=e?`!function(){${d}${y(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${JS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${y("dark")}}else{${y("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${y(s?"x[e]":"e",!0)}}${u?"":"else{"+y(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${y(s?"x[e]":"e",!0)}}else{${y(i,!1,!1)};}${p}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var rC=e=>{switch(e){case"success":return sC;case"info":return lC;case"warning":return aC;case"error":return uC;default:return null}},oC=Array(12).fill(0),iC=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},oC.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),sC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),aC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.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"})),lC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),uC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),cC=j.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"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),dC=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Mu=1,fC=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:Mu++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async l=>{if(i=["resolve",l],j.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(mC(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(i=["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)=>s.then(()=>i[0]==="reject"?u(i[1]):l(i[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)||Mu++;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}},Ge=new fC,pC=(e,t)=>{let n=(t==null?void 0:t.id)||Mu++;return Ge.addToast({title:e,...t,id:n}),n},mC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hC=pC,vC=()=>Ge.toasts,gC=()=>Ge.getActiveToasts();Object.assign(hC,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:vC,getToasts:gC});function yC(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))}yC(`: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 ss(e){return e.label!==void 0}var xC=3,wC="32px",SC="16px",Xf=4e3,CC=356,EC=14,bC=20,NC=200;function Et(...e){return e.filter(Boolean).join(" ")}function kC(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var PC=e=>{var t,n,r,o,i,s,a,l,u,d,p;let{invert:y,toast:m,unstyled:S,interacting:h,setHeights:w,visibleToasts:g,heights:f,index:x,toasts:C,expanded:E,removeToast:N,defaultRichColors:b,closeButton:T,style:_,cancelButtonStyle:O,actionButtonStyle:$,className:M="",descriptionClassName:V="",duration:I,position:W,gap:z,loadingIcon:U,expandByDefault:k,classNames:R,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:B}=e,[Y,Q]=j.useState(null),[ce,we]=j.useState(null),[D,se]=j.useState(!1),[Se,oe]=j.useState(!1),[ee,ne]=j.useState(!1),[Me,ut]=j.useState(!1),[Jn,pn]=j.useState(!1),[er,Io]=j.useState(0),[Tr,Ed]=j.useState(0),Mo=j.useRef(m.duration||I||Xf),bd=j.useRef(null),tr=j.useRef(null),b0=x===0,N0=x+1<=g,ct=m.type,Rr=m.dismissible!==!1,k0=m.className||"",P0=m.descriptionClassName||"",zi=j.useMemo(()=>f.findIndex(K=>K.toastId===m.id)||0,[f,m.id]),T0=j.useMemo(()=>{var K;return(K=m.closeButton)!=null?K:T},[m.closeButton,T]),Nd=j.useMemo(()=>m.duration||I||Xf,[m.duration,I]),Ga=j.useRef(0),jr=j.useRef(0),kd=j.useRef(0),Ar=j.useRef(null),[R0,j0]=W.split("-"),Pd=j.useMemo(()=>f.reduce((K,le,me)=>me>=zi?K:K+le.height,0),[f,zi]),Td=dC(),A0=m.invert||y,Ya=ct==="loading";jr.current=j.useMemo(()=>zi*z+Pd,[zi,Pd]),j.useEffect(()=>{Mo.current=Nd},[Nd]),j.useEffect(()=>{se(!0)},[]),j.useEffect(()=>{let K=tr.current;if(K){let le=K.getBoundingClientRect().height;return Ed(le),w(me=>[{toastId:m.id,height:le,position:m.position},...me]),()=>w(me=>me.filter(xt=>xt.toastId!==m.id))}},[w,m.id]),j.useLayoutEffect(()=>{if(!D)return;let K=tr.current,le=K.style.height;K.style.height="auto";let me=K.getBoundingClientRect().height;K.style.height=le,Ed(me),w(xt=>xt.find(wt=>wt.toastId===m.id)?xt.map(wt=>wt.toastId===m.id?{...wt,height:me}:wt):[{toastId:m.id,height:me,position:m.position},...xt])},[D,m.title,m.description,w,m.id]);let mn=j.useCallback(()=>{oe(!0),Io(jr.current),w(K=>K.filter(le=>le.toastId!==m.id)),setTimeout(()=>{N(m)},NC)},[m,N,w,jr]);j.useEffect(()=>{if(m.promise&&ct==="loading"||m.duration===1/0||m.type==="loading")return;let K;return E||h||B&&Td?(()=>{if(kd.current{var le;(le=m.onAutoClose)==null||le.call(m,m),mn()},Mo.current)),()=>clearTimeout(K)},[E,h,m,ct,B,Td,mn]),j.useEffect(()=>{m.delete&&mn()},[mn,m.delete]);function _0(){var K,le,me;return L!=null&&L.loading?j.createElement("div",{className:Et(R==null?void 0:R.loader,(K=m==null?void 0:m.classNames)==null?void 0:K.loader,"sonner-loader"),"data-visible":ct==="loading"},L.loading):U?j.createElement("div",{className:Et(R==null?void 0:R.loader,(le=m==null?void 0:m.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":ct==="loading"},U):j.createElement(iC,{className:Et(R==null?void 0:R.loader,(me=m==null?void 0:m.classNames)==null?void 0:me.loader),visible:ct==="loading"})}return j.createElement("li",{tabIndex:0,ref:tr,className:Et(M,k0,R==null?void 0:R.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[ct],(n=m==null?void 0:m.classNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:b,"data-styled":!(m.jsx||m.unstyled||S),"data-mounted":D,"data-promise":!!m.promise,"data-swiped":Jn,"data-removed":Se,"data-visible":N0,"data-y-position":R0,"data-x-position":j0,"data-index":x,"data-front":b0,"data-swiping":ee,"data-dismissible":Rr,"data-type":ct,"data-invert":A0,"data-swipe-out":Me,"data-swipe-direction":ce,"data-expanded":!!(E||k&&D),style:{"--index":x,"--toasts-before":x,"--z-index":C.length-x,"--offset":`${Se?er:jr.current}px`,"--initial-height":k?"auto":`${Tr}px`,..._,...m.style},onDragEnd:()=>{ne(!1),Q(null),Ar.current=null},onPointerDown:K=>{Ya||!Rr||(bd.current=new Date,Io(jr.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(ne(!0),Ar.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,le,me,xt;if(Me||!Rr)return;Ar.current=null;let wt=Number(((K=tr.current)==null?void 0:K.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),hn=Number(((le=tr.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nr=new Date().getTime()-((me=bd.current)==null?void 0:me.getTime()),St=Y==="x"?wt:hn,vn=Math.abs(St)/nr;if(Math.abs(St)>=bC||vn>.11){Io(jr.current),(xt=m.onDismiss)==null||xt.call(m,m),we(Y==="x"?wt>0?"right":"left":hn>0?"down":"up"),mn(),ut(!0),pn(!1);return}ne(!1),Q(null)},onPointerMove:K=>{var le,me,xt,wt;if(!Ar.current||!Rr||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;let hn=K.clientY-Ar.current.y,nr=K.clientX-Ar.current.x,St=(me=e.swipeDirections)!=null?me:kC(W);!Y&&(Math.abs(nr)>1||Math.abs(hn)>1)&&Q(Math.abs(nr)>Math.abs(hn)?"x":"y");let vn={x:0,y:0};Y==="y"?(St.includes("top")||St.includes("bottom"))&&(St.includes("top")&&hn<0||St.includes("bottom")&&hn>0)&&(vn.y=hn):Y==="x"&&(St.includes("left")||St.includes("right"))&&(St.includes("left")&&nr<0||St.includes("right")&&nr>0)&&(vn.x=nr),(Math.abs(vn.x)>0||Math.abs(vn.y)>0)&&pn(!0),(xt=tr.current)==null||xt.style.setProperty("--swipe-amount-x",`${vn.x}px`),(wt=tr.current)==null||wt.style.setProperty("--swipe-amount-y",`${vn.y}px`)}},T0&&!m.jsx?j.createElement("button",{"aria-label":H,"data-disabled":Ya,"data-close-button":!0,onClick:Ya||!Rr?()=>{}:()=>{var K;mn(),(K=m.onDismiss)==null||K.call(m,m)},className:Et(R==null?void 0:R.closeButton,(o=m==null?void 0:m.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:cC):null,m.jsx||v.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:j.createElement(j.Fragment,null,ct||m.icon||m.promise?j.createElement("div",{"data-icon":"",className:Et(R==null?void 0:R.icon,(s=m==null?void 0:m.classNames)==null?void 0:s.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||_0():null,m.type!=="loading"?m.icon||(L==null?void 0:L[ct])||rC(ct):null):null,j.createElement("div",{"data-content":"",className:Et(R==null?void 0:R.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:Et(R==null?void 0:R.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?j.createElement("div",{"data-description":"",className:Et(V,P0,R==null?void 0:R.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),v.isValidElement(m.cancel)?m.cancel:m.cancel&&ss(m.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:K=>{var le,me;ss(m.cancel)&&Rr&&((me=(le=m.cancel).onClick)==null||me.call(le,K),mn())},className:Et(R==null?void 0:R.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,v.isValidElement(m.action)?m.action:m.action&&ss(m.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||$,onClick:K=>{var le,me;ss(m.action)&&((me=(le=m.action).onClick)==null||me.call(le,K),!K.defaultPrevented&&mn())},className:Et(R==null?void 0:R.actionButton,(p=m==null?void 0:m.classNames)==null?void 0:p.actionButton)},m.action.label):null))};function Zf(){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 TC(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",a=i?SC:wC;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${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[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var RC=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:y,style:m,visibleToasts:S=xC,toastOptions:h,dir:w=Zf(),gap:g=EC,loadingIcon:f,icons:x,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:E}=e,[N,b]=j.useState([]),T=j.useMemo(()=>Array.from(new Set([r].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,r]),[_,O]=j.useState([]),[$,M]=j.useState(!1),[V,I]=j.useState(!1),[W,z]=j.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=j.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=j.useRef(null),L=j.useRef(!1),H=j.useCallback(B=>{b(Y=>{var Q;return(Q=Y.find(ce=>ce.id===B.id))!=null&&Q.delete||Ge.dismiss(B.id),Y.filter(({id:ce})=>ce!==B.id)})},[]);return j.useEffect(()=>Ge.subscribe(B=>{if(B.dismiss){b(Y=>Y.map(Q=>Q.id===B.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{ov.flushSync(()=>{b(Y=>{let Q=Y.findIndex(ce=>ce.id===B.id);return Q!==-1?[...Y.slice(0,Q),{...Y[Q],...B},...Y.slice(Q+1)]:[B,...Y]})})})}),[]),j.useEffect(()=>{if(d!=="system"){z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Y})=>{z(Y?"dark":"light")})}catch{B.addListener(({matches:Q})=>{try{z(Q?"dark":"light")}catch(ce){console.error(ce)}})}},[d]),j.useEffect(()=>{N.length<=1&&M(!1)},[N]),j.useEffect(()=>{let B=Y=>{var Q,ce;o.every(we=>Y[we]||Y.code===we)&&(M(!0),(Q=U.current)==null||Q.focus()),Y.code==="Escape"&&(document.activeElement===U.current||(ce=U.current)!=null&&ce.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[o]),j.useEffect(()=>{if(U.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[U.current]),j.createElement("section",{ref:t,"aria-label":`${C} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((B,Y)=>{var Q;let[ce,we]=B.split("-");return N.length?j.createElement("ol",{key:B,dir:w==="auto"?Zf():w,tabIndex:-1,ref:U,className:a,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":ce,"data-lifted":$&&N.length>1&&!i,"data-x-position":we,style:{"--front-toast-height":`${((Q=_[0])==null?void 0:Q.height)||0}px`,"--width":`${CC}px`,"--gap":`${g}px`,...m,...TC(l,u)},onBlur:D=>{L.current&&!D.currentTarget.contains(D.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=D.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{V||M(!1)},onDragEnd:()=>M(!1),onPointerDown:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},N.filter(D=>!D.position&&Y===0||D.position===B).map((D,se)=>{var Se,oe;return j.createElement(PC,{key:D.id,icons:x,index:se,toast:D,defaultRichColors:p,duration:(Se=h==null?void 0:h.duration)!=null?Se:y,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:n,visibleToasts:S,closeButton:(oe=h==null?void 0:h.closeButton)!=null?oe:s,interacting:V,position:B,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:H,toasts:N.filter(ee=>ee.position==D.position),heights:_.filter(ee=>ee.position==D.position),setHeights:O,expandByDefault:i,gap:g,loadingIcon:f,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const jC=({...e})=>{const{theme:t="system"}=nC();return c.jsx(RC,{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 AC=rc[" useId ".trim().toString()]||(()=>{}),_C=0;function Di(e){const[t,n]=v.useState(AC());return Ne(()=>{n(r=>r??String(_C++))},[e]),t?`radix-${t}`:""}const OC=["top","right","bottom","left"],Wn=Math.min,nt=Math.max,ta=Math.round,as=Math.floor,Gt=e=>({x:e,y:e}),IC={left:"right",right:"left",bottom:"top",top:"bottom"},MC={start:"end",end:"start"};function Lu(e,t,n){return nt(e,Wn(t,n))}function cn(e,t){return typeof e=="function"?e(t):e}function dn(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}const LC=new Set(["top","bottom"]);function Wt(e){return LC.has(dn(e))?"y":"x"}function od(e){return nd(Wt(e))}function DC(e,t,n){n===void 0&&(n=!1);const r=jo(e),o=od(e),i=rd(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=na(s)),[s,na(s)]}function FC(e){const t=na(e);return[Du(e),t,Du(t)]}function Du(e){return e.replace(/start|end/g,t=>MC[t])}const Jf=["left","right"],ep=["right","left"],zC=["top","bottom"],$C=["bottom","top"];function BC(e,t,n){switch(e){case"top":case"bottom":return n?t?ep:Jf:t?Jf:ep;case"left":case"right":return t?zC:$C;default:return[]}}function UC(e,t,n,r){const o=jo(e);let i=BC(dn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Du)))),i}function na(e){return e.replace(/left|right|bottom|top/g,t=>IC[t])}function VC(e){return{top:0,right:0,bottom:0,left:0,...e}}function qv(e){return typeof e!="number"?VC(e):{top:e,right:e,bottom:e,left:e}}function ra(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 tp(e,t,n){let{reference:r,floating:o}=e;const i=Wt(t),s=od(t),a=rd(s),l=dn(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,y=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(jo(t)){case"start":m[s]-=y*(n&&u?-1:1);break;case"end":m[s]+=y*(n&&u?-1:1);break}return m}const HC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=tp(u,r,l),y=r,m={},S=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=cn(e,t)||{};if(u==null)return{};const p=qv(d),y={x:n,y:r},m=od(o),S=rd(m),h=await s.getDimensions(u),w=m==="y",g=w?"top":"left",f=w?"bottom":"right",x=w?"clientHeight":"clientWidth",C=i.reference[S]+i.reference[m]-y[m]-i.floating[S],E=y[m]-i.reference[m],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let b=N?N[x]:0;(!b||!await(s.isElement==null?void 0:s.isElement(N)))&&(b=a.floating[x]||i.floating[S]);const T=C/2-E/2,_=b/2-h[S]/2-1,O=Wn(p[g],_),$=Wn(p[f],_),M=O,V=b-h[S]-$,I=b/2-h[S]/2+T,W=Lu(M,I,V),z=!l.arrow&&jo(o)!=null&&I!==W&&i.reference[S]/2-(II<=0)){var $,M;const I=((($=i.flip)==null?void 0:$.index)||0)+1,W=b[I];if(W&&(!(p==="alignment"?f!==Wt(W):!1)||O.every(k=>k.overflows[0]>0&&Wt(k.placement)===f)))return{data:{index:I,overflows:O},reset:{placement:W}};let z=(M=O.filter(U=>U.overflows[0]<=0).sort((U,k)=>U.overflows[1]-k.overflows[1])[0])==null?void 0:M.placement;if(!z)switch(m){case"bestFit":{var V;const U=(V=O.filter(k=>{if(N){const R=Wt(k.placement);return R===f||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:V[0];U&&(z=U);break}case"initialPlacement":z=a;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rp(e){return OC.some(t=>e[t]>=0)}const KC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=cn(e,t);switch(r){case"referenceHidden":{const i=await Ni(t,{...o,elementContext:"reference"}),s=np(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:rp(s)}}}case"escaped":{const i=await Ni(t,{...o,altBoundary:!0}),s=np(i,n.floating);return{data:{escapedOffsets:s,escaped:rp(s)}}}default:return{}}}}},Xv=new Set(["left","top"]);async function GC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=dn(n),a=jo(n),l=Wt(n)==="y",u=Xv.has(s)?-1:1,d=i&&l?-1:1,p=cn(t,e);let{mainAxis:y,crossAxis:m,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof S=="number"&&(m=a==="end"?S*-1:S),l?{x:m*d,y:y*u}:{x:y*u,y:m*d}}const YC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await GC(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},qC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:g,y:f}=w;return{x:g,y:f}}},...l}=cn(e,t),u={x:n,y:r},d=await Ni(t,l),p=Wt(dn(o)),y=nd(p);let m=u[y],S=u[p];if(i){const w=y==="y"?"top":"left",g=y==="y"?"bottom":"right",f=m+d[w],x=m-d[g];m=Lu(f,m,x)}if(s){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",f=S+d[w],x=S-d[g];S=Lu(f,S,x)}const h=a.fn({...t,[y]:m,[p]:S});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[y]:i,[p]:s}}}}}},XC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=cn(e,t),d={x:n,y:r},p=Wt(o),y=nd(p);let m=d[y],S=d[p];const h=cn(a,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=y==="y"?"height":"width",C=i.reference[y]-i.floating[x]+w.mainAxis,E=i.reference[y]+i.reference[x]-w.mainAxis;mE&&(m=E)}if(u){var g,f;const x=y==="y"?"width":"height",C=Xv.has(dn(o)),E=i.reference[p]-i.floating[x]+(C&&((g=s.offset)==null?void 0:g[p])||0)+(C?0:w.crossAxis),N=i.reference[p]+i.reference[x]+(C?0:((f=s.offset)==null?void 0:f[p])||0)-(C?w.crossAxis:0);SN&&(S=N)}return{[y]:m,[p]:S}}}},ZC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=cn(e,t),d=await Ni(t,u),p=dn(o),y=jo(o),m=Wt(o)==="y",{width:S,height:h}=i.floating;let w,g;p==="top"||p==="bottom"?(w=p,g=y===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(g=p,w=y==="end"?"top":"bottom");const f=h-d.top-d.bottom,x=S-d.left-d.right,C=Wn(h-d[w],f),E=Wn(S-d[g],x),N=!t.middlewareData.shift;let b=C,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=f),N&&!y){const O=nt(d.left,0),$=nt(d.right,0),M=nt(d.top,0),V=nt(d.bottom,0);m?T=S-2*(O!==0||$!==0?O+$:nt(d.left,d.right)):b=h-2*(M!==0||V!==0?M+V:nt(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:b});const _=await s.getDimensions(a.floating);return S!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function ja(){return typeof window<"u"}function Ao(e){return Zv(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qt(e){var t;return(t=(Zv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zv(e){return ja()?e instanceof Node||e instanceof it(e).Node:!1}function Mt(e){return ja()?e instanceof Element||e instanceof it(e).Element:!1}function Yt(e){return ja()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function op(e){return!ja()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}const JC=new Set(["inline","contents"]);function Fi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!JC.has(o)}const eE=new Set(["table","td","th"]);function tE(e){return eE.has(Ao(e))}const nE=[":popover-open",":modal"];function Aa(e){return nE.some(t=>{try{return e.matches(t)}catch{return!1}})}const rE=["transform","translate","scale","rotate","perspective"],oE=["transform","translate","scale","rotate","perspective","filter"],iE=["paint","layout","strict","content"];function id(e){const t=sd(),n=Mt(e)?Lt(e):e;return rE.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)||oE.some(r=>(n.willChange||"").includes(r))||iE.some(r=>(n.contain||"").includes(r))}function sE(e){let t=Qn(e);for(;Yt(t)&&!Co(t);){if(id(t))return t;if(Aa(t))return null;t=Qn(t)}return null}function sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aE=new Set(["html","body","#document"]);function Co(e){return aE.has(Ao(e))}function Lt(e){return it(e).getComputedStyle(e)}function _a(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||op(e)&&e.host||qt(e);return op(t)?t.host:t}function Jv(e){const t=Qn(e);return Co(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Fi(t)?t:Jv(t)}function ki(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=it(o);if(i){const a=Fu(s);return t.concat(s,s.visualViewport||[],Fi(o)?o:[],a&&n?ki(a):[])}return t.concat(o,ki(o,[],n))}function Fu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eg(e){const t=Lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ta(n)!==i||ta(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ad(e){return Mt(e)?e:e.contextElement}function no(e){const t=ad(e);if(!Yt(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eg(t);let s=(i?ta(n.width):n.width)/r,a=(i?ta(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const lE=Gt(0);function tg(e){const t=it(e);return!sd()||!t.visualViewport?lE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function Sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ad(e);let s=Gt(1);t&&(r?Mt(r)&&(s=no(r)):s=no(e));const a=uE(i,n,r)?tg(i):Gt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const y=it(i),m=r&&Mt(r)?it(r):r;let S=y,h=Fu(S);for(;h&&r&&m!==S;){const w=no(h),g=h.getBoundingClientRect(),f=Lt(h),x=g.left+(h.clientLeft+parseFloat(f.paddingLeft))*w.x,C=g.top+(h.clientTop+parseFloat(f.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,p*=w.y,l+=x,u+=C,S=it(h),h=Fu(S)}}return ra({width:d,height:p,x:l,y:u})}function ld(e,t){const n=_a(e).scrollLeft;return t?t.left+n:Sr(qt(e)).left+n}function ng(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ld(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function cE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=qt(r),a=t?Aa(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Gt(1);const d=Gt(0),p=Yt(r);if((p||!p&&!i)&&((Ao(r)!=="body"||Fi(s))&&(l=_a(r)),Yt(r))){const m=Sr(r);u=no(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const y=s&&!p&&!i?ng(s,l,!0):Gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+y.x,y:n.y*u.y-l.scrollTop*u.y+d.y+y.y}}function dE(e){return Array.from(e.getClientRects())}function fE(e){const t=qt(e),n=_a(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ld(e);const a=-n.scrollTop;return Lt(r).direction==="rtl"&&(s+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function pE(e,t){const n=it(e),r=qt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=sd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const mE=new Set(["absolute","fixed"]);function hE(e,t){const n=Sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yt(e)?no(e):Gt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function ip(e,t,n){let r;if(t==="viewport")r=pE(e,n);else if(t==="document")r=fE(qt(e));else if(Mt(t))r=hE(t,n);else{const o=tg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ra(r)}function rg(e,t){const n=Qn(e);return n===t||!Mt(n)||Co(n)?!1:Lt(n).position==="fixed"||rg(n,t)}function vE(e,t){const n=t.get(e);if(n)return n;let r=ki(e,[],!1).filter(a=>Mt(a)&&Ao(a)!=="body"),o=null;const i=Lt(e).position==="fixed";let s=i?Qn(e):e;for(;Mt(s)&&!Co(s);){const a=Lt(s),l=id(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&mE.has(o.position)||Fi(s)&&!l&&rg(e,s))?r=r.filter(d=>d!==s):o=a,s=Qn(s)}return t.set(e,r),r}function gE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Aa(t)?[]:vE(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const p=ip(t,d,o);return u.top=nt(p.top,u.top),u.right=Wn(p.right,u.right),u.bottom=Wn(p.bottom,u.bottom),u.left=nt(p.left,u.left),u},ip(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yE(e){const{width:t,height:n}=eg(e);return{width:t,height:n}}function xE(e,t,n){const r=Yt(t),o=qt(t),i=n==="fixed",s=Sr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Gt(0);function u(){l.x=ld(o)}if(r||!r&&!i)if((Ao(t)!=="body"||Fi(o))&&(a=_a(t)),r){const m=Sr(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?ng(o,a):Gt(0),p=s.left+a.scrollLeft-l.x-d.x,y=s.top+a.scrollTop-l.y-d.y;return{x:p,y,width:s.width,height:s.height}}function Pl(e){return Lt(e).position==="static"}function sp(e,t){if(!Yt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qt(e)===n&&(n=n.ownerDocument.body),n}function og(e,t){const n=it(e);if(Aa(e))return n;if(!Yt(e)){let o=Qn(e);for(;o&&!Co(o);){if(Mt(o)&&!Pl(o))return o;o=Qn(o)}return n}let r=sp(e,t);for(;r&&tE(r)&&Pl(r);)r=sp(r,t);return r&&Co(r)&&Pl(r)&&!id(r)?n:r||sE(e)||n}const wE=async function(e){const t=this.getOffsetParent||og,n=this.getDimensions,r=await n(e.floating);return{reference:xE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function SE(e){return Lt(e).direction==="rtl"}const CE={convertOffsetParentRelativeRectToViewportRelativeRect:cE,getDocumentElement:qt,getClippingRect:gE,getOffsetParent:og,getElementRects:wE,getClientRects:dE,getDimensions:yE,getScale:no,isElement:Mt,isRTL:SE};function ig(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function EE(e,t){let n=null,r;const o=qt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:y,height:m}=u;if(a||t(),!y||!m)return;const S=as(p),h=as(o.clientWidth-(d+y)),w=as(o.clientHeight-(p+m)),g=as(d),x={rootMargin:-S+"px "+-h+"px "+-w+"px "+-g+"px",threshold:nt(0,Wn(1,l))||1};let C=!0;function E(N){const b=N[0].intersectionRatio;if(b!==l){if(!C)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!ig(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function bE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ad(e),d=o||i?[...u?ki(u):[],...ki(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const p=u&&a?EE(u,n):null;let y=-1,m=null;s&&(m=new ResizeObserver(g=>{let[f]=g;f&&f.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let S,h=l?Sr(e):null;l&&w();function w(){const g=Sr(e);h&&!ig(h,g)&&n(),h=g,S=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(f=>{o&&f.removeEventListener("scroll",n),i&&f.removeEventListener("resize",n)}),p==null||p(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(S)}}const NE=YC,kE=qC,PE=QC,TE=ZC,RE=KC,ap=WC,jE=XC,AE=(e,t,n)=>{const r=new Map,o={platform:CE,...n},i={...o.platform,_c:r};return HC(e,t,{...o,platform:i})};var _E=typeof document<"u",OE=function(){},Ps=_E?v.useLayoutEffect:OE;function oa(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(!oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!oa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function sg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lp(e,t){const n=sg(e);return Math.round(t*n)/n}function Tl(e){const t=v.useRef(e);return Ps(()=>{t.current=e}),t}function IE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,m]=v.useState(r);oa(y,r)||m(r);const[S,h]=v.useState(null),[w,g]=v.useState(null),f=v.useCallback(k=>{k!==N.current&&(N.current=k,h(k))},[]),x=v.useCallback(k=>{k!==b.current&&(b.current=k,g(k))},[]),C=i||S,E=s||w,N=v.useRef(null),b=v.useRef(null),T=v.useRef(d),_=l!=null,O=Tl(l),$=Tl(o),M=Tl(u),V=v.useCallback(()=>{if(!N.current||!b.current)return;const k={placement:t,strategy:n,middleware:y};$.current&&(k.platform=$.current),AE(N.current,b.current,k).then(R=>{const L={...R,isPositioned:M.current!==!1};I.current&&!oa(T.current,L)&&(T.current=L,Pr.flushSync(()=>{p(L)}))})},[y,t,n,$,M]);Ps(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const I=v.useRef(!1);Ps(()=>(I.current=!0,()=>{I.current=!1}),[]),Ps(()=>{if(C&&(N.current=C),E&&(b.current=E),C&&E){if(O.current)return O.current(C,E,V);V()}},[C,E,V,O,_]);const W=v.useMemo(()=>({reference:N,floating:b,setReference:f,setFloating:x}),[f,x]),z=v.useMemo(()=>({reference:C,floating:E}),[C,E]),U=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!z.floating)return k;const R=lp(z.floating,d.x),L=lp(z.floating,d.y);return a?{...k,transform:"translate("+R+"px, "+L+"px)",...sg(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,a,z.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:V,refs:W,elements:z,floatingStyles:U}),[d,V,W,z,U])}const ME=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?ap({element:r.current,padding:o}).fn(n):{}:r?ap({element:r,padding:o}).fn(n):{}}}},LE=(e,t)=>({...NE(e),options:[e,t]}),DE=(e,t)=>({...kE(e),options:[e,t]}),FE=(e,t)=>({...jE(e),options:[e,t]}),zE=(e,t)=>({...PE(e),options:[e,t]}),$E=(e,t)=>({...TE(e),options:[e,t]}),BE=(e,t)=>({...RE(e),options:[e,t]}),UE=(e,t)=>({...ME(e),options:[e,t]});var VE="Arrow",ag=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(J.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});ag.displayName=VE;var HE=ag;function WE(e){const[t,n]=v.useState(void 0);return Ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ud="Popper",[lg,Oa]=qn(ud),[QE,ug]=lg(ud),cg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return c.jsx(QE,{scope:t,anchor:r,onAnchorChange:o,children:n})};cg.displayName=ud;var dg="PopperAnchor",fg=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ug(dg,n),s=v.useRef(null),a=ve(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(J.div,{...o,ref:a})});fg.displayName=dg;var cd="PopperContent",[KE,GE]=lg(cd),pg=v.forwardRef((e,t)=>{var D,se,Se,oe,ee,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:m="optimized",onPlaced:S,...h}=e,w=ug(cd,n),[g,f]=v.useState(null),x=ve(t,Me=>f(Me)),[C,E]=v.useState(null),N=WE(C),b=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,_=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],M=$.length>0,V={padding:O,boundary:$.filter(qE),altBoundary:M},{refs:I,floatingStyles:W,placement:z,isPositioned:U,middlewareData:k}=IE({strategy:"fixed",placement:_,whileElementsMounted:(...Me)=>bE(...Me,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[LE({mainAxis:o+T,alignmentAxis:s}),l&&DE({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?FE():void 0,...V}),l&&zE({...V}),$E({...V,apply:({elements:Me,rects:ut,availableWidth:Jn,availableHeight:pn})=>{const{width:er,height:Io}=ut.reference,Tr=Me.floating.style;Tr.setProperty("--radix-popper-available-width",`${Jn}px`),Tr.setProperty("--radix-popper-available-height",`${pn}px`),Tr.setProperty("--radix-popper-anchor-width",`${er}px`),Tr.setProperty("--radix-popper-anchor-height",`${Io}px`)}}),C&&UE({element:C,padding:a}),XE({arrowWidth:b,arrowHeight:T}),y&&BE({strategy:"referenceHidden",...V})]}),[R,L]=vg(z),H=yt(S);Ne(()=>{U&&(H==null||H())},[U,H]);const B=(D=k.arrow)==null?void 0:D.x,Y=(se=k.arrow)==null?void 0:se.y,Q=((Se=k.arrow)==null?void 0:Se.centerOffset)!==0,[ce,we]=v.useState();return Ne(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),c.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(oe=k.transformOrigin)==null?void 0:oe.x,(ee=k.transformOrigin)==null?void 0:ee.y].join(" "),...((ne=k.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(KE,{scope:n,placedSide:R,onArrowChange:E,arrowX:B,arrowY:Y,shouldHideArrow:Q,children:c.jsx(J.div,{"data-side":R,"data-align":L,...h,ref:x,style:{...h.style,animation:U?void 0:"none"}})})})});pg.displayName=cd;var mg="PopperArrow",YE={top:"bottom",right:"left",bottom:"top",left:"right"},hg=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=GE(mg,r),s=YE[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(HE,{...o,ref:n,style:{...o.style,display:"block"}})})});hg.displayName=mg;function qE(e){return e!==null}var XE=e=>({name:"transformOrigin",options:e,fn(t){var w,g,f;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=vg(n),p={start:"0%",center:"50%",end:"100%"}[d],y=(((g=o.arrow)==null?void 0:g.x)??0)+a/2,m=(((f=o.arrow)==null?void 0:f.y)??0)+l/2;let S="",h="";return u==="bottom"?(S=s?p:`${y}px`,h=`${-l}px`):u==="top"?(S=s?p:`${y}px`,h=`${r.floating.height+l}px`):u==="right"?(S=`${-l}px`,h=s?p:`${m}px`):u==="left"&&(S=`${r.floating.width+l}px`,h=s?p:`${m}px`),{data:{x:S,y:h}}}});function vg(e){const[t,n="center"]=e.split("-");return[t,n]}var ZE=cg,gg=fg,yg=pg,xg=hg,[Ia,cP]=qn("Tooltip",[Oa]),dd=Oa(),wg="TooltipProvider",JE=700,up="tooltip.open",[eb,Sg]=Ia(wg),Cg=e=>{const{__scopeTooltip:t,delayDuration:n=JE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(eb,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};Cg.displayName=wg;var Eg="Tooltip",[dP,Ma]=Ia(Eg),zu="TooltipTrigger",tb=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ma(zu,n),i=Sg(zu,n),s=dd(n),a=v.useRef(null),l=ve(t,a,o.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),p=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(gg,{asChild:!0,...s,children:c.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:X(e.onPointerMove,y=>{y.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});tb.displayName=zu;var nb="TooltipPortal",[fP,rb]=Ia(nb,{forceMount:void 0}),Eo="TooltipContent",bg=v.forwardRef((e,t)=>{const n=rb(Eo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Ma(Eo,e.__scopeTooltip);return c.jsx(Pa,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ng,{side:o,...i,ref:t}):c.jsx(ob,{side:o,...i,ref:t})})}),ob=v.forwardRef((e,t)=>{const n=Ma(Eo,e.__scopeTooltip),r=Sg(Eo,e.__scopeTooltip),o=v.useRef(null),i=ve(t,o),[s,a]=v.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,y=v.useCallback(()=>{a(null),p(!1)},[p]),m=v.useCallback((S,h)=>{const w=S.currentTarget,g={x:S.clientX,y:S.clientY},f=ub(g,w.getBoundingClientRect()),x=cb(g,f),C=db(h.getBoundingClientRect()),E=pb([...x,...C]);a(E),p(!0)},[p]);return v.useEffect(()=>()=>y(),[y]),v.useEffect(()=>{if(l&&d){const S=w=>m(w,d),h=w=>m(w,l);return l.addEventListener("pointerleave",S),d.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",h)}}},[l,d,m,y]),v.useEffect(()=>{if(s){const S=h=>{const w=h.target,g={x:h.clientX,y:h.clientY},f=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),x=!fb(g,s);f?y():x&&(y(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[l,d,s,u,y]),c.jsx(Ng,{...e,ref:i})}),[ib,sb]=Ia(Eg,{isInside:!1}),ab=p1("TooltipContent"),Ng=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Ma(Eo,n),u=dd(n),{onClose:d}=l;return v.useEffect(()=>(document.addEventListener(up,d),()=>document.removeEventListener(up,d)),[d]),v.useEffect(()=>{if(l.trigger){const p=y=>{const m=y.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),c.jsx(ka,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(yg,{"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:[c.jsx(ab,{children:r}),c.jsx(ib,{scope:n,isInside:!0,children:c.jsx(M1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});bg.displayName=Eo;var kg="TooltipArrow",lb=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=dd(n);return sb(kg,n).isInside?null:c.jsx(xg,{...o,...r,ref:t})});lb.displayName=kg;function ub(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cb(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 db(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 fb(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=y>r&&n<(p-u)*(r-d)/(y-d)+u&&(o=!o)}return o}function pb(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),mb(t)}function mb(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hb=Cg,Pg=bg;const vb=hb,gb=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Pg,{ref:r,sideOffset:t,className:ie("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}));gb.displayName=Pg.displayName;var La=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(){}},Da=typeof window>"u"||"Deno"in globalThis;function Pt(){}function yb(e,t){return typeof e=="function"?e(t):e}function xb(e){return typeof e=="number"&&e>=0&&e!==1/0}function wb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $u(e,t){return typeof e=="function"?e(t):e}function Sb(e,t){return typeof e=="function"?e(t):e}function cp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==fd(s,t.options))return!1}else if(!Ti(t.queryKey,s))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||i&&!i(t))}function dp(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pi(t.options.mutationKey)!==Pi(i))return!1}else if(!Ti(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pi)(e)}function Pi(e){return JSON.stringify(e,(t,n)=>Bu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ti(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ti(e[n],t[n])):!1}function Tg(e,t){if(e===t)return e;const n=fp(e)&&fp(t);if(n||Bu(e)&&Bu(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d{setTimeout(t,e)})}function Eb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tg(e,t):t}function bb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var pd=Symbol();function Rg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===pd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var lr,kn,io,Dp,kb=(Dp=class extends La{constructor(){super();re(this,lr);re(this,kn);re(this,io);G(this,io,t=>{if(!Da&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,kn)||this.setEventListener(P(this,io))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,kn))==null||t.call(this),G(this,kn,void 0))}setEventListener(t){var n;G(this,io,t),(n=P(this,kn))==null||n.call(this),G(this,kn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,lr)!==t&&(G(this,lr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,lr)=="boolean"?P(this,lr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},lr=new WeakMap,kn=new WeakMap,io=new WeakMap,Dp),jg=new kb,so,Pn,ao,Fp,Pb=(Fp=class extends La{constructor(){super();re(this,so,!0);re(this,Pn);re(this,ao);G(this,ao,t=>{if(!Da&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,Pn)||this.setEventListener(P(this,ao))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Pn))==null||t.call(this),G(this,Pn,void 0))}setEventListener(t){var n;G(this,ao,t),(n=P(this,Pn))==null||n.call(this),G(this,Pn,t(this.setOnline.bind(this)))}setOnline(t){P(this,so)!==t&&(G(this,so,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,so)}},so=new WeakMap,Pn=new WeakMap,ao=new WeakMap,Fp),ia=new Pb;function Tb(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Rb(e){return Math.min(1e3*2**e,3e4)}function Ag(e){return(e??"online")==="online"?ia.isOnline():!0}var _g=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Rl(e){return e instanceof _g}function Og(e){let t=!1,n=0,r=!1,o;const i=Tb(),s=h=>{var w;r||(y(new _g(h)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>jg.isFocused()&&(e.networkMode==="always"||ia.isOnline())&&e.canRun(),d=()=>Ag(e.networkMode)&&e.canRun(),p=h=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,h),o==null||o(),i.resolve(h))},y=h=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,h),o==null||o(),i.reject(h))},m=()=>new Promise(h=>{var w;o=g=>{(r||u())&&h(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var h;o=void 0,r||(h=e.onContinue)==null||h.call(e)}),S=()=>{if(r)return;let h;const w=n===0?e.initialPromise:void 0;try{h=w??e.fn()}catch(g){h=Promise.reject(g)}Promise.resolve(h).then(p).catch(g=>{var N;if(r)return;const f=e.retry??(Da?0:3),x=e.retryDelay??Rb,C=typeof x=="function"?x(n,g):x,E=f===!0||typeof f=="number"&&nu()?void 0:m()).then(()=>{t?y(g):S()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?S():m().then(S),i)}}var jb=e=>setTimeout(e,0);function Ab(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=jb;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{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||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var He=Ab(),ur,zp,Ig=(zp=class{constructor(){re(this,ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xb(this.gcTime)&&G(this,ur,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Da?1/0:5*60*1e3))}clearGcTimeout(){P(this,ur)&&(clearTimeout(P(this,ur)),G(this,ur,void 0))}},ur=new WeakMap,zp),lo,cr,dt,dr,ze,Ri,fr,Tt,Zt,$p,_b=($p=class extends Ig{constructor(t){super();re(this,Tt);re(this,lo);re(this,cr);re(this,dt);re(this,dr);re(this,ze);re(this,Ri);re(this,fr);G(this,fr,!1),G(this,Ri,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,dr,t.client),G(this,dt,P(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,lo,Ib(this.options)),this.state=t.state??P(this,lo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Ri),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,dt).remove(this)}setData(t,n){const r=Eb(this.state.data,t,this.options);return Le(this,Tt,Zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,Tt,Zt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,ze))==null?void 0:r.promise;return(o=P(this,ze))==null||o.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,lo))}isActive(){return this.observers.some(t=>Sb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>$u(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:!wb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,dt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,ze)&&(P(this,fr)?P(this,ze).cancel({revert:!0}):P(this,ze).cancelRetry()),this.scheduleGc()),P(this,dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Tt,Zt).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,ze))return P(this,ze).continueRetry(),P(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(G(this,fr,!0),r.signal)})},i=()=>{const y=Rg(this.options,n),S=(()=>{const h={client:P(this,dr),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return G(this,fr,!1),this.options.persister?this.options.persister(y,S,this):y(S)},a=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,dr),state:this.state,fetchFn:i};return o(y),y})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Le(this,Tt,Zt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=y=>{var m,S,h,w;Rl(y)&&y.silent||Le(this,Tt,Zt).call(this,{type:"error",error:y}),Rl(y)||((S=(m=P(this,dt).config).onError)==null||S.call(m,y,this),(w=(h=P(this,dt).config).onSettled)==null||w.call(h,this.state.data,y,this)),this.scheduleGc()};return G(this,ze,Og({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:y=>{var m,S,h,w;if(y===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(g){l(g);return}(S=(m=P(this,dt).config).onSuccess)==null||S.call(m,y,this),(w=(h=P(this,dt).config).onSettled)==null||w.call(h,y,this.state.error,this),this.scheduleGc()},onError:l,onFail:(y,m)=>{Le(this,Tt,Zt).call(this,{type:"failed",failureCount:y,error:m})},onPause:()=>{Le(this,Tt,Zt).call(this,{type:"pause"})},onContinue:()=>{Le(this,Tt,Zt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,ze).start()}},lo=new WeakMap,cr=new WeakMap,dt=new WeakMap,dr=new WeakMap,ze=new WeakMap,Ri=new WeakMap,fr=new WeakMap,Tt=new WeakSet,Zt=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,...Ob(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,cr,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 Rl(o)&&o.revert&&P(this,cr)?{...P(this,cr),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),He.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,dt).notify({query:this,type:"updated",action:t})})},$p);function Ob(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ag(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ib(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 $t,Bp,Mb=(Bp=class extends La{constructor(t={}){super();re(this,$t);this.config=t,G(this,$t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??fd(o,n);let s=this.get(i);return s||(s=new _b({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,$t).has(t.queryHash)||(P(this,$t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,$t).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,$t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,$t).get(t)}getAll(){return[...P(this,$t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>cp(t,r)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$t=new WeakMap,Bp),Bt,Ue,pr,Ut,wn,Up,Lb=(Up=class extends Ig{constructor(t){super();re(this,Ut);re(this,Bt);re(this,Ue);re(this,pr);this.mutationId=t.mutationId,G(this,Ue,t.mutationCache),G(this,Bt,[]),this.state=t.state||Db(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Bt).includes(t)||(P(this,Bt).push(t),this.clearGcTimeout(),P(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Bt,P(this,Bt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Bt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ue).remove(this))}continue(){var t;return((t=P(this,pr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,d,p,y,m,S,h,w,g,f,x,C,E,N,b,T;const n=()=>{Le(this,Ut,wn).call(this,{type:"continue"})};G(this,pr,Og({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,O)=>{Le(this,Ut,wn).call(this,{type:"failed",failureCount:_,error:O})},onPause:()=>{Le(this,Ut,wn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ue).canRun(this)}));const r=this.state.status==="pending",o=!P(this,pr).canStart();try{if(r)n();else{Le(this,Ut,wn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=P(this,Ue).config).onMutate)==null?void 0:s.call(i,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&Le(this,Ut,wn).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const _=await P(this,pr).start();return await((d=(u=P(this,Ue).config).onSuccess)==null?void 0:d.call(u,_,t,this.state.context,this)),await((y=(p=this.options).onSuccess)==null?void 0:y.call(p,_,t,this.state.context)),await((S=(m=P(this,Ue).config).onSettled)==null?void 0:S.call(m,_,null,this.state.variables,this.state.context,this)),await((w=(h=this.options).onSettled)==null?void 0:w.call(h,_,null,t,this.state.context)),Le(this,Ut,wn).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(g=P(this,Ue).config).onError)==null?void 0:f.call(g,_,t,this.state.context,this)),await((C=(x=this.options).onError)==null?void 0:C.call(x,_,t,this.state.context)),await((N=(E=P(this,Ue).config).onSettled)==null?void 0:N.call(E,void 0,_,this.state.variables,this.state.context,this)),await((T=(b=this.options).onSettled)==null?void 0:T.call(b,void 0,_,t,this.state.context)),_}finally{Le(this,Ut,wn).call(this,{type:"error",error:_})}}finally{P(this,Ue).runNext(this)}}},Bt=new WeakMap,Ue=new WeakMap,pr=new WeakMap,Ut=new WeakSet,wn=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),He.batch(()=>{P(this,Bt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ue).notify({mutation:this,type:"updated",action:t})})},Up);function Db(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tn,Rt,ji,Vp,Fb=(Vp=class extends La{constructor(t={}){super();re(this,tn);re(this,Rt);re(this,ji);this.config=t,G(this,tn,new Set),G(this,Rt,new Map),G(this,ji,0)}build(t,n,r){const o=new Lb({mutationCache:this,mutationId:++$i(this,ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,tn).add(t);const n=ls(t);if(typeof n=="string"){const r=P(this,Rt).get(n);r?r.push(t):P(this,Rt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,tn).delete(t)){const n=ls(t);if(typeof n=="string"){const r=P(this,Rt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,Rt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ls(t);if(typeof n=="string"){const r=P(this,Rt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ls(t);if(typeof n=="string"){const o=(r=P(this,Rt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{P(this,tn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,tn).clear(),P(this,Rt).clear()})}getAll(){return Array.from(P(this,tn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dp(n,r))}findAll(t={}){return this.getAll().filter(n=>dp(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pt))))}},tn=new WeakMap,Rt=new WeakMap,ji=new WeakMap,Vp);function ls(e){var t;return(t=e.options.scope)==null?void 0:t.id}function mp(e){return{onFetch:(t,n)=>{var d,p,y,m,S;const r=t.options,o=(y=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let h=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},g=Rg(t.options,t.fetchOptions),f=async(x,C,E)=>{if(h)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const b=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};return w($),$})(),T=await g(b),{maxPages:_}=t.options,O=E?Nb:bb;return{pages:O(x.pages,T,_),pageParams:O(x.pageParams,C,_)}};if(o&&i.length){const x=o==="backward",C=x?zb:hp,E={pages:i,pageParams:s},N=C(r,E);a=await f(E,N,x)}else{const x=e??i.length;do{const C=l===0?s[0]??r.initialPageParam:hp(r,a);if(l>0&&C==null)break;a=await f(a,C),l++}while(l{var h,w;return(w=(h=t.options).persister)==null?void 0:w.call(h,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function hp(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 zb(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 Ce,Tn,Rn,uo,co,jn,fo,po,Hp,$b=(Hp=class{constructor(e={}){re(this,Ce);re(this,Tn);re(this,Rn);re(this,uo);re(this,co);re(this,jn);re(this,fo);re(this,po);G(this,Ce,e.queryCache||new Mb),G(this,Tn,e.mutationCache||new Fb),G(this,Rn,e.defaultOptions||{}),G(this,uo,new Map),G(this,co,new Map),G(this,jn,0)}mount(){$i(this,jn)._++,P(this,jn)===1&&(G(this,fo,jg.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ce).onFocus())})),G(this,po,ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ce).onOnline())})))}unmount(){var e,t;$i(this,jn)._--,P(this,jn)===0&&((e=P(this,fo))==null||e.call(this),G(this,fo,void 0),(t=P(this,po))==null||t.call(this),G(this,po,void 0))}isFetching(e){return P(this,Ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Tn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Ce).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime($u(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,Ce).get(r.queryHash),i=o==null?void 0:o.state.data,s=yb(t,i);if(s!==void 0)return P(this,Ce).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>P(this,Ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Ce);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Ce);return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=He.batch(()=>P(this,Ce).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Pt).catch(Pt)}invalidateQueries(e,t={}){return He.batch(()=>(P(this,Ce).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=He.batch(()=>P(this,Ce).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,Ce).build(this,t);return n.isStaleByTime($u(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=mp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=mp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ia.isOnline()?P(this,Tn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Ce)}getMutationCache(){return P(this,Tn)}getDefaultOptions(){return P(this,Rn)}setDefaultOptions(e){G(this,Rn,e)}setQueryDefaults(e,t){P(this,uo).set(Pi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,uo).values()],n={};return t.forEach(r=>{Ti(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,co).set(Pi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,co).values()],n={};return t.forEach(r=>{Ti(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Rn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fd(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===pd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Rn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ce).clear(),P(this,Tn).clear()}},Ce=new WeakMap,Tn=new WeakMap,Rn=new WeakMap,uo=new WeakMap,co=new WeakMap,jn=new WeakMap,fo=new WeakMap,po=new WeakMap,Hp),Bb=v.createContext(void 0),Ub=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Bb.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 sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hb(){return Math.random().toString(36).substr(2,8)}function gp(e,t){return{usr:e.state,key:e.key,idx:t}}function Uu(e,t,n,r){return n===void 0&&(n=null),sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fa(t):t,{state:n,key:t&&t.key||r||Hb()})}function Lg(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 Fa(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 Wb(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=On.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(sa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=On.Pop;let w=d(),g=w==null?null:w-u;u=w,l&&l({action:a,location:h.location,delta:g})}function y(w,g){a=On.Push;let f=Uu(h.location,w,g);u=d()+1;let x=gp(f,u),C=h.createHref(f);try{s.pushState(x,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&l&&l({action:a,location:h.location,delta:1})}function m(w,g){a=On.Replace;let f=Uu(h.location,w,g);u=d();let x=gp(f,u),C=h.createHref(f);s.replaceState(x,"",C),i&&l&&l({action:a,location:h.location,delta:0})}function S(w){let g=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof w=="string"?w:Lg(w);return f=f.replace(/ $/,"%20"),et(g,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,g)}let h={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(vp,p),l=w,()=>{o.removeEventListener(vp,p),l=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let g=S(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:y,replace:m,go(w){return s.go(w)}};return h}var yp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yp||(yp={}));function Qb(e,t,n){return n===void 0&&(n="/"),Kb(e,t,n,!1)}function Kb(e,t,n,r){let o=typeof t=="string"?Fa(t):t,i=zg(o.pathname||"/",n);if(i==null)return null;let s=Dg(e);Gb(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(et(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=ro([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(et(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Dg(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:t2(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Fg(i.path))o(i,s,l)}),t}function Fg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Fg(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yb=/^:[\w-]+$/,qb=3,Xb=2,Zb=1,Jb=10,e2=-2,xp=e=>e==="*";function t2(e,t){let n=e.split("/"),r=n.length;return n.some(xp)&&(r+=e2),t&&(r+=Xb),n.filter(o=>!xp(o)).reduce((o,i)=>o+(Yb.test(i)?qb:i===""?Zb:Jb),r)}function n2(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 r2(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:y,isOptional:m}=d;if(y==="*"){let h=a[p]||"";s=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const S=a[p];return m&&!S?u[y]=void 0:u[y]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function o2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,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 i2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mg(!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 zg(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 ro=e=>e.join("/").replace(/\/\/+/g,"/"),s2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function a2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $g=["post","put","patch","delete"];new Set($g);const l2=["get",...$g];new Set(l2);/** * 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 aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},a,w.params),pathname:ro([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ro([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&h?v.createElement(za.Provider,{value:{location:aa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},h):h}function p2(){let e=S2(),t=a2(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 v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const m2=v.createElement(p2,null);class h2 extends v.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?v.createElement($a.Provider,{value:this.props.routeContext},v.createElement(Ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v2(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(u2);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement($a.Provider,{value:t},r)}function g2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||et(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,y)=>{let m,S=!1,h=null,w=null;n&&(m=a&&p.route.id?a[p.route.id]:void 0,h=p.route.errorElement||m2,l&&(u<0&&y===0?(S=!0,w=null):u===y&&(S=!0,w=p.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,y+1)),f=()=>{let x;return m?x=h:S?x=w:p.route.Component?x=v.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=d,v.createElement(v2,{match:p,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?v.createElement(h2,{location:n.location,revalidation:n.revalidation,component:h,error:m,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()},null)}var Vu=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}(Vu||{});function y2(e){let t=v.useContext(c2);return t||et(!1),t}function x2(e){let t=v.useContext($a);return t||et(!1),t}function w2(e){let t=x2(),n=t.matches[t.matches.length-1];return n.route.id||et(!1),n.route.id}function S2(){var e;let t=v.useContext(Ug),n=y2(Vu.UseRouteError),r=w2(Vu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function C2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Hu(e){et(!1)}function E2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=On.Pop,navigator:i,static:s=!1,future:a}=e;md()&&et(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:s,future:aa({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Fa(r));let{pathname:d="/",search:p="",hash:y="",state:m=null,key:S="default"}=r,h=v.useMemo(()=>{let w=zg(d,l);return w==null?null:{location:{pathname:w,search:p,hash:y,state:m,key:S},navigationType:o}},[l,d,p,y,m,S,o]);return h==null?null:v.createElement(Bg.Provider,{value:u},v.createElement(za.Provider,{children:n,value:h}))}function b2(e){let{children:t,location:n}=e;return d2(Wu(t),n)}new Promise(()=>{});function Wu(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,Wu(r.props.children,i));return}r.type!==Hu&&et(!1),!r.props.index||!r.props.children||et(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Wu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const N2="6";try{window.__reactRouterVersion=N2}catch{}const k2="startTransition",Sp=rc[k2];function P2(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=Vb({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=v.useCallback(p=>{u&&Sp?Sp(()=>l(p)):l(p)},[l,u]);return v.useLayoutEffect(()=>s.listen(d),[s,d]),v.useEffect(()=>C2(r),[r]),v.createElement(E2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var Cp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cp||(Cp={}));var Ep;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ep||(Ep={}));const T2=Jc("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",whatsapp:"bg-[#25D366] text-white hover:bg-[#20BA5A] shadow-lg hover:shadow-xl transition-all duration-300",gold:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-md hover:shadow-lg transition-all duration-300"},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"}}),Cr=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?d1:"button";return c.jsx(s,{className:ie(T2({variant:t,size:n,className:e})),ref:i,...o})});Cr.displayName="Button";const R2=()=>{const e="551151991450",t="(11) 5199-1450",n=()=>{window.open(`https://wa.me/${e}`,"_blank")};return c.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border shadow-sm",children:c.jsx("div",{className:"container mx-auto px-4 py-2 md:py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("div",{className:"flex items-center justify-center w-8 h-8 md:w-10 md:h-10 rounded-full bg-primary",children:c.jsx("span",{className:"text-lg md:text-xl font-bold text-primary-foreground",children:"⚖️"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-base md:text-lg font-bold text-foreground",children:"Direito Civil"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Advocacia Especializada"})]})]}),c.jsxs("div",{className:"flex items-center gap-2 md:gap-4",children:[c.jsxs("a",{href:`tel:${e}`,className:"hidden md:flex items-center gap-2 text-sm text-foreground hover:text-primary transition-colors",children:[c.jsx(Dv,{className:"h-4 w-4"}),c.jsx("span",{className:"font-medium",children:t})]}),c.jsxs(Cr,{variant:"whatsapp",size:"lg",onClick:n,className:"font-semibold text-sm md:text-base h-11",children:[c.jsx(To,{className:"h-5 w-5"}),"Fale Agora!!!"]})]})]})})})},j2="/assets/hero-law-6TlvKX4C.jpg",_o=(e={})=>{const{threshold:t=.1,rootMargin:n="0px",triggerOnce:r=!0}=e,[o,i]=v.useState(!1),s=v.useRef(null);return v.useEffect(()=>{const a=new IntersectionObserver(([l])=>{l.isIntersecting?(i(!0),r&&s.current&&a.unobserve(s.current)):r||i(!1)},{threshold:t,rootMargin:n});return s.current&&a.observe(s.current),()=>{s.current&&a.unobserve(s.current)}},[t,n,r]),{ref:s,isVisible:o}},A2=()=>{const{ref:e,isVisible:t}=_o({threshold:.2}),n=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsx("section",{ref:e,className:`relative flex items-center pt-14 md:pt-16 bg-gradient-to-b from-secondary/30 to-background transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsx("div",{className:"container mx-auto px-4 py-8 md:py-12 lg:py-16",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 md:gap-12 items-center",children:[c.jsxs("div",{className:"space-y-4 md:space-y-6",children:[c.jsxs("div",{className:"space-y-3 md:space-y-4",children:[c.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-foreground leading-tight",children:["Precisa de um advogado especializado em"," ",c.jsx("span",{className:"text-primary",children:"Direito Civil"}),"?"]}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Atendimento humanizado e soluções jurídicas rápidas para divórcio, guarda, pensão, inventário e mais."})]}),c.jsx("div",{className:"flex flex-wrap gap-3 md:gap-4",children:[{icon:aS,text:"Atendimento rápido"},{icon:Fv,text:"100% ONLINE"},{icon:Lv,text:"Totalmente sigiloso"}].map((r,o)=>c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(r.icon,{className:"h-5 w-5 text-primary"}),c.jsx("span",{children:r.text})]},o))}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4",children:[c.jsxs(Cr,{variant:"whatsapp",size:"lg",onClick:n,className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:[c.jsx(To,{className:"h-5 w-5 md:h-6 md:w-6"}),"Fale Agora!!!"]}),c.jsx(Cr,{variant:"outline",size:"lg",onClick:()=>{var r;return(r=document.getElementById("services"))==null?void 0:r.scrollIntoView({behavior:"smooth"})},className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:"Ver Serviços"})]})]}),c.jsx("div",{className:"relative hidden lg:block",children:c.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl",children:[c.jsx("img",{src:j2,alt:"Advogado especializado em Direito Civil",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/20 to-transparent"})]})})]})})})},In=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));In.displayName="Card";const _2=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("flex flex-col space-y-1.5 p-6",e),...t}));_2.displayName="CardHeader";const O2=v.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:ie("text-2xl font-semibold leading-none tracking-tight",e),...t}));O2.displayName="CardTitle";const I2=v.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));I2.displayName="CardDescription";const M2=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("p-6 pt-0",e),...t}));M2.displayName="CardContent";const L2=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("flex items-center p-6 pt-0",e),...t}));L2.displayName="CardFooter";const D2=[{icon:Kf,title:"Divórcio",description:"Encerramos o casamento de forma rápida e segura, consensual ou litigiosa, protegendo seus direitos e evitando desgaste desnecessário."},{icon:Kf,title:"União estável",description:"Reconhecemos ou dissolvemos a união estável, regulando direitos, bens e responsabilidades com segurança."},{icon:lS,title:"Pensão alimentícia",description:"Definimos, revisamos ou encerramos a pensão, buscando equilíbrio entre quem paga e quem recebe."},{icon:oS,title:"Guarda de filhos",description:"Ajustamos guarda unilateral ou compartilhada e visitas, sempre priorizando o bem-estar da criança."},{icon:cS,title:"Inventário",description:"Organizamos a herança por via judicial ou extrajudicial, com partilha justa e solução ágil."},{icon:dS,title:"Doações em vida",description:"Estruturamos doações com segurança jurídica, evitando problemas futuros entre herdeiros."}],F2=()=>{const{ref:e,isVisible:t}=_o({threshold:.1}),n=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsx("section",{id:"services",ref:e,className:`py-4 md:py-6 lg:py-8 bg-background transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-10 lg:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Como podemos te ajudar?"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Oferecemos soluções jurídicas completas em Direito Civil e de Família"})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",children:D2.map((r,o)=>c.jsx(In,{className:"p-4 md:p-6 hover:shadow-lg transition-all duration-300 hover:-translate-y-1 border-border bg-card",children:c.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[c.jsx("div",{className:"flex-shrink-0 w-10 h-10 md:w-12 md:h-12 rounded-lg bg-primary/10 flex items-center justify-center",children:c.jsx(r.icon,{className:"h-5 w-5 md:h-6 md:w-6 text-primary"})}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("h3",{className:"text-lg md:text-xl font-semibold text-foreground",children:r.title}),c.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:r.description})]})]})},o))}),c.jsxs("div",{className:"text-center mt-6 md:mt-8 lg:mt-10",children:[c.jsx("p",{className:"text-muted-foreground mb-4 text-base md:text-lg",children:"Precisa de ajuda com algum desses serviços?"}),c.jsxs(Cr,{variant:"whatsapp",size:"lg",onClick:n,className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:[c.jsx(To,{className:"h-5 w-5 md:h-6 md:w-6"}),"Falar com um Especialista"]})]})]})})};var Hg={exports:{}},Wg={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bo=v;function z2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $2=typeof Object.is=="function"?Object.is:z2,B2=bo.useState,U2=bo.useEffect,V2=bo.useLayoutEffect,H2=bo.useDebugValue;function W2(e,t){var n=t(),r=B2({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return V2(function(){o.value=n,o.getSnapshot=t,jl(o)&&i({inst:o})},[e,n,t]),U2(function(){return jl(o)&&i({inst:o}),e(function(){jl(o)&&i({inst:o})})},[e]),H2(n),n}function jl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$2(e,n)}catch{return!0}}function Q2(e,t){return t()}var K2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Q2:W2;Wg.useSyncExternalStore=bo.useSyncExternalStore!==void 0?bo.useSyncExternalStore:K2;Hg.exports=Wg;var G2=Hg.exports;function Y2(){return G2.useSyncExternalStore(q2,()=>!0,()=>!1)}function q2(){return()=>{}}var hd="Avatar",[X2,pP]=qn(hd),[Z2,Qg]=X2(hd),Kg=v.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=v.useState("idle");return c.jsx(Z2,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:c.jsx(J.span,{...r,ref:t})})});Kg.displayName=hd;var Gg="AvatarImage",Yg=v.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,s=Qg(Gg,n),a=J2(r,i),l=yt(u=>{o(u),s.onImageLoadingStatusChange(u)});return Ne(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?c.jsx(J.img,{...i,ref:t,src:r}):null});Yg.displayName=Gg;var qg="AvatarFallback",Xg=v.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=Qg(qg,n),[s,a]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&i.imageLoadingStatus!=="loaded"?c.jsx(J.span,{...o,ref:t}):null});Xg.displayName=qg;function bp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function J2(e,{referrerPolicy:t,crossOrigin:n}){const r=Y2(),o=v.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[s,a]=v.useState(()=>bp(i,e));return Ne(()=>{a(bp(i,e))},[i,e]),Ne(()=>{const l=p=>()=>{a(p)};if(!i)return;const u=l("loaded"),d=l("error");return i.addEventListener("load",u),i.addEventListener("error",d),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",u),i.removeEventListener("error",d)}},[i,n,t]),s}var Zg=Kg,Jg=Yg,ey=Xg;const ty=v.forwardRef(({className:e,...t},n)=>c.jsx(Zg,{ref:n,className:ie("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ty.displayName=Zg.displayName;const eN=v.forwardRef(({className:e,...t},n)=>c.jsx(Jg,{ref:n,className:ie("aspect-square h-full w-full",e),...t}));eN.displayName=Jg.displayName;const ny=v.forwardRef(({className:e,...t},n)=>c.jsx(ey,{ref:n,className:ie("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ny.displayName=ey.displayName;const tN=[{icon:rS,value:"+10 anos",label:"De experiência"},{icon:hS,value:"100%",label:"Sigiloso"},{icon:Fv,value:"ONLINE",label:"100% Online"},{icon:zv,value:"5.0",label:"Avaliação média"}],nN=[{name:"Mariana Leite",avatar:"ML",text:"Excelente atendimento! Resolveram meu processo de divórcio de forma rápida e sem complicações. Recomendo!",rating:5},{name:"Pedro Vasconcelos",avatar:"PV",text:"Profissionais competentes e atenciosos. Me ajudaram com a guarda do meu filho e pensão alimentícia. Muito satisfeito!",rating:5},{name:"Eduardo Medeiros",avatar:"EM",text:"Realizaram meu inventário de forma ágil e eficiente. Equipe muito profissional e transparente em todo o processo.",rating:5}],rN=()=>{const{ref:e,isVisible:t}=_o({threshold:.1});return c.jsx("section",{ref:e,className:`py-4 md:py-6 lg:py-8 bg-secondary/30 transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-6 md:mb-8 lg:mb-10",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Por que nos escolher?"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Confiança e resultados comprovados"})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6 mb-8 md:mb-10",children:tN.map((n,r)=>c.jsxs(In,{className:"p-4 md:p-6 text-center hover:shadow-lg transition-all duration-300 bg-card border-border",children:[c.jsx("div",{className:"flex justify-center mb-4",children:c.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(n.icon,{className:"h-8 w-8 text-primary"})})}),c.jsx("div",{className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:n.value}),c.jsx("div",{className:"text-sm text-muted-foreground",children:n.label})]},r))}),c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("h3",{className:"text-xl md:text-2xl font-bold text-foreground mb-4 md:mb-6 text-center",children:"O que nossos clientes dizem"}),c.jsx("div",{className:"grid md:grid-cols-3 gap-4 md:gap-6",children:nN.map((n,r)=>c.jsxs(In,{className:"p-4 md:p-6 bg-card border-border hover:shadow-lg transition-all duration-300",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(ty,{className:"h-12 w-12",children:c.jsx(ny,{className:"bg-gradient-to-br from-primary to-primary/60 text-primary-foreground text-lg font-semibold",children:n.avatar})}),c.jsx("p",{className:"text-sm font-semibold text-foreground",children:n.name})]}),c.jsx("div",{className:"flex mb-3",children:[...Array(n.rating)].map((o,i)=>c.jsx(zv,{className:"h-4 w-4 fill-accent text-accent"},i))}),c.jsxs("p",{className:"text-sm text-muted-foreground italic",children:['"',n.text,'"']})]},r))})]})]})})},Np=[{icon:To,number:"01",title:"Entre em contato",description:"Envie sua mensagem pelo WhatsApp ou preencha o formulário de contato"},{icon:uS,number:"02",title:"Avaliação gratuita",description:"Avaliação gratuita e rápida do seu caso por nossos especialistas"},{icon:pS,number:"03",title:"Orientação jurídica",description:"Receba orientação jurídica imediata e comece a resolver seu caso"}],oN=()=>{const{ref:e,isVisible:t}=_o({threshold:.1}),n=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsx("section",{ref:e,className:`py-6 md:py-8 lg:py-12 bg-background transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-10 lg:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Como funciona o atendimento"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Simples, rápido e eficiente"})]}),c.jsx("div",{className:"max-w-5xl mx-auto grid md:grid-cols-3 gap-6 md:gap-8 mb-6 md:mb-8",children:Np.map((r,o)=>c.jsxs("div",{className:"relative text-center",children:[c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsxs("div",{className:"relative mb-6",children:[c.jsx("div",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-primary flex items-center justify-center shadow-lg",children:c.jsx(r.icon,{className:"h-8 w-8 md:h-10 md:w-10 text-primary-foreground"})}),c.jsx("div",{className:"absolute -top-2 -right-2 w-7 h-7 md:w-8 md:h-8 rounded-full bg-accent flex items-center justify-center text-xs md:text-sm font-bold text-accent-foreground",children:r.number})]}),c.jsx("h3",{className:"text-lg md:text-xl font-bold text-foreground mb-3",children:r.title}),c.jsx("p",{className:"text-sm md:text-base text-muted-foreground",children:r.description})]}),o{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[l,u]=So({prop:r,defaultProp:o??!1,onChange:s,caller:Ba});return c.jsx(sN,{scope:n,disabled:i,contentId:Di(),open:l,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),children:c.jsx(J.div,{"data-state":yd(l),"data-disabled":i?"":void 0,...a,ref:t})})});oy.displayName=Ba;var iy="CollapsibleTrigger",sy=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=vd(iy,n);return c.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":yd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:X(e.onClick,o.onOpenToggle)})});sy.displayName=iy;var gd="CollapsibleContent",ay=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=vd(gd,e.__scopeCollapsible);return c.jsx(Pa,{present:n||o.open,children:({present:i})=>c.jsx(aN,{...r,ref:t,present:i})})});ay.displayName=gd;var aN=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=vd(gd,n),[a,l]=v.useState(r),u=v.useRef(null),d=ve(t,u),p=v.useRef(0),y=p.current,m=v.useRef(0),S=m.current,h=s.open||a,w=v.useRef(h),g=v.useRef(void 0);return v.useEffect(()=>{const f=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(f)},[]),Ne(()=>{const f=u.current;if(f){g.current=g.current||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";const x=f.getBoundingClientRect();p.current=x.height,m.current=x.width,w.current||(f.style.transitionDuration=g.current.transitionDuration,f.style.animationName=g.current.animationName),l(r)}},[s.open,r]),c.jsx(J.div,{"data-state":yd(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...i,ref:d,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:h&&o})});function yd(e){return e?"open":"closed"}var lN=oy,uN=sy,cN=ay,dN=v.createContext(void 0);function ly(e){const t=v.useContext(dN);return e||t||"ltr"}var Dt="Accordion",fN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[xd,pN,mN]=Gc(Dt),[Ua,mP]=qn(Dt,[mN,ry]),wd=ry(),uy=j.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return c.jsx(xd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(yN,{...i,ref:t}):c.jsx(gN,{...o,ref:t})})});uy.displayName=Dt;var[cy,hN]=Ua(Dt),[dy,vN]=Ua(Dt,{collapsible:!1}),gN=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,l]=So({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return c.jsx(cy,{scope:e.__scopeAccordion,value:j.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:j.useCallback(()=>i&&l(""),[i,l]),children:c.jsx(dy,{scope:e.__scopeAccordion,collapsible:i,children:c.jsx(fy,{...s,ref:t})})})}),yN=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s,a]=So({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),l=j.useCallback(d=>a((p=[])=>[...p,d]),[a]),u=j.useCallback(d=>a((p=[])=>p.filter(y=>y!==d)),[a]);return c.jsx(cy,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:c.jsx(dy,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(fy,{...i,ref:t})})})}),[xN,Va]=Ua(Dt),fy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,a=j.useRef(null),l=ve(a,t),u=pN(n),p=ly(o)==="ltr",y=X(e.onKeyDown,m=>{var T;if(!fN.includes(m.key))return;const S=m.target,h=u().filter(_=>{var O;return!((O=_.ref.current)!=null&&O.disabled)}),w=h.findIndex(_=>_.ref.current===S),g=h.length;if(w===-1)return;m.preventDefault();let f=w;const x=0,C=g-1,E=()=>{f=w+1,f>C&&(f=x)},N=()=>{f=w-1,f{const{__scopeAccordion:n,value:r,...o}=e,i=Va(la,n),s=hN(la,n),a=wd(n),l=Di(),u=r&&s.value.includes(r)||!1,d=i.disabled||e.disabled;return c.jsx(wN,{scope:n,open:u,disabled:d,triggerId:l,children:c.jsx(lN,{"data-orientation":i.orientation,"data-state":xy(u),...a,...o,ref:t,disabled:d,open:u,onOpenChange:p=>{p?s.onItemOpen(r):s.onItemClose(r)}})})});py.displayName=la;var my="AccordionHeader",hy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Va(Dt,n),i=Sd(my,n);return c.jsx(J.h3,{"data-orientation":o.orientation,"data-state":xy(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});hy.displayName=my;var Qu="AccordionTrigger",vy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Va(Dt,n),i=Sd(Qu,n),s=vN(Qu,n),a=wd(n);return c.jsx(xd.ItemSlot,{scope:n,children:c.jsx(uN,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});vy.displayName=Qu;var gy="AccordionContent",yy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Va(Dt,n),i=Sd(gy,n),s=wd(n);return c.jsx(cN,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});yy.displayName=gy;function xy(e){return e?"open":"closed"}var SN=uy,CN=py,EN=hy,wy=vy,Sy=yy;const bN=SN,Cy=v.forwardRef(({className:e,...t},n)=>c.jsx(CN,{ref:n,className:ie("border-b",e),...t}));Cy.displayName="AccordionItem";const Ey=v.forwardRef(({className:e,children:t,...n},r)=>c.jsx(EN,{className:"flex",children:c.jsxs(wy,{ref:r,className:ie("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,c.jsx(ed,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Ey.displayName=wy.displayName;const by=v.forwardRef(({className:e,children:t,...n},r)=>c.jsx(Sy,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:c.jsx("div",{className:ie("pb-4 pt-0",e),children:t})}));by.displayName=Sy.displayName;const NN=()=>{const{ref:e,isVisible:t}=_o({threshold:.1}),n=[{question:"Quanto custa a primeira consulta?",answer:"A primeira avaliação do seu caso é 100% gratuita. Você recebe orientação jurídica sem compromisso."},{question:"Quais áreas do direito vocês atendem?",answer:"Atuamos nas principais áreas: Direito Civil, Família, Trabalhista, Digital, Consulte."},{question:"Quanto tempo leva para resolver um caso?",answer:"O prazo varia conforme a complexidade. Na avaliação inicial, apresentamos um cronograma estimado para seu caso específico."},{question:"Como funciona o atendimento online?",answer:"Todo o processo pode ser feito remotamente via WhatsApp, videochamada ou e-mail. Você economiza tempo e recebe o mesmo atendimento de qualidade."},{question:"Preciso ir ao escritório pessoalmente?",answer:"Não necessariamente. A maioria dos atendimentos pode ser feita online. Apenas em casos específicos solicitamos presença física."},{question:"Qual o horário de atendimento?",answer:"Atendemos de segunda a sexta, das 9h às 18h. Pelo WhatsApp, respondemos o mais rápido possível."},{question:"Como são os honorários advocatícios?",answer:"Trabalhamos com transparência total. Os valores são apresentados claramente na avaliação inicial, sem surpresas."},{question:"Posso parcelar os honorários?",answer:"Sim, oferecemos condições especiais de parcelamento para facilitar o acesso à justiça."},{question:"Como sei se meu caso tem chances de sucesso?",answer:"Na avaliação gratuita, nossos advogados analisam seu caso e apresentam as possibilidades e estratégias jurídicas aplicáveis."}];return c.jsx("section",{ref:e,className:`py-6 md:py-8 lg:py-12 px-4 md:px-6 bg-muted/30 transition-all duration-700 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto max-w-3xl",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-4",children:"Perguntas Frequentes"}),c.jsx("p",{className:"text-muted-foreground text-lg",children:"Tire suas dúvidas sobre nossos serviços jurídicos"})]}),c.jsx(bN,{type:"single",collapsible:!0,className:"w-full",children:n.map((r,o)=>c.jsxs(Cy,{value:`item-${o}`,className:"border-b border-border hover:bg-accent/5 transition-colors",children:[c.jsx(Ey,{className:"text-left py-5 px-4 md:px-6 hover:no-underline",children:c.jsx("span",{className:"font-semibold text-foreground",children:r.question})}),c.jsx(by,{className:"px-4 md:px-6 pb-5 text-muted-foreground leading-relaxed",children:r.answer})]},o))})]})})},Ts=v.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ie("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}));Ts.displayName="Input";const Ny=v.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:ie("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ny.displayName="Textarea";var kN="Label",ky=v.forwardRef((e,t)=>c.jsx(J.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ky.displayName=kN;var Py=ky;const PN=Jc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Lr=v.forwardRef(({className:e,...t},n)=>c.jsx(Py,{ref:n,className:ie(PN(),e),...t}));Lr.displayName=Py.displayName;function kp(e,[t,n]){return Math.min(n,Math.max(t,e))}var Al=0;function TN(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pp()),document.body.insertAdjacentElement("beforeend",e[1]??Pp()),Al++,()=>{Al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Al--}},[])}function Pp(){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 _l="focusScope.autoFocusOnMount",Ol="focusScope.autoFocusOnUnmount",Tp={bubbles:!1,cancelable:!0},RN="FocusScope",Ty=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=v.useState(null),u=yt(o),d=yt(i),p=v.useRef(null),y=ve(t,h=>l(h)),m=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let h=function(x){if(m.paused||!a)return;const C=x.target;a.contains(C)?p.current=C:Sn(p.current,{select:!0})},w=function(x){if(m.paused||!a)return;const C=x.relatedTarget;C!==null&&(a.contains(C)||Sn(p.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Sn(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const f=new MutationObserver(g);return a&&f.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),f.disconnect()}}},[r,a,m.paused]),v.useEffect(()=>{if(a){jp.add(m);const h=document.activeElement;if(!a.contains(h)){const g=new CustomEvent(_l,Tp);a.addEventListener(_l,u),a.dispatchEvent(g),g.defaultPrevented||(jN(MN(Ry(a)),{select:!0}),document.activeElement===h&&Sn(a))}return()=>{a.removeEventListener(_l,u),setTimeout(()=>{const g=new CustomEvent(Ol,Tp);a.addEventListener(Ol,d),a.dispatchEvent(g),g.defaultPrevented||Sn(h??document.body,{select:!0}),a.removeEventListener(Ol,d),jp.remove(m)},0)}}},[a,u,d,m]);const S=v.useCallback(h=>{if(!n&&!r||m.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(w&&g){const f=h.currentTarget,[x,C]=AN(f);x&&C?!h.shiftKey&&g===C?(h.preventDefault(),n&&Sn(x,{select:!0})):h.shiftKey&&g===x&&(h.preventDefault(),n&&Sn(C,{select:!0})):g===f&&h.preventDefault()}},[n,r,m.paused]);return c.jsx(J.div,{tabIndex:-1,...s,ref:y,onKeyDown:S})});Ty.displayName=RN;function jN(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Sn(r,{select:t}),document.activeElement!==n)return}function AN(e){const t=Ry(e),n=Rp(t,e),r=Rp(t.reverse(),e);return[n,r]}function Ry(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 Rp(e,t){for(const n of e)if(!_N(n,{upTo:t}))return n}function _N(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 ON(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ON(e)&&t&&e.select()}}var jp=IN();function IN(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ap(e,t),e.unshift(t)},remove(t){var n;e=Ap(e,t),(n=e[0])==null||n.resume()}}}function Ap(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function MN(e){return e.filter(t=>t.tagName!=="A")}function LN(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var DN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Or=new WeakMap,us=new WeakMap,cs={},Il=0,jy=function(e){return e&&(e.host||jy(e.parentNode))},FN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jy(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})},zN=function(e,t,n,r){var o=FN(t,Array.isArray(e)?e:[e]);cs[n]||(cs[n]=new WeakMap);var i=cs[n],s=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(y){if(a.has(y))d(y);else try{var m=y.getAttribute(r),S=m!==null&&m!=="false",h=(Or.get(y)||0)+1,w=(i.get(y)||0)+1;Or.set(y,h),i.set(y,w),s.push(y),h===1&&S&&us.set(y,!0),w===1&&y.setAttribute(n,"true"),S||y.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",y,g)}})};return d(t),a.clear(),Il++,function(){s.forEach(function(p){var y=Or.get(p)-1,m=i.get(p)-1;Or.set(p,y),i.set(p,m),y||(us.has(p)||p.removeAttribute(r),us.delete(p)),m||p.removeAttribute(n)}),Il--,Il||(Or=new WeakMap,Or=new WeakMap,us=new WeakMap,cs={})}},$N=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=DN(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zN(r,o,n,"aria-hidden")):function(){return null}},Ht=function(){return Ht=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return rk;var t=ok(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])}},sk=Iy(),oo="data-scroll-locked",ak=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(UN,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(oo,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(i,`px; padding-right: `).concat(s,`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(Rs,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(js,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(Rs," .").concat(Rs,` { right: 0 `).concat(r,`; } .`).concat(js," .").concat(js,` { margin-right: 0 `).concat(r,`; } body[`).concat(oo,`] { `).concat(VN,": ").concat(a,`px; } `)},Op=function(){var e=parseInt(document.body.getAttribute(oo)||"0",10);return isFinite(e)?e:0},lk=function(){v.useEffect(function(){return document.body.setAttribute(oo,(Op()+1).toString()),function(){var e=Op()-1;e<=0?document.body.removeAttribute(oo):document.body.setAttribute(oo,e.toString())}},[])},uk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lk();var i=v.useMemo(function(){return ik(o)},[o]);return v.createElement(sk,{styles:ak(i,!t,o,n?"":"!important")})},Ku=!1;if(typeof window<"u")try{var ds=Object.defineProperty({},"passive",{get:function(){return Ku=!0,!0}});window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{Ku=!1}var Ir=Ku?{passive:!1}:!1,ck=function(e){return e.tagName==="TEXTAREA"},My=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ck(e)&&n[t]==="visible")},dk=function(e){return My(e,"overflowY")},fk=function(e){return My(e,"overflowX")},Ip=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ly(e,r);if(o){var i=Dy(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pk=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mk=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ly=function(e,t){return e==="v"?dk(t):fk(t)},Dy=function(e,t){return e==="v"?pk(t):mk(t)},hk=function(e,t){return e==="h"&&t==="rtl"?-1:1},vk=function(e,t,n,r,o){var i=hk(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,d=s>0,p=0,y=0;do{if(!a)break;var m=Dy(e,a),S=m[0],h=m[1],w=m[2],g=h-w-i*S;(S||g)&&Ly(e,a)&&(p+=g,y+=S);var f=a.parentNode;a=f&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE?f.host:f}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(y)<1||!o))&&(u=!0),u},fs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mp=function(e){return[e.deltaX,e.deltaY]},Lp=function(e){return e&&"current"in e?e.current:e},gk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yk=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},xk=0,Mr=[];function wk(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(xk++)[0],i=v.useState(Iy)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=BN([e.lockRef.current],(e.shards||[]).map(Lp),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var g=fs(h),f=n.current,x="deltaX"in h?h.deltaX:f[0]-g[0],C="deltaY"in h?h.deltaY:f[1]-g[1],E,N=h.target,b=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in h&&b==="h"&&N.type==="range")return!1;var T=Ip(b,N);if(!T)return!0;if(T?E=b:(E=b==="v"?"h":"v",T=Ip(b,N)),!T)return!1;if(!r.current&&"changedTouches"in h&&(x||C)&&(r.current=E),!E)return!0;var _=r.current||E;return vk(_,w,h,_==="h"?x:C,!0)},[]),l=v.useCallback(function(h){var w=h;if(!(!Mr.length||Mr[Mr.length-1]!==i)){var g="deltaY"in w?Mp(w):fs(w),f=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&gk(E.delta,g)})[0];if(f&&f.should){w.cancelable&&w.preventDefault();return}if(!f){var x=(s.current.shards||[]).map(Lp).filter(Boolean).filter(function(E){return E.contains(w.target)}),C=x.length>0?a(w,x[0]):!s.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),u=v.useCallback(function(h,w,g,f){var x={name:h,delta:w,target:g,should:f,shadowParent:Sk(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),d=v.useCallback(function(h){n.current=fs(h),r.current=void 0},[]),p=v.useCallback(function(h){u(h.type,Mp(h),h.target,a(h,e.lockRef.current))},[]),y=v.useCallback(function(h){u(h.type,fs(h),h.target,a(h,e.lockRef.current))},[]);v.useEffect(function(){return Mr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",l,Ir),document.addEventListener("touchmove",l,Ir),document.addEventListener("touchstart",d,Ir),function(){Mr=Mr.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Ir),document.removeEventListener("touchmove",l,Ir),document.removeEventListener("touchstart",d,Ir)}},[]);var m=e.removeScrollBar,S=e.inert;return v.createElement(v.Fragment,null,S?v.createElement(i,{styles:yk(o)}):null,m?v.createElement(uk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Sk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ck=qN(Oy,wk);var Fy=v.forwardRef(function(e,t){return v.createElement(Ha,Ht({},e,{ref:t,sideCar:Ck}))});Fy.classNames=Ha.classNames;var Ek=[" ","Enter","ArrowUp","ArrowDown"],bk=[" ","Enter"],Er="Select",[Wa,Qa,Nk]=Gc(Er),[Oo,hP]=qn(Er,[Nk,Oa]),Ka=Oa(),[kk,Xn]=Oo(Er),[Pk,Tk]=Oo(Er),zy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:y,required:m,form:S}=e,h=Ka(t),[w,g]=v.useState(null),[f,x]=v.useState(null),[C,E]=v.useState(!1),N=ly(u),[b,T]=So({prop:r,defaultProp:o??!1,onChange:i,caller:Er}),[_,O]=So({prop:s,defaultProp:a,onChange:l,caller:Er}),$=v.useRef(null),M=w?S||!!w.closest("form"):!0,[V,I]=v.useState(new Set),W=Array.from(V).map(z=>z.props.value).join(";");return c.jsx(ZE,{...h,children:c.jsxs(kk,{required:m,scope:t,trigger:w,onTriggerChange:g,valueNode:f,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:Di(),value:_,onValueChange:O,open:b,onOpenChange:T,dir:N,triggerPointerDownPosRef:$,disabled:y,children:[c.jsx(Wa.Provider,{scope:t,children:c.jsx(Pk,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(z=>{I(U=>new Set(U).add(z))},[]),onNativeOptionRemove:v.useCallback(z=>{I(U=>{const k=new Set(U);return k.delete(z),k})},[]),children:n})}),M?c.jsxs(u0,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:p,value:_,onChange:z=>O(z.target.value),disabled:y,form:S,children:[_===void 0?c.jsx("option",{value:""}):null,Array.from(V)]},W):null]})})};zy.displayName=Er;var $y="SelectTrigger",By=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Ka(n),s=Xn($y,n),a=s.disabled||r,l=ve(t,s.onTriggerChange),u=Qa(n),d=v.useRef("touch"),[p,y,m]=d0(h=>{const w=u().filter(x=>!x.disabled),g=w.find(x=>x.value===s.value),f=f0(w,h,g);f!==void 0&&s.onValueChange(f.value)}),S=h=>{a||(s.onOpenChange(!0),m()),h&&(s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return c.jsx(gg,{asChild:!0,...i,children:c.jsx(J.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":c0(s.value)?"":void 0,...o,ref:l,onClick:X(o.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&S(h)}),onPointerDown:X(o.onPointerDown,h=>{d.current=h.pointerType;const w=h.target;w.hasPointerCapture(h.pointerId)&&w.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(S(h),h.preventDefault())}),onKeyDown:X(o.onKeyDown,h=>{const w=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&y(h.key),!(w&&h.key===" ")&&Ek.includes(h.key)&&(S(),h.preventDefault())})})})});By.displayName=$y;var Uy="SelectValue",Vy=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,l=Xn(Uy,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,p=ve(t,l.onValueNodeChange);return Ne(()=>{u(d)},[u,d]),c.jsx(J.span,{...a,ref:p,style:{pointerEvents:"none"},children:c0(l.value)?c.jsx(c.Fragment,{children:s}):i})});Vy.displayName=Uy;var Rk="SelectIcon",Hy=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(J.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Hy.displayName=Rk;var jk="SelectPortal",Wy=e=>c.jsx(Yc,{asChild:!0,...e});Wy.displayName=jk;var br="SelectContent",Qy=v.forwardRef((e,t)=>{const n=Xn(br,e.__scopeSelect),[r,o]=v.useState();if(Ne(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Pr.createPortal(c.jsx(Ky,{scope:e.__scopeSelect,children:c.jsx(Wa.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),i):null}return c.jsx(Gy,{...e,ref:t})});Qy.displayName=br;var Nt=10,[Ky,Zn]=Oo(br),Ak="SelectContentImpl",_k=bi("SelectContent.RemoveScroll"),Gy=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:S,hideWhenDetached:h,avoidCollisions:w,...g}=e,f=Xn(br,n),[x,C]=v.useState(null),[E,N]=v.useState(null),b=ve(t,D=>C(D)),[T,_]=v.useState(null),[O,$]=v.useState(null),M=Qa(n),[V,I]=v.useState(!1),W=v.useRef(!1);v.useEffect(()=>{if(x)return $N(x)},[x]),TN();const z=v.useCallback(D=>{const[se,...Se]=M().map(ne=>ne.ref.current),[oe]=Se.slice(-1),ee=document.activeElement;for(const ne of D)if(ne===ee||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===se&&E&&(E.scrollTop=0),ne===oe&&E&&(E.scrollTop=E.scrollHeight),ne==null||ne.focus(),document.activeElement!==ee))return},[M,E]),U=v.useCallback(()=>z([T,x]),[z,T,x]);v.useEffect(()=>{V&&U()},[V,U]);const{onOpenChange:k,triggerPointerDownPosRef:R}=f;v.useEffect(()=>{if(x){let D={x:0,y:0};const se=oe=>{var ee,ne;D={x:Math.abs(Math.round(oe.pageX)-(((ee=R.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((ne=R.current)==null?void 0:ne.y)??0))}},Se=oe=>{D.x<=10&&D.y<=10?oe.preventDefault():x.contains(oe.target)||k(!1),document.removeEventListener("pointermove",se),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",Se,{capture:!0})}}},[x,k,R]),v.useEffect(()=>{const D=()=>k(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[k]);const[L,H]=d0(D=>{const se=M().filter(ee=>!ee.disabled),Se=se.find(ee=>ee.ref.current===document.activeElement),oe=f0(se,D,Se);oe&&setTimeout(()=>oe.ref.current.focus())}),B=v.useCallback((D,se,Se)=>{const oe=!W.current&&!Se;(f.value!==void 0&&f.value===se||oe)&&(_(D),oe&&(W.current=!0))},[f.value]),Y=v.useCallback(()=>x==null?void 0:x.focus(),[x]),Q=v.useCallback((D,se,Se)=>{const oe=!W.current&&!Se;(f.value!==void 0&&f.value===se||oe)&&$(D)},[f.value]),ce=r==="popper"?Gu:Yy,we=ce===Gu?{side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:S,hideWhenDetached:h,avoidCollisions:w}:{};return c.jsx(Ky,{scope:n,content:x,viewport:E,onViewportChange:N,itemRefCallback:B,selectedItem:T,onItemLeave:Y,itemTextRefCallback:Q,focusSelectedItem:U,selectedItemText:O,position:r,isPositioned:V,searchRef:L,children:c.jsx(Fy,{as:_k,allowPinchZoom:!0,children:c.jsx(Ty,{asChild:!0,trapped:f.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:X(o,D=>{var se;(se=f.trigger)==null||se.focus({preventScroll:!0}),D.preventDefault()}),children:c.jsx(ka,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:c.jsx(ce,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:D=>D.preventDefault(),...g,...we,onPlaced:()=>I(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:X(g.onKeyDown,D=>{const se=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!se&&D.key.length===1&&H(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let oe=M().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(D.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const ee=D.target,ne=oe.indexOf(ee);oe=oe.slice(ne+1)}setTimeout(()=>z(oe)),D.preventDefault()}})})})})})})});Gy.displayName=Ak;var Ok="SelectItemAlignedPosition",Yy=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Xn(br,n),s=Zn(br,n),[a,l]=v.useState(null),[u,d]=v.useState(null),p=ve(t,b=>d(b)),y=Qa(n),m=v.useRef(!1),S=v.useRef(!0),{viewport:h,selectedItem:w,selectedItemText:g,focusSelectedItem:f}=s,x=v.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&h&&w&&g){const b=i.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),_=i.valueNode.getBoundingClientRect(),O=g.getBoundingClientRect();if(i.dir!=="rtl"){const ee=O.left-T.left,ne=_.left-ee,Me=b.left-ne,ut=b.width+Me,Jn=Math.max(ut,T.width),pn=window.innerWidth-Nt,er=kp(ne,[Nt,Math.max(Nt,pn-Jn)]);a.style.minWidth=ut+"px",a.style.left=er+"px"}else{const ee=T.right-O.right,ne=window.innerWidth-_.right-ee,Me=window.innerWidth-b.right-ne,ut=b.width+Me,Jn=Math.max(ut,T.width),pn=window.innerWidth-Nt,er=kp(ne,[Nt,Math.max(Nt,pn-Jn)]);a.style.minWidth=ut+"px",a.style.right=er+"px"}const $=y(),M=window.innerHeight-Nt*2,V=h.scrollHeight,I=window.getComputedStyle(u),W=parseInt(I.borderTopWidth,10),z=parseInt(I.paddingTop,10),U=parseInt(I.borderBottomWidth,10),k=parseInt(I.paddingBottom,10),R=W+z+V+k+U,L=Math.min(w.offsetHeight*5,R),H=window.getComputedStyle(h),B=parseInt(H.paddingTop,10),Y=parseInt(H.paddingBottom,10),Q=b.top+b.height/2-Nt,ce=M-Q,we=w.offsetHeight/2,D=w.offsetTop+we,se=W+z+D,Se=R-se;if(se<=Q){const ee=$.length>0&&w===$[$.length-1].ref.current;a.style.bottom="0px";const ne=u.clientHeight-h.offsetTop-h.offsetHeight,Me=Math.max(ce,we+(ee?Y:0)+ne+U),ut=se+Me;a.style.height=ut+"px"}else{const ee=$.length>0&&w===$[0].ref.current;a.style.top="0px";const Me=Math.max(Q,W+h.offsetTop+(ee?B:0)+we)+Se;a.style.height=Me+"px",h.scrollTop=se-Q+h.offsetTop}a.style.margin=`${Nt}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[y,i.trigger,i.valueNode,a,u,h,w,g,i.dir,r]);Ne(()=>x(),[x]);const[C,E]=v.useState();Ne(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const N=v.useCallback(b=>{b&&S.current===!0&&(x(),f==null||f(),S.current=!1)},[x,f]);return c.jsx(Mk,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:N,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:c.jsx(J.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Yy.displayName=Ok;var Ik="SelectPopperPosition",Gu=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Nt,...i}=e,s=Ka(n);return c.jsx(yg,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gu.displayName=Ik;var[Mk,Cd]=Oo(br,{}),Yu="SelectViewport",qy=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Zn(Yu,n),s=Cd(Yu,n),a=ve(t,i.onViewportChange),l=v.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Wa.Slot,{scope:n,children:c.jsx(J.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=s;if(y!=null&&y.current&&p){const m=Math.abs(l.current-d.scrollTop);if(m>0){const S=window.innerHeight-Nt*2,h=parseFloat(p.style.minHeight),w=parseFloat(p.style.height),g=Math.max(h,w);if(g0?C:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});qy.displayName=Yu;var Xy="SelectGroup",[Lk,Dk]=Oo(Xy),Fk=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Di();return c.jsx(Lk,{scope:n,id:o,children:c.jsx(J.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Fk.displayName=Xy;var Zy="SelectLabel",Jy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Dk(Zy,n);return c.jsx(J.div,{id:o.id,...r,ref:t})});Jy.displayName=Zy;var ua="SelectItem",[zk,e0]=Oo(ua),t0=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Xn(ua,n),l=Zn(ua,n),u=a.value===r,[d,p]=v.useState(i??""),[y,m]=v.useState(!1),S=ve(t,f=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,f,r,o)}),h=Di(),w=v.useRef("touch"),g=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(zk,{scope:n,value:r,disabled:o,textId:h,isSelected:u,onItemTextChange:v.useCallback(f=>{p(x=>x||((f==null?void 0:f.textContent)??"").trim())},[]),children:c.jsx(Wa.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:c.jsx(J.div,{role:"option","aria-labelledby":h,"data-highlighted":y?"":void 0,"aria-selected":u&&y,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:S,onFocus:X(s.onFocus,()=>m(!0)),onBlur:X(s.onBlur,()=>m(!1)),onClick:X(s.onClick,()=>{w.current!=="mouse"&&g()}),onPointerUp:X(s.onPointerUp,()=>{w.current==="mouse"&&g()}),onPointerDown:X(s.onPointerDown,f=>{w.current=f.pointerType}),onPointerMove:X(s.onPointerMove,f=>{var x;w.current=f.pointerType,o?(x=l.onItemLeave)==null||x.call(l):w.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(s.onPointerLeave,f=>{var x;f.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:X(s.onKeyDown,f=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&f.key===" "||(bk.includes(f.key)&&g(),f.key===" "&&f.preventDefault())})})})})});t0.displayName=ua;var qo="SelectItemText",n0=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Xn(qo,n),a=Zn(qo,n),l=e0(qo,n),u=Tk(qo,n),[d,p]=v.useState(null),y=ve(t,g=>p(g),l.onItemTextChange,g=>{var f;return(f=a.itemTextRefCallback)==null?void 0:f.call(a,g,l.value,l.disabled)}),m=d==null?void 0:d.textContent,S=v.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:h,onNativeOptionRemove:w}=u;return Ne(()=>(h(S),()=>w(S)),[h,w,S]),c.jsxs(c.Fragment,{children:[c.jsx(J.span,{id:l.textId,...i,ref:y}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Pr.createPortal(i.children,s.valueNode):null]})});n0.displayName=qo;var r0="SelectItemIndicator",o0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return e0(r0,n).isSelected?c.jsx(J.span,{"aria-hidden":!0,...r,ref:t}):null});o0.displayName=r0;var qu="SelectScrollUpButton",i0=v.forwardRef((e,t)=>{const n=Zn(qu,e.__scopeSelect),r=Cd(qu,e.__scopeSelect),[o,i]=v.useState(!1),s=ve(t,r.onScrollButtonChange);return Ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(a0,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});i0.displayName=qu;var Xu="SelectScrollDownButton",s0=v.forwardRef((e,t)=>{const n=Zn(Xu,e.__scopeSelect),r=Cd(Xu,e.__scopeSelect),[o,i]=v.useState(!1),s=ve(t,r.onScrollButtonChange);return Ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(a0,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});s0.displayName=Xu;var a0=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Zn("SelectScrollButton",n),s=v.useRef(null),a=Qa(n),l=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),Ne(()=>{var d;const u=a().find(p=>p.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),c.jsx(J.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{l()})})}),$k="SelectSeparator",l0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(J.div,{"aria-hidden":!0,...r,ref:t})});l0.displayName=$k;var Zu="SelectArrow",Bk=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ka(n),i=Xn(Zu,n),s=Zn(Zu,n);return i.open&&s.position==="popper"?c.jsx(xg,{...o,...r,ref:t}):null});Bk.displayName=Zu;var Uk="SelectBubbleInput",u0=v.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=v.useRef(null),i=ve(r,o),s=LN(t);return v.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&d){const p=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(p)}},[s,t]),c.jsx(J.select,{...n,style:{...pv,...n.style},ref:i,defaultValue:t})});u0.displayName=Uk;function c0(e){return e===""||e===void 0}function d0(e){const t=yt(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(s=>{const a=n.current+s;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function f0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Vk(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Vk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Hk=zy,p0=By,Wk=Vy,Qk=Hy,Kk=Wy,m0=Qy,Gk=qy,h0=Jy,v0=t0,Yk=n0,qk=o0,g0=i0,y0=s0,x0=l0;const Xk=Hk,Zk=Wk,w0=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(p0,{ref:r,className:ie("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(Qk,{asChild:!0,children:c.jsx(ed,{className:"h-4 w-4 opacity-50"})})]}));w0.displayName=p0.displayName;const S0=v.forwardRef(({className:e,...t},n)=>c.jsx(g0,{ref:n,className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(sS,{className:"h-4 w-4"})}));S0.displayName=g0.displayName;const C0=v.forwardRef(({className:e,...t},n)=>c.jsx(y0,{ref:n,className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(ed,{className:"h-4 w-4"})}));C0.displayName=y0.displayName;const E0=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>c.jsx(Kk,{children:c.jsxs(m0,{ref:o,className:ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(S0,{}),c.jsx(Gk,{className:ie("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(C0,{})]})}));E0.displayName=m0.displayName;const Jk=v.forwardRef(({className:e,...t},n)=>c.jsx(h0,{ref:n,className:ie("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Jk.displayName=h0.displayName;const bt=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(v0,{ref:r,className:ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(qk,{children:c.jsx(iS,{className:"h-4 w-4"})})}),c.jsx(Yk,{children:t})]}));bt.displayName=v0.displayName;const eP=v.forwardRef(({className:e,...t},n)=>c.jsx(x0,{ref:n,className:ie("-mx-1 my-1 h-px bg-muted",e),...t}));eP.displayName=x0.displayName;const tP=()=>{const{toast:e}=sv(),{ref:t,isVisible:n}=_o({threshold:.1}),[r,o]=v.useState({name:"",whatsapp:"",email:"",caseType:"",message:""}),i=s=>{if(s.preventDefault(),!r.name||!r.whatsapp||!r.caseType){e({title:"Campos obrigatórios",description:"Por favor, preencha todos os campos obrigatórios.",variant:"destructive"});return}const a=`Olá! Meu nome é ${r.name}. Tipo de caso: ${r.caseType} ${r.message} E-mail: ${r.email}`,l=`https://wa.me/551151991450?text=${encodeURIComponent(a)}`;window.open(l,"_blank"),e({title:"Redirecionando...",description:"Você será direcionado para o WhatsApp."}),o({name:"",whatsapp:"",email:"",caseType:"",message:""})};return c.jsx("section",{id:"contact",ref:t,className:`py-6 md:py-8 lg:py-12 bg-secondary/30 transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-10 lg:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Entre em contato"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Estamos prontos para ajudá-lo"})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 md:gap-8",children:[c.jsx(In,{className:"p-4 md:p-6 lg:p-8 bg-card border-border",children:c.jsxs("form",{onSubmit:i,className:"space-y-4 md:space-y-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"name",children:"Nome completo *"}),c.jsx(Ts,{id:"name",value:r.name,onChange:s=>o({...r,name:s.target.value}),placeholder:"Seu nome completo",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"whatsapp",children:"WhatsApp *"}),c.jsx(Ts,{id:"whatsapp",type:"tel",value:r.whatsapp,onChange:s=>o({...r,whatsapp:s.target.value}),placeholder:"(11) 5199-1450",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"email",children:"E-mail"}),c.jsx(Ts,{id:"email",type:"email",value:r.email,onChange:s=>o({...r,email:s.target.value}),placeholder:"seu@email.com"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"caseType",children:"Tipo de caso *"}),c.jsxs(Xk,{value:r.caseType,onValueChange:s=>o({...r,caseType:s}),children:[c.jsx(w0,{children:c.jsx(Zk,{placeholder:"Selecione o tipo de caso"})}),c.jsxs(E0,{className:"bg-popover",children:[c.jsx(bt,{value:"divorcio",children:"Divórcio"}),c.jsx(bt,{value:"separacao",children:"Separação de corpos"}),c.jsx(bt,{value:"uniao-estavel",children:"União estável"}),c.jsx(bt,{value:"pensao",children:"Pensão alimentícia"}),c.jsx(bt,{value:"guarda",children:"Guarda de filhos"}),c.jsx(bt,{value:"inventario",children:"Inventário"}),c.jsx(bt,{value:"paternidade",children:"Investigação de paternidade"}),c.jsx(bt,{value:"acordos",children:"Acordos de convivência"}),c.jsx(bt,{value:"doacoes",children:"Doações em vida"}),c.jsx(bt,{value:"outro",children:"Outro"})]})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"message",children:"Mensagem"}),c.jsx(Ny,{id:"message",value:r.message,onChange:s=>o({...r,message:s.target.value}),placeholder:"Descreva brevemente seu caso...",rows:4})]}),c.jsxs(Cr,{type:"submit",variant:"whatsapp",size:"lg",className:"w-full",children:[c.jsx(mS,{className:"h-5 w-5"}),"Enviar mensagem"]})]})}),c.jsxs("div",{className:"space-y-4 md:space-y-6",children:[c.jsx(In,{className:"p-4 md:p-6 bg-card border-border",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Lv,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Sigilo garantido"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Garantimos sigilo total e resposta rápida. Todas as informações são tratadas com confidencialidade absoluta."})]})]})}),c.jsx(In,{className:"p-4 md:p-6 bg-card border-border",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Dv,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Atendimento rápido"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Nossa equipe responde rapidamente para avaliar seu caso e oferecer as melhores soluções."}),c.jsx("a",{href:"tel:551151991450",className:"text-sm font-medium text-primary hover:underline",children:"(11) 5199-1450"})]})]})}),c.jsx(In,{className:"p-4 md:p-6 bg-card border-border",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(fS,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"E-mail profissional"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Prefere enviar um e-mail? Entre em contato conosco:"}),c.jsx("a",{className:"text-sm font-medium text-primary hover:underline",href:"mailto:contato@seuadvogado.com.br",children:"contato@seuadvogadoja.com.br"})]})]})})]})]})]})})})},nP=()=>c.jsx("footer",{className:"bg-primary text-primary-foreground py-6 md:py-8 lg:py-10",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"grid md:grid-cols-3 gap-6 md:gap-8 mb-6 md:mb-8",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[c.jsx("div",{className:"flex items-center justify-center w-10 h-10 rounded-full bg-primary-foreground/10",children:c.jsx("span",{className:"text-xl font-bold",children:"⚖️"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-bold",children:"Direito Civil"}),c.jsx("p",{className:"text-sm opacity-80",children:"Advocacia Especializada"})]})]}),c.jsx("p",{className:"opacity-80 text-lg",children:"Soluções jurídicas com excelência e humanização para você e sua família."})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4",children:"Serviços"}),c.jsxs("ul",{className:"space-y-2 text-sm opacity-80",children:[c.jsx("li",{children:"Divórcio e Separação"}),c.jsx("li",{children:"Guarda de Filhos"}),c.jsx("li",{children:"Pensão Alimentícia"}),c.jsx("li",{children:"Inventário"}),c.jsx("li",{children:"União Estável"})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4",children:"Contato"}),c.jsxs("ul",{className:"space-y-2 text-sm opacity-80",children:[c.jsx("li",{children:"WhatsApp: (11) 5199-1450"}),c.jsx("li",{children:"Email: contato@direitocivil.com.br"}),c.jsx("li",{children:"Atendimento 100% Online"})]})]})]}),c.jsxs("div",{className:"border-t border-primary-foreground/20 pt-8",children:[c.jsxs("p",{className:"text-sm text-center opacity-80",children:["© ",new Date().getFullYear()," Direito Civil - Advocacia Especializada. Todos os direitos reservados."]}),c.jsx("p",{className:"text-xs text-center opacity-60 mt-2",children:"Este site tem caráter meramente informativo, conforme o Código de Ética da OAB."})]})]})}),rP=()=>{const e=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsxs("button",{onClick:e,className:"fixed bottom-4 right-4 md:bottom-6 md:right-6 z-50 w-14 h-14 md:w-16 md:h-16 bg-[#25D366] hover:bg-[#20BA5A] text-white rounded-full shadow-lg hover:shadow-2xl transition-all duration-300 hover:scale-110 flex items-center justify-center animate-fade-in group","aria-label":"Contato via WhatsApp",children:[c.jsx(To,{className:"h-7 w-7 md:h-8 md:w-8 group-hover:rotate-3 transition-transform"}),c.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-red-500 rounded-full animate-pulse"})]})},oP=()=>c.jsxs("div",{className:"min-h-screen",children:[c.jsx(R2,{}),c.jsxs("main",{children:[c.jsx(A2,{}),c.jsx(F2,{}),c.jsx(rN,{}),c.jsx(oN,{}),c.jsx(NN,{}),c.jsx(tP,{})]}),c.jsx(nP,{}),c.jsx(rP,{})]}),iP=()=>{const e=Vg();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},sP=new $b,aP=()=>c.jsx(Ub,{client:sP,children:c.jsxs(vb,{children:[c.jsx(ZS,{}),c.jsx(jC,{}),c.jsx(P2,{children:c.jsxs(b2,{children:[c.jsx(Hu,{path:"/",element:c.jsx(oP,{})}),c.jsx(Hu,{path:"*",element:c.jsx(iP,{})})]})})]})});iv(document.getElementById("root")).render(c.jsx(aP,{}));