function Xv(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 Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf={exports:{}},as={},Kf={exports:{}},F={};/** * @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 bo=Symbol.for("react.element"),qv=Symbol.for("react.portal"),Zv=Symbol.for("react.fragment"),Jv=Symbol.for("react.strict_mode"),ey=Symbol.for("react.profiler"),ty=Symbol.for("react.provider"),ny=Symbol.for("react.context"),ry=Symbol.for("react.forward_ref"),oy=Symbol.for("react.suspense"),iy=Symbol.for("react.memo"),sy=Symbol.for("react.lazy"),vc=Symbol.iterator;function ay(e){return e===null||typeof e!="object"?null:(e=vc&&e[vc]||e["@@iterator"],typeof e=="function"?e:null)}var Yf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qf=Object.assign,Xf={};function Cr(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||Yf}Cr.prototype.isReactComponent={};Cr.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")};Cr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qf(){}qf.prototype=Cr.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||Yf}var Wl=Ul.prototype=new qf;Wl.constructor=Ul;Qf(Wl,Cr.prototype);Wl.isPureReactComponent=!0;var yc=Array.isArray,Zf=Object.prototype.hasOwnProperty,Hl={current:null},Jf={key:!0,ref:!0,__self:!0,__source:!0};function ep(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)Zf.call(t,r)&&!Jf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=A[_];if(0>>1;_o(zn,I))Beo(hn,zn)?(A[_]=hn,A[Be]=I,_=Be):(A[_]=zn,A[ze]=I,_=ze);else if(Beo(hn,I))A[_]=hn,A[Be]=I,_=Be;else break e}}return O}function o(A,O){var I=A.sortIndex-O.sortIndex;return I!==0?I:A.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,y=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(A){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=A)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function S(A){if(x=!1,m(A),!y)if(n(l)!==null)y=!0,B(C);else{var O=n(u);O!==null&&ce(S,O.startTime-A)}}function C(A,O){y=!1,x&&(x=!1,g(k),k=-1),h=!0;var I=f;try{for(m(O),d=n(l);d!==null&&(!(d.expirationTime>O)||A&&!H());){var _=d.callback;if(typeof _=="function"){d.callback=null,f=d.priorityLevel;var U=_(d.expirationTime<=O);O=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),m(O)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var ze=n(u);ze!==null&&ce(S,ze.startTime-O),K=!1}return K}finally{d=null,f=I,h=!1}}var P=!1,E=null,k=-1,M=5,j=-1;function H(){return!(e.unstable_now()-jA||125_?(A.sortIndex=I,t(u,A),n(l)===null&&A===n(u)&&(x?(g(k),k=-1):x=!0,ce(S,I-_))):(A.sortIndex=U,t(l,A),y||h||(y=!0,B(C))),A},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(A){var O=f;return function(){var I=f;f=O;try{return A.apply(this,arguments)}finally{f=I}}}})(ip);op.exports=ip;var yy=op.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 xy=v,Ke=yy;function b(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"),Ea=Object.prototype.hasOwnProperty,wy=/^[: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]*$/,wc={},Sc={};function Sy(e){return Ea.call(Sc,e)?!0:Ea.call(wc,e)?!1:wy.test(e)?Sc[e]=!0:(wc[e]=!0,!1)}function Ty(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 Cy(e,t,n,r){if(t===null||typeof t>"u"||Ty(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 Le(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 Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Le(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){Se[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yl=/[\-:]([a-z])/g;function Ql(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(Yl,Ql);Se[t]=new Le(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(Yl,Ql);Se[t]=new Le(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(Yl,Ql);Se[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xl(e,t,n,r){var o=Se.hasOwnProperty(t)?Se[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function Ey(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=Vs(e.type,!1),e;case 11:return e=Vs(e.type.render,!1),e;case 1:return e=Vs(e.type,!0),e;default:return""}}function Aa(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 Hn:return"Fragment";case Wn:return"Portal";case Pa:return"Profiler";case ql:return"StrictMode";case ka:return"Suspense";case ba:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lp:return(e.displayName||"Context")+".Consumer";case ap:return(e._context.displayName||"Context")+".Provider";case Zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jl:return t=e.displayName||null,t!==null?t:Aa(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return Aa(e(t))}catch{}}return null}function Py(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 Aa(t);case 8:return t===ql?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ky(e){var t=cp(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 zo(e){e._valueTracker||(e._valueTracker=ky(e))}function dp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pi(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 Na(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(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 fp(e,t){t=t.checked,t!=null&&Xl(e,"checked",t,!1)}function Ra(e,t){fp(e,t);var n=on(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")?Ma(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ma(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ec(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 Ma(e,t,n){(t!=="number"||Pi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function sr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function io(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={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},by=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){by.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function gp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function vp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=gp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ay=ae({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 Oa(e,t){if(t){if(Ay[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function _a(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 $a=null;function eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,ar=null,lr=null;function bc(e){if(e=Ro(e)){if(typeof Da!="function")throw Error(b(280));var t=e.stateNode;t&&(t=fs(t),Da(e.stateNode,e.type,t))}}function yp(e){ar?lr?lr.push(e):lr=[e]:ar=e}function xp(){if(ar){var e=ar,t=lr;if(lr=ar=null,bc(e),t)for(e=0;e>>=0,e===0?32:31-(Vy(e)/Fy|0)|0}var Uo=64,Wo=4194304;function Br(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 Ni(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Br(a):(i&=s,i!==0&&(r=Br(i)))}else s=n&~o,s!==0?r=Br(s):i!==0&&(r=Br(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 Ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function Wy(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=Kr),$c=String.fromCharCode(32),Dc=!1;function Vp(e,t){switch(e){case"keyup":return y0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gn=!1;function w0(e,t){switch(e){case"compositionend":return Fp(t);case"keypress":return t.which!==32?null:(Dc=!0,$c);case"textInput":return e=t.data,e===$c&&Dc?null:e;default:return null}}function S0(e,t){if(Gn)return e==="compositionend"||!lu&&Vp(e,t)?(e=Dp(),pi=iu=Gt=null,Gn=!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=zc(n)}}function Wp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hp(){for(var e=window,t=Pi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pi(e.document)}return t}function uu(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 R0(e){var t=Hp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wp(n.ownerDocument.documentElement,n)){if(r!==null&&uu(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=Bc(n,i);var s=Bc(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,Kn=null,Ua=null,Qr=null,Wa=!1;function Uc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wa||Kn==null||Kn!==Pi(r)||(r=Kn,"selectionStart"in r&&uu(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}),Qr&&fo(Qr,r)||(Qr=r,r=ji(Ua,"onSelect"),0Xn||(e.current=Xa[Xn],Xa[Xn]=null,Xn--)}function Y(e,t){Xn++,Xa[Xn]=e.current,e.current=t}var sn={},ke=cn(sn),De=cn(!1),Nn=sn;function hr(e,t){var n=e.type.contextTypes;if(!n)return sn;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 Ie(e){return e=e.childContextTypes,e!=null}function Oi(){q(De),q(ke)}function Xc(e,t,n){if(ke.current!==sn)throw Error(b(168));Y(ke,t),Y(De,n)}function eh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,Py(e)||"Unknown",o));return ae({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Nn=ke.current,Y(ke,e),Y(De,De.current),!0}function qc(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=eh(e,t,Nn),r.__reactInternalMemoizedMergedChildContext=e,q(De),q(ke),Y(ke,e)):q(De),Y(De,n)}var Et=null,ps=!1,Js=!1;function th(e){Et===null?Et=[e]:Et.push(e)}function B0(e){ps=!0,th(e)}function dn(){if(!Js&&Et!==null){Js=!0;var e=0,t=G;try{var n=Et;for(G=1;e>=s,o-=s,Pt=1<<32-ft(t)+o|n<k?(M=E,E=null):M=E.sibling;var j=f(g,E,m[k],S);if(j===null){E===null&&(E=M);break}e&&E&&j.alternate===null&&t(g,E),p=i(j,p,k),P===null?C=j:P.sibling=j,P=j,E=M}if(k===m.length)return n(g,E),ne&&vn(g,k),C;if(E===null){for(;kk?(M=E,E=null):M=E.sibling;var H=f(g,E,j.value,S);if(H===null){E===null&&(E=M);break}e&&E&&H.alternate===null&&t(g,E),p=i(H,p,k),P===null?C=H:P.sibling=H,P=H,E=M}if(j.done)return n(g,E),ne&&vn(g,k),C;if(E===null){for(;!j.done;k++,j=m.next())j=d(g,j.value,S),j!==null&&(p=i(j,p,k),P===null?C=j:P.sibling=j,P=j);return ne&&vn(g,k),C}for(E=r(g,E);!j.done;k++,j=m.next())j=h(E,g,k,j.value,S),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?k:j.key),p=i(j,p,k),P===null?C=j:P.sibling=j,P=j);return e&&E.forEach(function($){return t(g,$)}),ne&&vn(g,k),C}function T(g,p,m,S){if(typeof m=="object"&&m!==null&&m.type===Hn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Fo:e:{for(var C=m.key,P=p;P!==null;){if(P.key===C){if(C=m.type,C===Hn){if(P.tag===7){n(g,P.sibling),p=o(P,m.props.children),p.return=g,g=p;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zt&&ed(C)===P.type){n(g,P.sibling),p=o(P,m.props),p.ref=Mr(g,P,m),p.return=g,g=p;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===Hn?(p=bn(m.props.children,g.mode,S,m.key),p.return=g,g=p):(S=Si(m.type,m.key,m.props,null,g.mode,S),S.ref=Mr(g,p,m),S.return=g,g=S)}return s(g);case Wn:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=aa(m,g.mode,S),p.return=g,g=p}return s(g);case zt:return P=m._init,T(g,p,P(m._payload),S)}if(zr(m))return y(g,p,m,S);if(kr(m))return x(g,p,m,S);qo(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=sa(m,g.mode,S),p.return=g,g=p),s(g)):n(g,p)}return T}var gr=ih(!0),sh=ih(!1),Ii=cn(null),Vi=null,Jn=null,pu=null;function hu(){pu=Jn=Vi=null}function mu(e){var t=Ii.current;q(Ii),e._currentValue=t}function Ja(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 cr(e,t){Vi=e,pu=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function rt(e){var t=e._currentValue;if(pu!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(Vi===null)throw Error(b(308));Jn=e,Vi.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var Tn=null;function gu(e){Tn===null?Tn=[e]:Tn.push(e)}function ah(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,gu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lt(e,r)}function Lt(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 Bt=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function At(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lt(e,n)}return o=r.interleaved,o===null?(t.next=t,gu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lt(e,n)}function mi(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,nu(e,n)}}function td(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 Fi(e,t,n,r){var o=e.updateQueue;Bt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,x=a;switch(f=t,h=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){d=y.call(h,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,f=typeof y=="function"?y.call(h,d,f):y,f==null)break e;d=ae({},d,f);break e;case 2:Bt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);jn|=s,e.lanes=s,e.memoizedState=d}}function nd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ta.transition;ta.transition={};try{e(!1),t()}finally{G=n,ta.transition=r}}function Ph(){return ot().memoizedState}function G0(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kh(e))bh(t,n);else if(n=ah(e,t,n,r),n!==null){var o=Me();pt(n,e,r,o),Ah(n,t,r)}}function K0(e,t,n){var r=en(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kh(e))bh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ht(a,s)){var l=t.interleaved;l===null?(o.next=o,gu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=ah(e,t,o,r),n!==null&&(o=Me(),pt(n,e,r,o),Ah(n,t,r))}}function kh(e){var t=e.alternate;return e===se||t!==null&&t===se}function bh(e,t){Xr=Bi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ah(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nu(e,n)}}var Ui={readContext:rt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Y0={readContext:rt,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:od,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vi(4194308,4,wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return vi(4,2,e,t)},useMemo:function(e,t){var n=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=G0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:rd,useDebugValue:Pu,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=rd(!1),t=e[0];return e=H0.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,o=gt();if(ne){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ye===null)throw Error(b(349));Mn&30||fh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,od(hh.bind(null,r,i,e),[e]),r.flags|=2048,wo(9,ph.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gt(),t=ye.identifierPrefix;if(ne){var n=kt,r=Pt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[vt]=t,e[mo]=r,Ih(e,t,!1,!1),t.stateNode=e;e:{switch(s=_a(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;oxr&&(t.flags|=128,r=!0,jr(i,!1),t.lanes=4194304)}else{if(!r)if(e=zi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ne)return Ce(t),null}else 2*de()-i.renderingStartTime>xr&&n!==1073741824&&(t.flags|=128,r=!0,jr(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=de(),t.sibling=null,n=oe.current,Y(oe,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return Mu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ue&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function n1(e,t){switch(du(t),t.tag){case 1:return Ie(t.type)&&Oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),q(De),q(ke),wu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xu(t),null;case 13:if(q(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(oe),null;case 4:return vr(),null;case 10:return mu(t.type._context),null;case 22:case 23:return Mu(),null;case 24:return null;default:return null}}var Jo=!1,Pe=!1,r1=typeof WeakSet=="function"?WeakSet:Set,R=null;function er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function ll(e,t,n){try{n()}catch(r){le(e,t,r)}}var md=!1;function o1(e,t){if(Ha=Ri,e=Hp(),uu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ga={focusedElem:e,selectionRange:n},Ri=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,T=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:lt(t.type,x),T);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(S){le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return y=md,md=!1,y}function qr(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&&ll(t,n,i)}o=o.next}while(o!==r)}}function gs(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 ul(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 zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vt],delete t[mo],delete t[Qa],delete t[F0],delete t[z0])),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 Bh(e){return e.tag===5||e.tag===3||e.tag===4}function gd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bh(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 cl(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=Li));else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}function dl(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(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}var xe=null,ut=!1;function It(e,t,n){for(n=n.child;n!==null;)Uh(e,t,n),n=n.sibling}function Uh(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(ls,n)}catch{}switch(n.tag){case 5:Pe||er(n,t);case 6:var r=xe,o=ut;xe=null,It(e,t,n),xe=r,ut=o,xe!==null&&(ut?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(ut?(e=xe,n=n.stateNode,e.nodeType===8?Zs(e.parentNode,n):e.nodeType===1&&Zs(e,n),uo(e)):Zs(xe,n.stateNode));break;case 4:r=xe,o=ut,xe=n.stateNode.containerInfo,ut=!0,It(e,t,n),xe=r,ut=o;break;case 0:case 11:case 14:case 15:if(!Pe&&(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)&&ll(n,t,s),o=o.next}while(o!==r)}It(e,t,n);break;case 1:if(!Pe&&(er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}It(e,t,n);break;case 21:It(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,It(e,t,n),Pe=r):It(e,t,n);break;default:It(e,t,n)}}function vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new r1),t.forEach(function(r){var o=p1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s1(r/1960))-r,10e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,Gi=0,W&6)throw Error(b(331));var o=W;for(W|=4,R=e.current;R!==null;){var i=R,s=i.child;if(R.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lde()-Nu?kn(e,0):Au|=n),Ve(e,t)}function qh(e,t){t===0&&(e.mode&1?(t=Wo,Wo<<=1,!(Wo&130023424)&&(Wo=4194304)):t=1);var n=Me();e=Lt(e,t),e!==null&&(Ao(e,t,n),Ve(e,n))}function f1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qh(e,n)}function p1(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(b(314))}r!==null&&r.delete(t),qh(e,n)}var Zh;Zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,e1(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ne&&t.flags&1048576&&nh(t,Di,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yi(e,t),e=t.pendingProps;var o=hr(t,ke.current);cr(t,n),o=Tu(null,t,r,e,o,n);var i=Cu();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,Ie(r)?(i=!0,_i(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vu(t),o.updater=ms,t.stateNode=o,o._reactInternals=t,tl(t,r,e,n),t=ol(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&cu(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=m1(r),e=lt(r,e),o){case 0:t=rl(null,t,r,e,n);break e;case 1:t=fd(null,t,r,e,n);break e;case 11:t=cd(null,t,r,e,n);break e;case 14:t=dd(null,t,r,lt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),rl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),fd(e,t,r,o,n);case 3:e:{if(_h(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,lh(e,t),Fi(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=yr(Error(b(423)),t),t=pd(e,t,r,n,o);break e}else if(r!==o){o=yr(Error(b(424)),t),t=pd(e,t,r,n,o);break e}else for(He=qt(t.stateNode.containerInfo.firstChild),Ge=t,ne=!0,ct=null,n=sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mr(),r===o){t=Ot(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return uh(t),e===null&&Za(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ka(r,o)?s=null:i!==null&&Ka(r,i)&&(t.flags|=32),Oh(e,t),Re(e,t,s,n),t.child;case 6:return e===null&&Za(t),null;case 13:return $h(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gr(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),cd(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(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,Y(Ii,r._currentValue),r._currentValue=s,i!==null)if(ht(i.value,s)){if(i.children===o.children&&!De.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=At(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ja(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(b(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ja(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}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,cr(t,n),o=rt(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=lt(r,t.pendingProps),o=lt(r.type,o),dd(e,t,r,o,n);case 15:return jh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),yi(e,t),t.tag=1,Ie(r)?(e=!0,_i(t)):e=!1,cr(t,n),Nh(t,r,o),tl(t,r,o,n),ol(null,t,r,!0,e,n);case 19:return Dh(e,t,n);case 22:return Lh(e,t,n)}throw Error(b(156,t.tag))};function Jh(e,t){return kp(e,t)}function h1(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 tt(e,t,n,r){return new h1(e,t,n,r)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m1(e){if(typeof e=="function")return Lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zl)return 11;if(e===Jl)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=tt(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 Si(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Lu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Hn:return bn(n.children,o,i,t);case ql:s=8,o|=8;break;case Pa:return e=tt(12,n,t,o|2),e.elementType=Pa,e.lanes=i,e;case ka:return e=tt(13,n,t,o),e.elementType=ka,e.lanes=i,e;case ba:return e=tt(19,n,t,o),e.elementType=ba,e.lanes=i,e;case up:return ys(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ap:s=10;break e;case lp:s=9;break e;case Zl:s=11;break e;case Jl:s=14;break e;case zt:s=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=tt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function bn(e,t,n,r){return e=tt(7,e,r,t),e.lanes=n,e}function ys(e,t,n,r){return e=tt(22,e,r,t),e.elementType=up,e.lanes=n,e.stateNode={isHidden:!1},e}function sa(e,t,n){return e=tt(6,e,null,t),e.lanes=n,e}function aa(e,t,n){return t=tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g1(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=zs(0),this.expirationTimes=zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ou(e,t,n,r,o,i,s,a,l){return e=new g1(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vu(i),e}function v1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rm)}catch(e){console.error(e)}}rm(),rp.exports=Qe;var jo=rp.exports;const T1=Tr(jo);var Pd=jo;Ca.createRoot=Pd.createRoot,Ca.hydrateRoot=Pd.hydrateRoot;var om={exports:{}},C1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",E1=C1,P1=E1;function im(){}function sm(){}sm.resetWarningCache=im;var k1=function(){function e(r,o,i,s,a,l){if(l!==P1){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:sm,resetWarningCache:im};return n.PropTypes=n,n};om.exports=k1();var b1=om.exports;const ee=Tr(b1);function A1(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var am=v,N1=A1(am);function kd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var M1=!!(typeof window<"u"&&window.document&&window.document.createElement);function j1(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){R1(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=a;return a=void 0,s=[],y};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var y=s.indexOf(this);s.splice(y,1),l()},f.render=function(){return N1.createElement(i,this.props)},d}(am.PureComponent);return kd(u,"displayName","SideEffect("+r(i)+")"),kd(u,"canUseDOM",M1),u}}var L1=j1;const O1=Tr(L1);var _1=typeof Element<"u",$1=typeof Map=="function",D1=typeof Set=="function",I1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ti(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ti(e[r],t[r]))return!1;return!0}var i;if($1&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ti(r.value[1],t.get(r.value[0])))return!1;return!0}if(D1&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(I1&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(_1&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ti(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var V1=function(t,n){try{return Ti(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const F1=Tr(V1);/* object-assign (c) Sindre Sorhus @license MIT */var bd=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,B1=Object.prototype.propertyIsEnumerable;function U1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function W1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var H1=W1()?Object.assign:function(e,t){for(var n,r=U1(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},J1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},gl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},ex=function(t){var n=fr(t,V.TITLE),r=fr(t,To.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=fr(t,To.DEFAULT_TITLE);return n||o||void 0},tx=function(t){return fr(t,To.ON_CHANGE_CLIENT_STATE)||function(){}},la=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Oe({},r,o)},{})},nx=function(t,n){return n.filter(function(r){return typeof r[V.BASE]<"u"}).map(function(r){return r[V.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},rx=function(t){return{baseTag:nx([te.HREF,te.TARGET],t),bodyAttributes:la(An.BODY,t),defer:fr(t,To.DEFER),encode:fr(t,To.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:la(An.HTML,t),linkTags:Or(V.LINK,[te.REL,te.HREF],t),metaTags:Or(V.META,[te.NAME,te.CHARSET,te.HTTPEQUIV,te.PROPERTY,te.ITEM_PROP],t),noscriptTags:Or(V.NOSCRIPT,[te.INNER_HTML],t),onChangeClientState:tx(t),scriptTags:Or(V.SCRIPT,[te.SRC,te.INNER_HTML],t),styleTags:Or(V.STYLE,[te.CSS_TEXT],t),title:ex(t),titleAttributes:la(An.TITLE,t)}},vl=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){vl(t)},0)}}(),Nd=function(t){return clearTimeout(t)},ox=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||vl:global.requestAnimationFrame||vl,ix=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Nd:global.cancelAnimationFrame||Nd,sx=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},_r=null,ax=function(t){_r&&ix(_r),t.defer?_r=ox(function(){Rd(t,function(){_r=null})}):(Rd(t),_r=null)},Rd=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,h=t.titleAttributes;yl(V.BODY,o),yl(V.HTML,i),lx(f,h);var y={baseTag:Un(V.BASE,r),linkTags:Un(V.LINK,s),metaTags:Un(V.META,a),noscriptTags:Un(V.NOSCRIPT,l),scriptTags:Un(V.SCRIPT,c),styleTags:Un(V.STYLE,d)},x={},T={};Object.keys(y).forEach(function(g){var p=y[g],m=p.newTags,S=p.oldTags;m.length&&(x[g]=m),S.length&&(T[g]=y[g].oldTags)}),n&&n(),u(t,x,T)},lm=function(t){return Array.isArray(t)?t.join(""):t},lx=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=lm(t)),yl(V.TITLE,n)},yl=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(dt),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(dt):r.getAttribute(dt)!==a.join(",")&&r.setAttribute(dt,a.join(","))}},Un=function(t,n){var r=document.head||document.querySelector(V.HEAD),o=r.querySelectorAll(t+"["+dt+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===te.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===te.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(dt,"true"),i.some(function(f,h){return a=h,u.isEqualNode(f)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},um=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},ux=function(t,n,r,o){var i=um(r),s=lm(n);return i?"<"+t+" "+dt+'="true" '+i+">"+gl(s,o)+"":"<"+t+" "+dt+'="true">'+gl(s,o)+""},cx=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===te.INNER_HTML||u===te.CSS_TEXT)}).reduce(function(u,c){var d=typeof i[c]>"u"?c:c+'="'+gl(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=Y1.indexOf(t)===-1;return o+"<"+t+" "+dt+'="true" '+s+(l?"/>":">"+a+"")},"")},cm=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Qi[o]||o]=t[o],r},n)},dx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[K1[o]||o]=t[o],r},n)},fx=function(t,n,r){var o,i=(o={key:n},o[dt]=!0,o),s=cm(r,i);return[N.createElement(V.TITLE,s,n)]},px=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[dt]=!0,i);return Object.keys(r).forEach(function(a){var l=Qi[a]||a;if(l===te.INNER_HTML||l===te.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),N.createElement(t,s)})},Tt=function(t,n,r){switch(t){case V.TITLE:return{toComponent:function(){return fx(t,n.title,n.titleAttributes)},toString:function(){return ux(t,n.title,n.titleAttributes,r)}};case An.BODY:case An.HTML:return{toComponent:function(){return cm(n)},toString:function(){return um(n)}};default:return{toComponent:function(){return px(t,n)},toString:function(){return cx(t,n,r)}}}},dm=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,h=t.titleAttributes;return{base:Tt(V.BASE,n,o),bodyAttributes:Tt(An.BODY,r,o),htmlAttributes:Tt(An.HTML,i,o),link:Tt(V.LINK,s,o),meta:Tt(V.META,a,o),noscript:Tt(V.NOSCRIPT,l,o),script:Tt(V.SCRIPT,u,o),style:Tt(V.STYLE,c,o),title:Tt(V.TITLE,{title:f,titleAttributes:h},o)}},hx=function(t){var n,r;return r=n=function(o){Z1(i,o);function i(){return X1(this,i),J1(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!F1(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case V.SCRIPT:case V.NOSCRIPT:return{innerHTML:l};case V.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Oe({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Oe({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,h=a.nestedChildren;switch(c.type){case V.TITLE:return Oe({},d,(l={},l[c.type]=h,l.titleAttributes=Oe({},f),l));case V.BODY:return Oe({},d,{bodyAttributes:Oe({},f)});case V.HTML:return Oe({},d,{htmlAttributes:Oe({},f)})}return Oe({},d,(u={},u[c.type]=Oe({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Oe({},l);return Object.keys(a).forEach(function(c){var d;u=Oe({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return N.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,y=Ad(f,["children"]),x=dx(y);switch(u.warnOnInvalidChildren(d,h),d.type){case V.LINK:case V.META:case V.NOSCRIPT:case V.SCRIPT:case V.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:x,nestedChildren:h});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:x,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=Ad(a,["children"]),c=Oe({},u);return l&&(c=this.mapChildrenToProps(l,c)),N.createElement(t,c)},q1(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(N.Component),n.propTypes={base:ee.object,bodyAttributes:ee.object,children:ee.oneOfType([ee.arrayOf(ee.node),ee.node]),defaultTitle:ee.string,defer:ee.bool,encodeSpecialCharacters:ee.bool,htmlAttributes:ee.object,link:ee.arrayOf(ee.object),meta:ee.arrayOf(ee.object),noscript:ee.arrayOf(ee.object),onChangeClientState:ee.func,script:ee.arrayOf(ee.object),style:ee.arrayOf(ee.object),title:ee.string,titleAttributes:ee.object,titleTemplate:ee.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=dm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},mx=function(){return null},gx=O1(rx,ax,dm)(mx),xl=hx(gx);xl.renderStatic=xl.rewind;function fm(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;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var gm="!";function Ex(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:T}}}function Px(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function kx(e){return{cache:Cx(e.cacheSize),splitModifiers:Ex(e),...yx(e)}}var bx=/\s+/;function Ax(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(bx).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),h=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};h=!1}var y=Px(l).join(":"),x=u?y+gm:y;return{isTailwindClass:!0,modifierId:x,classGroupId:f,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Nx(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=Od(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:f,children:h,...y}=d,x=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,T=v.useMemo(()=>y,Object.values(y));return w.jsx(x.Provider,{value:T,children:h})};u.displayName=i+"Provider";function c(d,f){var x;const h=((x=f==null?void 0:f[e])==null?void 0:x[l])||a,y=v.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Hx(o,...t)]}function Hx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Xi(e){const t=Kx(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,a=v.Children.toArray(i),l=a.find(Qx);if(l){const u=l.props.children,c=a.map(d=>d===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return w.jsx(t,{...s,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Gx=Xi("Slot");function Kx(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=qx(o),a=Xx(i,o.props);return o.type!==v.Fragment&&(a.ref=r?xm(r,s):s),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yx=Symbol("radix.slottable");function Qx(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yx}function Xx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qx(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 Zx(e){const t=e+"CollectionProvider",[n,r]=wm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:T,children:g}=x,p=N.useRef(null),m=N.useRef(new Map).current;return w.jsx(o,{scope:T,itemMap:m,collectionRef:p,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=Xi(a),u=N.forwardRef((x,T)=>{const{scope:g,children:p}=x,m=i(a,g),S=On(T,m.collectionRef);return w.jsx(l,{ref:S,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Xi(c),h=N.forwardRef((x,T)=>{const{scope:g,children:p,...m}=x,S=N.useRef(null),C=On(T,S),P=i(c,g);return N.useEffect(()=>(P.itemMap.set(S,{ref:S,...m}),()=>void P.itemMap.delete(S))),w.jsx(f,{[d]:"",ref:C,children:p})});h.displayName=c;function y(x){const T=i(e+"CollectionConsumer",x);return N.useCallback(()=>{const p=T.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(T.itemMap.values()).sort((P,E)=>m.indexOf(P.ref.current)-m.indexOf(E.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},y,r]}var Jx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],St=Jx.reduce((e,t)=>{const n=Xi(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Sm(e,t){e&&jo.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ew(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var tw="DismissableLayer",Tl="dismissableLayer.update",nw="dismissableLayer.pointerDownOutside",rw="dismissableLayer.focusOutside",_d,Tm=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cm=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(Tm),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),y=On(t,E=>d(E)),x=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=x.indexOf(T),p=c?x.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=g,C=iw(E=>{const k=E.target,M=[...u.branches].some(j=>j.contains(k));!S||M||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},f),P=sw(E=>{const k=E.target;[...u.branches].some(j=>j.contains(k))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},f);return ew(E=>{p===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_d=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),$d(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=_d)}},[c,f,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),$d())},[c,u]),v.useEffect(()=>{const E=()=>h({});return document.addEventListener(Tl,E),()=>document.removeEventListener(Tl,E)},[]),w.jsx(St.div,{...l,ref:y,style:{pointerEvents:m?S?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,P.onFocusCapture),onBlurCapture:We(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,C.onPointerDownCapture)})});Cm.displayName=tw;var ow="DismissableLayerBranch",Em=v.forwardRef((e,t)=>{const n=v.useContext(Tm),r=v.useRef(null),o=On(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(St.div,{...e,ref:o})});Em.displayName=ow;function iw(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Pm(nw,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function sw(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&Pm(rw,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 $d(){const e=new CustomEvent(Tl);document.dispatchEvent(e)}function Pm(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?Sm(o,i):o.dispatchEvent(i)}var aw=Cm,lw=Em,Co=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},uw="Portal",km=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);Co(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?T1.createPortal(w.jsx(St.div,{...r,ref:t}),s):null});km.displayName=uw;function cw(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var bm=e=>{const{present:t,children:n}=e,r=dw(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=On(r.ref,fw(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};bm.displayName="Presence";function dw(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=cw(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=ri(r.current);i.current=a==="mounted"?u:"none"},[a]),Co(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,h=ri(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Co(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const x=ri(r.current).includes(h.animationName);if(h.target===t&&x&&(l("ANIMATION_END"),!o.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},f=h=>{h.target===t&&(i.current=ri(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ri(e){return(e==null?void 0:e.animationName)||"none"}function fw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pw=Kl[" useInsertionEffect ".trim().toString()]||Co;function hw({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=mw({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=v.useCallback(c=>{var d;if(a){const f=gw(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function mw({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return pw(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function gw(e){return typeof e=="function"}var vw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yw="VisuallyHidden",Vu=v.forwardRef((e,t)=>w.jsx(St.span,{...e,ref:t,style:{...vw,...e.style}}));Vu.displayName=yw;var Fu="ToastProvider",[zu,xw,ww]=Zx("Toast"),[Am,Rk]=wm("Toast",[ww]),[Sw,Cs]=Am(Fu),Nm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[u,c]=v.useState(0),d=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Fu}\`. Expected non-empty \`string\`.`),w.jsx(zu.Provider,{scope:t,children:w.jsx(Sw,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};Nm.displayName=Fu;var Rm="ToastViewport",Tw=["F8"],Cl="toast.viewportPause",El="toast.viewportResume",Mm=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Tw,label:o="Notifications ({hotkey})",...i}=e,s=Cs(Rm,n),a=xw(n),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=On(t,d,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;v.useEffect(()=>{const T=g=>{var m;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),v.useEffect(()=>{const T=l.current,g=d.current;if(y&&T&&g){const p=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Cl);g.dispatchEvent(P),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(El);g.dispatchEvent(P),s.isClosePausedRef.current=!1}},S=P=>{!T.contains(P.relatedTarget)&&m()},C=()=>{T.contains(document.activeElement)||m()};return T.addEventListener("focusin",p),T.addEventListener("focusout",S),T.addEventListener("pointermove",p),T.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{T.removeEventListener("focusin",p),T.removeEventListener("focusout",S),T.removeEventListener("pointermove",p),T.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[y,s.isClosePausedRef]);const x=v.useCallback(({tabbingDirection:T})=>{const p=a().map(m=>{const S=m.ref.current,C=[S,..._w(S)];return T==="forwards"?C:C.reverse()});return(T==="forwards"?p.reverse():p).flat()},[a]);return v.useEffect(()=>{const T=d.current;if(T){const g=p=>{var C,P,E;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const k=document.activeElement,M=p.shiftKey;if(p.target===T&&M){(C=u.current)==null||C.focus();return}const $=x({tabbingDirection:M?"backwards":"forwards"}),re=$.findIndex(L=>L===k);ua($.slice(re+1))?p.preventDefault():M?(P=u.current)==null||P.focus():(E=c.current)==null||E.focus()}};return T.addEventListener("keydown",g),()=>T.removeEventListener("keydown",g)}},[a,x]),w.jsxs(lw,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&w.jsx(Pl,{ref:u,onFocusFromOutsideViewport:()=>{const T=x({tabbingDirection:"forwards"});ua(T)}}),w.jsx(zu.Slot,{scope:n,children:w.jsx(St.ol,{tabIndex:-1,...i,ref:f})}),y&&w.jsx(Pl,{ref:c,onFocusFromOutsideViewport:()=>{const T=x({tabbingDirection:"backwards"});ua(T)}})]})});Mm.displayName=Rm;var jm="ToastFocusProxy",Pl=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Cs(jm,n);return w.jsx(Vu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Pl.displayName=jm;var Lo="Toast",Cw="toast.swipeStart",Ew="toast.swipeMove",Pw="toast.swipeCancel",kw="toast.swipeEnd",Lm=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=hw({prop:r,defaultProp:o??!0,onChange:i,caller:Lo});return w.jsx(bm,{present:n||a,children:w.jsx(Nw,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:_n(e.onPause),onResume:_n(e.onResume),onSwipeStart:We(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:We(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:We(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:We(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Lm.displayName=Lo;var[bw,Aw]=Am(Lo,{onClose(){}}),Nw=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...y}=e,x=Cs(Lo,n),[T,g]=v.useState(null),p=On(t,L=>g(L)),m=v.useRef(null),S=v.useRef(null),C=o||x.duration,P=v.useRef(0),E=v.useRef(C),k=v.useRef(0),{onToastAdd:M,onToastRemove:j}=x,H=_n(()=>{var J;(T==null?void 0:T.contains(document.activeElement))&&((J=x.viewport)==null||J.focus()),s()}),$=v.useCallback(L=>{!L||L===1/0||(window.clearTimeout(k.current),P.current=new Date().getTime(),k.current=window.setTimeout(H,L))},[H]);v.useEffect(()=>{const L=x.viewport;if(L){const J=()=>{$(E.current),u==null||u()},B=()=>{const ce=new Date().getTime()-P.current;E.current=E.current-ce,window.clearTimeout(k.current),l==null||l()};return L.addEventListener(Cl,B),L.addEventListener(El,J),()=>{L.removeEventListener(Cl,B),L.removeEventListener(El,J)}}},[x.viewport,C,l,u,$]),v.useEffect(()=>{i&&!x.isClosePausedRef.current&&$(C)},[i,C,x.isClosePausedRef,$]),v.useEffect(()=>(M(),()=>j()),[M,j]);const re=v.useMemo(()=>T?Fm(T):null,[T]);return x.viewport?w.jsxs(w.Fragment,{children:[re&&w.jsx(Rw,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:re}),w.jsx(bw,{scope:n,onClose:H,children:jo.createPortal(w.jsx(zu.ItemSlot,{scope:n,children:w.jsx(aw,{asChild:!0,onEscapeKeyDown:We(a,()=>{x.isFocusedToastEscapeKeyDownRef.current||H(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:w.jsx(St.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":x.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:We(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:We(e.onPointerDown,L=>{L.button===0&&(m.current={x:L.clientX,y:L.clientY})}),onPointerMove:We(e.onPointerMove,L=>{if(!m.current)return;const J=L.clientX-m.current.x,B=L.clientY-m.current.y,ce=!!S.current,A=["left","right"].includes(x.swipeDirection),O=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,I=A?O(0,J):0,_=A?0:O(0,B),U=L.pointerType==="touch"?10:2,K={x:I,y:_},ze={originalEvent:L,delta:K};ce?(S.current=K,oi(Ew,d,ze,{discrete:!1})):Dd(K,x.swipeDirection,U)?(S.current=K,oi(Cw,c,ze,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(J)>U||Math.abs(B)>U)&&(m.current=null)}),onPointerUp:We(e.onPointerUp,L=>{const J=S.current,B=L.target;if(B.hasPointerCapture(L.pointerId)&&B.releasePointerCapture(L.pointerId),S.current=null,m.current=null,J){const ce=L.currentTarget,A={originalEvent:L,delta:J};Dd(J,x.swipeDirection,x.swipeThreshold)?oi(kw,h,A,{discrete:!0}):oi(Pw,f,A,{discrete:!0}),ce.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),Rw=e=>{const{__scopeToast:t,children:n,...r}=e,o=Cs(Lo,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return Lw(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:w.jsx(km,{asChild:!0,children:w.jsx(Vu,{...r,children:i&&w.jsxs(w.Fragment,{children:[o.label," ",n]})})})},Mw="ToastTitle",Om=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(St.div,{...r,ref:t})});Om.displayName=Mw;var jw="ToastDescription",_m=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(St.div,{...r,ref:t})});_m.displayName=jw;var $m="ToastAction",Dm=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?w.jsx(Vm,{altText:n,asChild:!0,children:w.jsx(Bu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${$m}\`. Expected non-empty \`string\`.`),null)});Dm.displayName=$m;var Im="ToastClose",Bu=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Aw(Im,n);return w.jsx(Vm,{asChild:!0,children:w.jsx(St.button,{type:"button",...r,ref:t,onClick:We(e.onClick,o.onClose)})})});Bu.displayName=Im;var Vm=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return w.jsx(St.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Fm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Ow(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(...Fm(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?Sm(o,i):o.dispatchEvent(i)}var Dd=(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 Lw(e=()=>{}){const t=_n(e);Co(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Ow(e){return e.nodeType===e.ELEMENT_NODE}function _w(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 ua(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var $w=Nm,zm=Mm,Bm=Lm,Um=Om,Wm=_m,Hm=Dm,Gm=Bu;const Id=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vd=pm,Km=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Id(c)||Id(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(y=>{let[x,T]=y;return Array.isArray(T)?T.includes({...i,...a}[x]):{...i,...a}[x]===T})?[...u,d,f]:u},[]);return Vd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var Dw={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"};const Iw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),it=(e,t)=>{const n=v.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>v.createElement("svg",{ref:u,...Dw,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${Iw(e)}`,...l},[...t.map(([c,d])=>v.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},Vw=it("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.25V14",key:"re2vv1"}],["path",{d:"M22 16a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",key:"ame013"}]]),Fw=it("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ym=it("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),zw=it("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Bw=it("Map",[["polygon",{points:"3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21",key:"ok2ie8"}],["line",{x1:"9",x2:"9",y1:"3",y2:"18",key:"w34qz5"}],["line",{x1:"15",x2:"15",y1:"6",y2:"21",key:"volv9a"}]]),Es=it("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]]),Uw=it("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Ww=it("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),Hw=it("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Gw=it("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Kw=it("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Uu=it("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),Yw=$w,Qm=N.forwardRef(({className:e,...t},n)=>w.jsx(zm,{ref:n,className:be("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}));Qm.displayName=zm.displayName;const Qw=Km("data-[swipe=move]:transition-none group relative pointer-events-auto 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=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Xm=N.forwardRef(({className:e,variant:t,...n},r)=>w.jsx(Bm,{ref:r,className:be(Qw({variant:t}),e),...n}));Xm.displayName=Bm.displayName;const Xw=N.forwardRef(({className:e,...t},n)=>w.jsx(Hm,{ref:n,className:be("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-destructive/30 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=Hm.displayName;const qm=N.forwardRef(({className:e,...t},n)=>w.jsx(Gm,{ref:n,className:be("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:w.jsx(Kw,{className:"h-4 w-4"})}));qm.displayName=Gm.displayName;const Zm=N.forwardRef(({className:e,...t},n)=>w.jsx(Um,{ref:n,className:be("text-sm font-semibold",e),...t}));Zm.displayName=Um.displayName;const Jm=N.forwardRef(({className:e,...t},n)=>w.jsx(Wm,{ref:n,className:be("text-sm opacity-90",e),...t}));Jm.displayName=Wm.displayName;const qw=1;let ca=0;function Zw(){return ca=(ca+1)%Number.MAX_VALUE,ca.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},Jw=({...e})=>{const t=Zw(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,qw)})),{id:t,dismiss:r,update:n}};function eg(){const[e,t]=v.useState(Ae.getState());return v.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),v.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:Jw,toasts:e.toasts}}function eS(){const{toasts:e}=eg();return w.jsxs(Yw,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>w.jsxs(Xm,{...i,children:[w.jsxs("div",{className:"grid gap-1",children:[n&&w.jsx(Zm,{children:n}),r&&w.jsx(Jm,{children:r})]}),o,w.jsx(qm,{})]},t)),w.jsx(Qm,{})]})}const tS=Km("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ps=N.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Gx:"button";return w.jsx(s,{className:be(tS({variant:t,size:n,className:e})),ref:i,...o})});Ps.displayName="Button";const nS=({onServiceClick:e})=>w.jsx("header",{className:"bg-white shadow-md sticky top-0 z-50",children:w.jsx("div",{className:"container mx-auto px-4 py-3",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"flex items-center space-x-3",children:w.jsx("img",{src:"https://storage.googleapis.com/hostinger-horizons-assets-prod/8c2ea0c4-8129-41af-8f76-bbdc14cca55b/9eb995e5b1f9bea9ef8c78036c2787cd.png",alt:"Neoenergia Logo",className:"h-10"})}),w.jsxs("div",{className:"hidden md:flex items-center space-x-6",children:[w.jsx("button",{onClick:()=>e("2ª Via de Fatura"),className:"text-gray-600 hover:text-green-600 font-medium transition-colors",children:"2ª Via"}),w.jsx("button",{onClick:()=>e("Religar Energia"),className:"text-gray-600 hover:text-green-600 font-medium transition-colors",children:"Religação"}),w.jsx("button",{onClick:()=>e("Atendimento Online"),className:"text-gray-600 hover:text-green-600 font-medium transition-colors",children:"Atendimento"})]}),w.jsx("div",{className:"flex items-center",children:w.jsxs(Ps,{onClick:()=>window.open("https://wa.me/message/P2KOXKZ52K2GE1","_blank"),className:"bg-green-500 hover:bg-green-600 text-white",size:"sm",children:[w.jsx(Es,{className:"w-4 h-4 mr-2"}),"WhatsApp"]})})]})})}),tg=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ks=v.createContext({}),Wu=v.createContext(null),bs=typeof document<"u",rS=bs?v.useLayoutEffect:v.useEffect,ng=v.createContext({strict:!1}),Hu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),oS="framerAppearId",rg="data-"+Hu(oS);function iS(e,t,n,r){const{visualElement:o}=v.useContext(ks),i=v.useContext(ng),s=v.useContext(Wu),a=v.useContext(tg).reducedMotion,l=v.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;v.useInsertionEffect(()=>{u&&u.update(n,s)});const c=v.useRef(!!(n[rg]&&!window.HandoffComplete));return rS(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),v.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function nr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sS(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):nr(n)&&(n.current=r))},[t])}function Eo(e){return typeof e=="string"||Array.isArray(e)}function As(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ku=["initial",...Gu];function Ns(e){return As(e.animate)||Ku.some(t=>Eo(e[t]))}function og(e){return!!(Ns(e)||e.variants)}function aS(e,t){if(Ns(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Eo(n)?n:void 0,animate:Eo(r)?r:void 0}}return e.inherit!==!1?t:{}}function lS(e){const{initial:t,animate:n}=aS(e,v.useContext(ks));return v.useMemo(()=>({initial:t,animate:n}),[Fd(t),Fd(n)])}function Fd(e){return Array.isArray(e)?e.join(" "):e}const zd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Po={};for(const e in zd)Po[e]={isEnabled:t=>zd[e].some(n=>!!t[n])};function uS(e){for(const t in e)Po[t]={...Po[t],...e[t]}}const ig=v.createContext({}),sg=v.createContext({}),cS=Symbol.for("motionComponentSymbol");function dS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&uS(e);function i(a,l){let u;const c={...v.useContext(tg),...a,layoutId:fS(a)},{isStatic:d}=c,f=lS(a),h=r(a,d);if(!d&&bs){f.visualElement=iS(o,h,c,t);const y=v.useContext(sg),x=v.useContext(ng).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,x,e,y))}return v.createElement(ks.Provider,{value:f},u&&f.visualElement?v.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,sS(h,f.visualElement,l),h,d,f.visualElement))}const s=v.forwardRef(i);return s[cS]=o,s}function fS({layoutId:e}){const t=v.useContext(ig).id;return t&&e!==void 0?t+"-"+e:e}function pS(e){function t(r,o={}){return dS(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const hS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Yu(e){return typeof e!="string"||e.includes("-")?!1:!!(hS.indexOf(e)>-1||/[A-Z]/.test(e))}const qi={};function mS(e){Object.assign(qi,e)}const Oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(Oo);function ag(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qi[e]||e==="opacity")}const Fe=e=>!!(e&&e.getVelocity),gS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vS=Oo.length;function yS(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ug=lg("--"),kl=lg("var(--"),xS=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,wS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,an=(e,t,n)=>Math.min(Math.max(n,e),t),Fn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},eo={...Fn,transform:e=>an(0,1,e)},ii={...Fn,default:1},to=e=>Math.round(e*1e5)/1e5,Rs=/(-)?([\d]*\.?[\d])+/g,cg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,SS=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _o(e){return typeof e=="string"}const $o=e=>({test:t=>_o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ft=$o("deg"),wt=$o("%"),D=$o("px"),TS=$o("vh"),CS=$o("vw"),Bd={...wt,parse:e=>wt.parse(e)/100,transform:e=>wt.transform(e*100)},Ud={...Fn,transform:Math.round},dg={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,size:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:Ft,rotateX:Ft,rotateY:Ft,rotateZ:Ft,scale:ii,scaleX:ii,scaleY:ii,scaleZ:ii,skew:Ft,skewX:Ft,skewY:Ft,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:eo,originX:Bd,originY:Bd,originZ:D,zIndex:Ud,fillOpacity:eo,strokeOpacity:eo,numOctaves:Ud};function Qu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(ug(d)){i[d]=f;continue}const h=dg[d],y=wS(f,h);if(Vn.has(d)){if(l=!0,s[d]=y,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):o[d]=y}if(t.transform||(l||r?o.transform=yS(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=a;o.transformOrigin=`${d} ${f} ${h}`}}const Xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fg(e,t,n){for(const r in t)!Fe(t[r])&&!ag(r,n)&&(e[r]=t[r])}function ES({transformTemplate:e},t,n){return v.useMemo(()=>{const r=Xu();return Qu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function PS(e,t,n){const r=e.style||{},o={};return fg(o,r,e),Object.assign(o,ES(e,t,n)),e.transformValues?e.transformValues(o):o}function kS(e,t,n){const r={},o=PS(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const bS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Zi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bS.has(e)}let pg=e=>!Zi(e);function AS(e){e&&(pg=t=>t.startsWith("on")?!Zi(t):e(t))}try{AS(require("@emotion/is-prop-valid").default)}catch{}function NS(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(pg(o)||n===!0&&Zi(o)||!t&&!Zi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Wd(e,t,n){return typeof e=="string"?e:D.transform(t+n*e)}function RS(e,t,n){const r=Wd(t,e.x,e.width),o=Wd(n,e.y,e.height);return`${r} ${o}`}const MS={offset:"stroke-dashoffset",array:"stroke-dasharray"},jS={offset:"strokeDashoffset",array:"strokeDasharray"};function LS(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?MS:jS;e[i.offset]=D.transform(-r);const s=D.transform(t),a=D.transform(n);e[i.array]=`${s} ${a}`}function qu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Qu(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:x}=e;h.transform&&(x&&(y.transform=h.transform),delete h.transform),x&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=RS(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&LS(h,s,a,l,!1)}const hg=()=>({...Xu(),attrs:{}}),Zu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OS(e,t,n,r){const o=v.useMemo(()=>{const i=hg();return qu(i,t,{enableHardwareAcceleration:!1},Zu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};fg(i,e.style,e),o.style={...i,...o.style}}return o}function _S(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Yu(n)?OS:kS)(r,i,s,n),c={...NS(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=v.useMemo(()=>Fe(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function mg(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vg(e,t,n,r){mg(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(gg.has(o)?o:Hu(o),t.attrs[o])}function Ju(e,t){const{style:n}=e,r={};for(const o in n)(Fe(n[o])||t.style&&Fe(t.style[o])||ag(o,e))&&(r[o]=n[o]);return r}function yg(e,t){const n=Ju(e,t);for(const r in e)if(Fe(e[r])||Fe(t[r])){const o=Oo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function ec(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function $S(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ji=e=>Array.isArray(e),DS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),IS=e=>Ji(e)?e[e.length-1]||0:e;function Ci(e){const t=Fe(e)?e.get():e;return DS(t)?t.toValue():t}function VS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:FS(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const xg=e=>(t,n)=>{const r=v.useContext(ks),o=v.useContext(Wu),i=()=>VS(e,t,r,o);return n?i():$S(i)};function FS(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ci(i[f]);let{initial:s,animate:a}=e;const l=Ns(e),u=og(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!As(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const y=ec(e,h);if(!y)return;const{transitionEnd:x,transition:T,...g}=y;for(const p in g){let m=g[p];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(o[p]=m)}for(const p in x)o[p]=x[p]}),o}const ue=e=>e;class Hd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function zS(e){let t=new Hd,n=new Hd,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=zS(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,BS),1),o.timestamp=d,o.isProcessing=!0,si.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:si.reduce((d,f)=>{const h=i[f];return d[f]=(y,x=!1,T=!1)=>(n||l(),h.schedule(y,x,T)),d},{}),cancel:d=>si.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Z,cancel:_t,state:Ee,steps:da}=US(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0),WS={useVisualState:xg({scrapeMotionValuesFromProps:yg,createRenderState:hg,onMount:(e,t,{renderState:n,latestValues:r})=>{Z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Z.render(()=>{qu(n,r,{enableHardwareAcceleration:!1},Zu(t.tagName),e.transformTemplate),vg(t,n)})}})},HS={useVisualState:xg({scrapeMotionValuesFromProps:Ju,createRenderState:Xu})};function GS(e,{forwardMotionProps:t=!1},n,r){return{...Yu(e)?WS:HS,preloadedFeatures:n,useRender:_S(t),createVisualElement:r,Component:e}}function bt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const wg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ms(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const KS=e=>t=>wg(t)&&e(t,Ms(t));function Nt(e,t,n,r){return bt(e,t,KS(n),r)}const YS=(e,t)=>n=>t(e(n)),nn=(...e)=>e.reduce(YS);function Sg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gd=Sg("dragHorizontal"),Kd=Sg("dragVertical");function Tg(e){let t=!1;if(e==="y")t=Kd();else if(e==="x")t=Gd();else{const n=Gd(),r=Kd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Cg(){const e=Tg(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Yd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||Cg())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Z.update(()=>a[r](i,s))};return Nt(e.current,n,o,{passive:!e.getProps()[r]})}class QS extends fn{mount(){this.unmount=nn(Yd(this.node,!0),Yd(this.node,!1))}unmount(){}}class XS extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nn(bt(this.node.current,"focus",()=>this.onFocus()),bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Eg=(e,t)=>t?e===t?!0:Eg(e,t.parentElement):!1;function fa(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ms(n))}class qS extends fn{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Nt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();Z.update(()=>{!d&&!Eg(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Nt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=nn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||fa("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Z.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=bt(this.node.current,"keyup",s),fa("down",(a,l)=>{this.startPress(a,l)})},n=bt(this.node.current,"keydown",t),r=()=>{this.isPressing&&fa("cancel",(i,s)=>this.cancelPress(i,s))},o=bt(this.node.current,"blur",r);this.removeAccessibleListeners=nn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Cg()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Nt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=bt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=nn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const bl=new WeakMap,pa=new WeakMap,ZS=e=>{const t=bl.get(e.target);t&&t(e)},JS=e=>{e.forEach(ZS)};function eT({root:e,...t}){const n=e||document;pa.has(n)||pa.set(n,{});const r=pa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(JS,{root:e,...t})),r[o]}function tT(e,t,n){const r=eT(t);return bl.set(e,n),r.observe(e),()=>{bl.delete(e),r.unobserve(e)}}const nT={some:0,all:1};class rT extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:nT[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return tT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(oT(t,n))&&this.startObserver()}unmount(){}}function oT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iT={inView:{Feature:rT},tap:{Feature:qS},focus:{Feature:XS},hover:{Feature:QS}};function Pg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function aT(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function js(e,t,n){const r=e.getProps();return ec(r,t,n!==void 0?n:r.custom,sT(e),aT(e))}let lT=ue,tc=ue;const rn=e=>e*1e3,Rt=e=>e/1e3,uT={current:!1},kg=e=>Array.isArray(e)&&typeof e[0]=="number";function bg(e){return!!(!e||typeof e=="string"&&Ag[e]||kg(e)||Array.isArray(e)&&e.every(bg))}const Wr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ag={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wr([0,.65,.55,1]),circOut:Wr([.55,0,1,.45]),backIn:Wr([.31,.01,.66,-.59]),backOut:Wr([.33,1.53,.69,.99])};function Ng(e){if(e)return kg(e)?Wr(e):Array.isArray(e)?e.map(Ng):Ag[e]}function cT(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Ng(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function dT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Rg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fT=1e-7,pT=12;function hT(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Rg(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>fT&&++ahT(i,0,1,e,n);return i=>i===0||i===1?i:Rg(o(i),t,r)}const mT=Do(.42,0,1,1),gT=Do(0,0,.58,1),Mg=Do(.42,0,.58,1),vT=e=>Array.isArray(e)&&typeof e[0]!="number",jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lg=e=>t=>1-e(1-t),nc=e=>1-Math.sin(Math.acos(e)),Og=Lg(nc),yT=jg(nc),_g=Do(.33,1.53,.69,.99),rc=Lg(_g),xT=jg(rc),wT=e=>(e*=2)<1?.5*rc(e):.5*(2-Math.pow(2,-10*(e-1))),ST={linear:ue,easeIn:mT,easeInOut:Mg,easeOut:gT,circIn:nc,circInOut:yT,circOut:Og,backIn:rc,backInOut:xT,backOut:_g,anticipate:wT},Qd=e=>{if(Array.isArray(e)){tc(e.length===4);const[t,n,r,o]=e;return Do(t,n,r,o)}else if(typeof e=="string")return ST[e];return e},oc=(e,t)=>n=>!!(_o(n)&&SS.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$g=(e,t,n)=>r=>{if(!_o(r))return r;const[o,i,s,a]=r.match(Rs);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},TT=e=>an(0,255,e),ha={...Fn,transform:e=>Math.round(TT(e))},Pn={test:oc("rgb","red"),parse:$g("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ha.transform(e)+", "+ha.transform(t)+", "+ha.transform(n)+", "+to(eo.transform(r))+")"};function CT(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Al={test:oc("#"),parse:CT,transform:Pn.transform},rr={test:oc("hsl","hue"),parse:$g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+wt.transform(to(t))+", "+wt.transform(to(n))+", "+to(eo.transform(r))+")"},Ne={test:e=>Pn.test(e)||Al.test(e)||rr.test(e),parse:e=>Pn.test(e)?Pn.parse(e):rr.test(e)?rr.parse(e):Al.parse(e),transform:e=>_o(e)?e:e.hasOwnProperty("red")?Pn.transform(e):rr.transform(e)},ie=(e,t,n)=>-n*e+n*t+e;function ma(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ET({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=ma(l,a,e+1/3),i=ma(l,a,e),s=ma(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const ga=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},PT=[Al,Pn,rr],kT=e=>PT.find(t=>t.test(e));function Xd(e){const t=kT(e);let n=t.parse(e);return t===rr&&(n=ET(n)),n}const Dg=(e,t)=>{const n=Xd(e),r=Xd(t),o={...n};return i=>(o.red=ga(n.red,r.red,i),o.green=ga(n.green,r.green,i),o.blue=ga(n.blue,r.blue,i),o.alpha=ie(n.alpha,r.alpha,i),Pn.transform(o))};function bT(e){var t,n;return isNaN(e)&&_o(e)&&(((t=e.match(Rs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cg))===null||n===void 0?void 0:n.length)||0)>0}const Ig={regex:xS,countKey:"Vars",token:"${v}",parse:ue},Vg={regex:cg,countKey:"Colors",token:"${c}",parse:Ne.parse},Fg={regex:Rs,countKey:"Numbers",token:"${n}",parse:Fn.parse};function va(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function es(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&va(n,Ig),va(n,Vg),va(n,Fg),n}function zg(e){return es(e).values}function Bg(e){const{values:t,numColors:n,numVars:r,tokenised:o}=es(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function NT(e){const t=zg(e);return Bg(e)(t.map(AT))}const ln={test:bT,parse:zg,createTransformer:Bg,getAnimatableNone:NT},Ug=(e,t)=>n=>`${n>0?t:e}`;function Wg(e,t){return typeof e=="number"?n=>ie(e,t,n):Ne.test(e)?Dg(e,t):e.startsWith("var(")?Ug(e,t):Gg(e,t)}const Hg=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Wg(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Wg(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Gg=(e,t)=>{const n=ln.createTransformer(t),r=es(e),o=es(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?nn(Hg(r.values,o.values),n):Ug(e,t)},ko=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qd=(e,t)=>n=>ie(e,t,n);function MT(e){return typeof e=="number"?qd:typeof e=="string"?Ne.test(e)?Dg:Gg:Array.isArray(e)?Hg:typeof e=="object"?RT:qd}function jT(e,t,n){const r=[],o=n||MT(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=jT(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(an(e[0],e[i-1],u)):l}function LT(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ko(0,t,r);e.push(ie(n,1,o))}}function OT(e){const t=[0];return LT(t,e.length-1),t}function _T(e,t){return e.map(n=>n*t)}function $T(e,t){return e.map(()=>t||Mg).splice(0,e.length-1)}function ts({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=vT(r)?r.map(Qd):Qd(r),i={done:!1,value:t[0]},s=_T(n&&n.length===t.length?n:OT(t),e),a=Kg(s,t,{ease:Array.isArray(o)?o:$T(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Yg(e,t){return t?e*(1e3/t):0}const DT=5;function Qg(e,t,n){const r=Math.max(t-DT,0);return Yg(n-e(r),t-r)}const ya=.001,IT=.01,Zd=10,VT=.05,FT=1;function zT({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;lT(e<=rn(Zd));let s=1-t;s=an(VT,FT,s),e=an(IT,Zd,Rt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,h=Nl(u,s),y=Math.exp(-d);return ya-f/h*y},i=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),x=Nl(Math.pow(u,2),s);return(-o(u)+ya>0?-1:1)*((f-h)*y)/x}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ya+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=UT(o,i,a);if(e=rn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const BT=12;function UT(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function GT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jd(e,HT)&&Jd(e,WT)){const n=zT(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Xg({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=GT({...r,velocity:-Rt(r.velocity||0)}),h=d||0,y=l/(2*Math.sqrt(a*u)),x=i-o,T=Rt(Math.sqrt(a/u)),g=Math.abs(x)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(y<1){const m=Nl(T,y);p=S=>{const C=Math.exp(-y*T*S);return i-C*((h+y*T*x)/m*Math.sin(m*S)+x*Math.cos(m*S))}}else if(y===1)p=m=>i-Math.exp(-T*m)*(x+(h+T*x)*m);else{const m=T*Math.sqrt(y*y-1);p=S=>{const C=Math.exp(-y*T*S),P=Math.min(m*S,300);return i-C*((h+y*T*x)*Math.sinh(P)+m*x*Math.cosh(P))/m}}return{calculatedDuration:f&&c||null,next:m=>{const S=p(m);if(f)s.done=m>=c;else{let C=h;m!==0&&(y<1?C=Qg(p,m,S):C=0);const P=Math.abs(C)<=n,E=Math.abs(i-S)<=t;s.done=P&&E}return s.value=s.done?i:S,s}}}function ef({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=k=>a!==void 0&&kl,y=k=>a===void 0?l:l===void 0||Math.abs(a-k)-x*Math.exp(-k/r),m=k=>g+p(k),S=k=>{const M=p(k),j=m(k);f.done=Math.abs(M)<=u,f.value=f.done?g:j};let C,P;const E=k=>{h(f.value)&&(C=k,P=Xg({keyframes:[f.value,y(f.value)],velocity:Qg(m,k,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:k=>{let M=!1;return!P&&C===void 0&&(M=!0,S(k),E(k)),C!==void 0&&k>C?P.next(k-C):(!M&&S(k),f)}}}const KT=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>_t(t),now:()=>Ee.isProcessing?Ee.timestamp:performance.now()}},tf=2e4;function nf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=tf?1/0:t}const YT={decay:ef,inertia:ef,tween:ts,keyframes:ts,spring:Xg};function ns({autoplay:e=!0,delay:t=0,driver:n=KT,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h=1,y=!1,x,T;const g=()=>{T=new Promise(_=>{x=_})};g();let p;const m=YT[o]||ts;let S;m!==ts&&typeof r[0]!="number"&&(S=Kg([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...f,keyframes:r});let P;a==="mirror"&&(P=m({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",k=null,M=null,j=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=nf(C));const{calculatedDuration:H}=C;let $=1/0,re=1/0;H!==null&&($=H+s,re=$*(i+1)-s);let L=0;const J=_=>{if(M===null)return;h>0&&(M=Math.min(M,_)),h<0&&(M=Math.min(_-re/h,M)),k!==null?L=k:L=Math.round(_-M)*h;const U=L-t*(h>=0?1:-1),K=h>=0?U<0:U>re;L=Math.max(U,0),E==="finished"&&k===null&&(L=re);let ze=L,zn=C;if(i){const _s=Math.min(L,re)/$;let Io=Math.floor(_s),mn=_s%1;!mn&&_s>=1&&(mn=1),mn===1&&Io--,Io=Math.min(Io,i+1),!!(Io%2)&&(a==="reverse"?(mn=1-mn,s&&(mn-=s/$)):a==="mirror"&&(zn=P)),ze=an(0,1,mn)*$}const Be=K?{done:!1,value:r[0]}:zn.next(ze);S&&(Be.value=S(Be.value));let{done:hn}=Be;!K&&H!==null&&(hn=h>=0?L>=re:L<=0);const Qv=k===null&&(E==="finished"||E==="running"&&hn);return d&&d(Be.value),Qv&&A(),Be},B=()=>{p&&p.stop(),p=void 0},ce=()=>{E="idle",B(),x(),g(),M=j=null},A=()=>{E="finished",c&&c(),B(),x()},O=()=>{if(y)return;p||(p=n(J));const _=p.now();l&&l(),k!==null?M=_-k:(!M||E==="finished")&&(M=_),E==="finished"&&g(),j=M,k=null,E="running",p.start()};e&&O();const I={then(_,U){return T.then(_,U)},get time(){return Rt(L)},set time(_){_=rn(_),L=_,k!==null||!p||h===0?k=_:M=p.now()-_/h},get duration(){const _=C.calculatedDuration===null?nf(C):C.calculatedDuration;return Rt(_)},get speed(){return h},set speed(_){_===h||!p||(h=_,I.time=Rt(L))},get state(){return E},play:O,pause:()=>{E="paused",k=L},stop:()=>{y=!0,E!=="idle"&&(E="idle",u&&u(),ce())},cancel:()=>{j!==null&&J(j),ce()},complete:()=>{E="finished"},sample:_=>(M=0,J(_))};return I}function QT(e){let t;return()=>(t===void 0&&(t=e()),t)}const XT=QT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),qT=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ai=10,ZT=2e4,JT=(e,t)=>t.type==="spring"||e==="backgroundColor"||!bg(t.ease);function eC(e,t,{onUpdate:n,onComplete:r,...o}){if(!(XT()&&qT.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:f=300,ease:h,times:y}=o;if(JT(t,o)){const m=ns({...o,repeat:0,delay:0});let S={done:!1,value:d[0]};const C=[];let P=0;for(;!S.done&&P{u=!1,x.cancel()},g=()=>{u=!0,Z.update(T),a(),c()};return x.onfinish=()=>{u||(e.set(dT(d,o)),r&&r(),g())},{then(m,S){return l.then(m,S)},attachTimeline(m){return x.timeline=m,x.onfinish=null,ue},get time(){return Rt(x.currentTime||0)},set time(m){x.currentTime=rn(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return Rt(f)},play:()=>{s||(x.play(),_t(T))},pause:()=>x.pause(),stop:()=>{if(s=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const S=ns({...o,autoplay:!1});e.setWithVelocity(S.sample(m-ai).value,S.sample(m).value,ai)}g()},complete:()=>{u||x.finish()},cancel:g}}function tC({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ue,pause:ue,stop:ue,then:i=>(i(),Promise.resolve()),cancel:ue,complete:ue});return t?ns({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const nC={type:"spring",stiffness:500,damping:25,restSpeed:10},rC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),oC={type:"keyframes",duration:.8},iC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sC=(e,{keyframes:t})=>t.length>2?oC:Vn.has(e)?e.startsWith("scale")?rC(t[1]):nC:iC,Rl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ln.test(t)||t==="0")&&!t.startsWith("url(")),aC=new Set(["brightness","contrast","saturate","opacity"]);function lC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Rs)||[];if(!r)return e;const o=n.replace(r,"");let i=aC.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const uC=/([a-z-]*)\(.*?\)/g,Ml={...ln,getAnimatableNone:e=>{const t=e.match(uC);return t?t.map(lC).join(" "):e}},cC={...dg,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:Ml,WebkitFilter:Ml},ic=e=>cC[e];function qg(e,t){let n=ic(e);return n!==Ml&&(n=ln),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zg=e=>/^0[^.\s]+$/.test(e);function dC(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Zg(e)}function fC(e,t,n,r){const o=Rl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=sc(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-rn(s);const l=fC(t,e,n,i),u=l[0],c=l[l.length-1],d=Rl(e,u),f=Rl(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(pC(i)||(h={...h,...sC(e,h)}),h.duration&&(h.duration=rn(h.duration)),h.repeatDelay&&(h.repeatDelay=rn(h.repeatDelay)),!d||!f||uT.current||i.type===!1||hC.skipAnimations)return tC(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=eC(t,e,h);if(y)return y}return ns(h)};function rs(e){return!!(Fe(e)&&e.add)}const Jg=e=>/^\-?\d*\.?\d+$/.test(e);function lc(e,t){e.indexOf(t)===-1&&e.push(t)}function uc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class cc{constructor(){this.subscriptions=[]}add(t){return lc(this.subscriptions,t),()=>uc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class gC{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Ee;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=mC(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Yg(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wr(e,t){return new gC(e,t)}const ev=e=>t=>t.test(e),vC={test:e=>e==="auto",parse:e=>e},tv=[Fn,D,wt,Ft,CS,TS,vC],Ir=e=>tv.find(ev(e)),yC=[...tv,Ne,ln],xC=e=>yC.find(ev(e));function wC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wr(n))}function SC(e,t){const n=js(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=IS(i[s]);wC(e,s,a)}}function TC(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(T)}return s&&Promise.all(u).then(()=>{s&&SC(e,s)}),u}function jl(e,t,n={}){const r=js(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(nv(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return bC(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function bC(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(AC).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(jl(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function AC(e,t){return e.sortNodePosition(t)}function NC(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>jl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=jl(e,t,n);else{const o=typeof t=="function"?js(e,t,n.custom):t;r=Promise.all(nv(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const RC=[...Gu].reverse(),MC=Gu.length;function jC(e){return t=>Promise.all(t.map(({animation:n,options:r})=>NC(e,n,r)))}function LC(e){let t=jC(e);const n=_C();let r=!0;const o=(l,u)=>{const c=js(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let y={},x=1/0;for(let g=0;gx&&C,j=!1;const H=Array.isArray(S)?S:[S];let $=H.reduce(o,{});P===!1&&($={});const{prevResolvedValues:re={}}=m,L={...re,...$},J=B=>{M=!0,h.has(B)&&(j=!0,h.delete(B)),m.needsAnimating[B]=!0};for(const B in L){const ce=$[B],A=re[B];if(y.hasOwnProperty(B))continue;let O=!1;Ji(ce)&&Ji(A)?O=!Pg(ce,A):O=ce!==A,O?ce!==void 0?J(B):h.add(B):ce!==void 0&&h.has(B)?J(B):m.protectedKeys[B]=!0}m.prevProp=S,m.prevResolvedValues=$,m.isActive&&(y={...y,...$}),r&&e.blockInitialAnimation&&(M=!1),M&&(!E||j)&&f.push(...H.map(B=>({animation:B,options:{type:p,...l}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),f.push({animation:g})}let T=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function OC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pg(t,e):!1}function gn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _C(){return{animate:gn(!0),whileInView:gn(),whileHover:gn(),whileTap:gn(),whileDrag:gn(),whileFocus:gn(),exit:gn()}}class $C extends fn{constructor(t){super(t),t.animationState||(t.animationState=LC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),As(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let DC=0;class IC extends fn{constructor(){super(...arguments),this.id=DC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VC={animation:{Feature:$C},exit:{Feature:IC}},rf=(e,t)=>Math.abs(e-t);function FC(e,t){const n=rf(e.x,t.x),r=rf(e.y,t.y);return Math.sqrt(n**2+r**2)}class rv{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=wa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=FC(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:y}=d,{timestamp:x}=Ee;this.history.push({...y,timestamp:x});const{onStart:T,onMove:g}=this.handlers;f||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=xa(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=wa(d.type==="pointercancel"?this.lastMoveEventInfo:xa(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,T),y&&y(d,T)},!wg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ms(t),a=xa(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,wa(a,this.history)),this.removeListeners=nn(Nt(this.contextWindow,"pointermove",this.handlePointerMove),Nt(this.contextWindow,"pointerup",this.handlePointerUp),Nt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}}function xa(e,t){return t?{point:t(e.point)}:e}function of(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wa({point:e},t){return{point:e,delta:of(e,ov(t)),offset:of(e,zC(t)),velocity:BC(t,.1)}}function zC(e){return e[0]}function ov(e){return e[e.length-1]}function BC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ov(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>rn(t)));)n--;if(!r)return{x:0,y:0};const i=Rt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ye(e){return e.max-e.min}function Ll(e,t=0,n=.01){return Math.abs(e-t)<=n}function sf(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=Ye(n)/Ye(t),(Ll(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(Ll(e.translate)||isNaN(e.translate))&&(e.translate=0)}function no(e,t,n,r){sf(e.x,t.x,n.x,r?r.originX:void 0),sf(e.y,t.y,n.y,r?r.originY:void 0)}function af(e,t,n){e.min=n.min+t.min,e.max=e.min+Ye(t)}function UC(e,t,n){af(e.x,t.x,n.x),af(e.y,t.y,n.y)}function lf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ye(t)}function ro(e,t,n){lf(e.x,t.x,n.x),lf(e.y,t.y,n.y)}function WC(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function uf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function HC(e,{top:t,left:n,bottom:r,right:o}){return{x:uf(e.x,n,o),y:uf(e.y,t,r)}}function cf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ko(t.min,t.max-r,e.min):r>o&&(n=ko(e.min,e.max-o,t.min)),an(0,1,n)}function YC(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ol=.35;function QC(e=Ol){return e===!1?e=0:e===!0&&(e=Ol),{x:df(e,"left","right"),y:df(e,"top","bottom")}}function df(e,t,n){return{min:ff(e,t),max:ff(e,n)}}function ff(e,t){return typeof e=="number"?e:e[t]||0}const pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:pf(),y:pf()}),hf=()=>({min:0,max:0}),pe=()=>({x:hf(),y:hf()});function Ze(e){return[e("x"),e("y")]}function iv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Sa(e){return e===void 0||e===1}function _l({scale:e,scaleX:t,scaleY:n}){return!Sa(e)||!Sa(t)||!Sa(n)}function xn(e){return _l(e)||sv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function sv(e){return mf(e.x)||mf(e.y)}function mf(e){return e&&e!=="0%"}function os(e,t,n){const r=e-n,o=t*r;return n+o}function gf(e,t,n,r,o){return o!==void 0&&(e=os(e,o,r)),os(e,n,r)+t}function $l(e,t=0,n=1,r,o){e.min=gf(e.min,t,n,r,o),e.max=gf(e.max,t,n,r,o)}function av(e,{x:t,y:n}){$l(e.x,t.translate,t.scale,t.originPoint),$l(e.y,n.translate,n.scale,n.originPoint)}function ZC(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Ut(e,t){e.min=e.min+t,e.max=e.max+t}function yf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ie(e.min,e.max,i);$l(e,t[n],t[r],s,t.scale)}const JC=["x","scaleX","originX"],eE=["y","scaleY","originY"];function ir(e,t){yf(e.x,t,JC),yf(e.y,t,eE)}function lv(e,t){return iv(qC(e.getBoundingClientRect(),t))}function tE(e,t,n){const r=lv(e,n),{scroll:o}=t;return o&&(Ut(r.x,o.offset.x),Ut(r.y,o.offset.y)),r}const uv=({current:e})=>e?e.ownerDocument.defaultView:null,nE=new WeakMap;class rE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ms(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:y}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Tg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ze(T=>{let g=this.getAxisMotionValue(T).get()||0;if(wt.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[T];m&&(g=Ye(m)*(parseFloat(g)/100))}}this.originPoint[T]=g}),y&&Z.update(()=>y(c,d),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:y,onDrag:x}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:T}=d;if(h&&this.currentDirection===null){this.currentDirection=oE(T),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,T),this.updateAxis("y",d.point,T),this.visualElement.render(),x&&x(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Ze(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rv(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:uv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Z.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!li(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=WC(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&nr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=HC(o.layoutBox,n):this.constraints=!1,this.elastic=QC(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ze(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=YC(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=tE(r,o.root,this.visualElement.getTransformPagePoint());let s=GC(o.layout.layoutBox,i);if(n){const a=n(XC(s));this.hasMutatedConstraints=!!a,a&&(s=iv(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ze(c=>{if(!li(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ac(t,r,0,n))}stopAnimation(){Ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ze(n=>{const{drag:r}=this.getProps();if(!li(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ie(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ze(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=KC({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ze(s=>{if(!li(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ie(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;nE.set(this.visualElement,this);const t=this.visualElement.current,n=Nt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();nr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=bt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ze(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Ol,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function li(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iE extends fn{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new rE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const xf=e=>(t,n)=>{e&&Z.update(()=>e(t,n))};class sE extends fn{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new rv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:xf(t),onStart:xf(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Nt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function aE(){const e=v.useContext(Wu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=v.useId();return v.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ei={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=wf(e,t.target.x),r=wf(e,t.target.y);return`${n}% ${r}%`}},lE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ln.parse(e);if(o.length>5)return r;const i=ln.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ie(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class uE extends N.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;mS(cE),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ei.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cv(e){const[t,n]=aE(),r=v.useContext(ig);return N.createElement(uE,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(sg),isPresent:t,safeToRemove:n})}const cE={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:lE},dv=["TopLeft","TopRight","BottomLeft","BottomRight"],dE=dv.length,Sf=e=>typeof e=="string"?parseFloat(e):e,Tf=e=>typeof e=="number"||D.test(e);function fE(e,t,n,r,o,i){o?(e.opacity=ie(0,n.opacity!==void 0?n.opacity:1,pE(r)),e.opacityExit=ie(t.opacity!==void 0?t.opacity:1,0,hE(r))):i&&(e.opacity=ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ko(e,t,r))}function Ef(e,t){e.min=t.min,e.max=t.max}function qe(e,t){Ef(e.x,t.x),Ef(e.y,t.y)}function Pf(e,t,n,r,o){return e-=t,e=os(e,1/n,r),o!==void 0&&(e=os(e,1/o,r)),e}function mE(e,t=0,n=1,r=.5,o,i=e,s=e){if(wt.test(t)&&(t=parseFloat(t),t=ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ie(i.min,i.max,r);e===i&&(a-=t),e.min=Pf(e.min,t,n,a,o),e.max=Pf(e.max,t,n,a,o)}function kf(e,t,[n,r,o],i,s){mE(e,t[n],t[r],t[o],t.scale,i,s)}const gE=["x","scaleX","originX"],vE=["y","scaleY","originY"];function bf(e,t,n,r){kf(e.x,t,gE,n?n.x:void 0,r?r.x:void 0),kf(e.y,t,vE,n?n.y:void 0,r?r.y:void 0)}function Af(e){return e.translate===0&&e.scale===1}function pv(e){return Af(e.x)&&Af(e.y)}function yE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function hv(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Nf(e){return Ye(e.x)/Ye(e.y)}class xE{constructor(){this.members=[]}add(t){lc(this.members,t),t.scheduleRender()}remove(t){if(uc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Rf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const wE=(e,t)=>e.depth-t.depth;class SE{constructor(){this.children=[],this.isDirty=!1}add(t){lc(this.children,t),this.isDirty=!0}remove(t){uc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wE),this.isDirty=!1,this.children.forEach(t)}}function TE(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(_t(r),e(i-t))};return Z.read(r,!0),()=>_t(r)}function CE(e){window.MotionDebug&&window.MotionDebug.record(e)}function EE(e){return e instanceof SVGElement&&e.tagName!=="svg"}function PE(e,t,n){const r=Fe(e)?e:wr(e);return r.start(ac("",r,t,n)),r.animation}const Mf=["","X","Y","Z"],kE={visibility:"hidden"},jf=1e3;let bE=0;const wn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=bE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wn.totalNodes=wn.resolvedTargetDeltas=wn.recalculatedProjection=0,this.nodes.forEach(RE),this.nodes.forEach(_E),this.nodes.forEach($E),this.nodes.forEach(ME),CE(wn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=TE(f,250),Ei.hasAnimatedSinceResize&&(Ei.hasAnimatedSinceResize=!1,this.nodes.forEach(Of))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||zE,{onLayoutAnimationStart:T,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!hv(this.targetLayout,y)||h,m=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const S={...sc(x,"layout"),onPlay:T,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Of(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(DE),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(jE),this.sharedNodes.forEach(IE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=S/1e3;_f(d.x,s.x,C),_f(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ro(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),VE(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&yE(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=pe()),qe(m,this.relativeTarget)),x&&(this.animationValues=c,fE(c,u,this.latestValues,C,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Ei.hasAnimatedSinceResize=!0,this.currentAnimation=PE(0,jf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&gv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||pe();const d=Ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}qe(a,l),ir(a,c),no(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new xE),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Lf),this.root.sharedNodes.clear()}}}function AE(e){e.updateLayout()}function NE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ze(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ye(f);f.min=r[d].min,f.max=f.min+h}):gv(i,n.layoutBox,r)&&Ze(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ye(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=or();no(a,r,n.layoutBox);const l=or();s?no(l,e.applyTransform(o,!0),n.measuredBox):no(l,r,n.layoutBox);const u=!pv(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const y=pe();ro(y,n.layoutBox,f.layoutBox);const x=pe();ro(x,r,h.layoutBox),hv(y,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function RE(e){wn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ME(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jE(e){e.clearSnapshot()}function Lf(e){e.clearMeasurements()}function LE(e){e.isLayoutDirty=!1}function OE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Of(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _E(e){e.resolveTargetDelta()}function $E(e){e.calcProjection()}function DE(e){e.resetRotation()}function IE(e){e.removeLeadSnapshot()}function _f(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $f(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function VE(e,t,n,r){$f(e.x,t.x,n.x,r),$f(e.y,t.y,n.y,r)}function FE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zE={duration:.45,ease:[.4,0,.1,1]},Df=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),If=Df("applewebkit/")&&!Df("chrome/")?Math.round:ue;function Vf(e){e.min=If(e.min),e.max=If(e.max)}function BE(e){Vf(e.x),Vf(e.y)}function gv(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ll(Nf(t),Nf(n),.2)}const UE=mv({attachResizeListener:(e,t)=>bt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ta={current:void 0},vv=mv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ta.current){const e=new UE({});e.mount(window),e.setOptions({layoutScroll:!0}),Ta.current=e}return Ta.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),WE={pan:{Feature:sE},drag:{Feature:iE,ProjectionNode:vv,MeasureLayout:cv}},HE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function GE(e){const t=HE.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Dl(e,t,n=1){const[r,o]=GE(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Jg(s)?parseFloat(s):s}else return kl(o)?Dl(o,t,n+1):o}function KE(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!kl(i))return;const s=Dl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!kl(i))continue;const s=Dl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const YE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),yv=e=>YE.has(e),QE=e=>Object.keys(e).some(yv),Ff=e=>e===Fn||e===D,zf=(e,t)=>parseFloat(e.split(", ")[t]),Bf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return zf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?zf(i[1],e):0}},XE=new Set(["x","y","z"]),qE=Oo.filter(e=>!XE.has(e));function ZE(e){const t=[];return qE.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Sr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Bf(4,13),y:Bf(5,14)};Sr.translateX=Sr.x;Sr.translateY=Sr.y;const JE=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Sr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Sr[u](l,i)}),e},eP=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(yv);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Ir(c);const f=t[l];let h;if(Ji(f)){const y=f.length,x=f[0]===null?1:0;c=f[x],d=Ir(c);for(let T=x;T=0?window.pageYOffset:null,u=JE(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),bs&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function tP(e,t,n,r){return QE(t)?eP(e,t,n,r):{target:t,transitionEnd:r}}const nP=(e,t,n,r)=>{const o=KE(e,t,r);return t=o.target,r=o.transitionEnd,tP(e,t,n,r)},Il={current:null},xv={current:!1};function rP(){if(xv.current=!0,!!bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Il.current=e.matches;e.addListener(t),t()}else Il.current=!1}function oP(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Fe(i))e.addValue(o,i),rs(r)&&r.add(o);else if(Fe(s))e.addValue(o,wr(i,{owner:e})),rs(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,wr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Uf=new WeakMap,wv=Object.keys(Po),iP=wv.length,Wf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sP=Ku.length;class aP{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Z.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Ns(n),this.isVariantNode=og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Fe(f)&&(f.set(a[d],!1),rs(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Uf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),xv.current||rP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Il.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Uf.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=wr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=ec(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Fe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sv extends aP{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=EC(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){TC(this,r,s);const a=nP(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function lP(e){return window.getComputedStyle(e)}class uP extends Sv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vn.has(n)){const r=ic(n);return r&&r.default||0}else{const r=lP(t),o=(ug(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lv(t,n)}build(t,n,r,o){Qu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ju(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){mg(t,n,r,o)}}class cP extends Sv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vn.has(n)){const r=ic(n);return r&&r.default||0}return n=gg.has(n)?n:Hu(n),t.getAttribute(n)}measureInstanceViewportBox(){return pe()}scrapeMotionValuesFromProps(t,n){return yg(t,n)}build(t,n,r,o){qu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){vg(t,n,r,o)}mount(t){this.isSVGTag=Zu(t.tagName),super.mount(t)}}const dP=(e,t)=>Yu(e)?new cP(t,{enableHardwareAcceleration:!1}):new uP(t,{enableHardwareAcceleration:!0}),fP={layout:{ProjectionNode:vv,MeasureLayout:cv}},pP={...VC,...iT,...WE,...fP},$t=pS((e,t)=>GS(e,t,pP,dP)),hP=({onServiceClick:e})=>w.jsx("section",{className:"text-gray-800 py-20 md:py-28 bg-white",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[w.jsxs($t.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},children:[w.jsxs("h1",{className:"text-4xl md:text-5xl font-extrabold mb-6 text-gray-900 leading-tight",children:["Sua Fatura Neoenergia Elektro",w.jsx("span",{className:"block text-green-600",children:"Rápido, Fácil e Seguro"})]}),w.jsx("p",{className:"text-lg md:text-xl mb-8 text-gray-600",children:"Acesse a 2ª via da sua conta de luz, solicite religação e outros serviços com total segurança e praticidade."}),w.jsxs(Ps,{size:"lg",className:"bg-green-500 hover:bg-green-600 text-white font-bold px-8 py-4 text-lg shadow-lg",onClick:()=>e("2ª Via de Fatura"),children:[w.jsx(Ym,{className:"mr-3 h-6 w-6"}),"Consultar 2ª Via Agora"]})]}),w.jsx($t.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.2},className:"hidden md:block",children:w.jsx("img",{src:"https://storage.googleapis.com/hostinger-horizons-assets-prod/8c2ea0c4-8129-41af-8f76-bbdc14cca55b/5a930969a9311a81427a316f2b99a552.png",alt:"Neoenergia Logo Completo",className:"w-full h-auto"})})]})})}),mP=()=>w.jsx("section",{className:"py-20 md:py-28 bg-gray-50",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[w.jsxs($t.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"text-center md:text-left",children:[w.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold mb-6 text-gray-900",children:"Acesso fácil e seguro na palma da sua mão"}),w.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Resolva tudo o que precisa sobre sua conta de energia diretamente pelo celular, com a segurança que você merece."}),w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"flex items-start",children:[w.jsx(Uw,{className:"w-8 h-8 text-green-500 mr-4 flex-shrink-0"}),w.jsxs("div",{children:[w.jsx("h3",{className:"font-bold text-gray-800",children:"Navegação Segura"}),w.jsx("p",{className:"text-gray-600",children:"Seus dados protegidos com a mais alta tecnologia."})]})]}),w.jsxs("div",{className:"flex items-start",children:[w.jsx(Uu,{className:"w-8 h-8 text-green-500 mr-4 flex-shrink-0"}),w.jsxs("div",{children:[w.jsx("h3",{className:"font-bold text-gray-800",children:"Serviços Rápidos"}),w.jsx("p",{className:"text-gray-600",children:"Acesse sua 2ª via e outros serviços em segundos."})]})]}),w.jsxs("div",{className:"flex items-start",children:[w.jsx(Hw,{className:"w-8 h-8 text-green-500 mr-4 flex-shrink-0"}),w.jsxs("div",{children:[w.jsx("h3",{className:"font-bold text-gray-800",children:"Totalmente Responsivo"}),w.jsx("p",{className:"text-gray-600",children:"Experiência perfeita em qualquer dispositivo."})]})]})]})]}),w.jsx($t.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"flex justify-center",children:w.jsx("img",{alt:"Site da Neoenergia sendo exibido em um smartphone para demonstrar a responsividade",className:"max-w-xs md:max-w-sm",src:"https://storage.googleapis.com/hostinger-horizons-assets-prod/8c2ea0c4-8129-41af-8f76-bbdc14cca55b/3b0c678d83e2ffcf09605bb4e22c9622.png"})})]})})}),Tv=N.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:be("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Tv.displayName="Card";const Cv=N.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:be("flex flex-col space-y-1.5 p-6",e),...t}));Cv.displayName="CardHeader";const Ev=N.forwardRef(({className:e,...t},n)=>w.jsx("h3",{ref:n,className:be("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ev.displayName="CardTitle";const gP=N.forwardRef(({className:e,...t},n)=>w.jsx("p",{ref:n,className:be("text-sm text-muted-foreground",e),...t}));gP.displayName="CardDescription";const Pv=N.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:be("p-6 pt-0",e),...t}));Pv.displayName="CardContent";const vP=N.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:be("flex items-center p-6 pt-0",e),...t}));vP.displayName="CardFooter";const yP=({onServiceClick:e})=>{const t=[{icon:Ym,title:"2ª Via de Fatura",description:"Acesse a segunda via da sua conta de forma rápida e segura.",buttonText:"Emitir 2ª Via"},{icon:Uu,title:"Religar Energia",description:"Solicite a religação da sua energia após a quitação de débitos.",buttonText:"Solicitar Religação"},{icon:Vw,title:"Antecipar Fatura",description:"Pague suas faturas futuras e organize suas finanças.",buttonText:"Ver Faturas"},{icon:Es,title:"Atendimento Online",description:"Fale com um de nossos especialistas para tirar dúvidas.",buttonText:"Iniciar Atendimento"}];return w.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:w.jsxs("div",{className:"container mx-auto px-4",children:[w.jsxs($t.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12 md:mb-16",children:[w.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:"Nossos Principais Serviços"}),w.jsx("p",{className:"text-lg md:text-xl text-gray-600 max-w-3xl mx-auto",children:"Resolva tudo o que precisa sem sair de casa, com apenas alguns cliques."})]}),w.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8",children:t.map((n,r)=>w.jsx($t.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},children:w.jsxs(Tv,{className:"service-card text-center flex flex-col h-full p-6",children:[w.jsxs(Cv,{className:"items-center",children:[w.jsx("div",{className:"bg-green-100 text-green-600 rounded-full p-4 mb-4",children:w.jsx(n.icon,{className:"w-8 h-8"})}),w.jsx(Ev,{className:"text-xl",children:n.title})]}),w.jsx(Pv,{className:"flex-grow",children:w.jsx("p",{className:"text-gray-600",children:n.description})}),w.jsx("div",{className:"mt-4",children:w.jsx(Ps,{onClick:()=>e(n.title),className:"w-full bg-green-500 hover:bg-green-600 text-white",children:n.buttonText})})]})},r))})]})})},xP=()=>w.jsx("section",{id:"about",className:"py-20 bg-white",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsxs($t.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"max-w-4xl mx-auto",children:[w.jsxs("div",{className:"text-center mb-12",children:[w.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:"Sobre a Neoenergia Elektro"}),w.jsx("p",{className:"text-lg md:text-xl text-gray-600",children:"Compromisso com a qualidade e a inovação no fornecimento de energia."})]}),w.jsxs("div",{className:"grid md:grid-cols-3 gap-8 text-center",children:[w.jsxs("div",{className:"p-6",children:[w.jsx("div",{className:"flex justify-center mb-4",children:w.jsx("div",{className:"bg-green-100 text-green-600 rounded-full p-4",children:w.jsx(Uu,{className:"w-8 h-8"})})}),w.jsx("h3",{className:"text-xl font-bold mb-2",children:"Inovação e Tecnologia"}),w.jsx("p",{className:"text-gray-600",children:"Investimos constantemente em redes inteligentes e tecnologia de ponta para garantir um fornecimento de energia mais seguro e eficiente para todos."})]}),w.jsxs("div",{className:"p-6",children:[w.jsx("div",{className:"flex justify-center mb-4",children:w.jsx("div",{className:"bg-green-100 text-green-600 rounded-full p-4",children:w.jsx(Gw,{className:"w-8 h-8"})})}),w.jsx("h3",{className:"text-xl font-bold mb-2",children:"Foco no Cliente"}),w.jsx("p",{className:"text-gray-600",children:"Nossa prioridade é você. Oferecemos canais de atendimento digitais e acessíveis para resolver suas necessidades com agilidade e conveniência."})]}),w.jsxs("div",{className:"p-6",children:[w.jsx("div",{className:"flex justify-center mb-4",children:w.jsx("div",{className:"bg-green-100 text-green-600 rounded-full p-4",children:w.jsx(Bw,{className:"w-8 h-8"})})}),w.jsx("h3",{className:"text-xl font-bold mb-2",children:"Ampla Cobertura"}),w.jsx("p",{className:"text-gray-600",children:"A Elektro, parte do grupo Neoenergia, atende milhões de clientes em São Paulo e Mato Grosso do Sul, levando energia de qualidade para cidades e áreas rurais."})]})]})]})})});function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;ty,Object.values(y));return v.createElement(x.Provider,{value:T},h)}function c(d,f){const h=(f==null?void 0:f[e][l])||a,y=v.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,wP(o,...t)]}function wP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function SP(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function bv(...e){return t=>e.forEach(n=>SP(n,t))}function Vl(...e){return v.useCallback(bv(...e),e)}const is=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(CP);if(i){const s=i.props.children,a=o.map(l=>l===i?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:l);return v.createElement(Fl,fe({},r,{ref:t}),v.isValidElement(s)?v.cloneElement(s,void 0,a):null)}return v.createElement(Fl,fe({},r,{ref:t}),n)});is.displayName="Slot";const Fl=v.forwardRef((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...EP(r,n.props),ref:t?bv(t,n.ref):n.ref}):v.Children.count(n)>1?v.Children.only(null):null});Fl.displayName="SlotClone";const TP=({children:e})=>v.createElement(v.Fragment,null,e);function CP(e){return v.isValidElement(e)&&e.type===TP}function EP(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function PP(e){const t=e+"CollectionProvider",[n,r]=kv(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:x}=h,T=N.useRef(null),g=N.useRef(new Map).current;return N.createElement(o,{scope:y,itemMap:g,collectionRef:T},x)},a=e+"CollectionSlot",l=N.forwardRef((h,y)=>{const{scope:x,children:T}=h,g=i(a,x),p=Vl(y,g.collectionRef);return N.createElement(is,{ref:p},T)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=N.forwardRef((h,y)=>{const{scope:x,children:T,...g}=h,p=N.useRef(null),m=Vl(y,p),S=i(u,x);return N.useEffect(()=>(S.itemMap.set(p,{ref:p,...g}),()=>void S.itemMap.delete(p))),N.createElement(is,{[c]:"",ref:m},T)});function f(h){const y=i(e+"CollectionConsumer",h);return N.useCallback(()=>{const T=y.collectionRef.current;if(!T)return[];const g=Array.from(T.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((S,C)=>g.indexOf(S.ref.current)-g.indexOf(C.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},f,r]}function kP(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 Av(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Nv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=bP({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Av(n),l=v.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[i,e,o,a]);return[s,l]}function bP({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Av(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const AP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Rv=AP.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?is:t;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,fe({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function NP(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 RP(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];function u(d){const{scope:f,children:h,...y}=d,x=(f==null?void 0:f[e][l])||a,T=v.useMemo(()=>y,Object.values(y));return v.createElement(x.Provider,{value:T},h)}function c(d,f){const h=(f==null?void 0:f[e][l])||a,y=v.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,MP(o,...t)]}function MP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Mv(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function jP({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=LP({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Mv(n),l=v.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[i,e,o,a]);return[s,l]}function LP({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Mv(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const ss=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function OP(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function jv(...e){return t=>e.forEach(n=>OP(n,t))}function Lv(...e){return v.useCallback(jv(...e),e)}const Ov=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find($P);if(i){const s=i.props.children,a=o.map(l=>l===i?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:l);return v.createElement(zl,fe({},r,{ref:t}),v.isValidElement(s)?v.cloneElement(s,void 0,a):null)}return v.createElement(zl,fe({},r,{ref:t}),n)});Ov.displayName="Slot";const zl=v.forwardRef((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...DP(r,n.props),ref:t?jv(t,n.ref):n.ref}):v.Children.count(n)>1?v.Children.only(null):null});zl.displayName="SlotClone";const _P=({children:e})=>v.createElement(v.Fragment,null,e);function $P(e){return v.isValidElement(e)&&e.type===_P}function DP(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const IP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dc=IP.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Ov:t;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,fe({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function VP(e,t){return v.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _v=e=>{const{present:t,children:n}=e,r=FP(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Lv(r.ref,o.ref);return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};_v.displayName="Presence";function FP(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=VP(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=ui(r.current);i.current=a==="mounted"?u:"none"},[a]),ss(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,h=ui(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ss(()=>{if(t){const u=d=>{const h=ui(r.current).includes(d.animationName);d.target===t&&h&&jo.flushSync(()=>l("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=ui(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ui(e){return(e==null?void 0:e.animationName)||"none"}const zP=Kl["useId".toString()]||(()=>{});let BP=0;function UP(e){const[t,n]=v.useState(zP());return ss(()=>{e||n(r=>r??String(BP++))},[e]),e||(t?`radix-${t}`:"")}const $v="Collapsible",[WP,Dv]=RP($v),[HP,fc]=WP($v),GP=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[l=!1,u]=jP({prop:r,defaultProp:o,onChange:s});return v.createElement(HP,{scope:n,disabled:i,contentId:UP(),open:l,onOpenToggle:v.useCallback(()=>u(c=>!c),[u])},v.createElement(dc.div,fe({"data-state":pc(l),"data-disabled":i?"":void 0},a,{ref:t})))}),KP="CollapsibleTrigger",YP=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=fc(KP,n);return v.createElement(dc.button,fe({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":pc(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:NP(e.onClick,o.onOpenToggle)}))}),Iv="CollapsibleContent",QP=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=fc(Iv,e.__scopeCollapsible);return v.createElement(_v,{present:n||o.open},({present:i})=>v.createElement(XP,fe({},r,{ref:t,present:i})))}),XP=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=fc(Iv,n),[a,l]=v.useState(r),u=v.useRef(null),c=Lv(t,u),d=v.useRef(0),f=d.current,h=v.useRef(0),y=h.current,x=s.open||a,T=v.useRef(x),g=v.useRef();return v.useEffect(()=>{const p=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(p)},[]),ss(()=>{const p=u.current;if(p){g.current=g.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const m=p.getBoundingClientRect();d.current=m.height,h.current=m.width,T.current||(p.style.transitionDuration=g.current.transitionDuration,p.style.animationName=g.current.animationName),l(r)}},[s.open,r]),v.createElement(dc.div,fe({"data-state":pc(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x},i,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),x&&o)});function pc(e){return e?"open":"closed"}const qP=GP,ZP=YP,JP=QP,ek=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},tk=Kl["useId".toString()]||(()=>{});let nk=0;function rk(e){const[t,n]=v.useState(tk());return ek(()=>{e||n(r=>r??String(nk++))},[e]),e||(t?`radix-${t}`:"")}const ok=v.createContext(void 0);function ik(e){const t=v.useContext(ok);return e||t||"ltr"}const pn="Accordion",sk=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[hc,ak,lk]=PP(pn),[Ls,jk]=kv(pn,[lk,Dv]),mc=Dv(),Vv=N.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return N.createElement(hc.Provider,{scope:e.__scopeAccordion},n==="multiple"?N.createElement(fk,fe({},i,{ref:t})):N.createElement(dk,fe({},o,{ref:t})))});Vv.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Fv,uk]=Ls(pn),[zv,ck]=Ls(pn,{collapsible:!1}),dk=N.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,l]=Nv({prop:n,defaultProp:r,onChange:o});return N.createElement(Fv,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:N.useCallback(()=>i&&l(""),[i,l])},N.createElement(zv,{scope:e.__scopeAccordion,collapsible:i},N.createElement(Bv,fe({},s,{ref:t}))))}),fk=N.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s=[],a]=Nv({prop:n,defaultProp:r,onChange:o}),l=N.useCallback(c=>a((d=[])=>[...d,c]),[a]),u=N.useCallback(c=>a((d=[])=>d.filter(f=>f!==c)),[a]);return N.createElement(Fv,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u},N.createElement(zv,{scope:e.__scopeAccordion,collapsible:!0},N.createElement(Bv,fe({},i,{ref:t}))))}),[pk,Os]=Ls(pn),Bv=N.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,a=N.useRef(null),l=Vl(a,t),u=ak(n),d=ik(o)==="ltr",f=kP(e.onKeyDown,h=>{var y;if(!sk.includes(h.key))return;const x=h.target,T=u().filter(M=>{var j;return!((j=M.ref.current)!==null&&j!==void 0&&j.disabled)}),g=T.findIndex(M=>M.ref.current===x),p=T.length;if(g===-1)return;h.preventDefault();let m=g;const S=0,C=p-1,P=()=>{m=g+1,m>C&&(m=S)},E=()=>{m=g-1,m{const{__scopeAccordion:n,value:r,...o}=e,i=Os(Bl,n),s=uk(Bl,n),a=mc(n),l=rk(),u=r&&s.value.includes(r)||!1,c=i.disabled||e.disabled;return N.createElement(hk,{scope:n,open:u,disabled:c,triggerId:l},N.createElement(qP,fe({"data-orientation":i.orientation,"data-state":Uv(u)},a,o,{ref:t,disabled:c,open:u,onOpenChange:d=>{d?s.onItemOpen(r):s.onItemClose(r)}})))}),gk="AccordionHeader",vk=N.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Os(pn,n),i=gc(gk,n);return N.createElement(Rv.h3,fe({"data-orientation":o.orientation,"data-state":Uv(i.open),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),Hf="AccordionTrigger",yk=N.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Os(pn,n),i=gc(Hf,n),s=ck(Hf,n),a=mc(n);return N.createElement(hc.ItemSlot,{scope:n},N.createElement(ZP,fe({"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},a,r,{ref:t})))}),xk="AccordionContent",wk=N.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Os(pn,n),i=gc(xk,n),s=mc(n);return N.createElement(JP,fe({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}}))});function Uv(e){return e?"open":"closed"}const Sk=Vv,Tk=mk,Ck=vk,Wv=yk,Hv=wk,Ek=Sk,Gv=N.forwardRef(({className:e,...t},n)=>w.jsx(Tk,{ref:n,className:be("border-b",e),...t}));Gv.displayName="AccordionItem";const Kv=N.forwardRef(({className:e,children:t,...n},r)=>w.jsx(Ck,{className:"flex",children:w.jsxs(Wv,{ref:r,className:be("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,w.jsx(Fw,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Kv.displayName=Wv.displayName;const Yv=N.forwardRef(({className:e,children:t,...n},r)=>w.jsx(Hv,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:w.jsx("div",{className:be("pb-4 pt-0",e),children:t})}));Yv.displayName=Hv.displayName;const Pk=()=>{const e=[{question:"Como emitir a 2ª via da minha fatura?",answer:"É muito simples! Clique em qualquer um dos botões 'Consultar 2ª Via' ou 'Atendimento Online' em nosso site. Você será redirecionado para o nosso WhatsApp, onde um de nossos atendentes irá solicitar os dados necessários e enviar sua fatura em PDF na hora."},{question:"Minha energia foi cortada. Como solicitar a religação?",answer:"Para solicitar a religação, clique no serviço 'Religar Energia' e fale conosco pelo WhatsApp. Informe o endereço e o nome do titular da conta. Após a confirmação do pagamento dos débitos, a religação é processada em até 24 horas para áreas urbanas."},{question:"Como informo falta de energia na minha região?",answer:"Utilize nosso canal de atendimento via WhatsApp. Clique em 'Atendimento Online' e informe seu endereço. Nossa equipe verificará a situação e registrará sua ocorrência para que uma equipe técnica seja enviada o mais rápido possível."},{question:"Este site é seguro para colocar meus dados?",answer:"Sim. Este site utiliza um canal de atendimento oficial via WhatsApp para garantir a segurança das suas informações. Nenhum dado sensível é armazenado em nosso site. Toda a comunicação e envio de documentos ocorrem dentro do ambiente seguro do WhatsApp."}];return w.jsx("section",{id:"faq",className:"py-20 bg-gray-50",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsxs($t.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"max-w-3xl mx-auto",children:[w.jsxs("div",{className:"text-center mb-12",children:[w.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:"Dúvidas Frequentes"}),w.jsx("p",{className:"text-lg md:text-xl text-gray-600",children:"Encontre aqui as respostas para as perguntas mais comuns."})]}),w.jsx(Ek,{type:"single",collapsible:!0,className:"w-full",children:e.map((t,n)=>w.jsxs(Gv,{value:`item-${n}`,children:[w.jsx(Kv,{className:"text-left font-semibold text-lg",children:t.question}),w.jsx(Yv,{className:"text-gray-600 text-base",children:t.answer})]},n))})]})})})},kk=({onServiceClick:e})=>w.jsx("footer",{className:"bg-gray-800 text-white",children:w.jsxs("div",{className:"container mx-auto px-4 py-12",children:[w.jsxs("div",{className:"grid md:grid-cols-3 gap-8 text-center md:text-left",children:[w.jsxs("div",{className:"flex flex-col items-center md:items-start",children:[w.jsx("div",{className:"flex items-center space-x-3 mb-4",children:w.jsx("img",{src:"https://logodownload.org/wp-content/uploads/2019/07/neoenergia-logo-0.png",alt:"Neoenergia Logo",className:"h-8 invert brightness-0"})}),w.jsx("p",{className:"text-gray-400 mb-4 max-w-xs",children:"Energia para recomeçar, transformar e iluminar o futuro."})]}),w.jsxs("div",{children:[w.jsx("h3",{className:"text-lg font-bold mb-4",children:"Serviços Rápidos"}),w.jsxs("ul",{className:"space-y-2 text-gray-400",children:[w.jsx("li",{children:w.jsx("button",{onClick:()=>e("2ª Via de Fatura"),className:"hover:text-white transition-colors",children:"2ª Via de Fatura"})}),w.jsx("li",{children:w.jsx("button",{onClick:()=>e("Religar Energia"),className:"hover:text-white transition-colors",children:"Religar Energia"})}),w.jsx("li",{children:w.jsx("button",{onClick:()=>e("Informar Falta de Energia"),className:"hover:text-white transition-colors",children:"Informar Falta de Energia"})}),w.jsx("li",{children:w.jsx("button",{onClick:()=>e("Débito Automático"),className:"hover:text-white transition-colors",children:"Débito Automático"})})]})]}),w.jsxs("div",{children:[w.jsx("h3",{className:"text-lg font-bold mb-4",children:"Canais de Atendimento"}),w.jsxs("div",{className:"space-y-3 text-gray-400",children:[w.jsxs("div",{className:"flex items-center justify-center md:justify-start space-x-2",children:[w.jsx(Es,{className:"w-5 h-5 text-green-400"}),w.jsx("a",{href:"https://wa.me/message/P2KOXKZ52K2GE1",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:"WhatsApp"})]}),w.jsxs("div",{className:"flex items-center justify-center md:justify-start space-x-2",children:[w.jsx(Ww,{className:"w-5 h-5 text-green-400"}),w.jsx("span",{children:"Ambiente Seguro"})]}),w.jsxs("div",{className:"flex items-center justify-center md:justify-start space-x-2",children:[w.jsx(zw,{className:"w-5 h-5 text-green-400"}),w.jsx("span",{children:"Canal de Ajuda"})]})]})]})]}),w.jsxs("div",{className:"border-t border-gray-700 mt-8 pt-8 text-center text-gray-500",children:[w.jsxs("p",{children:["© ",new Date().getFullYear()," Neoenergia Elektro. Todos os direitos reservados."]}),w.jsx("p",{className:"text-xs mt-2",children:"Este é um portal de serviços independente. Não possuímos vínculo direto com a marca Neoenergia."})]})]})}),bk=()=>{const e=()=>{window.open("https://wa.me/message/P2KOXKZ52K2GE1","_blank")};return w.jsx($t.button,{onClick:e,className:"fixed bottom-6 right-6 bg-green-500 text-white w-16 h-16 rounded-full shadow-lg flex items-center justify-center z-50","aria-label":"Fale conosco pelo WhatsApp",initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.5,ease:"easeOut"},whileHover:{scale:1.1},whileTap:{scale:.9},children:w.jsx(Es,{size:32})})};function Ak(){const{toast:e}=eg(),t=n=>{e({title:"Ação necessária",description:`Para continuar com "${n}", por favor, fale conosco no WhatsApp.`}),setTimeout(()=>{window.open("https://wa.me/message/P2KOXKZ52K2GE1","_blank")},1e3)};return w.jsxs(w.Fragment,{children:[w.jsxs(xl,{children:[w.jsx("title",{children:"Neoenergia Elektro - 2ª Via, Fatura e Serviços Online"}),w.jsx("meta",{name:"description",content:"Acesse a 2ª via da sua fatura Neoenergia Elektro, solicite religação, antecipe pagamentos e fale com nosso atendimento online de forma rápida e segura."})]}),w.jsxs("div",{className:"min-h-screen bg-white",children:[w.jsx(eS,{}),w.jsx(nS,{onServiceClick:t}),w.jsxs("main",{children:[w.jsx(hP,{onServiceClick:t}),w.jsx(mP,{}),w.jsx(yP,{onServiceClick:t}),w.jsx(xP,{}),w.jsx(Pk,{})]}),w.jsx(kk,{onServiceClick:t}),w.jsx(bk,{})]})]})}Ca.createRoot(document.getElementById("root")).render(w.jsx(N.StrictMode,{children:w.jsx(Ak,{})}));