(function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var rA=Object.defineProperty,nA=Object.defineProperties;var aA=Object.getOwnPropertyDescriptors;var _s=Object.getOwnPropertySymbols;var ly=Object.prototype.hasOwnProperty,iy=Object.prototype.propertyIsEnumerable;var lu=Math.pow,sy=(K,ae,te)=>ae in K?rA(K,ae,{enumerable:!0,configurable:!0,writable:!0,value:te}):K[ae]=te,I=(K,ae)=>{for(var te in ae||(ae={}))ly.call(ae,te)&&sy(K,te,ae[te]);if(_s)for(var te of _s(ae))iy.call(ae,te)&&sy(K,te,ae[te]);return K},R=(K,ae)=>nA(K,aA(ae));var je=(K,ae)=>{var te={};for(var ze in K)ly.call(K,ze)&&ae.indexOf(ze)<0&&(te[ze]=K[ze]);if(K!=null&&_s)for(var ze of _s(K))ae.indexOf(ze)<0&&iy.call(K,ze)&&(te[ze]=K[ze]);return te};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ae={exports:{}},te={},ze={exports:{}},B={};/** * @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"),oy=Symbol.for("react.portal"),uy=Symbol.for("react.fragment"),cy=Symbol.for("react.strict_mode"),dy=Symbol.for("react.profiler"),my=Symbol.for("react.provider"),py=Symbol.for("react.context"),fy=Symbol.for("react.forward_ref"),yy=Symbol.for("react.suspense"),hy=Symbol.for("react.memo"),gy=Symbol.for("react.lazy"),iu=Symbol.iterator;function by(e){return e===null||typeof e!="object"?null:(e=iu&&e[iu]||e["@@iterator"],typeof e=="function"?e:null)}var ou={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uu=Object.assign,cu={};function Tr(e,t,r){this.props=e,this.context=t,this.refs=cu,this.updater=r||ou}Tr.prototype.isReactComponent={},Tr.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")},Tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function du(){}du.prototype=Tr.prototype;function Vs(e,t,r){this.props=e,this.context=t,this.refs=cu,this.updater=r||ou}var Zs=Vs.prototype=new du;Zs.constructor=Vs,uu(Zs,Tr.prototype),Zs.isPureReactComponent=!0;var mu=Array.isArray,pu=Object.prototype.hasOwnProperty,$s={current:null},fu={key:!0,ref:!0,__self:!0,__source:!0};function yu(e,t,r){var n,a={},s=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)pu.call(t,n)&&!fu.hasOwnProperty(n)&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1>>1,oe=D[J];if(0>>1;Ja(su,U))vra(Ms,su)?(D[J]=Ms,D[vr]=U,J=vr):(D[J]=su,D[br]=U,J=br);else if(vra(Ms,U))D[J]=Ms,D[vr]=U,J=vr;else break e}}return P}function a(D,P){var U=D.sortIndex-P.sortIndex;return U!==0?U:D.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,i=l.now();e.unstable_now=function(){return l.now()-i}}var o=[],u=[],c=1,d=null,m=3,h=!1,g=!1,b=!1,x=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 y(D){for(var P=r(u);P!==null;){if(P.callback===null)n(u);else if(P.startTime<=D)n(u),P.sortIndex=P.expirationTime,t(o,P);else break;P=r(u)}}function v(D){if(b=!1,y(D),!g)if(r(o)!==null)g=!0,qe(T);else{var P=r(u);P!==null&&gr(v,P.startTime-D)}}function T(D,P){g=!1,b&&(b=!1,f(C),C=-1),h=!0;var U=m;try{for(y(P),d=r(o);d!==null&&(!(d.expirationTime>P)||D&&!ie());){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),y(P)}else n(o);d=r(o)}if(d!==null)var Fs=!0;else{var br=r(u);br!==null&&gr(v,br.startTime-P),Fs=!1}return Fs}finally{d=null,m=U,h=!1}}var S=!1,L=null,C=-1,k=5,j=-1;function ie(){return!(e.unstable_now()-jD||125J?(D.sortIndex=U,t(u,D),r(o)===null&&D===r(u)&&(b?(f(C),C=-1):b=!0,gr(v,U-J))):(D.sortIndex=oe,t(o,D),g||h||(g=!0,qe(T))),D},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(D){var P=m;return function(){var U=m;m=P;try{return D.apply(this,arguments)}finally{m=U}}}})(Au),Tu.exports=Au;var jy=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 Ny=N,Pe=jy;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function xe(e,t,r,n,a,s,l){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=l}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new xe(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 xe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new xe(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 xe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new xe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ue[e]=new xe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ue[e]=new xe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ue[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qs=/[\-:]([a-z])/g;function Ys(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(Qs,Ys);ue[t]=new xe(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(Qs,Ys);ue[t]=new xe(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(Qs,Ys);ue[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)}),ue.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ue[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xs(e,t,r,n){var a=ue.hasOwnProperty(t)?ue[t]:null;(a!==null?a.type!==0:n||!(2i||a[l]!==s[i]){var o=` `+a[l].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}while(1<=l&&0<=i);break}}}finally{ll=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sn(e):""}function Oy(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=il(e.type,!1),e;case 11:return e=il(e.type.render,!1),e;case 1:return e=il(e.type,!0),e;default:return""}}function ol(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 xr:return"Portal";case el:return"Profiler";case Js:return"StrictMode";case rl:return"Suspense";case nl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lu:return(e.displayName||"Context")+".Consumer";case Iu:return(e._context.displayName||"Context")+".Provider";case tl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case al:return t=e.displayName||null,t!==null?t:ol(e.type)||"Memo";case xt:t=e._payload,e=e._init;try{return ol(e(t))}catch(r){}}return null}function Ry(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 ol(t);case 8:return t===Js?"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 Ct(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qy(e){var t=wu(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(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function da(e){e._valueTracker||(e._valueTracker=qy(e))}function ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=wu(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ma(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 ul(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 Nu(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ct(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&&Xs(e,"checked",t,!1)}function cl(e,t){Pu(e,t);var r=Ct(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")?dl(e,t.type,r):t.hasOwnProperty("defaultValue")&&dl(e,t.type,Ct(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uu(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 dl(e,t,r){(t!=="number"||ma(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ln=Array.isArray;function Sr(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=pa.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},zy=["Webkit","ms","Moz","O"];Object.keys(un).forEach(function(e){zy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),un[t]=un[e]})});function zu(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 Fu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=zu(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var Fy=$({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 fl(e,t){if(t){if(Fy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function yl(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 hl=null;function gl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,Ir=null,Lr=null;function Mu(e){if(e=Nn(e)){if(typeof bl!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Oa(t),bl(e.stateNode,e.type,t))}}function _u(e){Ir?Lr?Lr.push(e):Lr=[e]:Ir=e}function Vu(){if(Ir){var e=Ir,t=Lr;if(Lr=Ir=null,Mu(e),t)for(e=0;e>>=0,e===0?32:31-(Yy(e)/Xy|0)|0}var ba=64,va=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 Ta(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,s=e.pingedLanes,l=r&268435455;if(l!==0){var i=l&~a;i!==0?n=pn(i):(s&=l,s!==0&&(n=pn(s)))}else l=r&~a,l!==0?n=pn(l):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 rh(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=xn),gc=" ",bc=!1;function vc(e,t){switch(e){case"keyup":return jh.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 wr=!1;function Ph(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 Uh(e,t){if(wr)return e==="compositionend"||!Ol&&vc(e,t)?(e=dc(),Ia=jl=Et=null,wr=!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=Dc(r)}}function wc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jc(){for(var e=window,t=ma();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=ma(e.document)}return t}function zl(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 _h(e){var t=jc(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wc(r.ownerDocument.documentElement,r)){if(n!==null&&zl(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=Ec(r,s);var l=Ec(r,n);a&&l&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,jr=null,Fl=null,Ln=null,Ml=!1;function Nc(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ml||jr==null||jr!==ma(n)||(n=jr,"selectionStart"in n&&zl(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}),Ln&&In(Ln,n)||(Ln=n,n=Ua(Fl,"onSelect"),0kr||(e.current=Jl[kr],Jl[kr]=null,kr--)}function M(e,t){kr++,Jl[kr]=e.current,e.current=t}var Pt={},fe=Nt(Pt),Ie=Nt(!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 Le(e){return e=e.childContextTypes,e!=null}function Ra(){V(Ie),V(fe)}function Hc(e,t,r){if(fe.current!==Pt)throw Error(A(168));M(fe,t),M(Ie,r)}function Wc(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(A(108,Ry(e)||"Unknown",a));return $({},r,n)}function qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Jt=fe.current,M(fe,e),M(Ie,Ie.current),!0}function Gc(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=Wc(e,t,Jt),n.__reactInternalMemoizedMergedChildContext=e,V(Ie),V(fe),M(fe,e)):V(Ie),M(Ie,r)}var ct=null,za=!1,ei=!1;function Kc(e){ct===null?ct=[e]:ct.push(e)}function eg(e){za=!0,Kc(e)}function Ut(){if(!ei&&ct!==null){ei=!0;var e=0,t=q;try{var r=ct;for(q=1;e>=l,a-=l,dt=1<<32-Ge(t)+a|r<C?(k=L,L=null):k=L.sibling;var j=m(f,L,y[C],v);if(j===null){L===null&&(L=k);break}e&&L&&j.alternate===null&&t(f,L),p=s(j,p,C),S===null?T=j:S.sibling=j,S=j,L=k}if(C===y.length)return r(f,L),Z&&tr(f,C),T;if(L===null){for(;CC?(k=L,L=null):k=L.sibling;var ie=m(f,L,j.value,v);if(ie===null){L===null&&(L=k);break}e&&L&&ie.alternate===null&&t(f,L),p=s(ie,p,C),S===null?T=ie:S.sibling=ie,S=ie,L=k}if(j.done)return r(f,L),Z&&tr(f,C),T;if(L===null){for(;!j.done;C++,j=y.next())j=d(f,j.value,v),j!==null&&(p=s(j,p,C),S===null?T=j:S.sibling=j,S=j);return Z&&tr(f,C),T}for(L=n(f,L);!j.done;C++,j=y.next())j=h(L,f,C,j.value,v),j!==null&&(e&&j.alternate!==null&&L.delete(j.key===null?C:j.key),p=s(j,p,C),S===null?T=j:S.sibling=j,S=j);return e&&L.forEach(function(Kt){return t(f,Kt)}),Z&&tr(f,C),T}function x(f,p,y,v){if(typeof y=="object"&&y!==null&&y.type===Cr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ca:e:{for(var T=y.key,S=p;S!==null;){if(S.key===T){if(T=y.type,T===Cr){if(S.tag===7){r(f,S.sibling),p=a(S,y.props.children),p.return=f,f=p;break e}}else if(S.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===xt&&td(T)===S.type){r(f,S.sibling),p=a(S,y.props),p.ref=Pn(f,S,y),p.return=f,f=p;break e}r(f,S);break}else t(f,S);S=S.sibling}y.type===Cr?(p=ur(y.props.children,f.mode,v,y.key),p.return=f,f=p):(v=ps(y.type,y.key,y.props,null,f.mode,v),v.ref=Pn(f,p,y),v.return=f,f=v)}return l(f);case xr:e:{for(S=y.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(f,p.sibling),p=a(p,y.children||[]),p.return=f,f=p;break e}else{r(f,p);break}else t(f,p);p=p.sibling}p=Yi(y,f.mode,v),p.return=f,f=p}return l(f);case xt:return S=y._init,x(f,p,S(y._payload),v)}if(ln(y))return g(f,p,y,v);if(an(y))return b(f,p,y,v);Va(f,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(f,p.sibling),p=a(p,y),p.return=f,f=p):(r(f,p),p=Qi(y,f.mode,v),p.return=f,f=p),l(f)):r(f,p)}return x}var Fr=rd(!0),nd=rd(!1),Za=Nt(null),$a=null,Mr=null,li=null;function ii(){li=Mr=$a=null}function oi(e){var t=Za.current;V(Za),e._currentValue=t}function ui(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 _r(e,t){$a=e,li=Mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(De=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(li!==e)if(e={context:e,memoizedValue:t,next:null},Mr===null){if($a===null)throw Error(A(308));Mr=e,$a.dependencies={lanes:0,firstContext:e}}else Mr=Mr.next=e;return t}var rr=null;function ci(e){rr===null?rr=[e]:rr.push(e)}function ad(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,ci(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 Bt=!1;function di(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 kt(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,O&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,ci(n)):(t.next=a.next,a.next=t),n.interleaved=t,pt(e,r)}function Ha(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,Il(e,r)}}function ld(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 l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?a=s=l:s=s.next=l,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 Wa(e,t,r,n){var a=e.updateQueue;Bt=!1;var s=a.firstBaseUpdate,l=a.lastBaseUpdate,i=a.shared.pending;if(i!==null){a.shared.pending=null;var o=i,u=o.next;o.next=null,l===null?s=u:l.next=u,l=o;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==l&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=o))}if(s!==null){var d=a.baseState;l=0,c=u=o=null,i=s;do{var m=i.lane,h=i.eventTime;if((n&m)===m){c!==null&&(c=c.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,b=i;switch(m=t,h=r,b.tag){case 1:if(g=b.payload,typeof g=="function"){d=g.call(h,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(h,d,m):g,m==null)break e;d=$({},d,m);break e;case 2:Bt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[i]:m.push(i))}else h={eventTime:h,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=h,o=d):c=c.next=h,l|=m;if(i=i.next,i===null){if(i=a.shared.pending,i===null)break;m=i,i=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 l|=a.lane,a=a.next;while(a!==t)}else s===null&&(a.shared.lanes=0);sr|=l,e.lanes=l,e.memoizedState=d}}function id(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=hi.transition;hi.transition={};try{e(!1),t()}finally{q=r,hi.transition=n}}function Ld(){return Ve().memoizedState}function ag(e,t,r){var n=zt(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Dd(e))Ed(t,r);else if(r=ad(e,t,r,n),r!==null){var a=Se();et(r,e,n,a),wd(r,t,n)}}function sg(e,t,r){var n=zt(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Dd(e))Ed(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,i=s(l,r);if(a.hasEagerState=!0,a.eagerState=i,Ke(i,l)){var o=t.interleaved;o===null?(a.next=a,ci(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),wd(r,t,n))}}function Dd(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ed(e,t){On=Qa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function wd(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Il(e,r)}}var Ja={readContext:_e,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},lg={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,Ya(4194308,4,Ad.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ya(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=ag.bind(null,W,e),[n.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:hd,useDebugValue:Ci,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=hd(!1),t=e[0];return e=ng.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=W,a=at();if(Z){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),le===null)throw Error(A(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,zn(9,md.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=at(),t=le.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=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[rt]=t,e[jn]=n,Kd(e,t,!1,!1),t.stateNode=e;e:{switch(l=yl(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,Fn(s,!1),t.lanes=4194304)}else{if(!n)if(e=Ga(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Fn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Z)return he(t),null}else 2*Y()-s.renderingStartTime>Wr&&r!==1073741824&&(t.flags|=128,n=!0,Fn(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(r=s.last,r!==null?r.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,r=H.current,M(H,n?r&1|2:r&1),t):(he(t),null);case 22:case 23:return Wi(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Oe&1073741824&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function fg(e,t){switch(ri(t),t.tag){case 1:return Le(t.type)&&Ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),V(Ie),V(fe),yi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pi(t),null;case 13:if(V(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(H),null;case 4:return Vr(),null;case 10:return oi(t.type._context),null;case 22:case 23:return Wi(),null;case 24:return null;default:return null}}var ns=!1,ge=!1,yg=typeof WeakSet=="function"?WeakSet:Set,E=null;function $r(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 ki(e,t,r){try{r()}catch(n){Q(e,t,n)}}var Xd=!1;function hg(e,t){if(Wl=Ca,e=jc(),zl(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 l=0,i=-1,o=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var h;d!==r||a!==0&&d.nodeType!==3||(i=l+a),d!==s||n!==0&&d.nodeType!==3||(o=l+n),d.nodeType===3&&(l+=d.nodeValue.length),(h=d.firstChild)!==null;)m=d,d=h;for(;;){if(d===e)break t;if(m===r&&++u===a&&(i=l),m===s&&++c===n&&(o=l),(h=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=h}r=i===-1||o===-1?null:{start:i,end:o}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gl={focusedElem:e,selectionRange:r},Ca=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;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,x=g.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?b:Ye(t.type,b),x);f.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(v){Q(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return g=Xd,Xd=!1,g}function Mn(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&&ki(t,r,s)}a=a.next}while(a!==n)}}function as(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 Oi(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[Xl],delete t[Xh],delete t[Jh])),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 Ri(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=ka));else if(n!==4&&(e=e.child,e!==null))for(Ri(e,t,r),e=e.sibling;e!==null;)Ri(e,t,r),e=e.sibling}function qi(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(qi(e,t,r),e=e.sibling;e!==null;)qi(e,t,r),e=e.sibling}var ce=null,Xe=!1;function Ot(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(ga,r)}catch(i){}switch(r.tag){case 5:ge||$r(r,t);case 6:var n=ce,a=Xe;ce=null,Ot(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?Yl(e.parentNode,r):e.nodeType===1&&Yl(e,r),vn(e)):Yl(ce,r.stateNode));break;case 4:n=ce,a=Xe,ce=r.stateNode.containerInfo,Xe=!0,Ot(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,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&ki(r,t,l),a=a.next}while(a!==n)}Ot(e,t,r);break;case 1:if(!ge&&($r(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(i){Q(r,t,i)}Ot(e,t,r);break;case 21:Ot(e,t,r);break;case 22:r.mode&1?(ge=(n=ge)||r.memoizedState!==null,Ot(e,t,r),ge=n):Ot(e,t,r);break;default:Ot(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 yg),t.forEach(function(n){var a=Ig.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=l),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*bg(n/1960))-n,10e?16:e,qt===null)var n=!1;else{if(e=qt,qt=null,us=0,O&6)throw Error(A(331));var a=O;for(O|=4,E=e.current;E!==null;){var s=E,l=s.child;if(E.flags&16){var i=s.deletions;if(i!==null){for(var o=0;oY()-Mi?ir(e,0):Fi|=r),we(e,t)}function hm(e,t){t===0&&(e.mode&1?(t=va,va<<=1,!(va&130023424)&&(va=4194304)):t=1);var r=Se();e=pt(e,t),e!==null&&(fn(e,t,r),we(e,r))}function Sg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),hm(e,r)}function Ig(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(A(314))}n!==null&&n.delete(t),hm(e,r)}var gm;gm=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)De=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return De=!1,mg(e,t,r);De=!!(e.flags&131072)}else De=!1,Z&&t.flags&1048576&&Qc(t,Ma,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;rs(e,t),e=t.pendingProps;var a=Or(t,fe.current);_r(t,r),a=bi(null,t,n,e,a,r);var s=vi();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,Le(n)?(s=!0,qa(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,di(t),a.updater=es,t.stateNode=a,a._reactInternals=t,Ii(t,n,e,r),t=wi(null,t,n,!0,s,r)):(t.tag=0,Z&&s&&ti(t),Ce(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Dg(n),e=Ye(n,e),a){case 0:t=Ei(null,t,n,e,r);break e;case 1:t=Vd(null,t,n,e,r);break e;case 11:t=qd(null,t,n,e,r);break e;case 14:t=zd(null,t,n,Ye(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),Ei(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(A(387));n=t.pendingProps,s=t.memoizedState,a=s.element,sd(e,t),Wa(t,n,null,r);var l=t.memoizedState;if(n=l.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=Zr(Error(A(423)),t),t=$d(e,t,n,r,a);break e}else if(n!==a){a=Zr(Error(A(424)),t),t=$d(e,t,n,r,a);break e}else for(ke=jt(t.stateNode.containerInfo.firstChild),Be=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=yt(e,t,r);break e}Ce(e,t,n,r)}t=t.child}return t;case 5:return od(t),e===null&&ai(t),n=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,l=a.children,Kl(n,a)?l=null:s!==null&&Kl(n,s)&&(t.flags|=32),_d(e,t),Ce(e,t,l,r),t.child;case 6:return e===null&&ai(t),null;case 13:return Hd(e,t,r);case 4:return mi(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Fr(t,null,n,r):Ce(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),qd(e,t,n,a,r);case 7:return Ce(e,t,t.pendingProps,r),t.child;case 8:return Ce(e,t,t.pendingProps.children,r),t.child;case 12:return Ce(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,s=t.memoizedProps,l=a.value,M(Za,n._currentValue),n._currentValue=l,s!==null)if(Ke(s.value,l)){if(s.children===a.children&&!Ie.current){t=yt(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){l=s.child;for(var o=i.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),ui(s.return,r,t),i.lanes|=r;break}o=o.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(A(341));l.lanes|=r,i=l.alternate,i!==null&&(i.lanes|=r),ui(l,r,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Ce(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,_r(t,r),a=_e(a),n=n(a),t.flags|=1,Ce(e,t,n,r),t.child;case 14:return n=t.type,a=Ye(n,t.pendingProps),a=Ye(n.type,a),zd(e,t,n,a,r);case 15:return Fd(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ye(n,a),rs(e,t),t.tag=1,Le(n)?(e=!0,qa(t)):e=!1,_r(t,r),Nd(t,n,a),Ii(t,n,a,r),wi(null,t,n,!0,e,r);case 19:return Gd(e,t,r);case 22:return Md(e,t,r)}throw Error(A(156,t.tag))};function bm(e,t){return Yu(e,t)}function Lg(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 Lg(e,t,r,n)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dg(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tl)return 11;if(e===al)return 14}return 2}function Mt(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 ps(e,t,r,n,a,s){var l=2;if(n=e,typeof e=="function")Ki(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Cr:return ur(r.children,a,s,t);case Js:l=8,a|=8;break;case el:return e=$e(12,r,t,a|2),e.elementType=el,e.lanes=s,e;case rl:return e=$e(13,r,t,a),e.elementType=rl,e.lanes=s,e;case nl:return e=$e(19,r,t,a),e.elementType=nl,e.lanes=s,e;case Du:return fs(r,a,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iu:l=10;break e;case Lu:l=9;break e;case tl:l=11;break e;case al:l=14;break e;case xt:l=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=$e(l,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 fs(e,t,r,n){return e=$e(22,e,n,t),e.elementType=Du,e.lanes=r,e.stateNode={isHidden:!1},e}function Qi(e,t,r){return e=$e(6,e,null,t),e.lanes=r,e}function Yi(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 Eg(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=Sl(0),this.expirationTimes=Sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sl(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Xi(e,t,r,n,a,s,l,i,o){return e=new Eg(e,t,r,i,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},di(s),e}function wg(e,t,r){var n=3e,isStatic:!1,reducedMotion:"never"}),As=N.createContext({}),ro=N.createContext(null),no=typeof document!="undefined",Rg=no?N.useLayoutEffect:N.useEffect,Dm=N.createContext({strict:!1}),ao=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Em="data-"+ao("framerAppearId"),qg={skipAnimations:!1,useManualTiming:!1};class wm{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function zg(e){let t=new wm,r=new wm,n=0,a=!1,s=!1;const l=new WeakSet,i={schedule:(o,u=!1,c=!1)=>{const d=c&&a,m=d?t:r;return u&&l.add(o),m.add(o)&&d&&a&&(n=t.order.length),o},cancel:o=>{r.remove(o),l.delete(o)},process:o=>{if(a){s=!0;return}if(a=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[m]=zg(()=>r=!0),d),{}),l=d=>{s[d].process(a)},i=()=>{const d=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(d-a.timestamp,Fg),1),a.timestamp=d,a.isProcessing=!0,xs.forEach(l),a.isProcessing=!1,r&&t&&(n=!1,e(i))},o=()=>{r=!0,n=!0,a.isProcessing||e(i)};return{schedule:xs.reduce((d,m)=>{const h=s[m];return d[m]=(g,b=!1,x=!1)=>(r||o(),h.schedule(g,b,x)),d},{}),cancel:d=>xs.forEach(m=>s[m].cancel(d)),state:a,steps:s}}const{schedule:so,cancel:lA}=jm(queueMicrotask,!1);function Kr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Nm=N.createContext({});let Pm=!1;function Mg(e,t,r,n,a){const{visualElement:s}=N.useContext(As),l=N.useContext(Dm),i=N.useContext(ro),o=N.useContext(Lm).reducedMotion,u=N.useRef();n=n||l.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:s,props:r,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:o}));const c=u.current,d=N.useContext(Nm);c&&!c.projection&&a&&(c.type==="html"||c.type==="svg")&&Vg(u.current,r,a,d),N.useInsertionEffect(()=>{c&&c.update(r,i)});const m=N.useRef(!!(r[Em]&&!window.HandoffComplete));return Rg(()=>{c&&(c.updateFeatures(),so.render(c.render),m.current&&c.animationState&&c.animationState.animateChanges())}),N.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(m.current=!1,Pm||(Pm=!0,queueMicrotask(_g))))}),c}function _g(){window.HandoffComplete=!0}function Vg(e,t,r,n){const{layoutId:a,layout:s,drag:l,dragConstraints:i,layoutScroll:o,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Um(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||i&&Kr(i),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,layoutScroll:o,layoutRoot:u})}function Um(e){if(e)return e.options.allowProjection!==!1?e.projection:Um(e.parent)}function Zg(e,t,r){return N.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Kr(r)&&(r.current=n))},[t])}function Hn(e){return typeof e=="string"||Array.isArray(e)}function Cs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],io=["initial",...lo];function Ss(e){return Cs(e.animate)||io.some(t=>Hn(e[t]))}function Bm(e){return!!(Ss(e)||e.variants)}function $g(e,t){if(Ss(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Hn(r)?r:void 0,animate:Hn(n)?n:void 0}}return e.inherit!==!1?t:{}}function Hg(e){const{initial:t,animate:r}=$g(e,N.useContext(As));return N.useMemo(()=>({initial:t,animate:r}),[km(t),km(r)])}function km(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"]},Qr={};for(const e in Om)Qr[e]={isEnabled:t=>Om[e].some(r=>!!t[r])};function Wg(e){for(const t in e)Qr[t]=I(I({},Qr[t]),e[t])}const Rm=N.createContext({}),Gg=Symbol.for("motionComponentSymbol"),be=e=>e;let oo=be;function Kg({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&Wg(e);function s(i,o){let u;const c=R(I(I({},N.useContext(Lm)),i),{layoutId:Qg(i)}),{isStatic:d}=c,m=Hg(i),h=n(i,d);if(!d&&no){Yg();const g=Xg(c);u=g.MeasureLayout,m.visualElement=Mg(a,h,c,t,g.ProjectionNode)}return F.jsxs(As.Provider,{value:m,children:[u&&m.visualElement?F.jsx(u,I({visualElement:m.visualElement},c)):null,r(a,i,Zg(h,m.visualElement,o),h,d,m.visualElement)]})}const l=N.forwardRef(s);return l[Gg]=a,l}function Qg({layoutId:e}){const t=N.useContext(Rm).id;return t&&e!==void 0?t+"-"+e:e}function Yg(e,t){N.useContext(Dm).strict}function Xg(e){const{drag:t,layout:r}=Qr;if(!t&&!r)return{};const n=I(I({},t),r);return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function Jg(e){function t(n,a={}){return Kg(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 eb=["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 uo(e){return typeof e!="string"||e.includes("-")?!1:!!(eb.indexOf(e)>-1||/[A-Z]/u.test(e))}const Is={};function tb(e){Object.assign(Is,e)}const Wn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cr=new Set(Wn);function qm(e,{layout:t,layoutId:r}){return cr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Is[e]||e==="opacity")}const ve=e=>!!(e&&e.getVelocity),rb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nb=Wn.length;function ab(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,a){let s="";for(let l=0;lt=>typeof t=="string"&&t.startsWith(e),Fm=zm("--"),sb=zm("var(--"),co=e=>sb(e)?lb.test(e.split("/*")[0].trim()):!1,lb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ib=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_t=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},Gn=R(I({},Yr),{transform:e=>_t(0,1,e)}),Ls=R(I({},Yr),{default:1}),Kn=e=>Math.round(e*1e5)/1e5,mo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ob=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ub=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Qn(e){return typeof e=="string"}const Yn=e=>({test:t=>Qn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vt=Yn("deg"),lt=Yn("%"),w=Yn("px"),cb=Yn("vh"),db=Yn("vw"),Mm=R(I({},lt),{parse:e=>lt.parse(e)/100,transform:e=>lt.transform(e*100)}),_m=R(I({},Yr),{transform:Math.round}),Vm={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,size:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,rotate:Vt,rotateX:Vt,rotateY:Vt,rotateZ:Vt,scale:Ls,scaleX:Ls,scaleY:Ls,scaleZ:Ls,skew:Vt,skewX:Vt,skewY:Vt,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Gn,originX:Mm,originY:Mm,originZ:w,zIndex:_m,backgroundPositionX:w,backgroundPositionY:w,fillOpacity:Gn,strokeOpacity:Gn,numOctaves:_m};function po(e,t,r,n){const{style:a,vars:s,transform:l,transformOrigin:i}=e;let o=!1,u=!1,c=!0;for(const d in t){const m=t[d];if(Fm(d)){s[d]=m;continue}const h=Vm[d],g=ib(m,h);if(cr.has(d)){if(o=!0,l[d]=g,!c)continue;m!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,i[d]=g):a[d]=g}if(t.transform||(o||n?a.transform=ab(e.transform,r,c,n):a.transform&&(a.transform="none")),u){const{originX:d="50%",originY:m="50%",originZ:h=0}=i;a.transformOrigin=`${d} ${m} ${h}`}}const fo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zm(e,t,r){for(const n in t)!ve(t[n])&&!qm(n,r)&&(e[n]=t[n])}function mb({transformTemplate:e},t,r){return N.useMemo(()=>{const n=fo();return po(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function pb(e,t,r){const n=e.style||{},a={};return Zm(a,n,e),Object.assign(a,mb(e,t,r)),a}function fb(e,t,r){const n={},a=pb(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const yb=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 Ds(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||yb.has(e)}let $m=e=>!Ds(e);function hb(e){e&&($m=t=>t.startsWith("on")?!Ds(t):e(t))}try{hb(require("@emotion/is-prop-valid").default)}catch(e){}function gb(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||($m(a)||r===!0&&Ds(a)||!t&&!Ds(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function Hm(e,t,r){return typeof e=="string"?e:w.transform(t+r*e)}function bb(e,t,r){const n=Hm(t,e.x,e.width),a=Hm(r,e.y,e.height);return`${n} ${a}`}const vb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tb={offset:"strokeDashoffset",array:"strokeDasharray"};function Ab(e,t,r=1,n=0,a=!0){e.pathLength=1;const s=a?vb:Tb;e[s.offset]=w.transform(-n);const l=w.transform(t),i=w.transform(r);e[s.array]=`${l} ${i}`}function yo(e,h,c,d,m){var g=h,{attrX:t,attrY:r,attrScale:n,originX:a,originY:s,pathLength:l,pathSpacing:i=1,pathOffset:o=0}=g,u=je(g,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(po(e,u,c,m),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:x,dimensions:f}=e;b.transform&&(f&&(x.transform=b.transform),delete b.transform),f&&(a!==void 0||s!==void 0||x.transform)&&(x.transformOrigin=bb(f,a!==void 0?a:.5,s!==void 0?s:.5)),t!==void 0&&(b.x=t),r!==void 0&&(b.y=r),n!==void 0&&(b.scale=n),l!==void 0&&Ab(b,l,i,o,!1)}const Wm=()=>R(I({},fo()),{attrs:{}}),ho=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xb(e,t,r,n){const a=N.useMemo(()=>{const s=Wm();return yo(s,t,{enableHardwareAcceleration:!1},ho(n),e.transformTemplate),R(I({},s.attrs),{style:I({},s.style)})},[t]);if(e.style){const s={};Zm(s,e.style,e),a.style=I(I({},s),a.style)}return a}function Cb(e=!1){return(r,n,a,{latestValues:s},l)=>{const o=(uo(r)?xb:fb)(n,s,l,r),u=gb(n,typeof r=="string",e),c=r!==N.Fragment?R(I(I({},u),o),{ref:a}):{},{children:d}=n,m=N.useMemo(()=>ve(d)?d.get():d,[d]);return N.createElement(r,R(I({},c),{children:m}))}}function Gm(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 Km=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 Qm(e,t,r,n){Gm(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(Km.has(a)?a:ao(a),t.attrs[a])}function go(e,t,r){var n;const{style:a}=e,s={};for(const l in a)(ve(a[l])||t.style&&ve(t.style[l])||qm(l,e)||((n=r==null?void 0:r.getValue(l))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(s[l]=a[l]);return s}function Ym(e,t,r){const n=go(e,t,r);for(const a in e)if(ve(e[a])||ve(t[a])){const s=Wn.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[s]=e[a]}return n}function Xm(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function bo(e,t,r,n){if(typeof t=="function"){const[a,s]=Xm(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]=Xm(n);t=t(r!==void 0?r:e.custom,a,s)}return t}function Sb(e){const t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}const vo=e=>Array.isArray(e),Ib=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Lb=e=>vo(e)?e[e.length-1]||0:e;function Es(e){const t=ve(e)?e.get():e;return Ib(t)?t.toValue():t}function Db({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,a,s){const l={latestValues:Eb(n,a,s,e),renderState:t()};return r&&(l.mount=i=>r(n,i,l)),l}const Jm=e=>(t,r)=>{const n=N.useContext(As),a=N.useContext(ro),s=()=>Db(e,t,n,a);return r?s():Sb(s)};function Eb(e,t,r,n){const a={},s=n(e,{});for(const m in s)a[m]=Es(s[m]);let{initial:l,animate:i}=e;const o=Ss(e),u=Bm(e);t&&u&&!o&&e.inherit!==!1&&(l===void 0&&(l=t.initial),i===void 0&&(i=t.animate));let c=r?r.initial===!1:!1;c=c||l===!1;const d=c?i:l;return d&&typeof d!="boolean"&&!Cs(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=bo(e,h);if(!g)return;const p=g,{transitionEnd:b,transition:x}=p,f=je(p,["transitionEnd","transition"]);for(const y in f){let v=f[y];if(Array.isArray(v)){const T=c?v.length-1:0;v=v[T]}v!==null&&(a[y]=v)}for(const y in b)a[y]=b[y]}),a}const{schedule:z,cancel:gt,state:me,steps:To}=jm(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:be,!0),wb={useVisualState:Jm({scrapeMotionValuesFromProps:Ym,createRenderState:Wm,onMount:(e,t,{renderState:r,latestValues:n})=>{z.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(a){r.dimensions={x:0,y:0,width:0,height:0}}}),z.render(()=>{yo(r,n,{enableHardwareAcceleration:!1},ho(t.tagName),e.transformTemplate),Qm(t,r)})}})},jb={useVisualState:Jm({scrapeMotionValuesFromProps:go,createRenderState:fo})};function Nb(e,{forwardMotionProps:t=!1},r,n){const a=uo(e)?wb:jb;return R(I({},a),{preloadedFeatures:r,useRender:Cb(t),createVisualElement:n,Component:e})}function bt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const ep=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ws(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Pb=e=>t=>ep(t)&&e(t,ws(t));function vt(e,t,r,n){return bt(e,t,Pb(r),n)}const Ub=(e,t)=>r=>t(e(r)),Tt=(...e)=>e.reduce(Ub);function tp(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const rp=tp("dragHorizontal"),np=tp("dragVertical");function ap(e){let t=!1;if(e==="y")t=np();else if(e==="x")t=rp();else{const r=rp(),n=np();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function sp(){const e=ap(!0);return e?(e(),!1):!0}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function lp(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(s,l)=>{if(s.pointerType==="touch"||sp())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const o=i[n];o&&z.postRender(()=>o(s,l))};return vt(e.current,r,a,{passive:!e.getProps()[n]})}class Bb extends Zt{mount(){this.unmount=Tt(lp(this.node,!0),lp(this.node,!1))}unmount(){}}class kb extends Zt{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 ip=(e,t)=>t?e===t?!0:ip(e,t.parentElement):!1;function Ao(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ws(r))}class Ob extends Zt{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",(i,o)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),m=!d&&!ip(this.node.current,i.target)?c:u;m&&z.update(()=>m(i,o))},{passive:!(n.onTap||n.onPointerUp)}),l=vt(window,"pointercancel",(i,o)=>this.cancelPress(i,o),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Tt(s,l),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const l=i=>{i.key!=="Enter"||!this.checkPressEnd()||Ao("up",(o,u)=>{const{onTap:c}=this.node.getProps();c&&z.postRender(()=>c(o,u))})};this.removeEndListeners(),this.removeEndListeners=bt(this.node.current,"keyup",l),Ao("down",(i,o)=>{this.startPress(i,o)})},r=bt(this.node.current,"keydown",t),n=()=>{this.isPressing&&Ao("cancel",(s,l)=>this.cancelPress(s,l))},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&&z.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!sp()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&z.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 xo=new WeakMap,Co=new WeakMap,Rb=e=>{const t=xo.get(e.target);t&&t(e)},qb=e=>{e.forEach(Rb)};function zb(r){var n=r,{root:e}=n,t=je(n,["root"]);const a=e||document;Co.has(a)||Co.set(a,{});const s=Co.get(a),l=JSON.stringify(t);return s[l]||(s[l]=new IntersectionObserver(qb,I({root:e},t))),s[l]}function Fb(e,t,r){const n=zb(t);return xo.set(e,r),n.observe(e),()=>{xo.delete(e),n.unobserve(e)}}const Mb={some:0,all:1};class _b extends Zt{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,l={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:Mb[a]},i=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 Fb(this.node.current,l,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Vb(t,r))&&this.startObserver()}unmount(){}}function Vb({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Zb={inView:{Feature:_b},tap:{Feature:Ob},focus:{Feature:kb},hover:{Feature:Bb}};function op(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,$b={type:"spring",stiffness:500,damping:25,restSpeed:10},Hb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wb={type:"keyframes",duration:.8},Gb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kb=(e,{keyframes:t})=>t.length>2?Wb:cr.has(e)?e.startsWith("scale")?Hb(t[1]):$b:Gb;function Qb(d){var m=d,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:i,from:o,elapsed:u}=m,c=je(m,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}function So(e,t){return e[t]||e.default||e}const Yb=e=>e!==null;function Ns(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(Yb),s=t&&r!=="loop"&&t%2===1?0:a.length-1;return!s||n===void 0?a[s]:n}let Ps;function Xb(){Ps=void 0}const Ht={now:()=>(Ps===void 0&&Ht.set(me.isProcessing||qg.useManualTiming?me.timestamp:performance.now()),Ps),set:e=>{Ps=e,queueMicrotask(Xb)}},up=e=>/^0[^.\s]+$/u.test(e);function Jb(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||up(e):!0}const cp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ev=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tv(e){const t=ev.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r!=null?r:n}`,a]}function dp(e,t,r=1){const[n,a]=tv(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const l=s.trim();return cp(l)?parseFloat(l):l}return co(a)?dp(a,t,r+1):a}const rv=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),mp=e=>e===Yr||e===w,pp=(e,t)=>parseFloat(e.split(", ")[t]),fp=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return pp(a[1],t);{const s=n.match(/^matrix\((.+)\)$/u);return s?pp(s[1],e):0}},nv=new Set(["x","y","z"]),av=Wn.filter(e=>!nv.has(e));function sv(e){const t=[];return av.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Xr={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:fp(4,13),y:fp(5,14)};Xr.translateX=Xr.x,Xr.translateY=Xr.y;const yp=e=>t=>t.test(e),hp=[Yr,w,lt,Vt,db,cb,{test:e=>e==="auto",parse:e=>e}],gp=e=>hp.find(yp(e)),dr=new Set;let Io=!1,Lo=!1;function bp(){if(Lo){const e=Array.from(dr).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=sv(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,l])=>{var i;(i=n.getValue(s))===null||i===void 0||i.set(l)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Lo=!1,Io=!1,dr.forEach(e=>e.complete()),dr.clear()}function vp(){dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Lo=!0)})}function lv(){vp(),bp()}class Do{constructor(t,r,n,a,s,l=!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=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dr.add(this),Io||(Io=!0,z.read(vp),z.resolveKeyframes(bp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let s=0;sr=>!!(Qn(r)&&ub.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Tp=(e,t,r)=>n=>{if(!Qn(n))return n;const[a,s,l,i]=n.match(mo);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(l),alpha:i!==void 0?parseFloat(i):1}},iv=e=>_t(0,255,e),wo=R(I({},Yr),{transform:e=>Math.round(iv(e))}),mr={test:Eo("rgb","red"),parse:Tp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+wo.transform(e)+", "+wo.transform(t)+", "+wo.transform(r)+", "+Kn(Gn.transform(n))+")"};function ov(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 jo={test:Eo("#"),parse:ov,transform:mr.transform},Jr={test:Eo("hsl","hue"),parse:Tp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lt.transform(Kn(t))+", "+lt.transform(Kn(r))+", "+Kn(Gn.transform(n))+")"},Te={test:e=>mr.test(e)||jo.test(e)||Jr.test(e),parse:e=>mr.test(e)?mr.parse(e):Jr.test(e)?Jr.parse(e):jo.parse(e),transform:e=>Qn(e)?e:e.hasOwnProperty("red")?mr.transform(e):Jr.transform(e)};function uv(e){var t,r;return isNaN(e)&&Qn(e)&&(((t=e.match(mo))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(ob))===null||r===void 0?void 0:r.length)||0)>0}const Ap="number",xp="color",cv="var",dv="var(",Cp="${}",mv=/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 Xn(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let s=0;const i=t.replace(mv,o=>(Te.test(o)?(n.color.push(s),a.push(xp),r.push(Te.parse(o))):o.startsWith(dv)?(n.var.push(s),a.push(cv),r.push(o)):(n.number.push(s),a.push(Ap),r.push(parseFloat(o))),++s,Cp)).split(Cp);return{values:r,split:i,indexes:n,types:a}}function Sp(e){return Xn(e).values}function Ip(e){const{split:t,types:r}=Xn(e),n=t.length;return a=>{let s="";for(let l=0;ltypeof e=="number"?0:e;function fv(e){const t=Sp(e);return Ip(e)(t.map(pv))}const Wt={test:uv,parse:Sp,createTransformer:Ip,getAnimatableNone:fv},yv=new Set(["brightness","contrast","saturate","opacity"]);function hv(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(mo)||[];if(!n)return e;const a=r.replace(n,"");let s=yv.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+a+")"}const gv=/\b([a-z-]*)\(.*?\)/gu,No=R(I({},Wt),{getAnimatableNone:e=>{const t=e.match(gv);return t?t.map(hv).join(" "):e}}),bv=R(I({},Vm),{color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:No,WebkitFilter:No}),Po=e=>bv[e];function Lp(e,t){let r=Po(e);return r!==No&&(r=Wt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const vv=new Set(["auto","none","0"]);function Tv(e,t,r){let n=0,a;for(;n{r.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function Ep(e){let t;return()=>(t===void 0&&(t=e()),t)}const wp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wt.test(e)||e==="0")&&!e.startsWith("url("));function Av(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 Cv=5;function Pp(e,t,r){const n=Math.max(t-Cv,0);return Np(r-e(n),t-n)}const Uo=.001,Sv=.01,Iv=10,Lv=.05,Dv=1;function Ev({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,s,l=1-t;l=_t(Lv,Dv,l),e=_t(Sv,Iv,At(e)),l<1?(a=u=>{const c=u*l,d=c*e,m=c-r,h=Bo(u,l),g=Math.exp(-d);return Uo-m/h*g},s=u=>{const d=u*l*e,m=d*r+r,h=Math.pow(l,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=Bo(Math.pow(u,2),l);return(-a(u)+Uo>0?-1:1)*((m-h)*g)/b}):(a=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Uo+c*d},s=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const i=5/e,o=jv(a,s,i);if(e=$t(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(o,2)*n;return{stiffness:u,damping:l*2*Math.sqrt(n*u),duration:e}}}const wv=12;function jv(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function Uv(e){let t=I({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Up(e,Pv)&&Up(e,Nv)){const r=Ev(e);t=R(I(I({},t),r),{mass:1}),t.isResolvedFromDuration=!0}return t}function Bp(a){var s=a,{keyframes:e,restDelta:t,restSpeed:r}=s,n=je(s,["keyframes","restDelta","restSpeed"]);const l=e[0],i=e[e.length-1],o={done:!1,value:l},{stiffness:u,damping:c,mass:d,duration:m,velocity:h,isResolvedFromDuration:g}=Uv(R(I({},n),{velocity:-At(n.velocity||0)})),b=h||0,x=c/(2*Math.sqrt(u*d)),f=i-l,p=At(Math.sqrt(u/d)),y=Math.abs(f)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let v;if(x<1){const T=Bo(p,x);v=S=>{const L=Math.exp(-x*p*S);return i-L*((b+x*p*f)/T*Math.sin(T*S)+f*Math.cos(T*S))}}else if(x===1)v=T=>i-Math.exp(-p*T)*(f+(b+p*f)*T);else{const T=p*Math.sqrt(x*x-1);v=S=>{const L=Math.exp(-x*p*S),C=Math.min(T*S,300);return i-L*((b+x*p*f)*Math.sinh(C)+T*f*Math.cosh(C))/T}}return{calculatedDuration:g&&m||null,next:T=>{const S=v(T);if(g)o.done=T>=m;else{let L=b;T!==0&&(x<1?L=Pp(v,T,S):L=0);const C=Math.abs(L)<=r,k=Math.abs(i-S)<=t;o.done=C&&k}return o.value=o.done?i:S,o}}}function kp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:i,max:o,restDelta:u=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},h=C=>i!==void 0&&Co,g=C=>i===void 0?o:o===void 0||Math.abs(i-C)-b*Math.exp(-C/n),y=C=>f+p(C),v=C=>{const k=p(C),j=y(C);m.done=Math.abs(k)<=u,m.value=m.done?f:j};let T,S;const L=C=>{h(m.value)&&(T=C,S=Bp({keyframes:[m.value,g(m.value)],velocity:Pp(y,C,m.value),damping:a,stiffness:s,restDelta:u,restSpeed:c}))};return L(0),{calculatedDuration:null,next:C=>{let k=!1;return!S&&T===void 0&&(k=!0,v(C),L(C)),T!==void 0&&C>=T?S.next(C-T):(!k&&v(C),m)}}}const Op=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Bv=1e-7,kv=12;function Ov(e,t,r,n,a){let s,l,i=0;do l=t+(r-t)/2,s=Op(l,n,a)-e,s>0?r=l:t=l;while(Math.abs(s)>Bv&&++iOv(s,0,1,e,r);return s=>s===0||s===1?s:Op(a(s),t,n)}const Rv=Jn(.42,0,1,1),qv=Jn(0,0,.58,1),Rp=Jn(.42,0,.58,1),zv=e=>Array.isArray(e)&&typeof e[0]!="number",qp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zp=e=>t=>1-e(1-t),ko=e=>1-Math.sin(Math.acos(e)),Fp=zp(ko),Fv=qp(ko),Mp=Jn(.33,1.53,.69,.99),Oo=zp(Mp),Mv=qp(Oo),_p={linear:be,easeIn:Rv,easeInOut:Rp,easeOut:qv,circIn:ko,circInOut:Fv,circOut:Fp,backIn:Oo,backInOut:Mv,backOut:Mp,anticipate:e=>(e*=2)<1?.5*Oo(e):.5*(2-Math.pow(2,-10*(e-1)))},Vp=e=>{if(Array.isArray(e)){oo(e.length===4);const[t,r,n,a]=e;return Jn(t,r,n,a)}else if(typeof e=="string")return oo(_p[e]!==void 0),_p[e];return e},ea=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},G=(e,t,r)=>e+(t-e)*r;function Ro(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 _v({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,s=0,l=0;if(!t)a=s=l=r;else{const i=r<.5?r*(1+t):r+t-r*t,o=2*r-i;a=Ro(o,i,e+1/3),s=Ro(o,i,e),l=Ro(o,i,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:n}}function Us(e,t){return r=>r>0?t:e}const qo=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},Vv=[jo,mr,Jr],Zv=e=>Vv.find(t=>t.test(e));function Zp(e){const t=Zv(e);if(!t)return!1;let r=t.parse(e);return t===Jr&&(r=_v(r)),r}const $p=(e,t)=>{const r=Zp(e),n=Zp(t);if(!r||!n)return Us(e,t);const a=I({},r);return s=>(a.red=qo(r.red,n.red,s),a.green=qo(r.green,n.green,s),a.blue=qo(r.blue,n.blue,s),a.alpha=G(r.alpha,n.alpha,s),mr.transform(a))},zo=new Set(["none","hidden"]);function $v(e,t){return zo.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Hv(e,t){return r=>G(e,t,r)}function Fo(e){return typeof e=="number"?Hv:typeof e=="string"?co(e)?Us:Te.test(e)?$p:Kv:Array.isArray(e)?Hp:typeof e=="object"?Te.test(e)?$p:Wv:Us}function Hp(e,t){const r=[...e],n=r.length,a=e.map((s,l)=>Fo(s)(s,t[l]));return s=>{for(let l=0;l{for(const s in n)r[s]=n[s](a);return r}}function Gv(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let s=0;s{const r=Wt.createTransformer(t),n=Xn(e),a=Xn(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?zo.has(e)&&!a.values.length||zo.has(t)&&!n.values.length?$v(e,t):Tt(Hp(Gv(n,a),a.values),r):Us(e,t)};function Wp(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?G(e,t,r):Fo(e)(e,t)}function Qv(e,t,r){const n=[],a=r||Wp,s=e.length-1;for(let l=0;lt[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Qv(t,n,a),i=l.length,o=u=>{let c=0;if(i>1)for(;co(_t(e[0],e[s-1],u)):o}function Xv(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=ea(0,t,n);e.push(G(r,1,a))}}function Jv(e){const t=[0];return Xv(t,e.length-1),t}function e0(e,t){return e.map(r=>r*t)}function t0(e,t){return e.map(()=>t||Rp).splice(0,e.length-1)}function Bs({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=zv(n)?n.map(Vp):Vp(n),s={done:!1,value:t[0]},l=e0(r&&r.length===t.length?r:Jv(t),e),i=Yv(l,t,{ease:Array.isArray(a)?a:t0(t,a)});return{calculatedDuration:e,next:o=>(s.value=i(o),s.done=o>=e,s)}}const Gp=2e4;function r0(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Gp?1/0:t}const n0=e=>{const t=({timestamp:r})=>e(r);return{start:()=>z.update(t,!0),stop:()=>gt(t),now:()=>me.isProcessing?me.timestamp:Ht.now()}},a0={decay:kp,inertia:kp,tween:Bs,keyframes:Bs,spring:Bp},s0=e=>e/100;class Mo extends jp{constructor(n){var a=n,{KeyframeResolver:t=Do}=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:l,keyframes:i}=this.options,o=(u,c)=>this.onKeyframesResolved(u,c);s&&l&&l.owner?this.resolver=l.owner.resolveKeyframes(i,o,s,l):this.resolver=new t(i,o,s,l),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=this.options,i=a0[r]||Bs;let o,u;i!==Bs&&typeof t[0]!="number"&&(o=Tt(s0,Wp(t[0],t[1])),t=[0,100]);const c=i(R(I({},this.options),{keyframes:t}));s==="mirror"&&(u=i(R(I({},this.options),{keyframes:[...t].reverse(),velocity:-l}))),c.calculatedDuration===null&&(c.calculatedDuration=r0(c));const{calculatedDuration:d}=c,m=d+a,h=m*(n+1)-a;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:o,calculatedDuration:d,resolvedDuration:m,totalDuration:h}}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:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:a,generator:s,mirroredGenerator:l,mapPercentToKeyframes:i,keyframes:o,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=n;if(this.startTime===null)return s.next(0);const{delay:m,repeat:h,repeatType:g,repeatDelay:b,onUpdate:x}=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 y=this.currentTime,v=s;if(h){const C=Math.min(this.currentTime,c)/d;let k=Math.floor(C),j=C%1;!j&&C>=1&&(j=1),j===1&&k--,k=Math.min(k,h+1),!!(k%2)&&(g==="reverse"?(j=1-j,b&&(j-=b/d)):g==="mirror"&&(v=l)),y=_t(0,1,j)*d}const T=p?{done:!1,value:o[0]}:v.next(y);i&&(T.value=i(T.value));let{done:S}=T;!p&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return L&&a!==void 0&&(T.value=Ns(o,this.options,a)),x&&x(T.value),L&&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=$t(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=n0,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 Kp=e=>Array.isArray(e)&&typeof e[0]=="number";function Qp(e){return!!(!e||typeof e=="string"&&e in _o||Kp(e)||Array.isArray(e)&&e.every(Qp))}const ta=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,_o={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ta([0,.65,.55,1]),circOut:ta([.55,0,1,.45]),backIn:ta([.31,.01,.66,-.59]),backOut:ta([.33,1.53,.69,.99])};function l0(e){return Yp(e)||_o.easeOut}function Yp(e){if(e)return Kp(e)?ta(e):Array.isArray(e)?e.map(l0):_o[e]}function i0(e,t,r,{delay:n=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:i,times:o}={}){const u={[t]:r};o&&(u.offset=o);const c=Yp(i);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:l==="reverse"?"alternate":"normal"})}const o0=Ep(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),u0=new Set(["opacity","clipPath","filter","transform"]),ks=10,c0=2e4;function d0(e){return e.type==="spring"||e.name==="backgroundColor"||!Qp(e.ease)}function m0(e,t){const r=new Mo(R(I({},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,l),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:s,ease:l,type:i,motionValue:o,name:u}=this.options;if(!(!((n=o.owner)===null||n===void 0)&&n.current))return!1;if(d0(this.options)){const d=this.options,{onComplete:m,onUpdate:h,motionValue:g}=d,b=je(d,["onComplete","onUpdate","motionValue"]),x=m0(t,b);t=x.keyframes,t.length===1&&(t[1]=t[0]),a=x.duration,s=x.times,l=x.ease,i="keyframes"}const c=i0(o.owner.current,u,t,R(I({},this.options),{duration:a,times:s,ease:l}));return c.startTime=Ht.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:m}=this.options;o.set(Ns(t,this.options,r)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:a,times:s,type:i,ease:l,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=$t(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;const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:s,ease:l,times:i}=t;if(!(r.playState==="idle"||r.playState==="finished")){if(this.time){const o=this.options,{motionValue:u,onUpdate:c,onComplete:d}=o,m=je(o,["motionValue","onUpdate","onComplete"]),h=new Mo(R(I({},m),{keyframes:n,duration:a,type:s,ease:l,times:i,isGenerator:!0})),g=$t(this.time);u.setWithVelocity(h.sample(g-ks).value,h.sample(g).value,ks)}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:l,type:i}=t;return o0()&&n&&u0.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&s!=="mirror"&&l!==0&&i!=="inertia"}}function p0(e,t){let r;const n=()=>{const{currentTime:a}=t,l=(a===null?0:a.value)/100;r!==l&&e(l),r=l};return z.update(n,!0),()=>gt(n)}const f0=Ep(()=>window.ScrollTimeline!==void 0);class y0{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(f0()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),p0(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 Vo=(e,t,r,n={},a,s)=>l=>{const i=So(n,e)||{},o=i.delay||n.delay||0;let{elapsed:u=0}=n;u=u-$t(o);let c=R(I({keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity()},i),{delay:-u,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{l(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:s?void 0:a});Qb(i)||(c=I(I({},c),Kb(e,c))),c.duration&&(c.duration=$t(c.duration)),c.repeatDelay&&(c.repeatDelay=$t(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const m=Ns(c.keyframes,i);if(m!==void 0)return z.update(()=>{c.onUpdate(m),c.onComplete()}),new y0([])}return!s&&Xp.supports(c)?new Xp(c):new Mo(c)};function Os(e){return!!(ve(e)&&e.add)}function Zo(e,t){e.indexOf(t)===-1&&e.push(t)}function $o(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Ho{constructor(){this.subscriptions=[]}add(t){return Zo(this.subscriptions,t),()=>$o(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 g0{constructor(t,r={}){this.version="11.2.11",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=h0(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 Ho);const n=this.events[t].add(r);return t==="change"?()=>{n(),z.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>Jp)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Jp);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 ra(e,t){return new g0(e,t)}function b0(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ra(r))}function v0(e,t){let l=js(e,t)||{},{transitionEnd:n={},transition:a={}}=l,s=je(l,["transitionEnd","transition"]);s=I(I({},s),n);for(const i in s){const o=Lb(s[i]);b0(e,i,o)}}function ef(e){return e.getProps()[Em]}function T0({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function tf(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var s;let m=t,{transition:l=e.getDefaultTransition(),transitionEnd:i}=m,o=je(m,["transition","transitionEnd"]);const u=e.getValue("willChange");n&&(l=n);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const h in o){const g=e.getValue(h,(s=e.latestValues[h])!==null&&s!==void 0?s:null),b=o[h];if(b===void 0||d&&T0(d,h))continue;const x=I({delay:r,elapsed:0},So(l||{},h));let f=!1;if(window.HandoffAppearAnimations){const y=ef(e);if(y){const v=window.HandoffAppearAnimations(y,h,g,z);v!==null&&(x.elapsed=v,f=!0)}}g.start(Vo(h,g,b,e.shouldReduceMotion&&cr.has(h)?{type:!1}:x,e,f));const p=g.animation;p&&(Os(u)&&(u.add(h),p.then(()=>u.remove(h))),c.push(p))}return i&&Promise.all(c).then(()=>{z.update(()=>{i&&v0(e,i)})}),c}function Wo(e,t,r={}){var n;const a=js(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 l=a?()=>Promise.all(tf(e,a,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:m}=s;return A0(e,t,c+u,d,m,r)}:()=>Promise.resolve(),{when:o}=s;if(o){const[u,c]=o==="beforeChildren"?[l,i]:[i,l];return u().then(()=>c())}else return Promise.all([l(),i(r.delay)])}function A0(e,t,r=0,n=0,a=1,s){const l=[],i=(e.variantChildren.size-1)*n,o=a===1?(u=0)=>u*n:(u=0)=>i-u*n;return Array.from(e.variantChildren).sort(x0).forEach((u,c)=>{u.notify("AnimationStart",t),l.push(Wo(u,t,R(I({},s),{delay:r+o(c)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(l)}function x0(e,t){return e.sortNodePosition(t)}function C0(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(s=>Wo(e,s,r));n=Promise.all(a)}else if(typeof t=="string")n=Wo(e,t,r);else{const a=typeof t=="function"?js(e,t,r.custom):t;n=Promise.all(tf(e,a,r))}return n.then(()=>{z.postRender(()=>{e.notify("AnimationComplete",t)})})}const S0=[...lo].reverse(),I0=lo.length;function L0(e){return t=>Promise.all(t.map(({animation:r,options:n})=>C0(e,r,n)))}function D0(e){let t=L0(e),r=rf(),n=!0;const a=o=>(u,c)=>{var d;const m=js(e,c,o==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(m){const h=m,{transition:g,transitionEnd:b}=h,x=je(h,["transition","transitionEnd"]);u=I(I(I({},u),x),b)}return u};function s(o){t=o(e)}function l(o){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],m=new Set;let h={},g=1/0;for(let x=0;xg&&v,k=!1;const j=Array.isArray(y)?y:[y];let ie=j.reduce(a(f),{});T===!1&&(ie={});const{prevResolvedValues:Kt={}}=p,hr=I(I({},Kt),ie),la=pe=>{C=!0,m.has(pe)&&(k=!0,m.delete(pe)),p.needsAnimating[pe]=!0;const qe=e.getValue(pe);qe&&(qe.liveStyle=!1)};for(const pe in hr){const qe=ie[pe],gr=Kt[pe];if(h.hasOwnProperty(pe))continue;let D=!1;vo(qe)&&vo(gr)?D=!op(qe,gr):D=qe!==gr,D?qe!=null?la(pe):m.add(pe):qe!==void 0&&m.has(pe)?la(pe):p.protectedKeys[pe]=!0}p.prevProp=y,p.prevResolvedValues=ie,p.isActive&&(h=I(I({},h),ie)),n&&e.blockInitialAnimation&&(C=!1),C&&(!S||k)&&d.push(...j.map(pe=>({animation:pe,options:{type:f}})))}if(m.size){const x={};m.forEach(f=>{const p=e.getBaseTarget(f),y=e.getValue(f);y&&(y.liveStyle=!0),x[f]=p!=null?p:null}),d.push({animation:x})}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 i(o,u){var c;if(r[o].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(m=>{var h;return(h=m.animationState)===null||h===void 0?void 0:h.setActive(o,u)}),r[o].isActive=u;const d=l(o);for(const m in r)r[m].protectedKeys={};return d}return{animateChanges:l,setActive:i,setAnimateFunction:s,getState:()=>r,reset:()=>{r=rf(),n=!0}}}function E0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!op(t,e):!1}function pr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rf(){return{animate:pr(!0),whileInView:pr(),whileHover:pr(),whileTap:pr(),whileDrag:pr(),whileFocus:pr(),exit:pr()}}class w0 extends Zt{constructor(t){super(t),t.animationState||(t.animationState=D0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Cs(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 j0=0;class N0 extends Zt{constructor(){super(...arguments),this.id=j0++}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 P0={animation:{Feature:w0},exit:{Feature:N0}},nf=(e,t)=>Math.abs(e-t);function U0(e,t){const r=nf(e.x,t.x),n=nf(e.y,t.y);return Math.sqrt(lu(r,2)+lu(n,2))}class af{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=Ko(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=U0(d.offset,{x:0,y:0})>=3;if(!m&&!h)return;const{point:g}=d,{timestamp:b}=me;this.history.push(R(I({},g),{timestamp:b}));const{onStart:x,onMove:f}=this.handlers;m||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Go(m,this.transformPagePoint),z.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ko(d.type==="pointercancel"?this.lastMoveEventInfo:Go(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,x),g&&g(d,x)},!ep(t))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const l=ws(t),i=Go(l,this.transformPagePoint),{point:o}=i,{timestamp:u}=me;this.history=[R(I({},o),{timestamp:u})];const{onSessionStart:c}=r;c&&c(t,Ko(i,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 Go(e,t){return t?{point:t(e.point)}:e}function sf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ko({point:e},t){return{point:e,delta:sf(e,lf(t)),offset:sf(e,B0(t)),velocity:k0(t,.1)}}function B0(e){return e[0]}function lf(e){return e[e.length-1]}function k0(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=lf(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>$t(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 l={x:(a.x-n.x)/s,y:(a.y-n.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Re(e){return e.max-e.min}function Qo(e,t=0,r=.01){return Math.abs(e-t)<=r}function of(e,t,r,n=.5){e.origin=n,e.originPoint=G(t.min,t.max,e.origin),e.scale=Re(r)/Re(t),(Qo(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=G(r.min,r.max,e.origin)-e.originPoint,(Qo(e.translate)||isNaN(e.translate))&&(e.translate=0)}function na(e,t,r,n){of(e.x,t.x,r.x,n?n.originX:void 0),of(e.y,t.y,r.y,n?n.originY:void 0)}function uf(e,t,r){e.min=r.min+t.min,e.max=e.min+Re(t)}function O0(e,t,r){uf(e.x,t.x,r.x),uf(e.y,t.y,r.y)}function cf(e,t,r){e.min=t.min-r.min,e.max=e.min+Re(t)}function aa(e,t,r){cf(e.x,t.x,r.x),cf(e.y,t.y,r.y)}function R0(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?G(r,e,n.max):Math.min(e,r)),e}function df(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 q0(e,{top:t,left:r,bottom:n,right:a}){return{x:df(e.x,r,a),y:df(e.y,t,n)}}function mf(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=ea(t.min,t.max-n,e.min):n>a&&(r=ea(e.min,e.max-a,t.min)),_t(0,1,r)}function M0(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 _0(e=Yo){return e===!1?e=0:e===!0&&(e=Yo),{x:pf(e,"left","right"),y:pf(e,"top","bottom")}}function pf(e,t,r){return{min:ff(e,t),max:ff(e,r)}}function ff(e,t){return typeof e=="number"?e:e[t]||0}const yf=()=>({translate:0,scale:1,origin:0,originPoint:0}),en=()=>({x:yf(),y:yf()}),hf=()=>({min:0,max:0}),X=()=>({x:hf(),y:hf()});function He(e){return[e("x"),e("y")]}function gf({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function V0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Z0(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 fr(e){return Jo(e)||bf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bf(e){return vf(e.x)||vf(e.y)}function vf(e){return e&&e!=="0%"}function Rs(e,t,r){const n=e-r,a=t*n;return r+a}function Tf(e,t,r,n,a){return a!==void 0&&(e=Rs(e,a,n)),Rs(e,r,n)+t}function eu(e,t=0,r=1,n,a){e.min=Tf(e.min,t,r,n,a),e.max=Tf(e.max,t,r,n,a)}function Af(e,{x:t,y:r}){eu(e.x,t.translate,t.scale,t.originPoint),eu(e.y,r.translate,r.scale,r.originPoint)}function $0(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let s,l;for(let i=0;i1.0000000000001||e<.999999999999?e:1}function Gt(e,t){e.min=e.min+t,e.max=e.max+t}function Cf(e,t,[r,n,a]){const s=t[a]!==void 0?t[a]:.5,l=G(e.min,e.max,s);eu(e,t[r],t[n],l,t.scale)}const H0=["x","scaleX","originX"],W0=["y","scaleY","originY"];function tn(e,t){Cf(e.x,t,H0),Cf(e.y,t,W0)}function Sf(e,t){return gf(Z0(e.getBoundingClientRect(),t))}function G0(e,t,r){const n=Sf(e,r),{scroll:a}=t;return a&&(Gt(n.x,a.offset.x),Gt(n.y,a.offset.y)),n}const If=({current:e})=>e?e.ownerDocument.defaultView:null,K0=new WeakMap;class Q0{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(ws(c,"page").point)},s=(c,d)=>{const{drag:m,dragPropagation:h,onDragStart:g}=this.getProps();if(m&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ap(m),!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),He(x=>{let f=this.getAxisMotionValue(x).get()||0;if(lt.test(f)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[x];y&&(f=Re(y)*(parseFloat(f)/100))}}this.originPoint[x]=f}),g&&z.postRender(()=>g(c,d));const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(c,d)=>{const{dragPropagation:m,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=Y0(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),b&&b(c,d)},i=(c,d)=>this.stop(c,d),o=()=>He(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 af(t,{onSessionStart:a,onStart:s,onMove:l,onSessionEnd:i,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:If(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&z.postRender(()=>s(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||!qs(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(l=R0(l,this.constraints[t],this.elastic[t])),s.set(l)}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&&Kr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=q0(a.layoutBox,r):this.constraints=!1,this.elastic=_0(n),s!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&He(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=M0(a.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Kr(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=G0(n,a.root,this.visualElement.getTransformPagePoint());let l=z0(a.layout.layoutBox,s);if(r){const i=r(V0(l));this.hasMutatedConstraints=!!i,i&&(l=gf(i))}return l}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:i}=this.getProps(),o=this.constraints||{},u=He(c=>{if(!qs(c,r,this.currentDirection))return;let d=o&&o[c]||{};l&&(d={min:0,max:0});const m=a?200:1e6,h=a?40:1e7,g=I(I({type:"inertia",velocity:n?t[c]:0,bounceStiffness:m,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Vo(t,n,0,r,this.visualElement))}stopAnimation(){He(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){He(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){He(r=>{const{drag:n}=this.getProps();if(!qs(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(r);if(a&&a.layout){const{min:l,max:i}=a.layout.layoutBox[r];s.set(t[r]-G(l,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Kr(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};He(l=>{const i=this.getAxisMotionValue(l);if(i&&this.constraints!==!1){const o=i.get();a[l]=F0({min:o,max:o},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),He(l=>{if(!qs(l,t,null))return;const i=this.getAxisMotionValue(l),{min:o,max:u}=this.constraints[l];i.set(G(o,u,a[l]))})}addListeners(){if(!this.visualElement.current)return;K0.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();Kr(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()),z.read(n);const l=bt(window,"resize",()=>this.scalePositionWithinConstraints()),i=a.addEventListener("didUpdate",({delta:o,hasLayoutChanged:u})=>{this.isDragging&&u&&(He(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=o[c].translate,d.set(d.get()+o[c].translate))}),this.visualElement.render())});return()=>{l(),r(),s(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=Yo,dragMomentum:i=!0}=t;return R(I({},t),{drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:i})}}function qs(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Y0(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class X0 extends Zt{constructor(t){super(t),this.removeGroupControls=be,this.removeListeners=be,this.controls=new Q0(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 Lf=e=>(t,r)=>{e&&z.postRender(()=>e(t,r))};class J0 extends Zt{constructor(){super(...arguments),this.removePointerDownListener=be}onPointerDown(t){this.session=new af(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:If(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:Lf(t),onStart:Lf(r),onMove:n,onEnd:(s,l)=>{delete this.session,a&&z.postRender(()=>a(s,l))}}}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 eT(){const e=N.useContext(ro);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=N.useId();return N.useEffect(()=>n(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}const zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Df(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(w.test(e))e=parseFloat(e);else return e;const r=Df(e,t.target.x),n=Df(e,t.target.y);return`${r}% ${n}%`}},tT={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Wt.parse(e);if(a.length>5)return n;const s=Wt.createTransformer(e),l=typeof a[0]!="number"?1:0,i=r.x.scale*t.x,o=r.y.scale*t.y;a[0+l]/=i,a[1+l]/=o;const u=G(i,o,.5);return typeof a[2+l]=="number"&&(a[2+l]/=u),typeof a[3+l]=="number"&&(a[3+l]/=u),s(a)}};class rT extends N.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:s}=t;tb(nT),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(I({},s.options),{onExitComplete:()=>this.safeToRemove()}))),zs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:s}=this.props,l=n.projection;return l&&(l.isPresent=s,a||t.layoutDependency!==r||r===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||z.postRender(()=>{const i=l.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),so.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 Ef(e){const[t,r]=eT(),n=N.useContext(Rm);return F.jsx(rT,R(I({},e),{layoutGroup:n,switchLayoutGroup:N.useContext(Nm),isPresent:t,safeToRemove:r}))}const nT={borderRadius:R(I({},sa),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:sa,borderTopRightRadius:sa,borderBottomLeftRadius:sa,borderBottomRightRadius:sa,boxShadow:tT},wf=["TopLeft","TopRight","BottomLeft","BottomRight"],aT=wf.length,jf=e=>typeof e=="string"?parseFloat(e):e,Nf=e=>typeof e=="number"||w.test(e);function sT(e,t,r,n,a,s){a?(e.opacity=G(0,r.opacity!==void 0?r.opacity:1,lT(n)),e.opacityExit=G(t.opacity!==void 0?t.opacity:1,0,iT(n))):s&&(e.opacity=G(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let l=0;lnt?1:r(ea(e,t,n))}function Bf(e,t){e.min=t.min,e.max=t.max}function We(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function kf(e,t,r,n,a){return e-=t,e=Rs(e,1/r,n),a!==void 0&&(e=Rs(e,1/a,n)),e}function oT(e,t=0,r=1,n=.5,a,s=e,l=e){if(lt.test(t)&&(t=parseFloat(t),t=G(l.min,l.max,t/100)-l.min),typeof t!="number")return;let i=G(s.min,s.max,n);e===s&&(i-=t),e.min=kf(e.min,t,r,i,a),e.max=kf(e.max,t,r,i,a)}function Of(e,t,[r,n,a],s,l){oT(e,t[r],t[n],t[a],t.scale,s,l)}const uT=["x","scaleX","originX"],cT=["y","scaleY","originY"];function Rf(e,t,r,n){Of(e.x,t,uT,r?r.x:void 0,n?n.x:void 0),Of(e.y,t,cT,r?r.y:void 0,n?n.y:void 0)}function qf(e){return e.translate===0&&e.scale===1}function zf(e){return qf(e.x)&&qf(e.y)}function dT(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ff(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Mf(e){return Re(e.x)/Re(e.y)}class mT{constructor(){this.members=[]}add(t){Zo(this.members,t),t.scheduleRender()}remove(t){if($o(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 _f(e,t,r){let n="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=(r==null?void 0:r.z)||0;if((a||s||l)&&(n=`translate3d(${a}px, ${s}px, ${l}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:h,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}`),c&&(n+=`rotate(${c}deg) `),d&&(n+=`rotateX(${d}deg) `),m&&(n+=`rotateY(${m}deg) `),h&&(n+=`skewX(${h}deg) `),g&&(n+=`skewY(${g}deg) `)}const i=e.x.scale*t.x,o=e.y.scale*t.y;return(i!==1||o!==1)&&(n+=`scale(${i}, ${o})`),n||"none"}const pT=(e,t)=>e.depth-t.depth;class fT{constructor(){this.children=[],this.isDirty=!1}add(t){Zo(this.children,t),this.isDirty=!0}remove(t){$o(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pT),this.isDirty=!1,this.children.forEach(t)}}function yT(e,t){const r=Ht.now(),n=({timestamp:a})=>{const s=a-r;s>=t&&(gt(n),e(s-t))};return z.read(n,!0),()=>gt(n)}function hT(e){window.MotionDebug&&window.MotionDebug.record(e)}function gT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function bT(e,t,r){const n=ve(e)?e:ra(e);return n.start(Vo("",n,t,r)),n.animation}const tu=["","X","Y","Z"],vT={visibility:"hidden"},Vf=1e3;let TT=0;const yr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection: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 Zf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?ef(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Zf(e.parent):!1:!1}function $f({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(l={},i=t==null?void 0:t()){this.id=TT++,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,yr.totalNodes=yr.resolvedTargetDeltas=yr.recalculatedProjection=0,this.nodes.forEach(CT),this.nodes.forEach(ET),this.nodes.forEach(wT),this.nodes.forEach(ST),hT(yr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let o=0;othis.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=yT(m,250),zs.hasAnimatedSinceResize&&(zs.hasAnimatedSinceResize=!1,this.nodes.forEach(Wf))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||BT,{onLayoutAnimationStart:x,onLayoutAnimationComplete:f}=c.getProps(),p=!this.targetLayout||!Ff(this.targetLayout,g)||h,y=!m&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||m&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const v=R(I({},So(b,"layout")),{onPlay:x,onComplete:f});(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else m||Wf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.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(jT),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Zf(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;Gf(d.x,l.x,T),Gf(d.y,l.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(aa(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PT(this.relativeTarget,this.relativeTargetOrigin,m,T),y&&dT(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=X()),We(y,this.relativeTarget)),b&&(this.animationValues=c,sT(c,u,this.latestValues,T,p,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){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=z.update(()=>{zs.hasAnimatedSinceResize=!0,this.currentAnimation=bT(0,Vf,R(I({},l),{onUpdate:i=>{this.mixTargetDelta(i),l.onUpdate&&l.onUpdate(i)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:i,target:o,layout:u,latestValues:c}=l;if(!(!i||!o||!u)){if(this!==l&&this.layout&&u&&Jf(this.options.animationType,this.layout.layoutBox,u.layoutBox)){o=this.target||X();const d=Re(this.layout.layoutBox.x);o.x.min=l.target.x.min,o.x.max=o.x.min+d;const m=Re(this.layout.layoutBox.y);o.y.min=l.target.y.min,o.y.max=o.y.min+m}We(i,o),tn(i,c),na(this.projectionDeltaWithTransform,this.layoutCorrected,i,c)}}registerSharedNode(l,i){this.sharedNodes.has(l)||this.sharedNodes.set(l,new mT),this.sharedNodes.get(l).add(i);const u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:i}=this.options;return i?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:i}=this.options;return i?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:i,preserveFollowOpacity:o}={}){const u=this.getStack();u&&u.promote(this,o),l&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let i=!1;const{latestValues:o}=l;if((o.z||o.rotate||o.rotateX||o.rotateY||o.rotateZ||o.skewX||o.skewY)&&(i=!0),!i)return;const u={};o.z&&ru("z",l,u,this.animationValues);for(let c=0;c{var i;return(i=l.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(Hf),this.root.sharedNodes.clear()}}}function AT(e){e.updateLayout()}function xT(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,l=r.source!==e.layout.source;s==="size"?He(d=>{const m=l?r.measuredBox[d]:r.layoutBox[d],h=Re(m);m.min=n[d].min,m.max=m.min+h}):Jf(s,r.layoutBox,n)&&He(d=>{const m=l?r.measuredBox[d]:r.layoutBox[d],h=Re(n[d]);m.max=m.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const i=en();na(i,n,r.layoutBox);const o=en();l?na(o,e.applyTransform(a,!0),r.measuredBox):na(o,n,r.layoutBox);const u=!zf(i);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:m,layout:h}=d;if(m&&h){const g=X();aa(g,r.layoutBox,m.layoutBox);const b=X();aa(b,n,h.layoutBox),Ff(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:i,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function CT(e){yr.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 ST(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function IT(e){e.clearSnapshot()}function Hf(e){e.clearMeasurements()}function LT(e){e.isLayoutDirty=!1}function DT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ET(e){e.resolveTargetDelta()}function wT(e){e.calcProjection()}function jT(e){e.resetSkewAndRotation()}function NT(e){e.removeLeadSnapshot()}function Gf(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 Kf(e,t,r,n){e.min=G(t.min,r.min,n),e.max=G(t.max,r.max,n)}function PT(e,t,r,n){Kf(e.x,t.x,r.x,n),Kf(e.y,t.y,r.y,n)}function UT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BT={duration:.45,ease:[.4,0,.1,1]},Qf=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yf=Qf("applewebkit/")&&!Qf("chrome/")?Math.round:be;function Xf(e){e.min=Yf(e.min),e.max=Yf(e.max)}function kT(e){Xf(e.x),Xf(e.y)}function Jf(e,t,r){return e==="position"||e==="preserve-aspect"&&!Qo(Mf(t),Mf(r),.2)}const OT=$f({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},ey=$f({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nu.current){const e=new OT({});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"}),RT={pan:{Feature:J0},drag:{Feature:X0,ProjectionNode:ey,MeasureLayout:Ef}},au={current:null},ty={current:!1};function qT(){if(ty.current=!0,!!no)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>au.current=e.matches;e.addListener(t),t()}else au.current=!1}function zT(e,t,r){const{willChange:n}=t;for(const a in t){const s=t[a],l=r[a];if(ve(s))e.addValue(a,s),Os(n)&&n.add(a);else if(ve(l))e.addValue(a,ra(s,{owner:e})),Os(n)&&n.remove(a);else if(l!==s)if(e.hasValue(a)){const i=e.getValue(a);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(a);e.addValue(a,ra(i!==void 0?i:s,{owner:e}))}}for(const a in r)t[a]===void 0&&e.removeValue(a);return t}const ry=new WeakMap,FT=[...hp,Te,Wt],MT=e=>FT.find(yp(e)),ny=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_T=io.length;class VT{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:s,visualState:l},i={}){this.resolveKeyframes=(h,g,b,x)=>new this.KeyframeResolver(h,g,b,x,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Do,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>z.render(this.render,!1,!0);const{latestValues:o,renderState:u}=l;this.latestValues=o,this.baseTarget=I({},o),this.initialValues=r.initial?I({},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=i,this.blockInitialAnimation=!!s,this.isControllingVariants=Ss(r),this.isVariantNode=Bm(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 h in d){const g=d[h];o[h]!==void 0&&ve(g)&&(g.set(o[h],!1),Os(c)&&c.add(h))}}mount(t){this.current=t,ry.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)),ty.current||qT(),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(){ry.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=cr.has(t),a=r.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&z.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 Qr){const r=Qr[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.options,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=ra(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"&&(cp(a)||up(a))?a=parseFloat(a):!MT(a)&&Wt.test(r)&&(a=Lp(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 l=bo(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);l&&(a=l[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 Ho),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class ay extends VT{constructor(){super(...arguments),this.KeyframeResolver=Dp}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 ZT(e){return window.getComputedStyle(e)}class $T extends ay{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(cr.has(r)){const n=Po(r);return n&&n.default||0}else{const n=ZT(t),a=(Fm(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Sf(t,r)}build(t,r,n,a){po(t,r,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return go(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}`)}))}renderInstance(t,r,n,a){Gm(t,r,n,a)}}class HT extends ay{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(cr.has(r)){const n=Po(r);return n&&n.default||0}return r=Km.has(r)?r:ao(r),t.getAttribute(r)}measureInstanceViewportBox(){return X()}scrapeMotionValuesFromProps(t,r,n){return Ym(t,r,n)}build(t,r,n,a){yo(t,r,n,this.isSVGTag,a.transformTemplate)}renderInstance(t,r,n,a){Qm(t,r,n,a)}mount(t){this.isSVGTag=ho(t.tagName),super.mount(t)}}const WT=(e,t)=>uo(e)?new HT(t,{enableHardwareAcceleration:!1}):new $T(t,{allowProjection:e!==N.Fragment,enableHardwareAcceleration:!0}),GT={layout:{ProjectionNode:ey,MeasureLayout:Ef}},KT=I(I(I(I({},P0),Zb),RT),GT),QT=Jg((e,t)=>Nb(e,t,KT,WT)),YT={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.45,.14,.1,.97]}}},XT="https://a.sfdcstatic.com/digital/@sfdc-www/open-blade-libs/dc-integrator/v0.2.2",JT=({item:e,index:t,isVisible:r,shouldAnimate:n})=>F.jsxs(QT.div,{className:"card shadow-lg p-4 rounded-lg flex items-center",initial:"hidden",variants:YT,"data-index":t,animate:n?"visible":"hidden",children:[F.jsx("div",{className:"flex-none py-3 pr-4 border-r-2 border-gray-200",children:F.jsx("img",{role:"presentation",src:XT+e.iconUrl,alt:e.label,className:"w-10 h-10 align-middle"})}),F.jsxs("div",{className:"pl-4 flex-grow overflow-hidden items-center",children:[F.jsxs("div",{className:"flex-grow",children:[e.releaseLevel==="IN_DEV"&&F.jsx("div",{className:"px-2 py-1 bg-indigo-50 rounded-xl border border-indigo-50 justify-center items-center inline-flex mb-2",children:F.jsx("div",{className:"text-sky-700 text-[10px] font-bold leading-none tracking-tight",children:"Coming Soon"})}),e.releaseLevel==="BETA"&&F.jsx("div",{className:"px-2 py-1 bg-violet-50 rounded-xl border border-violet-50 justify-center items-center inline-flex mb-2",children:F.jsx("div",{className:"text-fuchsia-700 text-[10px] font-bold leading-none tracking-tight",children:"Beta"})})]}),F.jsx("h3",{className:"mb-2 font-bold overflow-hidden truncate text-sfnavy",children:e.label}),F.jsxs("p",{className:"text-xs 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);Og.map(e=>R(I({},e),{name:e.label||"",features:e.label||[],featuresConfig:{IncrementalUpdate:{deleteSupport:"No"}},connectionAttributes:{},extractAttributes:{}}));const eA=[...kg.filter(e=>e.releaseLevel!=="IN_DEV"&&e.releaseLevel!=="PILOT"&&e.name!=="OCI"&&e.name!=="TenantBillingUsageConnector")].sort((e,t)=>e.label.localeCompare(t.label));function tA(){const[e,t]=N.useState(""),[r,n]=N.useState(new Set),[a,s]=N.useState(new Set),l=u=>{t(u.target.value),n(new Set)},i=eA.filter(u=>e?e==="GA"?u.releaseLevel==="GA"||u.releaseLevel==="MuleSoft":u.releaseLevel===e:!0),o=N.useRef(new IntersectionObserver(u=>{const c=u.filter(d=>d.isIntersecting);if(c.length){const d=new Set(r),m=new Set(a);c.forEach(h=>{const g=Number(h.target.getAttribute("data-index"));d.add(g),m.add(g)}),n(d),s(m)}},{threshold:.5}));return N.useEffect(()=>{const u=o.current;return document.querySelectorAll(".card").forEach(d=>{u.observe(d)}),()=>{u.disconnect()}},[i]),F.jsx("div",{className:"container mx-auto lg:mt-0 md:mt-5 pt-0 min-h-screen",children:F.jsxs("div",{className:"flex flex-col items-center min-h-screen text-gray-900 font-sans",children:[F.jsx("div",{className:"flex space-x-4 mb-8",children:F.jsxs("div",{className:"mb-4",children:[F.jsx("label",{htmlFor:"filter",className:"mr-2",children:"Filter by release level: "}),F.jsxs("select",{id:"filter",value:e,onChange:l,className:"border p-1 rounded",children:[F.jsx("option",{value:"",children:"All"}),F.jsx("option",{value:"BETA",children:"Beta"}),F.jsx("option",{value:"GA",children:"General Availability"})]})]})}),F.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 p-4",children:i.map((u,c)=>F.jsx(JT,{index:c,item:u,isVisible:r.has(c)||a.has(c),shouldAnimate:r.has(c),"data-index":c},c))})]})})}Gs.createRoot(document.getElementById("wps-dc-integrator")).render(F.jsx(Cy.StrictMode,{children:F.jsx(tA,{})}))});