(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();var Hl={exports:{}},ni={},Kl={exports:{}},ae={};/** * @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 bf;function Yg(){if(bf)return ae;bf=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.iterator;function T(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,M={};function V(k,R,se){this.props=k,this.context=R,this.refs=M,this.updater=se||D}V.prototype.isReactComponent={},V.prototype.setState=function(k,R){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,R,"setState")},V.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function I(){}I.prototype=V.prototype;function $(k,R,se){this.props=k,this.context=R,this.refs=M,this.updater=se||D}var K=$.prototype=new I;K.constructor=$,j(K,V.prototype),K.isPureReactComponent=!0;var ne=Array.isArray,X=Object.prototype.hasOwnProperty,ie={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function J(k,R,se){var F,Z={},le=null,de=null;if(R!=null)for(F in R.ref!==void 0&&(de=R.ref),R.key!==void 0&&(le=""+R.key),R)X.call(R,F)&&!ue.hasOwnProperty(F)&&(Z[F]=R[F]);var he=arguments.length-2;if(he===1)Z.children=se;else if(1>>1,R=z[k];if(0>>1;kc(Z,B))lec(de,Z)?(z[k]=de,z[le]=B,k=le):(z[k]=Z,z[F]=B,k=F);else if(lec(de,B))z[k]=de,z[le]=B,k=le;else break e}}return Q}function c(z,Q){var B=z.sortIndex-Q.sortIndex;return B!==0?B:z.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,w=null,T=3,D=!1,j=!1,M=!1,V=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(z){for(var Q=o(g);Q!==null;){if(Q.callback===null)a(g);else if(Q.startTime<=z)a(g),Q.sortIndex=Q.expirationTime,i(m,Q);else break;Q=o(g)}}function ne(z){if(M=!1,K(z),!j)if(o(m)!==null)j=!0,Be(X);else{var Q=o(g);Q!==null&&oe(ne,Q.startTime-z)}}function X(z,Q){j=!1,M&&(M=!1,I(J),J=-1),D=!0;var B=T;try{for(K(Q),w=o(m);w!==null&&(!(w.expirationTime>Q)||z&&!ve());){var k=w.callback;if(typeof k=="function"){w.callback=null,T=w.priorityLevel;var R=k(w.expirationTime<=Q);Q=r.unstable_now(),typeof R=="function"?w.callback=R:w===o(m)&&a(m),K(Q)}else a(m);w=o(m)}if(w!==null)var se=!0;else{var F=o(g);F!==null&&oe(ne,F.startTime-Q),se=!1}return se}finally{w=null,T=B,D=!1}}var ie=!1,ue=null,J=-1,me=5,ge=-1;function ve(){return!(r.unstable_now()-gez||125k?(z.sortIndex=B,i(g,z),o(m)===null&&z===o(g)&&(M?(I(J),J=-1):M=!0,oe(ne,B-k))):(z.sortIndex=R,i(m,z),j||D||(j=!0,Be(X))),z},r.unstable_shouldYield=ve,r.unstable_wrapCallback=function(z){var Q=T;return function(){var B=T;T=Q;try{return z.apply(this,arguments)}finally{T=B}}}})(Yl)),Yl}var id;function Jg(){return id||(id=1,Ql.exports=Zg()),Ql.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 sd;function bg(){if(sd)return it;sd=1;var r=Ca(),i=Jg();function o(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"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},w={};function T(e){return m.call(w,e)?!0:m.call(v,e)?!1:g.test(e)?w[e]=!0:(v[e]=!0,!1)}function D(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,t,n,s){if(t===null||typeof t>"u"||D(e,t,n,s))return!0;if(s)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 M(e,t,n,s,l,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){V[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];V[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[e]=new M(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){V[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){V[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function $(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(I,$);V[t]=new M(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(I,$);V[t]=new M(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(I,$);V[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),V.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){V[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,s){var l=V.hasOwnProperty(t)?V[t]:null;(l!==null?l.type!==0:s||!(2y||l[h]!==u[y]){var S=` `+l[h].replace(" at new "," at ");return e.displayName&&S.includes("")&&(S=S.replace("",e.displayName)),S}while(1<=h&&0<=y);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function Z(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1),e;case 11:return e=F(e.type.render,!1),e;case 1:return e=F(e.type,!0),e;default:return""}}function le(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 ue:return"Fragment";case ie:return"Portal";case me:return"Profiler";case J:return"StrictMode";case Fe:return"Suspense";case He:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ve:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case Me:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case st:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case Be:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function de(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 le(t);case 8:return t===J?"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 he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=Te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(h){s=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(h){s=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=ot(e))}function iu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Te(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Ti(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 qs(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function su(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ou(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function Zs(e,t){ou(e,t);var n=he(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="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 Js(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Fn(e,t,n,s){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={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},Jp=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Jp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function hu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function pu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,l=hu(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,l):e[n]=l}}var bp=B({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 to(e,t){if(t){if(bp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function no(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 ro=null;function io(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,On=null,In=null;function mu(e){if(e=Ur(e)){if(typeof so!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Gi(t),so(e.stateNode,e.type,t))}}function gu(e){On?In?In.push(e):In=[e]:On=e}function yu(){if(On){var e=On,t=In;if(In=On=null,mu(e),t)for(e=0;e>>=0,e===0?32:31-(cm(e)/fm|0)|0}var Ai=64,Mi=4194304;function kr(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 Ri(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,l=e.suspendedLanes,u=e.pingedLanes,h=n&268435455;if(h!==0){var y=h&~l;y!==0?s=kr(y):(u&=h,u!==0&&(s=kr(u)))}else h=n&~l,h!==0?s=kr(h):u!==0&&(s=kr(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&l)===0&&(l=s&-s,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function Pr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function mm(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 s=e.eventTimes;for(e=e.expirationTimes;0=Nr),Ku=" ",Gu=!1;function Qu(e,t){switch(e){case"keyup":return Wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function Km(e,t){switch(e){case"compositionend":return Yu(t);case"keypress":return t.which!==32?null:(Gu=!0,Ku);case"textInput":return e=t.data,e===Ku&&Gu?null:e;default:return null}}function Gm(e,t){if(Un)return e==="compositionend"||!Po&&Qu(e,t)?(e=zu(),ji=vo=Zt=null,Un=!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=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tc(n)}}function rc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ic(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Do(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 tg(e){var t=ic(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rc(n.ownerDocument.documentElement,n)){if(s!==null&&Do(n)){if(t=s.start,e=s.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 l=n.textContent.length,u=Math.min(s.start,l);s=s.end===void 0?u:Math.min(s.end,l),!e.extend&&u>s&&(l=s,s=u,u=l),l=nc(n,u);var h=nc(n,s);l&&h&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.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,$n=null,Ao=null,Fr=null,Mo=!1;function sc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||$n==null||$n!==Ti(s)||(s=$n,"selectionStart"in s&&Do(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Fr&&jr(Fr,s)||(Fr=s,s=Wi(Ao,"onSelect"),0Qn||(e.current=Uo[Qn],Uo[Qn]=null,Qn--)}function ye(e,t){Qn++,Uo[Qn]=e.current,e.current=t}var tn={},Ke=en(tn),be=en(!1),wn=tn;function Yn(e,t){var n=e.type.contextTypes;if(!n)return tn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function Qi(){Se(be),Se(Ke)}function Sc(e,t,n){if(Ke.current!==tn)throw Error(o(168));ye(Ke,t),ye(be,n)}function xc(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var l in s)if(!(l in t))throw Error(o(108,de(e)||"Unknown",l));return B({},n,s)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,wn=Ke.current,ye(Ke,e),ye(be,be.current),!0}function Tc(e,t,n){var s=e.stateNode;if(!s)throw Error(o(169));n?(e=xc(e,t,wn),s.__reactInternalMemoizedMergedChildContext=e,Se(be),Se(Ke),ye(Ke,e)):Se(be),ye(be,n)}var Ot=null,Xi=!1,$o=!1;function kc(e){Ot===null?Ot=[e]:Ot.push(e)}function hg(e){Xi=!0,kc(e)}function nn(){if(!$o&&Ot!==null){$o=!0;var e=0,t=pe;try{var n=Ot;for(pe=1;e>=h,l-=h,It=1<<32-xt(t)+l|n<re?(ze=ee,ee=null):ze=ee.sibling;var fe=L(P,ee,C[re],O);if(fe===null){ee===null&&(ee=ze);break}e&&ee&&fe.alternate===null&&t(P,ee),x=u(fe,x,re),b===null?Y=fe:b.sibling=fe,b=fe,ee=ze}if(re===C.length)return n(P,ee),ke&&xn(P,re),Y;if(ee===null){for(;rere?(ze=ee,ee=null):ze=ee.sibling;var dn=L(P,ee,fe.value,O);if(dn===null){ee===null&&(ee=ze);break}e&&ee&&dn.alternate===null&&t(P,ee),x=u(dn,x,re),b===null?Y=dn:b.sibling=dn,b=dn,ee=ze}if(fe.done)return n(P,ee),ke&&xn(P,re),Y;if(ee===null){for(;!fe.done;re++,fe=C.next())fe=_(P,fe.value,O),fe!==null&&(x=u(fe,x,re),b===null?Y=fe:b.sibling=fe,b=fe);return ke&&xn(P,re),Y}for(ee=s(P,ee);!fe.done;re++,fe=C.next())fe=U(ee,P,re,fe.value,O),fe!==null&&(e&&fe.alternate!==null&&ee.delete(fe.key===null?re:fe.key),x=u(fe,x,re),b===null?Y=fe:b.sibling=fe,b=fe);return e&&ee.forEach(function(Qg){return t(P,Qg)}),ke&&xn(P,re),Y}function Le(P,x,C,O){if(typeof C=="object"&&C!==null&&C.type===ue&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case X:e:{for(var Y=C.key,b=x;b!==null;){if(b.key===Y){if(Y=C.type,Y===ue){if(b.tag===7){n(P,b.sibling),x=l(b,C.props.children),x.return=P,P=x;break e}}else if(b.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Be&&Mc(Y)===b.type){n(P,b.sibling),x=l(b,C.props),x.ref=$r(P,b,C),x.return=P,P=x;break e}n(P,b);break}else t(P,b);b=b.sibling}C.type===ue?(x=Mn(C.props.children,P.mode,O,C.key),x.return=P,P=x):(O=ks(C.type,C.key,C.props,null,P.mode,O),O.ref=$r(P,x,C),O.return=P,P=O)}return h(P);case ie:e:{for(b=C.key;x!==null;){if(x.key===b)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(P,x.sibling),x=l(x,C.children||[]),x.return=P,P=x;break e}else{n(P,x);break}else t(P,x);x=x.sibling}x=zl(C,P.mode,O),x.return=P,P=x}return h(P);case Be:return b=C._init,Le(P,x,b(C._payload),O)}if(yr(C))return H(P,x,C,O);if(Q(C))return G(P,x,C,O);bi(P,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(P,x.sibling),x=l(x,C),x.return=P,P=x):(n(P,x),x=Il(C,P.mode,O),x.return=P,P=x),h(P)):n(P,x)}return Le}var Jn=Rc(!0),Lc=Rc(!1),es=en(null),ts=null,bn=null,Yo=null;function Xo(){Yo=bn=ts=null}function qo(e){var t=es.current;Se(es),e._currentValue=t}function Zo(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function er(e,t){ts=e,Yo=bn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Yo!==e)if(e={context:e,memoizedValue:t,next:null},bn===null){if(ts===null)throw Error(o(308));bn=e,ts.dependencies={lanes:0,firstContext:e}}else bn=bn.next=e;return t}var Tn=null;function Jo(e){Tn===null?Tn=[e]:Tn.push(e)}function Nc(e,t,n,s){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Bt(e,s)}function Bt(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 rn=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ce&2)!==0){var l=s.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),s.pending=t,Bt(e,n)}return l=s.interleaved,l===null?(t.next=t,Jo(s)):(t.next=l.next,l.next=t),s.interleaved=t,Bt(e,n)}function ns(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ho(e,n)}}function _c(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rs(e,t,n,s){var l=e.updateQueue;rn=!1;var u=l.firstBaseUpdate,h=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var S=y,E=S.next;S.next=null,h===null?u=E:h.next=E,h=S;var N=e.alternate;N!==null&&(N=N.updateQueue,y=N.lastBaseUpdate,y!==h&&(y===null?N.firstBaseUpdate=E:y.next=E,N.lastBaseUpdate=S))}if(u!==null){var _=l.baseState;h=0,N=E=S=null,y=u;do{var L=y.lane,U=y.eventTime;if((s&L)===L){N!==null&&(N=N.next={eventTime:U,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var H=e,G=y;switch(L=t,U=n,G.tag){case 1:if(H=G.payload,typeof H=="function"){_=H.call(U,_,L);break e}_=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=G.payload,L=typeof H=="function"?H.call(U,_,L):H,L==null)break e;_=B({},_,L);break e;case 2:rn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,L=l.effects,L===null?l.effects=[y]:L.push(y))}else U={eventTime:U,lane:L,tag:y.tag,payload:y.payload,callback:y.callback,next:null},N===null?(E=N=U,S=_):N=N.next=U,h|=L;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;L=y,y=L.next,L.next=null,l.lastBaseUpdate=L,l.shared.pending=null}}while(!0);if(N===null&&(S=_),l.baseState=S,l.firstBaseUpdate=E,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do h|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Cn|=h,e.lanes=h,e.memoizedState=_}}function jc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=il.transition;il.transition={};try{e(!1),t()}finally{pe=n,il.transition=s}}function ef(){return gt().memoizedState}function yg(e,t,n){var s=un(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},tf(e))nf(t,n);else if(n=Nc(e,t,n,s),n!==null){var l=Je();Dt(n,e,s,l),rf(n,t,s)}}function vg(e,t,n){var s=un(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(tf(e))nf(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,y=u(h,n);if(l.hasEagerState=!0,l.eagerState=y,Tt(y,h)){var S=t.interleaved;S===null?(l.next=l,Jo(t)):(l.next=S.next,S.next=l),t.interleaved=l;return}}catch{}finally{}n=Nc(e,t,l,s),n!==null&&(l=Je(),Dt(n,e,s,l),rf(n,t,s))}}function tf(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function nf(e,t){Gr=os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rf(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ho(e,n)}}var us={readContext:mt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},wg={readContext:mt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ls(4194308,4,Xc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return ls(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Nt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=yg.bind(null,Ce,e),[s.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:Hc,useDebugValue:fl,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=Hc(!1),t=e[0];return e=gg.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ce,l=Nt();if(ke){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ie===null)throw Error(o(349));(Pn&30)!==0||zc(s,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Gc(Uc.bind(null,s,u,e),[e]),s.flags|=2048,Xr(9,Bc.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Ie.identifierPrefix;if(ke){var n=zt,s=It;n=(s&~(1<<32-xt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=h.createElement(n,{is:s.is}):(e=h.createElement(n),n==="select"&&(h=e,s.multiple?h.multiple=!0:s.size&&(h.size=s.size))):e=h.createElementNS(e,n),e[Rt]=t,e[Br]=s,Pf(e,t,!1,!1),t.stateNode=e;e:{switch(h=no(n,s),n){case"dialog":we("cancel",e),we("close",e),l=s;break;case"iframe":case"object":case"embed":we("load",e),l=s;break;case"video":case"audio":for(l=0;lsr&&(t.flags|=128,s=!0,qr(u,!1),t.lanes=4194304)}else{if(!s)if(e=is(h),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!ke)return Qe(t),null}else 2*Re()-u.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,s=!0,qr(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(n=u.last,n!==null?n.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Re(),t.sibling=null,n=Pe.current,ye(Pe,s?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return jl(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(ct&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Dg(e,t){switch(Ho(t),t.tag){case 1:return et(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tr(),Se(be),Se(Ke),rl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return tl(t),null;case 13:if(Se(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Pe),null;case 4:return tr(),null;case 10:return qo(t.type._context),null;case 22:case 23:return jl(),null;case 24:return null;default:return null}}var hs=!1,Ye=!1,Ag=typeof WeakSet=="function"?WeakSet:Set,W=null;function rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){De(e,t,s)}else n.current=null}function kl(e,t,n){try{n()}catch(s){De(e,t,s)}}var Df=!1;function Mg(e,t){if(jo=Vi,e=ic(),Do(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,y=-1,S=-1,E=0,N=0,_=e,L=null;t:for(;;){for(var U;_!==n||l!==0&&_.nodeType!==3||(y=h+l),_!==u||s!==0&&_.nodeType!==3||(S=h+s),_.nodeType===3&&(h+=_.nodeValue.length),(U=_.firstChild)!==null;)L=_,_=U;for(;;){if(_===e)break t;if(L===n&&++E===l&&(y=h),L===u&&++N===s&&(S=h),(U=_.nextSibling)!==null)break;_=L,L=_.parentNode}_=U}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},Vi=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var H=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var G=H.memoizedProps,Le=H.memoizedState,P=t.stateNode,x=P.getSnapshotBeforeUpdate(t.elementType===t.type?G:Pt(t.type,G),Le);P.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(O){De(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return H=Df,Df=!1,H}function Zr(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&kl(t,n,u)}l=l.next}while(l!==s)}}function ps(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 s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Pl(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 Af(e){var t=e.alternate;t!==null&&(e.alternate=null,Af(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Br],delete t[Bo],delete t[fg],delete t[dg])),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 Mf(e){return e.tag===5||e.tag===3||e.tag===4}function Rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mf(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 s=e.tag;if(s===5||s===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=Ki));else if(s!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}function El(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(El(e,t,n),e=e.sibling;e!==null;)El(e,t,n),e=e.sibling}var Ue=null,Ct=!1;function on(e,t,n){for(n=n.child;n!==null;)Lf(e,t,n),n=n.sibling}function Lf(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 5:Ye||rr(n,t);case 6:var s=Ue,l=Ct;Ue=null,on(e,t,n),Ue=s,Ct=l,Ue!==null&&(Ct?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Ct?(e=Ue,n=n.stateNode,e.nodeType===8?zo(e.parentNode,n):e.nodeType===1&&zo(e,n),Mr(e)):zo(Ue,n.stateNode));break;case 4:s=Ue,l=Ct,Ue=n.stateNode.containerInfo,Ct=!0,on(e,t,n),Ue=s,Ct=l;break;case 0:case 11:case 14:case 15:if(!Ye&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var u=l,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&kl(n,t,h),l=l.next}while(l!==s)}on(e,t,n);break;case 1:if(!Ye&&(rr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){De(n,t,y)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Ye=(s=Ye)||n.memoizedState!==null,on(e,t,n),Ye=s):on(e,t,n);break;default:on(e,t,n)}}function Nf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ag),t.forEach(function(s){var l=Ig.bind(null,e,s);n.has(s)||(n.add(s),s.then(l,l))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var s=0;sl&&(l=h),s&=~u}if(s=l,s=Re()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Lg(s/1960))-s,10e?16:e,an===null)var s=!1;else{if(e=an,an=null,ws=0,(ce&6)!==0)throw Error(o(331));var l=ce;for(ce|=4,W=e.current;W!==null;){var u=W,h=u.child;if((W.flags&16)!==0){var y=u.deletions;if(y!==null){for(var S=0;SRe()-Ml?Dn(e,0):Al|=n),rt(e,t)}function Kf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Mi,Mi<<=1,(Mi&130023424)===0&&(Mi=4194304)));var n=Je();e=Bt(e,t),e!==null&&(Pr(e,t,n),rt(e,n))}function Og(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kf(e,n)}function Ig(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(t),Kf(e,n)}var Gf;Gf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)tt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return tt=!1,Cg(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,ke&&(t.flags&1048576)!==0&&Pc(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ds(e,t),e=t.pendingProps;var l=Yn(t,Ke.current);er(t,n),l=ol(null,t,s,e,l,n);var u=ll();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(s)?(u=!0,Yi(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bo(t),l.updater=cs,t.stateNode=l,l._reactInternals=t,hl(t,s,e,n),t=yl(null,t,s,!0,u,n)):(t.tag=0,ke&&u&&Wo(t),Ze(null,t,l,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ds(e,t),e=t.pendingProps,l=s._init,s=l(s._payload),t.type=s,l=t.tag=Bg(s),e=Pt(s,e),l){case 0:t=gl(null,t,s,e,n);break e;case 1:t=vf(null,t,s,e,n);break e;case 11:t=hf(null,t,s,e,n);break e;case 14:t=pf(null,t,s,Pt(s.type,e),n);break e}throw Error(o(306,s,""))}return t;case 0:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),gl(e,t,s,l,n);case 1:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),vf(e,t,s,l,n);case 3:e:{if(wf(t),e===null)throw Error(o(387));s=t.pendingProps,u=t.memoizedState,l=u.element,Vc(e,t),rs(t,s,null,n);var h=t.memoizedState;if(s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=nr(Error(o(423)),t),t=Sf(e,t,s,n,l);break e}else if(s!==l){l=nr(Error(o(424)),t),t=Sf(e,t,s,n,l);break e}else for(ut=bt(t.stateNode.containerInfo.firstChild),at=t,ke=!0,kt=null,n=Lc(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),s===l){t=$t(e,t,n);break e}Ze(e,t,s,n)}t=t.child}return t;case 5:return Fc(t),e===null&&Go(t),s=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,h=l.children,Oo(s,l)?h=null:u!==null&&Oo(s,u)&&(t.flags|=32),yf(e,t),Ze(e,t,h,n),t.child;case 6:return e===null&&Go(t),null;case 13:return xf(e,t,n);case 4:return el(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Jn(t,null,s,n):Ze(e,t,s,n),t.child;case 11:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),hf(e,t,s,l,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,l=t.pendingProps,u=t.memoizedProps,h=l.value,ye(es,s._currentValue),s._currentValue=h,u!==null)if(Tt(u.value,h)){if(u.children===l.children&&!be.current){t=$t(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){h=u.child;for(var S=y.firstContext;S!==null;){if(S.context===s){if(u.tag===1){S=Ut(-1,n&-n),S.tag=2;var E=u.updateQueue;if(E!==null){E=E.shared;var N=E.pending;N===null?S.next=S:(S.next=N.next,N.next=S),E.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),Zo(u.return,n,t),y.lanes|=n;break}S=S.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(o(341));h.lanes|=n,y=h.alternate,y!==null&&(y.lanes|=n),Zo(h,n,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Ze(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,s=t.pendingProps.children,er(t,n),l=mt(l),s=s(l),t.flags|=1,Ze(e,t,s,n),t.child;case 14:return s=t.type,l=Pt(s,t.pendingProps),l=Pt(s.type,l),pf(e,t,s,l,n);case 15:return mf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),ds(e,t),t.tag=1,et(s)?(e=!0,Yi(t)):e=!1,er(t,n),of(t,s,l),hl(t,s,l,n),yl(null,t,s,!0,e,n);case 19:return kf(e,t,n);case 22:return gf(e,t,n)}throw Error(o(156,t.tag))};function Qf(e,t){return Cu(e,t)}function zg(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,s){return new zg(e,t,n,s)}function Ol(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bg(e){if(typeof e=="function")return Ol(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Me)return 11;if(e===st)return 14}return 2}function fn(e,t){var n=e.alternate;return n===null?(n=vt(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 ks(e,t,n,s,l,u){var h=2;if(s=e,typeof e=="function")Ol(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case ue:return Mn(n.children,l,u,t);case J:h=8,l|=8;break;case me:return e=vt(12,n,t,l|2),e.elementType=me,e.lanes=u,e;case Fe:return e=vt(13,n,t,l),e.elementType=Fe,e.lanes=u,e;case He:return e=vt(19,n,t,l),e.elementType=He,e.lanes=u,e;case oe:return Ps(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:h=10;break e;case ve:h=9;break e;case Me:h=11;break e;case st:h=14;break e;case Be:h=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=vt(h,n,t,l),t.elementType=e,t.type=s,t.lanes=u,t}function Mn(e,t,n,s){return e=vt(7,e,s,t),e.lanes=n,e}function Ps(e,t,n,s){return e=vt(22,e,s,t),e.elementType=oe,e.lanes=n,e.stateNode={isHidden:!1},e}function Il(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function zl(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ug(e,t,n,s,l){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=fo(0),this.expirationTimes=fo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,s,l,u,h,y,S){return e=new Ug(e,t,n,y,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=vt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bo(u),e}function $g(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Gl.exports=bg(),Gl.exports}var ld;function ty(){if(ld)return Ls;ld=1;var r=ey();return Ls.createRoot=r.createRoot,Ls.hydrateRoot=r.hydrateRoot,Ls}var ny=ty();const kh=q.createContext({});function ry(r){const i=q.useRef(null);return i.current===null&&(i.current=r()),i.current}const Ea=q.createContext(null),Ph=q.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"});function iy(r=!0){const i=q.useContext(Ea);if(i===null)return[!0,null];const{isPresent:o,onExitComplete:a,register:c}=i,d=q.useId();q.useEffect(()=>{r&&c(d)},[r]);const f=q.useCallback(()=>r&&a&&a(d),[d,a,r]);return!o&&a?[!1,f]:[!0]}const Da=typeof window<"u",sy=Da?q.useLayoutEffect:q.useEffect,ft=r=>r;let Ch=ft;const oy={useManualTiming:!1};function ly(r){let i=new Set,o=new Set,a=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){d.has(g)&&(m.schedule(g),r()),g(f)}const m={schedule:(g,v=!1,w=!1)=>{const D=w&&a?i:o;return v&&d.add(g),D.has(g)||D.add(g),g},cancel:g=>{o.delete(g),d.delete(g)},process:g=>{if(f=g,a){c=!0;return}a=!0,[i,o]=[o,i],i.forEach(p),i.clear(),a=!1,c&&(c=!1,m.process(g))}};return m}const Ns=["read","resolveKeyframes","update","preRender","render","postRender"],ay=40;function Eh(r,i){let o=!1,a=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,f=Ns.reduce((I,$)=>(I[$]=ly(d),I),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:w,postRender:T}=f,D=()=>{const I=performance.now();o=!1,c.delta=a?1e3/60:Math.max(Math.min(I-c.timestamp,ay),1),c.timestamp=I,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),v.process(c),w.process(c),T.process(c),c.isProcessing=!1,o&&i&&(a=!1,r(D))},j=()=>{o=!0,a=!0,c.isProcessing||r(D)};return{schedule:Ns.reduce((I,$)=>{const K=f[$];return I[$]=(ne,X=!1,ie=!1)=>(o||j(),K.schedule(ne,X,ie)),I},{}),cancel:I=>{for(let $=0;$ad[r].some(o=>!!i[o])};function uy(r){for(const i in r)dr[i]={...dr[i],...r[i]}}const cy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Is(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||cy.has(r)}let Ah=r=>!Is(r);function fy(r){r&&(Ah=i=>i.startsWith("on")?!Is(i):r(i))}try{fy(require("@emotion/is-prop-valid").default)}catch{}function dy(r,i,o){const a={};for(const c in r)c==="values"&&typeof r.values=="object"||(Ah(c)||o===!0&&Is(c)||!i&&!Is(c)||r.draggable&&c.startsWith("onDrag"))&&(a[c]=r[c]);return a}function hy(r){if(typeof Proxy>"u")return r;const i=new Map,o=(...a)=>r(...a);return new Proxy(o,{get:(a,c)=>c==="create"?r:(i.has(c)||i.set(c,r(c)),i.get(c))})}const Ks=q.createContext({});function di(r){return typeof r=="string"||Array.isArray(r)}function Gs(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}const Aa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ma=["initial",...Aa];function Qs(r){return Gs(r.animate)||Ma.some(i=>di(r[i]))}function Mh(r){return!!(Qs(r)||r.variants)}function py(r,i){if(Qs(r)){const{initial:o,animate:a}=r;return{initial:o===!1||di(o)?o:void 0,animate:di(a)?a:void 0}}return r.inherit!==!1?i:{}}function my(r){const{initial:i,animate:o}=py(r,q.useContext(Ks));return q.useMemo(()=>({initial:i,animate:o}),[ud(i),ud(o)])}function ud(r){return Array.isArray(r)?r.join(" "):r}const gy=Symbol.for("motionComponentSymbol");function lr(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function yy(r,i,o){return q.useCallback(a=>{a&&r.onMount&&r.onMount(a),i&&(a?i.mount(a):i.unmount()),o&&(typeof o=="function"?o(a):lr(o)&&(o.current=a))},[i])}const Ra=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vy="framerAppearId",Rh="data-"+Ra(vy),{schedule:La}=Eh(queueMicrotask,!1),Lh=q.createContext({});function wy(r,i,o,a,c){var d,f;const{visualElement:p}=q.useContext(Ks),m=q.useContext(Dh),g=q.useContext(Ea),v=q.useContext(Ph).reducedMotion,w=q.useRef(null);a=a||m.renderer,!w.current&&a&&(w.current=a(r,{visualState:i,parent:p,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const T=w.current,D=q.useContext(Lh);T&&!T.projection&&c&&(T.type==="html"||T.type==="svg")&&Sy(w.current,o,c,D);const j=q.useRef(!1);q.useInsertionEffect(()=>{T&&j.current&&T.update(o,g)});const M=o[Rh],V=q.useRef(!!M&&!(!((d=window.MotionHandoffIsComplete)===null||d===void 0)&&d.call(window,M))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,M)));return sy(()=>{T&&(j.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),La.render(T.render),V.current&&T.animationState&&T.animationState.animateChanges())}),q.useEffect(()=>{T&&(!V.current&&T.animationState&&T.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var I;(I=window.MotionHandoffMarkAsComplete)===null||I===void 0||I.call(window,M)}),V.current=!1))}),T}function Sy(r,i,o,a){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;r.projection=new o(r.latestValues,i["data-framer-portal-id"]?void 0:Nh(r.parent)),r.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&lr(p),visualElement:r,animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:g})}function Nh(r){if(r)return r.options.allowProjection!==!1?r.projection:Nh(r.parent)}function xy({preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:c}){var d,f;r&&uy(r);function p(g,v){let w;const T={...q.useContext(Ph),...g,layoutId:Ty(g)},{isStatic:D}=T,j=my(g),M=a(g,D);if(!D&&Da){ky();const V=Py(T);w=V.MeasureLayout,j.visualElement=wy(c,M,T,i,V.ProjectionNode)}return A.jsxs(Ks.Provider,{value:j,children:[w&&j.visualElement?A.jsx(w,{visualElement:j.visualElement,...T}):null,o(c,g,yy(M,j.visualElement,v),M,D,j.visualElement)]})}p.displayName=`motion.${typeof c=="string"?c:`create(${(f=(d=c.displayName)!==null&&d!==void 0?d:c.name)!==null&&f!==void 0?f:""})`}`;const m=q.forwardRef(p);return m[gy]=c,m}function Ty({layoutId:r}){const i=q.useContext(kh).id;return i&&r!==void 0?i+"-"+r:r}function ky(r,i){q.useContext(Dh).strict}function Py(r){const{drag:i,layout:o}=dr;if(!i&&!o)return{};const a={...i,...o};return{MeasureLayout:i?.isEnabled(r)||o?.isEnabled(r)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const Cy=["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 Na(r){return typeof r!="string"||r.includes("-")?!1:!!(Cy.indexOf(r)>-1||/[A-Z]/u.test(r))}function cd(r){const i=[{},{}];return r?.values.forEach((o,a)=>{i[0][a]=o.get(),i[1][a]=o.getVelocity()}),i}function Va(r,i,o,a){if(typeof i=="function"){const[c,d]=cd(a);i=i(o!==void 0?o:r.custom,c,d)}if(typeof i=="string"&&(i=r.variants&&r.variants[i]),typeof i=="function"){const[c,d]=cd(a);i=i(o!==void 0?o:r.custom,c,d)}return i}const ua=r=>Array.isArray(r),Ey=r=>!!(r&&typeof r=="object"&&r.mix&&r.toValue),Dy=r=>ua(r)?r[r.length-1]||0:r,qe=r=>!!(r&&r.getVelocity);function js(r){const i=qe(r)?r.get():r;return Ey(i)?i.toValue():i}function Ay({scrapeMotionValuesFromProps:r,createRenderState:i,onUpdate:o},a,c,d){const f={latestValues:My(a,c,d,r),renderState:i()};return o&&(f.onMount=p=>o({props:a,current:p,...f}),f.onUpdate=p=>o(p)),f}const Vh=r=>(i,o)=>{const a=q.useContext(Ks),c=q.useContext(Ea),d=()=>Ay(r,i,a,c);return o?d():ry(d)};function My(r,i,o,a){const c={},d=a(r,{});for(const T in d)c[T]=js(d[T]);let{initial:f,animate:p}=r;const m=Qs(r),g=Mh(r);i&&g&&!m&&r.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=o?o.initial===!1:!1;v=v||f===!1;const w=v?p:f;if(w&&typeof w!="boolean"&&!Gs(w)){const T=Array.isArray(w)?w:[w];for(let D=0;Di=>typeof i=="string"&&i.startsWith(r),jh=_h("--"),Ry=_h("var(--"),_a=r=>Ry(r)?Ly.test(r.split("/*")[0].trim()):!1,Ly=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fh=(r,i)=>i&&typeof r=="number"?i.transform(r):r,Gt=(r,i,o)=>o>i?i:otypeof r=="number",parse:parseFloat,transform:r=>r},hi={...gr,transform:r=>Gt(0,1,r)},Vs={...gr,default:1},yi=r=>({test:i=>typeof i=="string"&&i.endsWith(r)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${r}`}),hn=yi("deg"),_t=yi("%"),te=yi("px"),Ny=yi("vh"),Vy=yi("vw"),fd={..._t,parse:r=>_t.parse(r)/100,transform:r=>_t.transform(r*100)},_y={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},jy={rotate:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:Vs,scaleX:Vs,scaleY:Vs,scaleZ:Vs,skew:hn,skewX:hn,skewY:hn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:hi,originX:fd,originY:fd,originZ:te},dd={...gr,transform:Math.round},ja={..._y,...jy,zIndex:dd,size:te,fillOpacity:hi,strokeOpacity:hi,numOctaves:dd},Fy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oy=mr.length;function Iy(r,i,o){let a="",c=!0;for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Oh=()=>({...Ia(),attrs:{}}),za=r=>typeof r=="string"&&r.toLowerCase()==="svg";function Ih(r,{style:i,vars:o},a,c){Object.assign(r.style,i,c&&c.getProjectionStyles(a));for(const d in o)r.style.setProperty(d,o[d])}const zh=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 Bh(r,i,o,a){Ih(r,i,void 0,a);for(const c in i.attrs)r.setAttribute(zh.has(c)?c:Ra(c),i.attrs[c])}const zs={};function Wy(r){Object.assign(zs,r)}function Uh(r,{layout:i,layoutId:o}){return jn.has(r)||r.startsWith("origin")||(i||o!==void 0)&&(!!zs[r]||r==="opacity")}function Ba(r,i,o){var a;const{style:c}=r,d={};for(const f in c)(qe(c[f])||i.style&&qe(i.style[f])||Uh(f,r)||((a=o?.getValue(f))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(d[f]=c[f]);return d}function $h(r,i,o){const a=Ba(r,i,o);for(const c in r)if(qe(r[c])||qe(i[c])){const d=mr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;a[d]=r[c]}return a}function Hy(r,i){try{i.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}const pd=["x","y","width","height","cx","cy","r"],Ky={useVisualState:Vh({scrapeMotionValuesFromProps:$h,createRenderState:Oh,onUpdate:({props:r,prevProps:i,current:o,renderState:a,latestValues:c})=>{if(!o)return;let d=!!r.drag;if(!d){for(const p in c)if(jn.has(p)){d=!0;break}}if(!d)return;let f=!i;if(i)for(let p=0;p{Hy(o,a),xe.render(()=>{Oa(a,c,za(o.tagName),r.transformTemplate),Bh(o,a)})})}})},Gy={useVisualState:Vh({scrapeMotionValuesFromProps:Ba,createRenderState:Ia})};function Wh(r,i,o){for(const a in i)!qe(i[a])&&!Uh(a,o)&&(r[a]=i[a])}function Qy({transformTemplate:r},i){return q.useMemo(()=>{const o=Ia();return Fa(o,i,r),Object.assign({},o.vars,o.style)},[i])}function Yy(r,i){const o=r.style||{},a={};return Wh(a,o,r),Object.assign(a,Qy(r,i)),a}function Xy(r,i){const o={},a=Yy(r,i);return r.drag&&r.dragListener!==!1&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(o.tabIndex=0),o.style=a,o}function qy(r,i,o,a){const c=q.useMemo(()=>{const d=Oh();return Oa(d,i,za(a),r.transformTemplate),{...d.attrs,style:{...d.style}}},[i]);if(r.style){const d={};Wh(d,r.style,r),c.style={...d,...c.style}}return c}function Zy(r=!1){return(o,a,c,{latestValues:d},f)=>{const m=(Na(o)?qy:Xy)(a,d,f,o),g=dy(a,typeof o=="string",r),v=o!==q.Fragment?{...g,...m,ref:c}:{},{children:w}=a,T=q.useMemo(()=>qe(w)?w.get():w,[w]);return q.createElement(o,{...v,children:T})}}function Jy(r,i){return function(a,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...Na(a)?Ky:Gy,preloadedFeatures:r,useRender:Zy(c),createVisualElement:i,Component:a};return xy(f)}}function Hh(r,i){if(!Array.isArray(i))return!1;const o=i.length;if(o!==r.length)return!1;for(let a=0;a(Fs===void 0&&jt.set(We.isProcessing||oy.useManualTiming?We.timestamp:performance.now()),Fs),set:r=>{Fs=r,queueMicrotask(by)}};function $a(r,i){r.indexOf(i)===-1&&r.push(i)}function Wa(r,i){const o=r.indexOf(i);o>-1&&r.splice(o,1)}class Ha{constructor(){this.subscriptions=[]}add(i){return $a(this.subscriptions,i),()=>Wa(this.subscriptions,i)}notify(i,o,a){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,o,a);else for(let d=0;d!isNaN(parseFloat(r));class tv{constructor(i,o={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,c=!0)=>{const d=jt.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),c&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=o.owner}setCurrent(i){this.current=i,this.updatedAt=jt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=ev(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,o){this.events[i]||(this.events[i]=new Ha);const a=this.events[i].add(o);return i==="change"?()=>{a(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,o){this.passiveEffect=i,this.stopPassiveEffect=o}set(i,o=!0){!o||!this.passiveEffect?this.updateAndNotify(i,o):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i,o=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>md)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,md);return Gh(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(i){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=i(o),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 pi(r,i){return new tv(r,i)}function nv(r,i,o){r.hasValue(i)?r.getValue(i).set(o):r.addValue(i,pi(o))}function rv(r,i){const o=Ys(r,i);let{transitionEnd:a={},transition:c={},...d}=o||{};d={...d,...a};for(const f in d){const p=Dy(d[f]);nv(r,f,p)}}function iv(r){return!!(qe(r)&&r.add)}function ca(r,i){const o=r.getValue("willChange");if(iv(o))return o.add(i)}function Qh(r){return r.props[Rh]}function Ka(r){let i;return()=>(i===void 0&&(i=r()),i)}const sv=Ka(()=>window.ScrollTimeline!==void 0);class ov{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}get finished(){return Promise.all(this.animations.map(i=>"finished"in i?i.finished:i))}getAll(i){return this.animations[0][i]}setAll(i,o){for(let a=0;a{if(sv()&&c.attachTimeline)return c.attachTimeline(i);if(typeof o=="function")return o(c)});return()=>{a.forEach((c,d)=>{c&&c(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let o=0;oo[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lv extends ov{then(i,o){return Promise.all(this.animations).then(i).catch(o)}}const Ht=r=>r*1e3,Kt=r=>r/1e3;function Ga(r){return typeof r=="function"}function gd(r,i){r.timeline=i,r.onfinish=null}const Qa=r=>Array.isArray(r)&&typeof r[0]=="number",av={linearEasing:void 0};function uv(r,i){const o=Ka(r);return()=>{var a;return(a=av[i])!==null&&a!==void 0?a:o()}}const Bs=uv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hr=(r,i,o)=>{const a=i-r;return a===0?1:(o-r)/a},Yh=(r,i,o=10)=>{let a="";const c=Math.max(Math.round(i/o),2);for(let d=0;d`cubic-bezier(${r}, ${i}, ${o}, ${a})`,fa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ii([0,.65,.55,1]),circOut:ii([.55,0,1,.45]),backIn:ii([.31,.01,.66,-.59]),backOut:ii([.33,1.53,.69,.99])};function qh(r,i){if(r)return typeof r=="function"&&Bs()?Yh(r,i):Qa(r)?ii(r):Array.isArray(r)?r.map(o=>qh(o,i)||fa.easeOut):fa[r]}const Zh=(r,i,o)=>(((1-3*o+3*i)*r+(3*o-6*i))*r+3*i)*r,cv=1e-7,fv=12;function dv(r,i,o,a,c){let d,f,p=0;do f=i+(o-i)/2,d=Zh(f,a,c)-r,d>0?o=f:i=f;while(Math.abs(d)>cv&&++pdv(d,0,1,r,o);return d=>d===0||d===1?d:Zh(c(d),i,a)}const Jh=r=>i=>i<=.5?r(2*i)/2:(2-r(2*(1-i)))/2,bh=r=>i=>1-r(1-i),ep=vi(.33,1.53,.69,.99),Ya=bh(ep),tp=Jh(Ya),np=r=>(r*=2)<1?.5*Ya(r):.5*(2-Math.pow(2,-10*(r-1))),Xa=r=>1-Math.sin(Math.acos(r)),rp=bh(Xa),ip=Jh(Xa),sp=r=>/^0[^.\s]+$/u.test(r);function hv(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||sp(r):!0}const ai=r=>Math.round(r*1e5)/1e5,qa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pv(r){return r==null}const mv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Za=(r,i)=>o=>!!(typeof o=="string"&&mv.test(o)&&o.startsWith(r)||i&&!pv(o)&&Object.prototype.hasOwnProperty.call(o,i)),op=(r,i,o)=>a=>{if(typeof a!="string")return a;const[c,d,f,p]=a.match(qa);return{[r]:parseFloat(c),[i]:parseFloat(d),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},gv=r=>Gt(0,255,r),ql={...gr,transform:r=>Math.round(gv(r))},Vn={test:Za("rgb","red"),parse:op("red","green","blue"),transform:({red:r,green:i,blue:o,alpha:a=1})=>"rgba("+ql.transform(r)+", "+ql.transform(i)+", "+ql.transform(o)+", "+ai(hi.transform(a))+")"};function yv(r){let i="",o="",a="",c="";return r.length>5?(i=r.substring(1,3),o=r.substring(3,5),a=r.substring(5,7),c=r.substring(7,9)):(i=r.substring(1,2),o=r.substring(2,3),a=r.substring(3,4),c=r.substring(4,5),i+=i,o+=o,a+=a,c+=c),{red:parseInt(i,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:c?parseInt(c,16)/255:1}}const da={test:Za("#"),parse:yv,transform:Vn.transform},ar={test:Za("hsl","hue"),parse:op("hue","saturation","lightness"),transform:({hue:r,saturation:i,lightness:o,alpha:a=1})=>"hsla("+Math.round(r)+", "+_t.transform(ai(i))+", "+_t.transform(ai(o))+", "+ai(hi.transform(a))+")"},Xe={test:r=>Vn.test(r)||da.test(r)||ar.test(r),parse:r=>Vn.test(r)?Vn.parse(r):ar.test(r)?ar.parse(r):da.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Vn.transform(r):ar.transform(r)},vv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wv(r){var i,o;return isNaN(r)&&typeof r=="string"&&(((i=r.match(qa))===null||i===void 0?void 0:i.length)||0)+(((o=r.match(vv))===null||o===void 0?void 0:o.length)||0)>0}const lp="number",ap="color",Sv="var",xv="var(",yd="${}",Tv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mi(r){const i=r.toString(),o=[],a={color:[],number:[],var:[]},c=[];let d=0;const p=i.replace(Tv,m=>(Xe.test(m)?(a.color.push(d),c.push(ap),o.push(Xe.parse(m))):m.startsWith(xv)?(a.var.push(d),c.push(Sv),o.push(m)):(a.number.push(d),c.push(lp),o.push(parseFloat(m))),++d,yd)).split(yd);return{values:o,split:p,indexes:a,types:c}}function up(r){return mi(r).values}function cp(r){const{split:i,types:o}=mi(r),a=i.length;return c=>{let d="";for(let f=0;ftypeof r=="number"?0:r;function Pv(r){const i=up(r);return cp(r)(i.map(kv))}const mn={test:wv,parse:up,createTransformer:cp,getAnimatableNone:Pv},Cv=new Set(["brightness","contrast","saturate","opacity"]);function Ev(r){const[i,o]=r.slice(0,-1).split("(");if(i==="drop-shadow")return r;const[a]=o.match(qa)||[];if(!a)return r;const c=o.replace(a,"");let d=Cv.has(i)?1:0;return a!==o&&(d*=100),i+"("+d+c+")"}const Dv=/\b([a-z-]*)\(.*?\)/gu,ha={...mn,getAnimatableNone:r=>{const i=r.match(Dv);return i?i.map(Ev).join(" "):r}},Av={...ja,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:ha,WebkitFilter:ha},Ja=r=>Av[r];function fp(r,i){let o=Ja(r);return o!==ha&&(o=mn),o.getAnimatableNone?o.getAnimatableNone(i):void 0}const Mv=new Set(["auto","none","0"]);function Rv(r,i,o){let a=0,c;for(;ar===gr||r===te,wd=(r,i)=>parseFloat(r.split(", ")[i]),Sd=(r,i)=>(o,{transform:a})=>{if(a==="none"||!a)return 0;const c=a.match(/^matrix3d\((.+)\)$/u);if(c)return wd(c[1],i);{const d=a.match(/^matrix\((.+)\)$/u);return d?wd(d[1],r):0}},Lv=new Set(["x","y","z"]),Nv=mr.filter(r=>!Lv.has(r));function Vv(r){const i=[];return Nv.forEach(o=>{const a=r.getValue(o);a!==void 0&&(i.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),i}const pr={width:({x:r},{paddingLeft:i="0",paddingRight:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),height:({y:r},{paddingTop:i="0",paddingBottom:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),top:(r,{top:i})=>parseFloat(i),left:(r,{left:i})=>parseFloat(i),bottom:({y:r},{top:i})=>parseFloat(i)+(r.max-r.min),right:({x:r},{left:i})=>parseFloat(i)+(r.max-r.min),x:Sd(4,13),y:Sd(5,14)};pr.translateX=pr.x;pr.translateY=pr.y;const _n=new Set;let pa=!1,ma=!1;function dp(){if(ma){const r=Array.from(_n).filter(a=>a.needsMeasurement),i=new Set(r.map(a=>a.element)),o=new Map;i.forEach(a=>{const c=Vv(a);c.length&&(o.set(a,c),a.render())}),r.forEach(a=>a.measureInitialState()),i.forEach(a=>{a.render();const c=o.get(a);c&&c.forEach(([d,f])=>{var p;(p=a.getValue(d))===null||p===void 0||p.set(f)})}),r.forEach(a=>a.measureEndState()),r.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}ma=!1,pa=!1,_n.forEach(r=>r.complete()),_n.clear()}function hp(){_n.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(ma=!0)})}function _v(){hp(),dp()}class ba{constructor(i,o,a,c,d,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=o,this.name=a,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_n.add(this),pa||(pa=!0,xe.read(hp),xe.resolveKeyframes(dp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:o,element:a,motionValue:c}=this;for(let d=0;d/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),jv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fv(r){const i=jv.exec(r);if(!i)return[,];const[,o,a,c]=i;return[`--${o??a}`,c]}function mp(r,i,o=1){const[a,c]=Fv(r);if(!a)return;const d=window.getComputedStyle(i).getPropertyValue(a);if(d){const f=d.trim();return pp(f)?parseFloat(f):f}return _a(c)?mp(c,i,o+1):c}const gp=r=>i=>i.test(r),Ov={test:r=>r==="auto",parse:r=>r},yp=[gr,te,_t,hn,Vy,Ny,Ov],xd=r=>yp.find(gp(r));class vp extends ba{constructor(i,o,a,c,d){super(i,o,a,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m{o.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const Td=(r,i)=>i==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(mn.test(r)||r==="0")&&!r.startsWith("url("));function Iv(r){const i=r[0];if(r.length===1)return!0;for(let o=0;or!==null;function Xs(r,{repeat:i,repeatType:o="loop"},a){const c=r.filter(Bv),d=i&&o!=="loop"&&i%2===1?0:c.length-1;return!d||a===void 0?c[d]:a}const Uv=40;class wp{constructor({autoplay:i=!0,delay:o=0,type:a="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jt.now(),this.options={autoplay:i,delay:o,type:a,repeat:c,repeatDelay:d,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Uv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&_v(),this._resolved}onKeyframesResolved(i,o){this.resolvedAt=jt.now(),this.hasAttemptedResolve=!0;const{name:a,type:c,velocity:d,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!zv(i,a,c,d))if(f)this.options.duration=0;else{m&&m(Xs(i,this.options,o)),p&&p(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,o);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:o,...v},this.onPostResolved())}onPostResolved(){}then(i,o){return this.currentFinishedPromise.then(i,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const ga=2e4;function Sp(r){let i=0;const o=50;let a=r.next(i);for(;!a.done&&i=ga?1/0:i}const Ee=(r,i,o)=>r+(i-r)*o;function Zl(r,i,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(i-r)*6*o:o<1/2?i:o<2/3?r+(i-r)*(2/3-o)*6:r}function $v({hue:r,saturation:i,lightness:o,alpha:a}){r/=360,i/=100,o/=100;let c=0,d=0,f=0;if(!i)c=d=f=o;else{const p=o<.5?o*(1+i):o+i-o*i,m=2*o-p;c=Zl(m,p,r+1/3),d=Zl(m,p,r),f=Zl(m,p,r-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:a}}function Us(r,i){return o=>o>0?i:r}const Jl=(r,i,o)=>{const a=r*r,c=o*(i*i-a)+a;return c<0?0:Math.sqrt(c)},Wv=[da,Vn,ar],Hv=r=>Wv.find(i=>i.test(r));function kd(r){const i=Hv(r);if(!i)return!1;let o=i.parse(r);return i===ar&&(o=$v(o)),o}const Pd=(r,i)=>{const o=kd(r),a=kd(i);if(!o||!a)return Us(r,i);const c={...o};return d=>(c.red=Jl(o.red,a.red,d),c.green=Jl(o.green,a.green,d),c.blue=Jl(o.blue,a.blue,d),c.alpha=Ee(o.alpha,a.alpha,d),Vn.transform(c))},Kv=(r,i)=>o=>i(r(o)),wi=(...r)=>r.reduce(Kv),ya=new Set(["none","hidden"]);function Gv(r,i){return ya.has(r)?o=>o<=0?r:i:o=>o>=1?i:r}function Qv(r,i){return o=>Ee(r,i,o)}function eu(r){return typeof r=="number"?Qv:typeof r=="string"?_a(r)?Us:Xe.test(r)?Pd:qv:Array.isArray(r)?xp:typeof r=="object"?Xe.test(r)?Pd:Yv:Us}function xp(r,i){const o=[...r],a=o.length,c=r.map((d,f)=>eu(d)(d,i[f]));return d=>{for(let f=0;f{for(const d in a)o[d]=a[d](c);return o}}function Xv(r,i){var o;const a=[],c={color:0,var:0,number:0};for(let d=0;d{const o=mn.createTransformer(i),a=mi(r),c=mi(i);return a.indexes.var.length===c.indexes.var.length&&a.indexes.color.length===c.indexes.color.length&&a.indexes.number.length>=c.indexes.number.length?ya.has(r)&&!c.values.length||ya.has(i)&&!a.values.length?Gv(r,i):wi(xp(Xv(a,c),c.values),o):Us(r,i)};function Tp(r,i,o){return typeof r=="number"&&typeof i=="number"&&typeof o=="number"?Ee(r,i,o):eu(r)(r,i)}const Zv=5;function kp(r,i,o){const a=Math.max(i-Zv,0);return Gh(o-r(a),i-a)}const Ae={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},bl=.001;function Jv({duration:r=Ae.duration,bounce:i=Ae.bounce,velocity:o=Ae.velocity,mass:a=Ae.mass}){let c,d,f=1-i;f=Gt(Ae.minDamping,Ae.maxDamping,f),r=Gt(Ae.minDuration,Ae.maxDuration,Kt(r)),f<1?(c=g=>{const v=g*f,w=v*r,T=v-o,D=va(g,f),j=Math.exp(-w);return bl-T/D*j},d=g=>{const w=g*f*r,T=w*o+o,D=Math.pow(f,2)*Math.pow(g,2)*r,j=Math.exp(-w),M=va(Math.pow(g,2),f);return(-c(g)+bl>0?-1:1)*((T-D)*j)/M}):(c=g=>{const v=Math.exp(-g*r),w=(g-o)*r+1;return-bl+v*w},d=g=>{const v=Math.exp(-g*r),w=(o-g)*(r*r);return v*w});const p=5/r,m=e0(c,d,p);if(r=Ht(r),isNaN(m))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:r};{const g=Math.pow(m,2)*a;return{stiffness:g,damping:f*2*Math.sqrt(a*g),duration:r}}}const bv=12;function e0(r,i,o){let a=o;for(let c=1;cr[o]!==void 0)}function r0(r){let i={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...r};if(!Cd(r,n0)&&Cd(r,t0))if(r.visualDuration){const o=r.visualDuration,a=2*Math.PI/(o*1.2),c=a*a,d=2*Gt(.05,1,1-(r.bounce||0))*Math.sqrt(c);i={...i,mass:Ae.mass,stiffness:c,damping:d}}else{const o=Jv(r);i={...i,...o,mass:Ae.mass},i.isResolvedFromDuration=!0}return i}function Pp(r=Ae.visualDuration,i=Ae.bounce){const o=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:i}:r;let{restSpeed:a,restDelta:c}=o;const d=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:w,velocity:T,isResolvedFromDuration:D}=r0({...o,velocity:-Kt(o.velocity||0)}),j=T||0,M=g/(2*Math.sqrt(m*v)),V=f-d,I=Kt(Math.sqrt(m/v)),$=Math.abs(V)<5;a||(a=$?Ae.restSpeed.granular:Ae.restSpeed.default),c||(c=$?Ae.restDelta.granular:Ae.restDelta.default);let K;if(M<1){const X=va(I,M);K=ie=>{const ue=Math.exp(-M*I*ie);return f-ue*((j+M*I*V)/X*Math.sin(X*ie)+V*Math.cos(X*ie))}}else if(M===1)K=X=>f-Math.exp(-I*X)*(V+(j+I*V)*X);else{const X=I*Math.sqrt(M*M-1);K=ie=>{const ue=Math.exp(-M*I*ie),J=Math.min(X*ie,300);return f-ue*((j+M*I*V)*Math.sinh(J)+X*V*Math.cosh(J))/X}}const ne={calculatedDuration:D&&w||null,next:X=>{const ie=K(X);if(D)p.done=X>=w;else{let ue=0;M<1&&(ue=X===0?Ht(j):kp(K,X,ie));const J=Math.abs(ue)<=a,me=Math.abs(f-ie)<=c;p.done=J&&me}return p.value=p.done?f:ie,p},toString:()=>{const X=Math.min(Sp(ne),ga),ie=Yh(ue=>ne.next(X*ue).value,X,30);return X+"ms "+ie}};return ne}function Ed({keyframes:r,velocity:i=0,power:o=.8,timeConstant:a=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const w=r[0],T={done:!1,value:w},D=J=>p!==void 0&&Jm,j=J=>p===void 0?m:m===void 0||Math.abs(p-J)-M*Math.exp(-J/a),K=J=>I+$(J),ne=J=>{const me=$(J),ge=K(J);T.done=Math.abs(me)<=g,T.value=T.done?I:ge};let X,ie;const ue=J=>{D(T.value)&&(X=J,ie=Pp({keyframes:[T.value,j(T.value)],velocity:kp(K,J,T.value),damping:c,stiffness:d,restDelta:g,restSpeed:v}))};return ue(0),{calculatedDuration:null,next:J=>{let me=!1;return!ie&&X===void 0&&(me=!0,ne(J),ue(J)),X!==void 0&&J>=X?ie.next(J-X):(!me&&ne(J),T)}}}const i0=vi(.42,0,1,1),s0=vi(0,0,.58,1),Cp=vi(.42,0,.58,1),o0=r=>Array.isArray(r)&&typeof r[0]!="number",l0={linear:ft,easeIn:i0,easeInOut:Cp,easeOut:s0,circIn:Xa,circInOut:ip,circOut:rp,backIn:Ya,backInOut:tp,backOut:ep,anticipate:np},Dd=r=>{if(Qa(r)){Ch(r.length===4);const[i,o,a,c]=r;return vi(i,o,a,c)}else if(typeof r=="string")return l0[r];return r};function a0(r,i,o){const a=[],c=o||Tp,d=r.length-1;for(let f=0;fi[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=r[0]===r[1];r[0]>r[d-1]&&(r=[...r].reverse(),i=[...i].reverse());const p=a0(i,a,c),m=p.length,g=v=>{if(f&&v1)for(;wg(Gt(r[0],r[d-1],v)):g}function c0(r,i){const o=r[r.length-1];for(let a=1;a<=i;a++){const c=hr(0,i,a);r.push(Ee(o,1,c))}}function f0(r){const i=[0];return c0(i,r.length-1),i}function d0(r,i){return r.map(o=>o*i)}function h0(r,i){return r.map(()=>i||Cp).splice(0,r.length-1)}function $s({duration:r=300,keyframes:i,times:o,ease:a="easeInOut"}){const c=o0(a)?a.map(Dd):Dd(a),d={done:!1,value:i[0]},f=d0(o&&o.length===i.length?o:f0(i),r),p=u0(f,i,{ease:Array.isArray(c)?c:h0(i,c)});return{calculatedDuration:r,next:m=>(d.value=p(m),d.done=m>=r,d)}}const p0=r=>{const i=({timestamp:o})=>r(o);return{start:()=>xe.update(i,!0),stop:()=>pn(i),now:()=>We.isProcessing?We.timestamp:jt.now()}},m0={decay:Ed,inertia:Ed,tween:$s,keyframes:$s,spring:Pp},g0=r=>r/100;class tu extends wp{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:o,motionValue:a,element:c,keyframes:d}=this.options,f=c?.KeyframeResolver||ba,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(d,p,o,a,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:o="keyframes",repeat:a=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=this.options,p=Ga(o)?o:m0[o]||$s;let m,g;p!==$s&&typeof i[0]!="number"&&(m=wi(g0,Tp(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});d==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Sp(v));const{calculatedDuration:w}=v,T=w+c,D=T*(a+1)-c;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:w,resolvedDuration:T,totalDuration:D}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,o=!1){const{resolved:a}=this;if(!a){const{keyframes:J}=this.options;return{done:!0,value:J[J.length-1]}}const{finalKeyframe:c,generator:d,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:w}=a;if(this.startTime===null)return d.next(0);const{delay:T,repeat:D,repeatType:j,repeatDelay:M,onUpdate:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-v/this.speed,this.startTime)),o?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const I=this.currentTime-T*(this.speed>=0?1:-1),$=this.speed>=0?I<0:I>v;this.currentTime=Math.max(I,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let K=this.currentTime,ne=d;if(D){const J=Math.min(this.currentTime,v)/w;let me=Math.floor(J),ge=J%1;!ge&&J>=1&&(ge=1),ge===1&&me--,me=Math.min(me,D+1),!!(me%2)&&(j==="reverse"?(ge=1-ge,M&&(ge-=M/w)):j==="mirror"&&(ne=f)),K=Gt(0,1,ge)*w}const X=$?{done:!1,value:m[0]}:ne.next(K);p&&(X.value=p(X.value));let{done:ie}=X;!$&&g!==null&&(ie=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const ue=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return ue&&c!==void 0&&(X.value=Xs(m,this.options,c)),V&&V(X.value),ue&&this.finish(),X}get duration(){const{resolved:i}=this;return i?Kt(i.calculatedDuration):0}get time(){return Kt(this.currentTime)}set time(i){i=Ht(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const o=this.playbackSpeed!==i;this.playbackSpeed=i,o&&(this.time=Kt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=p0,onPlay:o,startTime:a}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),o&&o();const c=this.driver.now();this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=c):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const y0=new Set(["opacity","clipPath","filter","transform"]);function v0(r,i,o,{delay:a=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:o};m&&(g.offset=m);const v=qh(p,c);return Array.isArray(v)&&(g.easing=v),r.animate(g,{delay:a,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"})}const w0=Ka(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ws=10,S0=2e4;function x0(r){return Ga(r.type)||r.type==="spring"||!Xh(r.ease)}function T0(r,i){const o=new tu({...i,keyframes:r,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:r[0]};const c=[];let d=0;for(;!a.done&&dthis.onKeyframesResolved(f,p),o,a,c),this.resolver.scheduleResolve()}initPlayback(i,o){let{duration:a=300,times:c,ease:d,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof d=="string"&&Bs()&&k0(d)&&(d=Ep[d]),x0(this.options)){const{onComplete:w,onUpdate:T,motionValue:D,element:j,...M}=this.options,V=T0(i,M);i=V.keyframes,i.length===1&&(i[1]=i[0]),a=V.duration,c=V.times,d=V.ease,f="keyframes"}const v=v0(p.owner.current,m,i,{...this.options,duration:a,times:c,ease:d});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(gd(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:w}=this.options;p.set(Xs(i,this.options,o)),w&&w(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:c,type:f,ease:d,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:o}=i;return Kt(o)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:o}=i;return Kt(o.currentTime||0)}set time(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.currentTime=Ht(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:o}=i;return o.playbackRate}set speed(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:o}=i;return o.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:o}=i;return o.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:o}=this;if(!o)return ft;const{animation:a}=o;gd(a,i)}return ft}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:o,keyframes:a,duration:c,type:d,ease:f,times:p}=i;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:w,element:T,...D}=this.options,j=new tu({...D,keyframes:a,duration:c,type:d,ease:f,times:p,isGenerator:!0}),M=Ht(this.time);g.setWithVelocity(j.sample(M-Ws).value,j.sample(M).value,Ws)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:o,name:a,repeatDelay:c,repeatType:d,damping:f,type:p}=i;if(!o||!o.owner||!(o.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=o.owner.getProps();return w0()&&a&&y0.has(a)&&!m&&!g&&!c&&d!=="mirror"&&f!==0&&p!=="inertia"}}const P0={type:"spring",stiffness:500,damping:25,restSpeed:10},C0=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),E0={type:"keyframes",duration:.8},D0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},A0=(r,{keyframes:i})=>i.length>2?E0:jn.has(r)?r.startsWith("scale")?C0(i[1]):P0:D0;function M0({when:r,delay:i,delayChildren:o,staggerChildren:a,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const nu=(r,i,o,a={},c,d)=>f=>{const p=Ua(a,r)||{},m=p.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Ht(m);let v={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:T=>{i.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:r,motionValue:i,element:d?void 0:c};M0(p)||(v={...v,...A0(r,v)}),v.duration&&(v.duration=Ht(v.duration)),v.repeatDelay&&(v.repeatDelay=Ht(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let w=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(w=!0)),w&&!d&&i.get()!==void 0){const T=Xs(v.keyframes,p);if(T!==void 0)return xe.update(()=>{v.onUpdate(T),v.onComplete()}),new lv([])}return!d&&Ad.supports(v)?new Ad(v):new tu(v)};function R0({protectedKeys:r,needsAnimating:i},o){const a=r.hasOwnProperty(o)&&i[o]!==!0;return i[o]=!1,a}function Dp(r,i,{delay:o=0,transitionOverride:a,type:c}={}){var d;let{transition:f=r.getDefaultTransition(),transitionEnd:p,...m}=i;a&&(f=a);const g=[],v=c&&r.animationState&&r.animationState.getState()[c];for(const w in m){const T=r.getValue(w,(d=r.latestValues[w])!==null&&d!==void 0?d:null),D=m[w];if(D===void 0||v&&R0(v,w))continue;const j={delay:o,...Ua(f||{},w)};let M=!1;if(window.MotionHandoffAnimation){const I=Qh(r);if(I){const $=window.MotionHandoffAnimation(I,w,xe);$!==null&&(j.startTime=$,M=!0)}}ca(r,w),T.start(nu(w,T,D,r.shouldReduceMotion&&Kh.has(w)?{type:!1}:j,r,M));const V=T.animation;V&&g.push(V)}return p&&Promise.all(g).then(()=>{xe.update(()=>{p&&rv(r,p)})}),g}function wa(r,i,o={}){var a;const c=Ys(r,i,o.type==="exit"?(a=r.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:d=r.getDefaultTransition()||{}}=c||{};o.transitionOverride&&(d=o.transitionOverride);const f=c?()=>Promise.all(Dp(r,c,o)):()=>Promise.resolve(),p=r.variantChildren&&r.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:w,staggerDirection:T}=d;return L0(r,i,v+g,w,T,o)}:()=>Promise.resolve(),{when:m}=d;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(o.delay)])}function L0(r,i,o=0,a=0,c=1,d){const f=[],p=(r.variantChildren.size-1)*a,m=c===1?(g=0)=>g*a:(g=0)=>p-g*a;return Array.from(r.variantChildren).sort(N0).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(wa(g,i,{...d,delay:o+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function N0(r,i){return r.sortNodePosition(i)}function V0(r,i,o={}){r.notify("AnimationStart",i);let a;if(Array.isArray(i)){const c=i.map(d=>wa(r,d,o));a=Promise.all(c)}else if(typeof i=="string")a=wa(r,i,o);else{const c=typeof i=="function"?Ys(r,i,o.custom):i;a=Promise.all(Dp(r,c,o))}return a.then(()=>{r.notify("AnimationComplete",i)})}const _0=Ma.length;function Ap(r){if(!r)return;if(!r.isControllingVariants){const o=r.parent?Ap(r.parent)||{}:{};return r.props.initial!==void 0&&(o.initial=r.props.initial),o}const i={};for(let o=0;o<_0;o++){const a=Ma[o],c=r.props[a];(di(c)||c===!1)&&(i[a]=c)}return i}const j0=[...Aa].reverse(),F0=Aa.length;function O0(r){return i=>Promise.all(i.map(({animation:o,options:a})=>V0(r,o,a)))}function I0(r){let i=O0(r),o=Md(),a=!0;const c=m=>(g,v)=>{var w;const T=Ys(r,v,m==="exit"?(w=r.presenceContext)===null||w===void 0?void 0:w.custom:void 0);if(T){const{transition:D,transitionEnd:j,...M}=T;g={...g,...M,...j}}return g};function d(m){i=m(r)}function f(m){const{props:g}=r,v=Ap(r.parent)||{},w=[],T=new Set;let D={},j=1/0;for(let V=0;Vj&&ne,me=!1;const ge=Array.isArray(K)?K:[K];let ve=ge.reduce(c(I),{});X===!1&&(ve={});const{prevResolvedValues:Me={}}=$,Fe={...Me,...ve},He=oe=>{J=!0,T.has(oe)&&(me=!0,T.delete(oe)),$.needsAnimating[oe]=!0;const z=r.getValue(oe);z&&(z.liveStyle=!1)};for(const oe in Fe){const z=ve[oe],Q=Me[oe];if(D.hasOwnProperty(oe))continue;let B=!1;ua(z)&&ua(Q)?B=!Hh(z,Q):B=z!==Q,B?z!=null?He(oe):T.add(oe):z!==void 0&&T.has(oe)?He(oe):$.protectedKeys[oe]=!0}$.prevProp=K,$.prevResolvedValues=ve,$.isActive&&(D={...D,...ve}),a&&r.blockInitialAnimation&&(J=!1),J&&(!(ie&&ue)||me)&&w.push(...ge.map(oe=>({animation:oe,options:{type:I}})))}if(T.size){const V={};T.forEach(I=>{const $=r.getBaseTarget(I),K=r.getValue(I);K&&(K.liveStyle=!0),V[I]=$??null}),w.push({animation:V})}let M=!!w.length;return a&&(g.initial===!1||g.initial===g.animate)&&!r.manuallyAnimateOnMount&&(M=!1),a=!1,M?i(w):Promise.resolve()}function p(m,g){var v;if(o[m].isActive===g)return Promise.resolve();(v=r.variantChildren)===null||v===void 0||v.forEach(T=>{var D;return(D=T.animationState)===null||D===void 0?void 0:D.setActive(m,g)}),o[m].isActive=g;const w=f(m);for(const T in o)o[T].protectedKeys={};return w}return{animateChanges:f,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=Md(),a=!0}}}function z0(r,i){return typeof i=="string"?i!==r:Array.isArray(i)?!Hh(i,r):!1}function Rn(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Md(){return{animate:Rn(!0),whileInView:Rn(),whileHover:Rn(),whileTap:Rn(),whileDrag:Rn(),whileFocus:Rn(),exit:Rn()}}class gn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class B0 extends gn{constructor(i){super(i),i.animationState||(i.animationState=I0(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Gs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:o}=this.node.prevProps||{};i!==o&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let U0=0;class $0 extends gn{constructor(){super(...arguments),this.id=U0++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===a)return;const c=this.node.animationState.setActive("exit",!i);o&&!i&&c.then(()=>o(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const W0={animation:{Feature:B0},exit:{Feature:$0}},At={x:!1,y:!1};function Mp(){return At.x||At.y}function H0(r){return r==="x"||r==="y"?At[r]?null:(At[r]=!0,()=>{At[r]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}const ru=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1;function gi(r,i,o,a={passive:!0}){return r.addEventListener(i,o,a),()=>r.removeEventListener(i,o)}function Si(r){return{point:{x:r.pageX,y:r.pageY}}}const K0=r=>i=>ru(i)&&r(i,Si(i));function ui(r,i,o,a){return gi(r,i,K0(o),a)}const Rd=(r,i)=>Math.abs(r-i);function G0(r,i){const o=Rd(r.x,i.x),a=Rd(r.y,i.y);return Math.sqrt(o**2+a**2)}class Rp{constructor(i,o,{transformPagePoint:a,contextWindow:c,dragSnapToOrigin:d=!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 w=ta(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,D=G0(w.offset,{x:0,y:0})>=3;if(!T&&!D)return;const{point:j}=w,{timestamp:M}=We;this.history.push({...j,timestamp:M});const{onStart:V,onMove:I}=this.handlers;T||(V&&V(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,w)},this.handlePointerMove=(w,T)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=ea(T,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(w,T)=>{this.end();const{onEnd:D,onSessionEnd:j,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const V=ta(w.type==="pointercancel"?this.lastMoveEventInfo:ea(T,this.transformPagePoint),this.history);this.startEvent&&D&&D(w,V),j&&j(w,V)},!ru(i))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=a,this.contextWindow=c||window;const f=Si(i),p=ea(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=We;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=o;v&&v(i,ta(p,this.history)),this.removeListeners=wi(ui(this.contextWindow,"pointermove",this.handlePointerMove),ui(this.contextWindow,"pointerup",this.handlePointerUp),ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),pn(this.updatePoint)}}function ea(r,i){return i?{point:i(r.point)}:r}function Ld(r,i){return{x:r.x-i.x,y:r.y-i.y}}function ta({point:r},i){return{point:r,delta:Ld(r,Lp(i)),offset:Ld(r,Q0(i)),velocity:Y0(i,.1)}}function Q0(r){return r[0]}function Lp(r){return r[r.length-1]}function Y0(r,i){if(r.length<2)return{x:0,y:0};let o=r.length-1,a=null;const c=Lp(r);for(;o>=0&&(a=r[o],!(c.timestamp-a.timestamp>Ht(i)));)o--;if(!a)return{x:0,y:0};const d=Kt(c.timestamp-a.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-a.x)/d,y:(c.y-a.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}const Np=1e-4,X0=1-Np,q0=1+Np,Vp=.01,Z0=0-Vp,J0=0+Vp;function dt(r){return r.max-r.min}function b0(r,i,o){return Math.abs(r-i)<=o}function Nd(r,i,o,a=.5){r.origin=a,r.originPoint=Ee(i.min,i.max,r.origin),r.scale=dt(o)/dt(i),r.translate=Ee(o.min,o.max,r.origin)-r.originPoint,(r.scale>=X0&&r.scale<=q0||isNaN(r.scale))&&(r.scale=1),(r.translate>=Z0&&r.translate<=J0||isNaN(r.translate))&&(r.translate=0)}function ci(r,i,o,a){Nd(r.x,i.x,o.x,a?a.originX:void 0),Nd(r.y,i.y,o.y,a?a.originY:void 0)}function Vd(r,i,o){r.min=o.min+i.min,r.max=r.min+dt(i)}function e1(r,i,o){Vd(r.x,i.x,o.x),Vd(r.y,i.y,o.y)}function _d(r,i,o){r.min=i.min-o.min,r.max=r.min+dt(i)}function fi(r,i,o){_d(r.x,i.x,o.x),_d(r.y,i.y,o.y)}function t1(r,{min:i,max:o},a){return i!==void 0&&ro&&(r=a?Ee(o,r,a.max):Math.min(r,o)),r}function jd(r,i,o){return{min:i!==void 0?r.min+i:void 0,max:o!==void 0?r.max+o-(r.max-r.min):void 0}}function n1(r,{top:i,left:o,bottom:a,right:c}){return{x:jd(r.x,o,c),y:jd(r.y,i,a)}}function Fd(r,i){let o=i.min-r.min,a=i.max-r.max;return i.max-i.mina?o=hr(i.min,i.max-a,r.min):a>c&&(o=hr(r.min,r.max-c,i.min)),Gt(0,1,o)}function s1(r,i){const o={};return i.min!==void 0&&(o.min=i.min-r.min),i.max!==void 0&&(o.max=i.max-r.min),o}const Sa=.35;function o1(r=Sa){return r===!1?r=0:r===!0&&(r=Sa),{x:Od(r,"left","right"),y:Od(r,"top","bottom")}}function Od(r,i,o){return{min:Id(r,i),max:Id(r,o)}}function Id(r,i){return typeof r=="number"?r:r[i]||0}const zd=()=>({translate:0,scale:1,origin:0,originPoint:0}),ur=()=>({x:zd(),y:zd()}),Bd=()=>({min:0,max:0}),Ne=()=>({x:Bd(),y:Bd()});function St(r){return[r("x"),r("y")]}function _p({top:r,left:i,right:o,bottom:a}){return{x:{min:i,max:o},y:{min:r,max:a}}}function l1({x:r,y:i}){return{top:i.min,right:r.max,bottom:i.max,left:r.min}}function a1(r,i){if(!i)return r;const o=i({x:r.left,y:r.top}),a=i({x:r.right,y:r.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function na(r){return r===void 0||r===1}function xa({scale:r,scaleX:i,scaleY:o}){return!na(r)||!na(i)||!na(o)}function Ln(r){return xa(r)||jp(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function jp(r){return Ud(r.x)||Ud(r.y)}function Ud(r){return r&&r!=="0%"}function Hs(r,i,o){const a=r-o,c=i*a;return o+c}function $d(r,i,o,a,c){return c!==void 0&&(r=Hs(r,c,a)),Hs(r,o,a)+i}function Ta(r,i=0,o=1,a,c){r.min=$d(r.min,i,o,a,c),r.max=$d(r.max,i,o,a,c)}function Fp(r,{x:i,y:o}){Ta(r.x,i.translate,i.scale,i.originPoint),Ta(r.y,o.translate,o.scale,o.originPoint)}const Wd=.999999999999,Hd=1.0000000000001;function u1(r,i,o,a=!1){const c=o.length;if(!c)return;i.x=i.y=1;let d,f;for(let p=0;pWd&&(i.x=1),i.yWd&&(i.y=1)}function cr(r,i){r.min=r.min+i,r.max=r.max+i}function Kd(r,i,o,a,c=.5){const d=Ee(r.min,r.max,c);Ta(r,i,o,d,a)}function fr(r,i){Kd(r.x,i.x,i.scaleX,i.scale,i.originX),Kd(r.y,i.y,i.scaleY,i.scale,i.originY)}function Op(r,i){return _p(a1(r.getBoundingClientRect(),i))}function c1(r,i,o){const a=Op(r,o),{scroll:c}=i;return c&&(cr(a.x,c.offset.x),cr(a.y,c.offset.y)),a}const Ip=({current:r})=>r?r.ownerDocument.defaultView:null,f1=new WeakMap;class d1{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ne(),this.visualElement=i}start(i,{snapToCursor:o=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(Si(v).point)},d=(v,w)=>{const{drag:T,dragPropagation:D,onDragStart:j}=this.getProps();if(T&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=H0(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(V=>{let I=this.getAxisMotionValue(V).get()||0;if(_t.test(I)){const{projection:$}=this.visualElement;if($&&$.layout){const K=$.layout.layoutBox[V];K&&(I=dt(K)*(parseFloat(I)/100))}}this.originPoint[V]=I}),j&&xe.postRender(()=>j(v,w)),ca(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},f=(v,w)=>{const{dragPropagation:T,dragDirectionLock:D,onDirectionLock:j,onDrag:M}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:V}=w;if(D&&this.currentDirection===null){this.currentDirection=h1(V),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",w.point,V),this.updateAxis("y",w.point,V),this.visualElement.render(),M&&M(v,w)},p=(v,w)=>this.stop(v,w),m=()=>St(v=>{var w;return this.getAnimationState(v)==="paused"&&((w=this.getAxisMotionValue(v).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Rp(i,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:Ip(this.visualElement)})}stop(i,o){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&xe.postRender(()=>d(i,o))}cancel(){this.isDragging=!1;const{projection:i,animationState:o}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(i,o,a){const{drag:c}=this.getProps();if(!a||!_s(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(f=t1(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var i;const{dragConstraints:o,dragElastic:a}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,d=this.constraints;o&&lr(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&c?this.constraints=n1(c.layoutBox,o):this.constraints=!1,this.elastic=o1(a),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&St(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=s1(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:o}=this.getProps();if(!i||!lr(i))return!1;const a=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=c1(a,c.root,this.visualElement.getTransformPagePoint());let f=r1(c.layout.layoutBox,d);if(o){const p=o(l1(f));this.hasMutatedConstraints=!!p,p&&(f=_p(p))}return f}startAnimation(i){const{drag:o,dragMomentum:a,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=St(v=>{if(!_s(v,o,this.currentDirection))return;let w=m&&m[v]||{};f&&(w={min:0,max:0});const T=c?200:1e6,D=c?40:1e7,j={type:"inertia",velocity:a?i[v]:0,bounceStiffness:T,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...w};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(p)}startAxisValueAnimation(i,o){const a=this.getAxisMotionValue(i);return ca(this.visualElement,i),a.start(nu(i,a,0,o,this.visualElement,!1))}stopAnimation(){St(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){St(i=>{var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(i){var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(i){const o=`_drag${i.toUpperCase()}`,a=this.visualElement.getProps(),c=a[o];return c||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){St(o=>{const{drag:a}=this.getProps();if(!_s(o,a,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o];d.set(i[o]-Ee(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!lr(o)||!a||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};St(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=i1({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),St(f=>{if(!_s(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(Ee(m,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;f1.set(this.visualElement,this);const i=this.visualElement.current,o=ui(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();lr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",a);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),xe.read(a);const f=gi(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(St(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=m[v].translate,w.set(w.get()+m[v].translate))}),this.visualElement.render())}));return()=>{f(),o(),d(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=Sa,dragMomentum:p=!0}=i;return{...i,drag:o,dragDirectionLock:a,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function _s(r,i,o){return(i===!0||i===r)&&(o===null||o===r)}function h1(r,i=10){let o=null;return Math.abs(r.y)>i?o="y":Math.abs(r.x)>i&&(o="x"),o}class p1 extends gn{constructor(i){super(i),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new d1(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gd=r=>(i,o)=>{r&&xe.postRender(()=>r(i,o))};class m1 extends gn{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(i){this.session=new Rp(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ip(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:o,onPan:a,onPanEnd:c}=this.node.getProps();return{onSessionStart:Gd(i),onStart:Gd(o),onMove:a,onEnd:(d,f)=>{delete this.session,c&&xe.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=ui(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qd(r,i){return i.max===i.min?0:r/(i.max-i.min)*100}const ri={correct:(r,i)=>{if(!i.target)return r;if(typeof r=="string")if(te.test(r))r=parseFloat(r);else return r;const o=Qd(r,i.target.x),a=Qd(r,i.target.y);return`${o}% ${a}%`}},g1={correct:(r,{treeScale:i,projectionDelta:o})=>{const a=r,c=mn.parse(r);if(c.length>5)return a;const d=mn.createTransformer(r),f=typeof c[0]!="number"?1:0,p=o.x.scale*i.x,m=o.y.scale*i.y;c[0+f]/=p,c[1+f]/=m;const g=Ee(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),d(c)}};class y1 extends q.Component{componentDidMount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a,layoutId:c}=this.props,{projection:d}=i;Wy(v1),d&&(o.group&&o.group.add(d),a&&a.register&&c&&a.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),Os.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:o,visualElement:a,drag:c,isPresent:d}=this.props,f=a.projection;return f&&(f.isPresent=d,c||i.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||xe.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),La.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:c}=i;c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),a&&a.deregister&&a.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function zp(r){const[i,o]=iy(),a=q.useContext(kh);return A.jsx(y1,{...r,layoutGroup:a,switchLayoutGroup:q.useContext(Lh),isPresent:i,safeToRemove:o})}const v1={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:g1};function w1(r,i,o){const a=qe(r)?r:pi(r);return a.start(nu("",a,i,o)),a.animation}function S1(r){return r instanceof SVGElement&&r.tagName!=="svg"}const x1=(r,i)=>r.depth-i.depth;class T1{constructor(){this.children=[],this.isDirty=!1}add(i){$a(this.children,i),this.isDirty=!0}remove(i){Wa(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(x1),this.isDirty=!1,this.children.forEach(i)}}function k1(r,i){const o=jt.now(),a=({timestamp:c})=>{const d=c-o;d>=i&&(pn(a),r(d-i))};return xe.read(a,!0),()=>pn(a)}const Bp=["TopLeft","TopRight","BottomLeft","BottomRight"],P1=Bp.length,Yd=r=>typeof r=="string"?parseFloat(r):r,Xd=r=>typeof r=="number"||te.test(r);function C1(r,i,o,a,c,d){c?(r.opacity=Ee(0,o.opacity!==void 0?o.opacity:1,E1(a)),r.opacityExit=Ee(i.opacity!==void 0?i.opacity:1,0,D1(a))):d&&(r.opacity=Ee(i.opacity!==void 0?i.opacity:1,o.opacity!==void 0?o.opacity:1,a));for(let f=0;fai?1:o(hr(r,i,a))}function Zd(r,i){r.min=i.min,r.max=i.max}function wt(r,i){Zd(r.x,i.x),Zd(r.y,i.y)}function Jd(r,i){r.translate=i.translate,r.scale=i.scale,r.originPoint=i.originPoint,r.origin=i.origin}function bd(r,i,o,a,c){return r-=i,r=Hs(r,1/o,a),c!==void 0&&(r=Hs(r,1/c,a)),r}function A1(r,i=0,o=1,a=.5,c,d=r,f=r){if(_t.test(i)&&(i=parseFloat(i),i=Ee(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Ee(d.min,d.max,a);r===d&&(p-=i),r.min=bd(r.min,i,o,p,c),r.max=bd(r.max,i,o,p,c)}function eh(r,i,[o,a,c],d,f){A1(r,i[o],i[a],i[c],i.scale,d,f)}const M1=["x","scaleX","originX"],R1=["y","scaleY","originY"];function th(r,i,o,a){eh(r.x,i,M1,o?o.x:void 0,a?a.x:void 0),eh(r.y,i,R1,o?o.y:void 0,a?a.y:void 0)}function nh(r){return r.translate===0&&r.scale===1}function $p(r){return nh(r.x)&&nh(r.y)}function rh(r,i){return r.min===i.min&&r.max===i.max}function L1(r,i){return rh(r.x,i.x)&&rh(r.y,i.y)}function ih(r,i){return Math.round(r.min)===Math.round(i.min)&&Math.round(r.max)===Math.round(i.max)}function Wp(r,i){return ih(r.x,i.x)&&ih(r.y,i.y)}function sh(r){return dt(r.x)/dt(r.y)}function oh(r,i){return r.translate===i.translate&&r.scale===i.scale&&r.originPoint===i.originPoint}class N1{constructor(){this.members=[]}add(i){$a(this.members,i),i.scheduleRender()}remove(i){if(Wa(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(i){const o=this.members.findIndex(c=>i===c);if(o===0)return!1;let a;for(let c=o;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){a=d;break}}return a?(this.promote(a),!0):!1}promote(i,o){const a=this.lead;if(i!==a&&(this.prevLead=a,this.lead=i,i.show(),a)){a.instance&&a.scheduleRender(),i.scheduleRender(),i.resumeFrom=a,o&&(i.resumeFrom.preserveOpacity=!0),a.snapshot&&(i.snapshot=a.snapshot,i.snapshot.latestValues=a.animationValues||a.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:o,resumingFrom:a}=i;o.onExitComplete&&o.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function V1(r,i,o){let a="";const c=r.x.translate/i.x,d=r.y.translate/i.y,f=o?.z||0;if((c||d||f)&&(a=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),o){const{transformPerspective:g,rotate:v,rotateX:w,rotateY:T,skewX:D,skewY:j}=o;g&&(a=`perspective(${g}px) ${a}`),v&&(a+=`rotate(${v}deg) `),w&&(a+=`rotateX(${w}deg) `),T&&(a+=`rotateY(${T}deg) `),D&&(a+=`skewX(${D}deg) `),j&&(a+=`skewY(${j}deg) `)}const p=r.x.scale*i.x,m=r.y.scale*i.y;return(p!==1||m!==1)&&(a+=`scale(${p}, ${m})`),a||"none"}const Nn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},si=typeof window<"u"&&window.MotionDebug!==void 0,ra=["","X","Y","Z"],_1={visibility:"hidden"},lh=1e3;let j1=0;function ia(r,i,o,a){const{latestValues:c}=i;c[r]&&(o[r]=c[r],i.setStaticValue(r,0),a&&(a[r]=0))}function Hp(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:i}=r.options;if(!i)return;const o=Qh(i);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=r.options;window.MotionCancelOptimisedAnimation(o,"transform",xe,!(c||d))}const{parent:a}=r;a&&!a.hasCheckedOptimisedAppear&&Hp(a)}function Kp({attachResizeListener:r,defaultParent:i,measureScroll:o,checkIsScrollRoot:a,resetTransform:c}){return class{constructor(f={},p=i?.()){this.id=j1++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,si&&(Nn.totalNodes=Nn.resolvedTargetDeltas=Nn.recalculatedProjection=0),this.nodes.forEach(I1),this.nodes.forEach(W1),this.nodes.forEach(H1),this.nodes.forEach(z1),si&&window.MotionDebug.record(Nn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;r(f,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=k1(T,250),Os.hasAnimatedSinceResize&&(Os.hasAnimatedSinceResize=!1,this.nodes.forEach(uh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:T,hasRelativeTargetChanged:D,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||v.getDefaultTransition()||X1,{onLayoutAnimationStart:V,onLayoutAnimationComplete:I}=v.getProps(),$=!this.targetLayout||!Wp(this.targetLayout,j)||D,K=!T&&D;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||K||T&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,K);const ne={...Ua(M,"layout"),onPlay:V,onComplete:I};(v.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||uh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,pn(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(K1),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{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 m=0;m{const X=ne/1e3;ch(w.x,f.x,X),ch(w.y,f.y,X),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fi(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Q1(this.relativeTarget,this.relativeTargetOrigin,T,X),K&&L1(this.relativeTarget,K)&&(this.isProjectionDirty=!1),K||(K=Ne()),wt(K,this.relativeTarget)),M&&(this.animationValues=v,C1(v,g,this.latestValues,X,$,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{Os.hasAnimatedSinceResize=!0,this.currentAnimation=w1(0,lh,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(lh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:v}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&Gp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Ne();const w=dt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+w;const T=dt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+T}wt(p,m),fr(p,v),ci(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new N1),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&ia("z",f,g,this.animationValues);for(let v=0;v{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(ah),this.root.sharedNodes.clear()}}}function F1(r){r.updateLayout()}function O1(r){var i;const o=((i=r.resumeFrom)===null||i===void 0?void 0:i.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&o&&r.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:c}=r.layout,{animationType:d}=r.options,f=o.source!==r.layout.source;d==="size"?St(w=>{const T=f?o.measuredBox[w]:o.layoutBox[w],D=dt(T);T.min=a[w].min,T.max=T.min+D}):Gp(d,o.layoutBox,a)&&St(w=>{const T=f?o.measuredBox[w]:o.layoutBox[w],D=dt(a[w]);T.max=T.min+D,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[w].max=r.relativeTarget[w].min+D)});const p=ur();ci(p,a,o.layoutBox);const m=ur();f?ci(m,r.applyTransform(c,!0),o.measuredBox):ci(m,a,o.layoutBox);const g=!$p(p);let v=!1;if(!r.resumeFrom){const w=r.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:T,layout:D}=w;if(T&&D){const j=Ne();fi(j,o.layoutBox,T.layoutBox);const M=Ne();fi(M,a,D.layoutBox),Wp(j,M)||(v=!0),w.options.layoutRoot&&(r.relativeTarget=M,r.relativeTargetOrigin=j,r.relativeParent=w)}}}r.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:v})}else if(r.isLead()){const{onExitComplete:a}=r.options;a&&a()}r.options.transition=void 0}function I1(r){si&&Nn.totalNodes++,r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function z1(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function B1(r){r.clearSnapshot()}function ah(r){r.clearMeasurements()}function U1(r){r.isLayoutDirty=!1}function $1(r){const{visualElement:i}=r.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),r.resetTransform()}function uh(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function W1(r){r.resolveTargetDelta()}function H1(r){r.calcProjection()}function K1(r){r.resetSkewAndRotation()}function G1(r){r.removeLeadSnapshot()}function ch(r,i,o){r.translate=Ee(i.translate,0,o),r.scale=Ee(i.scale,1,o),r.origin=i.origin,r.originPoint=i.originPoint}function fh(r,i,o,a){r.min=Ee(i.min,o.min,a),r.max=Ee(i.max,o.max,a)}function Q1(r,i,o,a){fh(r.x,i.x,o.x,a),fh(r.y,i.y,o.y,a)}function Y1(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const X1={duration:.45,ease:[.4,0,.1,1]},dh=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),hh=dh("applewebkit/")&&!dh("chrome/")?Math.round:ft;function ph(r){r.min=hh(r.min),r.max=hh(r.max)}function q1(r){ph(r.x),ph(r.y)}function Gp(r,i,o){return r==="position"||r==="preserve-aspect"&&!b0(sh(i),sh(o),.2)}function Z1(r){var i;return r!==r.root&&((i=r.scroll)===null||i===void 0?void 0:i.wasRoot)}const J1=Kp({attachResizeListener:(r,i)=>gi(r,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sa={current:void 0},Qp=Kp({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!sa.current){const r=new J1({});r.mount(window),r.setOptions({layoutScroll:!0}),sa.current=r}return sa.current},resetTransform:(r,i)=>{r.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),b1={pan:{Feature:m1},drag:{Feature:p1,ProjectionNode:Qp,MeasureLayout:zp}};function ew(r,i,o){var a;if(r instanceof Element)return[r];if(typeof r=="string"){let c=document;const d=(a=void 0)!==null&&a!==void 0?a:c.querySelectorAll(r);return d?Array.from(d):[]}return Array.from(r)}function Yp(r,i){const o=ew(r),a=new AbortController,c={passive:!0,...i,signal:a.signal};return[o,c,()=>a.abort()]}function mh(r){return i=>{i.pointerType==="touch"||Mp()||r(i)}}function tw(r,i,o={}){const[a,c,d]=Yp(r,o),f=mh(p=>{const{target:m}=p,g=i(p);if(typeof g!="function"||!m)return;const v=mh(w=>{g(w),m.removeEventListener("pointerleave",v)});m.addEventListener("pointerleave",v,c)});return a.forEach(p=>{p.addEventListener("pointerenter",f,c)}),d}function gh(r,i,o){const{props:a}=r;r.animationState&&a.whileHover&&r.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=a[c];d&&xe.postRender(()=>d(i,Si(i)))}class nw extends gn{mount(){const{current:i}=this.node;i&&(this.unmount=tw(i,o=>(gh(this.node,o,"Start"),a=>gh(this.node,a,"End"))))}unmount(){}}class rw extends gn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=wi(gi(this.node.current,"focus",()=>this.onFocus()),gi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Xp=(r,i)=>i?r===i?!0:Xp(r,i.parentElement):!1,iw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sw(r){return iw.has(r.tagName)||r.tabIndex!==-1}const oi=new WeakSet;function yh(r){return i=>{i.key==="Enter"&&r(i)}}function oa(r,i){r.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const ow=(r,i)=>{const o=r.currentTarget;if(!o)return;const a=yh(()=>{if(oi.has(o))return;oa(o,"down");const c=yh(()=>{oa(o,"up")}),d=()=>oa(o,"cancel");o.addEventListener("keyup",c,i),o.addEventListener("blur",d,i)});o.addEventListener("keydown",a,i),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),i)};function vh(r){return ru(r)&&!Mp()}function lw(r,i,o={}){const[a,c,d]=Yp(r,o),f=p=>{const m=p.currentTarget;if(!vh(p)||oi.has(m))return;oi.add(m);const g=i(p),v=(D,j)=>{window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",T),!(!vh(D)||!oi.has(m))&&(oi.delete(m),typeof g=="function"&&g(D,{success:j}))},w=D=>{v(D,o.useGlobalTarget||Xp(m,D.target))},T=D=>{v(D,!1)};window.addEventListener("pointerup",w,c),window.addEventListener("pointercancel",T,c)};return a.forEach(p=>{!sw(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0),(o.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),p.addEventListener("focus",g=>ow(g,c),c)}),d}function wh(r,i,o){const{props:a}=r;r.animationState&&a.whileTap&&r.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=a[c];d&&xe.postRender(()=>d(i,Si(i)))}class aw extends gn{mount(){const{current:i}=this.node;i&&(this.unmount=lw(i,o=>(wh(this.node,o,"Start"),(a,{success:c})=>wh(this.node,a,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ka=new WeakMap,la=new WeakMap,uw=r=>{const i=ka.get(r.target);i&&i(r)},cw=r=>{r.forEach(uw)};function fw({root:r,...i}){const o=r||document;la.has(o)||la.set(o,{});const a=la.get(o),c=JSON.stringify(i);return a[c]||(a[c]=new IntersectionObserver(cw,{root:r,...i})),a[c]}function dw(r,i,o){const a=fw(i);return ka.set(r,o),a.observe(r),()=>{ka.delete(r),a.unobserve(r)}}const hw={some:0,all:1};class pw extends gn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:o,margin:a,amount:c="some",once:d}=i,f={root:o?o.current:void 0,rootMargin:a,threshold:typeof c=="number"?c:hw[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:w}=this.node.getProps(),T=g?v:w;T&&T(m)};return dw(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:o}=this.node;["amount","margin","root"].some(mw(i,o))&&this.startObserver()}unmount(){}}function mw({viewport:r={}},{viewport:i={}}={}){return o=>r[o]!==i[o]}const gw={inView:{Feature:pw},tap:{Feature:aw},focus:{Feature:rw},hover:{Feature:nw}},yw={layout:{ProjectionNode:Qp,MeasureLayout:zp}},Pa={current:null},qp={current:!1};function vw(){if(qp.current=!0,!!Da)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),i=()=>Pa.current=r.matches;r.addListener(i),i()}else Pa.current=!1}const ww=[...yp,Xe,mn],Sw=r=>ww.find(gp(r)),Sh=new WeakMap;function xw(r,i,o){for(const a in i){const c=i[a],d=o[a];if(qe(c))r.addValue(a,c);else if(qe(d))r.addValue(a,pi(c,{owner:r}));else if(d!==c)if(r.hasValue(a)){const f=r.getValue(a);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=r.getStaticValue(a);r.addValue(a,pi(f!==void 0?f:c,{owner:r}))}}for(const a in o)i[a]===void 0&&r.removeValue(a);return i}const xh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Tw{scrapeMotionValuesFromProps(i,o,a){return{}}constructor({parent:i,props:o,presenceContext:a,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ba,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.renderScheduledAt=0,this.scheduleRender=()=>{const D=jt.now();this.renderScheduledAtthis.bindToMotionValue(a,o)),qp.current||vw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Sh.delete(this.current),this.projection&&this.projection.unmount(),pn(this.notifyUpdate),pn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(i,o){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const a=jn.has(i),c=o.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&xe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),d=o.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,o)),this.valueSubscriptions.set(i,()=>{c(),d(),f&&f(),o.owner&&o.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in dr){const o=dr[i];if(!o)continue;const{isEnabled:a,Feature:c}=o;if(!this.features[i]&&c&&a(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,o){this.latestValues[i]=o}update(i,o){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;ao.variantChildren.delete(i)}addValue(i,o){const a=this.values.get(i);o!==a&&(a&&this.removeValue(i),this.bindToMotionValue(i,o),this.values.set(i,o),this.latestValues[i]=o.get())}removeValue(i){this.values.delete(i);const o=this.valueSubscriptions.get(i);o&&(o(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,o){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&o!==void 0&&(a=pi(o===null?void 0:o,{owner:this}),this.addValue(i,a)),a}readValue(i,o){var a;let c=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(a=this.getBaseTargetFromProps(this.props,i))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,i,this.options);return c!=null&&(typeof c=="string"&&(pp(c)||sp(c))?c=parseFloat(c):!Sw(c)&&mn.test(o)&&(c=fp(i,o)),this.setBaseTarget(i,qe(c)?c.get():c)),qe(c)?c.get():c}setBaseTarget(i,o){this.baseTarget[i]=o}getBaseTarget(i){var o;const{initial:a}=this.props;let c;if(typeof a=="string"||typeof a=="object"){const f=Va(this.props,a,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);f&&(c=f[i])}if(a&&c!==void 0)return c;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!qe(d)?d:this.initialValues[i]!==void 0&&c===void 0?void 0:this.baseTarget[i]}on(i,o){return this.events[i]||(this.events[i]=new Ha),this.events[i].add(o)}notify(i,...o){this.events[i]&&this.events[i].notify(...o)}}class Zp extends Tw{constructor(){super(...arguments),this.KeyframeResolver=vp}sortInstanceNodePosition(i,o){return i.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(i,o){return i.style?i.style[o]:void 0}removeValueFromRenderState(i,{vars:o,style:a}){delete o[i],delete a[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;qe(i)&&(this.childSubscription=i.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function kw(r){return window.getComputedStyle(r)}class Pw extends Zp{constructor(){super(...arguments),this.type="html",this.renderInstance=Ih}readValueFromInstance(i,o){if(jn.has(o)){const a=Ja(o);return a&&a.default||0}else{const a=kw(i),c=(jh(o)?a.getPropertyValue(o):a[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:o}){return Op(i,o)}build(i,o,a){Fa(i,o,a.transformTemplate)}scrapeMotionValuesFromProps(i,o,a){return Ba(i,o,a)}}class Cw extends Zp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ne}getBaseTargetFromProps(i,o){return i[o]}readValueFromInstance(i,o){if(jn.has(o)){const a=Ja(o);return a&&a.default||0}return o=zh.has(o)?o:Ra(o),i.getAttribute(o)}scrapeMotionValuesFromProps(i,o,a){return $h(i,o,a)}build(i,o,a){Oa(i,o,this.isSVGTag,a.transformTemplate)}renderInstance(i,o,a,c){Bh(i,o,a,c)}mount(i){this.isSVGTag=za(i.tagName),super.mount(i)}}const Ew=(r,i)=>Na(r)?new Cw(i):new Pw(i,{allowProjection:r!==q.Fragment}),Dw=Jy({...W0,...gw,...b1,...yw},Ew),Aw=hy(Dw),li=[["Hindi","नमस्ते, आप कैसे हैं?"],["Bengali","নমস্কার, আপনি কেমন আছেন?"],["Marathi","नमस्कार, तुम्ही कसे आहात?"],["Telugu","నమస్కారం, మీరు ఎలా ఉన్నారు?"],["Kannada","ನಮಸ್ಕಾರ, ನೀವು ಹೇಗಿದ್ದೀರಿ?"],["Tamil","வணக்கம், நீங்கள் எப்படி இருக்கிறீர்கள்?"],["Malayalam","നമസ്കാരം, സുഖമാണോ?"],["Gujarati","નમસ્તે, તમે કેમ છો?"],["Punjabi","ਸਤ ਸ੍ਰੀ ਅਕਾਲ, ਤੁਸੀਂ ਕਿਵੇਂ ਹੋ?"],["Assamese","নমস্কাৰ, আপুনি কেনে আছে?"],["Bhojpuri","नमस्कार, राउर का हाल बा?"],["Magahi","नमस्कार, तू कैसन हे?"],["Maithili","नमस्कार, अहाँ कोना छी?"],["Chhattisgarhi","नमस्कार, आप कइसन हन?"],["Bodo","नमस्कार, नोँ बेसेबा डंनो?"],["Dogri","नमस्ते, तुसें कि’यां ओ?"],["Nepali","नमस्ते, तपाईं कस्तो हुनुहुन्छ?"],["Sanskrit","नमस्कारः, भवान् कथमस्ति?"],["English (Indian)","Hello, how are you?"]],Mw={Hindi:{script:"Devanagari",region:"North India"},Bengali:{script:"Bengali",region:"Eastern India"},Marathi:{script:"Devanagari",region:"Maharashtra"},Telugu:{script:"Telugu",region:"Andhra Pradesh + Telangana"},Kannada:{script:"Kannada",region:"Karnataka"},Tamil:{script:"Tamil",region:"Tamil Nadu"},Malayalam:{script:"Malayalam",region:"Kerala"},Gujarati:{script:"Gujarati",region:"Gujarat"},Punjabi:{script:"Gurmukhi",region:"Punjab"},Assamese:{script:"Assamese",region:"Assam"},Bhojpuri:{script:"Devanagari",region:"Bihar + Eastern UP"},Magahi:{script:"Devanagari",region:"Bihar"},Maithili:{script:"Devanagari",region:"Mithila"},Chhattisgarhi:{script:"Devanagari",region:"Chhattisgarh"},Bodo:{script:"Devanagari",region:"Northeast India"},Dogri:{script:"Devanagari",region:"Jammu"},Nepali:{script:"Devanagari",region:"Nepal + India"},Sanskrit:{script:"Devanagari",region:"Classical Indic"},"English (Indian)":{script:"Latin",region:"Indian English"}},Rw=li.flatMap(([r])=>[`${r} (Female)`,`${r} (Male)`]),aa=[{value:"q4f16",label:"q4f16",note:"~1.95 GB · fastest cold start"},{value:"q8",label:"q8",note:"~4.32 GB · cleaner, slower preload"}],Lw=[{label:"Model",value:"Svāra-TTS v1"},{label:"Codec",value:"SNAC 24 kHz"},{label:"Runtime",value:"WebGPU + Transformers.js"}];function Th(r,i){return`${r.replace(/\s*<[^>]+>\s*$/u,"").trim()} ${i}`}function Nw(){const r=q.useRef(null),i=q.useRef(!1),o=q.useRef([]),[a,c]=q.useState("Hindi (Female)"),[d,f]=q.useState(li[0][1]),[p,m]=q.useState("q4f16"),[g,v]=q.useState(null),[w,T]=q.useState(null),[D,j]=q.useState(!1),[M,V]=q.useState(null),[I,$]=q.useState([]),[K,ne]=q.useState("Detecting WebGPU support..."),[X,ie]=q.useState([]),ue=a.split(" (")[0],J=a.includes("(Male)")?"Male":"Female",me=Mw[ue]??{script:"Indic",region:"South Asia"},ge=li.find(([F])=>F===ue)?.[1]??d,ve=aa.find(F=>F.value===p)??aa[0],Me=I.includes(p),Fe=g==="loading"&&M===ve.value,He=q.useMemo(()=>[{label:"Sample line",value:ge},{label:"Sample + ",value:Th(ge,"")},{label:"Sample + ",value:Th(ge,"")}],[ge]);q.useEffect(()=>{i.current=D},[D]),q.useEffect(()=>{o.current=I},[I]),q.useEffect(()=>{r.current??=new Worker(new URL("/assets/worker-CrcBdVZY.js",import.meta.url),{type:"module"});const F=Z=>{switch(Z.data.status){case"feature-success":i.current=!0,j(!0),T(null),v("idle"),ne("WebGPU is available. Load a model when you want to start local synthesis.");break;case"feature-error":T(Z.data.data);break;case"loading":T(null),o.current.includes(Z.data.dtype)?(V(null),v("running")):(V(Z.data.dtype),ne(Z.data.dtype==="q8"?"Loading q8 weights (~4.32 GB, sharded). First run can take a minute...":"Loading q4f16 weights (~1.95 GB). First run downloads once, then stays cached..."),v("loading"));break;case"ready":V(null),T(null),$(le=>{if(le.includes(Z.data.dtype))return le;const de=[...le,Z.data.dtype];return o.current=de,de}),v("ready");break;case"complete":ie(le=>[{text:Z.data.text,src:Z.data.audio,voice:Z.data.voice,dtype:Z.data.dtype,createdAt:new Date().toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})},...le]),T(null),v("ready");break;case"error":V(null),T(Z.data.data),v(o.current.includes(Z.data.dtype)?"ready":i.current?"idle":null);break}};return r.current.addEventListener("message",F),r.current.addEventListener("error",Z=>console.error(Z)),()=>{r.current.removeEventListener("message",F)}},[]);const st=F=>{F.preventDefault(),Me&&(v("running"),T(null),r.current.postMessage({type:"generate",text:d.trim(),speaker_id:a,dtype:p}))},Be=()=>{!D||Me||(T(null),V(p),ne(p==="q8"?"Loading q8 weights (~4.32 GB, sharded). First run can take a minute...":"Loading q4f16 weights (~1.95 GB). First run downloads once, then stays cached..."),v("loading"),r.current?.postMessage({type:"preload",dtype:p}))},oe=F=>{const Z=li.find(([le])=>le===F)?.[1]??d;f(Z),c(`${F} (Female)`)},z=F=>{F!==p&&(m(F),T(null),V(null),v(o.current.includes(F)?"ready":"idle"))};let Q="Checking browser runtime",B=K;w?(Q=D?"Load issue":"Startup issue",B=w):g==="running"?(Q="Rendering speech locally",B=`Synthesizing with ${a} on ${ve.label}.`):g==="loading"?Q="Loading model weights":D&&!Me?(Q="Ready to load model",B=`${ve.label} is a one-time ${ve.note.split("·")[0].trim()} download. Tap Load model to cache it in this browser.`):Me&&(Q="Model ready in this browser",B=`${a} is ready on ${ve.label}. Everything runs locally after the one-time model download.`);const k=g==="running"?"Generating audio...":g==="loading"?"Loading in the background":null,R=!w&&(g==="loading"||g==="running"||g===null),se=Fe?`Loading ${ve.label}...`:`Load ${ve.label}`;return A.jsxs("div",{className:"app-shell",children:[A.jsx("div",{className:"ornament ornament-top","aria-hidden":"true",children:A.jsx("img",{src:"/warli-strip.svg",alt:""})}),A.jsxs("main",{className:"app-main",children:[A.jsxs("header",{className:"hero",children:[A.jsx("span",{className:"hero-kicker",children:"Svāra TTS · WebGPU"}),A.jsx("h1",{className:"hero-title",children:"Svāra"}),A.jsx("span",{className:"hero-subline",children:"स्वरा · Indic text-to-speech in the browser"}),A.jsx("p",{className:"hero-copy",children:"A warmer frontend for the same local synthesis engine: 19 languages, 38 voices, SNAC decoding, and no server round-trip once the model is cached in this browser."}),A.jsxs("div",{className:"hero-links",children:[A.jsx("a",{href:"https://huggingface.co/kenpath/svara-tts-v1",target:"_blank",rel:"noreferrer",children:"Base model"}),A.jsx("a",{href:"https://huggingface.co/shreyask/svara-tts-v1-ONNX",target:"_blank",rel:"noreferrer",children:"ONNX export"}),A.jsx("a",{href:"https://huggingface.co/onnx-community/snac_24khz-ONNX",target:"_blank",rel:"noreferrer",children:"SNAC codec"})]})]}),A.jsxs("section",{className:`card status-card ${R?"is-busy":""}`,children:[A.jsxs("div",{className:"status-main",children:[A.jsx("p",{className:"section-kicker",children:"Session"}),A.jsx("h2",{children:Q}),A.jsx("p",{className:`status-copy ${w?"is-error":""}`,children:B}),k&&!w&&A.jsxs("div",{className:"inline-loader","aria-hidden":"true",children:[A.jsx("span",{className:"inline-loader-dot"}),A.jsx("span",{className:"inline-loader-label",children:k})]}),D&&!Me&&g!=="loading"&&A.jsxs("div",{className:"model-gate",children:[A.jsxs("div",{children:[A.jsx("p",{className:"model-gate-copy",children:"Model load is explicit in this build."}),A.jsx("span",{className:"model-gate-sub",children:I.length>0?`Cached here: ${I.join(", ")}`:"Nothing cached in this browser session yet."})]}),A.jsx("button",{type:"button",className:"primary-button load-button",onClick:Be,disabled:!D||g==="running",children:se})]})]}),A.jsxs("div",{className:"pill-row",children:[A.jsx("span",{className:"pill",children:"19 languages"}),A.jsx("span",{className:"pill",children:"38 voices"}),A.jsx("span",{className:"pill",children:"24 kHz mono"}),A.jsx("span",{className:"pill",children:"Runs locally"})]})]}),A.jsxs("div",{className:"workspace",children:[A.jsxs("section",{className:"card composer-card",children:[A.jsxs("div",{className:"card-header",children:[A.jsxs("div",{children:[A.jsx("p",{className:"section-kicker",children:"Compose"}),A.jsx("h2",{children:"Switch language, adjust voice, synthesize"})]}),A.jsx("button",{type:"button",className:"ghost-button",onClick:()=>f(ge),children:"Use sample"})]}),A.jsxs("form",{onSubmit:st,className:"composer-form",children:[A.jsxs("div",{className:"control-grid",children:[A.jsxs("label",{className:"field",children:[A.jsx("span",{className:"field-label",children:"Language"}),A.jsx("select",{value:ue,onChange:F=>oe(F.target.value),children:li.map(([F])=>A.jsx("option",{value:F,children:F},F))})]}),A.jsxs("label",{className:"field",children:[A.jsx("span",{className:"field-label",children:"Voice"}),A.jsx("select",{value:a,onChange:F=>c(F.target.value),children:Rw.filter(F=>F.startsWith(`${ue} (`)).map(F=>A.jsx("option",{value:F,children:F.split("(")[1].replace(")","")},F))})]}),A.jsxs("label",{className:"field field-wide",children:[A.jsx("span",{className:"field-label",children:"Quantization"}),A.jsx("select",{value:p,onChange:F=>z(F.target.value),disabled:g==="running"||g==="loading",children:aa.map(F=>A.jsx("option",{value:F.value,children:F.label},F.value))}),A.jsx("small",{className:"field-note",children:ve.note})]})]}),A.jsxs("label",{className:"field",children:[A.jsxs("div",{className:"label-row",children:[A.jsx("span",{className:"field-label",children:"Prompt"}),A.jsxs("span",{className:"field-meta",children:[me.script," · ",me.region]})]}),A.jsx("textarea",{placeholder:"Enter text in any supported Indian language...",value:d,onChange:F=>f(F.target.value),rows:Math.min(8,Math.max(4,d.split(` `).length))})]}),A.jsx("div",{className:"chip-bar",children:He.map(F=>A.jsx("button",{type:"button",className:"utility-chip",onClick:()=>f(F.value),children:F.label},F.label))}),A.jsxs("div",{className:"composer-footer",children:[A.jsxs("p",{className:"helper-copy",children:["Emotion tags can be appended at the end of the sentence, for example ",A.jsx("code",{children:""})," or ",A.jsx("code",{children:""}),". Use ",A.jsx("code",{children:"q8"})," if you want the cleanest output and can afford the larger one-time download."]}),A.jsx("button",{type:"submit",className:"primary-button",disabled:g!=="ready"||!Me||d.trim()==="",children:g==="running"?"Generating audio...":Fe?`Loading ${ve.label}...`:Me?"Generate speech":"Load model to continue"})]})]})]}),A.jsx("aside",{className:"sidebar",children:A.jsxs("section",{className:"card inspector-card",children:[A.jsx("p",{className:"section-kicker",children:"Inspector"}),A.jsx("h3",{className:"inspector-title",children:a}),A.jsxs("dl",{className:"compact-meta-grid",children:[A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Script"}),A.jsx("dd",{children:me.script})]}),A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Region"}),A.jsx("dd",{children:me.region})]}),A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Type"}),A.jsx("dd",{children:J})]}),A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Quant"}),A.jsx("dd",{children:ve.label})]})]}),A.jsx("div",{className:"stack-chip-list",children:Lw.map(F=>A.jsxs("div",{className:"stack-chip",children:[A.jsx("span",{children:F.label}),A.jsx("strong",{children:F.value})]},F.label))}),A.jsxs("details",{className:"debug-notes",children:[A.jsx("summary",{children:"Usage notes"}),A.jsxs("ul",{className:"note-list note-list-compact",children:[A.jsx("li",{children:"Model and codec are browser-cached after the first load."}),A.jsx("li",{children:"Short prompts are the best way to compare voices and quant levels."}),A.jsx("li",{children:"The results archive below preserves each render with the actual voice used."})]})]})]})})]}),X.length>0&&A.jsxs("section",{className:"results-section",children:[A.jsxs("div",{className:"results-header",children:[A.jsxs("div",{children:[A.jsx("p",{className:"section-kicker",children:"Archive"}),A.jsx("h2",{children:"Generated takes"})]}),A.jsx("span",{className:"results-meta",children:"Newest first"})]}),A.jsx("div",{className:"results-grid",children:X.map((F,Z)=>A.jsxs(Aw.article,{initial:{y:24,opacity:0},animate:{y:0,opacity:1},transition:{duration:.35,delay:Z*.04},className:"card result-card",children:[A.jsxs("div",{className:"result-head",children:[A.jsxs("div",{children:[A.jsx("h3",{children:F.voice}),A.jsx("p",{children:F.createdAt})]}),A.jsx("span",{className:"result-pill",children:F.dtype})]}),A.jsx("p",{className:"result-text",children:F.text}),A.jsx("audio",{controls:!0,src:F.src,className:"result-audio",children:"Your browser does not support the audio element."})]},`${F.voice}-${F.createdAt}-${Z}`))})]})]}),A.jsx("div",{className:"ornament ornament-bottom","aria-hidden":"true",children:A.jsx("img",{src:"/warli-strip.svg",alt:""})})]})}ny.createRoot(document.getElementById("root")).render(A.jsx(q.StrictMode,{children:A.jsx(Nw,{})}));