var zu=e=>{throw TypeError(e)};var As=(e,t,n)=>t.has(e)||zu("Cannot "+n);var N=(e,t,n)=>(As(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?zu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(As(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),xe=(e,t,n)=>(As(e,t,"access private method"),n);var Fo=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return N(e,t,r)}});function sv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Md(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ld={exports:{}},Ji={},Dd={exports:{}},V={};/** * @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 Ao=Symbol.for("react.element"),lv=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),uv=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),dv=Symbol.for("react.provider"),fv=Symbol.for("react.context"),pv=Symbol.for("react.forward_ref"),hv=Symbol.for("react.suspense"),mv=Symbol.for("react.memo"),vv=Symbol.for("react.lazy"),$u=Symbol.iterator;function gv(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Id={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fd=Object.assign,zd={};function Nr(e,t,n){this.props=e,this.context=t,this.refs=zd,this.updater=n||Id}Nr.prototype.isReactComponent={};Nr.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")};Nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $d(){}$d.prototype=Nr.prototype;function pa(e,t,n){this.props=e,this.context=t,this.refs=zd,this.updater=n||Id}var ha=pa.prototype=new $d;ha.constructor=pa;Fd(ha,Nr.prototype);ha.isPureReactComponent=!0;var Uu=Array.isArray,Ud=Object.prototype.hasOwnProperty,ma={current:null},Vd={key:!0,ref:!0,__self:!0,__source:!0};function Bd(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ud.call(t,r)&&!Vd.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,Z=R[$];if(0>>1;$o(jr,D))Pto(wn,jr)?(R[$]=wn,R[Pt]=D,$=Pt):(R[$]=jr,R[Qe]=D,$=Qe);else if(Pto(wn,D))R[$]=wn,R[Pt]=D,$=Pt;else break e}}return b}function o(R,b){var D=R.sortIndex-b.sortIndex;return D!==0?D:R.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,m=3,y=!1,w=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var b=n(u);b!==null;){if(b.callback===null)r(u);else if(b.startTime<=R)r(u),b.sortIndex=b.expirationTime,t(a,b);else break;b=n(u)}}function C(R){if(g=!1,v(R),!w)if(n(a)!==null)w=!0,U(E);else{var b=n(u);b!==null&&W(C,b.startTime-R)}}function E(R,b){w=!1,g&&(g=!1,p(T),T=-1),y=!0;var D=m;try{for(v(b),f=n(a);f!==null&&(!(f.expirationTime>b)||R&&!z());){var $=f.callback;if(typeof $=="function"){f.callback=null,m=f.priorityLevel;var Z=$(f.expirationTime<=b);b=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(a)&&r(a),v(b)}else r(a);f=n(a)}if(f!==null)var et=!0;else{var Qe=n(u);Qe!==null&&W(C,Qe.startTime-b),et=!1}return et}finally{f=null,m=D,y=!1}}var P=!1,k=null,T=-1,M=5,O=-1;function z(){return!(e.unstable_now()-OR||125$?(R.sortIndex=D,t(u,R),n(a)===null&&R===n(u)&&(g?(p(T),T=-1):g=!0,W(C,D-$))):(R.sortIndex=Z,t(a,R),w||y||(w=!0,U(E))),R},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(R){var b=m;return function(){var D=m;m=b;try{return R.apply(this,arguments)}finally{m=D}}}})(qd);Kd.exports=qd;var Rv=Kd.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 Av=x,Ve=Rv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cl=Object.prototype.hasOwnProperty,bv=/^[: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]*$/,Bu={},Hu={};function Ov(e){return cl.call(Hu,e)?!0:cl.call(Bu,e)?!1:bv.test(e)?Hu[e]=!0:(Bu[e]=!0,!1)}function _v(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jv(e,t,n,r){if(t===null||typeof t>"u"||_v(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function be(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new be(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){ge[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var ga=/[\-:]([a-z])/g;function ya(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(ga,ya);ge[t]=new be(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(ga,ya);ge[t]=new be(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(ga,ya);ge[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function xa(e,t,n,r){var o=ge.hasOwnProperty(t)?ge[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{_s=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wr(e):""}function Mv(e){switch(e.tag){case 5:return Wr(e.type);case 16:return Wr("Lazy");case 13:return Wr("Suspense");case 19:return Wr("SuspenseList");case 0:case 2:case 15:return e=js(e.type,!1),e;case 11:return e=js(e.type.render,!1),e;case 1:return e=js(e.type,!0),e;default:return""}}function hl(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 Vn:return"Fragment";case Un:return"Portal";case dl:return"Profiler";case wa:return"StrictMode";case fl:return"Suspense";case pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jd:return(e.displayName||"Context")+".Consumer";case Xd:return(e._context.displayName||"Context")+".Provider";case Sa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ca:return t=e.displayName||null,t!==null?t:hl(e.type)||"Memo";case Wt:t=e._payload,e=e._init;try{return hl(e(t))}catch{}}return null}function Lv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hl(t);case 8:return t===wa?"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 dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ef(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dv(e){var t=ef(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uo(e){e._valueTracker||(e._valueTracker=Dv(e))}function tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ef(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Si(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 ml(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nf(e,t){t=t.checked,t!=null&&xa(e,"checked",t,!1)}function vl(e,t){nf(e,t);var n=dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&gl(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gl(e,t,n){(t!=="number"||Si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Vo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qr={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},Iv=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(e){Iv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qr[t]=qr[e]})});function lf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qr.hasOwnProperty(e)&&qr[e]?(""+t).trim():t+"px"}function af(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Fv=re({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 wl(e,t){if(t){if(Fv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Sl(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 Cl=null;function Ea(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,er=null,tr=null;function Yu(e){if(e=_o(e)){if(typeof El!="function")throw Error(A(280));var t=e.stateNode;t&&(t=rs(t),El(e.stateNode,e.type,t))}}function uf(e){er?tr?tr.push(e):tr=[e]:er=e}function cf(){if(er){var e=er,t=tr;if(tr=er=null,Yu(e),t)for(e=0;e>>=0,e===0?32:31-(qv(e)/Yv|0)|0}var Bo=64,Ho=4194304;function Gr(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 ki(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Gr(l):(i&=s,i!==0&&(r=Gr(i)))}else s=n&~o,s!==0?r=Gr(s):i!==0&&(r=Gr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function bo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function eg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xr),ic=" ",sc=!1;function bf(e,t){switch(e){case"keyup":return Rg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function bg(e,t){switch(e){case"compositionend":return Of(t);case"keypress":return t.which!==32?null:(sc=!0,ic);case"textInput":return e=t.data,e===ic&&sc?null:e;default:return null}}function Og(e,t){if(Bn)return e==="compositionend"||!Oa&&bf(e,t)?(e=Rf(),ui=Ra=en=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cc(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(){for(var e=window,t=Si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function _a(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 $g(e){var t=Df(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lf(n.ownerDocument.documentElement,n)){if(r!==null&&_a(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dc(n,i);var s=dc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hn=null,Al=null,Zr=null,bl=!1;function fc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bl||Hn==null||Hn!==Si(r)||(r=Hn,"selectionStart"in r&&_a(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zr&&po(Zr,r)||(Zr=r,r=Ri(Al,"onSelect"),0Gn||(e.current=Dl[Gn],Dl[Gn]=null,Gn--)}function q(e,t){Gn++,Dl[Gn]=e.current,e.current=t}var fn={},Pe=gn(fn),je=gn(!1),_n=fn;function gr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Me(e){return e=e.childContextTypes,e!=null}function bi(){J(je),J(Pe)}function xc(e,t,n){if(Pe.current!==fn)throw Error(A(168));q(Pe,t),q(je,n)}function Wf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Lv(e)||"Unknown",o));return re({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,_n=Pe.current,q(Pe,e),q(je,je.current),!0}function wc(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Wf(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,J(je),J(Pe),q(Pe,e)):J(je),q(je,n)}var Rt=null,os=!1,Gs=!1;function Qf(e){Rt===null?Rt=[e]:Rt.push(e)}function Jg(e){os=!0,Qf(e)}function yn(){if(!Gs&&Rt!==null){Gs=!0;var e=0,t=K;try{var n=Rt;for(K=1;e>=s,o-=s,At=1<<32-lt(t)+o|n<T?(M=k,k=null):M=k.sibling;var O=m(p,k,v[T],C);if(O===null){k===null&&(k=M);break}e&&k&&O.alternate===null&&t(p,k),c=i(O,c,T),P===null?E=O:P.sibling=O,P=O,k=M}if(T===v.length)return n(p,k),ee&&Sn(p,T),E;if(k===null){for(;TT?(M=k,k=null):M=k.sibling;var z=m(p,k,O.value,C);if(z===null){k===null&&(k=M);break}e&&k&&z.alternate===null&&t(p,k),c=i(z,c,T),P===null?E=z:P.sibling=z,P=z,k=M}if(O.done)return n(p,k),ee&&Sn(p,T),E;if(k===null){for(;!O.done;T++,O=v.next())O=f(p,O.value,C),O!==null&&(c=i(O,c,T),P===null?E=O:P.sibling=O,P=O);return ee&&Sn(p,T),E}for(k=r(p,k);!O.done;T++,O=v.next())O=y(k,p,T,O.value,C),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?T:O.key),c=i(O,c,T),P===null?E=O:P.sibling=O,P=O);return e&&k.forEach(function(L){return t(p,L)}),ee&&Sn(p,T),E}function S(p,c,v,C){if(typeof v=="object"&&v!==null&&v.type===Vn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case $o:e:{for(var E=v.key,P=c;P!==null;){if(P.key===E){if(E=v.type,E===Vn){if(P.tag===7){n(p,P.sibling),c=o(P,v.props.children),c.return=p,p=c;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Wt&&Ec(E)===P.type){n(p,P.sibling),c=o(P,v.props),c.ref=$r(p,P,v),c.return=p,p=c;break e}n(p,P);break}else t(p,P);P=P.sibling}v.type===Vn?(c=On(v.props.children,p.mode,C,v.key),c.return=p,p=c):(C=gi(v.type,v.key,v.props,null,p.mode,C),C.ref=$r(p,c,v),C.return=p,p=C)}return s(p);case Un:e:{for(P=v.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===v.containerInfo&&c.stateNode.implementation===v.implementation){n(p,c.sibling),c=o(c,v.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=tl(v,p.mode,C),c.return=p,p=c}return s(p);case Wt:return P=v._init,S(p,c,P(v._payload),C)}if(Qr(v))return w(p,c,v,C);if(Lr(v))return g(p,c,v,C);Xo(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,c!==null&&c.tag===6?(n(p,c.sibling),c=o(c,v),c.return=p,p=c):(n(p,c),c=el(v,p.mode,C),c.return=p,p=c),s(p)):n(p,c)}return S}var xr=Yf(!0),Xf=Yf(!1),Mi=gn(null),Li=null,Yn=null,Da=null;function Ia(){Da=Yn=Li=null}function Fa(e){var t=Mi.current;J(Mi),e._currentValue=t}function zl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rr(e,t){Li=e,Da=Yn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function Je(e){var t=e._currentValue;if(Da!==e)if(e={context:e,memoizedValue:t,next:null},Yn===null){if(Li===null)throw Error(A(308));Yn=e,Li.dependencies={lanes:0,firstContext:e}}else Yn=Yn.next=e;return t}var Pn=null;function za(e){Pn===null?Pn=[e]:Pn.push(e)}function Jf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,za(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mt(e,r)}function Mt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qt=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zf(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 Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mt(e,n)}return o=r.interleaved,o===null?(t.next=t,za(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mt(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ka(e,n)}}function Pc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Qt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,d=u=a=null,l=i;do{var m=l.lane,y=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,g=l;switch(m=t,y=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){f=w.call(y,f,m);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,m=typeof w=="function"?w.call(y,f,m):w,m==null)break e;f=re({},f,m);break e;case 2:Qt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=y,a=f):d=d.next=y,s|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ln|=s,e.lanes=s,e.memoizedState=f}}function kc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=qs.transition;qs.transition={};try{e(!1),t()}finally{K=n,qs.transition=r}}function vp(){return Ze().memoizedState}function ny(e,t,n){var r=un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gp(e))yp(t,n);else if(n=Jf(e,t,n,r),n!==null){var o=Re();at(n,e,r,o),xp(n,t,r)}}function ry(e,t,n){var r=un(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gp(e))yp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,ut(l,s)){var a=t.interleaved;a===null?(o.next=o,za(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Jf(e,t,o,r),n!==null&&(o=Re(),at(n,e,r,o),xp(n,t,r))}}function gp(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function yp(e,t){eo=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ka(e,n)}}var zi={readContext:Je,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},oy={readContext:Je,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:Tc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,dp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ny.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Nc,useDebugValue:Ka,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Nc(!1),t=e[0];return e=ty.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,o=pt();if(ee){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),he===null)throw Error(A(349));Mn&30||rp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Tc(ip.bind(null,r,i,e),[e]),r.flags|=2048,So(9,op.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=he.identifierPrefix;if(ee){var n=bt,r=At;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gt]=t,e[vo]=r,Ap(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sl(n,r),n){case"dialog":X("cancel",e),X("close",e),o=r;break;case"iframe":case"object":case"embed":X("load",e),o=r;break;case"video":case"audio":for(o=0;oCr&&(t.flags|=128,r=!0,Ur(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ii(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ur(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ee)return Se(t),null}else 2*se()-i.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,Ur(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=te.current,q(te,r?n&1|2:n&1),t):(Se(t),null);case 22:case 23:return eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function fy(e,t){switch(Ma(t),t.tag){case 1:return Me(t.type)&&bi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),J(je),J(Pe),Ba(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Va(t),null;case 13:if(J(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(te),null;case 4:return wr(),null;case 10:return Fa(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var Zo=!1,Ee=!1,py=typeof WeakSet=="function"?WeakSet:Set,_=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Kl(e,t,n){try{n()}catch(r){ie(e,t,r)}}var Fc=!1;function hy(e,t){if(Ol=Ni,e=Df(),_a(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(y=f.firstChild)!==null;)m=f,f=y;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=s),m===i&&++d===r&&(a=s),(y=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(_l={focusedElem:e,selectionRange:n},Ni=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,S=w.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:nt(t.type,g),S);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(C){ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=Fc,Fc=!1,w}function to(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Kl(t,n,i)}o=o.next}while(o!==r)}}function ls(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ql(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[vo],delete t[Ll],delete t[Yg],delete t[Xg])),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 jp(e){return e.tag===5||e.tag===3||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jp(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 Yl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ai));else if(r!==4&&(e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}function Xl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xl(e,t,n),e=e.sibling;e!==null;)Xl(e,t,n),e=e.sibling}var me=null,it=!1;function Ut(e,t,n){for(n=n.child;n!==null;)Mp(e,t,n),n=n.sibling}function Mp(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Zi,n)}catch{}switch(n.tag){case 5:Ee||Xn(n,t);case 6:var r=me,o=it;me=null,Ut(e,t,n),me=r,it=o,me!==null&&(it?(e=me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):me.removeChild(n.stateNode));break;case 18:me!==null&&(it?(e=me,n=n.stateNode,e.nodeType===8?Qs(e.parentNode,n):e.nodeType===1&&Qs(e,n),co(e)):Qs(me,n.stateNode));break;case 4:r=me,o=it,me=n.stateNode.containerInfo,it=!0,Ut(e,t,n),me=r,it=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Kl(n,t,s),o=o.next}while(o!==r)}Ut(e,t,n);break;case 1:if(!Ee&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ie(n,t,l)}Ut(e,t,n);break;case 21:Ut(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,Ut(e,t,n),Ee=r):Ut(e,t,n);break;default:Ut(e,t,n)}}function $c(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new py),t.forEach(function(r){var o=Ey.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vy(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Vi=0,H&6)throw Error(A(331));var o=H;for(H|=4,_=e.current;_!==null;){var i=_,s=i.child;if(_.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ase()-Ja?bn(e,0):Xa|=n),Le(e,t)}function Vp(e,t){t===0&&(e.mode&1?(t=Ho,Ho<<=1,!(Ho&130023424)&&(Ho=4194304)):t=1);var n=Re();e=Mt(e,t),e!==null&&(bo(e,t,n),Le(e,n))}function Cy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vp(e,n)}function Ey(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Vp(e,n)}var Bp;Bp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,cy(e,t,n);_e=!!(e.flags&131072)}else _e=!1,ee&&t.flags&1048576&&Gf(t,ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var o=gr(t,Pe.current);rr(t,n),o=Wa(null,t,r,e,o,n);var i=Qa();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,Me(r)?(i=!0,Oi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,$a(t),o.updater=ss,t.stateNode=o,o._reactInternals=t,Ul(t,r,e,n),t=Hl(null,t,r,!0,i,n)):(t.tag=0,ee&&i&&ja(t),Ne(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ky(r),e=nt(r,e),o){case 0:t=Bl(null,t,r,e,n);break e;case 1:t=Lc(null,t,r,e,n);break e;case 11:t=jc(null,t,r,e,n);break e;case 14:t=Mc(null,t,r,nt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),Bl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),Lc(e,t,r,o,n);case 3:e:{if(Np(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Zf(e,t),Di(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Sr(Error(A(423)),t),t=Dc(e,t,r,n,o);break e}else if(r!==o){o=Sr(Error(A(424)),t),t=Dc(e,t,r,n,o);break e}else for(ze=sn(t.stateNode.containerInfo.firstChild),$e=t,ee=!0,st=null,n=Xf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===o){t=Lt(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return ep(t),e===null&&Fl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,jl(r,o)?s=null:i!==null&&jl(r,i)&&(t.flags|=32),kp(e,t),Ne(e,t,s,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return Tp(e,t,n);case 4:return Ua(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),jc(e,t,r,o,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,q(Mi,r._currentValue),r._currentValue=s,i!==null)if(ut(i.value,s)){if(i.children===o.children&&!je.current){t=Lt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ot(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),zl(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),zl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ne(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,rr(t,n),o=Je(o),r=r(o),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,o=nt(r,t.pendingProps),o=nt(r.type,o),Mc(e,t,r,o,n);case 15:return Ep(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),hi(e,t),t.tag=1,Me(r)?(e=!0,Oi(t)):e=!1,rr(t,n),wp(t,r,o),Ul(t,r,o,n),Hl(null,t,r,!0,e,n);case 19:return Rp(e,t,n);case 22:return Pp(e,t,n)}throw Error(A(156,t.tag))};function Hp(e,t){return gf(e,t)}function Py(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ye(e,t,n,r){return new Py(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ky(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sa)return 11;if(e===Ca)return 14}return 2}function cn(e,t){var n=e.alternate;return n===null?(n=Ye(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")nu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vn:return On(n.children,o,i,t);case wa:s=8,o|=8;break;case dl:return e=Ye(12,n,t,o|2),e.elementType=dl,e.lanes=i,e;case fl:return e=Ye(13,n,t,o),e.elementType=fl,e.lanes=i,e;case pl:return e=Ye(19,n,t,o),e.elementType=pl,e.lanes=i,e;case Zd:return us(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xd:s=10;break e;case Jd:s=9;break e;case Sa:s=11;break e;case Ca:s=14;break e;case Wt:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ye(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function On(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function us(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=Zd,e.lanes=n,e.stateNode={isHidden:!1},e}function el(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function tl(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ny(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ls(0),this.expirationTimes=Ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ls(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,o,i,s,l,a){return e=new Ny(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ye(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(i),e}function Ty(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kp)}catch(e){console.error(e)}}Kp(),Gd.exports=He;var Mo=Gd.exports;const _y=Md(Mo);var qp,Kc=Mo;qp=Kc.createRoot,Kc.hydrateRoot;function jy(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,o,i,s=[],l="",a=e.split("/");for(a[0]||a.shift();o=a.shift();)n=o[0],n==="*"?(s.push(n),l+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=o.indexOf("?",1),i=o.indexOf(".",1),s.push(o.substring(1,~r?r:~i?i:o.length)),l+=~r&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(l+=(~r?"?":"")+"\\"+o.substring(i))):l+="/"+o;return{keys:s,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var Yp={exports:{}},Xp={};/** * @license React * use-sync-external-store-shim.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 Er=x;function My(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ly=typeof Object.is=="function"?Object.is:My,Dy=Er.useState,Iy=Er.useEffect,Fy=Er.useLayoutEffect,zy=Er.useDebugValue;function $y(e,t){var n=t(),r=Dy({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Fy(function(){o.value=n,o.getSnapshot=t,nl(o)&&i({inst:o})},[e,n,t]),Iy(function(){return nl(o)&&i({inst:o}),e(function(){nl(o)&&i({inst:o})})},[e]),zy(n),n}function nl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ly(e,n)}catch{return!0}}function Uy(e,t){return t()}var Vy=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Uy:$y;Xp.useSyncExternalStore=Er.useSyncExternalStore!==void 0?Er.useSyncExternalStore:Vy;Yp.exports=Xp;var By=Yp.exports;const Hy=Wd.useInsertionEffect,Wy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qy=Wy?x.useLayoutEffect:x.useEffect,Gy=Hy||Qy,Jp=e=>{const t=x.useRef([e,(...n)=>t[0](...n)]).current;return Gy(()=>{t[0]=e}),t[1]},Ky="popstate",lu="pushState",au="replaceState",qy="hashchange",qc=[Ky,lu,au,qy],Yy=e=>{for(const t of qc)addEventListener(t,e);return()=>{for(const t of qc)removeEventListener(t,e)}},Zp=(e,t)=>By.useSyncExternalStore(Yy,e,t),Xy=()=>location.search,Jy=({ssrSearch:e=""}={})=>Zp(Xy,()=>e),Yc=()=>location.pathname,Zy=({ssrPath:e}={})=>Zp(Yc,e?()=>e:Yc),e0=(e,{replace:t=!1,state:n=null}={})=>history[t?au:lu](n,"",e),t0=(e={})=>[Zy(e),e0],Xc=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Xc]>"u"){for(const e of[lu,au]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,Xc,{value:!0})}const n0=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",eh=(e="")=>e==="/"?"":e,r0=(e,t)=>e[0]==="~"?e.slice(1):eh(t)+e,o0=(e="",t)=>n0(Jc(eh(e)),Jc(t)),Jc=e=>{try{return decodeURI(e)}catch{return e}},th={hook:t0,searchHook:Jy,parser:jy,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},nh=x.createContext(th),hs=()=>x.useContext(nh),rh={},oh=x.createContext(rh),i0=()=>x.useContext(oh),uu=e=>{const[t,n]=e.hook(e);return[o0(e.base,t),Jp((r,o)=>n(r0(r,e.base),o))]},ih=(e,t,n,r)=>{const{pattern:o,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),s=o.exec(n)||[],[l,...a]=s;return l!==void 0?[!0,(()=>{const u=i!==!1?Object.fromEntries(i.map((f,m)=>[f,a[m]])):s.groups;let d={...a};return u&&Object.assign(d,u),d})(),...r?[l]:[]]:[!1,null]},sh=({children:e,...t})=>{var d,f;const n=hs(),r=t.hook?th:n;let o=r;const[i,s]=((d=t.ssrPath)==null?void 0:d.split("?"))??[];s&&(t.ssrSearch=s,t.ssrPath=i),t.hrefs=t.hrefs??((f=t.hook)==null?void 0:f.hrefs);let l=x.useRef({}),a=l.current,u=a;for(let m in r){const y=m==="base"?r[m]+(t[m]||""):t[m]||r[m];a===u&&y!==u[m]&&(l.current=u={...u}),u[m]=y,y!==r[m]&&(o=u)}return x.createElement(nh.Provider,{value:o,children:e})},Zc=({children:e,component:t},n)=>t?x.createElement(t,{params:n}):typeof e=="function"?e(n):e,s0=e=>{let t=x.useRef(rh),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},ed=({path:e,nest:t,match:n,...r})=>{const o=hs(),[i]=uu(o),[s,l,a]=n??ih(o.parser,e,i,t),u=s0({...i0(),...l});if(!s)return null;const d=a?x.createElement(sh,{base:a},Zc(r,u)):Zc(r,u);return x.createElement(oh.Provider,{value:u,children:d})};x.forwardRef((e,t)=>{const n=hs(),[r,o]=uu(n),{to:i="",href:s=i,onClick:l,asChild:a,children:u,className:d,replace:f,state:m,...y}=e,w=Jp(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(l==null||l(S),S.defaultPrevented||(S.preventDefault(),o(s,e)))}),g=n.hrefs(s[0]==="~"?s.slice(1):n.base+s,n);return a&&x.isValidElement(u)?x.cloneElement(u,{onClick:w,href:g}):x.createElement("a",{...y,onClick:w,href:g,className:d!=null&&d.call?d(r===s):d,children:u,ref:t})});const lh=e=>Array.isArray(e)?e.flatMap(t=>lh(t&&t.type===x.Fragment?t.props.children:t)):[e],l0=({children:e,location:t})=>{const n=hs(),[r]=uu(n);for(const o of lh(e)){let i=0;if(x.isValidElement(o)&&(i=ih(n.parser,o.props.path,t||r,o.props.nest))[0])return x.cloneElement(o,{match:i})}return null};var ms=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(){}},vs=typeof window>"u"||"Deno"in globalThis;function rt(){}function a0(e,t){return typeof e=="function"?e(t):e}function u0(e){return typeof e=="number"&&e>=0&&e!==1/0}function c0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function td(e,t){return typeof e=="function"?e(t):e}function d0(e,t){return typeof e=="function"?e(t):e}function nd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==cu(s,t.options))return!1}else if(!Po(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function rd(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Eo(t.options.mutationKey)!==Eo(i))return!1}else if(!Po(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function cu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Eo)(e)}function Eo(e){return JSON.stringify(e,(t,n)=>na(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Po(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Po(e[n],t[n])):!1}function ah(e,t){if(e===t)return e;const n=od(e)&&od(t);if(n||na(e)&&na(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{};let a=0;for(let u=0;u{setTimeout(t,e)})}function p0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ah(e,t):t}function h0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function m0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var du=Symbol();function uh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===du?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Nn,qt,lr,Nd,v0=(Nd=class extends ms{constructor(){super();G(this,Nn);G(this,qt);G(this,lr);F(this,lr,t=>{if(!vs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,qt)||this.setEventListener(N(this,lr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,qt))==null||t.call(this),F(this,qt,void 0))}setEventListener(t){var n;F(this,lr,t),(n=N(this,qt))==null||n.call(this),F(this,qt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Nn)!==t&&(F(this,Nn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Nn)=="boolean"?N(this,Nn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Nn=new WeakMap,qt=new WeakMap,lr=new WeakMap,Nd),ch=new v0,ar,Yt,ur,Td,g0=(Td=class extends ms{constructor(){super();G(this,ar,!0);G(this,Yt);G(this,ur);F(this,ur,t=>{if(!vs&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,Yt)||this.setEventListener(N(this,ur))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Yt))==null||t.call(this),F(this,Yt,void 0))}setEventListener(t){var n;F(this,ur,t),(n=N(this,Yt))==null||n.call(this),F(this,Yt,t(this.setOnline.bind(this)))}setOnline(t){N(this,ar)!==t&&(F(this,ar,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,ar)}},ar=new WeakMap,Yt=new WeakMap,ur=new WeakMap,Td),Wi=new g0;function y0(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function x0(e){return Math.min(1e3*2**e,3e4)}function dh(e){return(e??"online")==="online"?Wi.isOnline():!0}var fh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function rl(e){return e instanceof fh}function ph(e){let t=!1,n=0,r=!1,o;const i=y0(),s=g=>{var S;r||(m(new fh(g)),(S=e.abort)==null||S.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>ch.isFocused()&&(e.networkMode==="always"||Wi.isOnline())&&e.canRun(),d=()=>dh(e.networkMode)&&e.canRun(),f=g=>{var S;r||(r=!0,(S=e.onSuccess)==null||S.call(e,g),o==null||o(),i.resolve(g))},m=g=>{var S;r||(r=!0,(S=e.onError)==null||S.call(e,g),o==null||o(),i.reject(g))},y=()=>new Promise(g=>{var S;o=p=>{(r||u())&&g(p)},(S=e.onPause)==null||S.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),w=()=>{if(r)return;let g;const S=n===0?e.initialPromise:void 0;try{g=S??e.fn()}catch(p){g=Promise.reject(p)}Promise.resolve(g).then(f).catch(p=>{var P;if(r)return;const c=e.retry??(vs?0:3),v=e.retryDelay??x0,C=typeof v=="function"?v(n,p):v,E=c===!0||typeof c=="number"&&nu()?void 0:y()).then(()=>{t?m(p):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?w():y().then(w),i)}}function w0(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Te=w0(),Tn,Rd,hh=(Rd=class{constructor(){G(this,Tn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u0(this.gcTime)&&F(this,Tn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vs?1/0:5*60*1e3))}clearGcTimeout(){N(this,Tn)&&(clearTimeout(N(this,Tn)),F(this,Tn,void 0))}},Tn=new WeakMap,Rd),cr,dr,Ge,Ce,To,Rn,ot,Nt,Ad,S0=(Ad=class extends hh{constructor(t){super();G(this,ot);G(this,cr);G(this,dr);G(this,Ge);G(this,Ce);G(this,To);G(this,Rn);F(this,Rn,!1),F(this,To,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,Ge,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,cr,E0(this.options)),this.state=t.state??N(this,cr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,Ce))==null?void 0:t.promise}setOptions(t){this.options={...N(this,To),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Ge).remove(this)}setData(t,n){const r=p0(this.state.data,t,this.options);return xe(this,ot,Nt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){xe(this,ot,Nt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,Ce))==null?void 0:r.promise;return(o=N(this,Ce))==null||o.cancel(t),n?n.then(rt).catch(rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,cr))}isActive(){return this.observers.some(t=>d0(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===du||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!c0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ce))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ce))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,Ge).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,Ce)&&(N(this,Rn)?N(this,Ce).cancel({revert:!0}):N(this,Ce).cancelRetry()),this.scheduleGc()),N(this,Ge).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||xe(this,ot,Nt).call(this,{type:"invalidate"})}fetch(t,n){var a,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Ce))return N(this,Ce).continueRetry(),N(this,Ce).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(F(this,Rn,!0),r.signal)})},i=()=>{const f=uh(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return o(m),F(this,Rn,!1),this.options.persister?this.options.persister(f,m,this):f(m)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(a=this.options.behavior)==null||a.onFetch(s,this),F(this,dr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&xe(this,ot,Nt).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=f=>{var m,y,w,g;rl(f)&&f.silent||xe(this,ot,Nt).call(this,{type:"error",error:f}),rl(f)||((y=(m=N(this,Ge).config).onError)==null||y.call(m,f,this),(g=(w=N(this,Ge).config).onSettled)==null||g.call(w,this.state.data,f,this)),this.scheduleGc()};return F(this,Ce,ph({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var m,y,w,g;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){l(S);return}(y=(m=N(this,Ge).config).onSuccess)==null||y.call(m,f,this),(g=(w=N(this,Ge).config).onSettled)==null||g.call(w,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,m)=>{xe(this,ot,Nt).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{xe(this,ot,Nt).call(this,{type:"pause"})},onContinue:()=>{xe(this,ot,Nt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),N(this,Ce).start()}},cr=new WeakMap,dr=new WeakMap,Ge=new WeakMap,Ce=new WeakMap,To=new WeakMap,Rn=new WeakMap,ot=new WeakSet,Nt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...C0(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return rl(o)&&o.revert&&N(this,dr)?{...N(this,dr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Te.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,Ge).notify({query:this,type:"updated",action:t})})},Ad);function C0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function E0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ht,bd,P0=(bd=class extends ms{constructor(t={}){super();G(this,ht);this.config=t,F(this,ht,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??cu(o,n);let s=this.get(i);return s||(s=new S0({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){N(this,ht).has(t.queryHash)||(N(this,ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,ht).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,ht).get(t)}getAll(){return[...N(this,ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nd(t,r)):n}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Te.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Te.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ht=new WeakMap,bd),mt,ke,An,vt,Ht,Od,k0=(Od=class extends hh{constructor(t){super();G(this,vt);G(this,mt);G(this,ke);G(this,An);this.mutationId=t.mutationId,F(this,ke,t.mutationCache),F(this,mt,[]),this.state=t.state||N0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,mt).includes(t)||(N(this,mt).push(t),this.clearGcTimeout(),N(this,ke).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,mt,N(this,mt).filter(n=>n!==t)),this.scheduleGc(),N(this,ke).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,mt).length||(this.state.status==="pending"?this.scheduleGc():N(this,ke).remove(this))}continue(){var t;return((t=N(this,An))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,l,a,u,d,f,m,y,w,g,S,p,c,v,C,E,P,k;F(this,An,ph({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,M)=>{xe(this,vt,Ht).call(this,{type:"failed",failureCount:T,error:M})},onPause:()=>{xe(this,vt,Ht).call(this,{type:"pause"})},onContinue:()=>{xe(this,vt,Ht).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,ke).canRun(this)}));const n=this.state.status==="pending",r=!N(this,An).canStart();try{if(!n){xe(this,vt,Ht).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=N(this,ke).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));M!==this.state.context&&xe(this,vt,Ht).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const T=await N(this,An).start();return await((u=(a=N(this,ke).config).onSuccess)==null?void 0:u.call(a,T,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,T,t,this.state.context)),await((y=(m=N(this,ke).config).onSettled)==null?void 0:y.call(m,T,null,this.state.variables,this.state.context,this)),await((g=(w=this.options).onSettled)==null?void 0:g.call(w,T,null,t,this.state.context)),xe(this,vt,Ht).call(this,{type:"success",data:T}),T}catch(T){try{throw await((p=(S=N(this,ke).config).onError)==null?void 0:p.call(S,T,t,this.state.context,this)),await((v=(c=this.options).onError)==null?void 0:v.call(c,T,t,this.state.context)),await((E=(C=N(this,ke).config).onSettled)==null?void 0:E.call(C,void 0,T,this.state.variables,this.state.context,this)),await((k=(P=this.options).onSettled)==null?void 0:k.call(P,void 0,T,t,this.state.context)),T}finally{xe(this,vt,Ht).call(this,{type:"error",error:T})}}finally{N(this,ke).runNext(this)}}},mt=new WeakMap,ke=new WeakMap,An=new WeakMap,vt=new WeakSet,Ht=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Te.batch(()=>{N(this,mt).forEach(r=>{r.onMutationUpdate(t)}),N(this,ke).notify({mutation:this,type:"updated",action:t})})},Od);function N0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var De,Ro,_d,T0=(_d=class extends ms{constructor(t={}){super();G(this,De);G(this,Ro);this.config=t,F(this,De,new Map),F(this,Ro,Date.now())}build(t,n,r){const o=new k0({mutationCache:this,mutationId:++Fo(this,Ro)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=ni(t),r=N(this,De).get(n)??[];r.push(t),N(this,De).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ni(t);if(N(this,De).has(n)){const o=(r=N(this,De).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?N(this,De).delete(n):N(this,De).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=N(this,De).get(ni(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=N(this,De).get(ni(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Te.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...N(this,De).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rd(n,r))}findAll(t={}){return this.getAll().filter(n=>rd(t,n))}notify(t){Te.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Te.batch(()=>Promise.all(t.map(n=>n.continue().catch(rt))))}},De=new WeakMap,Ro=new WeakMap,_d);function ni(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function sd(e){return{onFetch:(t,n)=>{var d,f,m,y,w;const r=t.options,o=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let g=!1;const S=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},p=uh(t.options,t.fetchOptions),c=async(v,C,E)=>{if(g)return Promise.reject();if(C==null&&v.pages.length)return Promise.resolve(v);const P={queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};S(P);const k=await p(P),{maxPages:T}=t.options,M=E?m0:h0;return{pages:M(v.pages,k,T),pageParams:M(v.pageParams,C,T)}};if(o&&i.length){const v=o==="backward",C=v?R0:ld,E={pages:i,pageParams:s},P=C(r,E);l=await c(E,P,v)}else{const v=e??i.length;do{const C=a===0?s[0]??r.initialPageParam:ld(r,l);if(a>0&&C==null)break;l=await c(l,C),a++}while(a{var g,S;return(S=(g=t.options).persister)==null?void 0:S.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ld(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function R0(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var oe,Xt,Jt,fr,pr,Zt,hr,mr,jd,A0=(jd=class{constructor(e={}){G(this,oe);G(this,Xt);G(this,Jt);G(this,fr);G(this,pr);G(this,Zt);G(this,hr);G(this,mr);F(this,oe,e.queryCache||new P0),F(this,Xt,e.mutationCache||new T0),F(this,Jt,e.defaultOptions||{}),F(this,fr,new Map),F(this,pr,new Map),F(this,Zt,0)}mount(){Fo(this,Zt)._++,N(this,Zt)===1&&(F(this,hr,ch.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,oe).onFocus())})),F(this,mr,Wi.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,oe).onOnline())})))}unmount(){var e,t;Fo(this,Zt)._--,N(this,Zt)===0&&((e=N(this,hr))==null||e.call(this),F(this,hr,void 0),(t=N(this,mr))==null||t.call(this),F(this,mr,void 0))}isFetching(e){return N(this,oe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,Xt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,oe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=N(this,oe).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(td(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return N(this,oe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,oe).get(r.queryHash),i=o==null?void 0:o.state.data,s=a0(t,i);if(s!==void 0)return N(this,oe).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Te.batch(()=>N(this,oe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,oe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,oe);Te.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,oe),r={type:"active",...e};return Te.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Te.batch(()=>N(this,oe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(rt).catch(rt)}invalidateQueries(e={},t={}){return Te.batch(()=>{if(N(this,oe).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Te.batch(()=>N(this,oe).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(rt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(rt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,oe).build(this,t);return n.isStaleByTime(td(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rt).catch(rt)}fetchInfiniteQuery(e){return e.behavior=sd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rt).catch(rt)}ensureInfiniteQueryData(e){return e.behavior=sd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wi.isOnline()?N(this,Xt).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,oe)}getMutationCache(){return N(this,Xt)}getDefaultOptions(){return N(this,Jt)}setDefaultOptions(e){F(this,Jt,e)}setQueryDefaults(e,t){N(this,fr).set(Eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,fr).values()];let n={};return t.forEach(r=>{Po(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){N(this,pr).set(Eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,pr).values()];let n={};return t.forEach(r=>{Po(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,Jt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cu(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.enabled!==!0&&t.queryFn===du&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,Jt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,oe).clear(),N(this,Xt).clear()}},oe=new WeakMap,Xt=new WeakMap,Jt=new WeakMap,fr=new WeakMap,pr=new WeakMap,Zt=new WeakMap,hr=new WeakMap,mr=new WeakMap,jd),b0=x.createContext(void 0),O0=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(b0.Provider,{value:e,children:t}));async function _0(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}const j0=({on401:e})=>async({queryKey:t})=>{const n=await fetch(t.join("/"),{credentials:"include"});return e==="returnNull"&&n.status===401?null:(await _0(n),await n.json())},M0=new A0({defaultOptions:{queries:{queryFn:j0({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),L0=1,D0=1e6;let ol=0;function I0(){return ol=(ol+1)%Number.MAX_SAFE_INTEGER,ol.toString()}const il=new Map,ad=e=>{if(il.has(e))return;const t=setTimeout(()=>{il.delete(e),oo({type:"REMOVE_TOAST",toastId:e})},D0);il.set(e,t)},F0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,L0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ad(n):e.toasts.forEach(r=>{ad(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},yi=[];let xi={toasts:[]};function oo(e){xi=F0(xi,e),yi.forEach(t=>{t(xi)})}function z0({...e}){const t=I0(),n=o=>oo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>oo({type:"DISMISS_TOAST",toastId:t});return oo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function $0(){const[e,t]=x.useState(xi);return x.useEffect(()=>(yi.push(t),()=>{const n=yi.indexOf(t);n>-1&&yi.splice(n,1)}),[e]),{...e,toast:z0,dismiss:n=>oo({type:"DISMISS_TOAST",toastId:n})}}function le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ud(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=ud(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var p;const{scope:m,children:y,...w}=f,g=((p=m==null?void 0:m[e])==null?void 0:p[a])||l,S=x.useMemo(()=>w,Object.values(w));return h.jsx(g.Provider,{value:S,children:y})};u.displayName=i+"Provider";function d(f,m){var g;const y=((g=m==null?void 0:m[e])==null?void 0:g[a])||l,w=x.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,U0(o,...t)]}function U0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Qi(e){const t=B0(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,l=x.Children.toArray(i),a=l.find(W0);if(a){const u=a.props.children,d=l.map(f=>f===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:f);return h.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return h.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var V0=Qi("Slot");function B0(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=G0(o),l=Q0(i,o.props);return o.type!==x.Fragment&&(l.ref=r?mh(r,s):s),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vh=Symbol("radix.slottable");function H0(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=vh,t}function W0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vh}function Q0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function G0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gh(e){const t=e+"CollectionProvider",[n,r]=Ar(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:S,children:p}=g,c=ae.useRef(null),v=ae.useRef(new Map).current;return h.jsx(o,{scope:S,itemMap:v,collectionRef:c,children:p})};s.displayName=t;const l=e+"CollectionSlot",a=Qi(l),u=ae.forwardRef((g,S)=>{const{scope:p,children:c}=g,v=i(l,p),C=Be(S,v.collectionRef);return h.jsx(a,{ref:C,children:c})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Qi(d),y=ae.forwardRef((g,S)=>{const{scope:p,children:c,...v}=g,C=ae.useRef(null),E=Be(S,C),P=i(d,p);return ae.useEffect(()=>(P.itemMap.set(C,{ref:C,...v}),()=>void P.itemMap.delete(C))),h.jsx(m,{[f]:"",ref:E,children:c})});y.displayName=d;function w(g){const S=i(e+"CollectionConsumer",g);return ae.useCallback(()=>{const c=S.collectionRef.current;if(!c)return[];const v=Array.from(c.querySelectorAll(`[${f}]`));return Array.from(S.itemMap.values()).sort((P,k)=>v.indexOf(P.ref.current)-v.indexOf(k.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:u,ItemSlot:y},w,r]}var K0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=K0.reduce((e,t)=>{const n=Qi(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yh(e,t){e&&Mo.flushSync(()=>e.dispatchEvent(t))}function St(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function q0(e,t=globalThis==null?void 0:globalThis.document){const n=St(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Y0="DismissableLayer",ra="dismissableLayer.update",X0="dismissableLayer.pointerDownOutside",J0="dismissableLayer.focusOutside",cd,xh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=x.useContext(xh),[d,f]=x.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=x.useState({}),w=Be(t,k=>f(k)),g=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=g.indexOf(S),c=d?g.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,C=c>=p,E=ex(k=>{const T=k.target,M=[...u.branches].some(O=>O.contains(T));!C||M||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),P=tx(k=>{const T=k.target;[...u.branches].some(O=>O.contains(T))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return q0(k=>{c===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(cd=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),dd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=cd)}},[d,m,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),dd())},[d,u]),x.useEffect(()=>{const k=()=>y({});return document.addEventListener(ra,k),()=>document.removeEventListener(ra,k)},[]),h.jsx(fe.div,{...a,ref:w,style:{pointerEvents:v?C?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,P.onFocusCapture),onBlurCapture:le(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,E.onPointerDownCapture)})});fu.displayName=Y0;var Z0="DismissableLayerBranch",wh=x.forwardRef((e,t)=>{const n=x.useContext(xh),r=x.useRef(null),o=Be(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(fe.div,{...e,ref:o})});wh.displayName=Z0;function ex(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Sh(X0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tx(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&Sh(J0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dd(){const e=new CustomEvent(ra);document.dispatchEvent(e)}function Sh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yh(o,i):o.dispatchEvent(i)}var nx=fu,rx=wh,Dt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},ox="Portal",Ch=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=x.useState(!1);Dt(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?_y.createPortal(h.jsx(fe.div,{...r,ref:t}),s):null});Ch.displayName=ox;function ix(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var gs=e=>{const{present:t,children:n}=e,r=sx(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Be(r.ref,lx(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};gs.displayName="Presence";function sx(e){const[t,n]=x.useState(),r=x.useRef({}),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[l,a]=ix(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=ri(r.current);i.current=l==="mounted"?u:"none"},[l]),Dt(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,y=ri(u);e?a("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Dt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=y=>{const g=ri(r.current).includes(y.animationName);if(y.target===t&&g&&(a("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},m=y=>{y.target===t&&(i.current=ri(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ri(e){return(e==null?void 0:e.animationName)||"none"}function lx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ys({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ax({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,l=St(n),a=x.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[i,e,o,l]);return[s,a]}function ax({defaultProp:e,onChange:t}){const n=x.useState(e),[r]=n,o=x.useRef(r),i=St(t);return x.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var ux="VisuallyHidden",xs=x.forwardRef((e,t)=>h.jsx(fe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));xs.displayName=ux;var cx=xs,pu="ToastProvider",[hu,dx,fx]=gh("Toast"),[Eh,HS]=Ar("Toast",[fx]),[px,ws]=Eh(pu),Ph=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=x.useState(null),[u,d]=x.useState(0),f=x.useRef(!1),m=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${pu}\`. Expected non-empty \`string\`.`),h.jsx(hu.Provider,{scope:t,children:h.jsx(px,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>d(y=>y+1),[]),onToastRemove:x.useCallback(()=>d(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:s})})};Ph.displayName=pu;var kh="ToastViewport",hx=["F8"],oa="toast.viewportPause",ia="toast.viewportResume",Nh=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hx,label:o="Notifications ({hotkey})",...i}=e,s=ws(kh,n),l=dx(n),a=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),m=Be(t,f,s.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;x.useEffect(()=>{const S=p=>{var v;r.length!==0&&r.every(C=>p[C]||p.code===C)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[r]),x.useEffect(()=>{const S=a.current,p=f.current;if(w&&S&&p){const c=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(oa);p.dispatchEvent(P),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(ia);p.dispatchEvent(P),s.isClosePausedRef.current=!1}},C=P=>{!S.contains(P.relatedTarget)&&v()},E=()=>{S.contains(document.activeElement)||v()};return S.addEventListener("focusin",c),S.addEventListener("focusout",C),S.addEventListener("pointermove",c),S.addEventListener("pointerleave",E),window.addEventListener("blur",c),window.addEventListener("focus",v),()=>{S.removeEventListener("focusin",c),S.removeEventListener("focusout",C),S.removeEventListener("pointermove",c),S.removeEventListener("pointerleave",E),window.removeEventListener("blur",c),window.removeEventListener("focus",v)}}},[w,s.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:S})=>{const c=l().map(v=>{const C=v.ref.current,E=[C,...Tx(C)];return S==="forwards"?E:E.reverse()});return(S==="forwards"?c.reverse():c).flat()},[l]);return x.useEffect(()=>{const S=f.current;if(S){const p=c=>{var E,P,k;const v=c.altKey||c.ctrlKey||c.metaKey;if(c.key==="Tab"&&!v){const T=document.activeElement,M=c.shiftKey;if(c.target===S&&M){(E=u.current)==null||E.focus();return}const L=g({tabbingDirection:M?"backwards":"forwards"}),B=L.findIndex(j=>j===T);sl(L.slice(B+1))?c.preventDefault():M?(P=u.current)==null||P.focus():(k=d.current)==null||k.focus()}};return S.addEventListener("keydown",p),()=>S.removeEventListener("keydown",p)}},[l,g]),h.jsxs(rx,{ref:a,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&h.jsx(sa,{ref:u,onFocusFromOutsideViewport:()=>{const S=g({tabbingDirection:"forwards"});sl(S)}}),h.jsx(hu.Slot,{scope:n,children:h.jsx(fe.ol,{tabIndex:-1,...i,ref:m})}),w&&h.jsx(sa,{ref:d,onFocusFromOutsideViewport:()=>{const S=g({tabbingDirection:"backwards"});sl(S)}})]})});Nh.displayName=kh;var Th="ToastFocusProxy",sa=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ws(Th,n);return h.jsx(xs,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});sa.displayName=Th;var Ss="Toast",mx="toast.swipeStart",vx="toast.swipeMove",gx="toast.swipeCancel",yx="toast.swipeEnd",Rh=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l=!0,a]=ys({prop:r,defaultProp:o,onChange:i});return h.jsx(gs,{present:n||l,children:h.jsx(Sx,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:St(e.onPause),onResume:St(e.onResume),onSwipeStart:le(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:le(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:le(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:le(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});Rh.displayName=Ss;var[xx,wx]=Eh(Ss,{onClose(){}}),Sx=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:y,...w}=e,g=ws(Ss,n),[S,p]=x.useState(null),c=Be(t,j=>p(j)),v=x.useRef(null),C=x.useRef(null),E=o||g.duration,P=x.useRef(0),k=x.useRef(E),T=x.useRef(0),{onToastAdd:M,onToastRemove:O}=g,z=St(()=>{var Q;(S==null?void 0:S.contains(document.activeElement))&&((Q=g.viewport)==null||Q.focus()),s()}),L=x.useCallback(j=>{!j||j===1/0||(window.clearTimeout(T.current),P.current=new Date().getTime(),T.current=window.setTimeout(z,j))},[z]);x.useEffect(()=>{const j=g.viewport;if(j){const Q=()=>{L(k.current),u==null||u()},U=()=>{const W=new Date().getTime()-P.current;k.current=k.current-W,window.clearTimeout(T.current),a==null||a()};return j.addEventListener(oa,U),j.addEventListener(ia,Q),()=>{j.removeEventListener(oa,U),j.removeEventListener(ia,Q)}}},[g.viewport,E,a,u,L]),x.useEffect(()=>{i&&!g.isClosePausedRef.current&&L(E)},[i,E,g.isClosePausedRef,L]),x.useEffect(()=>(M(),()=>O()),[M,O]);const B=x.useMemo(()=>S?Lh(S):null,[S]);return g.viewport?h.jsxs(h.Fragment,{children:[B&&h.jsx(Cx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),h.jsx(xx,{scope:n,onClose:z,children:Mo.createPortal(h.jsx(hu.ItemSlot,{scope:n,children:h.jsx(nx,{asChild:!0,onEscapeKeyDown:le(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||z(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(fe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:c,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:le(e.onKeyDown,j=>{j.key==="Escape"&&(l==null||l(j.nativeEvent),j.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:le(e.onPointerDown,j=>{j.button===0&&(v.current={x:j.clientX,y:j.clientY})}),onPointerMove:le(e.onPointerMove,j=>{if(!v.current)return;const Q=j.clientX-v.current.x,U=j.clientY-v.current.y,W=!!C.current,R=["left","right"].includes(g.swipeDirection),b=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,D=R?b(0,Q):0,$=R?0:b(0,U),Z=j.pointerType==="touch"?10:2,et={x:D,y:$},Qe={originalEvent:j,delta:et};W?(C.current=et,oi(vx,f,Qe,{discrete:!1})):fd(et,g.swipeDirection,Z)?(C.current=et,oi(mx,d,Qe,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(Q)>Z||Math.abs(U)>Z)&&(v.current=null)}),onPointerUp:le(e.onPointerUp,j=>{const Q=C.current,U=j.target;if(U.hasPointerCapture(j.pointerId)&&U.releasePointerCapture(j.pointerId),C.current=null,v.current=null,Q){const W=j.currentTarget,R={originalEvent:j,delta:Q};fd(Q,g.swipeDirection,g.swipeThreshold)?oi(yx,y,R,{discrete:!0}):oi(gx,m,R,{discrete:!0}),W.addEventListener("click",b=>b.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Cx=e=>{const{__scopeToast:t,children:n,...r}=e,o=ws(Ss,t),[i,s]=x.useState(!1),[l,a]=x.useState(!1);return kx(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:h.jsx(Ch,{asChild:!0,children:h.jsx(xs,{...r,children:i&&h.jsxs(h.Fragment,{children:[o.label," ",n]})})})},Ex="ToastTitle",Ah=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(fe.div,{...r,ref:t})});Ah.displayName=Ex;var Px="ToastDescription",bh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(fe.div,{...r,ref:t})});bh.displayName=Px;var Oh="ToastAction",_h=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(Mh,{altText:n,asChild:!0,children:h.jsx(mu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Oh}\`. Expected non-empty \`string\`.`),null)});_h.displayName=Oh;var jh="ToastClose",mu=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=wx(jh,n);return h.jsx(Mh,{asChild:!0,children:h.jsx(fe.button,{type:"button",...r,ref:t,onClick:le(e.onClick,o.onClose)})})});mu.displayName=jh;var Mh=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.jsx(fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Lh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Nx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Lh(r))}}),t}function oi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yh(o,i):o.dispatchEvent(i)}var fd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function kx(e=()=>{}){const t=St(e);Dt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Nx(e){return e.nodeType===e.ELEMENT_NODE}function Tx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function sl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Rx=Ph,Dh=Nh,Ih=Rh,Fh=Ah,zh=bh,$h=_h,Uh=mu;function Vh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,hd=Bh,Hh=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return hd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const m=pd(d)||pd(f);return o[u][m]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:m,...y}=d;return Object.entries(y).every(w=>{let[g,S]=w;return Array.isArray(S)?S.includes({...i,...l}[g]):{...i,...l}[g]===S})?[...u,f,m]:u},[]);return hd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ax=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wh=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var bx={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.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ox=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>x.createElement("svg",{ref:a,...bx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wh("lucide",o),...l},[...s.map(([u,d])=>x.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xn=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement(Ox,{ref:i,iconNode:t,className:Wh(`lucide-${Ax(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _x=xn("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jx=xn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mx=xn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lx=xn("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.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=xn("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ix=xn("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.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fx=xn("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qh=xn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),vu="-",zx=e=>{const t=Ux(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(vu);return l[0]===""&&l.length!==1&&l.shift(),Gh(l,t)||$x(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Gh=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Gh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(vu);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},md=/^\[(.+)\]$/,$x=e=>{if(md.test(e)){const t=md.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ux=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Bx(Object.entries(e.classGroups),n).forEach(([i,s])=>{la(s,r,i,t)}),r},la=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:vd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Vx(o)){la(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{la(s,vd(t,i),n,r)})})},vd=(e,t)=>{let n=e;return t.split(vu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Vx=e=>e.isThemeGetter,Bx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,Hx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Kh="!",Wx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,d=0,f;for(let S=0;Sd?f-d:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:s}):s},Qx=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Gx=e=>({cache:Hx(e.cacheSize),parseClassName:Wx(e),...zx(e)}),Kx=/\s+/,qx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Kx);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:y}=n(u);let w=!!y,g=r(w?m.substring(0,y):m);if(!g){if(!w){l=u+(l.length>0?" "+l:l);continue}if(g=r(m),!g){l=u+(l.length>0?" "+l:l);continue}w=!1}const S=Qx(d).join(":"),p=f?S+Kh:S,c=p+g;if(i.includes(c))continue;i.push(c);const v=o(g,w);for(let C=0;C0?" "+l:l)}return l};function Yx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(d),e());return n=Gx(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=qx(a,n);return o(a,d),d}return function(){return i(Yx.apply(null,arguments))}}const Y=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yh=/^\[(?:([a-z-]+):)?(.+)\]$/i,Jx=/^\d+\/\d+$/,Zx=new Set(["px","full","screen"]),ew=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tw=/\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$/,nw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ow=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>ir(e)||Zx.has(e)||Jx.test(e),Vt=e=>br(e,"length",fw),ir=e=>!!e&&!Number.isNaN(Number(e)),ll=e=>br(e,"number",ir),Br=e=>!!e&&Number.isInteger(Number(e)),iw=e=>e.endsWith("%")&&ir(e.slice(0,-1)),I=e=>Yh.test(e),Bt=e=>ew.test(e),sw=new Set(["length","size","percentage"]),lw=e=>br(e,sw,Xh),aw=e=>br(e,"position",Xh),uw=new Set(["image","url"]),cw=e=>br(e,uw,hw),dw=e=>br(e,"",pw),Hr=()=>!0,br=(e,t,n)=>{const r=Yh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},fw=e=>tw.test(e)&&!nw.test(e),Xh=()=>!1,pw=e=>rw.test(e),hw=e=>ow.test(e),mw=()=>{const e=Y("colors"),t=Y("spacing"),n=Y("blur"),r=Y("brightness"),o=Y("borderColor"),i=Y("borderRadius"),s=Y("borderSpacing"),l=Y("borderWidth"),a=Y("contrast"),u=Y("grayscale"),d=Y("hueRotate"),f=Y("invert"),m=Y("gap"),y=Y("gradientColorStops"),w=Y("gradientColorStopPositions"),g=Y("inset"),S=Y("margin"),p=Y("opacity"),c=Y("padding"),v=Y("saturate"),C=Y("scale"),E=Y("sepia"),P=Y("skew"),k=Y("space"),T=Y("translate"),M=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",I,t],L=()=>[I,t],B=()=>["",kt,Vt],j=()=>["auto",ir,I],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],b=()=>["","0",I],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[ir,I];return{cacheSize:500,separator:":",theme:{colors:[Hr],spacing:[kt,Vt],blur:["none","",Bt,I],brightness:$(),borderColor:[e],borderRadius:["none","","full",Bt,I],borderSpacing:L(),borderWidth:B(),contrast:$(),grayscale:b(),hueRotate:$(),invert:b(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[iw,Vt],inset:z(),margin:z(),opacity:$(),padding:L(),saturate:$(),scale:$(),sepia:b(),skew:$(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Bt]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),I]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Br,I]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:b()}],shrink:[{shrink:b()}],order:[{order:["first","last","none",Br,I]}],"grid-cols":[{"grid-cols":[Hr]}],"col-start-end":[{col:["auto",{span:["full",Br,I]},I]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Hr]}],"row-start-end":[{row:["auto",{span:[Br,I]},I]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Bt]},Bt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Bt,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ll]}],"font-family":[{font:[Hr]}],"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",I]}],"line-clamp":[{"line-clamp":["none",ir,ll]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kt,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kt,Vt]}],"underline-offset":[{"underline-offset":["auto",kt,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],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",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),aw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:U()}],"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:["",...U()]}],"outline-offset":[{"outline-offset":[kt,I]}],"outline-w":[{outline:[kt,Vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[kt,Vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Bt,dw]}],"shadow-color":[{shadow:[Hr]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Bt,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Br,I]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],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",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kt,Vt,ll]}],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"]}}},vw=Xx(mw);function ye(...e){return vw(Bh(e))}const gw=Rx,Jh=x.forwardRef(({className:e,...t},n)=>h.jsx(Dh,{ref:n,className:ye("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}));Jh.displayName=Dh.displayName;const yw=Hh("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"}}),Zh=x.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(Ih,{ref:r,className:ye(yw({variant:t}),e),...n}));Zh.displayName=Ih.displayName;const xw=x.forwardRef(({className:e,...t},n)=>h.jsx($h,{ref:n,className:ye("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));xw.displayName=$h.displayName;const em=x.forwardRef(({className:e,...t},n)=>h.jsx(Uh,{ref:n,className:ye("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(Qh,{className:"h-4 w-4"})}));em.displayName=Uh.displayName;const tm=x.forwardRef(({className:e,...t},n)=>h.jsx(Fh,{ref:n,className:ye("text-sm font-semibold",e),...t}));tm.displayName=Fh.displayName;const nm=x.forwardRef(({className:e,...t},n)=>h.jsx(zh,{ref:n,className:ye("text-sm opacity-90",e),...t}));nm.displayName=zh.displayName;function ww(){const{toasts:e}=$0();return h.jsxs(gw,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return h.jsxs(Zh,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(tm,{children:n}),r&&h.jsx(nm,{children:r})]}),o,h.jsx(em,{})]},t)}),h.jsx(Jh,{})]})}var Sw=Wd[" useId ".trim().toString()]||(()=>{}),Cw=0;function rm(e){const[t,n]=x.useState(Sw());return Dt(()=>{n(r=>r??String(Cw++))},[e]),t?`radix-${t}`:""}const Ew=["top","right","bottom","left"],pn=Math.min,Fe=Math.max,Gi=Math.round,ii=Math.floor,wt=e=>({x:e,y:e}),Pw={left:"right",right:"left",bottom:"top",top:"bottom"},kw={start:"end",end:"start"};function aa(e,t,n){return Fe(e,pn(t,n))}function It(e,t){return typeof e=="function"?e(t):e}function Ft(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function gu(e){return e==="x"?"y":"x"}function yu(e){return e==="y"?"height":"width"}function hn(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function xu(e){return gu(hn(e))}function Nw(e,t,n){n===void 0&&(n=!1);const r=Or(e),o=xu(e),i=yu(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ki(s)),[s,Ki(s)]}function Tw(e){const t=Ki(e);return[ua(e),t,ua(t)]}function ua(e){return e.replace(/start|end/g,t=>kw[t])}function Rw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Aw(e,t,n,r){const o=Or(e);let i=Rw(Ft(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ua)))),i}function Ki(e){return e.replace(/left|right|bottom|top/g,t=>Pw[t])}function bw(e){return{top:0,right:0,bottom:0,left:0,...e}}function om(e){return typeof e!="number"?bw(e):{top:e,right:e,bottom:e,left:e}}function qi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gd(e,t,n){let{reference:r,floating:o}=e;const i=hn(t),s=xu(t),l=yu(s),a=Ft(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let y;switch(a){case"top":y={x:d,y:r.y-o.height};break;case"bottom":y={x:d,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-o.width,y:f};break;default:y={x:r.x,y:r.y}}switch(Or(t)){case"start":y[s]-=m*(n&&u?-1:1);break;case"end":y[s]+=m*(n&&u?-1:1);break}return y}const Ow=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=gd(u,r,a),m=r,y={},w=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=It(e,t)||{};if(u==null)return{};const f=om(d),m={x:n,y:r},y=xu(o),w=yu(y),g=await s.getDimensions(u),S=y==="y",p=S?"top":"left",c=S?"bottom":"right",v=S?"clientHeight":"clientWidth",C=i.reference[w]+i.reference[y]-m[y]-i.floating[w],E=m[y]-i.reference[y],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=P?P[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(P)))&&(k=l.floating[v]||i.floating[w]);const T=C/2-E/2,M=k/2-g[w]/2-1,O=pn(f[p],M),z=pn(f[c],M),L=O,B=k-g[w]-z,j=k/2-g[w]/2+T,Q=aa(L,j,B),U=!a.arrow&&Or(o)!=null&&j!==Q&&i.reference[w]/2-(jj<=0)){var z,L;const j=(((z=i.flip)==null?void 0:z.index)||0)+1,Q=k[j];if(Q)return{data:{index:j,overflows:O},reset:{placement:Q}};let U=(L=O.filter(W=>W.overflows[0]<=0).sort((W,R)=>W.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!U)switch(y){case"bestFit":{var B;const W=(B=O.filter(R=>{if(P){const b=hn(R.placement);return b===c||b==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(b=>b>0).reduce((b,D)=>b+D,0)]).sort((R,b)=>R[1]-b[1])[0])==null?void 0:B[0];W&&(U=W);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function yd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xd(e){return Ew.some(t=>e[t]>=0)}const Mw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=It(e,t);switch(r){case"referenceHidden":{const i=await ko(t,{...o,elementContext:"reference"}),s=yd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xd(s)}}}case"escaped":{const i=await ko(t,{...o,altBoundary:!0}),s=yd(i,n.floating);return{data:{escapedOffsets:s,escaped:xd(s)}}}default:return{}}}}};async function Lw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ft(n),l=Or(n),a=hn(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&a?-1:1,f=It(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(y=l==="end"?w*-1:w),a?{x:y*d,y:m*u}:{x:m*u,y:y*d}}const Dw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Lw(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Iw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:S=>{let{x:p,y:c}=S;return{x:p,y:c}}},...a}=It(e,t),u={x:n,y:r},d=await ko(t,a),f=hn(Ft(o)),m=gu(f);let y=u[m],w=u[f];if(i){const S=m==="y"?"top":"left",p=m==="y"?"bottom":"right",c=y+d[S],v=y-d[p];y=aa(c,y,v)}if(s){const S=f==="y"?"top":"left",p=f==="y"?"bottom":"right",c=w+d[S],v=w-d[p];w=aa(c,w,v)}const g=l.fn({...t,[m]:y,[f]:w});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[f]:s}}}}}},Fw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=It(e,t),d={x:n,y:r},f=hn(o),m=gu(f);let y=d[m],w=d[f];const g=It(l,t),S=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const v=m==="y"?"height":"width",C=i.reference[m]-i.floating[v]+S.mainAxis,E=i.reference[m]+i.reference[v]-S.mainAxis;yE&&(y=E)}if(u){var p,c;const v=m==="y"?"width":"height",C=["top","left"].includes(Ft(o)),E=i.reference[f]-i.floating[v]+(C&&((p=s.offset)==null?void 0:p[f])||0)+(C?0:S.crossAxis),P=i.reference[f]+i.reference[v]+(C?0:((c=s.offset)==null?void 0:c[f])||0)-(C?S.crossAxis:0);wP&&(w=P)}return{[m]:y,[f]:w}}}},zw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=It(e,t),d=await ko(t,u),f=Ft(o),m=Or(o),y=hn(o)==="y",{width:w,height:g}=i.floating;let S,p;f==="top"||f==="bottom"?(S=f,p=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=f,S=m==="end"?"top":"bottom");const c=g-d.top-d.bottom,v=w-d.left-d.right,C=pn(g-d[S],c),E=pn(w-d[p],v),P=!t.middlewareData.shift;let k=C,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=c),P&&!m){const O=Fe(d.left,0),z=Fe(d.right,0),L=Fe(d.top,0),B=Fe(d.bottom,0);y?T=w-2*(O!==0||z!==0?O+z:Fe(d.left,d.right)):k=g-2*(L!==0||B!==0?L+B:Fe(d.top,d.bottom))}await a({...t,availableWidth:T,availableHeight:k});const M=await s.getDimensions(l.floating);return w!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Cs(){return typeof window<"u"}function _r(e){return im(e)?(e.nodeName||"").toLowerCase():"#document"}function Ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(im(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function im(e){return Cs()?e instanceof Node||e instanceof Ue(e).Node:!1}function ct(e){return Cs()?e instanceof Element||e instanceof Ue(e).Element:!1}function Ct(e){return Cs()?e instanceof HTMLElement||e instanceof Ue(e).HTMLElement:!1}function wd(e){return!Cs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ue(e).ShadowRoot}function Lo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $w(e){return["table","td","th"].includes(_r(e))}function Es(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wu(e){const t=Su(),n=ct(e)?dt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Uw(e){let t=mn(e);for(;Ct(t)&&!Pr(t);){if(wu(t))return t;if(Es(t))return null;t=mn(t)}return null}function Su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pr(e){return["html","body","#document"].includes(_r(e))}function dt(e){return Ue(e).getComputedStyle(e)}function Ps(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(_r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wd(e)&&e.host||Et(e);return wd(t)?t.host:t}function sm(e){const t=mn(e);return Pr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(t)&&Lo(t)?t:sm(t)}function No(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ue(o);if(i){const l=ca(s);return t.concat(s,s.visualViewport||[],Lo(o)?o:[],l&&n?No(l):[])}return t.concat(o,No(o,[],n))}function ca(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lm(e){const t=dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ct(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Gi(n)!==i||Gi(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Cu(e){return ct(e)?e:e.contextElement}function sr(e){const t=Cu(e);if(!Ct(t))return wt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=lm(t);let s=(i?Gi(n.width):n.width)/r,l=(i?Gi(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Vw=wt(0);function am(e){const t=Ue(e);return!Su()||!t.visualViewport?Vw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ue(e)?!1:t}function In(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cu(e);let s=wt(1);t&&(r?ct(r)&&(s=sr(r)):s=sr(e));const l=Bw(i,n,r)?am(i):wt(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const m=Ue(i),y=r&&ct(r)?Ue(r):r;let w=m,g=ca(w);for(;g&&r&&y!==w;){const S=sr(g),p=g.getBoundingClientRect(),c=dt(g),v=p.left+(g.clientLeft+parseFloat(c.paddingLeft))*S.x,C=p.top+(g.clientTop+parseFloat(c.paddingTop))*S.y;a*=S.x,u*=S.y,d*=S.x,f*=S.y,a+=v,u+=C,w=Ue(g),g=ca(w)}}return qi({width:d,height:f,x:a,y:u})}function Eu(e,t){const n=Ps(e).scrollLeft;return t?t.left+n:In(Et(e)).left+n}function um(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Eu(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Hw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Et(r),l=t?Es(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=wt(1);const d=wt(0),f=Ct(r);if((f||!f&&!i)&&((_r(r)!=="body"||Lo(s))&&(a=Ps(r)),Ct(r))){const y=In(r);u=sr(r),d.x=y.x+r.clientLeft,d.y=y.y+r.clientTop}const m=s&&!f&&!i?um(s,a,!0):wt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function Ww(e){return Array.from(e.getClientRects())}function Qw(e){const t=Et(e),n=Ps(e),r=e.ownerDocument.body,o=Fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Eu(e);const l=-n.scrollTop;return dt(r).direction==="rtl"&&(s+=Fe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Gw(e,t){const n=Ue(e),r=Et(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=Su();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function Kw(e,t){const n=In(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ct(e)?sr(e):wt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Sd(e,t,n){let r;if(t==="viewport")r=Gw(e,n);else if(t==="document")r=Qw(Et(e));else if(ct(t))r=Kw(t,n);else{const o=am(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qi(r)}function cm(e,t){const n=mn(e);return n===t||!ct(n)||Pr(n)?!1:dt(n).position==="fixed"||cm(n,t)}function qw(e,t){const n=t.get(e);if(n)return n;let r=No(e,[],!1).filter(l=>ct(l)&&_r(l)!=="body"),o=null;const i=dt(e).position==="fixed";let s=i?mn(e):e;for(;ct(s)&&!Pr(s);){const l=dt(s),a=wu(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lo(s)&&!a&&cm(e,s))?r=r.filter(d=>d!==s):o=l,s=mn(s)}return t.set(e,r),r}function Yw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Es(t)?[]:qw(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const f=Sd(t,d,o);return u.top=Fe(f.top,u.top),u.right=pn(f.right,u.right),u.bottom=pn(f.bottom,u.bottom),u.left=Fe(f.left,u.left),u},Sd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Xw(e){const{width:t,height:n}=lm(e);return{width:t,height:n}}function Jw(e,t,n){const r=Ct(t),o=Et(t),i=n==="fixed",s=In(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=wt(0);if(r||!r&&!i)if((_r(t)!=="body"||Lo(o))&&(l=Ps(t)),r){const m=In(t,!0,i,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else o&&(a.x=Eu(o));const u=o&&!r&&!i?um(o,l):wt(0),d=s.left+l.scrollLeft-a.x-u.x,f=s.top+l.scrollTop-a.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function al(e){return dt(e).position==="static"}function Cd(e,t){if(!Ct(e)||dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Et(e)===n&&(n=n.ownerDocument.body),n}function dm(e,t){const n=Ue(e);if(Es(e))return n;if(!Ct(e)){let o=mn(e);for(;o&&!Pr(o);){if(ct(o)&&!al(o))return o;o=mn(o)}return n}let r=Cd(e,t);for(;r&&$w(r)&&al(r);)r=Cd(r,t);return r&&Pr(r)&&al(r)&&!wu(r)?n:r||Uw(e)||n}const Zw=async function(e){const t=this.getOffsetParent||dm,n=this.getDimensions,r=await n(e.floating);return{reference:Jw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function e1(e){return dt(e).direction==="rtl"}const t1={convertOffsetParentRelativeRectToViewportRelativeRect:Hw,getDocumentElement:Et,getClippingRect:Yw,getOffsetParent:dm,getElementRects:Zw,getClientRects:Ww,getDimensions:Xw,getScale:sr,isElement:ct,isRTL:e1};function fm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function n1(e,t){let n=null,r;const o=Et(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:y}=u;if(l||t(),!m||!y)return;const w=ii(f),g=ii(o.clientWidth-(d+m)),S=ii(o.clientHeight-(f+y)),p=ii(d),v={rootMargin:-w+"px "+-g+"px "+-S+"px "+-p+"px",threshold:Fe(0,pn(1,a))||1};let C=!0;function E(P){const k=P[0].intersectionRatio;if(k!==a){if(!C)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!fm(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return s(!0),i}function r1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Cu(e),d=o||i?[...u?No(u):[],...No(t)]:[];d.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),i&&p.addEventListener("resize",n)});const f=u&&l?n1(u,n):null;let m=-1,y=null;s&&(y=new ResizeObserver(p=>{let[c]=p;c&&c.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let w,g=a?In(e):null;a&&S();function S(){const p=In(e);g&&!fm(g,p)&&n(),g=p,w=requestAnimationFrame(S)}return n(),()=>{var p;d.forEach(c=>{o&&c.removeEventListener("scroll",n),i&&c.removeEventListener("resize",n)}),f==null||f(),(p=y)==null||p.disconnect(),y=null,a&&cancelAnimationFrame(w)}}const o1=Dw,i1=Iw,s1=jw,l1=zw,a1=Mw,Ed=_w,u1=Fw,c1=(e,t,n)=>{const r=new Map,o={platform:t1,...n},i={...o.platform,_c:r};return Ow(e,t,{...o,platform:i})};var wi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Yi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Yi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Yi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function pm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pd(e,t){const n=pm(e);return Math.round(t*n)/n}function ul(e){const t=x.useRef(e);return wi(()=>{t.current=e}),t}function d1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=x.useState(r);Yi(m,r)||y(r);const[w,g]=x.useState(null),[S,p]=x.useState(null),c=x.useCallback(R=>{R!==P.current&&(P.current=R,g(R))},[]),v=x.useCallback(R=>{R!==k.current&&(k.current=R,p(R))},[]),C=i||w,E=s||S,P=x.useRef(null),k=x.useRef(null),T=x.useRef(d),M=a!=null,O=ul(a),z=ul(o),L=ul(u),B=x.useCallback(()=>{if(!P.current||!k.current)return;const R={placement:t,strategy:n,middleware:m};z.current&&(R.platform=z.current),c1(P.current,k.current,R).then(b=>{const D={...b,isPositioned:L.current!==!1};j.current&&!Yi(T.current,D)&&(T.current=D,Mo.flushSync(()=>{f(D)}))})},[m,t,n,z,L]);wi(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const j=x.useRef(!1);wi(()=>(j.current=!0,()=>{j.current=!1}),[]),wi(()=>{if(C&&(P.current=C),E&&(k.current=E),C&&E){if(O.current)return O.current(C,E,B);B()}},[C,E,B,O,M]);const Q=x.useMemo(()=>({reference:P,floating:k,setReference:c,setFloating:v}),[c,v]),U=x.useMemo(()=>({reference:C,floating:E}),[C,E]),W=x.useMemo(()=>{const R={position:n,left:0,top:0};if(!U.floating)return R;const b=Pd(U.floating,d.x),D=Pd(U.floating,d.y);return l?{...R,transform:"translate("+b+"px, "+D+"px)",...pm(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:b,top:D}},[n,l,U.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:B,refs:Q,elements:U,floatingStyles:W}),[d,B,Q,U,W])}const f1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ed({element:r.current,padding:o}).fn(n):{}:r?Ed({element:r,padding:o}).fn(n):{}}}},p1=(e,t)=>({...o1(e),options:[e,t]}),h1=(e,t)=>({...i1(e),options:[e,t]}),m1=(e,t)=>({...u1(e),options:[e,t]}),v1=(e,t)=>({...s1(e),options:[e,t]}),g1=(e,t)=>({...l1(e),options:[e,t]}),y1=(e,t)=>({...a1(e),options:[e,t]}),x1=(e,t)=>({...f1(e),options:[e,t]});var w1="Arrow",hm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return h.jsx(fe.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});hm.displayName=w1;var S1=hm;function C1(e){const[t,n]=x.useState(void 0);return Dt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var mm="Popper",[vm,gm]=Ar(mm),[WS,ym]=vm(mm),xm="PopperAnchor",wm=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ym(xm,n),s=x.useRef(null),l=Be(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:h.jsx(fe.div,{...o,ref:l})});wm.displayName=xm;var Pu="PopperContent",[E1,P1]=vm(Pu),Sm=x.forwardRef((e,t)=>{var wn,ju,Mu,Lu,Du,Iu;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:w,...g}=e,S=ym(Pu,n),[p,c]=x.useState(null),v=Be(t,Mr=>c(Mr)),[C,E]=x.useState(null),P=C1(C),k=(P==null?void 0:P.width)??0,T=(P==null?void 0:P.height)??0,M=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],L=z.length>0,B={padding:O,boundary:z.filter(N1),altBoundary:L},{refs:j,floatingStyles:Q,placement:U,isPositioned:W,middlewareData:R}=d1({strategy:"fixed",placement:M,whileElementsMounted:(...Mr)=>r1(...Mr,{animationFrame:y==="always"}),elements:{reference:S.anchor},middleware:[p1({mainAxis:o+T,alignmentAxis:s}),a&&h1({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?m1():void 0,...B}),a&&v1({...B}),g1({...B,apply:({elements:Mr,rects:Fu,availableWidth:nv,availableHeight:rv})=>{const{width:ov,height:iv}=Fu.reference,Io=Mr.floating.style;Io.setProperty("--radix-popper-available-width",`${nv}px`),Io.setProperty("--radix-popper-available-height",`${rv}px`),Io.setProperty("--radix-popper-anchor-width",`${ov}px`),Io.setProperty("--radix-popper-anchor-height",`${iv}px`)}}),C&&x1({element:C,padding:l}),T1({arrowWidth:k,arrowHeight:T}),m&&y1({strategy:"referenceHidden",...B})]}),[b,D]=Pm(U),$=St(w);Dt(()=>{W&&($==null||$())},[W,$]);const Z=(wn=R.arrow)==null?void 0:wn.x,et=(ju=R.arrow)==null?void 0:ju.y,Qe=((Mu=R.arrow)==null?void 0:Mu.centerOffset)!==0,[jr,Pt]=x.useState();return Dt(()=>{p&&Pt(window.getComputedStyle(p).zIndex)},[p]),h.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:W?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jr,"--radix-popper-transform-origin":[(Lu=R.transformOrigin)==null?void 0:Lu.x,(Du=R.transformOrigin)==null?void 0:Du.y].join(" "),...((Iu=R.hide)==null?void 0:Iu.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(E1,{scope:n,placedSide:b,onArrowChange:E,arrowX:Z,arrowY:et,shouldHideArrow:Qe,children:h.jsx(fe.div,{"data-side":b,"data-align":D,...g,ref:v,style:{...g.style,animation:W?void 0:"none"}})})})});Sm.displayName=Pu;var Cm="PopperArrow",k1={top:"bottom",right:"left",bottom:"top",left:"right"},Em=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=P1(Cm,r),s=k1[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(S1,{...o,ref:n,style:{...o.style,display:"block"}})})});Em.displayName=Cm;function N1(e){return e!==null}var T1=e=>({name:"transformOrigin",options:e,fn(t){var S,p,c;const{placement:n,rects:r,middlewareData:o}=t,s=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=Pm(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((p=o.arrow)==null?void 0:p.x)??0)+l/2,y=(((c=o.arrow)==null?void 0:c.y)??0)+a/2;let w="",g="";return u==="bottom"?(w=s?f:`${m}px`,g=`${-a}px`):u==="top"?(w=s?f:`${m}px`,g=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,g=s?f:`${y}px`):u==="left"&&(w=`${r.floating.width+a}px`,g=s?f:`${y}px`),{data:{x:w,y:g}}}});function Pm(e){const[t,n="center"]=e.split("-");return[t,n]}var R1=wm,A1=Sm,b1=Em,[ks,QS]=Ar("Tooltip",[gm]),ku=gm(),km="TooltipProvider",O1=700,kd="tooltip.open",[_1,Nm]=ks(km),Tm=e=>{const{__scopeTooltip:t,delayDuration:n=O1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),h.jsx(_1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Tm.displayName=km;var Rm="Tooltip",[GS,Ns]=ks(Rm),da="TooltipTrigger",j1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ns(da,n),i=Nm(da,n),s=ku(n),l=x.useRef(null),a=Be(t,l,o.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(R1,{asChild:!0,...s,children:h.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:le(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:le(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:le(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:le(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:le(e.onBlur,o.onClose),onClick:le(e.onClick,o.onClose)})})});j1.displayName=da;var M1="TooltipPortal",[KS,L1]=ks(M1,{forceMount:void 0}),kr="TooltipContent",Am=x.forwardRef((e,t)=>{const n=L1(kr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Ns(kr,e.__scopeTooltip);return h.jsx(gs,{present:r||s.open,children:s.disableHoverableContent?h.jsx(bm,{side:o,...i,ref:t}):h.jsx(D1,{side:o,...i,ref:t})})}),D1=x.forwardRef((e,t)=>{const n=Ns(kr,e.__scopeTooltip),r=Nm(kr,e.__scopeTooltip),o=x.useRef(null),i=Be(t,o),[s,l]=x.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,m=x.useCallback(()=>{l(null),f(!1)},[f]),y=x.useCallback((w,g)=>{const S=w.currentTarget,p={x:w.clientX,y:w.clientY},c=U1(p,S.getBoundingClientRect()),v=V1(p,c),C=B1(g.getBoundingClientRect()),E=W1([...v,...C]);l(E),f(!0)},[f]);return x.useEffect(()=>()=>m(),[m]),x.useEffect(()=>{if(a&&d){const w=S=>y(S,d),g=S=>y(S,a);return a.addEventListener("pointerleave",w),d.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",g)}}},[a,d,y,m]),x.useEffect(()=>{if(s){const w=g=>{const S=g.target,p={x:g.clientX,y:g.clientY},c=(a==null?void 0:a.contains(S))||(d==null?void 0:d.contains(S)),v=!H1(p,s);c?m():v&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,d,s,u,m]),h.jsx(bm,{...e,ref:i})}),[I1,F1]=ks(Rm,{isInside:!1}),z1=H0("TooltipContent"),bm=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Ns(kr,n),u=ku(n),{onClose:d}=a;return x.useEffect(()=>(document.addEventListener(kd,d),()=>document.removeEventListener(kd,d)),[d]),x.useEffect(()=>{if(a.trigger){const f=m=>{const y=m.target;y!=null&&y.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),h.jsx(fu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:h.jsxs(A1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(z1,{children:r}),h.jsx(I1,{scope:n,isInside:!0,children:h.jsx(cx,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Am.displayName=kr;var Om="TooltipArrow",$1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ku(n);return F1(Om,n).isInside?null:h.jsx(b1,{...o,...r,ref:t})});$1.displayName=Om;function U1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function V1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function B1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function H1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(u-l)*(r-a)/(d-a)+l&&(o=!o)}return o}function W1(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Q1(t)}function Q1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var G1=Tm,_m=Am;const K1=G1,q1=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(_m,{ref:r,sideOffset:t,className:ye("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 origin-[--radix-tooltip-content-transform-origin]",e),...n}));q1.displayName=_m.displayName;const Y1=Hh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground border border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Do=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?V0:"button";return h.jsx(s,{className:ye(Y1({variant:t,size:n,className:e})),ref:i,...o})});Do.displayName="Button";function X1({logo:e,title:t,highlightedWord:n,videoUrl:r,ctaText:o,onCtaClick:i,badge:s}){var l;return h.jsxs("section",{className:"relative flex flex-col items-center justify-start bg-background",children:[h.jsx("div",{className:"w-full bg-primary py-3 overflow-hidden",children:h.jsxs("div",{className:"inline-flex animate-marquee gap-8",children:[h.jsxs("div",{className:"flex whitespace-nowrap gap-8",children:[h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"DESCONTO SOMENTE HOJE"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"COMECE A GANHAR MAIS"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"ACESSE AGORA"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"PLATAFORMA 100% FUNCIONAL"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"})]}),h.jsxs("div",{className:"flex whitespace-nowrap gap-8",children:[h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"DESCONTO SOMENTE HOJE"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"COMECE A GANHAR MAIS"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"ACESSE AGORA"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"PLATAFORMA 100% FUNCIONAL"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"})]}),h.jsxs("div",{className:"flex whitespace-nowrap gap-8",children:[h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"DESCONTO SOMENTE HOJE"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"COMECE A GANHAR MAIS"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"ACESSE AGORA"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"PLATAFORMA 100% FUNCIONAL"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"})]}),h.jsxs("div",{className:"flex whitespace-nowrap gap-8",children:[h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"DESCONTO SOMENTE HOJE"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"COMECE A GANHAR MAIS"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"ACESSE AGORA"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"PLATAFORMA 100% FUNCIONAL"}),h.jsx("span",{className:"text-sm md:text-base font-bold text-primary-foreground",children:"•"})]})]})}),h.jsxs("div",{className:"w-full max-w-3xl mx-auto text-center space-y-4 md:space-y-3 px-4 pt-8 md:pt-12 pb-0 md:pb-8",children:[s&&h.jsx("div",{className:"inline-block mb-3 md:mb-4",children:h.jsx("div",{className:"bg-destructive text-destructive-foreground px-6 py-2 text-sm font-bold uppercase tracking-wide",children:s})}),h.jsx("div",{className:"flex justify-center mb-2",children:h.jsx("img",{src:e,alt:"True Shot Logo",className:"w-28 h-28 md:w-40 md:h-40 object-contain","data-testid":"img-logo"})}),h.jsxs("h1",{className:"text-3xl md:text-4xl font-bold text-foreground leading-tight mb-4",children:[t,h.jsx("br",{}),h.jsx("span",{className:"text-primary","data-testid":"text-highlight",children:n})]}),r&&h.jsx("div",{className:"relative w-full rounded-2xl overflow-hidden shadow-2xl border border-primary mb-4",style:{aspectRatio:"4/3"},children:r.includes("vimeo.com")?h.jsx("iframe",{src:`https://player.vimeo.com/video/${(l=r.match(/vimeo\.com\/(\d+)/))==null?void 0:l[1]}?badge=0&autopause=0&player_id=0&app_id=58479&quality=1080p`,className:"absolute top-0 left-0 w-full h-full",frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture; clipboard-write",allowFullScreen:!0,title:"Vídeo da Plataforma","data-testid":"video-demo"}):h.jsxs("video",{controls:!0,className:"w-full h-full object-cover",poster:"/api/placeholder/800/450","data-testid":"video-demo",children:[h.jsx("source",{src:r,type:"video/mp4"}),"Seu navegador não suporta vídeos."]})}),h.jsx("div",{className:"pt-3 md:pt-2",children:h.jsx(Do,{size:"default",className:"text-sm md:text-base px-8 md:px-10 py-2 md:py-3 font-bold uppercase tracking-wide rounded-lg transition-all duration-300 hover:shadow-[0_0_20px_rgba(59,130,246,0.6)] hover:scale-105",onClick:i,"data-testid":"button-cta-hero",children:o})})]})]})}function J1({title:e,highlightedWord:t,subtitle:n,benefits:r,ctaText:o="VER OFERTAS",onCtaClick:i}){return h.jsx("section",{className:"pt-14 pb-32 md:pt-8 md:pb-48 px-4 bg-background",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-1 md:mb-4",children:[e,h.jsx("br",{}),h.jsx("span",{className:"text-primary","data-testid":"text-benefits-highlight",children:t})]}),h.jsx("p",{className:"text-center text-2xl md:text-3xl font-bold text-primary mb-6 md:mb-12",children:n}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:r.map((s,l)=>h.jsxs("div",{className:"bg-card border border-card-border rounded-lg p-8 flex flex-col items-center transition-all duration-300 hover:border-primary hover:shadow-xl hover:shadow-primary/30 hover:scale-[1.03]","data-testid":`card-benefit-${l}`,children:[h.jsx("div",{className:"w-full h-80 md:h-96 rounded-md overflow-hidden bg-card flex items-center justify-center mb-6",children:h.jsx("img",{src:s.image,alt:s.title,className:"w-full h-full object-contain","data-testid":`img-benefit-${l}`})}),h.jsx("p",{className:"text-foreground text-center font-medium leading-relaxed text-base",children:s.description})]},l))}),i&&h.jsx("div",{className:"flex justify-center mt-12",children:h.jsx(Do,{size:"lg",className:"font-bold uppercase px-12 transition-transform duration-300 hover:scale-105",onClick:i,"data-testid":"button-see-offers",children:o})})]})})}function Z1({title:e,highlightedWords:t,videoUrl:n}){return h.jsx("section",{className:"pt-0 pb-32 md:pt-8 md:pb-48 px-4 bg-background",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-3 md:mb-12",children:[e," ",h.jsx("span",{className:"text-primary","data-testid":"text-testimonials-highlight",children:t})]}),h.jsx("div",{className:"w-full max-w-2xl mx-auto rounded-lg overflow-hidden shadow-2xl aspect-square bg-muted transition-all duration-300 hover:shadow-[0_0_30px_rgba(59,130,246,0.5)] hover:scale-[1.02] mt-8 md:mt-16",children:h.jsx("iframe",{src:"https://player.vimeo.com/video/1132661489?h=d0e6f3e3f5&badge=0&autopause=0&player_id=0&app_id=58479&quality=1080p",className:"w-full h-full",frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture; clipboard-write",title:"Depoimentos","data-testid":"video-testimonials"})})]})})}function eS({title:e,highlightedWord:t,plans:n,onSelectPlan:r}){const o=()=>new Date().toLocaleDateString("pt-BR",{timeZone:"America/Sao_Paulo",day:"2-digit",month:"2-digit",year:"numeric"});return h.jsx("section",{className:"pt-0 pb-4 md:pt-48 md:pb-8 px-4 bg-background",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("div",{className:"bg-primary text-primary-foreground text-center py-3 px-4 font-bold uppercase text-xs md:text-sm mb-6 rounded-lg","data-testid":"banner-offer-date",children:["OFERTA"," ",h.jsx("span",{className:"text-[#00FF00] animate-pulse",children:"BLACKFRIDAY"})," ","VÁLIDA SOMENTE PRO DIA ",o()]}),h.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-3 md:mb-12",children:[e," ",h.jsx("span",{className:"text-primary","data-testid":"text-pricing-highlight",children:t})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:n.map((i,s)=>h.jsxs("div",{className:`bg-card border-2 rounded-xl overflow-hidden transition-all duration-300 ${i.highlighted?"border-primary shadow-lg shadow-primary/20 hover:shadow-2xl hover:shadow-primary/40":"border-card-border hover:shadow-xl hover:shadow-primary/30"}`,"data-testid":`card-plan-${s}`,children:[i.badge&&h.jsx("div",{className:"bg-primary text-primary-foreground text-center py-2 px-4 font-bold uppercase text-sm",children:i.badge}),h.jsxs("div",{className:"p-8 space-y-6",children:[h.jsx("h3",{className:"text-2xl font-bold text-foreground text-center",children:i.name}),i.image&&h.jsx("div",{className:"flex justify-center",children:h.jsx("img",{src:i.image,alt:i.name,className:"w-full max-w-md h-auto","data-testid":`img-plan-${s}`})}),h.jsxs("div",{className:"text-center space-y-2",children:[i.originalPrice&&h.jsxs("p",{className:"text-destructive line-through text-sm font-medium",children:["DE ",i.originalPrice," POR APENAS"]}),h.jsx("p",{className:"text-5xl font-black text-chart-2",children:i.price}),i.savings&&h.jsxs("p",{className:"text-chart-2 text-sm font-bold",children:["Você economiza ",i.savings]}),h.jsx("p",{className:"text-muted-foreground text-sm",children:i.paymentType})]}),h.jsx("div",{className:"space-y-3",children:i.features.map((l,a)=>h.jsxs("div",{className:`flex items-center gap-3 p-3 rounded-lg border transition-all duration-300 cursor-default ${l.included?"border-chart-2/20 bg-chart-2/5 hover:border-chart-2 hover:shadow-md hover:shadow-chart-2/30 hover:scale-[1.02]":"border-destructive/20 bg-destructive/5 hover:border-destructive hover:shadow-md hover:shadow-destructive/20 hover:scale-[1.02]"}`,"data-testid":`feature-${s}-${a}`,children:[l.included?h.jsx(jx,{className:`w-5 h-5 flex-shrink-0 ${l.highlighted?"text-destructive":"text-chart-2"}`}):h.jsx(Qh,{className:"w-5 h-5 text-destructive flex-shrink-0"}),h.jsx("span",{className:l.included?"text-foreground font-medium":"text-muted-foreground",children:l.name})]},a))}),h.jsx(Do,{size:"lg",className:"w-full font-bold uppercase transition-transform duration-300 hover:scale-105 animate-pulse-border",variant:i.highlighted?"default":"secondary",onClick:()=>r(i.name),"data-testid":`button-select-plan-${s}`,children:i.ctaText}),s===0&&h.jsxs("div",{className:"bg-destructive/10 border-2 border-destructive rounded-lg p-4 flex items-center justify-center gap-2 animate-pulse","data-testid":"alert-better-offer",children:[h.jsx("p",{className:"text-destructive font-bold text-sm text-center",children:"Existe uma oferta mais vantajosa abaixo"}),h.jsx(_x,{className:"w-5 h-5 text-destructive flex-shrink-0 animate-bounce"})]})]})]},s))})]})})}function tS({title:e,highlightedNumber:t,subtitle:n,paths:r,ctaText:o,onCtaClick:i}){return h.jsx("section",{className:"pt-24 pb-16 md:pt-36 md:pb-24 px-4 bg-background",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-3 md:mb-12",children:[e," ",h.jsx("span",{className:"text-destructive","data-testid":"text-paths-highlight",children:t})," ",n]}),h.jsx("div",{className:"space-y-6",children:r.map((s,l)=>h.jsx("div",{className:`p-6 rounded-xl border-2 transition-all duration-300 ${s.variant==="negative"?"border-destructive/50 bg-destructive/5 hover:border-destructive hover:shadow-lg hover:shadow-destructive/20 hover:scale-[1.02]":"border-chart-2/50 bg-chart-2/5 hover:border-chart-2 hover:shadow-lg hover:shadow-chart-2/20 hover:scale-[1.02]"}`,"data-testid":`card-path-${l}`,children:h.jsxs("div",{className:"space-y-3",children:[h.jsx("h3",{className:`text-3xl font-black ${s.variant==="negative"?"text-destructive":"text-chart-2"}`,children:s.number}),h.jsx("p",{className:"text-foreground text-lg leading-relaxed",children:s.description})]})},l))})]})})}var Nu="Collapsible",[nS,jm]=Ar(Nu),[rS,Tu]=nS(Nu),Mm=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...l}=e,[a=!1,u]=ys({prop:r,defaultProp:o,onChange:s});return h.jsx(rS,{scope:n,disabled:i,contentId:rm(),open:a,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),children:h.jsx(fe.div,{"data-state":Au(a),"data-disabled":i?"":void 0,...l,ref:t})})});Mm.displayName=Nu;var Lm="CollapsibleTrigger",Dm=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Tu(Lm,n);return h.jsx(fe.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Au(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:le(e.onClick,o.onOpenToggle)})});Dm.displayName=Lm;var Ru="CollapsibleContent",Im=x.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tu(Ru,e.__scopeCollapsible);return h.jsx(gs,{present:n||o.open,children:({present:i})=>h.jsx(oS,{...r,ref:t,present:i})})});Im.displayName=Ru;var oS=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=Tu(Ru,n),[l,a]=x.useState(r),u=x.useRef(null),d=Be(t,u),f=x.useRef(0),m=f.current,y=x.useRef(0),w=y.current,g=s.open||l,S=x.useRef(g),p=x.useRef(void 0);return x.useEffect(()=>{const c=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(c)},[]),Dt(()=>{const c=u.current;if(c){p.current=p.current||{transitionDuration:c.style.transitionDuration,animationName:c.style.animationName},c.style.transitionDuration="0s",c.style.animationName="none";const v=c.getBoundingClientRect();f.current=v.height,y.current=v.width,S.current||(c.style.transitionDuration=p.current.transitionDuration,c.style.animationName=p.current.animationName),a(r)}},[s.open,r]),h.jsx(fe.div,{"data-state":Au(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:g&&o})});function Au(e){return e?"open":"closed"}var iS=Mm,sS=Dm,lS=Im,aS=x.createContext(void 0);function uS(e){const t=x.useContext(aS);return e||t||"ltr"}var $t="Accordion",cS=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bu,dS,fS]=gh($t),[Ts,qS]=Ar($t,[fS,jm]),Ou=jm(),Fm=ae.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return h.jsx(bu.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(vS,{...i,ref:t}):h.jsx(mS,{...o,ref:t})})});Fm.displayName=$t;var[zm,pS]=Ts($t),[$m,hS]=Ts($t,{collapsible:!1}),mS=ae.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[l,a]=ys({prop:n,defaultProp:r,onChange:o});return h.jsx(zm,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:a,onItemClose:ae.useCallback(()=>i&&a(""),[i,a]),children:h.jsx($m,{scope:e.__scopeAccordion,collapsible:i,children:h.jsx(Um,{...s,ref:t})})})}),vS=ae.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s=[],l]=ys({prop:n,defaultProp:r,onChange:o}),a=ae.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=ae.useCallback(d=>l((f=[])=>f.filter(m=>m!==d)),[l]);return h.jsx(zm,{scope:e.__scopeAccordion,value:s,onItemOpen:a,onItemClose:u,children:h.jsx($m,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(Um,{...i,ref:t})})})}),[gS,Rs]=Ts($t),Um=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,l=ae.useRef(null),a=Be(l,t),u=dS(n),f=uS(o)==="ltr",m=le(e.onKeyDown,y=>{var T;if(!cS.includes(y.key))return;const w=y.target,g=u().filter(M=>{var O;return!((O=M.ref.current)!=null&&O.disabled)}),S=g.findIndex(M=>M.ref.current===w),p=g.length;if(S===-1)return;y.preventDefault();let c=S;const v=0,C=p-1,E=()=>{c=S+1,c>C&&(c=v)},P=()=>{c=S-1,c{const{__scopeAccordion:n,value:r,...o}=e,i=Rs(Xi,n),s=pS(Xi,n),l=Ou(n),a=rm(),u=r&&s.value.includes(r)||!1,d=i.disabled||e.disabled;return h.jsx(yS,{scope:n,open:u,disabled:d,triggerId:a,children:h.jsx(iS,{"data-orientation":i.orientation,"data-state":Km(u),...l,...o,ref:t,disabled:d,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Vm.displayName=Xi;var Bm="AccordionHeader",Hm=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Rs($t,n),i=_u(Bm,n);return h.jsx(fe.h3,{"data-orientation":o.orientation,"data-state":Km(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Hm.displayName=Bm;var fa="AccordionTrigger",Wm=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Rs($t,n),i=_u(fa,n),s=hS(fa,n),l=Ou(n);return h.jsx(bu.ItemSlot,{scope:n,children:h.jsx(sS,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});Wm.displayName=fa;var Qm="AccordionContent",Gm=ae.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Rs($t,n),i=_u(Qm,n),s=Ou(n);return h.jsx(lS,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Gm.displayName=Qm;function Km(e){return e?"open":"closed"}var xS=Fm,wS=Vm,SS=Hm,qm=Wm,Ym=Gm;const CS=xS,Xm=x.forwardRef(({className:e,...t},n)=>h.jsx(wS,{ref:n,className:ye("border-b",e),...t}));Xm.displayName="AccordionItem";const Jm=x.forwardRef(({className:e,children:t,...n},r)=>h.jsx(SS,{className:"flex",children:h.jsxs(qm,{ref:r,className:ye("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,h.jsx(Mx,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Jm.displayName=qm.displayName;const Zm=x.forwardRef(({className:e,children:t,...n},r)=>h.jsx(Ym,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:h.jsx("div",{className:ye("pb-4 pt-0",e),children:t})}));Zm.displayName=Ym.displayName;function ES({title:e,highlightedWord:t,faqs:n,ctaText:r,onCtaClick:o}){return h.jsx("section",{className:"pt-0 pb-4 md:py-8 px-4 bg-background",children:h.jsxs("div",{className:"max-w-3xl mx-auto",children:[h.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-3 md:mb-12",children:[e," ",h.jsx("span",{className:"text-primary","data-testid":"text-faq-highlight",children:t})]}),h.jsx(CS,{type:"single",collapsible:!0,className:"space-y-4 mb-12",children:n.map((i,s)=>h.jsxs(Xm,{value:`item-${s}`,className:"bg-card border border-card-border rounded-lg px-6 transition-all duration-300 hover:border-primary hover:shadow-lg hover:shadow-primary/20 hover:scale-[1.01]","data-testid":`accordion-item-${s}`,children:[h.jsx(Jm,{className:"text-left font-semibold text-foreground hover:text-primary",children:i.question}),h.jsx(Zm,{className:"text-muted-foreground",children:i.answer})]},s))}),h.jsxs("div",{className:"space-y-8",children:[h.jsx("div",{className:"border-t border-border"}),h.jsx("div",{className:"text-center px-4",children:h.jsx(Do,{size:"default",className:"font-bold uppercase w-full max-w-xs transition-transform duration-300 hover:scale-105",onClick:o,"data-testid":"button-cta-faq",children:r})}),h.jsx("div",{className:"border-t border-border"})]})]})})}function PS({instagramHandle:e,email:t,copyrightYear:n,brandName:r}){return h.jsx("footer",{className:"py-8 px-4 bg-card border-t border-card-border",children:h.jsx("div",{className:"max-w-6xl mx-auto",children:h.jsxs("div",{className:"text-center space-y-6",children:[h.jsx("h3",{className:"text-2xl font-bold text-primary",children:"Contato"}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("a",{href:`https://instagram.com/${e.replace("@","")}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 text-foreground hover:text-primary transition-colors","data-testid":"link-instagram",children:[h.jsx(Dx,{className:"w-5 h-5"}),h.jsxs("span",{children:["Instagram: ",e]})]}),h.jsxs("a",{href:`mailto:${t}`,className:"flex items-center justify-center gap-2 text-foreground hover:text-primary transition-colors","data-testid":"link-email",children:[h.jsx(Ix,{className:"w-5 h-5"}),h.jsxs("span",{children:["Email: ",t]})]})]}),h.jsx("div",{className:"pt-6 border-t border-card-border",children:h.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",n," ",r,". Todos os direitos reservados."]})})]})})})}const kS=["João Silva","Maria Santos","Pedro Oliveira","Ana Costa","Lucas Souza","Juliana Lima","Carlos Ferreira","Beatriz Alves","Rafael Ribeiro","Amanda Martins","Felipe Rocha","Camila Barbosa","Bruno Carvalho","Larissa Gomes","Thiago Dias","Gabriela Monteiro","Rodrigo Fernandes","Isabela Cardoso","Matheus Araújo","Vitória Freitas","Daniel Castro","Mariana Teixeira","Gustavo Pereira","Carolina Mendes","André Nascimento","Letícia Correia","Leonardo Rodrigues","Rafaela Pinto","Vinícius Moreira","Fernanda Nunes","Henrique Barros","Patrícia Duarte","Marcelo Cavalcanti","Aline Campos","Diego Silva","Bruna Andrade","Fernando Costa","Sabrina Moura","Ricardo Azevedo","Júlia Ramos","Paulo Batista","Bianca Soares","Gabriel Tavares","Natália Fonseca","Igor Martins","Melissa Cunha","Roberto Vieira","Yasmin Torres","Fábio Lopes","Renata Melo","Alexandre Pires","Vanessa Nogueira","Murilo Coelho","Priscila Cruz","Caio Miranda","Adriana Machado","Leandro Borges","Tatiana Rezende","Renan Silveira","Cristina Braga","Wesley Matos","Jéssica Lacerda","Vinícius Caldeira","Larissa Viana","Guilherme Siqueira"],NS=["São Paulo - SP","Rio de Janeiro - RJ","Belo Horizonte - MG","Brasília - DF","Salvador - BA","Fortaleza - CE","Manaus - AM","Curitiba - PR","Recife - PE","Porto Alegre - RS","Goiânia - GO","Belém - PA","Guarulhos - SP","Campinas - SP","São Luís - MA","São Gonçalo - RJ","Maceió - AL","Duque de Caxias - RJ","Natal - RN","Campo Grande - MS","Teresina - PI","São Bernardo - SP","João Pessoa - PB","Santo André - SP","Osasco - SP","Jaboatão - PE","Ribeirão Preto - SP","Uberlândia - MG","Sorocaba - SP","Contagem - MG","Aracaju - SE","Feira de Santana - BA","Cuiabá - MT","Joinville - SC","Juiz de Fora - MG","Londrina - PR","Aparecida de Goiânia - GO","Niterói - RJ","Ananindeua - PA","Belford Roxo - RJ"],TS=[{name:"Plano Comum",color:"text-chart-2"},{name:"Plano Lendário",color:"text-primary"}];function RS(){const[e,t]=x.useState(!1),[n,r]=x.useState({name:"",city:"",plan:{name:"",color:""},time:""}),o=l=>l[Math.floor(Math.random()*l.length)],i=()=>{const l=Math.floor(Math.random()*59)+1;return`há ${l} ${l===1?"minuto":"minutos"}`},s=()=>{r({name:o(kS),city:o(NS),plan:o(TS),time:i()})};return x.useEffect(()=>{const l=()=>{s(),t(!0),setTimeout(()=>{t(!1)},6e3)},a=setTimeout(()=>{l();const u=setInterval(()=>{l()},15e3);return()=>clearInterval(u)},3e3);return()=>clearTimeout(a)},[]),e?h.jsx("div",{className:`fixed top-4 right-4 z-50 transition-all duration-500 ${e?"translate-x-0 opacity-100":"translate-x-full opacity-0"}`,"data-testid":"notification-purchase",children:h.jsx("div",{className:"bg-card border border-primary rounded-lg shadow-lg shadow-primary/20 p-3 max-w-xs",children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"bg-primary/10 rounded-full p-1.5 flex-shrink-0",children:h.jsx(Fx,{className:"w-4 h-4 text-primary","data-testid":"icon-cart"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"font-bold text-foreground text-xs truncate","data-testid":"text-notification-name",children:n.name}),h.jsxs("p",{className:"text-xs","data-testid":"text-notification-plan",children:["Comprou o"," ",h.jsx("span",{className:`font-bold ${n.plan.color}`,children:n.plan.name})]})]})]})})}):null}const AS="/venda/assets/a-hyperrealistic-3d-logo-inspired-by-cla_-EvbL0NRTa2CeOhLKkgjTw_ctgWLSzPR9Od_ziuEWfsYQ%20(2)%20(1)%20(1)%20(1)%20(1)_1761936349591-vlu2a3iN.png",bS="/venda/assets/Sem%20nome%20(1080%20x%201920%20px)%20(3000%20x%203000%20px)%20(4)%20(1)_1763005904387-lsOBcXMZ.png",OS="/venda/assets/Sem%20nome%20(1080%20x%201920%20px)%20(3000%20x%203000%20px)%20(3)%20(1)_1763003975636-D42cppVf.png",_S="/venda/assets/Proposta%20Comercial%20(400%20x%20300%20px)%20(1920%20x%201080%20px)%20(2)_1761944479665-CsiF-JDf.png",jS="/venda/assets/Proposta%20Comercial%20(400%20x%20300%20px)%20(1920%20x%201080%20px)%20(1)%20(2)_1761944822464-CVcYoJs6.png";function MS(){const e=()=>{const i=document.getElementById("pricing");i==null||i.scrollIntoView({behavior:"smooth"})},t=[{image:bS,title:"Não perde X1",description:"Não aguenta mais perder, tiltar e prometer que nunca mais vai jogar"},{image:OS,title:"Mira melhorada",description:"Sente que está travado na mesma arena, mesmo jogando todos os dias e tentando de tudo."}],n=[{name:"Plano Comum",originalPrice:"R$ 59,90",price:"R$ 5,99",savings:"R$ 53,91",paymentType:"pagamento único",image:jS,features:[{name:"Acesso Vitalício a Plataforma",included:!0},{name:"Login/Senha Próprio",included:!0},{name:"Acesso a 7 Bônus",included:!1},{name:"Atualizações de 7 em 7 dias",included:!1},{name:"Grupo Comunidade Vip Whatsapp/Discord",included:!1},{name:"Seção Requisitar Coach",included:!1},{name:"Sorteios Mensais de Pix e Prêmios",included:!1}],ctaText:"ESCOLHER PLANO"},{name:"Plano Lendário",originalPrice:"R$ 127,00",price:"R$ 12,97",savings:"R$ 114,03",paymentType:"pagamento único",badge:"MAIS VENDIDO",highlighted:!0,image:_S,features:[{name:"Acesso Vitalício a Plataforma",included:!0},{name:"Login/Senha Próprio",included:!0},{name:"Acesso a 7 Bônus",included:!0},{name:"Atualizações de 7 em 7 dias",included:!0},{name:"Sorteios Mensais de Pix e Prêmios",included:!0},{name:"Seção Requisitar Coach",included:!0},{name:"Grupo Comunidade Vip Whatsapp/Discord",included:!0}],ctaText:"ESCOLHER PLANO"}],r=[{number:"1.",title:"Continue sem o painel",description:"Continuar como está, perdendo, tiltando e jurando que vai parar, mas voltando pra perder ainda mais sem entender o que está fazendo de errado.",variant:"negative"},{number:"2.",title:"Adquira o painel",description:"Aproveitar e garantir o acesso à Escola Royale por apenas R$5,99, aprender o que 90% dos jogadores nunca entendem e começar a evoluir de verdade.",variant:"positive"}],o=[{question:"Você vai me ajudar na instalação?",answer:"Sim, com certeza!! Assim que você fizer o pagamento irá receber os links para download da Plataforma . Ou se preferir, pode chamar o suporte no Instagram que iremos ajudar você!!"},{question:"Por onde eu acesso a Plataforma?",answer:"Você terá a nossa Plataforma exclusiva, clicando no link que enviaremos no seu e-mail (o mesmo e-mail que você colocou ao comprar) após a conclusão do pagamento."},{question:"E se eu não gostar da Plataforma?",answer:"Após o seu pagamento ser efetuado, você tem 1 semana inteira pra testar a Plataforma Escola Royale e, caso qualquer coisa não te agradar, você pode pedir todo o seu dinheiro de volta. A Escola Royalese compromete em devolver cada centavo o mais rápido possível, respeitando nossa comunidade de milhares de pagantes."}];return h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(RS,{}),h.jsx(X1,{logo:AS,title:"Melhor Plataforma",highlightedWord:"do Clash Royale",videoUrl:"https://vimeo.com/1136340984?share=copy&fl=sv&fe=ci",ctaText:"SUBA DE ARENA AGORA!",onCtaClick:e}),h.jsx(J1,{title:"A Plataforma",highlightedWord:"Escola Royale",subtitle:"é para você que:",benefits:t,ctaText:"SUBA DE ARENA AGORA!",onCtaClick:e}),h.jsx(Z1,{title:"Veja os Depoimentos dos",highlightedWords:"Nossos Alunos"}),h.jsx("div",{id:"pricing",children:h.jsx(eS,{title:"Escolha Seu",highlightedWord:"Plano",plans:n,onSelectPlan:i=>{i==="Plano Comum"?window.location.href="https://checkout.escolaroyale.site/VCCL1O8SCFIU":i==="Plano Lendário"&&(window.location.href="https://checkout.escolaroyale.site/VCCL1O8SCFK7")}})}),h.jsx(tS,{title:"Agora Você Tem",highlightedNumber:"2",subtitle:"Caminhos",paths:r,ctaText:"QUERO COMPRAR",onCtaClick:e}),h.jsx(ES,{title:"Perguntas",highlightedWord:"Frequentes",faqs:o,ctaText:"QUERO COMPRAR",onCtaClick:e}),h.jsx(PS,{instagramHandle:"@escolaroyale",email:"escolaroyalebr@gmail.com",copyrightYear:2025,brandName:"Escola Royale"})]})}const ev=x.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:ye("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",e),...t}));ev.displayName="Card";const LS=x.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:ye("flex flex-col space-y-1.5 p-6",e),...t}));LS.displayName="CardHeader";const DS=x.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:ye("text-2xl font-semibold leading-none tracking-tight",e),...t}));DS.displayName="CardTitle";const IS=x.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:ye("text-sm text-muted-foreground",e),...t}));IS.displayName="CardDescription";const tv=x.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:ye("p-6 pt-0",e),...t}));tv.displayName="CardContent";const FS=x.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:ye("flex items-center p-6 pt-0",e),...t}));FS.displayName="CardFooter";function zS(){return h.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:h.jsx(ev,{className:"w-full max-w-md mx-4",children:h.jsxs(tv,{className:"pt-6",children:[h.jsxs("div",{className:"flex mb-4 gap-2",children:[h.jsx(Lx,{className:"h-8 w-8 text-red-500"}),h.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),h.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}const $S="/venda/";function US(){return h.jsx(sh,{base:$S,children:h.jsxs(l0,{children:[h.jsx(ed,{path:"/",component:MS}),h.jsx(ed,{component:zS})]})})}function VS(){return h.jsx(O0,{client:M0,children:h.jsxs(K1,{children:[h.jsx(ww,{}),h.jsx(US,{})]})})}qp(document.getElementById("root")).render(h.jsx(VS,{}));