(function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var TA=Object.defineProperty,AA=Object.defineProperties;var CA=Object.getOwnPropertyDescriptors;var $s=Object.getOwnPropertySymbols;var yh=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable;var iu=Math.pow,hh=(K,ae,te)=>ae in K?TA(K,ae,{enumerable:!0,configurable:!0,writable:!0,value:te}):K[ae]=te,L=(K,ae)=>{for(var te in ae||(ae={}))yh.call(ae,te)&&hh(K,te,ae[te]);if($s)for(var te of $s(ae))gh.call(ae,te)&&hh(K,te,ae[te]);return K},R=(K,ae)=>AA(K,CA(ae));var je=(K,ae)=>{var te={};for(var qe in K)yh.call(K,qe)&&ae.indexOf(qe)<0&&(te[qe]=K[qe]);if(K!=null&&$s)for(var qe of $s(K))ae.indexOf(qe)<0&&gh.call(K,qe)&&(te[qe]=K[qe]);return te};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ae={exports:{}},te={},qe={exports:{}},U={};/** * @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 rn=Symbol.for("react.element"),bh=Symbol.for("react.portal"),vh=Symbol.for("react.fragment"),Th=Symbol.for("react.strict_mode"),Ah=Symbol.for("react.profiler"),Ch=Symbol.for("react.provider"),xh=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),Lh=Symbol.for("react.suspense"),Ih=Symbol.for("react.memo"),wh=Symbol.for("react.lazy"),lu=Symbol.iterator;function Dh(e){return e===null||typeof e!="object"?null:(e=lu&&e[lu]||e["@@iterator"],typeof e=="function"?e:null)}var ou={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uu=Object.assign,cu={};function vr(e,t,r){this.props=e,this.context=t,this.refs=cu,this.updater=r||ou}vr.prototype.isReactComponent={},vr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function du(){}du.prototype=vr.prototype;function Ws(e,t,r){this.props=e,this.context=t,this.refs=cu,this.updater=r||ou}var Hs=Ws.prototype=new du;Hs.constructor=Ws,uu(Hs,vr.prototype),Hs.isPureReactComponent=!0;var mu=Array.isArray,pu=Object.prototype.hasOwnProperty,Gs={current:null},fu={key:!0,ref:!0,__self:!0,__source:!0};function hu(e,t,r){var n,a={},s=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)pu.call(t,n)&&!fu.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1>>1,oe=w[J];if(0>>1;Ja(su,N))bra(Zs,su)?(w[J]=Zs,w[br]=N,J=br):(w[J]=su,w[gr]=N,J=gr);else if(bra(Zs,N))w[J]=Zs,w[br]=N,J=br;else break e}}return P}function a(w,P){var N=w.sortIndex-P.sortIndex;return N!==0?N:w.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var o=[],u=[],c=1,d=null,m=3,y=!1,g=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(w){for(var P=r(u);P!==null;){if(P.callback===null)n(u);else if(P.startTime<=w)n(u),P.sortIndex=P.expirationTime,t(o,P);else break;P=r(u)}}function v(w){if(b=!1,h(w),!g)if(r(o)!==null)g=!0,ze(T);else{var P=r(u);P!==null&&yr(v,P.startTime-w)}}function T(w,P){g=!1,b&&(b=!1,f(x),x=-1),y=!0;var N=m;try{for(h(P),d=r(o);d!==null&&(!(d.expirationTime>P)||w&&!le());){var J=d.callback;if(typeof J=="function"){d.callback=null,m=d.priorityLevel;var oe=J(d.expirationTime<=P);P=e.unstable_now(),typeof oe=="function"?d.callback=oe:d===r(o)&&n(o),h(P)}else n(o);d=r(o)}if(d!==null)var Vs=!0;else{var gr=r(u);gr!==null&&yr(v,gr.startTime-P),Vs=!1}return Vs}finally{d=null,m=N,y=!1}}var S=!1,I=null,x=-1,O=5,B=-1;function le(){return!(e.unstable_now()-Bw||125J?(w.sortIndex=N,t(u,w),r(o)===null&&w===r(u)&&(b?(f(x),x=-1):b=!0,yr(v,N-J))):(w.sortIndex=oe,t(o,w),g||y||(g=!0,ze(T))),w},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(w){var P=m;return function(){var N=m;m=P;try{return w.apply(this,arguments)}finally{m=N}}}})(Au),Tu.exports=Au;var Mh=Tu.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 Fh=E,Pe=Mh;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function Ce(e,t,r,n,a,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new Ce(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new Ce(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new Ce(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){ue[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new Ce(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ue[e]=new Ce(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ue[e]=new Ce(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ue[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Js=/[\-:]([a-z])/g;function ei(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(Js,ei);ue[t]=new Ce(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(Js,ei);ue[t]=new Ce(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(Js,ei);ue[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)}),ue.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ue[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function ti(e,t,r,n){var a=ue.hasOwnProperty(t)?ue[t]:null;(a!==null?a.type!==0:n||!(2l||a[i]!==s[l]){var o=` `+a[i].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}while(1<=i&&0<=l);break}}}finally{ui=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sn(e):""}function Wh(e){switch(e.tag){case 5:return sn(e.type);case 16:return sn("Lazy");case 13:return sn("Suspense");case 19:return sn("SuspenseList");case 0:case 2:case 15:return e=ci(e.type,!1),e;case 11:return e=ci(e.type.render,!1),e;case 1:return e=ci(e.type,!0),e;default:return""}}function di(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 Cr:return"Fragment";case Ar:return"Portal";case ni:return"Profiler";case ri:return"StrictMode";case si:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Iu:return(e.displayName||"Context")+".Consumer";case Lu:return(e._context.displayName||"Context")+".Provider";case ai:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case li:return t=e.displayName||null,t!==null?t:di(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return di(e(t))}catch(r){}}return null}function Hh(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 di(t);case 8:return t===ri?"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 xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gh(e){var t=Eu(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pa(e){e._valueTracker||(e._valueTracker=Gh(e))}function ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Eu(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function fa(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function mi(e,t){var r=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function Bu(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=xt(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Pu(e,t){t=t.checked,t!=null&&ti(e,"checked",t,!1)}function pi(e,t){Pu(e,t);var r=xt(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fi(e,t.type,r):t.hasOwnProperty("defaultValue")&&fi(e,t.type,xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function fi(e,t,r){(t!=="number"||fa(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ln=Array.isArray;function xr(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ha.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function on(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var un={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},Kh=["Webkit","ms","Moz","O"];Object.keys(un).forEach(function(e){Kh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),un[t]=un[e]})});function qu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||un.hasOwnProperty(e)&&un[e]?(""+t).trim():t+"px"}function Mu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=qu(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var Qh=$({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 gi(e,t){if(t){if(Qh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function bi(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 vi=null;function Ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ai=null,Sr=null,Lr=null;function Fu(e){if(e=Bn(e)){if(typeof Ai!="function")throw Error(C(280));var t=e.stateNode;t&&(t=za(t),Ai(e.stateNode,e.type,t))}}function _u(e){Sr?Lr?Lr.push(e):Lr=[e]:Sr=e}function Vu(){if(Sr){var e=Sr,t=Lr;if(Lr=Sr=null,Fu(e),t)for(e=0;e>>=0,e===0?32:31-(ly(e)/oy|0)|0}var Ta=64,Aa=4194304;function pn(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 Ca(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,s=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~a;l!==0?n=pn(l):(s&=i,s!==0&&(n=pn(s)))}else i=r&~a,i!==0?n=pn(i):s!==0&&(n=pn(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,s=t&-t,a>=s||a===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function fn(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ge(t),e[t]=r}function my(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Cn),gc=" ",bc=!1;function vc(e,t){switch(e){case"keyup":return My.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function _y(e,t){switch(e){case"compositionend":return Tc(t);case"keypress":return t.which!==32?null:(bc=!0,gc);case"textInput":return e=t.data,e===gc&&bc?null:e;default:return null}}function Vy(e,t){if(Dr)return e==="compositionend"||!qi&&vc(e,t)?(e=dc(),wa=Ni=Dt=null,Dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wc(r)}}function Ec(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ec(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jc(){for(var e=window,t=fa();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=fa(e.document)}return t}function _i(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 Xy(e){var t=jc(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ec(r.ownerDocument.documentElement,r)){if(n!==null&&_i(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,s=Math.min(n.start,a);n=n.end===void 0?s:Math.min(n.end,a),!e.extend&&s>n&&(a=n,n=s,s=a),a=Dc(r,s);var i=Dc(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Er=null,Vi=null,In=null,Zi=!1;function Bc(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zi||Er==null||Er!==fa(n)||(n=Er,"selectionStart"in n&&_i(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),In&&Ln(In,n)||(In=n,n=Oa(Vi,"onSelect"),0Ur||(e.current=rl[Ur],rl[Ur]=null,Ur--)}function F(e,t){Ur++,rl[Ur]=e.current,e.current=t}var Pt={},fe=Bt(Pt),Le=Bt(!1),Jt=Pt;function Or(e,t){var r=e.type.contextTypes;if(!r)return Pt;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in r)a[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ie(e){return e=e.childContextTypes,e!=null}function qa(){V(Le),V(fe)}function Wc(e,t,r){if(fe.current!==Pt)throw Error(C(168));F(fe,t),F(Le,r)}function Hc(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(C(108,Hh(e)||"Unknown",a));return $({},r,n)}function Ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Jt=fe.current,F(fe,e),F(Le,Le.current),!0}function Gc(e,t,r){var n=e.stateNode;if(!n)throw Error(C(169));r?(e=Hc(e,t,Jt),n.__reactInternalMemoizedMergedChildContext=e,V(Le),V(fe),F(fe,e)):V(Le),F(Le,r)}var ct=null,Fa=!1,nl=!1;function Kc(e){ct===null?ct=[e]:ct.push(e)}function cg(e){Fa=!0,Kc(e)}function Nt(){if(!nl&&ct!==null){nl=!0;var e=0,t=q;try{var r=ct;for(q=1;e>=i,a-=i,dt=1<<32-Ge(t)+a|r<x?(O=I,I=null):O=I.sibling;var B=m(f,I,h[x],v);if(B===null){I===null&&(I=O);break}e&&I&&B.alternate===null&&t(f,I),p=s(B,p,x),S===null?T=B:S.sibling=B,S=B,I=O}if(x===h.length)return r(f,I),Z&&tr(f,x),T;if(I===null){for(;xx?(O=I,I=null):O=I.sibling;var le=m(f,I,B.value,v);if(le===null){I===null&&(I=O);break}e&&I&&le.alternate===null&&t(f,I),p=s(le,p,x),S===null?T=le:S.sibling=le,S=le,I=O}if(B.done)return r(f,I),Z&&tr(f,x),T;if(I===null){for(;!B.done;x++,B=h.next())B=d(f,B.value,v),B!==null&&(p=s(B,p,x),S===null?T=B:S.sibling=B,S=B);return Z&&tr(f,x),T}for(I=n(f,I);!B.done;x++,B=h.next())B=y(I,f,x,B.value,v),B!==null&&(e&&B.alternate!==null&&I.delete(B.key===null?x:B.key),p=s(B,p,x),S===null?T=B:S.sibling=B,S=B);return e&&I.forEach(function(Kt){return t(f,Kt)}),Z&&tr(f,x),T}function A(f,p,h,v){if(typeof h=="object"&&h!==null&&h.type===Cr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case ma:e:{for(var T=h.key,S=p;S!==null;){if(S.key===T){if(T=h.type,T===Cr){if(S.tag===7){r(f,S.sibling),p=a(S,h.props.children),p.return=f,f=p;break e}}else if(S.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ct&&td(T)===S.type){r(f,S.sibling),p=a(S,h.props),p.ref=Pn(f,S,h),p.return=f,f=p;break e}r(f,S);break}else t(f,S);S=S.sibling}h.type===Cr?(p=ur(h.props.children,f.mode,v,h.key),p.return=f,f=p):(v=hs(h.type,h.key,h.props,null,f.mode,v),v.ref=Pn(f,p,h),v.return=f,f=v)}return i(f);case Ar:e:{for(S=h.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){r(f,p.sibling),p=a(p,h.children||[]),p.return=f,f=p;break e}else{r(f,p);break}else t(f,p);p=p.sibling}p=eo(h,f.mode,v),p.return=f,f=p}return i(f);case Ct:return S=h._init,A(f,p,S(h._payload),v)}if(ln(h))return g(f,p,h,v);if(an(h))return b(f,p,h,v);$a(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(r(f,p.sibling),p=a(p,h),p.return=f,f=p):(r(f,p),p=Jl(h,f.mode,v),p.return=f,f=p),i(f)):r(f,p)}return A}var qr=rd(!0),nd=rd(!1),Wa=Bt(null),Ha=null,Mr=null,ul=null;function cl(){ul=Mr=Ha=null}function dl(e){var t=Wa.current;V(Wa),e._currentValue=t}function ml(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Fr(e,t){Ha=e,ul=Mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(ul!==e)if(e={context:e,memoizedValue:t,next:null},Mr===null){if(Ha===null)throw Error(C(308));Mr=e,Ha.dependencies={lanes:0,firstContext:e}}else Mr=Mr.next=e;return t}var rr=null;function pl(e){rr===null?rr=[e]:rr.push(e)}function ad(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,pl(t)):(r.next=a.next,a.next=r),t.interleaved=r,pt(e,n)}function pt(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ut=!1;function fl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sd(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 ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ot(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,k&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,pt(e,r)}return a=n.interleaved,a===null?(t.next=t,pl(n)):(t.next=a.next,a.next=t),n.interleaved=t,pt(e,r)}function Ga(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Di(e,r)}}function id(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?a=s=i:s=s.next=i,r=r.next}while(r!==null);s===null?a=s=t:s=s.next=t}else a=s=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ka(e,t,r,n){var a=e.updateQueue;Ut=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var o=l,u=o.next;o.next=null,i===null?s=u:i.next=u,i=o;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==i&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=o))}if(s!==null){var d=a.baseState;i=0,c=u=o=null,l=s;do{var m=l.lane,y=l.eventTime;if((n&m)===m){c!==null&&(c=c.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,b=l;switch(m=t,y=r,b.tag){case 1:if(g=b.payload,typeof g=="function"){d=g.call(y,d,m);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,m=typeof g=="function"?g.call(y,d,m):g,m==null)break e;d=$({},d,m);break e;case 2:Ut=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=y,o=d):c=c.next=y,i|=m;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;m=l,l=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);if(c===null&&(o=d),a.baseState=o,a.firstBaseUpdate=u,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else s===null&&(a.shared.lanes=0);sr|=i,e.lanes=i,e.memoizedState=d}}function ld(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=vl.transition;vl.transition={};try{e(!1),t()}finally{q=r,vl.transition=n}}function Id(){return Ve().memoizedState}function fg(e,t,r){var n=qt(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},wd(e))Dd(t,r);else if(r=ad(e,t,r,n),r!==null){var a=Se();et(r,e,n,a),Ed(r,t,n)}}function hg(e,t,r){var n=qt(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(wd(e))Dd(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,r);if(a.hasEagerState=!0,a.eagerState=l,Ke(l,i)){var o=t.interleaved;o===null?(a.next=a,pl(t)):(a.next=o.next,o.next=a),t.interleaved=a;return}}catch(u){}finally{}r=ad(e,t,a,n),r!==null&&(a=Se(),et(r,e,n,a),Ed(r,t,n))}}function wd(e){var t=e.alternate;return e===H||t!==null&&t===H}function Dd(e,t){kn=Xa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ed(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Di(e,r)}}var ts={readContext:_e,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},yg={readContext:_e,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:bd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ja(4194308,4,Ad.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ja(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ja(4,2,e,t)},useMemo:function(e,t){var r=at();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=at();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fg.bind(null,H,e),[n.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:yd,useDebugValue:Il,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=yd(!1),t=e[0];return e=pg.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=H,a=at();if(Z){if(r===void 0)throw Error(C(407));r=r()}else{if(r=t(),ie===null)throw Error(C(349));ar&30||dd(n,t,r)}a.memoizedState=r;var s={value:r,getSnapshot:t};return a.queue=s,bd(pd.bind(null,n,s,e),[e]),n.flags|=2048,qn(9,md.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=at(),t=ie.identifierPrefix;if(Z){var r=mt,n=dt;r=(n&~(1<<32-Ge(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Rn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[rt]=t,e[jn]=n,Kd(e,t,!1,!1),t.stateNode=e;e:{switch(i=bi(r,n),r){case"dialog":_("cancel",e),_("close",e),a=n;break;case"iframe":case"object":case"embed":_("load",e),a=n;break;case"video":case"audio":for(a=0;aWr&&(t.flags|=128,n=!0,Mn(s,!1),t.lanes=4194304)}else{if(!n)if(e=Qa(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Mn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Z)return ye(t),null}else 2*Y()-s.renderingStartTime>Wr&&r!==1073741824&&(t.flags|=128,n=!0,Mn(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(r=s.last,r!==null?r.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,r=W.current,F(W,n?r&1|2:r&1),t):(ye(t),null);case 22:case 23:return Ql(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ke&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Sg(e,t){switch(sl(t),t.tag){case 1:return Ie(t.type)&&qa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _r(),V(Le),V(fe),bl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yl(t),null;case 13:if(V(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(W),null;case 4:return _r(),null;case 10:return dl(t.type._context),null;case 22:case 23:return Ql(),null;case 24:return null;default:return null}}var ss=!1,ge=!1,Lg=typeof WeakSet=="function"?WeakSet:Set,D=null;function Zr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Q(e,t,n)}else r.current=null}function zl(e,t,r){try{r()}catch(n){Q(e,t,n)}}var Xd=!1;function Ig(e,t){if(Qi=La,e=jc(),_i(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch(v){r=null;break e}var i=0,l=-1,o=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var y;d!==r||a!==0&&d.nodeType!==3||(l=i+a),d!==s||n!==0&&d.nodeType!==3||(o=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)m=d,d=y;for(;;){if(d===e)break t;if(m===r&&++u===a&&(l=i),m===s&&++c===n&&(o=i),(y=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=y}r=l===-1||o===-1?null:{start:l,end:o}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yi={focusedElem:e,selectionRange:r},La=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,A=g.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?b:Ye(t.type,b),A);f.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(v){Q(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return g=Xd,Xd=!1,g}function Fn(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,s!==void 0&&zl(t,r,s)}a=a.next}while(a!==n)}}function is(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ql(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Jd(e){var t=e.alternate;t!==null&&(e.alternate=null,Jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[jn],delete t[tl],delete t[og],delete t[ug])),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 em(e){return e.tag===5||e.tag===3||e.tag===4}function tm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||em(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 Ml(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ra));else if(n!==4&&(e=e.child,e!==null))for(Ml(e,t,r),e=e.sibling;e!==null;)Ml(e,t,r),e=e.sibling}function Fl(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Fl(e,t,r),e=e.sibling;e!==null;)Fl(e,t,r),e=e.sibling}var ce=null,Xe=!1;function kt(e,t,r){for(r=r.child;r!==null;)rm(e,t,r),r=r.sibling}function rm(e,t,r){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(va,r)}catch(l){}switch(r.tag){case 5:ge||Zr(r,t);case 6:var n=ce,a=Xe;ce=null,kt(e,t,r),ce=n,Xe=a,ce!==null&&(Xe?(e=ce,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ce.removeChild(r.stateNode));break;case 18:ce!==null&&(Xe?(e=ce,r=r.stateNode,e.nodeType===8?el(e.parentNode,r):e.nodeType===1&&el(e,r),vn(e)):el(ce,r.stateNode));break;case 4:n=ce,a=Xe,ce=r.stateNode.containerInfo,Xe=!0,kt(e,t,r),ce=n,Xe=a;break;case 0:case 11:case 14:case 15:if(!ge&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var s=a,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&zl(r,t,i),a=a.next}while(a!==n)}kt(e,t,r);break;case 1:if(!ge&&(Zr(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Q(r,t,l)}kt(e,t,r);break;case 21:kt(e,t,r);break;case 22:r.mode&1?(ge=(n=ge)||r.memoizedState!==null,kt(e,t,r),ge=n):kt(e,t,r);break;default:kt(e,t,r)}}function nm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Lg),t.forEach(function(n){var a=Og.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Je(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~s}if(n=a,n=Y()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Dg(n/1960))-n,10e?16:e,zt===null)var n=!1;else{if(e=zt,zt=null,ds=0,k&6)throw Error(C(331));var a=k;for(k|=4,D=e.current;D!==null;){var s=D,i=s.child;if(D.flags&16){var l=s.deletions;if(l!==null){for(var o=0;oY()-Zl?lr(e,0):Vl|=r),Ee(e,t)}function ym(e,t){t===0&&(e.mode&1?(t=Aa,Aa<<=1,!(Aa&130023424)&&(Aa=4194304)):t=1);var r=Se();e=pt(e,t),e!==null&&(fn(e,t,r),Ee(e,r))}function Ug(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ym(e,r)}function Og(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(C(314))}n!==null&&n.delete(t),ym(e,r)}var gm;gm=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)we=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return we=!1,Cg(e,t,r);we=!!(e.flags&131072)}else we=!1,Z&&t.flags&1048576&&Qc(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;as(e,t),e=t.pendingProps;var a=Or(t,fe.current);Fr(t,r),a=Al(null,t,n,e,a,r);var s=Cl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(n)?(s=!0,Ma(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,fl(t),a.updater=rs,t.stateNode=a,a._reactInternals=t,Dl(t,n,e,r),t=Pl(null,t,n,!0,s,r)):(t.tag=0,Z&&s&&al(t),xe(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(as(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Rg(n),e=Ye(n,e),a){case 0:t=Bl(null,t,n,e,r);break e;case 1:t=Vd(null,t,n,e,r);break e;case 11:t=zd(null,t,n,e,r);break e;case 14:t=qd(null,t,n,Ye(n.type,e),r);break e}throw Error(C(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),Bl(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),Vd(e,t,n,a,r);case 3:e:{if(Zd(t),e===null)throw Error(C(387));n=t.pendingProps,s=t.memoizedState,a=s.element,sd(e,t),Ka(t,n,null,r);var i=t.memoizedState;if(n=i.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=Vr(Error(C(423)),t),t=$d(e,t,n,r,a);break e}else if(n!==a){a=Vr(Error(C(424)),t),t=$d(e,t,n,r,a);break e}else for(Oe=jt(t.stateNode.containerInfo.firstChild),Ue=t,Z=!0,Qe=null,r=nd(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zr(),n===a){t=ht(e,t,r);break e}xe(e,t,n,r)}t=t.child}return t;case 5:return od(t),e===null&&ll(t),n=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,i=a.children,Xi(n,a)?i=null:s!==null&&Xi(n,s)&&(t.flags|=32),_d(e,t),xe(e,t,i,r),t.child;case 6:return e===null&&ll(t),null;case 13:return Wd(e,t,r);case 4:return hl(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qr(t,null,n,r):xe(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),zd(e,t,n,a,r);case 7:return xe(e,t,t.pendingProps,r),t.child;case 8:return xe(e,t,t.pendingProps.children,r),t.child;case 12:return xe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value,F(Wa,n._currentValue),n._currentValue=i,s!==null)if(Ke(s.value,i)){if(s.children===a.children&&!Le.current){t=ht(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var o=l.firstContext;o!==null;){if(o.context===n){if(s.tag===1){o=ft(-1,r&-r),o.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?o.next=o:(o.next=c.next,c.next=o),u.pending=o}}s.lanes|=r,o=s.alternate,o!==null&&(o.lanes|=r),ml(s.return,r,t),l.lanes|=r;break}o=o.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(C(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),ml(i,r,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}xe(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Fr(t,r),a=_e(a),n=n(a),t.flags|=1,xe(e,t,n,r),t.child;case 14:return n=t.type,a=Ye(n,t.pendingProps),a=Ye(n.type,a),qd(e,t,n,a,r);case 15:return Md(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),as(e,t),t.tag=1,Ie(n)?(e=!0,Ma(t)):e=!1,Fr(t,r),Bd(t,n,a),Dl(t,n,a,r),Pl(null,t,n,!0,e,r);case 19:return Gd(e,t,r);case 22:return Fd(e,t,r)}throw Error(C(156,t.tag))};function bm(e,t){return Yu(e,t)}function kg(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $e(e,t,r,n){return new kg(e,t,r,n)}function Xl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rg(e){if(typeof e=="function")return Xl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ai)return 11;if(e===li)return 14}return 2}function Ft(e,t){var r=e.alternate;return r===null?(r=$e(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function hs(e,t,r,n,a,s){var i=2;if(n=e,typeof e=="function")Xl(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cr:return ur(r.children,a,s,t);case ri:i=8,a|=8;break;case ni:return e=$e(12,r,t,a|2),e.elementType=ni,e.lanes=s,e;case si:return e=$e(13,r,t,a),e.elementType=si,e.lanes=s,e;case ii:return e=$e(19,r,t,a),e.elementType=ii,e.lanes=s,e;case wu:return ys(r,a,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lu:i=10;break e;case Iu:i=9;break e;case ai:i=11;break e;case li:i=14;break e;case Ct:i=16,n=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=$e(i,r,t,a),t.elementType=e,t.type=n,t.lanes=s,t}function ur(e,t,r,n){return e=$e(7,e,n,t),e.lanes=r,e}function ys(e,t,r,n){return e=$e(22,e,n,t),e.elementType=wu,e.lanes=r,e.stateNode={isHidden:!1},e}function Jl(e,t,r){return e=$e(6,e,null,t),e.lanes=r,e}function eo(e,t,r){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zg(e,t,r,n,a){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=wi(0),this.expirationTimes=wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wi(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function to(e,t,r,n,a,s,i,l,o){return e=new zg(e,t,r,l,o),t===1?(t=1,s===!0&&(t|=8)):t=0,s=$e(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},fl(s),e}function qg(e,t,r){var n=3e,isStatic:!1,reducedMotion:"never"}),xs=E.createContext({}),so=E.createContext(null),io=typeof window!="undefined",Hg=io?E.useLayoutEffect:E.useEffect,wm=E.createContext({strict:!1}),Ss=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Dm="data-"+Ss("framerAppearId"),Gg={skipAnimations:!1,useManualTiming:!1};function Kg(e){let t=new Set,r=new Set,n=!1,a=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(o.schedule(u),e()),u(i)}const o={schedule:(u,c=!1,d=!1)=>{const y=d&&n?t:r;return c&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(i=u,n){a=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(l),n=!1,a&&(a=!1,o.process(u))}};return o}const Ls=["read","resolveKeyframes","update","preRender","render","postRender"],Qg=40;function Em(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,i=Ls.reduce((f,p)=>(f[p]=Kg(s),f),{}),{read:l,resolveKeyframes:o,update:u,preRender:c,render:d,postRender:m}=i,y=()=>{const f=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(f-a.timestamp,Qg),1),a.timestamp=f,a.isProcessing=!0,l.process(a),o.process(a),u.process(a),c.process(a),d.process(a),m.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(y))},g=()=>{r=!0,n=!0,a.isProcessing||e(y)};return{schedule:Ls.reduce((f,p)=>{const h=i[p];return f[p]=(v,T=!1,S=!1)=>(r||g(),h.schedule(v,T,S)),f},{}),cancel:f=>{for(let p=0;p{c&&c.update(r,l)});const m=E.useRef(!!(r[Dm]&&!window.HandoffComplete));return Hg(()=>{c&&(c.updateFeatures(),lo.render(c.render),m.current&&c.animationState&&c.animationState.animateChanges())}),E.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(m.current=!1,Bm||(Bm=!0,queueMicrotask(Xg))))}),c}function Xg(){window.HandoffComplete=!0}function Jg(e,t,r,n){const{layoutId:a,layout:s,drag:i,dragConstraints:l,layoutScroll:o,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Pm(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!i||l&&Gr(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,layoutScroll:o,layoutRoot:u})}function Pm(e){if(e)return e.options.allowProjection!==!1?e.projection:Pm(e.parent)}function eb(e,t,r){return E.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Gr(r)&&(r.current=n))},[t])}function Wn(e){return typeof e=="string"||Array.isArray(e)}function Hn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const oo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uo=["initial",...oo];function Is(e){return Hn(e.animate)||uo.some(t=>Wn(e[t]))}function Nm(e){return!!(Is(e)||e.variants)}function tb(e,t){if(Is(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Wn(r)?r:void 0,animate:Wn(n)?n:void 0}}return e.inherit!==!1?t:{}}function rb(e){const{initial:t,animate:r}=tb(e,E.useContext(xs));return E.useMemo(()=>({initial:t,animate:r}),[Um(t),Um(r)])}function Um(e){return Array.isArray(e)?e.join(" "):e}const Om={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kr={};for(const e in Om)Kr[e]={isEnabled:t=>Om[e].some(r=>!!t[r])};function nb(e){for(const t in e)Kr[t]=L(L({},Kr[t]),e[t])}const km=E.createContext({}),ab=Symbol.for("motionComponentSymbol"),be=e=>e;let co=be;function sb({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&nb(e);function s(l,o){let u;const c=R(L(L({},E.useContext(Im)),l),{layoutId:ib(l)}),{isStatic:d}=c,m=rb(l),y=n(l,d);if(!d&&io){lb();const g=ob(c);u=g.MeasureLayout,m.visualElement=Yg(a,y,c,t,g.ProjectionNode)}return z.jsxs(xs.Provider,{value:m,children:[u&&m.visualElement?z.jsx(u,L({visualElement:m.visualElement},c)):null,r(a,l,eb(y,m.visualElement,o),y,d,m.visualElement)]})}const i=E.forwardRef(s);return i[ab]=a,i}function ib({layoutId:e}){const t=E.useContext(km).id;return t&&e!==void 0?t+"-"+e:e}function lb(e,t){E.useContext(wm).strict}function ob(e){const{drag:t,layout:r}=Kr;if(!t&&!r)return{};const n=L(L({},t),r);return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function ub(e){function t(n,a={}){return sb(e(n,a))}if(typeof Proxy=="undefined")return t;const r=new Map;return new Proxy(t,{get:(n,a)=>(r.has(a)||r.set(a,t(a)),r.get(a))})}const cb=["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 mo(e){return typeof e!="string"||e.includes("-")?!1:!!(cb.indexOf(e)>-1||/[A-Z]/u.test(e))}const ws={};function db(e){Object.assign(ws,e)}const Gn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Gn);function Rm(e,{layout:t,layoutId:r}){return _t.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ws[e]||e==="opacity")}const ve=e=>!!(e&&e.getVelocity),mb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pb=Gn.length;function fb(e,t,r){let n="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),qm=zm("--"),hb=zm("var(--"),po=e=>hb(e)?yb.test(e.split("/*")[0].trim()):!1,yb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vt=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},Kn=R(L({},Qr),{transform:e=>Vt(0,1,e)}),Ds=R(L({},Qr),{default:1}),Qn=e=>Math.round(e*1e5)/1e5,fo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,bb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,vb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Yn(e){return typeof e=="string"}function Tb(e){return e==null}const Xn=e=>({test:t=>Yn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zt=Xn("deg"),it=Xn("%"),j=Xn("px"),Ab=Xn("vh"),Cb=Xn("vw"),Mm=R(L({},it),{parse:e=>it.parse(e)/100,transform:e=>it.transform(e*100)}),Fm=R(L({},Qr),{transform:Math.round}),_m={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,size:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:Zt,rotateX:Zt,rotateY:Zt,rotateZ:Zt,scale:Ds,scaleX:Ds,scaleY:Ds,scaleZ:Ds,skew:Zt,skewX:Zt,skewY:Zt,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Kn,originX:Mm,originY:Mm,originZ:j,zIndex:Fm,backgroundPositionX:j,backgroundPositionY:j,fillOpacity:Kn,strokeOpacity:Kn,numOctaves:Fm};function ho(e,t,r){const{style:n,vars:a,transform:s,transformOrigin:i}=e;let l=!1,o=!1,u=!0;for(const c in t){const d=t[c];if(qm(c)){a[c]=d;continue}const m=_m[c],y=gb(d,m);if(_t.has(c)){if(l=!0,s[c]=y,!u)continue;d!==(m.default||0)&&(u=!1)}else c.startsWith("origin")?(o=!0,i[c]=y):n[c]=y}if(t.transform||(l||r?n.transform=fb(e.transform,u,r):n.transform&&(n.transform="none")),o){const{originX:c="50%",originY:d="50%",originZ:m=0}=i;n.transformOrigin=`${c} ${d} ${m}`}}const yo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vm(e,t,r){for(const n in t)!ve(t[n])&&!Rm(n,r)&&(e[n]=t[n])}function xb({transformTemplate:e},t){return E.useMemo(()=>{const r=yo();return ho(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Sb(e,t){const r=e.style||{},n={};return Vm(n,r,e),Object.assign(n,xb(e,t)),n}function Lb(e,t){const r={},n=Sb(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Ib=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 Es(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ib.has(e)}let Zm=e=>!Es(e);function wb(e){e&&(Zm=t=>t.startsWith("on")?!Es(t):e(t))}try{wb(require("@emotion/is-prop-valid").default)}catch(e){}function Db(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(Zm(a)||r===!0&&Es(a)||!t&&!Es(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function $m(e,t,r){return typeof e=="string"?e:j.transform(t+r*e)}function Eb(e,t,r){const n=$m(t,e.x,e.width),a=$m(r,e.y,e.height);return`${n} ${a}`}const jb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bb={offset:"strokeDashoffset",array:"strokeDasharray"};function Pb(e,t,r=1,n=0,a=!0){e.pathLength=1;const s=a?jb:Bb;e[s.offset]=j.transform(-n);const i=j.transform(t),l=j.transform(r);e[s.array]=`${i} ${l}`}function go(e,m,c,d){var y=m,{attrX:t,attrY:r,attrScale:n,originX:a,originY:s,pathLength:i,pathSpacing:l=1,pathOffset:o=0}=y,u=je(y,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(ho(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:A}=e;g.transform&&(A&&(b.transform=g.transform),delete g.transform),A&&(a!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=Eb(A,a!==void 0?a:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),r!==void 0&&(g.y=r),n!==void 0&&(g.scale=n),i!==void 0&&Pb(g,i,l,o,!1)}const Wm=()=>R(L({},yo()),{attrs:{}}),bo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Nb(e,t,r,n){const a=E.useMemo(()=>{const s=Wm();return go(s,t,bo(n),e.transformTemplate),R(L({},s.attrs),{style:L({},s.style)})},[t]);if(e.style){const s={};Vm(s,e.style,e),a.style=L(L({},s),a.style)}return a}function Ub(e=!1){return(r,n,a,{latestValues:s},i)=>{const o=(mo(r)?Nb:Lb)(n,s,i,r),u=Db(n,typeof r=="string",e),c=r!==E.Fragment?R(L(L({},u),o),{ref:a}):{},{children:d}=n,m=E.useMemo(()=>ve(d)?d.get():d,[d]);return E.createElement(r,R(L({},c),{children:m}))}}function Hm(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const s in r)e.style.setProperty(s,r[s])}const Gm=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 Km(e,t,r,n){Hm(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(Gm.has(a)?a:Ss(a),t.attrs[a])}function vo(e,t,r){var n;const{style:a}=e,s={};for(const i in a)(ve(a[i])||t.style&&ve(t.style[i])||Rm(i,e)||((n=r==null?void 0:r.getValue(i))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(s[i]=a[i]);return r&&a&&typeof a.willChange=="string"&&(r.applyWillChange=!1),s}function Qm(e,t,r){const n=vo(e,t,r);for(const a in e)if(ve(e[a])||ve(t[a])){const s=Gn.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[s]=e[a]}return n}function Ym(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function To(e,t,r,n){if(typeof t=="function"){const[a,s]=Ym(n);t=t(r!==void 0?r:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=Ym(n);t=t(r!==void 0?r:e.custom,a,s)}return t}function Ob(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ao=e=>Array.isArray(e),kb=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Rb=e=>Ao(e)?e[e.length-1]||0:e;function js(e){const t=ve(e)?e.get():e;return kb(t)?t.toValue():t}const Xm=new Set(["opacity","clipPath","filter","transform"]);function Jm(e){if(_t.has(e))return"transform";if(Xm.has(e))return Ss(e)}function Bs(e,t){e.indexOf(t)===-1&&e.push(t)}function Ps(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function zb({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},a,s,i,l){const o={latestValues:Mb(a,s,i,l?!1:e,t),renderState:r()};return n&&(o.mount=u=>n(a,u,o)),o}const ep=e=>(t,r)=>{const n=E.useContext(xs),a=E.useContext(so),s=()=>zb(e,t,n,a,r);return r?s():Ob(s)};function qb(e,t){const r=Jm(t);r&&Bs(e,r)}function tp(e,t,r){const n=Array.isArray(t)?t:[t];for(let s=0;s{for(const p in A){let h=A[p];if(Array.isArray(h)){const v=g?h.length-1:0;h=h[v]}h!==null&&(i[p]=h)}for(const p in f)i[p]=f[p]}),o&&(d&&c!==!1&&!Hn(d)&&tp(e,d,A=>{for(const f in A)qb(l,f)}),l.length&&(i.willChange=l.join(","))),i}const{schedule:M,cancel:gt,state:me,steps:Co}=Em(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:be,!0),Fb={useVisualState:ep({scrapeMotionValuesFromProps:Qm,createRenderState:Wm,onMount:(e,t,{renderState:r,latestValues:n})=>{M.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(a){r.dimensions={x:0,y:0,width:0,height:0}}}),M.render(()=>{go(r,n,bo(t.tagName),e.transformTemplate),Km(t,r)})}})},_b={useVisualState:ep({applyWillChange:!0,scrapeMotionValuesFromProps:vo,createRenderState:yo})};function Vb(e,{forwardMotionProps:t=!1},r,n){const a=mo(e)?Fb:_b;return R(L({},a),{preloadedFeatures:r,useRender:Ub(t),createVisualElement:n,Component:e})}function bt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const rp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ns(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Zb=e=>t=>rp(t)&&e(t,Ns(t));function vt(e,t,r,n){return bt(e,t,Zb(r),n)}const $b=(e,t)=>r=>t(e(r)),Tt=(...e)=>e.reduce($b);function np(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const ap=np("dragHorizontal"),sp=np("dragVertical");function ip(e){let t=!1;if(e==="y")t=sp();else if(e==="x")t=ap();else{const r=ap(),n=sp();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function lp(){const e=ip(!0);return e?(e(),!1):!0}class $t{constructor(t){this.isMounted=!1,this.node=t}update(){}}function op(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(s,i)=>{if(s.pointerType==="touch"||lp())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t);const o=l[n];o&&M.postRender(()=>o(s,i))};return vt(e.current,r,a,{passive:!e.getProps()[n]})}class Wb extends $t{mount(){this.unmount=Tt(op(this.node,!0),op(this.node,!1))}unmount(){}}class Hb extends $t{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(r){t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Tt(bt(this.node.current,"focus",()=>this.onFocus()),bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const up=(e,t)=>t?e===t?!0:up(e,t.parentElement):!1;function xo(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ns(r))}class Gb extends $t{constructor(){super(...arguments),this.removeStartListeners=be,this.removeEndListeners=be,this.removeAccessibleListeners=be,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=vt(window,"pointerup",(l,o)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),m=!d&&!up(this.node.current,l.target)?c:u;m&&M.update(()=>m(l,o))},{passive:!(n.onTap||n.onPointerUp)}),i=vt(window,"pointercancel",(l,o)=>this.cancelPress(l,o),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Tt(s,i),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const i=l=>{l.key!=="Enter"||!this.checkPressEnd()||xo("up",(o,u)=>{const{onTap:c}=this.node.getProps();c&&M.postRender(()=>c(o,u))})};this.removeEndListeners(),this.removeEndListeners=bt(this.node.current,"keyup",i),xo("down",(l,o)=>{this.startPress(l,o)})},r=bt(this.node.current,"keydown",t),n=()=>{this.isPressing&&xo("cancel",(s,i)=>this.cancelPress(s,i))},a=bt(this.node.current,"blur",n);this.removeAccessibleListeners=Tt(r,a)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&M.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!lp()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&M.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=vt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=bt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Tt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const So=new WeakMap,Lo=new WeakMap,Kb=e=>{const t=So.get(e.target);t&&t(e)},Qb=e=>{e.forEach(Kb)};function Yb(r){var n=r,{root:e}=n,t=je(n,["root"]);const a=e||document;Lo.has(a)||Lo.set(a,{});const s=Lo.get(a),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(Qb,L({root:e},t))),s[i]}function Xb(e,t,r){const n=Yb(t);return So.set(e,r),n.observe(e),()=>{So.delete(e),n.unobserve(e)}}const Jb={some:0,all:1};class ev extends $t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:s}=t,i={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:Jb[a]},l=o=>{const{isIntersecting:u}=o;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=u?c:d;m&&m(o)};return Xb(this.node.current,i,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(tv(t,r))&&this.startObserver()}unmount(){}}function tv({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const rv={inView:{Feature:ev},tap:{Feature:Gb},focus:{Feature:Hb},hover:{Feature:Wb}};function cp(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;ne*1e3,At=e=>e/1e3,nv={type:"spring",stiffness:500,damping:25,restSpeed:10},av=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sv={type:"keyframes",duration:.8},iv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lv=(e,{keyframes:t})=>t.length>2?sv:_t.has(e)?e.startsWith("scale")?av(t[1]):nv:iv;function ov(d){var m=d,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:s,repeatType:i,repeatDelay:l,from:o,elapsed:u}=m,c=je(m,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}function Io(e,t){return e[t]||e.default||e}const uv=e=>e!==null;function Os(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(uv),s=t&&r!=="loop"&&t%2===1?0:a.length-1;return!s||n===void 0?a[s]:n}let ks;function cv(){ks=void 0}const Ht={now:()=>(ks===void 0&&Ht.set(me.isProcessing||Gg.useManualTiming?me.timestamp:performance.now()),ks),set:e=>{ks=e,queueMicrotask(cv)}},dp=e=>/^0[^.\s]+$/u.test(e);function dv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dp(e):!0}const mp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pv(e){const t=mv.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r!=null?r:n}`,a]}function pp(e,t,r=1){const[n,a]=pv(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const i=s.trim();return mp(i)?parseFloat(i):i}return po(a)?pp(a,t,r+1):a}const fv=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fp=e=>e===Qr||e===j,hp=(e,t)=>parseFloat(e.split(", ")[t]),yp=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return hp(a[1],t);{const s=n.match(/^matrix\((.+)\)$/u);return s?hp(s[1],e):0}},hv=new Set(["x","y","z"]),yv=Gn.filter(e=>!hv.has(e));function gv(e){const t=[];return yv.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Yr={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:yp(4,13),y:yp(5,14)};Yr.translateX=Yr.x,Yr.translateY=Yr.y;const gp=e=>t=>t.test(e),bp=[Qr,j,it,Zt,Cb,Ab,{test:e=>e==="auto",parse:e=>e}],vp=e=>bp.find(gp(e)),cr=new Set;let wo=!1,Do=!1;function Tp(){if(Do){const e=Array.from(cr).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=gv(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([s,i])=>{var l;(l=n.getValue(s))===null||l===void 0||l.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Do=!1,wo=!1,cr.forEach(e=>e.complete()),cr.clear()}function Ap(){cr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Do=!0)})}function bv(){Ap(),Tp()}class Eo{constructor(t,r,n,a,s,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=s,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(cr.add(this),wo||(wo=!0,M.read(Ap),M.resolveKeyframes(Tp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let s=0;sr=>!!(Yn(r)&&vb.test(r)&&r.startsWith(e)||t&&!Tb(r)&&Object.prototype.hasOwnProperty.call(r,t)),Cp=(e,t,r)=>n=>{if(!Yn(n))return n;const[a,s,i,l]=n.match(fo);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(i),alpha:l!==void 0?parseFloat(l):1}},vv=e=>Vt(0,255,e),Bo=R(L({},Qr),{transform:e=>Math.round(vv(e))}),dr={test:jo("rgb","red"),parse:Cp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Bo.transform(e)+", "+Bo.transform(t)+", "+Bo.transform(r)+", "+Qn(Kn.transform(n))+")"};function Tv(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const Po={test:jo("#"),parse:Tv,transform:dr.transform},Xr={test:jo("hsl","hue"),parse:Cp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+it.transform(Qn(t))+", "+it.transform(Qn(r))+", "+Qn(Kn.transform(n))+")"},Te={test:e=>dr.test(e)||Po.test(e)||Xr.test(e),parse:e=>dr.test(e)?dr.parse(e):Xr.test(e)?Xr.parse(e):Po.parse(e),transform:e=>Yn(e)?e:e.hasOwnProperty("red")?dr.transform(e):Xr.transform(e)};function Av(e){var t,r;return isNaN(e)&&Yn(e)&&(((t=e.match(fo))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(bb))===null||r===void 0?void 0:r.length)||0)>0}const xp="number",Sp="color",Cv="var",xv="var(",Lp="${}",Sv=/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 Jn(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let s=0;const l=t.replace(Sv,o=>(Te.test(o)?(n.color.push(s),a.push(Sp),r.push(Te.parse(o))):o.startsWith(xv)?(n.var.push(s),a.push(Cv),r.push(o)):(n.number.push(s),a.push(xp),r.push(parseFloat(o))),++s,Lp)).split(Lp);return{values:r,split:l,indexes:n,types:a}}function Ip(e){return Jn(e).values}function wp(e){const{split:t,types:r}=Jn(e),n=t.length;return a=>{let s="";for(let i=0;itypeof e=="number"?0:e;function Iv(e){const t=Ip(e);return wp(e)(t.map(Lv))}const Gt={test:Av,parse:Ip,createTransformer:wp,getAnimatableNone:Iv},wv=new Set(["brightness","contrast","saturate","opacity"]);function Dv(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(fo)||[];if(!n)return e;const a=r.replace(n,"");let s=wv.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+a+")"}const Ev=/\b([a-z-]*)\(.*?\)/gu,No=R(L({},Gt),{getAnimatableNone:e=>{const t=e.match(Ev);return t?t.map(Dv).join(" "):e}}),jv=R(L({},_m),{color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:No,WebkitFilter:No}),Uo=e=>jv[e];function Dp(e,t){let r=Uo(e);return r!==No&&(r=Gt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Bv=new Set(["auto","none","0"]);function Pv(e,t,r){let n=0,a;for(;n{r.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function jp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Bp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function Nv(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}}function Np(e,t){return t?e*(1e3/t):0}const Ov=5;function Up(e,t,r){const n=Math.max(t-Ov,0);return Np(r-e(n),t-n)}const Oo=.001,kv=.01,Rv=10,zv=.05,qv=1;function Mv({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,s,i=1-t;i=Vt(zv,qv,i),e=Vt(kv,Rv,At(e)),i<1?(a=u=>{const c=u*i,d=c*e,m=c-r,y=ko(u,i),g=Math.exp(-d);return Oo-m/y*g},s=u=>{const d=u*i*e,m=d*r+r,y=Math.pow(i,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=ko(Math.pow(u,2),i);return(-a(u)+Oo>0?-1:1)*((m-y)*g)/b}):(a=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Oo+c*d},s=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const l=5/e,o=_v(a,s,l);if(e=Wt(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(o,2)*n;return{stiffness:u,damping:i*2*Math.sqrt(n*u),duration:e}}}const Fv=12;function _v(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function $v(e){let t=L({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Op(e,Zv)&&Op(e,Vv)){const r=Mv(e);t=R(L(L({},t),r),{mass:1}),t.isResolvedFromDuration=!0}return t}function kp(a){var s=a,{keyframes:e,restDelta:t,restSpeed:r}=s,n=je(s,["keyframes","restDelta","restSpeed"]);const i=e[0],l=e[e.length-1],o={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:m,velocity:y,isResolvedFromDuration:g}=$v(R(L({},n),{velocity:-At(n.velocity||0)})),b=y||0,A=c/(2*Math.sqrt(u*d)),f=l-i,p=At(Math.sqrt(u/d)),h=Math.abs(f)<5;r||(r=h?.01:2),t||(t=h?.005:.5);let v;if(A<1){const T=ko(p,A);v=S=>{const I=Math.exp(-A*p*S);return l-I*((b+A*p*f)/T*Math.sin(T*S)+f*Math.cos(T*S))}}else if(A===1)v=T=>l-Math.exp(-p*T)*(f+(b+p*f)*T);else{const T=p*Math.sqrt(A*A-1);v=S=>{const I=Math.exp(-A*p*S),x=Math.min(T*S,300);return l-I*((b+A*p*f)*Math.sinh(x)+T*f*Math.cosh(x))/T}}return{calculatedDuration:g&&m||null,next:T=>{const S=v(T);if(g)o.done=T>=m;else{let I=b;T!==0&&(A<1?I=Up(v,T,S):I=0);const x=Math.abs(I)<=r,O=Math.abs(l-S)<=t;o.done=x&&O}return o.value=o.done?l:S,o}}}function Rp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:i,min:l,max:o,restDelta:u=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},y=x=>l!==void 0&&xo,g=x=>l===void 0?o:o===void 0||Math.abs(l-x)-b*Math.exp(-x/n),h=x=>f+p(x),v=x=>{const O=p(x),B=h(x);m.done=Math.abs(O)<=u,m.value=m.done?f:B};let T,S;const I=x=>{y(m.value)&&(T=x,S=kp({keyframes:[m.value,g(m.value)],velocity:Up(h,x,m.value),damping:a,stiffness:s,restDelta:u,restSpeed:c}))};return I(0),{calculatedDuration:null,next:x=>{let O=!1;return!S&&T===void 0&&(O=!0,v(x),I(x)),T!==void 0&&x>=T?S.next(x-T):(!O&&v(x),m)}}}const zp=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Wv=1e-7,Hv=12;function Gv(e,t,r,n,a){let s,i,l=0;do i=t+(r-t)/2,s=zp(i,n,a)-e,s>0?r=i:t=i;while(Math.abs(s)>Wv&&++lGv(s,0,1,e,r);return s=>s===0||s===1?s:zp(a(s),t,n)}const Kv=ea(.42,0,1,1),Qv=ea(0,0,.58,1),qp=ea(.42,0,.58,1),Yv=e=>Array.isArray(e)&&typeof e[0]!="number",Mp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fp=e=>t=>1-e(1-t),Ro=e=>1-Math.sin(Math.acos(e)),_p=Fp(Ro),Xv=Mp(Ro),Vp=ea(.33,1.53,.69,.99),zo=Fp(Vp),Jv=Mp(zo),Zp={linear:be,easeIn:Kv,easeInOut:qp,easeOut:Qv,circIn:Ro,circInOut:Xv,circOut:_p,backIn:zo,backInOut:Jv,backOut:Vp,anticipate:e=>(e*=2)<1?.5*zo(e):.5*(2-Math.pow(2,-10*(e-1)))},$p=e=>{if(Array.isArray(e)){co(e.length===4);const[t,r,n,a]=e;return ea(t,r,n,a)}else if(typeof e=="string")return co(Zp[e]!==void 0),Zp[e];return e},ta=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},G=(e,t,r)=>e+(t-e)*r;function qo(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function e0({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,s=0,i=0;if(!t)a=s=i=r;else{const l=r<.5?r*(1+t):r+t-r*t,o=2*r-l;a=qo(o,l,e+1/3),s=qo(o,l,e),i=qo(o,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:n}}function Rs(e,t){return r=>r>0?t:e}const Mo=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},t0=[Po,dr,Xr],r0=e=>t0.find(t=>t.test(e));function Wp(e){const t=r0(e);if(!t)return!1;let r=t.parse(e);return t===Xr&&(r=e0(r)),r}const Hp=(e,t)=>{const r=Wp(e),n=Wp(t);if(!r||!n)return Rs(e,t);const a=L({},r);return s=>(a.red=Mo(r.red,n.red,s),a.green=Mo(r.green,n.green,s),a.blue=Mo(r.blue,n.blue,s),a.alpha=G(r.alpha,n.alpha,s),dr.transform(a))},Fo=new Set(["none","hidden"]);function n0(e,t){return Fo.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function a0(e,t){return r=>G(e,t,r)}function _o(e){return typeof e=="number"?a0:typeof e=="string"?po(e)?Rs:Te.test(e)?Hp:l0:Array.isArray(e)?Gp:typeof e=="object"?Te.test(e)?Hp:s0:Rs}function Gp(e,t){const r=[...e],n=r.length,a=e.map((s,i)=>_o(s)(s,t[i]));return s=>{for(let i=0;i{for(const s in n)r[s]=n[s](a);return r}}function i0(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let s=0;s{const r=Gt.createTransformer(t),n=Jn(e),a=Jn(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?Fo.has(e)&&!a.values.length||Fo.has(t)&&!n.values.length?n0(e,t):Tt(Gp(i0(n,a),a.values),r):Rs(e,t)};function Kp(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?G(e,t,r):_o(e)(e,t)}function o0(e,t,r){const n=[],a=r||Kp,s=e.length-1;for(let i=0;it[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=o0(t,n,a),l=i.length,o=u=>{let c=0;if(l>1)for(;co(Vt(e[0],e[s-1],u)):o}function c0(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=ta(0,t,n);e.push(G(r,1,a))}}function d0(e){const t=[0];return c0(t,e.length-1),t}function m0(e,t){return e.map(r=>r*t)}function p0(e,t){return e.map(()=>t||qp).splice(0,e.length-1)}function zs({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=Yv(n)?n.map($p):$p(n),s={done:!1,value:t[0]},i=m0(r&&r.length===t.length?r:d0(t),e),l=u0(i,t,{ease:Array.isArray(a)?a:p0(t,a)});return{calculatedDuration:e,next:o=>(s.value=l(o),s.done=o>=e,s)}}const Qp=2e4;function f0(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Qp?1/0:t}const h0=e=>{const t=({timestamp:r})=>e(r);return{start:()=>M.update(t,!0),stop:()=>gt(t),now:()=>me.isProcessing?me.timestamp:Ht.now()}},y0={decay:Rp,inertia:Rp,tween:zs,keyframes:zs,spring:kp},g0=e=>e/100;class Vo extends Pp{constructor(n){var a=n,{KeyframeResolver:t=Eo}=a,r=je(a,["KeyframeResolver"]);super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:s,motionValue:i,keyframes:l}=this.options,o=(u,c)=>this.onKeyframesResolved(u,c);s&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(l,o,s,i):this.resolver=new t(l,o,s,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:s,velocity:i=0}=this.options,l=y0[r]||zs;let o,u;l!==zs&&typeof t[0]!="number"&&(o=Tt(g0,Kp(t[0],t[1])),t=[0,100]);const c=l(R(L({},this.options),{keyframes:t}));s==="mirror"&&(u=l(R(L({},this.options),{keyframes:[...t].reverse(),velocity:-i}))),c.calculatedDuration===null&&(c.calculatedDuration=f0(c));const{calculatedDuration:d}=c,m=d+a,y=m*(n+1)-a;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:o,calculatedDuration:d,resolvedDuration:m,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:x}=this.options;return{done:!0,value:x[x.length-1]}}const{finalKeyframe:a,generator:s,mirroredGenerator:i,mapPercentToKeyframes:l,keyframes:o,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=n;if(this.startTime===null)return s.next(0);const{delay:m,repeat:y,repeatType:g,repeatDelay:b,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const f=this.currentTime-m*(this.speed>=0?1:-1),p=this.speed>=0?f<0:f>c;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let h=this.currentTime,v=s;if(y){const x=Math.min(this.currentTime,c)/d;let O=Math.floor(x),B=x%1;!B&&x>=1&&(B=1),B===1&&O--,O=Math.min(O,y+1),!!(O%2)&&(g==="reverse"?(B=1-B,b&&(B-=b/d)):g==="mirror"&&(v=i)),h=Vt(0,1,B)*d}const T=p?{done:!1,value:o[0]}:v.next(h);l&&(T.value=l(T.value));let{done:S}=T;!p&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return I&&a!==void 0&&(T.value=Os(o,this.options,a)),A&&A(T.value),I&&this.finish(),T}get duration(){const{resolved:t}=this;return t?At(t.calculatedDuration):0}get time(){return At(this.currentTime)}set time(t){t=Wt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=At(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=h0,onPlay:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const Yp=e=>Array.isArray(e)&&typeof e[0]=="number";function Xp(e){return!!(!e||typeof e=="string"&&e in Zo||Yp(e)||Array.isArray(e)&&e.every(Xp))}const ra=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Zo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ra([0,.65,.55,1]),circOut:ra([.55,0,1,.45]),backIn:ra([.31,.01,.66,-.59]),backOut:ra([.33,1.53,.69,.99])};function b0(e){return Jp(e)||Zo.easeOut}function Jp(e){if(e)return Yp(e)?ra(e):Array.isArray(e)?e.map(b0):Zo[e]}function v0(e,t,r,{delay:n=0,duration:a=300,repeat:s=0,repeatType:i="loop",ease:l,times:o}={}){const u={[t]:r};o&&(u.offset=o);const c=Jp(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:a,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}const T0=jp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),qs=10,A0=2e4;function C0(e){return e.type==="spring"||!Xp(e.ease)}function x0(e,t){const r=new Vo(R(L({},t),{keyframes:e,repeat:0,delay:0,isGenerator:!0}));let n={done:!1,value:e[0]};const a=[];let s=0;for(;!n.done&&sthis.onKeyframesResolved(s,i),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:s,ease:i,type:l,motionValue:o,name:u}=this.options;if(!(!((n=o.owner)===null||n===void 0)&&n.current))return!1;if(C0(this.options)){const d=this.options,{onComplete:m,onUpdate:y,motionValue:g}=d,b=je(d,["onComplete","onUpdate","motionValue"]),A=x0(t,b);t=A.keyframes,t.length===1&&(t[1]=t[0]),a=A.duration,s=A.times,i=A.ease,l="keyframes"}const c=v0(o.owner.current,u,t,R(L({},this.options),{duration:a,times:s,ease:i}));return c.startTime=Ht.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:m}=this.options;o.set(Os(t,this.options,r)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:a,times:s,type:l,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return At(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return At(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=Wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return be;const{animation:n}=r;n.timeline=t,n.onfinish=null}return be}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:s,ease:i,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const u=this.options,{motionValue:c,onUpdate:d,onComplete:m}=u,y=je(u,["motionValue","onUpdate","onComplete"]),g=new Vo(R(L({},y),{keyframes:n,duration:a,type:s,ease:i,times:l,isGenerator:!0})),b=Wt(this.time);c.setWithVelocity(g.sample(b-qs).value,g.sample(b).value,qs)}const{onStop:o}=this.options;o&&o(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:s,damping:i,type:l}=t;return T0()&&n&&Xm.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&s!=="mirror"&&i!==0&&l!=="inertia"}}function S0(e,t){let r;const n=()=>{const{currentTime:a}=t,i=(a===null?0:a.value)/100;r!==i&&e(i),r=i};return M.update(n,!0),()=>gt(n)}const L0=jp(()=>window.ScrollTimeline!==void 0);class I0{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n{if(L0()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),S0(a=>{n.time=n.duration*a},t)});return()=>{r.forEach((n,a)=>{n&&n(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;rr[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const $o=(e,t,r,n={},a,s,i)=>l=>{const o=Io(n,e)||{},u=o.delay||n.delay||0;let{elapsed:c=0}=n;c=c-Wt(u);let d=R(L({keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity()},o),{delay:-c,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{l(),o.onComplete&&o.onComplete(),i&&i()},onStop:i,name:e,motionValue:t,element:s?void 0:a});ov(o)||(d=L(L({},d),lv(e,d))),d.duration&&(d.duration=Wt(d.duration)),d.repeatDelay&&(d.repeatDelay=Wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let m=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(m=!0)),m&&!s&&t.get()!==void 0){const y=Os(d.keyframes,o);if(y!==void 0)return M.update(()=>{d.onUpdate(y),d.onComplete()}),new I0([])}return!s&&ef.supports(d)?new ef(d):new Vo(d)};class Wo{constructor(){this.subscriptions=[]}add(t){return Bs(this.subscriptions,t),()=>Ps(this.subscriptions,t)}notify(t,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let s=0;s!isNaN(parseFloat(e));class rf{constructor(t,r={}){this.version="11.3.19",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const s=Ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=w0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Wo);const n=this.events[t].add(r);return t==="change"?()=>{n(),M.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tf)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,tf);return Np(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 na(e,t){return new rf(e,t)}function D0(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,na(r))}function E0(e,t){let i=Us(e,t)||{},{transitionEnd:n={},transition:a={}}=i,s=je(i,["transitionEnd","transition"]);s=L(L({},s),n);for(const l in s){const o=Rb(s[l]);D0(e,l,o)}}function nf(e){return e.getProps()[Dm]}class j0 extends rf{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const r=Jm(t);if(!r)return;const n=this.counts.get(r)||0;this.counts.set(r,n+1),n===0&&(this.output.push(r),this.update());let a=!1;return()=>{if(a)return;a=!0;const s=this.counts.get(r)-1;this.counts.set(r,s),s===0&&(Ps(this.output,r),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function B0(e){return!!(ve(e)&&e.add)}function Ho(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");if(!n&&!(!((r=e.props.style)===null||r===void 0)&&r.willChange)&&(n=new j0("auto"),e.addValue("willChange",n)),B0(n))return n.add(t)}function P0({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function af(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var s;let d=t,{transition:i=e.getDefaultTransition(),transitionEnd:l}=d,o=je(d,["transition","transitionEnd"]);n&&(i=n);const u=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const m in o){const y=e.getValue(m,(s=e.latestValues[m])!==null&&s!==void 0?s:null),g=o[m];if(g===void 0||c&&P0(c,m))continue;const b=L({delay:r,elapsed:0},Io(i||{},m));let A=!1;if(window.HandoffAppearAnimations){const p=nf(e);if(p){const h=window.HandoffAppearAnimations(p,m,y,M);h!==null&&(b.elapsed=h,A=!0)}}y.start($o(m,y,g,e.shouldReduceMotion&&_t.has(m)?{type:!1}:b,e,A,Ho(e,m)));const f=y.animation;f&&u.push(f)}return l&&Promise.all(u).then(()=>{M.update(()=>{l&&E0(e,l)})}),u}function Go(e,t,r={}){var n;const a=Us(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(s=r.transitionOverride);const i=a?()=>Promise.all(af(e,a,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:m}=s;return N0(e,t,c+u,d,m,r)}:()=>Promise.resolve(),{when:o}=s;if(o){const[u,c]=o==="beforeChildren"?[i,l]:[l,i];return u().then(()=>c())}else return Promise.all([i(),l(r.delay)])}function N0(e,t,r=0,n=0,a=1,s){const i=[],l=(e.variantChildren.size-1)*n,o=a===1?(u=0)=>u*n:(u=0)=>l-u*n;return Array.from(e.variantChildren).sort(U0).forEach((u,c)=>{u.notify("AnimationStart",t),i.push(Go(u,t,R(L({},s),{delay:r+o(c)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function U0(e,t){return e.sortNodePosition(t)}function O0(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(s=>Go(e,s,r));n=Promise.all(a)}else if(typeof t=="string")n=Go(e,t,r);else{const a=typeof t=="function"?Us(e,t,r.custom):t;n=Promise.all(af(e,a,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const k0=[...oo].reverse(),R0=oo.length;function z0(e){return t=>Promise.all(t.map(({animation:r,options:n})=>O0(e,r,n)))}function q0(e){let t=z0(e),r=sf(),n=!0;const a=o=>(u,c)=>{var d;const m=Us(e,c,o==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(m){const y=m,{transition:g,transitionEnd:b}=y,A=je(y,["transition","transitionEnd"]);u=L(L(L({},u),A),b)}return u};function s(o){t=o(e)}function i(o){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],m=new Set;let y={},g=1/0;for(let A=0;Ag&&v,O=!1;const B=Array.isArray(h)?h:[h];let le=B.reduce(a(f),{});T===!1&&(le={});const{prevResolvedValues:Kt={}}=p,hr=L(L({},Kt),le),oa=pe=>{x=!0,m.has(pe)&&(O=!0,m.delete(pe)),p.needsAnimating[pe]=!0;const ze=e.getValue(pe);ze&&(ze.liveStyle=!1)};for(const pe in hr){const ze=le[pe],yr=Kt[pe];if(y.hasOwnProperty(pe))continue;let w=!1;Ao(ze)&&Ao(yr)?w=!cp(ze,yr):w=ze!==yr,w?ze!=null?oa(pe):m.add(pe):ze!==void 0&&m.has(pe)?oa(pe):p.protectedKeys[pe]=!0}p.prevProp=h,p.prevResolvedValues=le,p.isActive&&(y=L(L({},y),le)),n&&e.blockInitialAnimation&&(x=!1),x&&(!S||O)&&d.push(...B.map(pe=>({animation:pe,options:{type:f}})))}if(m.size){const A={};m.forEach(f=>{const p=e.getBaseTarget(f),h=e.getValue(f);h&&(h.liveStyle=!0),A[f]=p!=null?p:null}),d.push({animation:A})}let b=!!d.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(d):Promise.resolve()}function l(o,u){var c;if(r[o].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(o,u)}),r[o].isActive=u;const d=i(o);for(const m in r)r[m].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:s,getState:()=>r,reset:()=>{r=sf(),n=!0}}}function M0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!cp(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sf(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class F0 extends $t{constructor(t){super(t),t.animationState||(t.animationState=q0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _0=0;class V0 extends $t{constructor(){super(...arguments),this.id=_0++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Z0={animation:{Feature:F0},exit:{Feature:V0}},lf=(e,t)=>Math.abs(e-t);function $0(e,t){const r=lf(e.x,t.x),n=lf(e.y,t.y);return Math.sqrt(iu(r,2)+iu(n,2))}class of{constructor(t,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Qo(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=$0(d.offset,{x:0,y:0})>=3;if(!m&&!y)return;const{point:g}=d,{timestamp:b}=me;this.history.push(R(L({},g),{timestamp:b}));const{onStart:A,onMove:f}=this.handlers;m||(A&&A(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ko(m,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Qo(d.type==="pointercancel"?this.lastMoveEventInfo:Ko(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,A),g&&g(d,A)},!rp(t))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const i=Ns(t),l=Ko(i,this.transformPagePoint),{point:o}=l,{timestamp:u}=me;this.history=[R(L({},o),{timestamp:u})];const{onSessionStart:c}=r;c&&c(t,Qo(l,this.history)),this.removeListeners=Tt(vt(this.contextWindow,"pointermove",this.handlePointerMove),vt(this.contextWindow,"pointerup",this.handlePointerUp),vt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),gt(this.updatePoint)}}function Ko(e,t){return t?{point:t(e.point)}:e}function uf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qo({point:e},t){return{point:e,delta:uf(e,cf(t)),offset:uf(e,W0(t)),velocity:H0(t,.1)}}function W0(e){return e[0]}function cf(e){return e[e.length-1]}function H0(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=cf(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>Wt(t)));)r--;if(!n)return{x:0,y:0};const s=At(a.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const i={x:(a.x-n.x)/s,y:(a.y-n.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}const df=1e-4,G0=1-df,K0=1+df,mf=.01,Q0=0-mf,Y0=0+mf;function Re(e){return e.max-e.min}function X0(e,t,r){return Math.abs(e-t)<=r}function pf(e,t,r,n=.5){e.origin=n,e.originPoint=G(t.min,t.max,e.origin),e.scale=Re(r)/Re(t),e.translate=G(r.min,r.max,e.origin)-e.originPoint,(e.scale>=G0&&e.scale<=K0||isNaN(e.scale))&&(e.scale=1),(e.translate>=Q0&&e.translate<=Y0||isNaN(e.translate))&&(e.translate=0)}function aa(e,t,r,n){pf(e.x,t.x,r.x,n?n.originX:void 0),pf(e.y,t.y,r.y,n?n.originY:void 0)}function ff(e,t,r){e.min=r.min+t.min,e.max=e.min+Re(t)}function J0(e,t,r){ff(e.x,t.x,r.x),ff(e.y,t.y,r.y)}function hf(e,t,r){e.min=t.min-r.min,e.max=e.min+Re(t)}function sa(e,t,r){hf(e.x,t.x,r.x),hf(e.y,t.y,r.y)}function eT(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?G(r,e,n.max):Math.min(e,r)),e}function yf(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function tT(e,{top:t,left:r,bottom:n,right:a}){return{x:yf(e.x,r,a),y:yf(e.y,t,n)}}function gf(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=ta(t.min,t.max-n,e.min):n>a&&(r=ta(e.min,e.max-a,t.min)),Vt(0,1,r)}function aT(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Yo=.35;function sT(e=Yo){return e===!1?e=0:e===!0&&(e=Yo),{x:bf(e,"left","right"),y:bf(e,"top","bottom")}}function bf(e,t,r){return{min:vf(e,t),max:vf(e,r)}}function vf(e,t){return typeof e=="number"?e:e[t]||0}const Tf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:Tf(),y:Tf()}),Af=()=>({min:0,max:0}),X=()=>({x:Af(),y:Af()});function We(e){return[e("x"),e("y")]}function Cf({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function iT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lT(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Xo(e){return e===void 0||e===1}function Jo({scale:e,scaleX:t,scaleY:r}){return!Xo(e)||!Xo(t)||!Xo(r)}function pr(e){return Jo(e)||xf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xf(e){return Sf(e.x)||Sf(e.y)}function Sf(e){return e&&e!=="0%"}function Ms(e,t,r){const n=e-r,a=t*n;return r+a}function Lf(e,t,r,n,a){return a!==void 0&&(e=Ms(e,a,n)),Ms(e,r,n)+t}function eu(e,t=0,r=1,n,a){e.min=Lf(e.min,t,r,n,a),e.max=Lf(e.max,t,r,n,a)}function If(e,{x:t,y:r}){eu(e.x,t.translate,t.scale,t.originPoint),eu(e.y,r.translate,r.scale,r.originPoint)}const wf=.999999999999,Df=1.0000000000001;function oT(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let s,i;for(let l=0;lwf&&(t.x=1),t.ywf&&(t.y=1)}function en(e,t){e.min=e.min+t,e.max=e.max+t}function Ef(e,t,r,n,a=.5){const s=G(e.min,e.max,a);eu(e,t,r,s,n)}function tn(e,t){Ef(e.x,t.x,t.scaleX,t.scale,t.originX),Ef(e.y,t.y,t.scaleY,t.scale,t.originY)}function jf(e,t){return Cf(lT(e.getBoundingClientRect(),t))}function uT(e,t,r){const n=jf(e,r),{scroll:a}=t;return a&&(en(n.x,a.offset.x),en(n.y,a.offset.y)),n}const Bf=({current:e})=>e?e.ownerDocument.defaultView:null,cT=new WeakMap;class dT{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ns(c,"page").point)},s=(c,d)=>{var m;const{drag:y,dragPropagation:g,onDragStart:b}=this.getProps();if(y&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ip(y),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),We(f=>{let p=this.getAxisMotionValue(f).get()||0;if(it.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const v=h.layout.layoutBox[f];v&&(p=Re(v)*(parseFloat(p)/100))}}this.originPoint[f]=p}),b&&M.postRender(()=>b(c,d)),(m=this.removeWillChange)===null||m===void 0||m.call(this),this.removeWillChange=Ho(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},i=(c,d)=>{const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:g,onDrag:b}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:A}=d;if(y&&this.currentDirection===null){this.currentDirection=mT(A),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,A),this.updateAxis("y",d.point,A),this.visualElement.render(),b&&b(c,d)},l=(c,d)=>this.stop(c,d),o=()=>We(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new of(t,{onSessionStart:a,onStart:s,onMove:i,onSessionEnd:l,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Bf(this.visualElement)})}stop(t,r){var n;(n=this.removeWillChange)===null||n===void 0||n.call(this);const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&M.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:a}=this.getProps();if(!n||!Fs(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=eT(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;r&&Gr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=tT(a.layoutBox,r):this.constraints=!1,this.elastic=sT(n),s!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&We(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=aT(a.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Gr(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=uT(n,a.root,this.visualElement.getTransformPagePoint());let i=rT(a.layout.layoutBox,s);if(r){const l=r(iT(i));this.hasMutatedConstraints=!!l,l&&(i=Cf(l))}return i}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:l}=this.getProps(),o=this.constraints||{},u=We(c=>{if(!Fs(c,r,this.currentDirection))return;let d=o&&o[c]||{};i&&(d={min:0,max:0});const m=a?200:1e6,y=a?40:1e7,g=L(L({type:"inertia",velocity:n?t[c]:0,bounceStiffness:m,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10},s),d);return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($o(t,n,0,r,this.visualElement,!1,Ho(this.visualElement,t)))}stopAnimation(){We(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){We(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){We(r=>{const{drag:n}=this.getProps();if(!Fs(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(r);if(a&&a.layout){const{min:i,max:l}=a.layout.layoutBox[r];s.set(t[r]-G(i,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Gr(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};We(i=>{const l=this.getAxisMotionValue(i);if(l&&this.constraints!==!1){const o=l.get();a[i]=nT({min:o,max:o},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),We(i=>{if(!Fs(i,t,null))return;const l=this.getAxisMotionValue(i),{min:o,max:u}=this.constraints[i];l.set(G(o,u,a[i]))})}addListeners(){if(!this.visualElement.current)return;cT.set(this.visualElement,this);const t=this.visualElement.current,r=vt(t,"pointerdown",o=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(o)}),n=()=>{const{dragConstraints:o}=this.getProps();Gr(o)&&o.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),M.read(n);const i=bt(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:o,hasLayoutChanged:u})=>{this.isDragging&&u&&(We(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=o[c].translate,d.set(d.get()+o[c].translate))}),this.visualElement.render())});return()=>{i(),r(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:i=Yo,dragMomentum:l=!0}=t;return R(L({},t),{drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:s,dragElastic:i,dragMomentum:l})}}function Fs(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function mT(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class pT extends $t{constructor(t){super(t),this.removeGroupControls=be,this.removeListeners=be,this.controls=new dT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||be}unmount(){this.removeGroupControls(),this.removeListeners()}}const Pf=e=>(t,r)=>{e&&M.postRender(()=>e(t,r))};class fT extends $t{constructor(){super(...arguments),this.removePointerDownListener=be}onPointerDown(t){this.session=new of(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:Pf(t),onStart:Pf(r),onMove:n,onEnd:(s,i)=>{delete this.session,a&&M.postRender(()=>a(s,i))}}}mount(){this.removePointerDownListener=vt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function hT(){const e=E.useContext(so);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=E.useId();E.useEffect(()=>n(a),[]);const s=E.useCallback(()=>r&&r(a),[a,r]);return!t&&r?[!1,s]:[!0]}const _s={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Nf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ia={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const r=Nf(e,t.target.x),n=Nf(e,t.target.y);return`${r}% ${n}%`}},yT={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Gt.parse(e);if(a.length>5)return n;const s=Gt.createTransformer(e),i=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,o=r.y.scale*t.y;a[0+i]/=l,a[1+i]/=o;const u=G(l,o,.5);return typeof a[2+i]=="number"&&(a[2+i]/=u),typeof a[3+i]=="number"&&(a[3+i]/=u),s(a)}};class gT extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:s}=t;db(bT),s&&(r.group&&r.group.add(s),n&&n.register&&a&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(R(L({},s.options),{onExitComplete:()=>this.safeToRemove()}))),_s.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:s}=this.props,i=n.projection;return i&&(i.isPresent=s,a||t.layoutDependency!==r||r===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||M.postRender(()=>{const l=i.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Uf(e){const[t,r]=hT(),n=E.useContext(km);return z.jsx(gT,R(L({},e),{layoutGroup:n,switchLayoutGroup:E.useContext(jm),isPresent:t,safeToRemove:r}))}const bT={borderRadius:R(L({},ia),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ia,borderTopRightRadius:ia,borderBottomLeftRadius:ia,borderBottomRightRadius:ia,boxShadow:yT},Of=["TopLeft","TopRight","BottomLeft","BottomRight"],vT=Of.length,kf=e=>typeof e=="string"?parseFloat(e):e,Rf=e=>typeof e=="number"||j.test(e);function TT(e,t,r,n,a,s){a?(e.opacity=G(0,r.opacity!==void 0?r.opacity:1,AT(n)),e.opacityExit=G(t.opacity!==void 0?t.opacity:1,0,CT(n))):s&&(e.opacity=G(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let i=0;int?1:r(ta(e,t,n))}function Mf(e,t){e.min=t.min,e.max=t.max}function He(e,t){Mf(e.x,t.x),Mf(e.y,t.y)}function Ff(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _f(e,t,r,n,a){return e-=t,e=Ms(e,1/r,n),a!==void 0&&(e=Ms(e,1/a,n)),e}function xT(e,t=0,r=1,n=.5,a,s=e,i=e){if(it.test(t)&&(t=parseFloat(t),t=G(i.min,i.max,t/100)-i.min),typeof t!="number")return;let l=G(s.min,s.max,n);e===s&&(l-=t),e.min=_f(e.min,t,r,l,a),e.max=_f(e.max,t,r,l,a)}function Vf(e,t,[r,n,a],s,i){xT(e,t[r],t[n],t[a],t.scale,s,i)}const ST=["x","scaleX","originX"],LT=["y","scaleY","originY"];function Zf(e,t,r,n){Vf(e.x,t,ST,r?r.x:void 0,n?n.x:void 0),Vf(e.y,t,LT,r?r.y:void 0,n?n.y:void 0)}function $f(e){return e.translate===0&&e.scale===1}function Wf(e){return $f(e.x)&&$f(e.y)}function Hf(e,t){return e.min===t.min&&e.max===t.max}function IT(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Gf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kf(e,t){return Gf(e.x,t.x)&&Gf(e.y,t.y)}function Qf(e){return Re(e.x)/Re(e.y)}function Yf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wT{constructor(){this.members=[]}add(t){Bs(this.members,t),t.scheduleRender()}remove(t){if(Ps(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function DT(e,t,r){let n="";const a=e.x.translate/t.x,s=e.y.translate/t.y,i=(r==null?void 0:r.z)||0;if((a||s||i)&&(n=`translate3d(${a}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:m,skewX:y,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}`),c&&(n+=`rotate(${c}deg) `),d&&(n+=`rotateX(${d}deg) `),m&&(n+=`rotateY(${m}deg) `),y&&(n+=`skewX(${y}deg) `),g&&(n+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,o=e.y.scale*t.y;return(l!==1||o!==1)&&(n+=`scale(${l}, ${o})`),n||"none"}const ET=(e,t)=>e.depth-t.depth;class jT{constructor(){this.children=[],this.isDirty=!1}add(t){Bs(this.children,t),this.isDirty=!0}remove(t){Ps(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ET),this.isDirty=!1,this.children.forEach(t)}}function BT(e,t){const r=Ht.now(),n=({timestamp:a})=>{const s=a-r;s>=t&&(gt(n),e(s-t))};return M.read(n,!0),()=>gt(n)}function PT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function NT(e,t,r){const n=ve(e)?e:na(e);return n.start($o("",n,t,r)),n.animation}const fr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},la=typeof window!="undefined"&&window.MotionDebug!==void 0,tu=["","X","Y","Z"],UT={visibility:"hidden"},Xf=1e3;let OT=0;function ru(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Jf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?nf(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Jf(e.parent):!1:!1}function eh({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(i={},l=t==null?void 0:t()){this.id=OT++,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,la&&(fr.totalNodes=fr.resolvedTargetDeltas=fr.recalculatedProjection=0),this.nodes.forEach(zT),this.nodes.forEach(VT),this.nodes.forEach(ZT),this.nodes.forEach(qT),la&&window.MotionDebug.record(fr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let o=0;othis.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=BT(m,250),_s.hasAnimatedSinceResize&&(_s.hasAnimatedSinceResize=!1,this.nodes.forEach(rh))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||KT,{onLayoutAnimationStart:A,onLayoutAnimationComplete:f}=c.getProps(),p=!this.targetLayout||!Kf(this.targetLayout,g)||y,h=!m&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||m&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,h);const v=R(L({},Io(b,"layout")),{onPlay:A,onComplete:f});(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else m||rh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gt(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($T),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Jf(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 o=0;o{const T=v/1e3;nh(d.x,i.x,T),nh(d.y,i.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sa(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),HT(this.relativeTarget,this.relativeTargetOrigin,m,T),h&&IT(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=X()),He(h,this.relativeTarget)),b&&(this.animationValues=c,TT(c,u,this.latestValues,T,p,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{_s.hasAnimatedSinceResize=!0,this.currentAnimation=NT(0,Xf,R(L({},i),{onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:o,layout:u,latestValues:c}=i;if(!(!l||!o||!u)){if(this!==i&&this.layout&&u&&oh(this.options.animationType,this.layout.layoutBox,u.layoutBox)){o=this.target||X();const d=Re(this.layout.layoutBox.x);o.x.min=i.target.x.min,o.x.max=o.x.min+d;const m=Re(this.layout.layoutBox.y);o.y.min=i.target.y.min,o.y.max=o.y.min+m}He(l,o),tn(l,c),aa(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new wT),this.sharedNodes.get(i).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:l}=this.options;return l?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:l}=this.options;return l?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:o}={}){const u=this.getStack();u&&u.promote(this,o),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:o}=i;if((o.z||o.rotate||o.rotateX||o.rotateY||o.rotateZ||o.skewX||o.skewY)&&(l=!0),!l)return;const u={};o.z&&ru("z",i,u,this.animationValues);for(let c=0;c{var l;return(l=i.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(th),this.root.sharedNodes.clear()}}}function kT(e){e.updateLayout()}function RT(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:s}=e.options,i=r.source!==e.layout.source;s==="size"?We(d=>{const m=i?r.measuredBox[d]:r.layoutBox[d],y=Re(m);m.min=n[d].min,m.max=m.min+y}):oh(s,r.layoutBox,n)&&We(d=>{const m=i?r.measuredBox[d]:r.layoutBox[d],y=Re(n[d]);m.max=m.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const l=Jr();aa(l,n,r.layoutBox);const o=Jr();i?aa(o,e.applyTransform(a,!0),r.measuredBox):aa(o,n,r.layoutBox);const u=!Wf(l);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:m,layout:y}=d;if(m&&y){const g=X();sa(g,r.layoutBox,m.layoutBox);const b=X();sa(b,n,y.layoutBox),Kf(g,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:o,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function zT(e){la&&fr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function MT(e){e.clearSnapshot()}function th(e){e.clearMeasurements()}function FT(e){e.isLayoutDirty=!1}function _T(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VT(e){e.resolveTargetDelta()}function ZT(e){e.calcProjection()}function $T(e){e.resetSkewAndRotation()}function WT(e){e.removeLeadSnapshot()}function nh(e,t,r){e.translate=G(t.translate,0,r),e.scale=G(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function ah(e,t,r,n){e.min=G(t.min,r.min,n),e.max=G(t.max,r.max,n)}function HT(e,t,r,n){ah(e.x,t.x,r.x,n),ah(e.y,t.y,r.y,n)}function GT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const KT={duration:.45,ease:[.4,0,.1,1]},sh=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ih=sh("applewebkit/")&&!sh("chrome/")?Math.round:be;function lh(e){e.min=ih(e.min),e.max=ih(e.max)}function QT(e){lh(e.x),lh(e.y)}function oh(e,t,r){return e==="position"||e==="preserve-aspect"&&!X0(Qf(t),Qf(r),.2)}function YT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XT=eh({attachResizeListener:(e,t)=>bt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nu={current:void 0},uh=eh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nu.current){const e=new XT({});e.mount(window),e.setOptions({layoutScroll:!0}),nu.current=e}return nu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JT={pan:{Feature:fT},drag:{Feature:pT,ProjectionNode:uh,MeasureLayout:Uf}},au={current:null},ch={current:!1};function eA(){if(ch.current=!0,!!io)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>au.current=e.matches;e.addListener(t),t()}else au.current=!1}function tA(e,t,r){for(const n in t){const a=t[n],s=r[n];if(ve(a))e.addValue(n,a);else if(ve(s))e.addValue(n,na(a,{owner:e}));else if(s!==a)if(e.hasValue(n)){const i=e.getValue(n);i.liveStyle===!0?i.jump(a):i.hasAnimated||i.set(a)}else{const i=e.getStaticValue(n);e.addValue(n,na(i!==void 0?i:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const dh=new WeakMap,rA=[...bp,Te,Gt],nA=e=>rA.find(gp(e)),mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aA=uo.length;class sA{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:s,visualState:i},l={}){this.applyWillChange=!1,this.resolveKeyframes=(y,g,b,A)=>new this.KeyframeResolver(y,g,b,A,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,M.render(this.render,!1,!0))};const{latestValues:o,renderState:u}=i;this.latestValues=o,this.baseTarget=L({},o),this.initialValues=r.initial?L({},o):{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Is(r),this.isVariantNode=Nm(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const m=this.scrapeMotionValuesFromProps(r,{},this),{willChange:c}=m,d=je(m,["willChange"]);for(const y in d){const g=d[y];o[y]!==void 0&&ve(g)&&g.set(o[y],!1)}}mount(t){this.current=t,dh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),ch.current||eA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:au.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){dh.delete(this.current),this.projection&&this.projection.unmount(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){const n=_t.has(t),a=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&M.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Kr){const r=Kr[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=na(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(mp(a)||dp(a))?a=parseFloat(a):!nA(a)&&Gt.test(r)&&(a=Dp(t,r)),this.setBaseTarget(t,ve(a)?a.get():a)),ve(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const i=To(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);i&&(a=i[t])}if(n&&a!==void 0)return a;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ve(s)?s:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Wo),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class ph extends sA{constructor(){super(...arguments),this.KeyframeResolver=Ep}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function iA(e){return window.getComputedStyle(e)}class lA extends ph{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Hm}readValueFromInstance(t,r){if(_t.has(r)){const n=Uo(r);return n&&n.default||0}else{const n=iA(t),a=(qm(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return jf(t,r)}build(t,r,n){ho(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return vo(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ve(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class oA extends ph{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(_t.has(r)){const n=Uo(r);return n&&n.default||0}return r=Gm.has(r)?r:Ss(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Qm(t,r,n)}build(t,r,n){go(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){Km(t,r,n,a)}mount(t){this.isSVGTag=bo(t.tagName),super.mount(t)}}const uA=(e,t)=>mo(e)?new oA(t):new lA(t,{allowProjection:e!==E.Fragment}),cA={layout:{ProjectionNode:uh,MeasureLayout:Uf}},dA=L(L(L(L({},Z0),rv),JT),cA),mA=ub((e,t)=>Vb(e,t,dA,uA)),fh={name:"dc-connectors",private:!0,version:"0.1.0",type:"module",scripts:{dev:"vite",build:"vite build","build:connectors":"node ./scripts/build-connectors.js","build:mulesoft":"node ./scripts/build-mulesoft.js",lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",preview:"vite preview",commit:"git-cz"},dependencies:{"framer-motion":"^11.2.11",react:"^18.2.0","react-aria-components":"^1.2.1","react-dom":"^18.2.0","tailwindcss-animate":"^1.0.7","tailwindcss-react-aria-components":"^1.1.3"},devDependencies:{"@types/react":"^18.2.66","@types/react-dom":"^18.2.22","@typescript-eslint/eslint-plugin":"^7.2.0","@typescript-eslint/parser":"^7.2.0","@vitejs/plugin-react":"^4.2.1",autoprefixer:"^10.4.19",eslint:"^8.57.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-react-refresh":"^0.4.6",postcss:"^8.4.38","postcss-prefix-selector":"^1.16.1",tailwindcss:"^3.4.3",typescript:"^5.2.2",vite:"^5.2.0"},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}},pA={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.45,.14,.1,.97]}}},fA=fh.version,hA=`https://a.sfdcstatic.com/digital/@sfdc-www/open-blade-libs/${fh.name}/v${fA}`,yA=({item:e,index:t,isVisible:r,shouldAnimate:n,retroMode:a})=>z.jsxs(mA.div,{className:`card shadow-lg p-4 rounded-lg flex items-center ${a?"bg-black border-2 text-green-400 font-mono border-yellow-400":""}`,initial:"hidden",variants:pA,"data-index":t,animate:n?"visible":"hidden",children:[z.jsx("div",{className:`flex-none py-3 pr-4 ${a?"border-yellow-400":"border-gray-200"} border-r-2`,children:z.jsx("img",{role:"presentation",src:hA+e.iconUrl,alt:e.label,className:"w-10 h-10 align-middle"})}),z.jsxs("div",{className:"pl-4 flex-grow overflow-hidden items-center",children:[z.jsxs("div",{className:"flex-grow",children:[e.releaseLevel==="IN_DEV"&&z.jsx("div",{className:"px-2 py-1 bg-gray-800 rounded-xl border border-gray-800 justify-center items-center inline-flex mb-2",children:z.jsx("div",{className:"text-white text-[10px] font-bold leading-none tracking-tight",children:"Coming Soon"})}),e.releaseLevel==="BETA"&&z.jsx("div",{className:`px-2 py-1 rounded-xl border justify-center items-center inline-flex mb-2 ${a?"bg-fuchsia-500 text-white":"text-fuchsia-700 border-violet-50 bg-violet-50"}`,children:z.jsx("div",{className:" text-[10px] font-bold leading-none tracking-tight",children:"Beta"})})]}),z.jsx("h3",{className:`mb-2 font-bold overflow-hidden truncate ${a?"text-green-400":"text-sfnavy"}`,children:e.label}),z.jsxs("p",{className:`text-xs ${a?"text-green-400":"text-gray-800"}`,children:[e.ingressDescription.length>120?`${e.ingressDescription.substring(0,120)}...`:e.ingressDescription,e.releaseLevel==="MuleSoft"&&"Ingest data via MuleSoft’s Anypoint Exchange"]})]})]},t),gA=Wg.map(e=>R(L({},e),{name:e.label||"",features:e.label||[],featuresConfig:{IncrementalUpdate:{deleteSupport:"No"}},connectionAttributes:{},extractAttributes:{}})),bA=[...$g.filter(e=>e.releaseLevel!=="IN_DEV"&&e.releaseLevel!=="PILOT"&&e.name!=="OCI"&&e.name!=="TenantBillingUsageConnector"),...gA].sort((e,t)=>e.label.localeCompare(t.label));function vA(){const[e,t]=E.useState(""),[r,n]=E.useState(new Set),[a,s]=E.useState(new Set),[i,l]=E.useState(0),o=y=>{t(y.target.value),n(new Set)},u=bA.filter(y=>e?e==="GA"?y.releaseLevel==="GA"||y.releaseLevel==="MuleSoft":y.releaseLevel===e:!0);E.useEffect(()=>{l(u.length)},[u]);const c=E.useRef(new IntersectionObserver(y=>{const g=y.filter(b=>b.isIntersecting);if(g.length){const b=new Set(r),A=new Set(a);g.forEach(f=>{const p=Number(f.target.getAttribute("data-index"));b.add(p),A.add(p)}),n(b),s(A)}},{threshold:.5}));E.useEffect(()=>{const y=c.current;return document.querySelectorAll(".card").forEach(b=>{y.observe(b)}),()=>{y.disconnect()}},[u]);const m=new URLSearchParams(window.location.search).has("retroMode");return z.jsxs(z.Fragment,{children:[m&&z.jsx("style",{children:` .relative.marquee--blade.marquee--center { background: #000; } .marquee--blade .blade__description p, .marquee--blade .container .grid.grid_main .content__wrapper .marquee__blade-heading .headline { color: rgb(74 222 128); font-family: monospace; } a.cta_button[data-variant=primary] { background-color: yellow; color: black; border: 3px solid rgb(74 222 128); outline:none; } `}),z.jsx("div",{className:`${m?"bg-black text-green-400 py-10":""}`,children:z.jsx("div",{className:"container mx-auto lg:mt-0 md:mt-5 pt-0 min-h-screen ",children:z.jsxs("div",{className:"flex flex-col items-center min-h-screen text-gray-900 font-sans",children:[z.jsxs("div",{className:"flex space-x-4 mb-6",children:[z.jsx("label",{htmlFor:"filter",className:`mr-2 font-bold text-[18px]${m?"text-green-400":""}`,children:"Filter:"}),z.jsxs("select",{id:"filter",value:e,onChange:o,className:`border p-1 rounded ${m?"bg-black text-green-400 border-green-400":""}`,children:[z.jsx("option",{value:"",children:"All"}),z.jsx("option",{value:"BETA",children:"Native Connectors - Beta"}),z.jsx("option",{value:"GA",children:"Native Connectors - General Availability"})]})]}),m&&z.jsxs("div",{id:"connectorCounter",className:"mb-4 font-mono text-4xl text-green-600 bg-black p-4 rounded",children:[i," Data Sources"]}),!m&&z.jsxs("div",{id:"connectorCounter",className:" mb-4",children:[i," Data Sources"]}),z.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 p-4",children:u.map((y,g)=>z.jsx(yA,{index:g,item:y,isVisible:r.has(g)||a.has(g),shouldAnimate:r.has(g),"data-index":g,retroMode:m},g))})]})})})]})}Ys.createRoot(document.getElementById("wps-dc-integrator")).render(z.jsx(Nh.StrictMode,{children:z.jsx(vA,{})}))});