var CC=Object.defineProperty;var Gh=e=>{throw TypeError(e)};var EC=(e,t,r)=>t in e?CC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ln=(e,t,r)=>EC(e,typeof t!="symbol"?t+"":t,r),mu=(e,t,r)=>t.has(e)||Gh("Cannot "+r);var I=(e,t,r)=>(mu(e,t,"read from private field"),r?r.call(e):t.get(e)),Ee=(e,t,r)=>t.has(e)?Gh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),fe=(e,t,r,n)=>(mu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ht=(e,t,r)=>(mu(e,t,"access private method"),r);var Ni=(e,t,r,n)=>({set _(o){fe(e,t,o,r)},get _(){return I(e,t,n)}});function _C(e,t){for(var r=0;rn[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"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gg={exports:{}},vc={},Kg={exports:{}},me={};/** * @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 hi=Symbol.for("react.element"),kC=Symbol.for("react.portal"),TC=Symbol.for("react.fragment"),NC=Symbol.for("react.strict_mode"),RC=Symbol.for("react.profiler"),AC=Symbol.for("react.provider"),PC=Symbol.for("react.context"),jC=Symbol.for("react.forward_ref"),OC=Symbol.for("react.suspense"),IC=Symbol.for("react.memo"),MC=Symbol.for("react.lazy"),Kh=Symbol.iterator;function DC(e){return e===null||typeof e!="object"?null:(e=Kh&&e[Kh]||e["@@iterator"],typeof e=="function"?e:null)}var Qg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zg=Object.assign,Yg={};function ta(e,t,r){this.props=e,this.context=t,this.refs=Yg,this.updater=r||Qg}ta.prototype.isReactComponent={};ta.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")};ta.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xg(){}Xg.prototype=ta.prototype;function Qf(e,t,r){this.props=e,this.context=t,this.refs=Yg,this.updater=r||Qg}var Zf=Qf.prototype=new Xg;Zf.constructor=Qf;Zg(Zf,ta.prototype);Zf.isPureReactComponent=!0;var Qh=Array.isArray,Jg=Object.prototype.hasOwnProperty,Yf={current:null},ey={key:!0,ref:!0,__self:!0,__source:!0};function ty(e,t,r){var n,o={},s=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Jg.call(t,n)&&!ey.hasOwnProperty(n)&&(o[n]=t[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1>>1,ne=P[se];if(0>>1;seo(Ne,W))Feo(G,Ne)?(P[se]=G,P[Fe]=W,se=Fe):(P[se]=Ne,P[ie]=W,se=ie);else if(Feo(G,W))P[se]=G,P[Fe]=W,se=Fe;else break e}}return O}function o(P,O){var W=P.sortIndex-O.sortIndex;return W!==0?W:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var l=[],c=[],d=1,f=null,h=3,g=!1,b=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var O=r(c);O!==null;){if(O.callback===null)n(c);else if(O.startTime<=P)n(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=r(c)}}function S(P){if(v=!1,x(P),!b)if(r(l)!==null)b=!0,z(C);else{var O=r(c);O!==null&&J(S,O.startTime-P)}}function C(P,O){b=!1,v&&(v=!1,y(N),N=-1),g=!0;var W=h;try{for(x(O),f=r(l);f!==null&&(!(f.expirationTime>O)||P&&!B());){var se=f.callback;if(typeof se=="function"){f.callback=null,h=f.priorityLevel;var ne=se(f.expirationTime<=O);O=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===r(l)&&n(l),x(O)}else n(l);f=r(l)}if(f!==null)var le=!0;else{var ie=r(c);ie!==null&&J(S,ie.startTime-O),le=!1}return le}finally{f=null,h=W,g=!1}}var k=!1,_=null,N=-1,A=5,M=-1;function B(){return!(e.unstable_now()-MP||125se?(P.sortIndex=W,t(c,P),r(l)===null&&P===r(c)&&(v?(y(N),N=-1):v=!0,J(S,W-se))):(P.sortIndex=ne,t(l,P),b||g||(b=!0,z(C))),P},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(P){var O=h;return function(){var W=h;h=O;try{return P.apply(this,arguments)}finally{h=W}}}})(ay);sy.exports=ay;var GC=sy.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 KC=p,Gt=GC;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hd=Object.prototype.hasOwnProperty,QC=/^[: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]*$/,Yh={},Xh={};function ZC(e){return hd.call(Xh,e)?!0:hd.call(Yh,e)?!1:QC.test(e)?Xh[e]=!0:(Yh[e]=!0,!1)}function YC(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XC(e,t,r,n){if(t===null||typeof t>"u"||YC(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rt(e,t,r,n,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pt[e]=new Rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pt[t]=new Rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pt[e]=new Rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pt[e]=new Rt(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){pt[e]=new Rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pt[e]=new Rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pt[e]=new Rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pt[e]=new Rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pt[e]=new Rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ep=/[\-:]([a-z])/g;function tp(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(ep,tp);pt[t]=new Rt(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(ep,tp);pt[t]=new Rt(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(ep,tp);pt[t]=new Rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pt[e]=new Rt(e,1,!1,e.toLowerCase(),null,!1,!1)});pt.xlinkHref=new Rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pt[e]=new Rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function rp(e,t,r,n){var o=pt.hasOwnProperty(t)?pt[t]:null;(o!==null?o.type!==0:n||!(2i||o[a]!==s[i]){var l=` `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=i);break}}}finally{yu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ca(e):""}function JC(e){switch(e.tag){case 5:return Ca(e.type);case 16:return Ca("Lazy");case 13:return Ca("Suspense");case 19:return Ca("SuspenseList");case 0:case 2:case 15:return e=xu(e.type,!1),e;case 11:return e=xu(e.type.render,!1),e;case 1:return e=xu(e.type,!0),e;default:return""}}function yd(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 ss:return"Fragment";case os:return"Portal";case md:return"Profiler";case np:return"StrictMode";case vd:return"Suspense";case gd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cy:return(e.displayName||"Context")+".Consumer";case ly:return(e._context.displayName||"Context")+".Provider";case op:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sp:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return yd(e(t))}catch{}}return null}function eE(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 yd(t);case 8:return t===np?"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 ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tE(e){var t=dy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){e._valueTracker||(e._valueTracker=tE(e))}function fy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=dy(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function El(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 xd(e,t){var r=t.checked;return Ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function em(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ao(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function py(e,t){t=t.checked,t!=null&&rp(e,"checked",t,!1)}function wd(e,t){py(e,t);var r=ao(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bd(e,t.type,r):t.hasOwnProperty("defaultValue")&&bd(e,t.type,ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bd(e,t,r){(t!=="number"||El(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ea=Array.isArray;function vs(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ha(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Aa={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},rE=["Webkit","ms","Moz","O"];Object.keys(Aa).forEach(function(e){rE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Aa[t]=Aa[e]})});function gy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Aa.hasOwnProperty(e)&&Aa[e]?(""+t).trim():t+"px"}function yy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=gy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var nE=Ue({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 Ed(e,t){if(t){if(nE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function _d(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 kd=null;function ap(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Td=null,gs=null,ys=null;function om(e){if(e=gi(e)){if(typeof Td!="function")throw Error(F(280));var t=e.stateNode;t&&(t=bc(t),Td(e.stateNode,e.type,t))}}function xy(e){gs?ys?ys.push(e):ys=[e]:gs=e}function wy(){if(gs){var e=gs,t=ys;if(ys=gs=null,om(e),t)for(e=0;e>>=0,e===0?32:31-(hE(e)/mE|0)|0}var Oi=64,Ii=4194304;function _a(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 Nl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,s=e.pingedLanes,a=r&268435455;if(a!==0){var i=a&~o;i!==0?n=_a(i):(s&=a,s!==0&&(n=_a(s)))}else a=r&~o,a!==0?n=_a(a):s!==0&&(n=_a(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function mi(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kr(t),e[t]=r}function xE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=ja),pm=" ",hm=!1;function Vy(e,t){switch(e){case"keyup":return GE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function QE(e,t){switch(e){case"compositionend":return zy(t);case"keypress":return t.which!==32?null:(hm=!0,pm);case"textInput":return e=t.data,e===pm&&hm?null:e;default:return null}}function ZE(e,t){if(as)return e==="compositionend"||!hp&&Vy(e,t)?(e=Fy(),sl=dp=qn=null,as=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ym(r)}}function Wy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qy(){for(var e=window,t=El();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=El(e.document)}return t}function mp(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 s_(e){var t=qy(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Wy(r.ownerDocument.documentElement,r)){if(n!==null&&mp(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,s=Math.min(n.start,o);n=n.end===void 0?s:Math.min(n.end,o),!e.extend&&s>n&&(o=n,n=s,s=o),o=xm(r,s);var a=xm(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,is=null,Od=null,Ia=null,Id=!1;function wm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Id||is==null||is!==El(n)||(n=is,"selectionStart"in n&&mp(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ia&&Za(Ia,n)||(Ia=n,n=Pl(Od,"onSelect"),0us||(e.current=Vd[us],Vd[us]=null,us--)}function je(e,t){us++,Vd[us]=e.current,e.current=t}var io={},wt=ho(io),Dt=ho(!1),Lo=io;function Ls(e,t){var r=e.type.contextTypes;if(!r)return io;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in r)o[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Lt(e){return e=e.childContextTypes,e!=null}function Ol(){De(Dt),De(wt)}function Tm(e,t,r){if(wt.current!==io)throw Error(F(168));je(wt,t),je(Dt,r)}function tx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(F(108,eE(e)||"Unknown",o));return Ue({},r,n)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||io,Lo=wt.current,je(wt,e),je(Dt,Dt.current),!0}function Nm(e,t,r){var n=e.stateNode;if(!n)throw Error(F(169));r?(e=tx(e,t,Lo),n.__reactInternalMemoizedMergedChildContext=e,De(Dt),De(wt),je(wt,e)):De(Dt),je(Dt,r)}var pn=null,Sc=!1,Ou=!1;function rx(e){pn===null?pn=[e]:pn.push(e)}function g_(e){Sc=!0,rx(e)}function mo(){if(!Ou&&pn!==null){Ou=!0;var e=0,t=Te;try{var r=pn;for(Te=1;e>=a,o-=a,gn=1<<32-kr(t)+o|r<N?(A=_,_=null):A=_.sibling;var M=h(y,_,x[N],S);if(M===null){_===null&&(_=A);break}e&&_&&M.alternate===null&&t(y,_),m=s(M,m,N),k===null?C=M:k.sibling=M,k=M,_=A}if(N===x.length)return r(y,_),Ve&&So(y,N),C;if(_===null){for(;NN?(A=_,_=null):A=_.sibling;var B=h(y,_,M.value,S);if(B===null){_===null&&(_=A);break}e&&_&&B.alternate===null&&t(y,_),m=s(B,m,N),k===null?C=B:k.sibling=B,k=B,_=A}if(M.done)return r(y,_),Ve&&So(y,N),C;if(_===null){for(;!M.done;N++,M=x.next())M=f(y,M.value,S),M!==null&&(m=s(M,m,N),k===null?C=M:k.sibling=M,k=M);return Ve&&So(y,N),C}for(_=n(y,_);!M.done;N++,M=x.next())M=g(_,y,N,M.value,S),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?N:M.key),m=s(M,m,N),k===null?C=M:k.sibling=M,k=M);return e&&_.forEach(function(D){return t(y,D)}),Ve&&So(y,N),C}function w(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===ss&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ai:e:{for(var C=x.key,k=m;k!==null;){if(k.key===C){if(C=x.type,C===ss){if(k.tag===7){r(y,k.sibling),m=o(k,x.props.children),m.return=y,y=m;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Dn&&Pm(C)===k.type){r(y,k.sibling),m=o(k,x.props),m.ref=pa(y,k,x),m.return=y,y=m;break e}r(y,k);break}else t(y,k);k=k.sibling}x.type===ss?(m=Do(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=pl(x.type,x.key,x.props,null,y.mode,S),S.ref=pa(y,m,x),S.return=y,y=S)}return a(y);case os:e:{for(k=x.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){r(y,m.sibling),m=o(m,x.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=zu(x,y.mode,S),m.return=y,y=m}return a(y);case Dn:return k=x._init,w(y,m,k(x._payload),S)}if(Ea(x))return b(y,m,x,S);if(la(x))return v(y,m,x,S);zi(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(r(y,m.sibling),m=o(m,x),m.return=y,y=m):(r(y,m),m=Vu(x,y.mode,S),m.return=y,y=m),a(y)):r(y,m)}return w}var $s=ax(!0),ix=ax(!1),Ll=ho(null),Fl=null,ps=null,xp=null;function wp(){xp=ps=Fl=null}function bp(e){var t=Ll.current;De(Ll),e._currentValue=t}function Ud(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ws(e,t){Fl=e,xp=ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mt=!0),e.firstContext=null)}function ir(e){var t=e._currentValue;if(xp!==e)if(e={context:e,memoizedValue:t,next:null},ps===null){if(Fl===null)throw Error(F(308));ps=e,Fl.dependencies={lanes:0,firstContext:e}}else ps=ps.next=e;return t}var _o=null;function Sp(e){_o===null?_o=[e]:_o.push(e)}function lx(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Sp(t)):(r.next=o.next,o.next=r),t.interleaved=r,Sn(e,n)}function Sn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ln=!1;function Cp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cx(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,be&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Sn(e,r)}return o=n.interleaved,o===null?(t.next=t,Sp(n)):(t.next=o.next,o.next=t),n.interleaved=t,Sn(e,r)}function il(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lp(e,r)}}function jm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?o=s=a:s=s.next=a,r=r.next}while(r!==null);s===null?o=s=t:s=s.next=t}else o=s=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function $l(e,t,r,n){var o=e.updateQueue;Ln=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,c=l.next;l.next=null,a===null?s=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==a&&(i===null?d.firstBaseUpdate=c:i.next=c,d.lastBaseUpdate=l))}if(s!==null){var f=o.baseState;a=0,d=c=l=null,i=s;do{var h=i.lane,g=i.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var b=e,v=i;switch(h=t,g=r,v.tag){case 1:if(b=v.payload,typeof b=="function"){f=b.call(g,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(g,f,h):b,h==null)break e;f=Ue({},f,h);break e;case 2:Ln=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[i]:h.push(i))}else g={eventTime:g,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(c=d=g,l=f):d=d.next=g,a|=h;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;h=i,i=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Vo|=a,e.lanes=a,e.memoizedState=f}}function Om(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Mu.transition;Mu.transition={};try{e(!1),t()}finally{Te=r,Mu.transition=n}}function kx(){return lr().memoizedState}function b_(e,t,r){var n=ro(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Tx(e))Nx(t,r);else if(r=lx(e,t,r,n),r!==null){var o=Tt();Tr(r,e,n,o),Rx(r,t,n)}}function S_(e,t,r){var n=ro(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Tx(e))Nx(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,i=s(a,r);if(o.hasEagerState=!0,o.eagerState=i,Nr(i,a)){var l=t.interleaved;l===null?(o.next=o,Sp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=lx(e,t,o,n),r!==null&&(o=Tt(),Tr(r,e,n,o),Rx(r,t,n))}}function Tx(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Nx(e,t){Ma=zl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Rx(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lp(e,r)}}var Bl={readContext:ir,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},C_={readContext:ir,useCallback:function(e,t){return Fr().memoizedState=[e,t===void 0?null:t],e},useContext:ir,useEffect:Mm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,cl(4194308,4,bx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return cl(4,2,e,t)},useMemo:function(e,t){var r=Fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=b_.bind(null,Be,e),[n.memoizedState,e]},useRef:function(e){var t=Fr();return e={current:e},t.memoizedState=e},useState:Im,useDebugValue:Pp,useDeferredValue:function(e){return Fr().memoizedState=e},useTransition:function(){var e=Im(!1),t=e[0];return e=w_.bind(null,e[1]),Fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Be,o=Fr();if(Ve){if(r===void 0)throw Error(F(407));r=r()}else{if(r=t(),ct===null)throw Error(F(349));$o&30||px(n,t,r)}o.memoizedState=r;var s={value:r,getSnapshot:t};return o.queue=s,Mm(mx.bind(null,n,s,e),[e]),n.flags|=2048,oi(9,hx.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Fr(),t=ct.identifierPrefix;if(Ve){var r=yn,n=gn;r=(n&~(1<<32-kr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ri++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Br]=t,e[Ja]=n,$x(e,t,!1,!1),t.stateNode=e;e:{switch(a=_d(r,n),r){case"dialog":Ie("cancel",e),Ie("close",e),o=n;break;case"iframe":case"object":case"embed":Ie("load",e),o=n;break;case"video":case"audio":for(o=0;oBs&&(t.flags|=128,n=!0,ha(s,!1),t.lanes=4194304)}else{if(!n)if(e=Vl(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ha(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Ve)return vt(t),null}else 2*Qe()-s.renderingStartTime>Bs&&r!==1073741824&&(t.flags|=128,n=!0,ha(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(r=s.last,r!==null?r.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ze.current,je(ze,n?r&1|2:r&1),t):(vt(t),null);case 22:case 23:return Lp(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Vt&1073741824&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function P_(e,t){switch(gp(t),t.tag){case 1:return Lt(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vs(),De(Dt),De(wt),kp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _p(t),null;case 13:if(De(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(ze),null;case 4:return Vs(),null;case 10:return bp(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var Ui=!1,yt=!1,j_=typeof WeakSet=="function"?WeakSet:Set,Y=null;function hs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){qe(e,t,n)}else r.current=null}function Xd(e,t,r){try{r()}catch(n){qe(e,t,n)}}var qm=!1;function O_(e,t){if(Md=Rl,e=qy(),mp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var a=0,i=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==r||o!==0&&f.nodeType!==3||(i=a+o),f!==s||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===r&&++c===o&&(i=a),h===s&&++d===n&&(l=a),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}r=i===-1||l===-1?null:{start:i,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dd={focusedElem:e,selectionRange:r},Rl=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,w=b.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:gr(t.type,v),w);y.__reactInternalSnapshotBeforeUpdate=m}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(F(163))}}catch(S){qe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return b=qm,qm=!1,b}function Da(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Xd(t,r,s)}o=o.next}while(o!==n)}}function _c(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Jd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Bx(e){var t=e.alternate;t!==null&&(e.alternate=null,Bx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Br],delete t[Ja],delete t[$d],delete t[m_],delete t[v_])),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 Ux(e){return e.tag===5||e.tag===3||e.tag===4}function Gm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ux(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 ef(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=jl));else if(n!==4&&(e=e.child,e!==null))for(ef(e,t,r),e=e.sibling;e!==null;)ef(e,t,r),e=e.sibling}function tf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(tf(e,t,r),e=e.sibling;e!==null;)tf(e,t,r),e=e.sibling}var ut=null,br=!1;function Pn(e,t,r){for(r=r.child;r!==null;)Hx(e,t,r),r=r.sibling}function Hx(e,t,r){if(Kr&&typeof Kr.onCommitFiberUnmount=="function")try{Kr.onCommitFiberUnmount(gc,r)}catch{}switch(r.tag){case 5:yt||hs(r,t);case 6:var n=ut,o=br;ut=null,Pn(e,t,r),ut=n,br=o,ut!==null&&(br?(e=ut,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ut.removeChild(r.stateNode));break;case 18:ut!==null&&(br?(e=ut,r=r.stateNode,e.nodeType===8?ju(e.parentNode,r):e.nodeType===1&&ju(e,r),Ka(e)):ju(ut,r.stateNode));break;case 4:n=ut,o=br,ut=r.stateNode.containerInfo,br=!0,Pn(e,t,r),ut=n,br=o;break;case 0:case 11:case 14:case 15:if(!yt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Xd(r,t,a),o=o.next}while(o!==n)}Pn(e,t,r);break;case 1:if(!yt&&(hs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(i){qe(r,t,i)}Pn(e,t,r);break;case 21:Pn(e,t,r);break;case 22:r.mode&1?(yt=(n=yt)||r.memoizedState!==null,Pn(e,t,r),yt=n):Pn(e,t,r);break;default:Pn(e,t,r)}}function Km(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new j_),t.forEach(function(n){var o=B_.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function hr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~s}if(n=o,n=Qe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*M_(n/1960))-n,10e?16:e,Gn===null)var n=!1;else{if(e=Gn,Gn=null,Wl=0,be&6)throw Error(F(331));var o=be;for(be|=4,Y=e.current;Y!==null;){var s=Y,a=s.child;if(Y.flags&16){var i=s.deletions;if(i!==null){for(var l=0;lQe()-Mp?Mo(e,0):Ip|=r),Ft(e,t)}function Xx(e,t){t===0&&(e.mode&1?(t=Ii,Ii<<=1,!(Ii&130023424)&&(Ii=4194304)):t=1);var r=Tt();e=Sn(e,t),e!==null&&(mi(e,t,r),Ft(e,r))}function z_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Xx(e,r)}function B_(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(F(314))}n!==null&&n.delete(t),Xx(e,r)}var Jx;Jx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dt.current)Mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Mt=!1,R_(e,t,r);Mt=!!(e.flags&131072)}else Mt=!1,Ve&&t.flags&1048576&&nx(t,Dl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ul(e,t),e=t.pendingProps;var o=Ls(t,wt.current);ws(t,r),o=Np(null,t,n,e,o,r);var s=Rp();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,Lt(n)?(s=!0,Il(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Cp(t),o.updater=Ec,t.stateNode=o,o._reactInternals=t,Wd(t,n,e,r),t=Kd(null,t,n,!0,s,r)):(t.tag=0,Ve&&s&&vp(t),Ct(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=H_(n),e=gr(n,e),o){case 0:t=Gd(null,t,n,e,r);break e;case 1:t=Um(null,t,n,e,r);break e;case 11:t=zm(null,t,n,e,r);break e;case 14:t=Bm(null,t,n,gr(n.type,e),r);break e}throw Error(F(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gr(n,o),Gd(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gr(n,o),Um(e,t,n,o,r);case 3:e:{if(Dx(t),e===null)throw Error(F(387));n=t.pendingProps,s=t.memoizedState,o=s.element,cx(e,t),$l(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=zs(Error(F(423)),t),t=Hm(e,t,n,r,o);break e}else if(n!==o){o=zs(Error(F(424)),t),t=Hm(e,t,n,r,o);break e}else for(Ut=Jn(t.stateNode.containerInfo.firstChild),Wt=t,Ve=!0,Sr=null,r=ix(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Fs(),n===o){t=Cn(e,t,r);break e}Ct(e,t,n,r)}t=t.child}return t;case 5:return ux(t),e===null&&Bd(t),n=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,Ld(n,o)?a=null:s!==null&&Ld(n,s)&&(t.flags|=32),Mx(e,t),Ct(e,t,a,r),t.child;case 6:return e===null&&Bd(t),null;case 13:return Lx(e,t,r);case 4:return Ep(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$s(t,null,n,r):Ct(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gr(n,o),zm(e,t,n,o,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,je(Ll,n._currentValue),n._currentValue=a,s!==null)if(Nr(s.value,a)){if(s.children===o.children&&!Dt.current){t=Cn(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){a=s.child;for(var l=i.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=xn(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Ud(s.return,r,t),i.lanes|=r;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(F(341));a.lanes|=r,i=a.alternate,i!==null&&(i.lanes|=r),Ud(a,r,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Ct(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,ws(t,r),o=ir(o),n=n(o),t.flags|=1,Ct(e,t,n,r),t.child;case 14:return n=t.type,o=gr(n,t.pendingProps),o=gr(n.type,o),Bm(e,t,n,o,r);case 15:return Ox(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gr(n,o),ul(e,t),t.tag=1,Lt(n)?(e=!0,Il(t)):e=!1,ws(t,r),Ax(t,n,o),Wd(t,n,o,r),Kd(null,t,n,!0,e,r);case 19:return Fx(e,t,r);case 22:return Ix(e,t,r)}throw Error(F(156,t.tag))};function e0(e,t){return Ty(e,t)}function U_(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function or(e,t,r,n){return new U_(e,t,r,n)}function $p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function H_(e){if(typeof e=="function")return $p(e)?1:0;if(e!=null){if(e=e.$$typeof,e===op)return 11;if(e===sp)return 14}return 2}function no(e,t){var r=e.alternate;return r===null?(r=or(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function pl(e,t,r,n,o,s){var a=2;if(n=e,typeof e=="function")$p(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ss:return Do(r.children,o,s,t);case np:a=8,o|=8;break;case md:return e=or(12,r,t,o|2),e.elementType=md,e.lanes=s,e;case vd:return e=or(13,r,t,o),e.elementType=vd,e.lanes=s,e;case gd:return e=or(19,r,t,o),e.elementType=gd,e.lanes=s,e;case uy:return Tc(r,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ly:a=10;break e;case cy:a=9;break e;case op:a=11;break e;case sp:a=14;break e;case Dn:a=16,n=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=or(a,r,t,o),t.elementType=e,t.type=n,t.lanes=s,t}function Do(e,t,r,n){return e=or(7,e,n,t),e.lanes=r,e}function Tc(e,t,r,n){return e=or(22,e,n,t),e.elementType=uy,e.lanes=r,e.stateNode={isHidden:!1},e}function Vu(e,t,r){return e=or(6,e,null,t),e.lanes=r,e}function zu(e,t,r){return t=or(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function W_(e,t,r,n,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=bu(0),this.expirationTimes=bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bu(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vp(e,t,r,n,o,s,a,i,l){return e=new W_(e,t,r,i,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=or(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cp(s),e}function q_(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o0)}catch(e){console.error(e)}}o0(),oy.exports=Zt;var vo=oy.exports;const s0=ea(vo);var a0,rv=vo;a0=rv.createRoot,rv.hydrateRoot;const Y_=1,X_=1e6;let Bu=0;function J_(){return Bu=(Bu+1)%Number.MAX_SAFE_INTEGER,Bu.toString()}const Uu=new Map,nv=e=>{if(Uu.has(e))return;const t=setTimeout(()=>{Uu.delete(e),$a({type:"REMOVE_TOAST",toastId:e})},X_);Uu.set(e,t)},ek=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Y_)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?nv(r):e.toasts.forEach(n=>{nv(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},hl=[];let ml={toasts:[]};function $a(e){ml=ek(ml,e),hl.forEach(t=>{t(ml)})}function i0({...e}){const t=J_(),r=o=>$a({type:"UPDATE_TOAST",toast:{...o,id:t}}),n=()=>$a({type:"DISMISS_TOAST",toastId:t});return $a({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||n()}}}),{id:t,dismiss:n,update:r}}function tk(){const[e,t]=p.useState(ml);return p.useEffect(()=>(hl.push(t),()=>{const r=hl.indexOf(t);r>-1&&hl.splice(r,1)}),[e]),{...e,toast:i0,dismiss:r=>$a({type:"DISMISS_TOAST",toastId:r})}}function te(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ov(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l0(...e){return t=>{let r=!1;const n=e.map(o=>{const s=ov(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o{const{children:a,...i}=s,l=p.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(s){const a=p.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function Xt(e,t=[]){let r=[];function n(s,a){const i=p.createContext(a),l=r.length;r=[...r,a];const c=f=>{var y;const{scope:h,children:g,...b}=f,v=((y=h==null?void 0:h[e])==null?void 0:y[l])||i,w=p.useMemo(()=>b,Object.values(b));return u.jsx(v.Provider,{value:w,children:g})};c.displayName=s+"Provider";function d(f,h){var v;const g=((v=h==null?void 0:h[e])==null?void 0:v[l])||i,b=p.useContext(g);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=r.map(a=>p.createContext(a));return function(i){const l=(i==null?void 0:i[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,nk(o,...t)]}function nk(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=n.reduce((i,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...i,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Us(e){const t=ok(e),r=p.forwardRef((n,o)=>{const{children:s,...a}=n,i=p.Children.toArray(s),l=i.find(ak);if(l){const c=l.props.children,d=i.map(f=>f===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return u.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var c0=Us("Slot");function ok(e){const t=p.forwardRef((r,n)=>{const{children:o,...s}=r;if(p.isValidElement(o)){const a=lk(o),i=ik(s,o.props);return o.type!==p.Fragment&&(i.ref=n?l0(n,a):a),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u0=Symbol("radix.slottable");function sk(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=u0,t}function ak(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u0}function ik(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function lk(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function jc(e){const t=e+"CollectionProvider",[r,n]=Xt(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:w,children:y}=v,m=R.useRef(null),x=R.useRef(new Map).current;return u.jsx(o,{scope:w,itemMap:x,collectionRef:m,children:y})};a.displayName=t;const i=e+"CollectionSlot",l=Us(i),c=R.forwardRef((v,w)=>{const{scope:y,children:m}=v,x=s(i,y),S=ye(w,x.collectionRef);return u.jsx(l,{ref:S,children:m})});c.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Us(d),g=R.forwardRef((v,w)=>{const{scope:y,children:m,...x}=v,S=R.useRef(null),C=ye(w,S),k=s(d,y);return R.useEffect(()=>(k.itemMap.set(S,{ref:S,...x}),()=>void k.itemMap.delete(S))),u.jsx(h,{[f]:"",ref:C,children:m})});g.displayName=d;function b(v){const w=s(e+"CollectionConsumer",v);return R.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const x=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((k,_)=>x.indexOf(k.ref.current)-x.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:a,Slot:c,ItemSlot:g},b,n]}var ck=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=ck.reduce((e,t)=>{const r=Us(`Primitive.${t}`),n=p.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function d0(e,t){e&&vo.flushSync(()=>e.dispatchEvent(t))}function Je(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function uk(e,t=globalThis==null?void 0:globalThis.document){const r=Je(e);p.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var dk="DismissableLayer",af="dismissableLayer.update",fk="dismissableLayer.pointerDownOutside",pk="dismissableLayer.focusOutside",sv,f0=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xi=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,c=p.useContext(f0),[d,f]=p.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=p.useState({}),b=ye(t,_=>f(_)),v=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(w),m=d?v.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=m>=y,C=mk(_=>{const N=_.target,A=[...c.branches].some(M=>M.contains(N));!S||A||(o==null||o(_),a==null||a(_),_.defaultPrevented||i==null||i())},h),k=vk(_=>{const N=_.target;[...c.branches].some(M=>M.contains(N))||(s==null||s(_),a==null||a(_),_.defaultPrevented||i==null||i())},h);return uk(_=>{m===c.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},h),p.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(sv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),av(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=sv)}},[d,h,r,c]),p.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),av())},[d,c]),p.useEffect(()=>{const _=()=>g({});return document.addEventListener(af,_),()=>document.removeEventListener(af,_)},[]),u.jsx(oe.div,{...l,ref:b,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,k.onFocusCapture),onBlurCapture:te(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,C.onPointerDownCapture)})});xi.displayName=dk;var hk="DismissableLayerBranch",p0=p.forwardRef((e,t)=>{const r=p.useContext(f0),n=p.useRef(null),o=ye(t,n);return p.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),u.jsx(oe.div,{...e,ref:o})});p0.displayName=hk;function mk(e,t=globalThis==null?void 0:globalThis.document){const r=Je(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=i=>{if(i.target&&!n.current){let l=function(){h0(fk,r,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vk(e,t=globalThis==null?void 0:globalThis.document){const r=Je(e),n=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!n.current&&h0(pk,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function av(){const e=new CustomEvent(af);document.dispatchEvent(e)}function h0(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?d0(o,s):o.dispatchEvent(s)}var gk=xi,yk=p0,Ge=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},xk="Portal",Oc=p.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,s]=p.useState(!1);Ge(()=>s(!0),[]);const a=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?s0.createPortal(u.jsx(oe.div,{...n,ref:t}),a):null});Oc.displayName=xk;function wk(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Jt=e=>{const{present:t,children:r}=e,n=bk(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),s=ye(n.ref,Sk(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:s}):null};Jt.displayName="Presence";function bk(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),s=p.useRef("none"),a=e?"mounted":"unmounted",[i,l]=wk(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=qi(n.current);s.current=i==="mounted"?c:"none"},[i]),Ge(()=>{const c=n.current,d=o.current;if(d!==e){const h=s.current,g=qi(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ge(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=g=>{const v=qi(n.current).includes(g.animationName);if(g.target===t&&v&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=g=>{g.target===t&&(s.current=qi(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:p.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function qi(e){return(e==null?void 0:e.animationName)||"none"}function Sk(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ck=Jf[" useInsertionEffect ".trim().toString()]||Ge;function Jr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=Ek({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${i?"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=i},[i,n])}const c=p.useCallback(d=>{var f;if(i){const h=_k(d)?d(e):d;h!==e&&((f=a.current)==null||f.call(a,h))}else s(d)},[i,e,s,a]);return[l,c]}function Ek({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),s=p.useRef(t);return Ck(()=>{s.current=t},[t]),p.useEffect(()=>{var a;o.current!==r&&((a=s.current)==null||a.call(s,r),o.current=r)},[r,o]),[r,n,s]}function _k(e){return typeof e=="function"}var m0=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"}),kk="VisuallyHidden",Ic=p.forwardRef((e,t)=>u.jsx(oe.span,{...e,ref:t,style:{...m0,...e.style}}));Ic.displayName=kk;var Tk=Ic,Hp="ToastProvider",[Wp,Nk,Rk]=jc("Toast"),[v0,XM]=Xt("Toast",[Rk]),[Ak,Mc]=v0(Hp),g0=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[i,l]=p.useState(null),[c,d]=p.useState(0),f=p.useRef(!1),h=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hp}\`. Expected non-empty \`string\`.`),u.jsx(Wp.Provider,{scope:t,children:u.jsx(Ak,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:i,onViewportChange:l,onToastAdd:p.useCallback(()=>d(g=>g+1),[]),onToastRemove:p.useCallback(()=>d(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:a})})};g0.displayName=Hp;var y0="ToastViewport",Pk=["F8"],lf="toast.viewportPause",cf="toast.viewportResume",x0=p.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=Pk,label:o="Notifications ({hotkey})",...s}=e,a=Mc(y0,r),i=Nk(r),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=ye(t,f,a.onViewportChange),g=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=a.toastCount>0;p.useEffect(()=>{const w=y=>{var x;n.length!==0&&n.every(S=>y[S]||y.code===S)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),p.useEffect(()=>{const w=l.current,y=f.current;if(b&&w&&y){const m=()=>{if(!a.isClosePausedRef.current){const k=new CustomEvent(lf);y.dispatchEvent(k),a.isClosePausedRef.current=!0}},x=()=>{if(a.isClosePausedRef.current){const k=new CustomEvent(cf);y.dispatchEvent(k),a.isClosePausedRef.current=!1}},S=k=>{!w.contains(k.relatedTarget)&&x()},C=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",x)}}},[b,a.isClosePausedRef]);const v=p.useCallback(({tabbingDirection:w})=>{const m=i().map(x=>{const S=x.ref.current,C=[S,...Hk(S)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?m.reverse():m).flat()},[i]);return p.useEffect(()=>{const w=f.current;if(w){const y=m=>{var C,k,_;const x=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!x){const N=document.activeElement,A=m.shiftKey;if(m.target===w&&A){(C=c.current)==null||C.focus();return}const D=v({tabbingDirection:A?"backwards":"forwards"}),U=D.findIndex(L=>L===N);Hu(D.slice(U+1))?m.preventDefault():A?(k=c.current)==null||k.focus():(_=d.current)==null||_.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[i,v]),u.jsxs(yk,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(uf,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});Hu(w)}}),u.jsx(Wp.Slot,{scope:r,children:u.jsx(oe.ol,{tabIndex:-1,...s,ref:h})}),b&&u.jsx(uf,{ref:d,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});Hu(w)}})]})});x0.displayName=y0;var w0="ToastFocusProxy",uf=p.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,s=Mc(w0,r);return u.jsx(Ic,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const i=a.relatedTarget;!((c=s.viewport)!=null&&c.contains(i))&&n()}})});uf.displayName=w0;var wi="Toast",jk="toast.swipeStart",Ok="toast.swipeMove",Ik="toast.swipeCancel",Mk="toast.swipeEnd",b0=p.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:s,...a}=e,[i,l]=Jr({prop:n,defaultProp:o??!0,onChange:s,caller:wi});return u.jsx(Jt,{present:r||i,children:u.jsx(Fk,{open:i,...a,ref:t,onClose:()=>l(!1),onPause:Je(e.onPause),onResume:Je(e.onResume),onSwipeStart:te(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:te(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:te(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:te(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});b0.displayName=wi;var[Dk,Lk]=v0(wi,{onClose(){}}),Fk=p.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:i,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:g,...b}=e,v=Mc(wi,r),[w,y]=p.useState(null),m=ye(t,L=>y(L)),x=p.useRef(null),S=p.useRef(null),C=o||v.duration,k=p.useRef(0),_=p.useRef(C),N=p.useRef(0),{onToastAdd:A,onToastRemove:M}=v,B=Je(()=>{var X;(w==null?void 0:w.contains(document.activeElement))&&((X=v.viewport)==null||X.focus()),a()}),D=p.useCallback(L=>{!L||L===1/0||(window.clearTimeout(N.current),k.current=new Date().getTime(),N.current=window.setTimeout(B,L))},[B]);p.useEffect(()=>{const L=v.viewport;if(L){const X=()=>{D(_.current),c==null||c()},z=()=>{const J=new Date().getTime()-k.current;_.current=_.current-J,window.clearTimeout(N.current),l==null||l()};return L.addEventListener(lf,z),L.addEventListener(cf,X),()=>{L.removeEventListener(lf,z),L.removeEventListener(cf,X)}}},[v.viewport,C,l,c,D]),p.useEffect(()=>{s&&!v.isClosePausedRef.current&&D(C)},[s,C,v.isClosePausedRef,D]),p.useEffect(()=>(A(),()=>M()),[A,M]);const U=p.useMemo(()=>w?N0(w):null,[w]);return v.viewport?u.jsxs(u.Fragment,{children:[U&&u.jsx($k,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),u.jsx(Dk,{scope:r,onClose:B,children:vo.createPortal(u.jsx(Wp.ItemSlot,{scope:r,children:u.jsx(gk,{asChild:!0,onEscapeKeyDown:te(i,()=>{v.isFocusedToastEscapeKeyDownRef.current||B(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(oe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:te(e.onKeyDown,L=>{L.key==="Escape"&&(i==null||i(L.nativeEvent),L.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:te(e.onPointerDown,L=>{L.button===0&&(x.current={x:L.clientX,y:L.clientY})}),onPointerMove:te(e.onPointerMove,L=>{if(!x.current)return;const X=L.clientX-x.current.x,z=L.clientY-x.current.y,J=!!S.current,P=["left","right"].includes(v.swipeDirection),O=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,W=P?O(0,X):0,se=P?0:O(0,z),ne=L.pointerType==="touch"?10:2,le={x:W,y:se},ie={originalEvent:L,delta:le};J?(S.current=le,Gi(Ok,f,ie,{discrete:!1})):iv(le,v.swipeDirection,ne)?(S.current=le,Gi(jk,d,ie,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(X)>ne||Math.abs(z)>ne)&&(x.current=null)}),onPointerUp:te(e.onPointerUp,L=>{const X=S.current,z=L.target;if(z.hasPointerCapture(L.pointerId)&&z.releasePointerCapture(L.pointerId),S.current=null,x.current=null,X){const J=L.currentTarget,P={originalEvent:L,delta:X};iv(X,v.swipeDirection,v.swipeThreshold)?Gi(Mk,g,P,{discrete:!0}):Gi(Ik,h,P,{discrete:!0}),J.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),$k=e=>{const{__scopeToast:t,children:r,...n}=e,o=Mc(wi,t),[s,a]=p.useState(!1),[i,l]=p.useState(!1);return Bk(()=>a(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),i?null:u.jsx(Oc,{asChild:!0,children:u.jsx(Ic,{...n,children:s&&u.jsxs(u.Fragment,{children:[o.label," ",r]})})})},Vk="ToastTitle",S0=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(oe.div,{...n,ref:t})});S0.displayName=Vk;var zk="ToastDescription",C0=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(oe.div,{...n,ref:t})});C0.displayName=zk;var E0="ToastAction",_0=p.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(T0,{altText:r,asChild:!0,children:u.jsx(qp,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${E0}\`. Expected non-empty \`string\`.`),null)});_0.displayName=E0;var k0="ToastClose",qp=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=Lk(k0,r);return u.jsx(T0,{asChild:!0,children:u.jsx(oe.button,{type:"button",...n,ref:t,onClick:te(e.onClick,o.onClose)})})});qp.displayName=k0;var T0=p.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return u.jsx(oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function N0(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Uk(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...N0(n))}}),t}function Gi(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?d0(o,s):o.dispatchEvent(s)}var iv=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),s=n>o;return t==="left"||t==="right"?s&&n>r:!s&&o>r};function Bk(e=()=>{}){const t=Je(e);Ge(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Uk(e){return e.nodeType===e.ELEMENT_NODE}function Hk(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Hu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Wk=g0,R0=x0,A0=b0,P0=S0,j0=C0,O0=_0,I0=qp;function M0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=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,cv=D0,Gp=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return cv(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(c=>{const d=r==null?void 0:r[c],f=s==null?void 0:s[c];if(d===null)return null;const h=lv(d)||lv(f);return o[c][h]}),i=r&&Object.entries(r).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:h,...g}=d;return Object.entries(g).every(b=>{let[v,w]=b;return Array.isArray(w)?w.includes({...s,...i}[v]):{...s,...i}[v]===w})?[...c,f,h]:c},[]);return cv(e,a,l,r==null?void 0:r.class,r==null?void 0:r.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 qk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),L0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).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 Gk={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 Kk=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:a,...i},l)=>p.createElement("svg",{ref:l,...Gk,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:L0("lucide",o),...i},[...a.map(([c,d])=>p.createElement(c,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Le=(e,t)=>{const r=p.forwardRef(({className:n,...o},s)=>p.createElement(Kk,{ref:s,iconNode:t,className:L0(`lucide-${qk(e)}`,n),...o}));return r.displayName=`${e}`,r};/** * @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 Qk=Le("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 Zk=Le("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @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 Kp=Le("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** * @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 Yk=Le("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @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 F0=Le("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 Qp=Le("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 Xk=Le("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 $0=Le("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @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 Jk=Le("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zp=Le("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 eT=Le("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 tT=Le("FileCheck",[["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:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** * @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 rT=Le("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 nT=Le("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 Yp=Le("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 df=Le("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 V0=Le("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 oT=Le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=Le("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 Kl=Le("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 B0=Le("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 sT=Le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @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 aT=Le("UserX",[["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"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/** * @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 U0=Le("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 H0=Le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xp="-",iT=e=>{const t=cT(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(Xp);return i[0]===""&&i.length!==1&&i.shift(),W0(i,t)||lT(a)},getConflictingClassGroupIds:(a,i)=>{const l=r[a]||[];return i&&n[a]?[...l,...n[a]]:l}}},W0=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?W0(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Xp);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},uv=/^\[(.+)\]$/,lT=e=>{if(uv.test(e)){const t=uv.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},cT=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return dT(Object.entries(e.classGroups),r).forEach(([s,a])=>{ff(a,n,s,t)}),n},ff=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:dv(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(uT(o)){ff(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,a])=>{ff(a,dv(t,s),r,n)})})},dv=(e,t)=>{let r=e;return t.split(Xp).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},uT=e=>e.isThemeGetter,dT=(e,t)=>t?e.map(([r,n])=>{const o=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,i])=>[t+a,i])):s);return[r,o]}):e,fT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){r.has(s)?r.set(s,a):o(s,a)}}},q0="!",pT=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],s=t.length,a=i=>{const l=[];let c=0,d=0,f;for(let w=0;wd?f-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:v}};return r?i=>r({className:i,parseClassName:a}):a},hT=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},mT=e=>({cache:fT(e.cacheSize),parseClassName:pT(e),...iT(e)}),vT=/\s+/,gT=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(vT);let i="";for(let l=a.length-1;l>=0;l-=1){const c=a[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}=r(c);let b=!!g,v=n(b?h.substring(0,g):h);if(!v){if(!b){i=c+(i.length>0?" "+i:i);continue}if(v=n(h),!v){i=c+(i.length>0?" "+i:i);continue}b=!1}const w=hT(d).join(":"),y=f?w+q0:w,m=y+v;if(s.includes(m))continue;s.push(m);const x=o(v,b);for(let S=0;S0?" "+i:i)}return i};function yT(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;nf(d),e());return r=mT(c),n=r.cache.get,o=r.cache.set,s=i,i(l)}function i(l){const c=n(l);if(c)return c;const d=gT(l,r);return o(l,d),d}return function(){return s(yT.apply(null,arguments))}}const Oe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},K0=/^\[(?:([a-z-]+):)?(.+)\]$/i,wT=/^\d+\/\d+$/,bT=new Set(["px","full","screen"]),ST=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CT=/\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$/,ET=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>Ss(e)||bT.has(e)||wT.test(e),jn=e=>oa(e,"length",IT),Ss=e=>!!e&&!Number.isNaN(Number(e)),Wu=e=>oa(e,"number",Ss),va=e=>!!e&&Number.isInteger(Number(e)),TT=e=>e.endsWith("%")&&Ss(e.slice(0,-1)),pe=e=>K0.test(e),On=e=>ST.test(e),NT=new Set(["length","size","percentage"]),RT=e=>oa(e,NT,Q0),AT=e=>oa(e,"position",Q0),PT=new Set(["image","url"]),jT=e=>oa(e,PT,DT),OT=e=>oa(e,"",MT),ga=()=>!0,oa=(e,t,r)=>{const n=K0.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},IT=e=>CT.test(e)&&!ET.test(e),Q0=()=>!1,MT=e=>_T.test(e),DT=e=>kT.test(e),LT=()=>{const e=Oe("colors"),t=Oe("spacing"),r=Oe("blur"),n=Oe("brightness"),o=Oe("borderColor"),s=Oe("borderRadius"),a=Oe("borderSpacing"),i=Oe("borderWidth"),l=Oe("contrast"),c=Oe("grayscale"),d=Oe("hueRotate"),f=Oe("invert"),h=Oe("gap"),g=Oe("gradientColorStops"),b=Oe("gradientColorStopPositions"),v=Oe("inset"),w=Oe("margin"),y=Oe("opacity"),m=Oe("padding"),x=Oe("saturate"),S=Oe("scale"),C=Oe("sepia"),k=Oe("skew"),_=Oe("space"),N=Oe("translate"),A=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",pe,t],D=()=>[pe,t],U=()=>["",cn,jn],L=()=>["auto",Ss,pe],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",pe],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[Ss,pe];return{cacheSize:500,separator:":",theme:{colors:[ga],spacing:[cn,jn],blur:["none","",On,pe],brightness:se(),borderColor:[e],borderRadius:["none","","full",On,pe],borderSpacing:D(),borderWidth:U(),contrast:se(),grayscale:O(),hueRotate:se(),invert:O(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[TT,jn],inset:B(),margin:B(),opacity:se(),padding:D(),saturate:se(),scale:se(),sepia:O(),skew:se(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[On]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),pe]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",va,pe]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",va,pe]}],"grid-cols":[{"grid-cols":[ga]}],"col-start-end":[{col:["auto",{span:["full",va,pe]},pe]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ga]}],"row-start-end":[{row:["auto",{span:[va,pe]},pe]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[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":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[On]},On]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",On,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wu]}],"font-family":[{font:[ga]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Ss,Wu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cn,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cn,jn]}],"underline-offset":[{"underline-offset":["auto",cn,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),AT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",RT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"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":[cn,pe]}],"outline-w":[{outline:[cn,jn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[cn,jn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",On,OT]}],"shadow-color":[{shadow:[ga]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",On,pe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[va,pe]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],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",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[cn,jn,Wu]}],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"]}}},FT=xT(LT);function ae(...e){return FT(D0(e))}const $T=Wk,Z0=p.forwardRef(({className:e,...t},r)=>u.jsx(R0,{ref:r,className:ae("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}));Z0.displayName=R0.displayName;const VT=Gp("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"}}),Y0=p.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(A0,{ref:n,className:ae(VT({variant:t}),e),...r}));Y0.displayName=A0.displayName;const zT=p.forwardRef(({className:e,...t},r)=>u.jsx(O0,{ref:r,className:ae("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}));zT.displayName=O0.displayName;const X0=p.forwardRef(({className:e,...t},r)=>u.jsx(I0,{ref:r,className:ae("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:u.jsx(H0,{className:"h-4 w-4"})}));X0.displayName=I0.displayName;const J0=p.forwardRef(({className:e,...t},r)=>u.jsx(P0,{ref:r,className:ae("text-sm font-semibold",e),...t}));J0.displayName=P0.displayName;const ew=p.forwardRef(({className:e,...t},r)=>u.jsx(j0,{ref:r,className:ae("text-sm opacity-90",e),...t}));ew.displayName=j0.displayName;function BT(){const{toasts:e}=tk();return u.jsxs($T,{children:[e.map(function({id:t,title:r,description:n,action:o,...s}){return u.jsxs(Y0,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(J0,{children:r}),n&&u.jsx(ew,{children:n})]}),o,u.jsx(X0,{})]},t)}),u.jsx(Z0,{})]})}var fv=["light","dark"],UT="(prefers-color-scheme: dark)",HT=p.createContext(void 0),WT={setTheme:e=>{},themes:[]},qT=()=>{var e;return(e=p.useContext(HT))!=null?e:WT};p.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:s,value:a,attrs:i,nonce:l})=>{let c=s==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${i.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=o?fv.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,v=!1,w=!0)=>{let y=a?a[b]:b,m=v?b+"|| ''":`'${y}'`,x="";return o&&w&&!v&&fv.includes(b)&&(x+=`d.style.colorScheme = '${b}';`),r==="class"?v||y?x+=`c.add(${m})`:x+="null":y&&(x+=`d[s](n,${m})`),x},g=e?`!function(){${d}${h(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${UT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return p.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:g}})});var GT=e=>{switch(e){case"success":return ZT;case"info":return XT;case"warning":return YT;case"error":return JT;default:return null}},KT=Array(12).fill(0),QT=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},KT.map((r,n)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),ZT=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),YT=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.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"})),XT=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),JT=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),eN=R.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"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tN=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},pf=1,rN=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:r,...n}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:pf++,s=this.toasts.find(i=>i.id===o),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(i=>i.id===o?(this.publish({...i,...e,id:o,title:r}),{...i,...e,id:o,dismissible:a,title:r}):i):this.addToast({title:r,...n,dismissible:a,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({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 r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),o=r!==void 0,s,a=n.then(async l=>{if(s=["resolve",l],R.isValidElement(l))o=!1,this.create({id:r,type:"default",message:l});else if(oN(l)&&!l.ok){o=!1;let c=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:r,type:"error",message:c,description:d})}else if(t.success!==void 0){o=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:d})}}).finally(()=>{var l;o&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),i=()=>new Promise((l,c)=>a.then(()=>s[0]==="reject"?c(s[1]):l(s[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:i}:Object.assign(r,{unwrap:i})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||pf++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ot=new rN,nN=(e,t)=>{let r=(t==null?void 0:t.id)||pf++;return Ot.addToast({title:e,...t,id:r}),r},oN=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",sN=nN,aN=()=>Ot.toasts,iN=()=>Ot.getActiveToasts(),lN=Object.assign(sN,{success:Ot.success,info:Ot.info,warning:Ot.warning,error:Ot.error,custom:Ot.custom,message:Ot.message,promise:Ot.promise,dismiss:Ot.dismiss,loading:Ot.loading},{getHistory:aN,getToasts:iN});function cN(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}cN(`: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 Ki(e){return e.label!==void 0}var uN=3,dN="32px",fN="16px",pv=4e3,pN=356,hN=14,mN=20,vN=200;function mr(...e){return e.filter(Boolean).join(" ")}function gN(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var yN=e=>{var t,r,n,o,s,a,i,l,c,d,f;let{invert:h,toast:g,unstyled:b,interacting:v,setHeights:w,visibleToasts:y,heights:m,index:x,toasts:S,expanded:C,removeToast:k,defaultRichColors:_,closeButton:N,style:A,cancelButtonStyle:M,actionButtonStyle:B,className:D="",descriptionClassName:U="",duration:L,position:X,gap:z,loadingIcon:J,expandByDefault:P,classNames:O,icons:W,closeButtonAriaLabel:se="Close toast",pauseWhenPageIsHidden:ne}=e,[le,ie]=R.useState(null),[Ne,Fe]=R.useState(null),[G,Ce]=R.useState(!1),[Pe,xe]=R.useState(!1),[ve,we]=R.useState(!1),[ot,bt]=R.useState(!1),[Or,Ir]=R.useState(!1),[nn,Qo]=R.useState(0),[on,E]=R.useState(0),T=R.useRef(g.duration||L||pv),j=R.useRef(null),q=R.useRef(null),H=x===0,V=x+1<=y,Z=g.type,ge=g.dismissible!==!1,Re=g.className||"",At=g.descriptionClassName||"",sn=R.useMemo(()=>m.findIndex(de=>de.toastId===g.id)||0,[m,g.id]),Mr=R.useMemo(()=>{var de;return(de=g.closeButton)!=null?de:N},[g.closeButton,N]),_i=R.useMemo(()=>g.duration||L||pv,[g.duration,L]),xo=R.useRef(0),Dr=R.useRef(0),ki=R.useRef(0),an=R.useRef(null),[pu,Ti]=X.split("-"),Wh=R.useMemo(()=>m.reduce((de,Ae,$e)=>$e>=sn?de:de+Ae.height,0),[m,sn]),qh=tN(),bC=g.invert||h,hu=Z==="loading";Dr.current=R.useMemo(()=>sn*z+Wh,[sn,Wh]),R.useEffect(()=>{T.current=_i},[_i]),R.useEffect(()=>{Ce(!0)},[]),R.useEffect(()=>{let de=q.current;if(de){let Ae=de.getBoundingClientRect().height;return E(Ae),w($e=>[{toastId:g.id,height:Ae,position:g.position},...$e]),()=>w($e=>$e.filter(dr=>dr.toastId!==g.id))}},[w,g.id]),R.useLayoutEffect(()=>{if(!G)return;let de=q.current,Ae=de.style.height;de.style.height="auto";let $e=de.getBoundingClientRect().height;de.style.height=Ae,E($e),w(dr=>dr.find(fr=>fr.toastId===g.id)?dr.map(fr=>fr.toastId===g.id?{...fr,height:$e}:fr):[{toastId:g.id,height:$e,position:g.position},...dr])},[G,g.title,g.description,w,g.id]);let Nn=R.useCallback(()=>{xe(!0),Qo(Dr.current),w(de=>de.filter(Ae=>Ae.toastId!==g.id)),setTimeout(()=>{k(g)},vN)},[g,k,w,Dr]);R.useEffect(()=>{if(g.promise&&Z==="loading"||g.duration===1/0||g.type==="loading")return;let de;return C||v||ne&&qh?(()=>{if(ki.current{var Ae;(Ae=g.onAutoClose)==null||Ae.call(g,g),Nn()},T.current)),()=>clearTimeout(de)},[C,v,g,Z,ne,qh,Nn]),R.useEffect(()=>{g.delete&&Nn()},[Nn,g.delete]);function SC(){var de,Ae,$e;return W!=null&&W.loading?R.createElement("div",{className:mr(O==null?void 0:O.loader,(de=g==null?void 0:g.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Z==="loading"},W.loading):J?R.createElement("div",{className:mr(O==null?void 0:O.loader,(Ae=g==null?void 0:g.classNames)==null?void 0:Ae.loader,"sonner-loader"),"data-visible":Z==="loading"},J):R.createElement(QT,{className:mr(O==null?void 0:O.loader,($e=g==null?void 0:g.classNames)==null?void 0:$e.loader),visible:Z==="loading"})}return R.createElement("li",{tabIndex:0,ref:q,className:mr(D,Re,O==null?void 0:O.toast,(t=g==null?void 0:g.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Z],(r=g==null?void 0:g.classNames)==null?void 0:r[Z]),"data-sonner-toast":"","data-rich-colors":(n=g.richColors)!=null?n:_,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":G,"data-promise":!!g.promise,"data-swiped":Or,"data-removed":Pe,"data-visible":V,"data-y-position":pu,"data-x-position":Ti,"data-index":x,"data-front":H,"data-swiping":ve,"data-dismissible":ge,"data-type":Z,"data-invert":bC,"data-swipe-out":ot,"data-swipe-direction":Ne,"data-expanded":!!(C||P&&G),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Pe?nn:Dr.current}px`,"--initial-height":P?"auto":`${on}px`,...A,...g.style},onDragEnd:()=>{we(!1),ie(null),an.current=null},onPointerDown:de=>{hu||!ge||(j.current=new Date,Qo(Dr.current),de.target.setPointerCapture(de.pointerId),de.target.tagName!=="BUTTON"&&(we(!0),an.current={x:de.clientX,y:de.clientY}))},onPointerUp:()=>{var de,Ae,$e,dr;if(ot||!ge)return;an.current=null;let fr=Number(((de=q.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Rn=Number(((Ae=q.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),wo=new Date().getTime()-(($e=j.current)==null?void 0:$e.getTime()),pr=le==="x"?fr:Rn,An=Math.abs(pr)/wo;if(Math.abs(pr)>=mN||An>.11){Qo(Dr.current),(dr=g.onDismiss)==null||dr.call(g,g),Fe(le==="x"?fr>0?"right":"left":Rn>0?"down":"up"),Nn(),bt(!0),Ir(!1);return}we(!1),ie(null)},onPointerMove:de=>{var Ae,$e,dr,fr;if(!an.current||!ge||((Ae=window.getSelection())==null?void 0:Ae.toString().length)>0)return;let Rn=de.clientY-an.current.y,wo=de.clientX-an.current.x,pr=($e=e.swipeDirections)!=null?$e:gN(X);!le&&(Math.abs(wo)>1||Math.abs(Rn)>1)&&ie(Math.abs(wo)>Math.abs(Rn)?"x":"y");let An={x:0,y:0};le==="y"?(pr.includes("top")||pr.includes("bottom"))&&(pr.includes("top")&&Rn<0||pr.includes("bottom")&&Rn>0)&&(An.y=Rn):le==="x"&&(pr.includes("left")||pr.includes("right"))&&(pr.includes("left")&&wo<0||pr.includes("right")&&wo>0)&&(An.x=wo),(Math.abs(An.x)>0||Math.abs(An.y)>0)&&Ir(!0),(dr=q.current)==null||dr.style.setProperty("--swipe-amount-x",`${An.x}px`),(fr=q.current)==null||fr.style.setProperty("--swipe-amount-y",`${An.y}px`)}},Mr&&!g.jsx?R.createElement("button",{"aria-label":se,"data-disabled":hu,"data-close-button":!0,onClick:hu||!ge?()=>{}:()=>{var de;Nn(),(de=g.onDismiss)==null||de.call(g,g)},className:mr(O==null?void 0:O.closeButton,(o=g==null?void 0:g.classNames)==null?void 0:o.closeButton)},(s=W==null?void 0:W.close)!=null?s:eN):null,g.jsx||p.isValidElement(g.title)?g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title:R.createElement(R.Fragment,null,Z||g.icon||g.promise?R.createElement("div",{"data-icon":"",className:mr(O==null?void 0:O.icon,(a=g==null?void 0:g.classNames)==null?void 0:a.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||SC():null,g.type!=="loading"?g.icon||(W==null?void 0:W[Z])||GT(Z):null):null,R.createElement("div",{"data-content":"",className:mr(O==null?void 0:O.content,(i=g==null?void 0:g.classNames)==null?void 0:i.content)},R.createElement("div",{"data-title":"",className:mr(O==null?void 0:O.title,(l=g==null?void 0:g.classNames)==null?void 0:l.title)},typeof g.title=="function"?g.title():g.title),g.description?R.createElement("div",{"data-description":"",className:mr(U,At,O==null?void 0:O.description,(c=g==null?void 0:g.classNames)==null?void 0:c.description)},typeof g.description=="function"?g.description():g.description):null),p.isValidElement(g.cancel)?g.cancel:g.cancel&&Ki(g.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||M,onClick:de=>{var Ae,$e;Ki(g.cancel)&&ge&&(($e=(Ae=g.cancel).onClick)==null||$e.call(Ae,de),Nn())},className:mr(O==null?void 0:O.cancelButton,(d=g==null?void 0:g.classNames)==null?void 0:d.cancelButton)},g.cancel.label):null,p.isValidElement(g.action)?g.action:g.action&&Ki(g.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||B,onClick:de=>{var Ae,$e;Ki(g.action)&&(($e=(Ae=g.action).onClick)==null||$e.call(Ae,de),!de.defaultPrevented&&Nn())},className:mr(O==null?void 0:O.actionButton,(f=g==null?void 0:g.classNames)==null?void 0:f.actionButton)},g.action.label):null))};function hv(){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 xN(e,t){let r={};return[e,t].forEach((n,o)=>{let s=o===1,a=s?"--mobile-offset":"--offset",i=s?fN:dN;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${a}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${a}-${c}`]=i:r[`${a}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(i)}),r}var wN=p.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:a,className:i,offset:l,mobileOffset:c,theme:d="light",richColors:f,duration:h,style:g,visibleToasts:b=uN,toastOptions:v,dir:w=hv(),gap:y=hN,loadingIcon:m,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[k,_]=R.useState([]),N=R.useMemo(()=>Array.from(new Set([n].concat(k.filter(ne=>ne.position).map(ne=>ne.position)))),[k,n]),[A,M]=R.useState([]),[B,D]=R.useState(!1),[U,L]=R.useState(!1),[X,z]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),J=R.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=R.useRef(null),W=R.useRef(!1),se=R.useCallback(ne=>{_(le=>{var ie;return(ie=le.find(Ne=>Ne.id===ne.id))!=null&&ie.delete||Ot.dismiss(ne.id),le.filter(({id:Ne})=>Ne!==ne.id)})},[]);return R.useEffect(()=>Ot.subscribe(ne=>{if(ne.dismiss){_(le=>le.map(ie=>ie.id===ne.id?{...ie,delete:!0}:ie));return}setTimeout(()=>{s0.flushSync(()=>{_(le=>{let ie=le.findIndex(Ne=>Ne.id===ne.id);return ie!==-1?[...le.slice(0,ie),{...le[ie],...ne},...le.slice(ie+1)]:[ne,...le]})})})}),[]),R.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 ne=window.matchMedia("(prefers-color-scheme: dark)");try{ne.addEventListener("change",({matches:le})=>{z(le?"dark":"light")})}catch{ne.addListener(({matches:ie})=>{try{z(ie?"dark":"light")}catch(Ne){console.error(Ne)}})}},[d]),R.useEffect(()=>{k.length<=1&&D(!1)},[k]),R.useEffect(()=>{let ne=le=>{var ie,Ne;o.every(Fe=>le[Fe]||le.code===Fe)&&(D(!0),(ie=J.current)==null||ie.focus()),le.code==="Escape"&&(document.activeElement===J.current||(Ne=J.current)!=null&&Ne.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[o]),R.useEffect(()=>{if(J.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,W.current=!1)}},[J.current]),R.createElement("section",{ref:t,"aria-label":`${S} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((ne,le)=>{var ie;let[Ne,Fe]=ne.split("-");return k.length?R.createElement("ol",{key:ne,dir:w==="auto"?hv():w,tabIndex:-1,ref:J,className:i,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":Ne,"data-lifted":B&&k.length>1&&!s,"data-x-position":Fe,style:{"--front-toast-height":`${((ie=A[0])==null?void 0:ie.height)||0}px`,"--width":`${pN}px`,"--gap":`${y}px`,...g,...xN(l,c)},onBlur:G=>{W.current&&!G.currentTarget.contains(G.relatedTarget)&&(W.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||W.current||(W.current=!0,O.current=G.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{U||D(!1)},onDragEnd:()=>D(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},k.filter(G=>!G.position&&le===0||G.position===ne).map((G,Ce)=>{var Pe,xe;return R.createElement(yN,{key:G.id,icons:x,index:Ce,toast:G,defaultRichColors:f,duration:(Pe=v==null?void 0:v.duration)!=null?Pe:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:b,closeButton:(xe=v==null?void 0:v.closeButton)!=null?xe:a,interacting:U,position:ne,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:se,toasts:k.filter(ve=>ve.position==G.position),heights:A.filter(ve=>ve.position==G.position),setHeights:M,expandByDefault:s,gap:y,loadingIcon:m,expanded:B,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const bN=({...e})=>{const{theme:t="system"}=qT();return u.jsx(wN,{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 SN=Jf[" useId ".trim().toString()]||(()=>{}),CN=0;function Zr(e){const[t,r]=p.useState(SN());return Ge(()=>{e||r(n=>n??String(CN++))},[e]),e||(t?`radix-${t}`:"")}const EN=["top","right","bottom","left"],lo=Math.min,Bt=Math.max,Ql=Math.round,Qi=Math.floor,Yr=e=>({x:e,y:e}),_N={left:"right",right:"left",bottom:"top",top:"bottom"},kN={start:"end",end:"start"};function hf(e,t,r){return Bt(e,lo(t,r))}function En(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function sa(e){return e.split("-")[1]}function Jp(e){return e==="x"?"y":"x"}function eh(e){return e==="y"?"height":"width"}const TN=new Set(["top","bottom"]);function Hr(e){return TN.has(_n(e))?"y":"x"}function th(e){return Jp(Hr(e))}function NN(e,t,r){r===void 0&&(r=!1);const n=sa(e),o=th(e),s=eh(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Zl(a)),[a,Zl(a)]}function RN(e){const t=Zl(e);return[mf(e),t,mf(t)]}function mf(e){return e.replace(/start|end/g,t=>kN[t])}const mv=["left","right"],vv=["right","left"],AN=["top","bottom"],PN=["bottom","top"];function jN(e,t,r){switch(e){case"top":case"bottom":return r?t?vv:mv:t?mv:vv;case"left":case"right":return t?AN:PN;default:return[]}}function ON(e,t,r,n){const o=sa(e);let s=jN(_n(e),r==="start",n);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(mf)))),s}function Zl(e){return e.replace(/left|right|bottom|top/g,t=>_N[t])}function IN(e){return{top:0,right:0,bottom:0,left:0,...e}}function tw(e){return typeof e!="number"?IN(e):{top:e,right:e,bottom:e,left:e}}function Yl(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function gv(e,t,r){let{reference:n,floating:o}=e;const s=Hr(t),a=th(t),i=eh(a),l=_n(t),c=s==="y",d=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let g;switch(l){case"top":g={x:d,y:n.y-o.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:f};break;case"left":g={x:n.x-o.width,y:f};break;default:g={x:n.x,y:n.y}}switch(sa(t)){case"start":g[a]-=h*(r&&c?-1:1);break;case"end":g[a]+=h*(r&&c?-1:1);break}return g}const MN=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=gv(c,n,l),h=n,g={},b=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:d=0}=En(e,t)||{};if(c==null)return{};const f=tw(d),h={x:r,y:n},g=th(o),b=eh(g),v=await a.getDimensions(c),w=g==="y",y=w?"top":"left",m=w?"bottom":"right",x=w?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[g]-h[g]-s.floating[b],C=h[g]-s.reference[g],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let _=k?k[x]:0;(!_||!await(a.isElement==null?void 0:a.isElement(k)))&&(_=i.floating[x]||s.floating[b]);const N=S/2-C/2,A=_/2-v[b]/2-1,M=lo(f[y],A),B=lo(f[m],A),D=M,U=_-v[b]-B,L=_/2-v[b]/2+N,X=hf(D,L,U),z=!l.arrow&&sa(o)!=null&&L!==X&&s.reference[b]/2-(LL<=0)){var B,D;const L=(((B=s.flip)==null?void 0:B.index)||0)+1,X=_[L];if(X&&(!(f==="alignment"?m!==Hr(X):!1)||M.every(P=>P.overflows[0]>0&&Hr(P.placement)===m)))return{data:{index:L,overflows:M},reset:{placement:X}};let z=(D=M.filter(J=>J.overflows[0]<=0).sort((J,P)=>J.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!z)switch(g){case"bestFit":{var U;const J=(U=M.filter(P=>{if(k){const O=Hr(P.placement);return O===m||O==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(O=>O>0).reduce((O,W)=>O+W,0)]).sort((P,O)=>P[1]-O[1])[0])==null?void 0:U[0];J&&(z=J);break}case"initialPlacement":z=i;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function yv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xv(e){return EN.some(t=>e[t]>=0)}const FN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=En(e,t);switch(n){case"referenceHidden":{const s=await ai(t,{...o,elementContext:"reference"}),a=yv(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:xv(a)}}}case"escaped":{const s=await ai(t,{...o,altBoundary:!0}),a=yv(s,r.floating);return{data:{escapedOffsets:a,escaped:xv(a)}}}default:return{}}}}},rw=new Set(["left","top"]);async function $N(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=_n(r),i=sa(r),l=Hr(r)==="y",c=rw.has(a)?-1:1,d=s&&l?-1:1,f=En(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const VN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await $N(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},zN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:w=>{let{x:y,y:m}=w;return{x:y,y:m}}},...l}=En(e,t),c={x:r,y:n},d=await ai(t,l),f=Hr(_n(o)),h=Jp(f);let g=c[h],b=c[f];if(s){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",m=g+d[w],x=g-d[y];g=hf(m,g,x)}if(a){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",m=b+d[w],x=b-d[y];b=hf(m,b,x)}const v=i.fn({...t,[h]:g,[f]:b});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[h]:s,[f]:a}}}}}},BN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=En(e,t),d={x:r,y:n},f=Hr(o),h=Jp(f);let g=d[h],b=d[f];const v=En(i,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=h==="y"?"height":"width",S=s.reference[h]-s.floating[x]+w.mainAxis,C=s.reference[h]+s.reference[x]-w.mainAxis;gC&&(g=C)}if(c){var y,m;const x=h==="y"?"width":"height",S=rw.has(_n(o)),C=s.reference[f]-s.floating[x]+(S&&((y=a.offset)==null?void 0:y[f])||0)+(S?0:w.crossAxis),k=s.reference[f]+s.reference[x]+(S?0:((m=a.offset)==null?void 0:m[f])||0)-(S?w.crossAxis:0);bk&&(b=k)}return{[h]:g,[f]:b}}}},UN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=En(e,t),d=await ai(t,c),f=_n(o),h=sa(o),g=Hr(o)==="y",{width:b,height:v}=s.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,w=h==="end"?"top":"bottom");const m=v-d.top-d.bottom,x=b-d.left-d.right,S=lo(v-d[w],m),C=lo(b-d[y],x),k=!t.middlewareData.shift;let _=S,N=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=m),k&&!h){const M=Bt(d.left,0),B=Bt(d.right,0),D=Bt(d.top,0),U=Bt(d.bottom,0);g?N=b-2*(M!==0||B!==0?M+B:Bt(d.left,d.right)):_=v-2*(D!==0||U!==0?D+U:Bt(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:_});const A=await a.getDimensions(i.floating);return b!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Dc(){return typeof window<"u"}function aa(e){return nw(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){var t;return(t=(nw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nw(e){return Dc()?e instanceof Node||e instanceof qt(e).Node:!1}function Rr(e){return Dc()?e instanceof Element||e instanceof qt(e).Element:!1}function en(e){return Dc()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function wv(e){return!Dc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}const HN=new Set(["inline","contents"]);function bi(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ar(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!HN.has(o)}const WN=new Set(["table","td","th"]);function qN(e){return WN.has(aa(e))}const GN=[":popover-open",":modal"];function Lc(e){return GN.some(t=>{try{return e.matches(t)}catch{return!1}})}const KN=["transform","translate","scale","rotate","perspective"],QN=["transform","translate","scale","rotate","perspective","filter"],ZN=["paint","layout","strict","content"];function rh(e){const t=nh(),r=Rr(e)?Ar(e):e;return KN.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||QN.some(n=>(r.willChange||"").includes(n))||ZN.some(n=>(r.contain||"").includes(n))}function YN(e){let t=co(e);for(;en(t)&&!Hs(t);){if(rh(t))return t;if(Lc(t))return null;t=co(t)}return null}function nh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const XN=new Set(["html","body","#document"]);function Hs(e){return XN.has(aa(e))}function Ar(e){return qt(e).getComputedStyle(e)}function Fc(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function co(e){if(aa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wv(e)&&e.host||tn(e);return wv(t)?t.host:t}function ow(e){const t=co(e);return Hs(t)?e.ownerDocument?e.ownerDocument.body:e.body:en(t)&&bi(t)?t:ow(t)}function ii(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ow(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=qt(o);if(s){const i=vf(a);return t.concat(a,a.visualViewport||[],bi(o)?o:[],i&&r?ii(i):[])}return t.concat(o,ii(o,[],r))}function vf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sw(e){const t=Ar(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=en(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=Ql(r)!==s||Ql(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function oh(e){return Rr(e)?e:e.contextElement}function Cs(e){const t=oh(e);if(!en(t))return Yr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=sw(t);let a=(s?Ql(r.width):r.width)/n,i=(s?Ql(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const JN=Yr(0);function aw(e){const t=qt(e);return!nh()||!t.visualViewport?JN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eR(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==qt(e)?!1:t}function Bo(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=oh(e);let a=Yr(1);t&&(n?Rr(n)&&(a=Cs(n)):a=Cs(e));const i=eR(s,r,n)?aw(s):Yr(0);let l=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const h=qt(s),g=n&&Rr(n)?qt(n):n;let b=h,v=vf(b);for(;v&&n&&g!==b;){const w=Cs(v),y=v.getBoundingClientRect(),m=Ar(v),x=y.left+(v.clientLeft+parseFloat(m.paddingLeft))*w.x,S=y.top+(v.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,c*=w.y,d*=w.x,f*=w.y,l+=x,c+=S,b=qt(v),v=vf(b)}}return Yl({width:d,height:f,x:l,y:c})}function sh(e,t){const r=Fc(e).scrollLeft;return t?t.left+r:Bo(tn(e)).left+r}function iw(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:sh(e,n)),s=n.top+t.scrollTop;return{x:o,y:s}}function tR(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",a=tn(n),i=t?Lc(t.floating):!1;if(n===a||i&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Yr(1);const d=Yr(0),f=en(n);if((f||!f&&!s)&&((aa(n)!=="body"||bi(a))&&(l=Fc(n)),en(n))){const g=Bo(n);c=Cs(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const h=a&&!f&&!s?iw(a,l,!0):Yr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-l.scrollTop*c.y+d.y+h.y}}function rR(e){return Array.from(e.getClientRects())}function nR(e){const t=tn(e),r=Fc(e),n=e.ownerDocument.body,o=Bt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Bt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+sh(e);const i=-r.scrollTop;return Ar(n).direction==="rtl"&&(a+=Bt(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}function oR(e,t){const r=qt(e),n=tn(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const c=nh();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i,y:l}}const sR=new Set(["absolute","fixed"]);function aR(e,t){const r=Bo(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=en(e)?Cs(e):Yr(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,c=n*s.y;return{width:a,height:i,x:l,y:c}}function bv(e,t,r){let n;if(t==="viewport")n=oR(e,r);else if(t==="document")n=nR(tn(e));else if(Rr(t))n=aR(t,r);else{const o=aw(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Yl(n)}function lw(e,t){const r=co(e);return r===t||!Rr(r)||Hs(r)?!1:Ar(r).position==="fixed"||lw(r,t)}function iR(e,t){const r=t.get(e);if(r)return r;let n=ii(e,[],!1).filter(i=>Rr(i)&&aa(i)!=="body"),o=null;const s=Ar(e).position==="fixed";let a=s?co(e):e;for(;Rr(a)&&!Hs(a);){const i=Ar(a),l=rh(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&sR.has(o.position)||bi(a)&&!l&&lw(e,a))?n=n.filter(d=>d!==a):o=i,a=co(a)}return t.set(e,n),n}function lR(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Lc(t)?[]:iR(t,this._c):[].concat(r),n],i=a[0],l=a.reduce((c,d)=>{const f=bv(t,d,o);return c.top=Bt(f.top,c.top),c.right=lo(f.right,c.right),c.bottom=lo(f.bottom,c.bottom),c.left=Bt(f.left,c.left),c},bv(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cR(e){const{width:t,height:r}=sw(e);return{width:t,height:r}}function uR(e,t,r){const n=en(t),o=tn(t),s=r==="fixed",a=Bo(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=Yr(0);function c(){l.x=sh(o)}if(n||!n&&!s)if((aa(t)!=="body"||bi(o))&&(i=Fc(t)),n){const g=Bo(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();s&&!n&&o&&c();const d=o&&!n&&!s?iw(o,i):Yr(0),f=a.left+i.scrollLeft-l.x-d.x,h=a.top+i.scrollTop-l.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function qu(e){return Ar(e).position==="static"}function Sv(e,t){if(!en(e)||Ar(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return tn(e)===r&&(r=r.ownerDocument.body),r}function cw(e,t){const r=qt(e);if(Lc(e))return r;if(!en(e)){let o=co(e);for(;o&&!Hs(o);){if(Rr(o)&&!qu(o))return o;o=co(o)}return r}let n=Sv(e,t);for(;n&&qN(n)&&qu(n);)n=Sv(n,t);return n&&Hs(n)&&qu(n)&&!rh(n)?r:n||YN(e)||r}const dR=async function(e){const t=this.getOffsetParent||cw,r=this.getDimensions,n=await r(e.floating);return{reference:uR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function fR(e){return Ar(e).direction==="rtl"}const pR={convertOffsetParentRelativeRectToViewportRelativeRect:tR,getDocumentElement:tn,getClippingRect:lR,getOffsetParent:cw,getElementRects:dR,getClientRects:rR,getDimensions:cR,getScale:Cs,isElement:Rr,isRTL:fR};function uw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hR(e,t){let r=null,n;const o=tn(e);function s(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:g}=c;if(i||t(),!h||!g)return;const b=Qi(f),v=Qi(o.clientWidth-(d+h)),w=Qi(o.clientHeight-(f+g)),y=Qi(d),x={rootMargin:-b+"px "+-v+"px "+-w+"px "+-y+"px",threshold:Bt(0,lo(1,l))||1};let S=!0;function C(k){const _=k[0].intersectionRatio;if(_!==l){if(!S)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}_===1&&!uw(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(C,x)}r.observe(e)}return a(!0),s}function mR(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=oh(e),d=o||s?[...c?ii(c):[],...ii(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const f=c&&i?hR(c,r):null;let h=-1,g=null;a&&(g=new ResizeObserver(y=>{let[m]=y;m&&m.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let b,v=l?Bo(e):null;l&&w();function w(){const y=Bo(e);v&&!uw(v,y)&&r(),v=y,b=requestAnimationFrame(w)}return r(),()=>{var y;d.forEach(m=>{o&&m.removeEventListener("scroll",r),s&&m.removeEventListener("resize",r)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const vR=VN,gR=zN,yR=LN,xR=UN,wR=FN,Cv=DN,bR=BN,SR=(e,t,r)=>{const n=new Map,o={platform:pR,...r},s={...o.platform,_c:n};return MN(e,t,{...o,platform:s})};var CR=typeof document<"u",ER=function(){},vl=CR?p.useLayoutEffect:ER;function Xl(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Xl(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Xl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function dw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ev(e,t){const r=dw(e);return Math.round(t*r)/r}function Gu(e){const t=p.useRef(e);return vl(()=>{t.current=e}),t}function _R(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=p.useState(n);Xl(h,n)||g(n);const[b,v]=p.useState(null),[w,y]=p.useState(null),m=p.useCallback(P=>{P!==k.current&&(k.current=P,v(P))},[]),x=p.useCallback(P=>{P!==_.current&&(_.current=P,y(P))},[]),S=s||b,C=a||w,k=p.useRef(null),_=p.useRef(null),N=p.useRef(d),A=l!=null,M=Gu(l),B=Gu(o),D=Gu(c),U=p.useCallback(()=>{if(!k.current||!_.current)return;const P={placement:t,strategy:r,middleware:h};B.current&&(P.platform=B.current),SR(k.current,_.current,P).then(O=>{const W={...O,isPositioned:D.current!==!1};L.current&&!Xl(N.current,W)&&(N.current=W,vo.flushSync(()=>{f(W)}))})},[h,t,r,B,D]);vl(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[c]);const L=p.useRef(!1);vl(()=>(L.current=!0,()=>{L.current=!1}),[]),vl(()=>{if(S&&(k.current=S),C&&(_.current=C),S&&C){if(M.current)return M.current(S,C,U);U()}},[S,C,U,M,A]);const X=p.useMemo(()=>({reference:k,floating:_,setReference:m,setFloating:x}),[m,x]),z=p.useMemo(()=>({reference:S,floating:C}),[S,C]),J=p.useMemo(()=>{const P={position:r,left:0,top:0};if(!z.floating)return P;const O=Ev(z.floating,d.x),W=Ev(z.floating,d.y);return i?{...P,transform:"translate("+O+"px, "+W+"px)",...dw(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:W}},[r,i,z.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:U,refs:X,elements:z,floatingStyles:J}),[d,U,X,z,J])}const kR=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Cv({element:n.current,padding:o}).fn(r):{}:n?Cv({element:n,padding:o}).fn(r):{}}}},TR=(e,t)=>({...vR(e),options:[e,t]}),NR=(e,t)=>({...gR(e),options:[e,t]}),RR=(e,t)=>({...bR(e),options:[e,t]}),AR=(e,t)=>({...yR(e),options:[e,t]}),PR=(e,t)=>({...xR(e),options:[e,t]}),jR=(e,t)=>({...wR(e),options:[e,t]}),OR=(e,t)=>({...kR(e),options:[e,t]});var IR="Arrow",fw=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return u.jsx(oe.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});fw.displayName=IR;var MR=fw;function pw(e){const[t,r]=p.useState(void 0);return Ge(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,i=c.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ah="Popper",[hw,$c]=Xt(ah),[DR,mw]=hw(ah),vw=e=>{const{__scopePopper:t,children:r}=e,[n,o]=p.useState(null);return u.jsx(DR,{scope:t,anchor:n,onAnchorChange:o,children:r})};vw.displayName=ah;var gw="PopperAnchor",yw=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=mw(gw,r),a=p.useRef(null),i=ye(t,a);return p.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:u.jsx(oe.div,{...o,ref:i})});yw.displayName=gw;var ih="PopperContent",[LR,FR]=hw(ih),xw=p.forwardRef((e,t)=>{var G,Ce,Pe,xe,ve,we;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...v}=e,w=mw(ih,r),[y,m]=p.useState(null),x=ye(t,ot=>m(ot)),[S,C]=p.useState(null),k=pw(S),_=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,A=n+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],D=B.length>0,U={padding:M,boundary:B.filter(VR),altBoundary:D},{refs:L,floatingStyles:X,placement:z,isPositioned:J,middlewareData:P}=_R({strategy:"fixed",placement:A,whileElementsMounted:(...ot)=>mR(...ot,{animationFrame:g==="always"}),elements:{reference:w.anchor},middleware:[TR({mainAxis:o+N,alignmentAxis:a}),l&&NR({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?RR():void 0,...U}),l&&AR({...U}),PR({...U,apply:({elements:ot,rects:bt,availableWidth:Or,availableHeight:Ir})=>{const{width:nn,height:Qo}=bt.reference,on=ot.floating.style;on.setProperty("--radix-popper-available-width",`${Or}px`),on.setProperty("--radix-popper-available-height",`${Ir}px`),on.setProperty("--radix-popper-anchor-width",`${nn}px`),on.setProperty("--radix-popper-anchor-height",`${Qo}px`)}}),S&&OR({element:S,padding:i}),zR({arrowWidth:_,arrowHeight:N}),h&&jR({strategy:"referenceHidden",...U})]}),[O,W]=Sw(z),se=Je(b);Ge(()=>{J&&(se==null||se())},[J,se]);const ne=(G=P.arrow)==null?void 0:G.x,le=(Ce=P.arrow)==null?void 0:Ce.y,ie=((Pe=P.arrow)==null?void 0:Pe.centerOffset)!==0,[Ne,Fe]=p.useState();return Ge(()=>{y&&Fe(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:J?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(xe=P.transformOrigin)==null?void 0:xe.x,(ve=P.transformOrigin)==null?void 0:ve.y].join(" "),...((we=P.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(LR,{scope:r,placedSide:O,onArrowChange:C,arrowX:ne,arrowY:le,shouldHideArrow:ie,children:u.jsx(oe.div,{"data-side":O,"data-align":W,...v,ref:x,style:{...v.style,animation:J?void 0:"none"}})})})});xw.displayName=ih;var ww="PopperArrow",$R={top:"bottom",right:"left",bottom:"top",left:"right"},bw=p.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=FR(ww,n),a=$R[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(MR,{...o,ref:r,style:{...o.style,display:"block"}})})});bw.displayName=ww;function VR(e){return e!==null}var zR=e=>({name:"transformOrigin",options:e,fn(t){var w,y,m;const{placement:r,rects:n,middlewareData:o}=t,a=((w=o.arrow)==null?void 0:w.centerOffset)!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,d]=Sw(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,g=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let b="",v="";return c==="bottom"?(b=a?f:`${h}px`,v=`${-l}px`):c==="top"?(b=a?f:`${h}px`,v=`${n.floating.height+l}px`):c==="right"?(b=`${-l}px`,v=a?f:`${g}px`):c==="left"&&(b=`${n.floating.width+l}px`,v=a?f:`${g}px`),{data:{x:b,y:v}}}});function Sw(e){const[t,r="center"]=e.split("-");return[t,r]}var BR=vw,Cw=yw,Ew=xw,_w=bw,[Vc,JM]=Xt("Tooltip",[$c]),lh=$c(),kw="TooltipProvider",UR=700,_v="tooltip.open",[HR,Tw]=Vc(kw),Nw=e=>{const{__scopeTooltip:t,delayDuration:r=UR,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,a=p.useRef(!0),i=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(HR,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:p.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:s})};Nw.displayName=kw;var Rw="Tooltip",[eD,zc]=Vc(Rw),gf="TooltipTrigger",WR=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=zc(gf,r),s=Tw(gf,r),a=lh(r),i=p.useRef(null),l=ye(t,i,o.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(Cw,{asChild:!0,...a,children:u.jsx(oe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:te(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:te(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:te(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:te(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:te(e.onBlur,o.onClose),onClick:te(e.onClick,o.onClose)})})});WR.displayName=gf;var qR="TooltipPortal",[tD,GR]=Vc(qR,{forceMount:void 0}),Ws="TooltipContent",Aw=p.forwardRef((e,t)=>{const r=GR(Ws,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,a=zc(Ws,e.__scopeTooltip);return u.jsx(Jt,{present:n||a.open,children:a.disableHoverableContent?u.jsx(Pw,{side:o,...s,ref:t}):u.jsx(KR,{side:o,...s,ref:t})})}),KR=p.forwardRef((e,t)=>{const r=zc(Ws,e.__scopeTooltip),n=Tw(Ws,e.__scopeTooltip),o=p.useRef(null),s=ye(t,o),[a,i]=p.useState(null),{trigger:l,onClose:c}=r,d=o.current,{onPointerInTransitChange:f}=n,h=p.useCallback(()=>{i(null),f(!1)},[f]),g=p.useCallback((b,v)=>{const w=b.currentTarget,y={x:b.clientX,y:b.clientY},m=JR(y,w.getBoundingClientRect()),x=eA(y,m),S=tA(v.getBoundingClientRect()),C=nA([...x,...S]);i(C),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const b=w=>g(w,d),v=w=>g(w,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",v)}}},[l,d,g,h]),p.useEffect(()=>{if(a){const b=v=>{const w=v.target,y={x:v.clientX,y:v.clientY},m=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),x=!rA(y,a);m?h():x&&(h(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,a,c,h]),u.jsx(Pw,{...e,ref:s})}),[QR,ZR]=Vc(Rw,{isInside:!1}),YR=sk("TooltipContent"),Pw=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=zc(Ws,r),c=lh(r),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(_v,d),()=>document.removeEventListener(_v,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(xi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(Ew,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.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:[u.jsx(YR,{children:n}),u.jsx(QR,{scope:r,isInside:!0,children:u.jsx(Tk,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Aw.displayName=Ws;var jw="TooltipArrow",XR=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=lh(r);return ZR(jw,r).isInside?null:u.jsx(_w,{...o,...n,ref:t})});XR.displayName=jw;function JR(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function eA(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function tA(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function rA(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,a=t.length-1;sn!=h>n&&r<(f-c)*(n-d)/(h-d)+c&&(o=!o)}return o}function nA(e){const t=e.slice();return t.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),oA(t)}function oA(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var sA=Nw,Ow=Aw;const aA=sA,iA=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(Ow,{ref:n,sideOffset:t,className:ae("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),...r}));iA.displayName=Ow.displayName;var Bc=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(){}},Uc=typeof window>"u"||"Deno"in globalThis;function yr(){}function lA(e,t){return typeof e=="function"?e(t):e}function cA(e){return typeof e=="number"&&e>=0&&e!==1/0}function uA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yf(e,t){return typeof e=="function"?e(t):e}function dA(e,t){return typeof e=="function"?e(t):e}function kv(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a){if(n){if(t.queryHash!==ch(a,t.options))return!1}else if(!ci(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||o&&o!==t.state.fetchStatus||s&&!s(t))}function Tv(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(li(t.options.mutationKey)!==li(s))return!1}else if(!ci(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function ch(e,t){return((t==null?void 0:t.queryKeyHashFn)||li)(e)}function li(e){return JSON.stringify(e,(t,r)=>xf(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function ci(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ci(e[r],t[r])):!1}function Iw(e,t){if(e===t)return e;const r=Nv(e)&&Nv(t);if(r||xf(e)&&xf(t)){const n=r?e:Object.keys(e),o=n.length,s=r?t:Object.keys(t),a=s.length,i=r?[]:{},l=new Set(n);let c=0;for(let d=0;d{setTimeout(t,e)})}function pA(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Iw(e,t):t}function hA(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function mA(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var uh=Symbol();function Mw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===uh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var No,zn,Ns,$g,vA=($g=class extends Bc{constructor(){super();Ee(this,No);Ee(this,zn);Ee(this,Ns);fe(this,Ns,t=>{if(!Uc&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){I(this,zn)||this.setEventListener(I(this,Ns))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,zn))==null||t.call(this),fe(this,zn,void 0))}setEventListener(t){var r;fe(this,Ns,t),(r=I(this,zn))==null||r.call(this),fe(this,zn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){I(this,No)!==t&&(fe(this,No,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof I(this,No)=="boolean"?I(this,No):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},No=new WeakMap,zn=new WeakMap,Ns=new WeakMap,$g),Dw=new vA,Rs,Bn,As,Vg,gA=(Vg=class extends Bc{constructor(){super();Ee(this,Rs,!0);Ee(this,Bn);Ee(this,As);fe(this,As,t=>{if(!Uc&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){I(this,Bn)||this.setEventListener(I(this,As))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Bn))==null||t.call(this),fe(this,Bn,void 0))}setEventListener(t){var r;fe(this,As,t),(r=I(this,Bn))==null||r.call(this),fe(this,Bn,t(this.setOnline.bind(this)))}setOnline(t){I(this,Rs)!==t&&(fe(this,Rs,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return I(this,Rs)}},Rs=new WeakMap,Bn=new WeakMap,As=new WeakMap,Vg),Jl=new gA;function yA(){let e,t;const r=new Promise((o,s)=>{e=o,t=s});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function xA(e){return Math.min(1e3*2**e,3e4)}function Lw(e){return(e??"online")==="online"?Jl.isOnline():!0}var Fw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ku(e){return e instanceof Fw}function $w(e){let t=!1,r=0,n=!1,o;const s=yA(),a=v=>{var w;n||(h(new Fw(v)),(w=e.abort)==null||w.call(e))},i=()=>{t=!0},l=()=>{t=!1},c=()=>Dw.isFocused()&&(e.networkMode==="always"||Jl.isOnline())&&e.canRun(),d=()=>Lw(e.networkMode)&&e.canRun(),f=v=>{var w;n||(n=!0,(w=e.onSuccess)==null||w.call(e,v),o==null||o(),s.resolve(v))},h=v=>{var w;n||(n=!0,(w=e.onError)==null||w.call(e,v),o==null||o(),s.reject(v))},g=()=>new Promise(v=>{var w;o=y=>{(n||c())&&v(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;o=void 0,n||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(n)return;let v;const w=r===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(f).catch(y=>{var k;if(n)return;const m=e.retry??(Uc?0:3),x=e.retryDelay??xA,S=typeof x=="function"?x(r,y):x,C=m===!0||typeof m=="number"&&rc()?void 0:g()).then(()=>{t?h(y):b()})})};return{promise:s,cancel:a,continue:()=>(o==null||o(),s),cancelRetry:i,continueRetry:l,canStart:d,start:()=>(d()?b():g().then(b),s)}}var wA=e=>setTimeout(e,0);function bA(){let e=[],t=0,r=i=>{i()},n=i=>{i()},o=wA;const s=i=>{t?e.push(i):o(()=>{r(i)})},a=()=>{const i=e;e=[],i.length&&o(()=>{n(()=>{i.forEach(l=>{r(l)})})})};return{batch:i=>{let l;t++;try{l=i()}finally{t--,t||a()}return l},batchCalls:i=>(...l)=>{s(()=>{i(...l)})},schedule:s,setNotifyFunction:i=>{r=i},setBatchNotifyFunction:i=>{n=i},setScheduler:i=>{o=i}}}var _t=bA(),Ro,zg,Vw=(zg=class{constructor(){Ee(this,Ro)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cA(this.gcTime)&&fe(this,Ro,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Uc?1/0:5*60*1e3))}clearGcTimeout(){I(this,Ro)&&(clearTimeout(I(this,Ro)),fe(this,Ro,void 0))}},Ro=new WeakMap,zg),Ps,Ao,tr,Po,gt,fi,jo,xr,dn,Bg,SA=(Bg=class extends Vw{constructor(t){super();Ee(this,xr);Ee(this,Ps);Ee(this,Ao);Ee(this,tr);Ee(this,Po);Ee(this,gt);Ee(this,fi);Ee(this,jo);fe(this,jo,!1),fe(this,fi,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,Po,t.client),fe(this,tr,I(this,Po).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,Ps,EA(this.options)),this.state=t.state??I(this,Ps),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,gt))==null?void 0:t.promise}setOptions(t){this.options={...I(this,fi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,tr).remove(this)}setData(t,r){const n=pA(this.state.data,t,this.options);return ht(this,xr,dn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ht(this,xr,dn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=I(this,gt))==null?void 0:n.promise;return(o=I(this,gt))==null||o.cancel(t),r?r.then(yr).catch(yr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,Ps))}isActive(){return this.observers.some(t=>dA(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>yf(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:!uA(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,gt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,gt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,tr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(I(this,gt)&&(I(this,jo)?I(this,gt).cancel({revert:!0}):I(this,gt).cancelRetry()),this.scheduleGc()),I(this,tr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ht(this,xr,dn).call(this,{type:"invalidate"})}fetch(t,r){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(I(this,gt))return I(this,gt).continueRetry(),I(this,gt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(fe(this,jo,!0),n.signal)})},s=()=>{const h=Mw(this.options,r),b=(()=>{const v={client:I(this,Po),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return fe(this,jo,!1),this.options.persister?this.options.persister(h,b,this):h(b)},i=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:I(this,Po),state:this.state,fetchFn:s};return o(h),h})();(c=this.options.behavior)==null||c.onFetch(i,this),fe(this,Ao,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=i.fetchOptions)==null?void 0:d.meta))&&ht(this,xr,dn).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta});const l=h=>{var g,b,v,w;Ku(h)&&h.silent||ht(this,xr,dn).call(this,{type:"error",error:h}),Ku(h)||((b=(g=I(this,tr).config).onError)==null||b.call(g,h,this),(w=(v=I(this,tr).config).onSettled)==null||w.call(v,this.state.data,h,this)),this.scheduleGc()};return fe(this,gt,$w({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var g,b,v,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(y){l(y);return}(b=(g=I(this,tr).config).onSuccess)==null||b.call(g,h,this),(w=(v=I(this,tr).config).onSettled)==null||w.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,g)=>{ht(this,xr,dn).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{ht(this,xr,dn).call(this,{type:"pause"})},onContinue:()=>{ht(this,xr,dn).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),I(this,gt).start()}},Ps=new WeakMap,Ao=new WeakMap,tr=new WeakMap,Po=new WeakMap,gt=new WeakMap,fi=new WeakMap,jo=new WeakMap,xr=new WeakSet,dn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...CA(n.data,this.options),fetchMeta:t.meta??null};case"success":return fe(this,Ao,void 0),{...n,data:t.data,dataUpdateCount:n.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 Ku(o)&&o.revert&&I(this,Ao)?{...I(this,Ao),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),_t.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),I(this,tr).notify({query:this,type:"updated",action:t})})},Bg);function CA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function EA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $r,Ug,_A=(Ug=class extends Bc{constructor(t={}){super();Ee(this,$r);this.config=t,fe(this,$r,new Map)}build(t,r,n){const o=r.queryKey,s=r.queryHash??ch(o,r);let a=this.get(s);return a||(a=new SA({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){I(this,$r).has(t.queryHash)||(I(this,$r).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=I(this,$r).get(t.queryHash);r&&(t.destroy(),r===t&&I(this,$r).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,$r).get(t)}getAll(){return[...I(this,$r).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>kv(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>kv(t,n)):r}notify(t){_t.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){_t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$r=new WeakMap,Ug),Vr,St,Oo,zr,In,Hg,kA=(Hg=class extends Vw{constructor(t){super();Ee(this,zr);Ee(this,Vr);Ee(this,St);Ee(this,Oo);this.mutationId=t.mutationId,fe(this,St,t.mutationCache),fe(this,Vr,[]),this.state=t.state||TA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,Vr).includes(t)||(I(this,Vr).push(t),this.clearGcTimeout(),I(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,Vr,I(this,Vr).filter(r=>r!==t)),this.scheduleGc(),I(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,Vr).length||(this.state.status==="pending"?this.scheduleGc():I(this,St).remove(this))}continue(){var t;return((t=I(this,Oo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,i,l,c,d,f,h,g,b,v,w,y,m,x,S,C,k,_,N;const r=()=>{ht(this,zr,In).call(this,{type:"continue"})};fe(this,Oo,$w({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,M)=>{ht(this,zr,In).call(this,{type:"failed",failureCount:A,error:M})},onPause:()=>{ht(this,zr,In).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,St).canRun(this)}));const n=this.state.status==="pending",o=!I(this,Oo).canStart();try{if(n)r();else{ht(this,zr,In).call(this,{type:"pending",variables:t,isPaused:o}),await((a=(s=I(this,St).config).onMutate)==null?void 0:a.call(s,t,this));const M=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t));M!==this.state.context&&ht(this,zr,In).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const A=await I(this,Oo).start();return await((d=(c=I(this,St).config).onSuccess)==null?void 0:d.call(c,A,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,A,t,this.state.context)),await((b=(g=I(this,St).config).onSettled)==null?void 0:b.call(g,A,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,A,null,t,this.state.context)),ht(this,zr,In).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(y=I(this,St).config).onError)==null?void 0:m.call(y,A,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,A,t,this.state.context)),await((k=(C=I(this,St).config).onSettled)==null?void 0:k.call(C,void 0,A,this.state.variables,this.state.context,this)),await((N=(_=this.options).onSettled)==null?void 0:N.call(_,void 0,A,t,this.state.context)),A}finally{ht(this,zr,In).call(this,{type:"error",error:A})}}finally{I(this,St).runNext(this)}}},Vr=new WeakMap,St=new WeakMap,Oo=new WeakMap,zr=new WeakSet,In=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),_t.batch(()=>{I(this,Vr).forEach(n=>{n.onMutationUpdate(t)}),I(this,St).notify({mutation:this,type:"updated",action:t})})},Hg);function TA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,wr,pi,Wg,NA=(Wg=class extends Bc{constructor(t={}){super();Ee(this,hn);Ee(this,wr);Ee(this,pi);this.config=t,fe(this,hn,new Set),fe(this,wr,new Map),fe(this,pi,0)}build(t,r,n){const o=new kA({mutationCache:this,mutationId:++Ni(this,pi)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){I(this,hn).add(t);const r=Zi(t);if(typeof r=="string"){const n=I(this,wr).get(r);n?n.push(t):I(this,wr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,hn).delete(t)){const r=Zi(t);if(typeof r=="string"){const n=I(this,wr).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&I(this,wr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Zi(t);if(typeof r=="string"){const n=I(this,wr).get(r),o=n==null?void 0:n.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=Zi(t);if(typeof r=="string"){const o=(n=I(this,wr).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_t.batch(()=>{I(this,hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,hn).clear(),I(this,wr).clear()})}getAll(){return Array.from(I(this,hn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Tv(r,n))}findAll(t={}){return this.getAll().filter(r=>Tv(t,r))}notify(t){_t.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return _t.batch(()=>Promise.all(t.map(r=>r.continue().catch(yr))))}},hn=new WeakMap,wr=new WeakMap,pi=new WeakMap,Wg);function Zi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Av(e){return{onFetch:(t,r)=>{var d,f,h,g,b;const n=t.options,o=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],a=((b=t.state.data)==null?void 0:b.pageParams)||[];let i={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},y=Mw(t.options,t.fetchOptions),m=async(x,S,C)=>{if(v)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const _=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return w(B),B})(),N=await y(_),{maxPages:A}=t.options,M=C?mA:hA;return{pages:M(x.pages,N,A),pageParams:M(x.pageParams,S,A)}};if(o&&s.length){const x=o==="backward",S=x?RA:Pv,C={pages:s,pageParams:a},k=S(n,C);i=await m(C,k,x)}else{const x=e??s.length;do{const S=l===0?a[0]??n.initialPageParam:Pv(n,i);if(l>0&&S==null)break;i=await m(i,S),l++}while(l{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function Pv(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function RA(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var He,Un,Hn,js,Os,Wn,Is,Ms,qg,AA=(qg=class{constructor(e={}){Ee(this,He);Ee(this,Un);Ee(this,Hn);Ee(this,js);Ee(this,Os);Ee(this,Wn);Ee(this,Is);Ee(this,Ms);fe(this,He,e.queryCache||new _A),fe(this,Un,e.mutationCache||new NA),fe(this,Hn,e.defaultOptions||{}),fe(this,js,new Map),fe(this,Os,new Map),fe(this,Wn,0)}mount(){Ni(this,Wn)._++,I(this,Wn)===1&&(fe(this,Is,Dw.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,He).onFocus())})),fe(this,Ms,Jl.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,He).onOnline())})))}unmount(){var e,t;Ni(this,Wn)._--,I(this,Wn)===0&&((e=I(this,Is))==null||e.call(this),fe(this,Is,void 0),(t=I(this,Ms))==null||t.call(this),fe(this,Ms,void 0))}isFetching(e){return I(this,He).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Un).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,He).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=I(this,He).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(yf(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return I(this,He).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=I(this,He).get(n.queryHash),s=o==null?void 0:o.state.data,a=lA(t,s);if(a!==void 0)return I(this,He).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return _t.batch(()=>I(this,He).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,He).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=I(this,He);_t.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=I(this,He);return _t.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=_t.batch(()=>I(this,He).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(yr).catch(yr)}invalidateQueries(e,t={}){return _t.batch(()=>(I(this,He).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=_t.batch(()=>I(this,He).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(yr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(yr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=I(this,He).build(this,t);return r.isStaleByTime(yf(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yr).catch(yr)}fetchInfiniteQuery(e){return e.behavior=Av(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yr).catch(yr)}ensureInfiniteQueryData(e){return e.behavior=Av(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jl.isOnline()?I(this,Un).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,He)}getMutationCache(){return I(this,Un)}getDefaultOptions(){return I(this,Hn)}setDefaultOptions(e){fe(this,Hn,e)}setQueryDefaults(e,t){I(this,js).set(li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,js).values()],r={};return t.forEach(n=>{ci(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){I(this,Os).set(li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Os).values()],r={};return t.forEach(n=>{ci(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,Hn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ch(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===uh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,Hn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,He).clear(),I(this,Un).clear()}},He=new WeakMap,Un=new WeakMap,Hn=new WeakMap,js=new WeakMap,Os=new WeakMap,Wn=new WeakMap,Is=new WeakMap,Ms=new WeakMap,qg),PA=p.createContext(void 0),jA=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(PA.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 ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IA(){return Math.random().toString(36).substr(2,8)}function Ov(e,t){return{usr:e.state,key:e.key,idx:t}}function wf(e,t,r,n){return r===void 0&&(r=null),ec({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hc(t):t,{state:r,key:t&&t.key||n||IA()})}function Bw(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Hc(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function MA(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,a=o.history,i=Kn.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(ec({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){i=Kn.Pop;let w=d(),y=w==null?null:w-c;c=w,l&&l({action:i,location:v.location,delta:y})}function h(w,y){i=Kn.Push;let m=wf(v.location,w,y);c=d()+1;let x=Ov(m,c),S=v.createHref(m);try{a.pushState(x,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}s&&l&&l({action:i,location:v.location,delta:1})}function g(w,y){i=Kn.Replace;let m=wf(v.location,w,y);c=d();let x=Ov(m,c),S=v.createHref(m);a.replaceState(x,"",S),s&&l&&l({action:i,location:v.location,delta:0})}function b(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Bw(w);return m=m.replace(/ $/,"%20"),$t(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let v={get action(){return i},get location(){return e(o,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(jv,f),l=w,()=>{o.removeEventListener(jv,f),l=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let y=b(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:g,go(w){return a.go(w)}};return v}var Iv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Iv||(Iv={}));function DA(e,t,r){return r===void 0&&(r="/"),LA(e,t,r,!1)}function LA(e,t,r,n){let o=typeof t=="string"?Hc(t):t,s=Ww(o.pathname||"/",r);if(s==null)return null;let a=Uw(e);FA(a);let i=null;for(let l=0;i==null&&l{let l={relativePath:i===void 0?s.path||"":i,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&($t(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Es([n,l.relativePath]),d=r.concat(l);s.children&&s.children.length>0&&($t(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Uw(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:WA(c,s.index),routesMeta:d})};return e.forEach((s,a)=>{var i;if(s.path===""||!((i=s.path)!=null&&i.includes("?")))o(s,a);else for(let l of Hw(s.path))o(s,a,l)}),t}function Hw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let a=Hw(n.join("/")),i=[];return i.push(...a.map(l=>l===""?s:[s,l].join("/"))),o&&i.push(...a),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function FA(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:qA(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const $A=/^:[\w-]+$/,VA=3,zA=2,BA=1,UA=10,HA=-2,Mv=e=>e==="*";function WA(e,t){let r=e.split("/"),n=r.length;return r.some(Mv)&&(n+=HA),t&&(n+=zA),r.filter(o=>!Mv(o)).reduce((o,s)=>o+($A.test(s)?VA:s===""?BA:UA),n)}function qA(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function GA(e,t,r){let{routesMeta:n}=e,o={},s="/",a=[];for(let i=0;i{let{paramName:h,isOptional:g}=d;if(h==="*"){let v=i[f]||"";a=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const b=i[f];return g&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:a,pattern:e}}function KA(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),zw(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,i,l)=>(n.push({paramName:i,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function QA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zw(!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 Ww(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const Es=e=>e.join("/").replace(/\/\/+/g,"/"),ZA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function YA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qw=["post","put","patch","delete"];new Set(qw);const XA=["get",...qw];new Set(XA);/** * 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 tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},i,w.params),pathname:Es([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Es([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,r,n);return t&&v?p.createElement(Wc.Provider,{value:{location:tc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Kn.Pop}},v):v}function nP(){let e=dP(),t=YA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,null)}const oP=p.createElement(nP,null);class sP extends p.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?p.createElement(qc.Provider,{value:this.props.routeContext},p.createElement(Kw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aP(e){let{routeContext:t,match:r,children:n}=e,o=p.useContext(JA);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(qc.Provider,{value:t},n)}function iP(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=(o=r)==null?void 0:o.errors;if(i!=null){let d=a.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);d>=0||$t(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let g,b=!1,v=null,w=null;r&&(g=i&&f.route.id?i[f.route.id]:void 0,v=f.route.errorElement||oP,l&&(c<0&&h===0?(b=!0,w=null):c===h&&(b=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),m=()=>{let x;return g?x=v:b?x=w:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,p.createElement(aP,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(sP,{location:r.location,revalidation:r.revalidation,component:v,error:g,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var bf=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}(bf||{});function lP(e){let t=p.useContext(eP);return t||$t(!1),t}function cP(e){let t=p.useContext(qc);return t||$t(!1),t}function uP(e){let t=cP(),r=t.matches[t.matches.length-1];return r.route.id||$t(!1),r.route.id}function dP(){var e;let t=p.useContext(Kw),r=lP(bf.UseRouteError),n=uP(bf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function fP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Sf(e){$t(!1)}function pP(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Kn.Pop,navigator:s,static:a=!1,future:i}=e;dh()&&$t(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:s,static:a,future:tc({v7_relativeSplatPath:!1},i)}),[l,i,s,a]);typeof n=="string"&&(n=Hc(n));let{pathname:d="/",search:f="",hash:h="",state:g=null,key:b="default"}=n,v=p.useMemo(()=>{let w=Ww(d,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:g,key:b},navigationType:o}},[l,d,f,h,g,b,o]);return v==null?null:p.createElement(Gw.Provider,{value:c},p.createElement(Wc.Provider,{children:r,value:v}))}function hP(e){let{children:t,location:r}=e;return tP(Cf(t),r)}new Promise(()=>{});function Cf(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,o)=>{if(!p.isValidElement(n))return;let s=[...t,o];if(n.type===p.Fragment){r.push.apply(r,Cf(n.props.children,s));return}n.type!==Sf&&$t(!1),!n.props.index||!n.props.children||$t(!1);let a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Cf(n.props.children,s)),r.push(a)}),r}/** * 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 mP="6";try{window.__reactRouterVersion=mP}catch{}const vP="startTransition",Lv=Jf[vP];function gP(e){let{basename:t,children:r,future:n,window:o}=e,s=p.useRef();s.current==null&&(s.current=OA({window:o,v5Compat:!0}));let a=s.current,[i,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=p.useCallback(f=>{c&&Lv?Lv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(d),[a,d]),p.useEffect(()=>fP(n),[n]),p.createElement(pP,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a,future:n})}var Fv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Fv||(Fv={}));var $v;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($v||($v={}));var yP=typeof Element<"u",xP=typeof Map=="function",wP=typeof Set=="function",bP=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gl(e[n],t[n]))return!1;return!0}var s;if(xP&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!gl(n.value[1],t.get(n.value[0])))return!1;return!0}if(wP&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(bP&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(yP&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!gl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var SP=function(t,r){try{return gl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const CP=ea(SP);var EP=function(e,t,r,n,o,s,a,i){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,s,a,i],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},_P=EP;const Vv=ea(_P);var kP=function(t,r,n,o){var s=n?n.call(o,t,r):void 0;if(s!==void 0)return!!s;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),i=Object.keys(r);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Zw||{}),Qu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zv=Object.values(Zw),fh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},NP=Object.entries(fh).reduce((e,[t,r])=>(e[r]=t,e),{}),_r="data-rh",_s={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ks=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},RP=e=>{let t=ks(e,"title");const r=ks(e,_s.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=ks(e,_s.DEFAULT_TITLE);return t||n||void 0},AP=e=>ks(e,_s.ON_CHANGE_CLIENT_STATE)||(()=>{}),Zu=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),PP=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const o=Object.keys(n);for(let s=0;sconsole&&typeof console.warn=="function"&&console.warn(e),ya=(e,t,r)=>{const n={};return r.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&jP(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,s)=>{const a={};s.filter(l=>{let c;const d=Object.keys(l);for(let h=0;ho.push(l));const i=Object.keys(a);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let r=0;r({baseTag:PP(["href"],e),bodyAttributes:Zu("bodyAttributes",e),defer:ks(e,_s.DEFER),encode:ks(e,_s.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Zu("htmlAttributes",e),linkTags:ya("link",["rel","href"],e),metaTags:ya("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ya("noscript",["innerHTML"],e),onChangeClientState:AP(e),scriptTags:ya("script",["src","innerHTML"],e),styleTags:ya("style",["cssText"],e),title:RP(e),titleAttributes:Zu("titleAttributes",e),prioritizeSeoTags:OP(e,_s.PRIORITIZE_SEO_TAGS)}),Yw=e=>Array.isArray(e)?e.join(""):e,MP=(e,t)=>{const r=Object.keys(e);for(let n=0;nArray.isArray(e)?e.reduce((r,n)=>(MP(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Bv=(e,t)=>({...e,[t]:void 0}),DP=["noscript","script","style"],Ef=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Xw=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),LP=(e,t,r,n)=>{const o=Xw(r),s=Yw(t);return o?`<${e} ${_r}="true" ${o}>${Ef(s,n)}`:`<${e} ${_r}="true">${Ef(s,n)}`},FP=(e,t,r=!0)=>t.reduce((n,o)=>{const s=o,a=Object.keys(s).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof s[d]>"u"?d:`${d}="${Ef(s[d],r)}"`;return c?`${c} ${f}`:f},""),i=s.innerHTML||s.cssText||"",l=DP.indexOf(e)===-1;return`${n}<${e} ${_r}="true" ${a}${l?"/>":`>${i}`}`},""),Jw=(e,t={})=>Object.keys(e).reduce((r,n)=>{const o=fh[n];return r[o||n]=e[n],r},t),$P=(e,t,r)=>{const n={key:t,[_r]:!0},o=Jw(r,n);return[R.createElement("title",o,t)]},yl=(e,t)=>t.map((r,n)=>{const o={key:n,[_r]:!0};return Object.keys(r).forEach(s=>{const i=fh[s]||s;if(i==="innerHTML"||i==="cssText"){const l=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[i]=r[s]}),R.createElement(e,o)}),er=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>$P(e,t.title,t.titleAttributes),toString:()=>LP(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Jw(t),toString:()=>Xw(t)};default:return{toComponent:()=>yl(e,t),toString:()=>FP(e,t,r)}}},VP=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const o=Yu(e,Qu.meta),s=Yu(t,Qu.link),a=Yu(r,Qu.script);return{priorityMethods:{toComponent:()=>[...yl("meta",o.priority),...yl("link",s.priority),...yl("script",a.priority)],toString:()=>`${er("meta",o.priority,n)} ${er("link",s.priority,n)} ${er("script",a.priority,n)}`},metaTags:o.default,linkTags:s.default,scriptTags:a.default}},zP=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:o,noscriptTags:s,styleTags:a,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:d,metaTags:f,scriptTags:h}=VP(e)),{priority:g,base:er("base",t,n),bodyAttributes:er("bodyAttributes",r,n),htmlAttributes:er("htmlAttributes",o,n),link:er("link",d,n),meta:er("meta",f,n),noscript:er("noscript",s,n),script:er("script",h,n),style:er("style",a,n),title:er("title",{title:i,titleAttributes:l},n)}},_f=zP,Yi=[],e1=!!(typeof window<"u"&&window.document&&window.document.createElement),kf=class{constructor(e,t){ln(this,"instances",[]);ln(this,"canUseDOM",e1);ln(this,"context");ln(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Yi:this.instances,add:e=>{(this.canUseDOM?Yi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Yi:this.instances).indexOf(e);(this.canUseDOM?Yi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=_f({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},BP={},t1=R.createContext(BP),Io,r1=(Io=class extends p.Component{constructor(r){super(r);ln(this,"helmetData");this.helmetData=new kf(this.props.context||{},Io.canUseDOM)}render(){return R.createElement(t1.Provider,{value:this.helmetData.value},this.props.children)}},ln(Io,"canUseDOM",e1),Io),Yo=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${_r}]`),o=[].slice.call(n),s=[];let a;return t&&t.length&&t.forEach(i=>{const l=document.createElement(e);for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c))if(c==="innerHTML")l.innerHTML=i.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText));else{const d=c,f=typeof i[d]>"u"?"":i[d];l.setAttribute(c,f)}l.setAttribute(_r,"true"),o.some((c,d)=>(a=d,l.isEqualNode(c)))?o.splice(a,1):s.push(l)}),o.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),s.forEach(i=>r.appendChild(i)),{oldTags:o,newTags:s}},Tf=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(_r),o=n?n.split(","):[],s=[...o],a=Object.keys(t);for(const i of a){const l=t[i]||"";r.getAttribute(i)!==l&&r.setAttribute(i,l),o.indexOf(i)===-1&&o.push(i);const c=s.indexOf(i);c!==-1&&s.splice(c,1)}for(let i=s.length-1;i>=0;i-=1)r.removeAttribute(s[i]);o.length===s.length?r.removeAttribute(_r):r.getAttribute(_r)!==a.join(",")&&r.setAttribute(_r,a.join(","))},UP=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Yw(e)),Tf("title",t)},Uv=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:o,linkTags:s,metaTags:a,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:h}=e;Tf("body",n),Tf("html",o),UP(f,h);const g={baseTag:Yo("base",r),linkTags:Yo("link",s),metaTags:Yo("meta",a),noscriptTags:Yo("noscript",i),scriptTags:Yo("script",c),styleTags:Yo("style",d)},b={},v={};Object.keys(g).forEach(w=>{const{newTags:y,oldTags:m}=g[w];y.length&&(b[w]=y),m.length&&(v[w]=g[w].oldTags)}),t&&t(),l(e,b,v)},xa=null,HP=e=>{xa&&cancelAnimationFrame(xa),e.defer?xa=requestAnimationFrame(()=>{Uv(e,()=>{xa=null})}):(Uv(e),xa=null)},WP=HP,Hv=class extends p.Component{constructor(){super(...arguments);ln(this,"rendered",!1)}shouldComponentUpdate(t){return!TP(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const o=IP(t.get().map(s=>{const a={...s.props};return delete a.context,a}));r1.canUseDOM?WP(o):_f&&(n=_f(o)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},pd,qP=(pd=class extends p.Component{shouldComponentUpdate(e){return!CP(Bv(this.props,"helmetData"),Bv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return Vv(zv.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Vv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return R.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:o,...s}=n.props,a=Object.keys(s).reduce((l,c)=>(l[NP[c]||c]=s[c],l),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,o),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,a,o);break;default:t=this.mapObjectTypeChildren(n,t,a,o);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof kf)){const o=n;n=new kf(o.context,!0),delete r.helmetData}return n?R.createElement(Hv,{...r,context:n.value}):R.createElement(t1.Consumer,null,o=>R.createElement(Hv,{...r,context:o}))}},ln(pd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),pd);const GP=Gp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nt=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const a=n?c0:"button";return u.jsx(a,{className:ae(GP({variant:t,size:r,className:e})),ref:s,...o})});nt.displayName="Button";const qs=({className:e="",size:t=24})=>u.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:u.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z",fill:"#25D366"})}),ar={number:"551151991450",displayNumber:"(11) 51991450",getWhatsAppLink:(e="Olá, gostaria de falar com um especialista")=>`https://wa.me/551151991450?text=${encodeURIComponent(e)}`},KP=()=>{const e=ar.displayNumber,t=ar.getWhatsAppLink("Olá, gostaria de falar com um advogado trabalhista");return u.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:u.jsxs("div",{className:"container mx-auto px-4 h-20 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary flex items-center justify-center",children:u.jsx("span",{className:"font-bold text-primary-foreground text-4xl",children:"⚖️"})}),u.jsxs("div",{children:[u.jsx("h1",{className:"text-xl font-bold text-foreground",children:"DireitoTrabalhista"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Advogado Especializado "})]})]}),u.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[u.jsxs("a",{href:`tel:${e.replace(/\D/g,"")}`,className:"flex items-center gap-2 text-foreground hover:text-primary transition-colors",children:[u.jsx(df,{className:"w-4 h-4"}),u.jsx("span",{className:"font-medium",children:e})]}),u.jsx(nt,{asChild:!0,variant:"default",size:"lg",className:"gap-2",children:u.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:16}),"Fale Agora!"]})})]}),u.jsx(nt,{asChild:!0,variant:"default",size:"sm",className:"md:hidden gap-2",children:u.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:16}),"Contato"]})})]})})},QP=()=>{const e=ar.getWhatsAppLink("Olá, gostaria de falar com um advogado trabalhista");return u.jsxs("section",{className:"relative min-h-[85vh] md:min-h-screen pt-20 flex items-center overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 hero-gradient opacity-10"}),u.jsx("div",{className:"container mx-auto px-4 py-8 md:py-20 relative z-10",children:u.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-4 md:space-y-8 animate-fade-in",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent/10 text-accent px-4 py-2 rounded-full text-sm font-medium",children:[u.jsx(Kl,{className:"w-4 h-4"}),"Atendimento Online - 100% Sigiloso"]}),u.jsxs("h1",{className:"text-3xl md:text-4xl font-bold text-foreground leading-tight lg:text-5xl",children:["Está com dúvidas na sua rescisão?",u.jsx("br",{}),u.jsx("span",{className:"text-primary text-3xl",children:"Saiba se possui diferenças ou horas extras a receber."})]}),u.jsx("div",{className:"flex justify-center pt-4",children:u.jsx(nt,{asChild:!0,size:"lg",variant:"default",className:"text-lg px-8 py-6 animate-pulse",children:u.jsx("a",{href:"#calculadora",children:"Clique Aqui - Utilize nossa Calculadora"})})}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto lg:text-lg",children:"Equipe especializada em Direito do Trabalho. Avaliação Rápida e Sem Compromisso."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center pt-4",children:[u.jsx(nt,{asChild:!0,size:"lg",className:"text-lg px-8 py-6 gold-glow",children:u.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"gap-3",children:["Fale Agora!!!",u.jsx(qs,{size:20})]})}),u.jsx(nt,{asChild:!0,variant:"outline",size:"lg",className:"text-lg px-8 py-6",children:u.jsx("a",{href:"#servicos",children:"Conheça nossos serviços"})})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 pt-6 md:pt-12 max-w-3xl mx-auto",children:[u.jsxs("div",{className:"flex flex-col items-center gap-2 p-2 md:p-4",children:[u.jsx(Kl,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"100% Sigiloso"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Suas informações protegidas"})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[u.jsx(Zp,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"Resposta Rápida"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Retorno imediato"})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[u.jsx(Yp,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"Atendimento Online"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"De qualquer lugar"})]})]})]})})]})},Wr=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Wr.displayName="Card";const n1=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("flex flex-col space-y-1.5 p-6",e),...t}));n1.displayName="CardHeader";const o1=p.forwardRef(({className:e,...t},r)=>u.jsx("h3",{ref:r,className:ae("text-2xl font-semibold leading-none tracking-tight",e),...t}));o1.displayName="CardTitle";const s1=p.forwardRef(({className:e,...t},r)=>u.jsx("p",{ref:r,className:ae("text-sm text-muted-foreground",e),...t}));s1.displayName="CardDescription";const ph=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("p-6 pt-0",e),...t}));ph.displayName="CardContent";const ZP=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("flex items-center p-6 pt-0",e),...t}));ZP.displayName="CardFooter";const YP=[{icon:V0,title:"Reclamações Trabalhistas",description:"Defesa completa dos seus direitos"},{icon:aT,title:"Demissão sem Justa Causa",description:"Análise e contestação de demissões indevidas"},{icon:$0,title:"Rescisão Indireta",description:"Quando o empregador descumpre obrigações"},{icon:Zp,title:"Horas Extras não Pagas",description:"Recuperação de horas extras trabalhadas"},{icon:U0,title:"Acúmulo/Desvio de Função",description:"Direito a diferenças salariais"},{icon:sT,title:"Assédio Moral ou Sexual",description:"Proteção e reparação de danos"},{icon:rT,title:"Vínculo sem Registro",description:"Regularização de carteira de trabalho"},{icon:Yk,title:"Férias e 13º Salário",description:"Cobrança de verbas não recebidas"},{icon:Zk,title:"Acidente de Trabalho",description:"Indenizações e auxílios"},{icon:eT,title:"Verbas Rescisórias",description:"Garantia do recebimento de FGTS e outros"}],XP=()=>u.jsx("section",{id:"servicos",className:"py-8 md:py-16 bg-secondary/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Como podemos ",u.jsx("span",{className:"text-primary",children:"te ajudar?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Especialistas em todas as áreas do Direito do Trabalho"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-6 max-w-6xl mx-auto",children:YP.map((e,t)=>u.jsx(Wr,{className:"p-4 md:p-6 hover-lift cursor-pointer border-2 hover:border-accent transition-all",style:{animationDelay:`${t*.1}s`},children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:u.jsx(e.icon,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("h3",{className:"font-semibold text-lg text-foreground",children:e.title}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})]})},t))})]})}),JP=[{icon:Qk,value:"+10 anos",label:"de experiência em Direito do Trabalho"},{icon:U0,value:"+200",label:"clientes atendidos com sucesso"},{icon:Kl,value:"100%",label:"de sigilo e confidencialidade"},{icon:B0,value:"5.0",label:"avaliação dos nossos clientes"}],ej=[{name:"M S",role:"Auxiliar de Limpeza",text:"Fui demitida sem receber minhas verbas. A equipe me ajudou a recuperar tudo que tinha direito. Recomendo!",rating:5},{name:"J P",role:"Zelador de Condominio",text:"Trabalhei 2 anos sem registro. Graças ao atendimento rápido, consegui ter meus direitos reconhecidos.",rating:5},{name:"J C",role:"Porteiro",text:"Horas extras nunca pagas. A equipe foi atenciosa e conseguiu um acordo excelente para mim.",rating:5}],tj=()=>u.jsx("section",{className:"py-8 md:py-16 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Por que ",u.jsx("span",{className:"text-primary",children:"nos escolher?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Experiência e compromisso com seus direitos"})]}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 gap-3 md:gap-6 mb-8 md:mb-12 max-w-6xl mx-auto",children:JP.map((e,t)=>u.jsxs(Wr,{className:"p-4 md:p-6 text-center hover-lift border-2 hover:border-accent transition-all",children:[u.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-2 md:mb-4",children:u.jsx(e.icon,{className:"w-6 h-6 md:w-8 md:h-8 text-accent"})}),u.jsx("p",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-primary mb-2",children:e.value}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.label})]},t))}),u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsx("h3",{className:"text-xl md:text-2xl font-bold text-center text-foreground mb-6 md:mb-8",children:"O que nossos clientes dizem"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 md:gap-6",children:ej.map((e,t)=>u.jsxs(Wr,{className:"p-6 hover-lift",children:[u.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((r,n)=>u.jsx(B0,{className:"w-5 h-5 fill-accent text-accent"},n))}),u.jsxs("p",{className:"text-muted-foreground mb-4 italic",children:['"',e.text,'"']}),u.jsxs("div",{className:"border-t pt-4",children:[u.jsx("p",{className:"font-semibold text-foreground",children:e.name}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]})]},t))})]})]})}),Wv=[{icon:Yp,number:"1",title:"Entre em Contato",description:"Envie sua mensagem pelo WhatsApp ou preencha o formulário abaixo"},{icon:oT,number:"2",title:"Avaliação Gratuita",description:"Nossa equipe analisa seu caso sem nenhum custo"},{icon:tT,number:"3",title:"Orientação Imediata",description:"Receba sua orientação jurídica e próximos passos rapidamente"}],rj=()=>{const e=ar.getWhatsAppLink("Gostaria de avaliar meu caso");return u.jsx("section",{className:"py-8 md:py-16 bg-secondary/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Como funciona o ",u.jsx("span",{className:"text-primary",children:"atendimento?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Processo simples e rápido em 3 passos"})]}),u.jsxs("div",{className:"max-w-5xl mx-auto",children:[u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8 mb-8 md:mb-12",children:Wv.map((t,r)=>u.jsxs("div",{className:"relative",children:[ru.jsx(Nf.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Nf.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(cj,{...e,ref:t})})}));l1.displayName=Ci;var cj=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=p.useRef(null),g=ye(t,h),b=Si(s),[v,w]=Jr({prop:a,defaultProp:i??null,onChange:l,caller:Ci}),[y,m]=p.useState(!1),x=Je(c),S=a1(r),C=p.useRef(!1),[k,_]=p.useState(0);return p.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Xu,x),()=>N.removeEventListener(Xu,x)},[x]),u.jsx(ij,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:p.useCallback(N=>w(N),[w]),onItemShiftTab:p.useCallback(()=>m(!0),[]),onFocusableItemAdd:p.useCallback(()=>_(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>_(N=>N-1),[]),children:u.jsx(oe.div,{tabIndex:y||k===0?-1:0,"data-orientation":n,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:te(e.onMouseDown,()=>{C.current=!0}),onFocus:te(e.onFocus,N=>{const A=!C.current;if(N.target===N.currentTarget&&A&&!y){const M=new CustomEvent(Xu,oj);if(N.currentTarget.dispatchEvent(M),!M.defaultPrevented){const B=S().filter(z=>z.focusable),D=B.find(z=>z.active),U=B.find(z=>z.id===v),X=[D,U,...B].filter(Boolean).map(z=>z.ref.current);d1(X,d)}}C.current=!1}),onBlur:te(e.onBlur,()=>m(!1))})})}),c1="RovingFocusGroupItem",u1=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=Zr(),c=s||l,d=lj(c1,r),f=d.currentTabStopId===c,h=a1(r),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(n)return g(),()=>b()},[n,g,b]),u.jsx(Nf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:u.jsx(oe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:te(e.onMouseDown,w=>{n?d.onItemFocus(c):w.preventDefault()}),onFocus:te(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:te(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const y=fj(w,d.orientation,d.dir);if(y!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(w.currentTarget);x=d.loop?pj(x,S+1):x.slice(S+1)}setTimeout(()=>d1(x))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:v!=null}):a})})});u1.displayName=c1;var uj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fj(e,t,r){const n=dj(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return uj[n]}function d1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pj(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hj=l1,mj=u1,Gc="Tabs",[vj,rD]=Xt(Gc,[i1]),f1=i1(),[gj,hh]=vj(Gc),p1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...c}=e,d=Si(i),[f,h]=Jr({prop:n,onChange:o,defaultProp:s??"",caller:Gc});return u.jsx(gj,{scope:r,baseId:Zr(),value:f,onValueChange:h,orientation:a,dir:d,activationMode:l,children:u.jsx(oe.div,{dir:d,"data-orientation":a,...c,ref:t})})});p1.displayName=Gc;var h1="TabsList",m1=p.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=hh(h1,r),a=f1(r);return u.jsx(hj,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:u.jsx(oe.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});m1.displayName=h1;var v1="TabsTrigger",g1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,a=hh(v1,r),i=f1(r),l=w1(a.baseId,n),c=b1(a.baseId,n),d=n===a.value;return u.jsx(mj,{asChild:!0,...i,focusable:!o,active:d,children:u.jsx(oe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:te(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(n):f.preventDefault()}),onKeyDown:te(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(n)}),onFocus:te(e.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!o&&f&&a.onValueChange(n)})})})});g1.displayName=v1;var y1="TabsContent",x1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:s,...a}=e,i=hh(y1,r),l=w1(i.baseId,n),c=b1(i.baseId,n),d=n===i.value,f=p.useRef(d);return p.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),u.jsx(Jt,{present:o||d,children:({present:h})=>u.jsx(oe.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});x1.displayName=y1;function w1(e,t){return`${e}-trigger-${t}`}function b1(e,t){return`${e}-content-${t}`}var yj=p1,S1=m1,C1=g1,E1=x1;const xj=yj,_1=p.forwardRef(({className:e,...t},r)=>u.jsx(S1,{ref:r,className:ae("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));_1.displayName=S1.displayName;const xl=p.forwardRef(({className:e,...t},r)=>u.jsx(C1,{ref:r,className:ae("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));xl.displayName=C1.displayName;const wl=p.forwardRef(({className:e,...t},r)=>u.jsx(E1,{ref:r,className:ae("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));wl.displayName=E1.displayName;var Ei=e=>e.type==="checkbox",To=e=>e instanceof Date,Et=e=>e==null;const k1=e=>typeof e=="object";var Ze=e=>!Et(e)&&!Array.isArray(e)&&k1(e)&&!To(e),T1=e=>Ze(e)&&e.target?Ei(e.target)?e.target.checked:e.target.value:e,wj=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,N1=(e,t)=>e.has(wj(t)),bj=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},mh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function et(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(mh&&(e instanceof Blob||n))&&(r||Ze(e)))if(t=r?[]:{},!r&&!bj(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=et(e[o]));else return e;return t}var Kc=e=>/^\w*$/.test(e),Ke=e=>e===void 0,vh=e=>Array.isArray(e)?e.filter(Boolean):[],gh=e=>vh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,t,r)=>{if(!t||!Ze(e))return r;const n=(Kc(t)?[t]:gh(t)).reduce((o,s)=>Et(o)?o:o[s],e);return Ke(n)||n===e?Ke(e[t])?r:e[t]:n},zt=e=>typeof e=="boolean",ke=(e,t,r)=>{let n=-1;const o=Kc(t)?[t]:gh(t),s=o.length,a=s-1;for(;++nR.useContext(yh),Sj=e=>{const{children:t,...r}=e;return R.createElement(yh.Provider,{value:r},t)};var R1=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Cr.all&&(t._proxyFormState[a]=!n||Cr.all),r&&(r[a]=!0),e[a]}});return o};const xh=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Cj(e){const t=Qc(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,i]=R.useState(r._formState),l=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return xh(()=>r._subscribe({name:o,formState:l.current,exact:s,callback:c=>{!n&&i({...r._formState,...c})}}),[o,n,s]),R.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),R.useMemo(()=>R1(a,r,l.current,!1),[a,r])}var qr=e=>typeof e=="string",A1=(e,t,r,n,o)=>qr(e)?(n&&t.watch.add(e),K(r,e,o)):Array.isArray(e)?e.map(s=>(n&&t.watch.add(s),K(r,s))):(n&&(t.watchAll=!0),r),Rf=e=>Et(e)||!k1(e);function mn(e,t,r=new WeakSet){if(Rf(e)||Rf(t))return e===t;if(To(e)&&To(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const i=t[s];if(To(a)&&To(i)||Ze(a)&&Ze(i)||Array.isArray(a)&&Array.isArray(i)?!mn(a,i,r):a!==i)return!1}}return!0}function Ej(e){const t=Qc(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:i}=e||{},l=R.useRef(o),c=R.useRef(i),d=R.useRef(void 0);c.current=i;const f=R.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,g]=R.useState(c.current?c.current(f):f);return xh(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:b=>{if(!s){const v=A1(n,r._names,b.values||r._formValues,!1,l.current);if(c.current){const w=c.current(v);mn(w,d.current)||(g(w),d.current=w)}else g(v)}}}),[r,s,n,a]),R.useEffect(()=>r._removeUnmounted()),h}function _j(e){const t=Qc(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,i=N1(o._names.array,r),l=R.useMemo(()=>K(o._formValues,r,K(o._defaultValues,r,a)),[o,r,a]),c=Ej({control:o,name:r,defaultValue:l,exact:!0}),d=Cj({control:o,name:r,exact:!0}),f=R.useRef(e),h=R.useRef(o.register(r,{...e.rules,value:c,...zt(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const g=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!K(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!K(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!K(d.validatingFields,r)},error:{enumerable:!0,get:()=>K(d.errors,r)}}),[d,r]),b=R.useCallback(m=>h.current.onChange({target:{value:T1(m),name:r},type:rc.CHANGE}),[r]),v=R.useCallback(()=>h.current.onBlur({target:{value:K(o._formValues,r),name:r},type:rc.BLUR}),[r,o._formValues]),w=R.useCallback(m=>{const x=K(o._fields,r);x&&m&&(x._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:S=>m.setCustomValidity(S),reportValidity:()=>m.reportValidity()})},[o._fields,r]),y=R.useMemo(()=>({name:r,value:c,...zt(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:b,onBlur:v,ref:w}),[r,n,d.disabled,b,v,w,c]);return R.useEffect(()=>{const m=o._options.shouldUnregister||s;o.register(r,{...f.current.rules,...zt(f.current.disabled)?{disabled:f.current.disabled}:{}});const x=(S,C)=>{const k=K(o._fields,S);k&&k._f&&(k._f.mount=C)};if(x(r,!0),m){const S=et(K(o._options.defaultValues,r));ke(o._defaultValues,r,S),Ke(K(o._formValues,r))&&ke(o._formValues,r,S)}return!i&&o.register(r),()=>{(i?m&&!o._state.action:m)?o.unregister(r):x(r,!1)}},[r,o,i,s]),R.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),R.useMemo(()=>({field:y,formState:d,fieldState:g}),[y,d,g])}const kj=e=>e.render(_j(e));var P1=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Va=e=>Array.isArray(e)?e:[e],qv=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},jt=e=>Ze(e)&&!Object.keys(e).length,wh=e=>e.type==="file",Er=e=>typeof e=="function",nc=e=>{if(!mh)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},j1=e=>e.type==="select-multiple",bh=e=>e.type==="radio",Tj=e=>bh(e)||Ei(e),Ju=e=>nc(e)&&e.isConnected;function Nj(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const t in e)if(Er(e[t]))return!0;return!1};function oc(e,t={}){const r=Array.isArray(e);if(Ze(e)||r)for(const n in e)Array.isArray(e[n])||Ze(e[n])&&!O1(e[n])?(t[n]=Array.isArray(e[n])?[]:{},oc(e[n],t[n])):Et(e[n])||(t[n]=!0);return t}function I1(e,t,r){const n=Array.isArray(e);if(Ze(e)||n)for(const o in e)Array.isArray(e[o])||Ze(e[o])&&!O1(e[o])?Ke(t)||Rf(r[o])?r[o]=Array.isArray(e[o])?oc(e[o],[]):{...oc(e[o])}:I1(e[o],Et(t)?{}:t[o],r[o]):r[o]=!mn(e[o],t[o]);return r}var wa=(e,t)=>I1(e,t,oc(t));const Gv={value:!1,isValid:!1},Kv={value:!0,isValid:!0};var M1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ke(e[0].attributes.value)?Ke(e[0].value)||e[0].value===""?Kv:{value:e[0].value,isValid:!0}:Kv:Gv}return Gv},D1=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ke(e)?e:t?e===""?NaN:e&&+e:r&&qr(e)?new Date(e):n?n(e):e;const Qv={isValid:!1,value:null};var L1=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Qv):Qv;function Zv(e){const t=e.ref;return wh(t)?t.files:bh(t)?L1(e.refs).value:j1(t)?[...t.selectedOptions].map(({value:r})=>r):Ei(t)?M1(e.refs).value:D1(Ke(t.value)?e.ref.value:t.value,e)}var Aj=(e,t,r,n)=>{const o={};for(const s of e){const a=K(t,s);a&&ke(o,s,a._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},sc=e=>e instanceof RegExp,ba=e=>Ke(e)?e:sc(e)?e.source:Ze(e)?sc(e.value)?e.value.source:e.value:e,Yv=e=>({isOnSubmit:!e||e===Cr.onSubmit,isOnBlur:e===Cr.onBlur,isOnChange:e===Cr.onChange,isOnAll:e===Cr.all,isOnTouch:e===Cr.onTouched});const Xv="AsyncFunction";var Pj=e=>!!e&&!!e.validate&&!!(Er(e.validate)&&e.validate.constructor.name===Xv||Ze(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xv)),jj=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Jv=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const za=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const s=K(e,o);if(s){const{_f:a,...i}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!n)return!0;if(a.ref&&t(a.ref,a.name)&&!n)return!0;if(za(i,t))break}else if(Ze(i)&&za(i,t))break}}};function eg(e,t,r){const n=K(e,r);if(n||Kc(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const s=o.join("."),a=K(t,s),i=K(e,s);if(a&&!Array.isArray(a)&&r!==s)return{name:r};if(i&&i.type)return{name:s,error:i};if(i&&i.root&&i.root.type)return{name:`${s}.root`,error:i.root};o.pop()}return{name:r}}var Oj=(e,t,r,n)=>{r(e);const{name:o,...s}=e;return jt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!n||Cr.all))},Ij=(e,t,r)=>!e||!t||e===t||Va(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),Mj=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Dj=(e,t)=>!vh(K(e,t)).length&&Ye(e,t),Lj=(e,t,r)=>{const n=Va(K(e,r));return ke(n,"root",t[r]),ke(e,r,n),e},bl=e=>qr(e);function tg(e,t,r="validate"){if(bl(e)||Array.isArray(e)&&e.every(bl)||zt(e)&&!e)return{type:r,message:bl(e)?e:"",ref:t}}var Xo=e=>Ze(e)&&!sc(e)?e:{value:e,message:""},rg=async(e,t,r,n,o,s)=>{const{ref:a,refs:i,required:l,maxLength:c,minLength:d,min:f,max:h,pattern:g,validate:b,name:v,valueAsNumber:w,mount:y}=e._f,m=K(r,v);if(!y||t.has(v))return{};const x=i?i[0]:a,S=D=>{o&&x.reportValidity&&(x.setCustomValidity(zt(D)?"":D||""),x.reportValidity())},C={},k=bh(a),_=Ei(a),N=k||_,A=(w||wh(a))&&Ke(a.value)&&Ke(m)||nc(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,M=P1.bind(null,v,n,C),B=(D,U,L,X=un.maxLength,z=un.minLength)=>{const J=D?U:L;C[v]={type:D?X:z,message:J,ref:a,...M(D?X:z,J)}};if(s?!Array.isArray(m)||!m.length:l&&(!N&&(A||Et(m))||zt(m)&&!m||_&&!M1(i).isValid||k&&!L1(i).isValid)){const{value:D,message:U}=bl(l)?{value:!!l,message:l}:Xo(l);if(D&&(C[v]={type:un.required,message:U,ref:x,...M(un.required,U)},!n))return S(U),C}if(!A&&(!Et(f)||!Et(h))){let D,U;const L=Xo(h),X=Xo(f);if(!Et(m)&&!isNaN(m)){const z=a.valueAsNumber||m&&+m;Et(L.value)||(D=z>L.value),Et(X.value)||(U=znew Date(new Date().toDateString()+" "+W),P=a.type=="time",O=a.type=="week";qr(L.value)&&m&&(D=P?J(m)>J(L.value):O?m>L.value:z>new Date(L.value)),qr(X.value)&&m&&(U=P?J(m)+D.value,X=!Et(U.value)&&m.length<+U.value;if((L||X)&&(B(L,D.message,U.message),!n))return S(C[v].message),C}if(g&&!A&&qr(m)){const{value:D,message:U}=Xo(g);if(sc(D)&&!m.match(D)&&(C[v]={type:un.pattern,message:U,ref:a,...M(un.pattern,U)},!n))return S(U),C}if(b){if(Er(b)){const D=await b(m,r),U=tg(D,x);if(U&&(C[v]={...U,...M(un.validate,U.message)},!n))return S(U.message),C}else if(Ze(b)){let D={};for(const U in b){if(!jt(D)&&!n)break;const L=tg(await b[U](m,r),x,U);L&&(D={...L,...M(U,L.message)},S(L.message),n&&(C[v]=D))}if(!jt(D)&&(C[v]={ref:x,...D},!n))return C}}return S(!0),C};const Fj={mode:Cr.onSubmit,reValidateMode:Cr.onChange,shouldFocusError:!0};function $j(e={}){let t={...Fj,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Er(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Ze(t.defaultValues)||Ze(t.values)?et(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:et(o),a={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const h={array:qv(),state:qv()},g=t.criteriaMode===Cr.all,b=E=>T=>{clearTimeout(c),c=setTimeout(E,T)},v=async E=>{if(!t.disabled&&(d.isValid||f.isValid||E)){const T=t.resolver?jt((await _()).errors):await A(n,!0);T!==r.isValid&&h.state.next({isValid:T})}},w=(E,T)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((E||Array.from(i.mount)).forEach(j=>{j&&(T?ke(r.validatingFields,j,T):Ye(r.validatingFields,j))}),h.state.next({validatingFields:r.validatingFields,isValidating:!jt(r.validatingFields)}))},y=(E,T=[],j,q,H=!0,V=!0)=>{if(q&&j&&!t.disabled){if(a.action=!0,V&&Array.isArray(K(n,E))){const Z=j(K(n,E),q.argA,q.argB);H&&ke(n,E,Z)}if(V&&Array.isArray(K(r.errors,E))){const Z=j(K(r.errors,E),q.argA,q.argB);H&&ke(r.errors,E,Z),Dj(r.errors,E)}if((d.touchedFields||f.touchedFields)&&V&&Array.isArray(K(r.touchedFields,E))){const Z=j(K(r.touchedFields,E),q.argA,q.argB);H&&ke(r.touchedFields,E,Z)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=wa(o,s)),h.state.next({name:E,isDirty:B(E,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ke(s,E,T)},m=(E,T)=>{ke(r.errors,E,T),h.state.next({errors:r.errors})},x=E=>{r.errors=E,h.state.next({errors:r.errors,isValid:!1})},S=(E,T,j,q)=>{const H=K(n,E);if(H){const V=K(s,E,Ke(j)?K(o,E):j);Ke(V)||q&&q.defaultChecked||T?ke(s,E,T?V:Zv(H._f)):L(E,V),a.mount&&v()}},C=(E,T,j,q,H)=>{let V=!1,Z=!1;const ge={name:E};if(!t.disabled){if(!j||q){(d.isDirty||f.isDirty)&&(Z=r.isDirty,r.isDirty=ge.isDirty=B(),V=Z!==ge.isDirty);const Re=mn(K(o,E),T);Z=!!K(r.dirtyFields,E),Re?Ye(r.dirtyFields,E):ke(r.dirtyFields,E,!0),ge.dirtyFields=r.dirtyFields,V=V||(d.dirtyFields||f.dirtyFields)&&Z!==!Re}if(j){const Re=K(r.touchedFields,E);Re||(ke(r.touchedFields,E,j),ge.touchedFields=r.touchedFields,V=V||(d.touchedFields||f.touchedFields)&&Re!==j)}V&&H&&h.state.next(ge)}return V?ge:{}},k=(E,T,j,q)=>{const H=K(r.errors,E),V=(d.isValid||f.isValid)&&zt(T)&&r.isValid!==T;if(t.delayError&&j?(l=b(()=>m(E,j)),l(t.delayError)):(clearTimeout(c),l=null,j?ke(r.errors,E,j):Ye(r.errors,E)),(j?!mn(H,j):H)||!jt(q)||V){const Z={...q,...V&&zt(T)?{isValid:T}:{},errors:r.errors,name:E};r={...r,...Z},h.state.next(Z)}},_=async E=>{w(E,!0);const T=await t.resolver(s,t.context,Aj(E||i.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return w(E),T},N=async E=>{const{errors:T}=await _(E);if(E)for(const j of E){const q=K(T,j);q?ke(r.errors,j,q):Ye(r.errors,j)}else r.errors=T;return T},A=async(E,T,j={valid:!0})=>{for(const q in E){const H=E[q];if(H){const{_f:V,...Z}=H;if(V){const ge=i.array.has(V.name),Re=H._f&&Pj(H._f);Re&&d.validatingFields&&w([q],!0);const At=await rg(H,i.disabled,s,g,t.shouldUseNativeValidation&&!T,ge);if(Re&&d.validatingFields&&w([q]),At[V.name]&&(j.valid=!1,T))break;!T&&(K(At,V.name)?ge?Lj(r.errors,At,V.name):ke(r.errors,V.name,At[V.name]):Ye(r.errors,V.name))}!jt(Z)&&await A(Z,T,j)}}return j.valid},M=()=>{for(const E of i.unMount){const T=K(n,E);T&&(T._f.refs?T._f.refs.every(j=>!Ju(j)):!Ju(T._f.ref))&&G(E)}i.unMount=new Set},B=(E,T)=>!t.disabled&&(E&&T&&ke(s,E,T),!mn(W(),o)),D=(E,T,j)=>A1(E,i,{...a.mount?s:Ke(T)?o:qr(E)?{[E]:T}:T},j,T),U=E=>vh(K(a.mount?s:o,E,t.shouldUnregister?K(o,E,[]):[])),L=(E,T,j={})=>{const q=K(n,E);let H=T;if(q){const V=q._f;V&&(!V.disabled&&ke(s,E,D1(T,V)),H=nc(V.ref)&&Et(T)?"":T,j1(V.ref)?[...V.ref.options].forEach(Z=>Z.selected=H.includes(Z.value)):V.refs?Ei(V.ref)?V.refs.forEach(Z=>{(!Z.defaultChecked||!Z.disabled)&&(Array.isArray(H)?Z.checked=!!H.find(ge=>ge===Z.value):Z.checked=H===Z.value||!!H)}):V.refs.forEach(Z=>Z.checked=Z.value===H):wh(V.ref)?V.ref.value="":(V.ref.value=H,V.ref.type||h.state.next({name:E,values:et(s)})))}(j.shouldDirty||j.shouldTouch)&&C(E,H,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&O(E)},X=(E,T,j)=>{for(const q in T){if(!T.hasOwnProperty(q))return;const H=T[q],V=E+"."+q,Z=K(n,V);(i.array.has(E)||Ze(H)||Z&&!Z._f)&&!To(H)?X(V,H,j):L(V,H,j)}},z=(E,T,j={})=>{const q=K(n,E),H=i.array.has(E),V=et(T);ke(s,E,V),H?(h.array.next({name:E,values:et(s)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&j.shouldDirty&&h.state.next({name:E,dirtyFields:wa(o,s),isDirty:B(E,V)})):q&&!q._f&&!Et(V)?X(E,V,j):L(E,V,j),Jv(E,i)&&h.state.next({...r,name:E}),h.state.next({name:a.mount?E:void 0,values:et(s)})},J=async E=>{a.mount=!0;const T=E.target;let j=T.name,q=!0;const H=K(n,j),V=Re=>{q=Number.isNaN(Re)||To(Re)&&isNaN(Re.getTime())||mn(Re,K(s,j,Re))},Z=Yv(t.mode),ge=Yv(t.reValidateMode);if(H){let Re,At;const sn=T.type?Zv(H._f):T1(E),Mr=E.type===rc.BLUR||E.type===rc.FOCUS_OUT,_i=!jj(H._f)&&!t.resolver&&!K(r.errors,j)&&!H._f.deps||Mj(Mr,K(r.touchedFields,j),r.isSubmitted,ge,Z),xo=Jv(j,i,Mr);ke(s,j,sn),Mr?(H._f.onBlur&&H._f.onBlur(E),l&&l(0)):H._f.onChange&&H._f.onChange(E);const Dr=C(j,sn,Mr),ki=!jt(Dr)||xo;if(!Mr&&h.state.next({name:j,type:E.type,values:et(s)}),_i)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?Mr&&v():Mr||v()),ki&&h.state.next({name:j,...xo?{}:Dr});if(!Mr&&xo&&h.state.next({...r}),t.resolver){const{errors:an}=await _([j]);if(V(sn),q){const pu=eg(r.errors,n,j),Ti=eg(an,n,pu.name||j);Re=Ti.error,j=Ti.name,At=jt(an)}}else w([j],!0),Re=(await rg(H,i.disabled,s,g,t.shouldUseNativeValidation))[j],w([j]),V(sn),q&&(Re?At=!1:(d.isValid||f.isValid)&&(At=await A(n,!0)));q&&(H._f.deps&&O(H._f.deps),k(j,At,Re,Dr))}},P=(E,T)=>{if(K(r.errors,T)&&E.focus)return E.focus(),1},O=async(E,T={})=>{let j,q;const H=Va(E);if(t.resolver){const V=await N(Ke(E)?E:H);j=jt(V),q=E?!H.some(Z=>K(V,Z)):j}else E?(q=(await Promise.all(H.map(async V=>{const Z=K(n,V);return await A(Z&&Z._f?{[V]:Z}:Z)}))).every(Boolean),!(!q&&!r.isValid)&&v()):q=j=await A(n);return h.state.next({...!qr(E)||(d.isValid||f.isValid)&&j!==r.isValid?{}:{name:E},...t.resolver||!E?{isValid:j}:{},errors:r.errors}),T.shouldFocus&&!q&&za(n,P,E?H:i.mount),q},W=E=>{const T={...a.mount?s:o};return Ke(E)?T:qr(E)?K(T,E):E.map(j=>K(T,j))},se=(E,T)=>({invalid:!!K((T||r).errors,E),isDirty:!!K((T||r).dirtyFields,E),error:K((T||r).errors,E),isValidating:!!K(r.validatingFields,E),isTouched:!!K((T||r).touchedFields,E)}),ne=E=>{E&&Va(E).forEach(T=>Ye(r.errors,T)),h.state.next({errors:E?r.errors:{}})},le=(E,T,j)=>{const q=(K(n,E,{_f:{}})._f||{}).ref,H=K(r.errors,E)||{},{ref:V,message:Z,type:ge,...Re}=H;ke(r.errors,E,{...Re,...T,ref:q}),h.state.next({name:E,errors:r.errors,isValid:!1}),j&&j.shouldFocus&&q&&q.focus&&q.focus()},ie=(E,T)=>Er(E)?h.state.subscribe({next:j=>"values"in j&&E(D(void 0,T),j)}):D(E,T,!0),Ne=E=>h.state.subscribe({next:T=>{Ij(E.name,T.name,E.exact)&&Oj(T,E.formState||d,nn,E.reRenderRoot)&&E.callback({values:{...s},...r,...T,defaultValues:o})}}).unsubscribe,Fe=E=>(a.mount=!0,f={...f,...E.formState},Ne({...E,formState:f})),G=(E,T={})=>{for(const j of E?Va(E):i.mount)i.mount.delete(j),i.array.delete(j),T.keepValue||(Ye(n,j),Ye(s,j)),!T.keepError&&Ye(r.errors,j),!T.keepDirty&&Ye(r.dirtyFields,j),!T.keepTouched&&Ye(r.touchedFields,j),!T.keepIsValidating&&Ye(r.validatingFields,j),!t.shouldUnregister&&!T.keepDefaultValue&&Ye(o,j);h.state.next({values:et(s)}),h.state.next({...r,...T.keepDirty?{isDirty:B()}:{}}),!T.keepIsValid&&v()},Ce=({disabled:E,name:T})=>{(zt(E)&&a.mount||E||i.disabled.has(T))&&(E?i.disabled.add(T):i.disabled.delete(T))},Pe=(E,T={})=>{let j=K(n,E);const q=zt(T.disabled)||zt(t.disabled);return ke(n,E,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:E}},name:E,mount:!0,...T}}),i.mount.add(E),j?Ce({disabled:zt(T.disabled)?T.disabled:t.disabled,name:E}):S(E,!0,T.value),{...q?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:ba(T.min),max:ba(T.max),minLength:ba(T.minLength),maxLength:ba(T.maxLength),pattern:ba(T.pattern)}:{},name:E,onChange:J,onBlur:J,ref:H=>{if(H){Pe(E,T),j=K(n,E);const V=Ke(H.value)&&H.querySelectorAll&&H.querySelectorAll("input,select,textarea")[0]||H,Z=Tj(V),ge=j._f.refs||[];if(Z?ge.find(Re=>Re===V):V===j._f.ref)return;ke(n,E,{_f:{...j._f,...Z?{refs:[...ge.filter(Ju),V,...Array.isArray(K(o,E))?[{}]:[]],ref:{type:V.type,name:E}}:{ref:V}}}),S(E,!1,void 0,V)}else j=K(n,E,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(N1(i.array,E)&&a.action)&&i.unMount.add(E)}}},xe=()=>t.shouldFocusError&&za(n,P,i.mount),ve=E=>{zt(E)&&(h.state.next({disabled:E}),za(n,(T,j)=>{const q=K(n,j);q&&(T.disabled=q._f.disabled||E,Array.isArray(q._f.refs)&&q._f.refs.forEach(H=>{H.disabled=q._f.disabled||E}))},0,!1))},we=(E,T)=>async j=>{let q;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let H=et(s);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:Z}=await _();r.errors=V,H=et(Z)}else await A(n);if(i.disabled.size)for(const V of i.disabled)Ye(H,V);if(Ye(r.errors,"root"),jt(r.errors)){h.state.next({errors:{}});try{await E(H,j)}catch(V){q=V}}else T&&await T({...r.errors},j),xe(),setTimeout(xe);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jt(r.errors)&&!q,submitCount:r.submitCount+1,errors:r.errors}),q)throw q},ot=(E,T={})=>{K(n,E)&&(Ke(T.defaultValue)?z(E,et(K(o,E))):(z(E,T.defaultValue),ke(o,E,et(T.defaultValue))),T.keepTouched||Ye(r.touchedFields,E),T.keepDirty||(Ye(r.dirtyFields,E),r.isDirty=T.defaultValue?B(E,et(K(o,E))):B()),T.keepError||(Ye(r.errors,E),d.isValid&&v()),h.state.next({...r}))},bt=(E,T={})=>{const j=E?et(E):o,q=et(j),H=jt(E),V=H?o:q;if(T.keepDefaultValues||(o=j),!T.keepValues){if(T.keepDirtyValues){const Z=new Set([...i.mount,...Object.keys(wa(o,s))]);for(const ge of Array.from(Z))K(r.dirtyFields,ge)?ke(V,ge,K(s,ge)):z(ge,K(V,ge))}else{if(mh&&Ke(E))for(const Z of i.mount){const ge=K(n,Z);if(ge&&ge._f){const Re=Array.isArray(ge._f.refs)?ge._f.refs[0]:ge._f.ref;if(nc(Re)){const At=Re.closest("form");if(At){At.reset();break}}}}if(T.keepFieldsRef)for(const Z of i.mount)z(Z,K(V,Z));else n={}}s=t.shouldUnregister?T.keepDefaultValues?et(o):{}:et(V),h.array.next({values:{...V}}),h.state.next({values:{...V}})}i={mount:T.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!T.keepIsValid||!!T.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:H?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!mn(E,o)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:H?{}:T.keepDirtyValues?T.keepDefaultValues&&s?wa(o,s):r.dirtyFields:T.keepDefaultValues&&E?wa(o,E):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Or=(E,T)=>bt(Er(E)?E(s):E,T),Ir=(E,T={})=>{const j=K(n,E),q=j&&j._f;if(q){const H=q.refs?q.refs[0]:q.ref;H.focus&&(H.focus(),T.shouldSelect&&Er(H.select)&&H.select())}},nn=E=>{r={...r,...E}},on={control:{register:Pe,unregister:G,getFieldState:se,handleSubmit:we,setError:le,_subscribe:Ne,_runSchema:_,_focusError:xe,_getWatch:D,_getDirty:B,_setValid:v,_setFieldArray:y,_setDisabledField:Ce,_setErrors:x,_getFieldArray:U,_reset:bt,_resetDefaultValues:()=>Er(t.defaultValues)&&t.defaultValues().then(E=>{Or(E,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:ve,_subjects:h,_proxyFormState:d,get _fields(){return n},get _formValues(){return s},get _state(){return a},set _state(E){a=E},get _defaultValues(){return o},get _names(){return i},set _names(E){i=E},get _formState(){return r},get _options(){return t},set _options(E){t={...t,...E}}},subscribe:Fe,trigger:O,register:Pe,handleSubmit:we,watch:ie,setValue:z,getValues:W,reset:Or,resetField:ot,clearErrors:ne,unregister:G,setError:le,setFocus:Ir,getFieldState:se};return{...on,formControl:on}}function Zc(e={}){const t=R.useRef(void 0),r=R.useRef(void 0),[n,o]=R.useState({isDirty:!1,isValidating:!1,isLoading:Er(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Er(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Er(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...i}=$j(e);t.current={...i,formState:n}}const s=t.current.control;return s._options=e,xh(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(i=>({...i,isReady:!0})),s._formState.isReady=!0,a},[s]),R.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),R.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),R.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),R.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),R.useEffect(()=>{e.values&&!mn(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,o(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),R.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=R1(n,s),t.current}const ng=(e,t,r)=>{if(e&&"reportValidity"in e){const n=K(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},F1=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?ng(n.ref,r,e):n.refs&&n.refs.forEach(o=>ng(o,r,e))}},Vj=(e,t)=>{t.shouldUseNativeValidation&&F1(e,t);const r={};for(const n in e){const o=K(t.fields,n),s=Object.assign(e[n]||{},{ref:o&&o.ref});if(zj(t.names||Object.keys(e),n)){const a=Object.assign({},K(r,n));ke(a,"root",s),ke(r,n,a)}else ke(r,n,s)}return r},zj=(e,t)=>e.some(r=>r.startsWith(t+"."));var Bj=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,s=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var i=n.unionErrors[0].errors[0];r[a]={message:i.message,type:i.code}}else r[a]={message:s,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[a].types,c=l&&l[n.code];r[a]=P1(a,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},Yc=function(e,t,r){return r===void 0&&(r={}),function(n,o,s){try{return Promise.resolve(function(a,i){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return s.shouldUseNativeValidation&&F1({},s),{errors:{},values:r.raw?n:c}})}catch(c){return i(c)}return l&&l.then?l.then(void 0,i):l}(0,function(a){if(function(i){return Array.isArray(i==null?void 0:i.errors)}(a))return{values:{},errors:Vj(Bj(a.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw a}))}catch(a){return Promise.reject(a)}}},Uj="Label",$1=p.forwardRef((e,t)=>u.jsx(oe.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));$1.displayName=Uj;var V1=$1;const Hj=Gp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),z1=p.forwardRef(({className:e,...t},r)=>u.jsx(V1,{ref:r,className:ae(Hj(),e),...t}));z1.displayName=V1.displayName;const Xc=Sj,B1=p.createContext({}),dt=({...e})=>u.jsx(B1.Provider,{value:{name:e.name},children:u.jsx(kj,{...e})}),Jc=()=>{const e=p.useContext(B1),t=p.useContext(U1),{getFieldState:r,formState:n}=Qc(),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within ");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},U1=p.createContext({}),at=p.forwardRef(({className:e,...t},r)=>{const n=p.useId();return u.jsx(U1.Provider,{value:{id:n},children:u.jsx("div",{ref:r,className:ae("space-y-2",e),...t})})});at.displayName="FormItem";const it=p.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=Jc();return u.jsx(z1,{ref:r,className:ae(n&&"text-destructive",e),htmlFor:o,...t})});it.displayName="FormLabel";const lt=p.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:s}=Jc();return u.jsx(c0,{ref:t,id:n,"aria-describedby":r?`${o} ${s}`:`${o}`,"aria-invalid":!!r,...e})});lt.displayName="FormControl";const Ht=p.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Jc();return u.jsx("p",{ref:r,id:n,className:ae("text-sm text-muted-foreground",e),...t})});Ht.displayName="FormDescription";const xt=p.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:s}=Jc(),a=o?String(o==null?void 0:o.message):t;return a?u.jsx("p",{ref:n,id:s,className:ae("text-sm font-medium text-destructive",e),...r,children:a}):null});xt.displayName="FormMessage";const kt=p.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:ae("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:n,...r}));kt.displayName="Input";var _e;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{const s={};for(const a of o)s[a]=a;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),a={};for(const i of s)a[i]=o[i];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const a in o)Object.prototype.hasOwnProperty.call(o,a)&&s.push(a);return s},e.find=(o,s)=>{for(const a of o)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var og;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(og||(og={}));const ee=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Fn=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;case"number":return Number.isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},$=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class kn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let i=n,l=0;for(;lr.message){const r={},n=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];r[s]=r[s]||[],r[s].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}kn.create=e=>new kn(e);const Af=(e,t)=>{let r;switch(e.code){case $.invalid_type:e.received===ee.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case $.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,_e.jsonStringifyReplacer)}`;break;case $.unrecognized_keys:r=`Unrecognized key(s) in object: ${_e.joinValues(e.keys,", ")}`;break;case $.invalid_union:r="Invalid input";break;case $.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${_e.joinValues(e.options)}`;break;case $.invalid_enum_value:r=`Invalid enum value. Expected ${_e.joinValues(e.options)}, received '${e.received}'`;break;case $.invalid_arguments:r="Invalid function arguments";break;case $.invalid_return_type:r="Invalid function return type";break;case $.invalid_date:r="Invalid date";break;case $.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:_e.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case $.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case $.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case $.custom:r="Invalid input";break;case $.invalid_intersection_types:r="Intersection results could not be merged";break;case $.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case $.not_finite:r="Number must be finite";break;default:r=t.defaultError,_e.assertNever(e)}return{message:r}};let Wj=Af;function qj(){return Wj}const Gj=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],a={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let i="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)i=c(a,{data:t,defaultError:i}).message;return{...o,path:s,message:i}};function Q(e,t){const r=qj(),n=Gj({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Af?void 0:Af].filter(o=>!!o)});e.common.issues.push(n)}class Kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const o of r){if(o.status==="aborted")return ce;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const o of r){const s=await o.key,a=await o.value;n.push({key:s,value:a})}return Kt.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const o of r){const{key:s,value:a}=o;if(s.status==="aborted"||a.status==="aborted")return ce;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(n[s.value]=a.value)}return{status:t.value,value:n}}}const ce=Object.freeze({status:"aborted"}),Ta=e=>({status:"dirty",value:e}),cr=e=>({status:"valid",value:e}),sg=e=>e.status==="aborted",ag=e=>e.status==="dirty",Gs=e=>e.status==="valid",ac=e=>typeof Promise<"u"&&e instanceof Promise;var re;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(re||(re={}));class uo{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ig=(e,t)=>{if(Gs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new kn(e.common.issues);return this._error=r,this._error}}};function he(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,i)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??n??i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:l??r??i.defaultError}},description:o}}class Se{get description(){return this._def.description}_getType(t){return Fn(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Kt,ctx:{common:t.parent.common,data:t.data,parsedType:Fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(ac(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)},o=this._parseSync({data:t,path:n.path,parent:n});return ig(n,o)}"~validate"(t){var n,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:r});return Gs(s)?{value:s.value}:{issues:r.common.issues}}catch(s){(o=(n=s==null?void 0:s.message)==null?void 0:n.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(s=>Gs(s)?{value:s.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(ac(o)?o:Promise.resolve(o));return ig(n,s)}refine(t,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{const a=t(o),i=()=>s.addIssue({code:$.custom,...n(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(i(),!1)):a?!0:(i(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Zs({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return oo.create(this,this._def)}nullable(){return Ys.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xr.create(this)}promise(){return uc.create(this,this._def)}or(t){return lc.create([this,t],this._def)}and(t){return cc.create(this,t,this._def)}transform(t){return new Zs({...he(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Of({...he(this._def),innerType:this,defaultValue:r,typeName:ue.ZodDefault})}brand(){return new v2({typeName:ue.ZodBranded,type:this,...he(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new If({...he(this._def),innerType:this,catchValue:r,typeName:ue.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Sh.create(this,t)}readonly(){return Mf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Kj=/^c[^\s-]{8,}$/i,Qj=/^[0-9a-z]+$/,Zj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Xj=/^[a-z0-9_-]{21}$/i,Jj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,e2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,r2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ed;const n2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,o2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,s2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,a2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,i2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,l2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,H1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",c2=new RegExp(`^${H1}$`);function W1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function u2(e){return new RegExp(`^${W1(e)}$`)}function d2(e){let t=`${H1}T${W1(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function f2(e,t){return!!((t==="v4"||!t)&&n2.test(e)||(t==="v6"||!t)&&s2.test(e))}function p2(e,t){if(!Jj.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function h2(e,t){return!!((t==="v4"||!t)&&o2.test(e)||(t==="v6"||!t)&&a2.test(e))}class Qn extends Se{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.string,received:s.parsedType}),ce}const n=new Kt;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:$.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,i=t.data.lengtht.test(o),{validation:r,code:$.invalid_string,...re.errToObj(n)})}_addCheck(t){return new Qn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...re.errToObj(t)})}url(t){return this._addCheck({kind:"url",...re.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...re.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...re.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...re.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...re.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...re.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...re.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...re.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...re.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...re.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...re.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...re.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...re.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...re.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...re.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...re.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...re.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...re.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...re.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...re.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...re.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...re.errToObj(r)})}nonempty(t){return this.min(1,re.errToObj(t))}trim(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew Qn({checks:[],typeName:ue.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...he(e)});function m2(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}class Ks extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ee.number){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.number,received:s.parsedType}),ce}let n;const o=new Kt;for(const s of this._def.checks)s.kind==="int"?_e.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Q(n,{code:$.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?m2(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_finite,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,re.toString(r))}gt(t,r){return this.setLimit("min",t,!1,re.toString(r))}lte(t,r){return this.setLimit("max",t,!0,re.toString(r))}lt(t,r){return this.setLimit("max",t,!1,re.toString(r))}setLimit(t,r,n,o){return new Ks({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:re.toString(o)}]})}_addCheck(t){return new Ks({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:re.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:re.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&_e.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew Ks({checks:[],typeName:ue.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...he(e)});class ui extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ee.bigint)return this._getInvalidInput(t);let n;const o=new Kt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return Q(r,{code:$.invalid_type,expected:ee.bigint,received:r.parsedType}),ce}gte(t,r){return this.setLimit("min",t,!0,re.toString(r))}gt(t,r){return this.setLimit("min",t,!1,re.toString(r))}lte(t,r){return this.setLimit("max",t,!0,re.toString(r))}lt(t,r){return this.setLimit("max",t,!1,re.toString(r))}setLimit(t,r,n,o){return new ui({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:re.toString(o)}]})}_addCheck(t){return new ui({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew ui({checks:[],typeName:ue.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...he(e)});class Pf extends Se{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.boolean,received:n.parsedType}),ce}return cr(t.data)}}Pf.create=e=>new Pf({typeName:ue.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...he(e)});class ic extends Se{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.date,received:s.parsedType}),ce}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_date}),ce}const n=new Kt;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:$.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):_e.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ic({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:re.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:re.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew ic({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ue.ZodDate,...he(e)});class lg extends Se{_parse(t){if(this._getType(t)!==ee.symbol){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.symbol,received:n.parsedType}),ce}return cr(t.data)}}lg.create=e=>new lg({typeName:ue.ZodSymbol,...he(e)});class cg extends Se{_parse(t){if(this._getType(t)!==ee.undefined){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.undefined,received:n.parsedType}),ce}return cr(t.data)}}cg.create=e=>new cg({typeName:ue.ZodUndefined,...he(e)});class ug extends Se{_parse(t){if(this._getType(t)!==ee.null){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.null,received:n.parsedType}),ce}return cr(t.data)}}ug.create=e=>new ug({typeName:ue.ZodNull,...he(e)});class dg extends Se{constructor(){super(...arguments),this._any=!0}_parse(t){return cr(t.data)}}dg.create=e=>new dg({typeName:ue.ZodAny,...he(e)});class fg extends Se{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cr(t.data)}}fg.create=e=>new fg({typeName:ue.ZodUnknown,...he(e)});class fo extends Se{_parse(t){const r=this._getOrReturnCtx(t);return Q(r,{code:$.invalid_type,expected:ee.never,received:r.parsedType}),ce}}fo.create=e=>new fo({typeName:ue.ZodNever,...he(e)});class pg extends Se{_parse(t){if(this._getType(t)!==ee.undefined){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.void,received:n.parsedType}),ce}return cr(t.data)}}pg.create=e=>new pg({typeName:ue.ZodVoid,...he(e)});class Xr extends Se{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==ee.array)return Q(r,{code:$.invalid_type,expected:ee.array,received:r.parsedType}),ce;if(o.exactLength!==null){const a=r.data.length>o.exactLength.value,i=r.data.lengtho.maxLength.value&&(Q(r,{code:$.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,i)=>o.type._parseAsync(new uo(r,a,r.path,i)))).then(a=>Kt.mergeArray(n,a));const s=[...r.data].map((a,i)=>o.type._parseSync(new uo(r,a,r.path,i)));return Kt.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new Xr({...this._def,minLength:{value:t,message:re.toString(r)}})}max(t,r){return new Xr({...this._def,maxLength:{value:t,message:re.toString(r)}})}length(t,r){return new Xr({...this._def,exactLength:{value:t,message:re.toString(r)}})}nonempty(t){return this.min(1,t)}}Xr.create=(e,t)=>new Xr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...he(t)});function ns(e){if(e instanceof We){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=oo.create(ns(n))}return new We({...e._def,shape:()=>t})}else return e instanceof Xr?new Xr({...e._def,type:ns(e.element)}):e instanceof oo?oo.create(ns(e.unwrap())):e instanceof Ys?Ys.create(ns(e.unwrap())):e instanceof Uo?Uo.create(e.items.map(t=>ns(t))):e}class We extends Se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=_e.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==ee.object){const c=this._getOrReturnCtx(t);return Q(c,{code:$.invalid_type,expected:ee.object,received:c.parsedType}),ce}const{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof fo&&this._def.unknownKeys==="strip"))for(const c in o.data)a.includes(c)||i.push(c);const l=[];for(const c of a){const d=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new uo(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof fo){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of i)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(c==="strict")i.length>0&&(Q(o,{code:$.unrecognized_keys,keys:i}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of i){const f=o.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new uo(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const f=await d.key,h=await d.value;c.push({key:f,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>Kt.mergeObjectSync(n,c)):Kt.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return re.errToObj,new We({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var s,a;const o=((a=(s=this._def).errorMap)==null?void 0:a.call(s,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:re.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new We({...this._def,unknownKeys:"strip"})}passthrough(){return new We({...this._def,unknownKeys:"passthrough"})}extend(t){return new We({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new We({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ue.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new We({...this._def,catchall:t})}pick(t){const r={};for(const n of _e.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new We({...this._def,shape:()=>r})}omit(t){const r={};for(const n of _e.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new We({...this._def,shape:()=>r})}deepPartial(){return ns(this)}partial(t){const r={};for(const n of _e.objectKeys(this.shape)){const o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new We({...this._def,shape:()=>r})}required(t){const r={};for(const n of _e.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof oo;)s=s._def.innerType;r[n]=s}return new We({...this._def,shape:()=>r})}keyof(){return q1(_e.objectKeys(this.shape))}}We.create=(e,t)=>new We({shape:()=>e,unknownKeys:"strip",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});We.strictCreate=(e,t)=>new We({shape:()=>e,unknownKeys:"strict",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});We.lazycreate=(e,t)=>new We({shape:e,unknownKeys:"strip",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});class lc extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(const i of s)if(i.result.status==="valid")return i.result;for(const i of s)if(i.result.status==="dirty")return r.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(i=>new kn(i.ctx.common.issues));return Q(r,{code:$.invalid_union,unionErrors:a}),ce}if(r.common.async)return Promise.all(n.map(async s=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(o);{let s;const a=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const i=a.map(l=>new kn(l));return Q(r,{code:$.invalid_union,unionErrors:i}),ce}}get options(){return this._def.options}}lc.create=(e,t)=>new lc({options:e,typeName:ue.ZodUnion,...he(t)});function jf(e,t){const r=Fn(e),n=Fn(t);if(e===t)return{valid:!0,data:e};if(r===ee.object&&n===ee.object){const o=_e.objectKeys(t),s=_e.objectKeys(e).filter(i=>o.indexOf(i)!==-1),a={...e,...t};for(const i of s){const l=jf(e[i],t[i]);if(!l.valid)return{valid:!1};a[i]=l.data}return{valid:!0,data:a}}else if(r===ee.array&&n===ee.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(sg(s)||sg(a))return ce;const i=jf(s.value,a.value);return i.valid?((ag(s)||ag(a))&&r.dirty(),{status:r.value,value:i.data}):(Q(n,{code:$.invalid_intersection_types}),ce)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>o(s,a)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}cc.create=(e,t,r)=>new cc({left:e,right:t,typeName:ue.ZodIntersection,...he(r)});class Uo extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.array)return Q(n,{code:$.invalid_type,expected:ee.array,received:n.parsedType}),ce;if(n.data.lengththis._def.items.length&&(Q(n,{code:$.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((a,i)=>{const l=this._def.items[i]||this._def.rest;return l?l._parse(new uo(n,a,n.path,i)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>Kt.mergeArray(r,a)):Kt.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new Uo({...this._def,rest:t})}}Uo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Uo({items:e,typeName:ue.ZodTuple,rest:null,...he(t)})};class hg extends Se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.map)return Q(n,{code:$.invalid_type,expected:ee.map,received:n.parsedType}),ce;const o=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([i,l],c)=>({key:o._parse(new uo(n,i,n.path,[c,"key"])),value:s._parse(new uo(n,l,n.path,[c,"value"]))}));if(n.common.async){const i=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return ce;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),i.set(c.value,d.value)}return{status:r.value,value:i}})}else{const i=new Map;for(const l of a){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return ce;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),i.set(c.value,d.value)}return{status:r.value,value:i}}}}hg.create=(e,t,r)=>new hg({valueType:t,keyType:e,typeName:ue.ZodMap,...he(r)});class di extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.set)return Q(n,{code:$.invalid_type,expected:ee.set,received:n.parsedType}),ce;const o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(Q(n,{code:$.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const s=this._def.valueType;function a(l){const c=new Set;for(const d of l){if(d.status==="aborted")return ce;d.status==="dirty"&&r.dirty(),c.add(d.value)}return{status:r.value,value:c}}const i=[...n.data.values()].map((l,c)=>s._parse(new uo(n,l,n.path,c)));return n.common.async?Promise.all(i).then(l=>a(l)):a(i)}min(t,r){return new di({...this._def,minSize:{value:t,message:re.toString(r)}})}max(t,r){return new di({...this._def,maxSize:{value:t,message:re.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}di.create=(e,t)=>new di({valueType:e,minSize:null,maxSize:null,typeName:ue.ZodSet,...he(t)});class mg extends Se{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}mg.create=(e,t)=>new mg({getter:e,typeName:ue.ZodLazy,...he(t)});class vg extends Se{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Q(r,{received:r.data,code:$.invalid_literal,expected:this._def.value}),ce}return{status:"valid",value:t.data}}get value(){return this._def.value}}vg.create=(e,t)=>new vg({value:e,typeName:ue.ZodLiteral,...he(t)});function q1(e,t){return new Qs({values:e,typeName:ue.ZodEnum,...he(t)})}class Qs extends Se{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return Q(r,{expected:_e.joinValues(n),received:r.parsedType,code:$.invalid_type}),ce}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return Q(r,{received:r.data,code:$.invalid_enum_value,options:n}),ce}return cr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Qs.create(t,{...this._def,...r})}exclude(t,r=this._def){return Qs.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Qs.create=q1;class gg extends Se{_parse(t){const r=_e.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ee.string&&n.parsedType!==ee.number){const o=_e.objectValues(r);return Q(n,{expected:_e.joinValues(o),received:n.parsedType,code:$.invalid_type}),ce}if(this._cache||(this._cache=new Set(_e.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=_e.objectValues(r);return Q(n,{received:n.data,code:$.invalid_enum_value,options:o}),ce}return cr(t.data)}get enum(){return this._def.values}}gg.create=(e,t)=>new gg({values:e,typeName:ue.ZodNativeEnum,...he(t)});class uc extends Se{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.promise&&r.common.async===!1)return Q(r,{code:$.invalid_type,expected:ee.promise,received:r.parsedType}),ce;const n=r.parsedType===ee.promise?r.data:Promise.resolve(r.data);return cr(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}uc.create=(e,t)=>new uc({type:e,typeName:ue.ZodPromise,...he(t)});class Zs extends Se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:a=>{Q(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const a=o.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async i=>{if(r.value==="aborted")return ce;const l=await this._def.schema._parseAsync({data:i,path:n.path,parent:n});return l.status==="aborted"?ce:l.status==="dirty"||r.value==="dirty"?Ta(l.value):l});{if(r.value==="aborted")return ce;const i=this._def.schema._parseSync({data:a,path:n.path,parent:n});return i.status==="aborted"?ce:i.status==="dirty"||r.value==="dirty"?Ta(i.value):i}}if(o.type==="refinement"){const a=i=>{const l=o.refinement(i,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ce:(i.status==="dirty"&&r.dirty(),a(i.value),{status:r.value,value:i.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>i.status==="aborted"?ce:(i.status==="dirty"&&r.dirty(),a(i.value).then(()=>({status:r.value,value:i.value}))))}if(o.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Gs(a))return ce;const i=o.transform(a.value,s);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:i}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Gs(a)?Promise.resolve(o.transform(a.value,s)).then(i=>({status:r.value,value:i})):ce);_e.assertNever(o)}}Zs.create=(e,t,r)=>new Zs({schema:e,typeName:ue.ZodEffects,effect:t,...he(r)});Zs.createWithPreprocess=(e,t,r)=>new Zs({schema:t,effect:{type:"preprocess",transform:e},typeName:ue.ZodEffects,...he(r)});class oo extends Se{_parse(t){return this._getType(t)===ee.undefined?cr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oo.create=(e,t)=>new oo({innerType:e,typeName:ue.ZodOptional,...he(t)});class Ys extends Se{_parse(t){return this._getType(t)===ee.null?cr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ys.create=(e,t)=>new Ys({innerType:e,typeName:ue.ZodNullable,...he(t)});class Of extends Se{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===ee.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Of.create=(e,t)=>new Of({innerType:e,typeName:ue.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...he(t)});class If extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ac(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new kn(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new kn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}If.create=(e,t)=>new If({innerType:e,typeName:ue.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...he(t)});class yg extends Se{_parse(t){if(this._getType(t)!==ee.nan){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.nan,received:n.parsedType}),ce}return{status:"valid",value:t.data}}}yg.create=e=>new yg({typeName:ue.ZodNaN,...he(e)});class v2 extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Sh extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ce:s.status==="dirty"?(r.dirty(),Ta(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ce:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new Sh({in:t,out:r,typeName:ue.ZodPipeline})}}class Mf extends Se{_parse(t){const r=this._def.innerType._parse(t),n=o=>(Gs(o)&&(o.value=Object.freeze(o.value)),o);return ac(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}Mf.create=(e,t)=>new Mf({innerType:e,typeName:ue.ZodReadonly,...he(t)});We.lazycreate;var ue;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ue||(ue={}));const Sa=Qn.create,Gr=Ks.create,G1=Pf.create;fo.create;Xr.create;const eu=We.create;We.strictCreate;lc.create;cc.create;Uo.create;Qs.create;uc.create;oo.create;Ys.create;const Me={MINIMUM_WAGE:1412,MONTHLY_HOURS:220,FGTS_RATE:.08,FGTS_FINE:.4,VACATION_BONUS:1/3,MAX_PRIOR_NOTICE_DAYS:90,PRIOR_NOTICE_BASE_DAYS:30,PRIOR_NOTICE_ADDITIONAL_DAYS_PER_YEAR:3,MAX_PRESCRIPTION_MONTHS:60,MAX_OVERTIME_HOURS_DAILY:2,MAX_OVERTIME_HOURS_MONTHLY:44},bo=e=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e),g2=e=>e/Me.MONTHLY_HOURS,y2=e=>{const t=Math.floor(e/12),r=Math.min(t*Me.PRIOR_NOTICE_ADDITIONAL_DAYS_PER_YEAR,Me.MAX_PRIOR_NOTICE_DAYS-Me.PRIOR_NOTICE_BASE_DAYS);return Me.PRIOR_NOTICE_BASE_DAYS+r},K1=(e,t)=>{const r=e,n=r*t/12,o=r*t/12,s=o*Me.VACATION_BONUS,a=o+s,i=r*t*Me.FGTS_RATE;return{thirteenthSalary:n,vacation:a,fgts:i}},x2=(e,t,r,n)=>{const o=g2(e),s=t*o*1.5*n,a=r*o*2*n,i=s+a,l=i/n,c=K1(l,n);return{overtime50Value:s,overtime100Value:a,totalOvertime:i,thirteenthSalary:c.thirteenthSalary,vacation:c.vacation,fgts:c.fgts,total:i+c.thirteenthSalary+c.vacation+c.fgts}},w2=(e,t,r=0,n=!1)=>{const o=e/30,s=y2(t),a=n?0:s*o,i=e*t/12,l=e*t/12,c=l*Me.VACATION_BONUS,d=l+c,f=r/30*e,h=f*Me.VACATION_BONUS,g=f+h,b=e*t*Me.FGTS_RATE,v=b*Me.FGTS_FINE,w=b+v;return{priorNotice:a,thirteenthSalary:i,proportionalVacation:d,owedVacation:g,fgtsBase:b,fgtsFine:v,fgtsTotal:w,total:a+i+d+g+w}},b2=(e,t,r,n=!0)=>{const o=t-e,s=o*r;if(!n)return{monthlyDifference:o,totalDifference:s,thirteenthSalary:0,vacation:0,fgts:0,total:s};const a=K1(o,r);return{monthlyDifference:o,totalDifference:s,thirteenthSalary:a.thirteenthSalary,vacation:a.vacation,fgts:a.fgts,total:s+a.thirteenthSalary+a.vacation+a.fgts}},S2=eu({salary:Gr({required_error:"Salário é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),overtime50:Gr({required_error:"Quantidade de horas extras é obrigatória",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(Me.MAX_OVERTIME_HOURS_MONTHLY,`Máximo ${Me.MAX_OVERTIME_HOURS_MONTHLY}h/mês (2h por dia)`),overtime100:Gr({required_error:"Quantidade de horas extras é obrigatória",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(Me.MAX_OVERTIME_HOURS_MONTHLY,`Máximo ${Me.MAX_OVERTIME_HOURS_MONTHLY}h/mês (2h por dia)`),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(Me.MAX_PRESCRIPTION_MONTHS,"Prescrição trabalhista: máximo 5 anos (60 meses)")}),C2=eu({salary:Gr({required_error:"Salário é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(600,"Máximo 50 anos (600 meses)"),vacationDays:Gr({required_error:"Dias de férias é obrigatório",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(30,"Máximo 30 dias"),workedPriorNotice:G1()}),E2=eu({receivedSalary:Gr({required_error:"Salário recebido é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),owedSalary:Gr({required_error:"Salário devido é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(Me.MAX_PRESCRIPTION_MONTHS,"Prescrição trabalhista: máximo 5 anos (60 meses)"),includeReflections:G1()}).refine(e=>e.owedSalary>e.receivedSalary,{message:"Salário devido deve ser maior que o salário recebido",path:["owedSalary"]}).refine(e=>e.owedSalary-e.receivedSalary<=e.receivedSalary*3,{message:"Diferença muito alta (máx. 300% do salário recebido)",path:["owedSalary"]});var _2="Separator",xg="horizontal",k2=["horizontal","vertical"],Q1=p.forwardRef((e,t)=>{const{decorative:r,orientation:n=xg,...o}=e,s=T2(n)?n:xg,i=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return u.jsx(oe.div,{"data-orientation":s,...i,...o,ref:t})});Q1.displayName=_2;function T2(e){return k2.includes(e)}var Z1=Q1;const Df=p.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>u.jsx(Z1,{ref:o,decorative:r,orientation:t,className:ae("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Df.displayName=Z1.displayName;const Ch=({title:e,items:t,total:r,onNewCalculation:n,calculatorType:o,formData:s})=>{const a=()=>{let i=`*${e}* `;o==="overtime"&&s?(i+=`📋 Dados informados: `,i+=`• Salário: ${bo(s.salary)} `,i+=`• HE 50%: ${s.overtime50}h/mês `,i+=`• HE 100%: ${s.overtime100}h/mês `,i+=`• Período: ${s.months} meses `):o==="severance"&&s?(i+=`📋 Dados informados: `,i+=`• Salário: ${bo(s.salary)} `,i+=`• Tempo trabalhado: ${s.months} meses `,i+=`• Férias vencidas: ${s.vacationDays} dias `,i+=`• Aviso prévio: ${s.workedPriorNotice?"Trabalhado":"Não trabalhado"} `):o==="salary"&&s&&(i+=`📋 Dados informados: `,i+=`• Salário recebido: ${bo(s.receivedSalary)} `,i+=`• Salário devido: ${bo(s.owedSalary)} `,i+=`• Período: ${s.months} meses `,i+=`• Reflexos: ${s.includeReflections?"Incluídos":"Não incluídos"} `),i+=`💰 Valor estimado: ${bo(r)} `,i+="Gostaria de uma análise detalhada do meu caso.";const l=ar.getWhatsAppLink(i);window.open(l,"_blank","noopener,noreferrer")};return u.jsx("div",{className:"space-y-6 animate-fade-in",children:u.jsxs(Wr,{className:"border-primary/20 bg-gradient-to-br from-background to-primary/5",children:[u.jsxs(n1,{className:"pb-4",children:[u.jsxs(o1,{className:"text-2xl md:text-3xl text-primary",children:["💰 ",e]}),u.jsx(s1,{children:"Valores calculados baseados na CLT"})]}),u.jsxs(ph,{className:"space-y-4",children:[u.jsx("div",{className:"space-y-3",children:t.map((i,l)=>u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between items-start gap-4 py-2",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:`font-medium ${i.highlight?"text-primary":"text-foreground"}`,children:i.label}),i.description&&u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.description})]}),u.jsx("p",{className:`font-semibold text-right ${i.highlight?"text-primary text-lg":"text-foreground"}`,children:bo(i.value)})]}),l{const[e,t]=p.useState(null),r=Zc({resolver:Yc(S2),defaultValues:{salary:void 0,overtime50:0,overtime100:0,months:12}}),n=s=>{const a=x2(s.salary,s.overtime50,s.overtime100,s.months),i=[{label:"Horas extras 50%",value:a.overtime50Value,description:`${s.overtime50}h/mês × ${s.months} meses`},{label:"Horas extras 100%",value:a.overtime100Value,description:`${s.overtime100}h/mês × ${s.months} meses`},{label:"Reflexo 13º salário",value:a.thirteenthSalary,description:"Proporcional sobre horas extras"},{label:"Reflexo férias + 1/3",value:a.vacation,description:"Proporcional sobre horas extras"},{label:"FGTS (8%)",value:a.fgts,description:"Sobre horas extras e reflexos"}];t({items:i,total:a.total,formData:s})},o=()=>{t(null),r.reset()};return e?u.jsx(Ch,{title:"Cálculo de Horas Extras",items:e.items,total:e.total,onNewCalculation:o,calculatorType:"overtime",formData:e.formData}):u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"text-center space-y-2",children:[u.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Calculadora de Horas Extras"}),u.jsx("p",{className:"text-muted-foreground",children:"Calcule o valor devido por horas extras não pagas"})]}),u.jsx(Xc,{...r,children:u.jsxs("form",{onSubmit:r.handleSubmit(n),className:"space-y-6",children:[u.jsx(dt,{control:r.control,name:"salary",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Salário Mensal (R$)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",step:"0.01",placeholder:"Ex: 2500.00",...s,onChange:a=>s.onChange(parseFloat(a.target.value)||void 0)})}),u.jsx(Ht,{children:"Seu salário base mensal"}),u.jsx(xt,{})]})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(dt,{control:r.control,name:"overtime50",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Horas Extras 50% (por mês)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",step:"0.5",placeholder:"Ex: 20",...s,onChange:a=>s.onChange(parseFloat(a.target.value)||0)})}),u.jsx(Ht,{children:"Máximo 44h/mês (2h por dia)"}),u.jsx(xt,{})]})}),u.jsx(dt,{control:r.control,name:"overtime100",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Horas Extras 100% (por mês)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",step:"0.5",placeholder:"Ex: 10",...s,onChange:a=>s.onChange(parseFloat(a.target.value)||0)})}),u.jsx(Ht,{children:"Domingos, feriados ou noturnas"}),u.jsx(xt,{})]})})]}),u.jsx(dt,{control:r.control,name:"months",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Período (meses)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",placeholder:"Ex: 12",...s,onChange:a=>s.onChange(parseInt(a.target.value)||1)})}),u.jsx(Ht,{children:"Por quanto tempo trabalhou com horas extras não pagas? (máx. 60 meses)"}),u.jsx(xt,{})]})}),u.jsxs(nt,{type:"submit",size:"lg",className:"w-full",children:[u.jsx(Kp,{className:"mr-2 h-5 w-5"}),"Calcular Valor"]})]})})]})};function Y1(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tu="Checkbox",[R2,nD]=Xt(tu),[A2,Eh]=R2(tu);function P2(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:s,form:a,name:i,onCheckedChange:l,required:c,value:d="on",internal_do_not_use_render:f}=e,[h,g]=Jr({prop:r,defaultProp:o??!1,onChange:l,caller:tu}),[b,v]=p.useState(null),[w,y]=p.useState(null),m=p.useRef(!1),x=b?!!a||!!b.closest("form"):!0,S={checked:h,disabled:s,setChecked:g,control:b,setControl:v,name:i,form:a,value:d,hasConsumerStoppedPropagationRef:m,required:c,defaultChecked:so(o)?!1:o,isFormControl:x,bubbleInput:w,setBubbleInput:y};return u.jsx(A2,{scope:t,...S,children:j2(f)?f(S):n})}var X1="CheckboxTrigger",J1=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:s,value:a,disabled:i,checked:l,required:c,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:g,bubbleInput:b}=Eh(X1,e),v=ye(o,d),w=p.useRef(l);return p.useEffect(()=>{const y=s==null?void 0:s.form;if(y){const m=()=>f(w.current);return y.addEventListener("reset",m),()=>y.removeEventListener("reset",m)}},[s,f]),u.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":so(l)?"mixed":l,"aria-required":c,"data-state":ob(l),"data-disabled":i?"":void 0,disabled:i,value:a,...n,ref:v,onKeyDown:te(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:te(r,y=>{f(m=>so(m)?!0:!m),b&&g&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});J1.displayName=X1;var _h=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:s,required:a,disabled:i,value:l,onCheckedChange:c,form:d,...f}=e;return u.jsx(P2,{__scopeCheckbox:r,checked:o,defaultChecked:s,disabled:i,required:a,onCheckedChange:c,name:n,form:d,value:l,internal_do_not_use_render:({isFormControl:h})=>u.jsxs(u.Fragment,{children:[u.jsx(J1,{...f,ref:t,__scopeCheckbox:r}),h&&u.jsx(nb,{__scopeCheckbox:r})]})})});_h.displayName=tu;var eb="CheckboxIndicator",tb=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,s=Eh(eb,r);return u.jsx(Jt,{present:n||so(s.checked)||s.checked===!0,children:u.jsx(oe.span,{"data-state":ob(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});tb.displayName=eb;var rb="CheckboxBubbleInput",nb=p.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:a,required:i,disabled:l,name:c,value:d,form:f,bubbleInput:h,setBubbleInput:g}=Eh(rb,e),b=ye(r,g),v=Y1(s),w=pw(n);p.useEffect(()=>{const m=h;if(!m)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,k=!o.current;if(v!==s&&C){const _=new Event("click",{bubbles:k});m.indeterminate=so(s),C.call(m,so(s)?!1:s),m.dispatchEvent(_)}},[h,v,s,o]);const y=p.useRef(so(s)?!1:s);return u.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:i,disabled:l,name:c,value:d,form:f,...t,tabIndex:-1,ref:b,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});nb.displayName=rb;function j2(e){return typeof e=="function"}function so(e){return e==="indeterminate"}function ob(e){return so(e)?"indeterminate":e?"checked":"unchecked"}const kh=p.forwardRef(({className:e,...t},r)=>u.jsx(_h,{ref:r,className:ae("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-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),...t,children:u.jsx(tb,{className:ae("flex items-center justify-center text-current"),children:u.jsx(F0,{className:"h-4 w-4"})})}));kh.displayName=_h.displayName;const O2=()=>{const[e,t]=p.useState(null),r=Zc({resolver:Yc(C2),defaultValues:{salary:void 0,months:12,vacationDays:0,workedPriorNotice:!1}}),n=s=>{const a=w2(s.salary,s.months,s.vacationDays,s.workedPriorNotice),i=[];a.priorNotice>0&&i.push({label:"Aviso prévio",value:a.priorNotice,description:"Indenizado (não trabalhado)"}),i.push({label:"13º salário proporcional",value:a.thirteenthSalary,description:`${s.months} meses trabalhados`},{label:"Férias proporcionais + 1/3",value:a.proportionalVacation,description:"Período proporcional"}),a.owedVacation>0&&i.push({label:"Férias vencidas + 1/3",value:a.owedVacation,description:`${s.vacationDays} dias em aberto`}),i.push({label:"FGTS do período (8%)",value:a.fgtsBase,description:"Depósitos do contrato"},{label:"Multa FGTS (40%)",value:a.fgtsFine,description:"Sobre o saldo do FGTS",highlight:!0}),t({items:i,total:a.total,formData:s})},o=()=>{t(null),r.reset()};return e?u.jsx(Ch,{title:"Cálculo de Verbas Rescisórias",items:e.items,total:e.total,onNewCalculation:o,calculatorType:"severance",formData:e.formData}):u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"text-center space-y-2",children:[u.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Calculadora de Verbas Rescisórias"}),u.jsx("p",{className:"text-muted-foreground",children:"Calcule os valores devidos na rescisão do contrato"})]}),u.jsx(Xc,{...r,children:u.jsxs("form",{onSubmit:r.handleSubmit(n),className:"space-y-6",children:[u.jsx(dt,{control:r.control,name:"salary",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Salário Mensal (R$)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",step:"0.01",placeholder:"Ex: 2500.00",...s,onChange:a=>s.onChange(parseFloat(a.target.value)||void 0)})}),u.jsx(Ht,{children:"Último salário recebido"}),u.jsx(xt,{})]})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(dt,{control:r.control,name:"months",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Tempo Trabalhado (meses)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",placeholder:"Ex: 24",...s,onChange:a=>s.onChange(parseInt(a.target.value)||1)})}),u.jsx(Ht,{children:"Duração do contrato em meses"}),u.jsx(xt,{})]})}),u.jsx(dt,{control:r.control,name:"vacationDays",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Férias Vencidas (dias)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",placeholder:"Ex: 0",...s,onChange:a=>s.onChange(parseInt(a.target.value)||0)})}),u.jsx(Ht,{children:"Férias não gozadas (0-30 dias)"}),u.jsx(xt,{})]})})]}),u.jsx(dt,{control:r.control,name:"workedPriorNotice",render:({field:s})=>u.jsxs(at,{className:"flex flex-row items-start space-x-3 space-y-0 rounded-md border border-border p-4",children:[u.jsx(lt,{children:u.jsx(kh,{checked:s.value,onCheckedChange:s.onChange})}),u.jsxs("div",{className:"space-y-1 leading-none",children:[u.jsx(it,{children:"Aviso prévio foi trabalhado?"}),u.jsx(Ht,{children:"Marque se você trabalhou durante o aviso prévio"})]})]})}),u.jsxs(nt,{type:"submit",size:"lg",className:"w-full",children:[u.jsx(Kp,{className:"mr-2 h-5 w-5"}),"Calcular Verbas"]})]})})]})},I2=()=>{const[e,t]=p.useState(null),r=Zc({resolver:Yc(E2),defaultValues:{receivedSalary:void 0,owedSalary:void 0,months:12,includeReflections:!0}}),n=s=>{const a=b2(s.receivedSalary,s.owedSalary,s.months,s.includeReflections),i=[{label:"Diferença salarial mensal",value:a.monthlyDifference,description:`${s.owedSalary.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})} - ${s.receivedSalary.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}`},{label:"Total de diferenças",value:a.totalDifference,description:`${s.months} meses × diferença mensal`,highlight:!0}];s.includeReflections&&i.push({label:"Reflexo 13º salário",value:a.thirteenthSalary,description:"Sobre as diferenças"},{label:"Reflexo férias + 1/3",value:a.vacation,description:"Sobre as diferenças"},{label:"FGTS (8%)",value:a.fgts,description:"Sobre diferenças e reflexos"}),t({items:i,total:a.total,formData:s})},o=()=>{t(null),r.reset()};return e?u.jsx(Ch,{title:"Cálculo de Diferenças Salariais",items:e.items,total:e.total,onNewCalculation:o,calculatorType:"salary",formData:e.formData}):u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"text-center space-y-2",children:[u.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Calculadora de Diferenças Salariais"}),u.jsx("p",{className:"text-muted-foreground",children:"Calcule diferenças por desvio ou acúmulo de função"})]}),u.jsx(Xc,{...r,children:u.jsxs("form",{onSubmit:r.handleSubmit(n),className:"space-y-6",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(dt,{control:r.control,name:"receivedSalary",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Salário Recebido (R$)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",step:"0.01",placeholder:"Ex: 2000.00",...s,onChange:a=>s.onChange(parseFloat(a.target.value)||void 0)})}),u.jsx(Ht,{children:"Quanto você recebia"}),u.jsx(xt,{})]})}),u.jsx(dt,{control:r.control,name:"owedSalary",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Salário Devido (R$)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",step:"0.01",placeholder:"Ex: 3000.00",...s,onChange:a=>s.onChange(parseFloat(a.target.value)||void 0)})}),u.jsx(Ht,{children:"Quanto deveria receber"}),u.jsx(xt,{})]})})]}),u.jsx(dt,{control:r.control,name:"months",render:({field:s})=>u.jsxs(at,{children:[u.jsx(it,{children:"Período no Desvio (meses)"}),u.jsx(lt,{children:u.jsx(kt,{type:"number",placeholder:"Ex: 12",...s,onChange:a=>s.onChange(parseInt(a.target.value)||1)})}),u.jsx(Ht,{children:"Por quanto tempo exerceu a função com salário incorreto? (máx. 60 meses)"}),u.jsx(xt,{})]})}),u.jsx(dt,{control:r.control,name:"includeReflections",render:({field:s})=>u.jsxs(at,{className:"flex flex-row items-start space-x-3 space-y-0 rounded-md border border-border p-4",children:[u.jsx(lt,{children:u.jsx(kh,{checked:s.value,onCheckedChange:s.onChange})}),u.jsxs("div",{className:"space-y-1 leading-none",children:[u.jsx(it,{children:"Incluir reflexos trabalhistas?"}),u.jsx(Ht,{children:"13º salário, férias, FGTS sobre as diferenças"})]})]})}),u.jsxs(nt,{type:"submit",size:"lg",className:"w-full",children:[u.jsx(Kp,{className:"mr-2 h-5 w-5"}),"Calcular Diferenças"]})]})})]})},M2=()=>u.jsx("section",{id:"calculadora",className:"py-8 md:py-16 bg-gradient-to-b from-background to-muted/20",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12",children:[u.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground",children:"Calculadora Trabalhista"}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto",children:"Descubra quanto você pode ter a receber. Faça uma simulação gratuita e converse com nossos especialistas."})]}),u.jsx("div",{className:"max-w-4xl mx-auto",children:u.jsxs(xj,{defaultValue:"overtime",className:"w-full",children:[u.jsxs(_1,{className:"grid w-full grid-cols-1 md:grid-cols-3 h-auto md:h-10 gap-1 md:gap-0",children:[u.jsx(xl,{value:"overtime",className:"text-sm md:text-base py-3 md:py-1.5",children:"Horas Extras"}),u.jsx(xl,{value:"severance",className:"text-sm md:text-base py-3 md:py-1.5",children:"Verbas Rescisórias"}),u.jsx(xl,{value:"salary",className:"text-sm md:text-base py-3 md:py-1.5",children:"Diferenças Salariais"})]}),u.jsx(Wr,{className:"mt-6 md:mt-8",children:u.jsxs(ph,{className:"p-4 md:p-6 lg:p-8",children:[u.jsx(wl,{value:"overtime",className:"mt-0",children:u.jsx(N2,{})}),u.jsx(wl,{value:"severance",className:"mt-0",children:u.jsx(O2,{})}),u.jsx(wl,{value:"salary",className:"mt-0",children:u.jsx(I2,{})})]})})]})})]})});var ru="Collapsible",[D2,sb]=Xt(ru),[L2,Th]=D2(ru),ab=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:s,onOpenChange:a,...i}=e,[l,c]=Jr({prop:n,defaultProp:o??!1,onChange:a,caller:ru});return u.jsx(L2,{scope:r,disabled:s,contentId:Zr(),open:l,onOpenToggle:p.useCallback(()=>c(d=>!d),[c]),children:u.jsx(oe.div,{"data-state":Rh(l),"data-disabled":s?"":void 0,...i,ref:t})})});ab.displayName=ru;var ib="CollapsibleTrigger",lb=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Th(ib,r);return u.jsx(oe.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Rh(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:te(e.onClick,o.onOpenToggle)})});lb.displayName=ib;var Nh="CollapsibleContent",cb=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Th(Nh,e.__scopeCollapsible);return u.jsx(Jt,{present:r||o.open,children:({present:s})=>u.jsx(F2,{...n,ref:t,present:s})})});cb.displayName=Nh;var F2=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...s}=e,a=Th(Nh,r),[i,l]=p.useState(n),c=p.useRef(null),d=ye(t,c),f=p.useRef(0),h=f.current,g=p.useRef(0),b=g.current,v=a.open||i,w=p.useRef(v),y=p.useRef(void 0);return p.useEffect(()=>{const m=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(m)},[]),Ge(()=>{const m=c.current;if(m){y.current=y.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();f.current=x.height,g.current=x.width,w.current||(m.style.transitionDuration=y.current.transitionDuration,m.style.animationName=y.current.animationName),l(n)}},[a.open,n]),u.jsx(oe.div,{"data-state":Rh(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&o})});function Rh(e){return e?"open":"closed"}var $2=ab,V2=lb,z2=cb,Pr="Accordion",B2=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ah,U2,H2]=jc(Pr),[nu,oD]=Xt(Pr,[H2,sb]),Ph=sb(),ub=R.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,s=n;return u.jsx(Ah.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?u.jsx(K2,{...s,ref:t}):u.jsx(G2,{...o,ref:t})})});ub.displayName=Pr;var[db,W2]=nu(Pr),[fb,q2]=nu(Pr,{collapsible:!1}),G2=R.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:s=!1,...a}=e,[i,l]=Jr({prop:r,defaultProp:n??"",onChange:o,caller:Pr});return u.jsx(db,{scope:e.__scopeAccordion,value:R.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:R.useCallback(()=>s&&l(""),[s,l]),children:u.jsx(fb,{scope:e.__scopeAccordion,collapsible:s,children:u.jsx(pb,{...a,ref:t})})})}),K2=R.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Jr({prop:r,defaultProp:n??[],onChange:o,caller:Pr}),l=R.useCallback(d=>i((f=[])=>[...f,d]),[i]),c=R.useCallback(d=>i((f=[])=>f.filter(h=>h!==d)),[i]);return u.jsx(db,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:u.jsx(fb,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(pb,{...s,ref:t})})})}),[Q2,ou]=nu(Pr),pb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:s="vertical",...a}=e,i=R.useRef(null),l=ye(i,t),c=U2(r),f=Si(o)==="ltr",h=te(e.onKeyDown,g=>{var N;if(!B2.includes(g.key))return;const b=g.target,v=c().filter(A=>{var M;return!((M=A.ref.current)!=null&&M.disabled)}),w=v.findIndex(A=>A.ref.current===b),y=v.length;if(w===-1)return;g.preventDefault();let m=w;const x=0,S=y-1,C=()=>{m=w+1,m>S&&(m=x)},k=()=>{m=w-1,m{const{__scopeAccordion:r,value:n,...o}=e,s=ou(dc,r),a=W2(dc,r),i=Ph(r),l=Zr(),c=n&&a.value.includes(n)||!1,d=s.disabled||e.disabled;return u.jsx(Z2,{scope:r,open:c,disabled:d,triggerId:l,children:u.jsx($2,{"data-orientation":s.orientation,"data-state":wb(c),...i,...o,ref:t,disabled:d,open:c,onOpenChange:f=>{f?a.onItemOpen(n):a.onItemClose(n)}})})});hb.displayName=dc;var mb="AccordionHeader",vb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ou(Pr,r),s=jh(mb,r);return u.jsx(oe.h3,{"data-orientation":o.orientation,"data-state":wb(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});vb.displayName=mb;var Lf="AccordionTrigger",gb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ou(Pr,r),s=jh(Lf,r),a=q2(Lf,r),i=Ph(r);return u.jsx(Ah.ItemSlot,{scope:r,children:u.jsx(V2,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...i,...n,ref:t})})});gb.displayName=Lf;var yb="AccordionContent",xb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ou(Pr,r),s=jh(yb,r),a=Ph(r);return u.jsx(z2,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});xb.displayName=yb;function wb(e){return e?"open":"closed"}var Y2=ub,X2=hb,J2=vb,bb=gb,Sb=xb;const eO=Y2,Cb=p.forwardRef(({className:e,...t},r)=>u.jsx(X2,{ref:r,className:ae("border-b",e),...t}));Cb.displayName="AccordionItem";const Eb=p.forwardRef(({className:e,children:t,...r},n)=>u.jsx(J2,{className:"flex",children:u.jsxs(bb,{ref:n,className:ae("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,u.jsx(Qp,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Eb.displayName=bb.displayName;const _b=p.forwardRef(({className:e,children:t,...r},n)=>u.jsx(Sb,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:u.jsx("div",{className:ae("pb-4 pt-0",e),children:t})}));_b.displayName=Sb.displayName;const tO=[{category:"Prazos e Processo",questions:[{q:"Quanto tempo tenho para entrar com ação trabalhista?",a:"Você tem até 2 anos após o término do contrato de trabalho para entrar com ação na Justiça do Trabalho, e pode cobrar direitos dos últimos 5 anos trabalhados (prazo prescricional)."},{q:"Quanto tempo demora um processo trabalhista?",a:"O processo judicial não tem um prazo especifico para ser finalizado. Tudo irá depender da complexidade dos direitos pleiteados, da agilidade da Vara Trabalhista onde o processo for ajuizado, se a parte contrária irá recorrer, etc. Um acordo, se bom para ambas as partes é sempre o melhor caminho."},{q:"Preciso pagar para entrar com ação?",a:"Não! Na Justiça do Trabalho, você não precisa pagar custas processuais inicialmente. Se perder a ação, só pagará honorários advocatícios se tiver agido com má-fé ou tiver condições financeiras."}]},{category:"Direitos Trabalhistas",questions:[{q:"Fui demitido sem justa causa. Tenho direito a quê?",a:"Você tem direito a: aviso prévio, 13º salário proporcional, férias proporcionais + 1/3, férias vencidas (se houver), saldo de salário, saque do FGTS + multa de 40%, e seguro-desemprego (se cumprir os requisitos)."},{q:"Trabalho sem carteira assinada. Posso processar?",a:"Sim! Trabalhar sem registro é ilegal. Você pode entrar com ação para reconhecimento de vínculo empregatício e cobrar todos os direitos não pagos (FGTS, férias, 13º, etc)."},{q:"Meu patrão não paga horas extras. O que fazer?",a:"Você pode entrar com ação trabalhista para cobrar as horas extras não pagas dos últimos 5 anos. É importante ter provas como controle de ponto, mensagens, testemunhas."},{q:"O que é rescisão indireta?",a:"A Rescisão Indireta é a 'Justa Causa do Empregador'. É o direito do trabalhador de pedir o fim do contrato judicialmente, recebendo todos os direitos, quando a empresa comete uma falta grave que impede a continuidade do trabalho, conforme o Artigo 483 da CLT."}]},{category:"Custos e Honorários",questions:[{q:"Quanto custa contratar um advogado trabalhista?",a:"Geralmente trabalhamos com honorários de êxito (porcentagem do que você receber). A avaliação inicial é GRATUITA. Somente pagará se ganhar a ação."},{q:"Posso fazer acordo antes do processo?",a:"Sim! Podemos negociar um acordo extrajudicial, que é mais rápido. Se não houver acordo, entramos com a ação judicial."},{q:"E se eu perder a ação?",a:"Na Justiça do Trabalho, se o trabalhador tiver o benefício da Justiça Gratuita, ele pode ser condenado a pagar custas e honorários advocatícios (Art. 791-A da CLT). No entanto, a cobrança desses valores só poderá ocorrer se ele obtiver créditos (ganhos) suficientes no próprio processo ou em outros, dentro de dois anos. Em resumo: ele não precisa tirar dinheiro do próprio bolso para pagar se não tiver ganhos na Justiça."}]},{category:"Documentação",questions:[{q:"Quais documentos preciso levar?",a:"Carteira de trabalho, contracheques, rescisão, controle de ponto, mensagens com o empregador. Mas não se preocupe se não tiver tudo - podemos solicitar na justiça."},{q:"Posso processar sem provas?",a:"Sim, sua palavra vale como prova (especialmente se o empregador não apresentar controle de ponto). Testemunhas também ajudam muito. A empresa tem obrigação legal de comprovar pagamentos."}]}],rO=()=>{const e=ar.getWhatsAppLink("Olá, tenho dúvidas sobre meus direitos trabalhistas");return u.jsx("section",{id:"faq",className:"py-8 md:py-16 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary px-4 py-2 rounded-full text-sm font-medium",children:[u.jsx(Jk,{className:"w-4 h-4"}),"Dúvidas Frequentes"]}),u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-foreground",children:["Perguntas ",u.jsx("span",{className:"text-primary",children:"Frequentes"})]}),u.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mx-auto",children:"Tire suas principais dúvidas sobre direitos trabalhistas"})]}),u.jsx("div",{className:"max-w-4xl mx-auto space-y-6",children:tO.map((t,r)=>u.jsxs("div",{className:"space-y-3",children:[u.jsxs("h3",{className:"text-lg font-semibold text-primary flex items-center gap-2",children:[u.jsx("span",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-sm",children:r+1}),t.category]}),u.jsx(eO,{type:"single",collapsible:!0,className:"space-y-2",children:t.questions.map((n,o)=>u.jsxs(Cb,{value:`item-${r}-${o}`,className:"border border-border rounded-lg px-4 bg-card",children:[u.jsx(Eb,{className:"text-left hover:no-underline py-4",children:u.jsx("span",{className:"font-medium text-foreground pr-4",children:n.q})}),u.jsx(_b,{className:"text-muted-foreground pb-4 leading-relaxed",children:n.a})]},`${r}-${o}`))})]},r))}),u.jsxs("div",{className:"text-center mt-10 md:mt-12",children:[u.jsx("p",{className:"text-muted-foreground mb-4",children:"Ainda tem dúvidas? Fale com nossos especialistas"}),u.jsx(nt,{asChild:!0,size:"lg",className:"gap-2",children:u.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:20}),"Fale Agora !!!"]})})]})]})})};var kb={exports:{}};function nO(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var td=nO(p),oO=vo;function sO(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;nn.length&&Qt(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var o=n.length,s=t.length;s>=n.length;s--){var a=t[s];if(!Qt(e,s)&&su(e,s,a)){o=s+1;break}}return o}function Tb(e,t){return Na(e,t)===e.mask.length}function vn(e,t){var r=e.maskChar,n=e.mask,o=e.prefix;if(!r){for((t=$f(e,"",t,0)).lengtht.length&&(t+=o.slice(t.length,n)),i.every(function(c){for(;g=c,Qt(e,h=n)&&g!==o[h];){if(n>=t.length&&(t+=o[n]),d=c,f=n,s&&Qt(e,f)&&d===s)return!0;if(++n>=o.length)return!1}var d,f,h,g;return!su(e,n,c)&&c!==s||(n=o.length)return!1;var c,d;return(su(e,n,l)||l===s)&&n++,no.start?f=(d=pO(e,n,c=l.slice(o.start,r.end),h))?o.length:0:l.length=s.length?h=s.length:h=a.length&&hu.jsx("textarea",{className:ae("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:r,...t}));Oh.displayName="Textarea";function Vf(e,[t,r]){return Math.min(r,Math.max(t,e))}var od=0;function Rb(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_g()),document.body.insertAdjacentElement("beforeend",e[1]??_g()),od++,()=>{od===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),od--}},[])}function _g(){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 sd="focusScope.autoFocusOnMount",ad="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},SO="FocusScope",Ih=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=p.useState(null),c=Je(o),d=Je(s),f=p.useRef(null),h=ye(t,v=>l(v)),g=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let v=function(x){if(g.paused||!i)return;const S=x.target;i.contains(S)?f.current=S:Mn(f.current,{select:!0})},w=function(x){if(g.paused||!i)return;const S=x.relatedTarget;S!==null&&(i.contains(S)||Mn(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Mn(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const m=new MutationObserver(y);return i&&m.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),m.disconnect()}}},[n,i,g.paused]),p.useEffect(()=>{if(i){Ng.add(g);const v=document.activeElement;if(!i.contains(v)){const y=new CustomEvent(sd,kg);i.addEventListener(sd,c),i.dispatchEvent(y),y.defaultPrevented||(CO(NO(Ab(i)),{select:!0}),document.activeElement===v&&Mn(i))}return()=>{i.removeEventListener(sd,c),setTimeout(()=>{const y=new CustomEvent(ad,kg);i.addEventListener(ad,d),i.dispatchEvent(y),y.defaultPrevented||Mn(v??document.body,{select:!0}),i.removeEventListener(ad,d),Ng.remove(g)},0)}}},[i,c,d,g]);const b=p.useCallback(v=>{if(!r&&!n||g.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(w&&y){const m=v.currentTarget,[x,S]=EO(m);x&&S?!v.shiftKey&&y===S?(v.preventDefault(),r&&Mn(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),r&&Mn(S,{select:!0})):y===m&&v.preventDefault()}},[r,n,g.paused]);return u.jsx(oe.div,{tabIndex:-1,...a,ref:h,onKeyDown:b})});Ih.displayName=SO;function CO(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Mn(n,{select:t}),document.activeElement!==r)return}function EO(e){const t=Ab(e),r=Tg(t,e),n=Tg(t.reverse(),e);return[r,n]}function Ab(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Tg(e,t){for(const r of e)if(!_O(r,{upTo:t}))return r}function _O(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 kO(e){return e instanceof HTMLInputElement&&"select"in e}function Mn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&kO(e)&&t&&e.select()}}var Ng=TO();function TO(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rg(e,t),e.unshift(t)},remove(t){var r;e=Rg(e,t),(r=e[0])==null||r.resume()}}}function Rg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function NO(e){return e.filter(t=>t.tagName!=="A")}var RO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},es=new WeakMap,Xi=new WeakMap,Ji={},id=0,Pb=function(e){return e&&(e.host||Pb(e.parentNode))},AO=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Pb(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},PO=function(e,t,r,n){var o=AO(t,Array.isArray(e)?e:[e]);Ji[r]||(Ji[r]=new WeakMap);var s=Ji[r],a=[],i=new Set,l=new Set(o),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(i.has(h))d(h);else try{var g=h.getAttribute(n),b=g!==null&&g!=="false",v=(es.get(h)||0)+1,w=(s.get(h)||0)+1;es.set(h,v),s.set(h,w),a.push(h),v===1&&b&&Xi.set(h,!0),w===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),i.clear(),id++,function(){a.forEach(function(f){var h=es.get(f)-1,g=s.get(f)-1;es.set(f,h),s.set(f,g),h||(Xi.has(f)||f.removeAttribute(n),Xi.delete(f)),g||f.removeAttribute(r)}),id--,id||(es=new WeakMap,es=new WeakMap,Xi=new WeakMap,Ji={})}},jb=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=RO(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),PO(n,o,r,"aria-hidden")):function(){return null}},Ur=function(){return Ur=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u")return KO;var t=QO(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},YO=Db(),Ts="data-scroll-locked",XO=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),` .`.concat(OO,` { overflow: hidden `).concat(n,`; padding-right: `).concat(i,"px ").concat(n,`; } body[`).concat(Ts,`] { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(s,`px; padding-right: `).concat(a,`px; margin-left:0; margin-top:0; margin-right: `).concat(i,"px ").concat(n,`; `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),` } .`).concat(Sl,` { right: `).concat(i,"px ").concat(n,`; } .`).concat(Cl,` { margin-right: `).concat(i,"px ").concat(n,`; } .`).concat(Sl," .").concat(Sl,` { right: 0 `).concat(n,`; } .`).concat(Cl," .").concat(Cl,` { margin-right: 0 `).concat(n,`; } body[`).concat(Ts,`] { `).concat(IO,": ").concat(i,`px; } `)},Pg=function(){var e=parseInt(document.body.getAttribute(Ts)||"0",10);return isFinite(e)?e:0},JO=function(){p.useEffect(function(){return document.body.setAttribute(Ts,(Pg()+1).toString()),function(){var e=Pg()-1;e<=0?document.body.removeAttribute(Ts):document.body.setAttribute(Ts,e.toString())}},[])},eI=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;JO();var s=p.useMemo(function(){return ZO(o)},[o]);return p.createElement(YO,{styles:XO(s,!t,o,r?"":"!important")})},zf=!1;if(typeof window<"u")try{var el=Object.defineProperty({},"passive",{get:function(){return zf=!0,!0}});window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{zf=!1}var ts=zf?{passive:!1}:!1,tI=function(e){return e.tagName==="TEXTAREA"},Lb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tI(e)&&r[t]==="visible")},rI=function(e){return Lb(e,"overflowY")},nI=function(e){return Lb(e,"overflowX")},jg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Fb(e,n);if(o){var s=$b(e,n),a=s[1],i=s[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},oI=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},sI=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Fb=function(e,t){return e==="v"?rI(t):nI(t)},$b=function(e,t){return e==="v"?oI(t):sI(t)},aI=function(e,t){return e==="h"&&t==="rtl"?-1:1},iI=function(e,t,r,n,o){var s=aI(e,window.getComputedStyle(t).direction),a=s*n,i=r.target,l=t.contains(i),c=!1,d=a>0,f=0,h=0;do{if(!i)break;var g=$b(e,i),b=g[0],v=g[1],w=g[2],y=v-w-s*b;(b||y)&&Fb(e,i)&&(f+=y,h+=b);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(h)<1||!o))&&(c=!0),c},tl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Og=function(e){return[e.deltaX,e.deltaY]},Ig=function(e){return e&&"current"in e?e.current:e},lI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cI=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},uI=0,rs=[];function dI(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(uI++)[0],s=p.useState(Db)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=jO([e.lockRef.current],(e.shards||[]).map(Ig),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=p.useCallback(function(v,w){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var y=tl(v),m=r.current,x="deltaX"in v?v.deltaX:m[0]-y[0],S="deltaY"in v?v.deltaY:m[1]-y[1],C,k=v.target,_=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in v&&_==="h"&&k.type==="range")return!1;var N=jg(_,k);if(!N)return!0;if(N?C=_:(C=_==="v"?"h":"v",N=jg(_,k)),!N)return!1;if(!n.current&&"changedTouches"in v&&(x||S)&&(n.current=C),!C)return!0;var A=n.current||C;return iI(A,w,v,A==="h"?x:S,!0)},[]),l=p.useCallback(function(v){var w=v;if(!(!rs.length||rs[rs.length-1]!==s)){var y="deltaY"in w?Og(w):tl(w),m=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&lI(C.delta,y)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var x=(a.current.shards||[]).map(Ig).filter(Boolean).filter(function(C){return C.contains(w.target)}),S=x.length>0?i(w,x[0]):!a.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),c=p.useCallback(function(v,w,y,m){var x={name:v,delta:w,target:y,should:m,shadowParent:fI(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=p.useCallback(function(v){r.current=tl(v),n.current=void 0},[]),f=p.useCallback(function(v){c(v.type,Og(v),v.target,i(v,e.lockRef.current))},[]),h=p.useCallback(function(v){c(v.type,tl(v),v.target,i(v,e.lockRef.current))},[]);p.useEffect(function(){return rs.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ts),document.addEventListener("touchmove",l,ts),document.addEventListener("touchstart",d,ts),function(){rs=rs.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,ts),document.removeEventListener("touchmove",l,ts),document.removeEventListener("touchstart",d,ts)}},[]);var g=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(s,{styles:cI(o)}):null,g?p.createElement(eI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pI=zO(Mb,dI);var Mh=p.forwardRef(function(e,t){return p.createElement(au,Ur({},e,{ref:t,sideCar:pI}))});Mh.classNames=au.classNames;var hI=[" ","Enter","ArrowUp","ArrowDown"],mI=[" ","Enter"],Ho="Select",[iu,lu,vI]=jc(Ho),[ia,sD]=Xt(Ho,[vI,$c]),cu=$c(),[gI,go]=ia(Ho),[yI,xI]=ia(Ho),Vb=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:l,dir:c,name:d,autoComplete:f,disabled:h,required:g,form:b}=e,v=cu(t),[w,y]=p.useState(null),[m,x]=p.useState(null),[S,C]=p.useState(!1),k=Si(c),[_,N]=Jr({prop:n,defaultProp:o??!1,onChange:s,caller:Ho}),[A,M]=Jr({prop:a,defaultProp:i,onChange:l,caller:Ho}),B=p.useRef(null),D=w?b||!!w.closest("form"):!0,[U,L]=p.useState(new Set),X=Array.from(U).map(z=>z.props.value).join(";");return u.jsx(BR,{...v,children:u.jsxs(gI,{required:g,scope:t,trigger:w,onTriggerChange:y,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:Zr(),value:A,onValueChange:M,open:_,onOpenChange:N,dir:k,triggerPointerDownPosRef:B,disabled:h,children:[u.jsx(iu.Provider,{scope:t,children:u.jsx(yI,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(z=>{L(J=>new Set(J).add(z))},[]),onNativeOptionRemove:p.useCallback(z=>{L(J=>{const P=new Set(J);return P.delete(z),P})},[]),children:r})}),D?u.jsxs(uS,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:f,value:A,onChange:z=>M(z.target.value),disabled:h,form:b,children:[A===void 0?u.jsx("option",{value:""}):null,Array.from(U)]},X):null]})})};Vb.displayName=Ho;var zb="SelectTrigger",Bb=p.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,s=cu(r),a=go(zb,r),i=a.disabled||n,l=ye(t,a.onTriggerChange),c=lu(r),d=p.useRef("touch"),[f,h,g]=fS(v=>{const w=c().filter(x=>!x.disabled),y=w.find(x=>x.value===a.value),m=pS(w,v,y);m!==void 0&&a.onValueChange(m.value)}),b=v=>{i||(a.onOpenChange(!0),g()),v&&(a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return u.jsx(Cw,{asChild:!0,...s,children:u.jsx(oe.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":dS(a.value)?"":void 0,...o,ref:l,onClick:te(o.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&b(v)}),onPointerDown:te(o.onPointerDown,v=>{d.current=v.pointerType;const w=v.target;w.hasPointerCapture(v.pointerId)&&w.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(b(v),v.preventDefault())}),onKeyDown:te(o.onKeyDown,v=>{const w=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&h(v.key),!(w&&v.key===" ")&&hI.includes(v.key)&&(b(),v.preventDefault())})})})});Bb.displayName=zb;var Ub="SelectValue",Hb=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:s,placeholder:a="",...i}=e,l=go(Ub,r),{onValueNodeHasChildrenChange:c}=l,d=s!==void 0,f=ye(t,l.onValueNodeChange);return Ge(()=>{c(d)},[c,d]),u.jsx(oe.span,{...i,ref:f,style:{pointerEvents:"none"},children:dS(l.value)?u.jsx(u.Fragment,{children:a}):s})});Hb.displayName=Ub;var wI="SelectIcon",Wb=p.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(oe.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Wb.displayName=wI;var bI="SelectPortal",qb=e=>u.jsx(Oc,{asChild:!0,...e});qb.displayName=bI;var Wo="SelectContent",Gb=p.forwardRef((e,t)=>{const r=go(Wo,e.__scopeSelect),[n,o]=p.useState();if(Ge(()=>{o(new DocumentFragment)},[]),!r.open){const s=n;return s?vo.createPortal(u.jsx(Kb,{scope:e.__scopeSelect,children:u.jsx(iu.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),s):null}return u.jsx(Qb,{...e,ref:t})});Gb.displayName=Wo;var vr=10,[Kb,yo]=ia(Wo),SI="SelectContentImpl",CI=Us("SelectContent.RemoveScroll"),Qb=p.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:v,avoidCollisions:w,...y}=e,m=go(Wo,r),[x,S]=p.useState(null),[C,k]=p.useState(null),_=ye(t,G=>S(G)),[N,A]=p.useState(null),[M,B]=p.useState(null),D=lu(r),[U,L]=p.useState(!1),X=p.useRef(!1);p.useEffect(()=>{if(x)return jb(x)},[x]),Rb();const z=p.useCallback(G=>{const[Ce,...Pe]=D().map(we=>we.ref.current),[xe]=Pe.slice(-1),ve=document.activeElement;for(const we of G)if(we===ve||(we==null||we.scrollIntoView({block:"nearest"}),we===Ce&&C&&(C.scrollTop=0),we===xe&&C&&(C.scrollTop=C.scrollHeight),we==null||we.focus(),document.activeElement!==ve))return},[D,C]),J=p.useCallback(()=>z([N,x]),[z,N,x]);p.useEffect(()=>{U&&J()},[U,J]);const{onOpenChange:P,triggerPointerDownPosRef:O}=m;p.useEffect(()=>{if(x){let G={x:0,y:0};const Ce=xe=>{var ve,we;G={x:Math.abs(Math.round(xe.pageX)-(((ve=O.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(xe.pageY)-(((we=O.current)==null?void 0:we.y)??0))}},Pe=xe=>{G.x<=10&&G.y<=10?xe.preventDefault():x.contains(xe.target)||P(!1),document.removeEventListener("pointermove",Ce),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",Ce),document.addEventListener("pointerup",Pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ce),document.removeEventListener("pointerup",Pe,{capture:!0})}}},[x,P,O]),p.useEffect(()=>{const G=()=>P(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[P]);const[W,se]=fS(G=>{const Ce=D().filter(ve=>!ve.disabled),Pe=Ce.find(ve=>ve.ref.current===document.activeElement),xe=pS(Ce,G,Pe);xe&&setTimeout(()=>xe.ref.current.focus())}),ne=p.useCallback((G,Ce,Pe)=>{const xe=!X.current&&!Pe;(m.value!==void 0&&m.value===Ce||xe)&&(A(G),xe&&(X.current=!0))},[m.value]),le=p.useCallback(()=>x==null?void 0:x.focus(),[x]),ie=p.useCallback((G,Ce,Pe)=>{const xe=!X.current&&!Pe;(m.value!==void 0&&m.value===Ce||xe)&&B(G)},[m.value]),Ne=n==="popper"?Bf:Zb,Fe=Ne===Bf?{side:i,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:v,avoidCollisions:w}:{};return u.jsx(Kb,{scope:r,content:x,viewport:C,onViewportChange:k,itemRefCallback:ne,selectedItem:N,onItemLeave:le,itemTextRefCallback:ie,focusSelectedItem:J,selectedItemText:M,position:n,isPositioned:U,searchRef:W,children:u.jsx(Mh,{as:CI,allowPinchZoom:!0,children:u.jsx(Ih,{asChild:!0,trapped:m.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:te(o,G=>{var Ce;(Ce=m.trigger)==null||Ce.focus({preventScroll:!0}),G.preventDefault()}),children:u.jsx(xi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:u.jsx(Ne,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:G=>G.preventDefault(),...y,...Fe,onPlaced:()=>L(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:te(y.onKeyDown,G=>{const Ce=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!Ce&&G.key.length===1&&se(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let xe=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(G.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ve=G.target,we=xe.indexOf(ve);xe=xe.slice(we+1)}setTimeout(()=>z(xe)),G.preventDefault()}})})})})})})});Qb.displayName=SI;var EI="SelectItemAlignedPosition",Zb=p.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,s=go(Wo,r),a=yo(Wo,r),[i,l]=p.useState(null),[c,d]=p.useState(null),f=ye(t,_=>d(_)),h=lu(r),g=p.useRef(!1),b=p.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:y,focusSelectedItem:m}=a,x=p.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&c&&v&&w&&y){const _=s.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),M=y.getBoundingClientRect();if(s.dir!=="rtl"){const ve=M.left-N.left,we=A.left-ve,ot=_.left-we,bt=_.width+ot,Or=Math.max(bt,N.width),Ir=window.innerWidth-vr,nn=Vf(we,[vr,Math.max(vr,Ir-Or)]);i.style.minWidth=bt+"px",i.style.left=nn+"px"}else{const ve=N.right-M.right,we=window.innerWidth-A.right-ve,ot=window.innerWidth-_.right-we,bt=_.width+ot,Or=Math.max(bt,N.width),Ir=window.innerWidth-vr,nn=Vf(we,[vr,Math.max(vr,Ir-Or)]);i.style.minWidth=bt+"px",i.style.right=nn+"px"}const B=h(),D=window.innerHeight-vr*2,U=v.scrollHeight,L=window.getComputedStyle(c),X=parseInt(L.borderTopWidth,10),z=parseInt(L.paddingTop,10),J=parseInt(L.borderBottomWidth,10),P=parseInt(L.paddingBottom,10),O=X+z+U+P+J,W=Math.min(w.offsetHeight*5,O),se=window.getComputedStyle(v),ne=parseInt(se.paddingTop,10),le=parseInt(se.paddingBottom,10),ie=_.top+_.height/2-vr,Ne=D-ie,Fe=w.offsetHeight/2,G=w.offsetTop+Fe,Ce=X+z+G,Pe=O-Ce;if(Ce<=ie){const ve=B.length>0&&w===B[B.length-1].ref.current;i.style.bottom="0px";const we=c.clientHeight-v.offsetTop-v.offsetHeight,ot=Math.max(Ne,Fe+(ve?le:0)+we+J),bt=Ce+ot;i.style.height=bt+"px"}else{const ve=B.length>0&&w===B[0].ref.current;i.style.top="0px";const ot=Math.max(ie,X+v.offsetTop+(ve?ne:0)+Fe)+Pe;i.style.height=ot+"px",v.scrollTop=Ce-ie+v.offsetTop}i.style.margin=`${vr}px 0`,i.style.minHeight=W+"px",i.style.maxHeight=D+"px",n==null||n(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,i,c,v,w,y,s.dir,n]);Ge(()=>x(),[x]);const[S,C]=p.useState();Ge(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);const k=p.useCallback(_=>{_&&b.current===!0&&(x(),m==null||m(),b.current=!1)},[x,m]);return u.jsx(kI,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:k,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:u.jsx(oe.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Zb.displayName=EI;var _I="SelectPopperPosition",Bf=p.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=vr,...s}=e,a=cu(r);return u.jsx(Ew,{...a,...s,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bf.displayName=_I;var[kI,Dh]=ia(Wo,{}),Uf="SelectViewport",Yb=p.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,s=yo(Uf,r),a=Dh(Uf,r),i=ye(t,s.onViewportChange),l=p.useRef(0);return u.jsxs(u.Fragment,{children:[u.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:n}),u.jsx(iu.Slot,{scope:r,children:u.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:te(o.onScroll,c=>{const d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&f){const g=Math.abs(l.current-d.scrollTop);if(g>0){const b=window.innerHeight-vr*2,v=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),y=Math.max(v,w);if(y0?S:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Yb.displayName=Uf;var Xb="SelectGroup",[TI,NI]=ia(Xb),RI=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Zr();return u.jsx(TI,{scope:r,id:o,children:u.jsx(oe.div,{role:"group","aria-labelledby":o,...n,ref:t})})});RI.displayName=Xb;var Jb="SelectLabel",eS=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=NI(Jb,r);return u.jsx(oe.div,{id:o.id,...n,ref:t})});eS.displayName=Jb;var fc="SelectItem",[AI,tS]=ia(fc),rS=p.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,...a}=e,i=go(fc,r),l=yo(fc,r),c=i.value===n,[d,f]=p.useState(s??""),[h,g]=p.useState(!1),b=ye(t,m=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,m,n,o)}),v=Zr(),w=p.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")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 u.jsx(AI,{scope:r,value:n,disabled:o,textId:v,isSelected:c,onItemTextChange:p.useCallback(m=>{f(x=>x||((m==null?void 0:m.textContent)??"").trim())},[]),children:u.jsx(iu.ItemSlot,{scope:r,value:n,disabled:o,textValue:d,children:u.jsx(oe.div,{role:"option","aria-labelledby":v,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:b,onFocus:te(a.onFocus,()=>g(!0)),onBlur:te(a.onBlur,()=>g(!1)),onClick:te(a.onClick,()=>{w.current!=="mouse"&&y()}),onPointerUp:te(a.onPointerUp,()=>{w.current==="mouse"&&y()}),onPointerDown:te(a.onPointerDown,m=>{w.current=m.pointerType}),onPointerMove:te(a.onPointerMove,m=>{var x;w.current=m.pointerType,o?(x=l.onItemLeave)==null||x.call(l):w.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:te(a.onPointerLeave,m=>{var x;m.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:te(a.onKeyDown,m=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&m.key===" "||(mI.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})})})})});rS.displayName=fc;var Ra="SelectItemText",nS=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...s}=e,a=go(Ra,r),i=yo(Ra,r),l=tS(Ra,r),c=xI(Ra,r),[d,f]=p.useState(null),h=ye(t,y=>f(y),l.onItemTextChange,y=>{var m;return(m=i.itemTextRefCallback)==null?void 0:m.call(i,y,l.value,l.disabled)}),g=d==null?void 0:d.textContent,b=p.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:w}=c;return Ge(()=>(v(b),()=>w(b)),[v,w,b]),u.jsxs(u.Fragment,{children:[u.jsx(oe.span,{id:l.textId,...s,ref:h}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?vo.createPortal(s.children,a.valueNode):null]})});nS.displayName=Ra;var oS="SelectItemIndicator",sS=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return tS(oS,r).isSelected?u.jsx(oe.span,{"aria-hidden":!0,...n,ref:t}):null});sS.displayName=oS;var Hf="SelectScrollUpButton",aS=p.forwardRef((e,t)=>{const r=yo(Hf,e.__scopeSelect),n=Dh(Hf,e.__scopeSelect),[o,s]=p.useState(!1),a=ye(t,n.onScrollButtonChange);return Ge(()=>{if(r.viewport&&r.isPositioned){let i=function(){const c=l.scrollTop>0;s(c)};const l=r.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(lS,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=r;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});aS.displayName=Hf;var Wf="SelectScrollDownButton",iS=p.forwardRef((e,t)=>{const r=yo(Wf,e.__scopeSelect),n=Dh(Wf,e.__scopeSelect),[o,s]=p.useState(!1),a=ye(t,n.onScrollButtonChange);return Ge(()=>{if(r.viewport&&r.isPositioned){let i=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)l.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(lS,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=r;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});iS.displayName=Wf;var lS=p.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,s=yo("SelectScrollButton",r),a=p.useRef(null),i=lu(r),l=p.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return p.useEffect(()=>()=>l(),[l]),Ge(()=>{var d;const c=i().find(f=>f.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[i]),u.jsx(oe.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:te(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:te(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:te(o.onPointerLeave,()=>{l()})})}),PI="SelectSeparator",cS=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(oe.div,{"aria-hidden":!0,...n,ref:t})});cS.displayName=PI;var qf="SelectArrow",jI=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=cu(r),s=go(qf,r),a=yo(qf,r);return s.open&&a.position==="popper"?u.jsx(_w,{...o,...n,ref:t}):null});jI.displayName=qf;var OI="SelectBubbleInput",uS=p.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=p.useRef(null),s=ye(n,o),a=Y1(t);return p.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const f=new Event("change",{bubbles:!0});d.call(i,t),i.dispatchEvent(f)}},[a,t]),u.jsx(oe.select,{...r,style:{...m0,...r.style},ref:s,defaultValue:t})});uS.displayName=OI;function dS(e){return e===""||e===void 0}function fS(e){const t=Je(e),r=p.useRef(""),n=p.useRef(0),o=p.useCallback(a=>{const i=r.current+a;t(i),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),s=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,s]}function pS(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let a=II(e,Math.max(s,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function II(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var MI=Vb,hS=Bb,DI=Hb,LI=Wb,FI=qb,mS=Gb,$I=Yb,vS=eS,gS=rS,VI=nS,zI=sS,yS=aS,xS=iS,wS=cS;const BI=MI,UI=DI,bS=p.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(hS,{ref:n,className:ae("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),...r,children:[t,u.jsx(LI,{asChild:!0,children:u.jsx(Qp,{className:"h-4 w-4 opacity-50"})})]}));bS.displayName=hS.displayName;const SS=p.forwardRef(({className:e,...t},r)=>u.jsx(yS,{ref:r,className:ae("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Xk,{className:"h-4 w-4"})}));SS.displayName=yS.displayName;const CS=p.forwardRef(({className:e,...t},r)=>u.jsx(xS,{ref:r,className:ae("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Qp,{className:"h-4 w-4"})}));CS.displayName=xS.displayName;const ES=p.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>u.jsx(FI,{children:u.jsxs(mS,{ref:o,className:ae("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",r==="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:r,...n,children:[u.jsx(SS,{}),u.jsx($I,{className:ae("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(CS,{})]})}));ES.displayName=mS.displayName;const HI=p.forwardRef(({className:e,...t},r)=>u.jsx(vS,{ref:r,className:ae("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));HI.displayName=vS.displayName;const _S=p.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(gS,{ref:n,className:ae("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),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(zI,{children:u.jsx(F0,{className:"h-4 w-4"})})}),u.jsx(VI,{children:t})]}));_S.displayName=gS.displayName;const WI=p.forwardRef(({className:e,...t},r)=>u.jsx(wS,{ref:r,className:ae("-mx-1 my-1 h-px bg-muted",e),...t}));WI.displayName=wS.displayName;const qI=/^\(\d{2}\) \d{5}-\d{4}$/,GI=eu({name:Sa().trim().min(3,"Nome deve ter pelo menos 3 caracteres").max(100,"Nome muito longo"),email:Sa().trim().email("E-mail inválido").max(255,"E-mail muito longo"),phone:Sa().regex(qI,"Telefone inválido. Use o formato (11) 99999-9999"),caseType:Sa().min(1,"Selecione o tipo de caso"),message:Sa().trim().min(10,"Mensagem deve ter pelo menos 10 caracteres").max(1e3,"Mensagem muito longa (máximo 1000 caracteres)")}),Mg=[{value:"demissao",label:"Demissão sem justa causa"},{value:"assedio",label:"Assédio moral ou sexual"},{value:"horas",label:"Horas extras não pagas"},{value:"vinculo",label:"Trabalho sem registro (CLT)"},{value:"rescisao",label:"Rescisão indireta"},{value:"verbas",label:"Verbas rescisórias não pagas"},{value:"acidente",label:"Acidente de trabalho"},{value:"desvio",label:"Desvio de função"},{value:"ferias",label:"Férias não concedidas"},{value:"outro",label:"Outro assunto trabalhista"}],KI=()=>{const e=Zc({resolver:Yc(GI),defaultValues:{name:"",email:"",phone:"",caseType:"",message:""}}),t=r=>{var a;const n=((a=Mg.find(i=>i.value===r.caseType))==null?void 0:a.label)||r.caseType,o=`*Nova Consulta - Site* 👤 *Nome:* ${r.name} 📧 *E-mail:* ${r.email} 📱 *Telefone:* ${r.phone} ⚖️ *Tipo de Caso:* ${n} 📝 *Mensagem:* ${r.message}`,s=ar.getWhatsAppLink(o);window.open(s,"_blank","noopener,noreferrer"),lN.success("Redirecionando para WhatsApp...",{description:"Seus dados foram preparados para envio"}),e.reset()};return u.jsx("section",{id:"contato",className:"py-8 md:py-16 bg-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-5xl mx-auto",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground",children:["Entre em ",u.jsx("span",{className:"text-primary",children:"Contato"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Preencha o formulário abaixo e receba orientação jurídica gratuita. Nossa equipe está pronta para analisar seu caso."})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 md:gap-8",children:[u.jsx(Wr,{className:"lg:col-span-2 p-6 md:p-8 animate-fade-in",children:u.jsx(Xc,{...e,children:u.jsxs("form",{onSubmit:e.handleSubmit(t),className:"space-y-5",children:[u.jsx(dt,{control:e.control,name:"name",render:({field:r})=>u.jsxs(at,{children:[u.jsx(it,{children:"Nome Completo *"}),u.jsx(lt,{children:u.jsx(kt,{placeholder:"Digite seu nome completo",...r})}),u.jsx(xt,{})]})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[u.jsx(dt,{control:e.control,name:"email",render:({field:r})=>u.jsxs(at,{children:[u.jsx(it,{children:"E-mail *"}),u.jsx(lt,{children:u.jsxs("div",{className:"relative",children:[u.jsx(nT,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),u.jsx(kt,{type:"email",placeholder:"seu@email.com",className:"pl-10",...r})]})}),u.jsx(xt,{})]})}),u.jsx(dt,{control:e.control,name:"phone",render:({field:r})=>u.jsxs(at,{children:[u.jsx(it,{children:"WhatsApp *"}),u.jsx(lt,{children:u.jsxs("div",{className:"relative",children:[u.jsx(df,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),u.jsx(bO,{mask:"(99) 99999-9999",value:r.value,onChange:r.onChange,children:n=>u.jsx(kt,{...n,type:"tel",placeholder:"(11) 99999-9999",className:"pl-10"})})]})}),u.jsx(xt,{})]})})]}),u.jsx(dt,{control:e.control,name:"caseType",render:({field:r})=>u.jsxs(at,{children:[u.jsx(it,{children:"Tipo de Caso *"}),u.jsxs(BI,{onValueChange:r.onChange,value:r.value,children:[u.jsx(lt,{children:u.jsx(bS,{children:u.jsx(UI,{placeholder:"Selecione o tipo do seu caso"})})}),u.jsx(ES,{children:Mg.map(n=>u.jsx(_S,{value:n.value,children:n.label},n.value))})]}),u.jsx(xt,{})]})}),u.jsx(dt,{control:e.control,name:"message",render:({field:r})=>u.jsxs(at,{children:[u.jsx(it,{children:"Descreva seu caso *"}),u.jsx(lt,{children:u.jsx(Oh,{placeholder:"Conte-nos detalhadamente o que aconteceu. Inclua datas, valores e qualquer informação relevante...",rows:5,className:"resize-none",...r})}),u.jsx(xt,{})]})}),u.jsxs(nt,{type:"submit",size:"lg",className:"w-full gap-2",disabled:e.formState.isSubmitting,children:[u.jsx(z0,{className:"w-4 h-4"}),"Enviar Mensagem via WhatsApp"]}),u.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"Ao enviar, você será redirecionado para o WhatsApp com sua mensagem pronta"})]})})}),u.jsxs("div",{className:"space-y-6",children:[u.jsxs(Wr,{className:"p-6 bg-primary text-primary-foreground animate-fade-in",children:[u.jsx(Kl,{className:"w-10 h-10 md:w-12 md:h-12 mb-4"}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Sigilo Garantido"}),u.jsx("p",{className:"text-sm opacity-90 leading-relaxed",children:"Garantimos total confidencialidade das informações compartilhadas. Seus dados são protegidos e usados exclusivamente para análise jurídica do seu caso."})]}),u.jsxs(Wr,{className:"p-6 animate-fade-in",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx(Zp,{className:"w-8 h-8 text-primary"}),u.jsx("h3",{className:"text-lg font-bold text-foreground",children:"Horário de Atendimento"})]}),u.jsxs("div",{className:"space-y-3 text-sm",children:[u.jsxs("div",{className:"flex justify-between items-center pb-2 border-b border-border/50",children:[u.jsx("span",{className:"font-semibold text-foreground",children:"Segunda a Sexta:"}),u.jsx("span",{className:"text-muted-foreground",children:"9h às 18h"})]}),u.jsxs("div",{className:"flex justify-between items-center pb-2 border-b border-border/50",children:[u.jsx("span",{className:"font-semibold text-foreground",children:"Sábados:"}),u.jsx("span",{className:"text-muted-foreground",children:"9h às 13h"})]}),u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("span",{className:"font-semibold text-foreground",children:"Domingos:"}),u.jsx("span",{className:"text-muted-foreground",children:"Fechado"})]})]}),u.jsx("div",{className:"mt-4 p-3 bg-muted/50 rounded-lg",children:u.jsx("p",{className:"text-xs text-muted-foreground",children:"Respondemos todas as mensagens recebidas durante o horário comercial em até 2 horas."})})]}),u.jsxs(Wr,{className:"p-6 bg-muted/30 animate-fade-in",children:[u.jsx("h3",{className:"text-lg font-bold text-foreground mb-3",children:"Prefere ligar?"}),u.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Entre em contato direto via telefone ou WhatsApp:"}),u.jsx(nt,{variant:"outline",className:"w-full gap-2",asChild:!0,children:u.jsxs("a",{href:ar.getWhatsAppLink(),target:"_blank",rel:"noopener noreferrer",children:[u.jsx(df,{className:"w-4 h-4"}),ar.displayNumber]})})]})]})]})]})})})},QI=()=>{const e=new Date().getFullYear();return u.jsx("footer",{className:"bg-primary text-primary-foreground py-8 md:py-12 border-t",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsx("div",{className:"bg-primary-foreground/10 rounded-lg p-6 mb-8",children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx(V0,{className:"w-6 h-6 flex-shrink-0 mt-1"}),u.jsxs("div",{className:"space-y-2 text-sm",children:[u.jsx("p",{className:"font-semibold",children:"Aviso Legal "}),u.jsx("p",{className:"opacity-90",children:"Este site tem caráter meramente informativo e não se responsabiliza por decisões tomadas com base nas informações aqui apresentadas. A contratação de serviços advocatícios deve ser precedida de análise do caso concreto. Atuamos em conformidade com o Código de Ética e Disciplina da OAB."})]})]})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-8",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary-foreground/20 flex items-center justify-center",children:u.jsx("span",{className:"text-4xl",children:"⚖️"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold",children:"DireitoTrabalhista"}),u.jsx("p",{className:"text-xs opacity-75",children:"Advogado Especializado "})]})]}),u.jsx("p",{className:"text-sm opacity-75",children:"Defendendo seus direitos trabalhistas com excelência e dedicação."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold mb-4",children:"Áreas de Atuação"}),u.jsxs("ul",{className:"space-y-2 text-sm opacity-75",children:[u.jsx("li",{children:"Demissões"}),u.jsx("li",{children:"Horas Extras"}),u.jsx("li",{children:"Assédio Moral"}),u.jsx("li",{children:"Verbas Rescisórias"}),u.jsx("li",{children:"Acidente de Trabalho"})]})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold mb-4",children:"Contato"}),u.jsxs("ul",{className:"space-y-2 text-sm opacity-75",children:[u.jsxs("li",{children:["📞 ",ar.displayNumber]}),u.jsx("li",{children:"📧 contato@seuadvogadoja.com.br"}),u.jsx("li",{children:"⏰ Seg-Sex: 9h às 18h"}),u.jsx("li",{children:"⏰ Sáb: 9h às 13h"})]})]})]}),u.jsx("div",{className:"border-t border-primary-foreground/20 pt-8 text-center text-sm opacity-75",children:u.jsxs("p",{children:["© ",e," DireitoTrabalhista. Todos os direitos reservados."]})})]})})})};var uu="Dialog",[kS,aD]=Xt(uu),[ZI,jr]=kS(uu),TS=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=p.useRef(null),l=p.useRef(null),[c,d]=Jr({prop:n,defaultProp:o??!1,onChange:s,caller:uu});return u.jsx(ZI,{scope:t,triggerRef:i,contentRef:l,contentId:Zr(),titleId:Zr(),descriptionId:Zr(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:a,children:r})};TS.displayName=uu;var NS="DialogTrigger",YI=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jr(NS,r),s=ye(t,o.triggerRef);return u.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$h(o.open),...n,ref:s,onClick:te(e.onClick,o.onOpenToggle)})});YI.displayName=NS;var Lh="DialogPortal",[XI,RS]=kS(Lh,{forceMount:void 0}),AS=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=jr(Lh,t);return u.jsx(XI,{scope:t,forceMount:r,children:p.Children.map(n,a=>u.jsx(Jt,{present:r||s.open,children:u.jsx(Oc,{asChild:!0,container:o,children:a})}))})};AS.displayName=Lh;var pc="DialogOverlay",PS=p.forwardRef((e,t)=>{const r=RS(pc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=jr(pc,e.__scopeDialog);return s.modal?u.jsx(Jt,{present:n||s.open,children:u.jsx(eM,{...o,ref:t})}):null});PS.displayName=pc;var JI=Us("DialogOverlay.RemoveScroll"),eM=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jr(pc,r);return u.jsx(Mh,{as:JI,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(oe.div,{"data-state":$h(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),qo="DialogContent",jS=p.forwardRef((e,t)=>{const r=RS(qo,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=jr(qo,e.__scopeDialog);return u.jsx(Jt,{present:n||s.open,children:s.modal?u.jsx(tM,{...o,ref:t}):u.jsx(rM,{...o,ref:t})})});jS.displayName=qo;var tM=p.forwardRef((e,t)=>{const r=jr(qo,e.__scopeDialog),n=p.useRef(null),o=ye(t,r.contentRef,n);return p.useEffect(()=>{const s=n.current;if(s)return jb(s)},[]),u.jsx(OS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:te(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:te(e.onFocusOutside,s=>s.preventDefault())})}),rM=p.forwardRef((e,t)=>{const r=jr(qo,e.__scopeDialog),n=p.useRef(!1),o=p.useRef(!1);return u.jsx(OS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((c=r.triggerRef.current)==null?void 0:c.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),OS=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=jr(qo,r),l=p.useRef(null),c=ye(t,l);return Rb(),u.jsxs(u.Fragment,{children:[u.jsx(Ih,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(xi,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":$h(i.open),...a,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(nM,{titleId:i.titleId}),u.jsx(sM,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Fh="DialogTitle",IS=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jr(Fh,r);return u.jsx(oe.h2,{id:o.titleId,...n,ref:t})});IS.displayName=Fh;var MS="DialogDescription",DS=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jr(MS,r);return u.jsx(oe.p,{id:o.descriptionId,...n,ref:t})});DS.displayName=MS;var LS="DialogClose",FS=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jr(LS,r);return u.jsx(oe.button,{type:"button",...n,ref:t,onClick:te(e.onClick,()=>o.onOpenChange(!1))})});FS.displayName=LS;function $h(e){return e?"open":"closed"}var $S="DialogTitleWarning",[iD,VS]=rk($S,{contentName:qo,titleName:Fh,docsSlug:"dialog"}),nM=({titleId:e})=>{const t=VS($S),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},oM="DialogDescriptionWarning",sM=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${VS(oM).contentName}}.`;return p.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},aM=TS,iM=AS,zS=PS,BS=jS,US=IS,HS=DS,lM=FS;const cM=aM,uM=iM,WS=p.forwardRef(({className:e,...t},r)=>u.jsx(zS,{ref:r,className:ae("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));WS.displayName=zS.displayName;const qS=p.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(uM,{children:[u.jsx(WS,{}),u.jsxs(BS,{ref:n,className:ae("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,u.jsxs(lM,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(H0,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));qS.displayName=BS.displayName;const GS=({className:e,...t})=>u.jsx("div",{className:ae("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});GS.displayName="DialogHeader";const KS=p.forwardRef(({className:e,...t},r)=>u.jsx(US,{ref:r,className:ae("text-lg font-semibold leading-none tracking-tight",e),...t}));KS.displayName=US.displayName;const dM=p.forwardRef(({className:e,...t},r)=>u.jsx(HS,{ref:r,className:ae("text-sm text-muted-foreground",e),...t}));dM.displayName=HS.displayName;function fM(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Vh="ScrollArea",[QS,lD]=Xt(Vh),[pM,ur]=QS(Vh),ZS=p.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:s=600,...a}=e,[i,l]=p.useState(null),[c,d]=p.useState(null),[f,h]=p.useState(null),[g,b]=p.useState(null),[v,w]=p.useState(null),[y,m]=p.useState(0),[x,S]=p.useState(0),[C,k]=p.useState(!1),[_,N]=p.useState(!1),A=ye(t,B=>l(B)),M=Si(o);return u.jsx(pM,{scope:r,type:n,dir:M,scrollHideDelay:s,scrollArea:i,viewport:c,onViewportChange:d,content:f,onContentChange:h,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:C,onScrollbarXEnabledChange:k,scrollbarY:v,onScrollbarYChange:w,scrollbarYEnabled:_,onScrollbarYEnabledChange:N,onCornerWidthChange:m,onCornerHeightChange:S,children:u.jsx(oe.div,{dir:M,...a,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});ZS.displayName=Vh;var YS="ScrollAreaViewport",XS=p.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...s}=e,a=ur(YS,r),i=p.useRef(null),l=ye(t,i,a.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});XS.displayName=YS;var rn="ScrollAreaScrollbar",zh=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ur(rn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=o,i=e.orientation==="horizontal";return p.useEffect(()=>(i?s(!0):a(!0),()=>{i?s(!1):a(!1)}),[i,s,a]),o.type==="hover"?u.jsx(hM,{...n,ref:t,forceMount:r}):o.type==="scroll"?u.jsx(mM,{...n,ref:t,forceMount:r}):o.type==="auto"?u.jsx(JS,{...n,ref:t,forceMount:r}):o.type==="always"?u.jsx(Bh,{...n,ref:t}):null});zh.displayName=rn;var hM=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ur(rn,e.__scopeScrollArea),[s,a]=p.useState(!1);return p.useEffect(()=>{const i=o.scrollArea;let l=0;if(i){const c=()=>{window.clearTimeout(l),a(!0)},d=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",c),i.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Jt,{present:r||s,children:u.jsx(JS,{"data-state":s?"visible":"hidden",...n,ref:t})})}),mM=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ur(rn,e.__scopeScrollArea),s=e.orientation==="horizontal",a=fu(()=>l("SCROLL_END"),100),[i,l]=fM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay,l]),p.useEffect(()=>{const c=o.viewport,d=s?"scrollLeft":"scrollTop";if(c){let f=c[d];const h=()=>{const g=c[d];f!==g&&(l("SCROLL"),a()),f=g};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[o.viewport,s,l,a]),u.jsx(Jt,{present:r||i!=="hidden",children:u.jsx(Bh,{"data-state":i==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:te(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:te(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),JS=p.forwardRef((e,t)=>{const r=ur(rn,e.__scopeScrollArea),{forceMount:n,...o}=e,[s,a]=p.useState(!1),i=e.orientation==="horizontal",l=fu(()=>{if(r.viewport){const c=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=ur(rn,e.__scopeScrollArea),s=p.useRef(null),a=p.useRef(0),[i,l]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=oC(i.viewport,i.content),d={...n,sizes:i,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>s.current=h,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:h=>a.current=h};function f(h,g){return bM(h,a.current,i,g)}return r==="horizontal"?u.jsx(vM,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollLeft,g=Dg(h,i,o.dir);s.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=f(h,o.dir))}}):r==="vertical"?u.jsx(gM,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollTop,g=Dg(h,i);s.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=f(h))}}):null}),vM=p.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,s=ur(rn,e.__scopeScrollArea),[a,i]=p.useState(),l=p.useRef(null),c=ye(t,l,s.onScrollbarXChange);return p.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),u.jsx(tC,{"data-orientation":"horizontal",...o,ref:c,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":du(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(s.viewport){const h=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),aC(h,f)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&n({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:mc(a.paddingLeft),paddingEnd:mc(a.paddingRight)}})}})}),gM=p.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,s=ur(rn,e.__scopeScrollArea),[a,i]=p.useState(),l=p.useRef(null),c=ye(t,l,s.onScrollbarYChange);return p.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),u.jsx(tC,{"data-orientation":"vertical",...o,ref:c,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":du(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(s.viewport){const h=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),aC(h,f)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&n({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:mc(a.paddingTop),paddingEnd:mc(a.paddingBottom)}})}})}),[yM,eC]=QS(rn),tC=p.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:f,...h}=e,g=ur(rn,r),[b,v]=p.useState(null),w=ye(t,A=>v(A)),y=p.useRef(null),m=p.useRef(""),x=g.viewport,S=n.content-n.viewport,C=Je(d),k=Je(l),_=fu(f,10);function N(A){if(y.current){const M=A.clientX-y.current.left,B=A.clientY-y.current.top;c({x:M,y:B})}}return p.useEffect(()=>{const A=M=>{const B=M.target;(b==null?void 0:b.contains(B))&&C(M,S)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[x,b,S,C]),p.useEffect(k,[n,k]),Xs(b,_),Xs(g.content,_),u.jsx(yM,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Je(s),onThumbPointerUp:Je(a),onThumbPositionChange:k,onThumbPointerDown:Je(i),children:u.jsx(oe.div,{...h,ref:w,style:{position:"absolute",...h.style},onPointerDown:te(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),y.current=b.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),N(A))}),onPointerMove:te(e.onPointerMove,N),onPointerUp:te(e.onPointerUp,A=>{const M=A.target;M.hasPointerCapture(A.pointerId)&&M.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=m.current,g.viewport&&(g.viewport.style.scrollBehavior=""),y.current=null})})})}),hc="ScrollAreaThumb",rC=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=eC(hc,e.__scopeScrollArea);return u.jsx(Jt,{present:r||o.hasThumb,children:u.jsx(xM,{ref:t,...n})})}),xM=p.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,s=ur(hc,r),a=eC(hc,r),{onThumbPositionChange:i}=a,l=ye(t,f=>a.onThumbChange(f)),c=p.useRef(void 0),d=fu(()=>{c.current&&(c.current(),c.current=void 0)},100);return p.useEffect(()=>{const f=s.viewport;if(f){const h=()=>{if(d(),!c.current){const g=SM(f,i);c.current=g,i()}};return i(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[s.viewport,d,i]),u.jsx(oe.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:te(e.onPointerDownCapture,f=>{const g=f.target.getBoundingClientRect(),b=f.clientX-g.left,v=f.clientY-g.top;a.onThumbPointerDown({x:b,y:v})}),onPointerUp:te(e.onPointerUp,a.onThumbPointerUp)})});rC.displayName=hc;var Uh="ScrollAreaCorner",nC=p.forwardRef((e,t)=>{const r=ur(Uh,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?u.jsx(wM,{...e,ref:t}):null});nC.displayName=Uh;var wM=p.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=ur(Uh,r),[s,a]=p.useState(0),[i,l]=p.useState(0),c=!!(s&&i);return Xs(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),l(d)}),Xs(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),a(d)}),c?u.jsx(oe.div,{...n,ref:t,style:{width:s,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function mc(e){return e?parseInt(e,10):0}function oC(e,t){const r=e/t;return isNaN(r)?0:r}function du(e){const t=oC(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function bM(e,t,r,n="ltr"){const o=du(r),s=o/2,a=t||s,i=o-a,l=r.scrollbar.paddingStart+a,c=r.scrollbar.size-r.scrollbar.paddingEnd-i,d=r.content-r.viewport,f=n==="ltr"?[0,d]:[d*-1,0];return sC([l,c],f)(e)}function Dg(e,t,r="ltr"){const n=du(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,a=t.content-t.viewport,i=s-n,l=r==="ltr"?[0,a]:[a*-1,0],c=Vf(e,l);return sC([0,a],[0,i])(c)}function sC(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function aC(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},a=r.left!==s.left,i=r.top!==s.top;(a||i)&&t(),r=s,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function fu(e,t){const r=Je(e),n=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Xs(e,t){const r=Je(t);Ge(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var iC=ZS,CM=XS,EM=nC;const lC=p.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(iC,{ref:n,className:ae("relative overflow-hidden",e),...r,children:[u.jsx(CM,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(cC,{}),u.jsx(EM,{})]}));lC.displayName=iC.displayName;const cC=p.forwardRef(({className:e,orientation:t="vertical",...r},n)=>u.jsx(zh,{ref:n,orientation:t,className:ae("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:u.jsx(rC,{className:"relative flex-1 rounded-full bg-border"})}));cC.displayName=zh.displayName;var uC={exports:{}},dC={};/** * @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 Js=p;function _M(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kM=typeof Object.is=="function"?Object.is:_M,TM=Js.useState,NM=Js.useEffect,RM=Js.useLayoutEffect,AM=Js.useDebugValue;function PM(e,t){var r=t(),n=TM({inst:{value:r,getSnapshot:t}}),o=n[0].inst,s=n[1];return RM(function(){o.value=r,o.getSnapshot=t,dd(o)&&s({inst:o})},[e,r,t]),NM(function(){return dd(o)&&s({inst:o}),e(function(){dd(o)&&s({inst:o})})},[e]),AM(r),r}function dd(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!kM(e,r)}catch{return!0}}function jM(e,t){return t()}var OM=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jM:PM;dC.useSyncExternalStore=Js.useSyncExternalStore!==void 0?Js.useSyncExternalStore:OM;uC.exports=dC;var IM=uC.exports;function MM(){return IM.useSyncExternalStore(DM,()=>!0,()=>!1)}function DM(){return()=>{}}var Hh="Avatar",[LM,cD]=Xt(Hh),[FM,fC]=LM(Hh),pC=p.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,s]=p.useState("idle");return u.jsx(FM,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:u.jsx(oe.span,{...n,ref:t})})});pC.displayName=Hh;var hC="AvatarImage",mC=p.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...s}=e,a=fC(hC,r),i=$M(n,s),l=Je(c=>{o(c),a.onImageLoadingStatusChange(c)});return Ge(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?u.jsx(oe.img,{...s,ref:t,src:n}):null});mC.displayName=hC;var vC="AvatarFallback",gC=p.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,s=fC(vC,r),[a,i]=p.useState(n===void 0);return p.useEffect(()=>{if(n!==void 0){const l=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(l)}},[n]),a&&s.imageLoadingStatus!=="loaded"?u.jsx(oe.span,{...o,ref:t}):null});gC.displayName=vC;function Lg(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function $M(e,{referrerPolicy:t,crossOrigin:r}){const n=MM(),o=p.useRef(null),s=n?(o.current||(o.current=new window.Image),o.current):null,[a,i]=p.useState(()=>Lg(s,e));return Ge(()=>{i(Lg(s,e))},[s,e]),Ge(()=>{const l=f=>()=>{i(f)};if(!s)return;const c=l("loaded"),d=l("error");return s.addEventListener("load",c),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof r=="string"&&(s.crossOrigin=r),()=>{s.removeEventListener("load",c),s.removeEventListener("error",d)}},[s,r,t]),a}var yC=pC,xC=mC,wC=gC;const Gf=p.forwardRef(({className:e,...t},r)=>u.jsx(yC,{ref:r,className:ae("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Gf.displayName=yC.displayName;const VM=p.forwardRef(({className:e,...t},r)=>u.jsx(xC,{ref:r,className:ae("aspect-square h-full w-full",e),...t}));VM.displayName=xC.displayName;const Kf=p.forwardRef(({className:e,...t},r)=>u.jsx(wC,{ref:r,className:ae("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Kf.displayName=wC.displayName;const Fg=({message:e,isBot:t,isTyping:r=!1})=>r?u.jsxs("div",{className:"flex gap-2 items-start animate-fade-in",children:[u.jsx(Gf,{className:"w-8 h-8 flex-shrink-0",children:u.jsx(Kf,{className:"bg-primary text-primary-foreground text-xs",children:"🤖"})}),u.jsx("div",{className:"bg-secondary/80 text-secondary-foreground rounded-lg rounded-tl-none p-3",children:u.jsxs("div",{className:"flex gap-1",children:[u.jsx("span",{className:"w-2 h-2 bg-secondary-foreground/50 rounded-full animate-pulse",style:{animationDelay:"0ms"}}),u.jsx("span",{className:"w-2 h-2 bg-secondary-foreground/50 rounded-full animate-pulse",style:{animationDelay:"150ms"}}),u.jsx("span",{className:"w-2 h-2 bg-secondary-foreground/50 rounded-full animate-pulse",style:{animationDelay:"300ms"}})]})})]}):u.jsxs("div",{className:ae("flex gap-2 items-start animate-fade-in",!t&&"justify-end"),children:[t&&u.jsx(Gf,{className:"w-8 h-8 flex-shrink-0",children:u.jsx(Kf,{className:"bg-primary text-primary-foreground text-xs",children:"🤖"})}),u.jsx("div",{className:ae("rounded-lg p-3 max-w-[90%] whitespace-pre-wrap break-words",t?"bg-secondary text-secondary-foreground rounded-tl-none":"bg-primary text-primary-foreground rounded-tr-none"),children:e})]}),zM=({type:e,placeholder:t,onSubmit:r,required:n=!1})=>{const[o,s]=p.useState(""),a=l=>{l.preventDefault(),(!n||o.trim())&&(r(o.trim()),s(""))},i=l=>{l.key==="Enter"&&!l.shiftKey&&e==="text"&&(l.preventDefault(),a(l))};return u.jsxs("form",{onSubmit:a,className:"flex gap-2 items-end animate-fade-in",children:[e==="textarea"?u.jsx(Oh,{value:o,onChange:l=>s(l.target.value),placeholder:t,className:"resize-none min-h-[60px] max-h-[120px]",maxLength:500,onKeyDown:i}):u.jsx(kt,{type:"text",value:o,onChange:l=>s(l.target.value),placeholder:t,className:"flex-1",maxLength:100,onKeyDown:i}),u.jsx(nt,{type:"submit",size:"icon",disabled:n&&!o.trim(),className:"flex-shrink-0",children:u.jsx(z0,{className:"h-4 w-4"})})]})},BM=({options:e,onSelect:t})=>u.jsx("div",{className:"flex flex-col gap-2 animate-fade-in",children:e.map((r,n)=>u.jsxs(nt,{variant:"outline",className:"justify-start text-left h-auto py-3 px-4 whitespace-normal",onClick:()=>t(r.value),children:[r.icon&&u.jsx("span",{className:"mr-2 text-lg",children:r.icon}),u.jsx("span",{className:"flex-1",children:r.label})]},n))}),fd={welcome:{id:"welcome",botMessage:"Olá! 👋 Sou o Assistente Virtual. Vou fazer algumas perguntas para entender melhor seu caso. Qual é o seu nome?",inputType:"text",inputPlaceholder:"Digite seu nome",next:"phone",required:!0},phone:{id:"phone",botMessage:e=>`Ótimo, ${e.name}! Qual é o seu telefone com DDD? (Ex: 11999999999)`,inputType:"text",inputPlaceholder:"Digite seu telefone (somente números)",next:"caseType",required:!0},caseType:{id:"caseType",botMessage:e=>`Prazer, ${e.name||e.welcome}! Qual é o seu caso?`,inputType:"options",options:[{label:"Demissão sem justa causa",value:"Demissão sem justa causa",icon:"🚫"},{label:"Horas extras não pagas",value:"Horas extras não pagas",icon:"⏰"},{label:"Demissão incorreta",value:"Rescisão incorreta",icon:"📋"},{label:"Trabalho sem carteira",value:"Trabalho sem carteira assinada",icon:"💼"},{label:"Desvio de função",value:"Desvio/acúmulo de função",icon:"🔄"},{label:"Acidente de trabalho",value:"Acidente de trabalho",icon:"🏥"},{label:"Outros",value:"Outros",icon:"📝"}],next:"workStatus",required:!0},workStatus:{id:"workStatus",botMessage:"Você ainda está trabalhando na empresa ou já foi desligado(a)?",inputType:"options",options:[{label:"Ainda estou trabalhando",value:"Ainda estou trabalhando",icon:"✅"},{label:"Já fui desligado(a)",value:"Já fui desligado(a)",icon:"❌"},{label:"Em processo de desligamento",value:"Em processo de desligamento",icon:"🤝"}],next:"timeframe",required:!0},timeframe:{id:"timeframe",botMessage:"Há quanto tempo isso está acontecendo?",inputType:"options",options:[{label:"Menos de 1 mês",value:"Menos de 1 mês",icon:"📅"},{label:"Entre 1-3 meses",value:"Entre 1-3 meses",icon:"📆"},{label:"Entre 3-6 meses",value:"Entre 3-6 meses",icon:"🗓️"},{label:"Mais de 6 meses",value:"Mais de 6 meses",icon:"⏳"}],next:"details",required:!0},details:{id:"details",botMessage:"Quer adicionar mais algum detalhe importante sobre seu caso? (opcional)",inputType:"textarea",inputPlaceholder:"Descreva brevemente sua situação...",next:"summary",required:!1},summary:{id:"summary",botMessage:e=>{var r;const t=[`Perfeito, ${e.name||e.welcome}! Vou resumir suas informações:`,"",`✓ Nome: ${e.name}`,`✓ Telefone: ${e.phone}`,`✓ Caso: ${e.caseType}`,`✓ Situação: ${e.workStatus}`,`✓ Tempo: ${e.timeframe}`];return(r=e.details)!=null&&r.trim()&&t.push(`✓ Detalhes: ${e.details}`),t.push(""),t.push("Vamos iniciar seu atendimento agora pelo WhatsApp para avaliar melhor seu caso gratuitamente!"),t.join(` `)},inputType:"text",next:"end",required:!1}},UM=e=>{var r;const t=["🤖 *Contato via Chatbot*","",`👤 *Nome:* ${e.name}`,`📞 *Telefone:* ${e.phone}`,`📋 *Caso:* ${e.caseType}`,`💼 *Situação:* ${e.workStatus}`,`⏰ *Tempo:* ${e.timeframe}`];return(r=e.details)!=null&&r.trim()&&(t.push(""),t.push("📝 *Detalhes:*"),t.push(e.details)),t.push(""),t.push("_Mensagem enviada através do site_"),t.join(` `)},HM=({isOpen:e,onClose:t})=>{const[r,n]=p.useState("welcome"),[o,s]=p.useState({}),[a,i]=p.useState([]),[l,c]=p.useState(!1);p.useRef(null);const d=p.useRef(null),f=()=>{var x;(x=d.current)==null||x.scrollIntoView({behavior:"smooth"})};p.useEffect(()=>{f()},[a,l]),p.useEffect(()=>{if(e&&a.length===0){const x=fd.welcome,S=typeof x.botMessage=="function"?x.botMessage(o):x.botMessage;setTimeout(()=>{i([{text:S,isBot:!0,timestamp:Date.now()}])},300)}},[e]);const h=()=>fd[r],g=x=>{const S=h();if(S.id==="phone"){const k=x.replace(/\D/g,"");if(k.length<10||k.length>11){i0({variant:"destructive",title:"Telefone inválido",description:"Por favor, digite um telefone válido com DDD (10 ou 11 dígitos)"});return}x=k}i(k=>[...k,{text:x,isBot:!1,timestamp:Date.now()}]);const C={...o,[S.id]:x,...S.id==="welcome"?{name:x}:{}};if(s(C),S.id==="summary"){b(C);return}c(!0),setTimeout(()=>{c(!1);const k=typeof S.next=="function"?S.next(x,C):S.next;if(k==="end"){b(C);return}n(k);const _=fd[k],N=typeof _.botMessage=="function"?_.botMessage(C):_.botMessage;i(A=>[...A,{text:N,isBot:!0,timestamp:Date.now()}])},800)},b=x=>{const S=UM(x),C=ar.getWhatsAppLink(S);window.open(C,"_blank"),setTimeout(()=>{v()},1e3)},v=()=>{t(),setTimeout(()=>{n("welcome"),s({}),i([]),c(!1)},300)},w=h(),y=w&&(w.inputType==="text"||w.inputType==="textarea"),m=w&&w.inputType==="options";return u.jsx(cM,{open:e,onOpenChange:v,children:u.jsxs(qS,{className:"w-[95vw] sm:w-auto sm:max-w-[440px] h-[80vh] sm:h-[600px] max-h-[90vh] flex flex-col p-0 gap-0 rounded-lg",children:[u.jsx(GS,{className:"px-6 py-4 border-b",children:u.jsx(KS,{className:"text-lg font-semibold break-words pr-8",children:"Assistente Virtual"})}),u.jsx(lC,{className:"flex-1 px-6 py-4",children:u.jsxs("div",{className:"space-y-4",children:[a.map((x,S)=>u.jsx(Fg,{message:x.text,isBot:x.isBot},`${x.timestamp}-${S}`)),l&&u.jsx(Fg,{message:"",isBot:!0,isTyping:!0}),u.jsx("div",{ref:d})]})}),u.jsxs("div",{className:"px-6 py-4 border-t bg-background",children:[y&&u.jsx(zM,{type:w.inputType,placeholder:w.inputPlaceholder,onSubmit:g,required:w.required}),m&&w.options&&u.jsx(BM,{options:w.options,onSelect:g}),w.id==="summary"&&u.jsxs(nt,{onClick:()=>b(o),className:"w-full gap-2",size:"lg",children:[u.jsx(qs,{size:20}),"Enviar"]})]})]})})},WM=()=>{const[e,t]=p.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsxs(nt,{onClick:()=>t(!0),size:"lg",className:"fixed bottom-6 right-6 z-50 h-16 px-6 rounded-full shadow-2xl bg-green-600 hover:bg-green-700 text-white font-semibold text-lg gap-3 animate-bounce-slow hover:animate-none transition-all","aria-label":"Abrir assistente virtual",children:[u.jsx(Yp,{size:32,className:"animate-pulse"}),u.jsx("span",{children:"Chat"})]}),u.jsx(HM,{isOpen:e,onClose:()=>t(!1)})]})},qM=()=>{const e={"@context":"https://schema.org","@type":"LegalService",name:"Advogados Trabalhistas",description:"Escritório especializado em Direito do Trabalho com atendimento online",url:"https://lovable.dev/projects/41d2c0ce-9b8c-4c57-800b-09ddaa73badd",telephone:`+${ar.number}`,priceRange:"Avaliação Gratuita",address:{"@type":"PostalAddress",addressCountry:"BR",addressLocality:"Brasil"},openingHours:["Mo-Fr 09:00-18:00","Sa 09:00-13:00"]},t=[{"@context":"https://schema.org","@type":"Service",serviceType:"Reclamações Trabalhistas",provider:{"@type":"LegalService",name:"Advogados Trabalhistas"},areaServed:"BR",offers:{"@type":"Offer",price:"0",priceCurrency:"BRL",description:"Avaliação Gratuita"}},{"@context":"https://schema.org","@type":"Service",serviceType:"Horas Extras não Pagas",provider:{"@type":"LegalService",name:"Advogados Trabalhistas"},areaServed:"BR"},{"@context":"https://schema.org","@type":"Service",serviceType:"Assédio Moral ou Sexual",provider:{"@type":"LegalService",name:"Advogados Trabalhistas"},areaServed:"BR"}],r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"Quanto tempo tenho para entrar com ação trabalhista?",acceptedAnswer:{"@type":"Answer",text:"Você tem até 2 anos após o término do contrato de trabalho para entrar com ação na Justiça do Trabalho, e pode cobrar direitos dos últimos 5 anos trabalhados (prazo prescricional)."}},{"@type":"Question",name:"Quanto tempo demora um processo trabalhista?",acceptedAnswer:{"@type":"Answer",text:"O processo judicial não tem um prazo especifico para ser finalizado. Tudo irá depender da complexidade dos direitos pleiteados, da agilidade da Vara Trabalhista onde o processo for ajuizado, se a parte contrária irá recorrer, etc. Um acordo, se bom para ambas as partes é sempre o melhor caminho."}},{"@type":"Question",name:"Preciso pagar para entrar com ação?",acceptedAnswer:{"@type":"Answer",text:"Não! Na Justiça do Trabalho, você não precisa pagar custas processuais inicialmente. Se perder a ação, só pagará honorários advocatícios se tiver agido com má-fé ou tiver condições financeiras."}},{"@type":"Question",name:"Fui demitido sem justa causa. Tenho direito a quê?",acceptedAnswer:{"@type":"Answer",text:"Você tem direito a: aviso prévio, 13º salário proporcional, férias proporcionais + 1/3, férias vencidas (se houver), saldo de salário, saque do FGTS + multa de 40%, e seguro-desemprego (se cumprir os requisitos)."}},{"@type":"Question",name:"Quanto custa contratar um advogado trabalhista?",acceptedAnswer:{"@type":"Answer",text:"Geralmente trabalhamos com honorários de êxito (porcentagem do que você receber). A avaliação inicial é GRATUITA. Somente pagará se ganhar a ação."}}]},n={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://lovable.dev/projects/41d2c0ce-9b8c-4c57-800b-09ddaa73badd"},{"@type":"ListItem",position:2,name:"Serviços",item:"https://lovable.dev/projects/41d2c0ce-9b8c-4c57-800b-09ddaa73badd#servicos"},{"@type":"ListItem",position:3,name:"Calculadora",item:"https://lovable.dev/projects/41d2c0ce-9b8c-4c57-800b-09ddaa73badd#calculadora"},{"@type":"ListItem",position:4,name:"Contato",item:"https://lovable.dev/projects/41d2c0ce-9b8c-4c57-800b-09ddaa73badd#contato"}]};return u.jsxs(qP,{children:[u.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)}),t.map((o,s)=>u.jsx("script",{type:"application/ld+json",children:JSON.stringify(o)},s)),u.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]})},GM=()=>u.jsxs("div",{className:"min-h-screen",children:[u.jsx(qM,{}),u.jsx(KP,{}),u.jsxs("main",{children:[u.jsx(QP,{}),u.jsx(XP,{}),u.jsx(tj,{}),u.jsx(rj,{}),u.jsx(M2,{}),u.jsx(rO,{}),u.jsx(KI,{})]}),u.jsx(QI,{}),u.jsx(WM,{})]}),KM=()=>{const e=Qw();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},QM=new AA,ZM=()=>u.jsx(jA,{client:QM,children:u.jsx(r1,{children:u.jsxs(aA,{children:[u.jsx(BT,{}),u.jsx(bN,{}),u.jsx(gP,{children:u.jsxs(hP,{children:[u.jsx(Sf,{path:"/",element:u.jsx(GM,{})}),u.jsx(Sf,{path:"*",element:u.jsx(KM,{})})]})})]})})});a0(document.getElementById("root")).render(u.jsx(ZM,{}));