(function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var D0=Object.defineProperty,E0=Object.defineProperties;var w0=Object.getOwnPropertyDescriptors;var _s=Object.getOwnPropertySymbols;var Th=Object.prototype.hasOwnProperty,Ah=Object.prototype.propertyIsEnumerable;var cu=Math.pow,vh=(K,se,te)=>se in K?D0(K,se,{enumerable:!0,configurable:!0,writable:!0,value:te}):K[se]=te,I=(K,se)=>{for(var te in se||(se={}))Th.call(se,te)&&vh(K,te,se[te]);if(_s)for(var te of _s(se))Ah.call(se,te)&&vh(K,te,se[te]);return K},R=(K,se)=>E0(K,w0(se));var Re=(K,se)=>{var te={};for(var qe in K)Th.call(K,qe)&&se.indexOf(qe)<0&&(te[qe]=K[qe]);if(K!=null&&_s)for(var qe of _s(K))se.indexOf(qe)<0&&Ah.call(K,qe)&&(te[qe]=K[qe]);return te};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={exports:{}},te={},qe={exports:{}},U={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var tn=Symbol.for("react.element"),Ch=Symbol.for("react.portal"),Sh=Symbol.for("react.fragment"),xh=Symbol.for("react.strict_mode"),Ih=Symbol.for("react.profiler"),Lh=Symbol.for("react.provider"),Dh=Symbol.for("react.context"),Eh=Symbol.for("react.forward_ref"),wh=Symbol.for("react.suspense"),jh=Symbol.for("react.memo"),Bh=Symbol.for("react.lazy"),du=Symbol.iterator;function Nh(e){return e===null||typeof e!="object"?null:(e=du&&e[du]||e["@@iterator"],typeof e=="function"?e:null)}var mu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pu=Object.assign,fu={};function gr(e,t,r){this.props=e,this.context=t,this.refs=fu,this.updater=r||mu}gr.prototype.isReactComponent={},gr.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")},gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hu(){}hu.prototype=gr.prototype;function Vs(e,t,r){this.props=e,this.context=t,this.refs=fu,this.updater=r||mu}var Zs=Vs.prototype=new hu;Zs.constructor=Vs,pu(Zs,gr.prototype),Zs.isPureReactComponent=!0;var yu=Array.isArray,gu=Object.prototype.hasOwnProperty,$s={current:null},bu={key:!0,ref:!0,__self:!0,__source:!0};function vu(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)gu.call(t,n)&&!bu.hasOwnProperty(n)&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1>>1,ue=L[J];if(0>>1;Ja(uu,P))yra(Fs,uu)?(L[J]=Fs,L[yr]=P,J=yr):(L[J]=uu,L[hr]=P,J=hr);else if(yra(Fs,P))L[J]=Fs,L[yr]=P,J=yr;else break e}}return N}function a(L,N){var P=L.sortIndex-N.sortIndex;return P!==0?P:L.id-N.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,m=null,d=3,y=!1,g=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(L){for(var N=r(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=L)n(u),N.sortIndex=N.expirationTime,t(o,N);else break;N=r(u)}}function v(L){if(b=!1,h(L),!g)if(r(o)!==null)g=!0,Ms(T);else{var N=r(u);N!==null&&ae(v,N.startTime-L)}}function T(L,N){g=!1,b&&(b=!1,f(S),S=-1),y=!0;var P=d;try{for(h(N),m=r(o);m!==null&&(!(m.expirationTime>N)||L&&!oe());){var J=m.callback;if(typeof J=="function"){m.callback=null,d=m.priorityLevel;var ue=J(m.expirationTime<=N);N=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===r(o)&&n(o),h(N)}else n(o);m=r(o)}if(m!==null)var zs=!0;else{var hr=r(u);hr!==null&&ae(v,hr.startTime-N),zs=!1}return zs}finally{m=null,d=P,y=!1}}var x=!1,D=null,S=-1,O=5,B=-1;function oe(){return!(e.unstable_now()-BL||125J?(L.sortIndex=P,t(u,L),r(o)===null&&L===r(u)&&(b?(f(S),S=-1):b=!0,ae(v,P-J))):(L.sortIndex=ue,t(o,L),g||y||(g=!0,Ms(T))),L},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(L){var N=d;return function(){var P=d;d=N;try{return L.apply(this,arguments)}finally{d=P}}}})(Iu),xu.exports=Iu;var Zh=xu.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 $h=w,Be=Zh;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function Ce(e,t,r,n,a,s,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 ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new Ce(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new Ce(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new Ce(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new Ce(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ce[e]=new Ce(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ce[e]=new Ce(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ce[e]=new Ce(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);ce[t]=new Ce(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Qs,Ys);ce[t]=new Ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Qs,Ys);ce[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)}),ce.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ce[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xs(e,t,r,n){var a=ce.hasOwnProperty(t)?ce[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:"")?an(e):""}function Qh(e){switch(e.tag){case 5:return an(e.type);case 16:return an("Lazy");case 13:return an("Suspense");case 19:return an("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 Tr:return"Fragment";case vr: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 ju:return(e.displayName||"Context")+".Consumer";case wu: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 Ct:t=e._payload,e=e._init;try{return ol(e(t))}catch(r){}}return null}function Yh(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 St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xh(e){var t=Pu(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 ca(e){e._valueTracker||(e._valueTracker=Xh(e))}function Uu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Pu(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function da(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 Ou(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=St(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 ku(e,t){t=t.checked,t!=null&&Xs(e,"checked",t,!1)}function cl(e,t){ku(e,t);var r=St(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,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ru(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"||da(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var sn=Array.isArray;function Ar(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ma.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ln(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var on={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},Jh=["Webkit","ms","Moz","O"];Object.keys(on).forEach(function(e){Jh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),on[t]=on[e]})});function Vu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||on.hasOwnProperty(e)&&on[e]?(""+t).trim():t+"px"}function Zu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=Vu(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var ey=$({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(ey[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function hl(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 yl=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,Cr=null,Sr=null;function $u(e){if(e=jn(e)){if(typeof bl!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Oa(t),bl(e.stateNode,e.type,t))}}function Wu(e){Cr?Sr?Sr.push(e):Sr=[e]:Cr=e}function Gu(){if(Cr){var e=Cr,t=Sr;if(Sr=Cr=null,$u(e),t)for(e=0;e>>=0,e===0?32:31-(dy(e)/my|0)|0}var ga=64,ba=4194304;function mn(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 va(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=mn(i):(s&=l,s!==0&&(n=mn(s)))}else l=r&~a,l!==0?n=mn(l):s!==0&&(n=mn(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 pn(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 yy(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=An),Ac=" ",Cc=!1;function Sc(e,t){switch(e){case"keyup":return Zy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function Wy(e,t){switch(e){case"compositionend":return xc(t);case"keypress":return t.which!==32?null:(Cc=!0,Ac);case"textInput":return e=t.data,e===Ac&&Cc?null:e;default:return null}}function Gy(e,t){if(Lr)return e==="compositionend"||!kl&&Sc(e,t)?(e=hc(),xa=jl=Et=null,Lr=!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=Bc(r)}}function Pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uc(){for(var e=window,t=da();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=da(e.document)}return t}function Ml(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 rg(e){var t=Uc(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Pc(r.ownerDocument.documentElement,r)){if(n!==null&&Ml(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=Nc(r,s);var l=Nc(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,Dr=null,zl=null,In=null,Fl=!1;function Oc(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fl||Dr==null||Dr!==da(n)||(n=Dr,"selectionStart"in n&&Ml(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),In&&xn(In,n)||(In=n,n=Na(zl,"onSelect"),0Nr||(e.current=Jl[Nr],Jl[Nr]=null,Nr--)}function F(e,t){Nr++,Jl[Nr]=e.current,e.current=t}var Nt={},fe=Bt(Nt),Ie=Bt(!1),Yt=Nt;function Pr(e,t){var r=e.type.contextTypes;if(!r)return Nt;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 ka(){V(Ie),V(fe)}function Qc(e,t,r){if(fe.current!==Nt)throw Error(C(168));F(fe,t),F(Ie,r)}function Yc(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(C(108,Yh(e)||"Unknown",a));return $({},r,n)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nt,Yt=fe.current,F(fe,e),F(Ie,Ie.current),!0}function Xc(e,t,r){var n=e.stateNode;if(!n)throw Error(C(169));r?(e=Yc(e,t,Yt),n.__reactInternalMemoizedMergedChildContext=e,V(Ie),V(fe),F(fe,e)):V(Ie),F(Ie,r)}var ct=null,qa=!1,ei=!1;function Jc(e){ct===null?ct=[e]:ct.push(e)}function fg(e){qa=!0,Jc(e)}function Pt(){if(!ei&&ct!==null){ei=!0;var e=0,t=M;try{var r=ct;for(M=1;e>=l,a-=l,dt=1<<32-Ge(t)+a|r<S?(O=D,D=null):O=D.sibling;var B=d(f,D,h[S],v);if(B===null){D===null&&(D=O);break}e&&D&&B.alternate===null&&t(f,D),p=s(B,p,S),x===null?T=B:x.sibling=B,x=B,D=O}if(S===h.length)return r(f,D),Z&&Jt(f,S),T;if(D===null){for(;SS?(O=D,D=null):O=D.sibling;var oe=d(f,D,B.value,v);if(oe===null){D===null&&(D=O);break}e&&D&&oe.alternate===null&&t(f,D),p=s(oe,p,S),x===null?T=oe:x.sibling=oe,x=oe,D=O}if(B.done)return r(f,D),Z&&Jt(f,S),T;if(D===null){for(;!B.done;S++,B=h.next())B=m(f,B.value,v),B!==null&&(p=s(B,p,S),x===null?T=B:x.sibling=B,x=B);return Z&&Jt(f,S),T}for(D=n(f,D);!B.done;S++,B=h.next())B=y(D,f,S,B.value,v),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?S:B.key),p=s(B,p,S),x===null?T=B:x.sibling=B,x=B);return e&&D.forEach(function(Gt){return t(f,Gt)}),Z&&Jt(f,S),T}function A(f,p,h,v){if(typeof h=="object"&&h!==null&&h.type===Tr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case ua:e:{for(var T=h.key,x=p;x!==null;){if(x.key===T){if(T=h.type,T===Tr){if(x.tag===7){r(f,x.sibling),p=a(x,h.props.children),p.return=f,f=p;break e}}else if(x.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ct&&sd(T)===x.type){r(f,x.sibling),p=a(x,h.props),p.ref=Bn(f,x,h),p.return=f,f=p;break e}r(f,x);break}else t(f,x);x=x.sibling}h.type===Tr?(p=ir(h.props.children,f.mode,v,h.key),p.return=f,f=p):(v=ms(h.type,h.key,h.props,null,f.mode,v),v.ref=Bn(f,p,h),v.return=f,f=v)}return l(f);case vr:e:{for(x=h.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){r(f,p.sibling),p=a(p,h.children||[]),p.return=f,f=p;break e}else{r(f,p);break}else t(f,p);p=p.sibling}p=Yi(h,f.mode,v),p.return=f,f=p}return l(f);case Ct:return x=h._init,A(f,p,x(h._payload),v)}if(sn(h))return g(f,p,h,v);if(nn(h))return b(f,p,h,v);_a(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(r(f,p.sibling),p=a(p,h),p.return=f,f=p):(r(f,p),p=Qi(h,f.mode,v),p.return=f,f=p),l(f)):r(f,p)}return A}var Rr=ld(!0),id=ld(!1),Va=Bt(null),Za=null,qr=null,li=null;function ii(){li=qr=Za=null}function oi(e){var t=Va.current;V(Va),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 Mr(e,t){Za=e,li=qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(De=!0),e.firstContext=null)}function Fe(e){var t=e._currentValue;if(li!==e)if(e={context:e,memoizedValue:t,next:null},qr===null){if(Za===null)throw Error(C(308));qr=e,Za.dependencies={lanes:0,firstContext:e}}else qr=qr.next=e;return t}var er=null;function ci(e){er===null?er=[e]:er.push(e)}function od(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 Ut=!1;function di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ud(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ot(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,q&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 $a(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 cd(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;Ut=!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 m=a.baseState;l=0,c=u=o=null,i=s;do{var d=i.lane,y=i.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,b=i;switch(d=t,y=r,b.tag){case 1:if(g=b.payload,typeof g=="function"){m=g.call(y,m,d);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,d=typeof g=="function"?g.call(y,m,d):g,d==null)break e;m=$({},m,d);break e;case 2:Ut=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,d=a.effects,d===null?a.effects=[i]:d.push(i))}else y={eventTime:y,lane:d,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=y,o=m):c=c.next=y,l|=d;if(i=i.next,i===null){if(i=a.shared.pending,i===null)break;d=i,i=d.next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}while(!0);if(c===null&&(o=m),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);nr|=l,e.lanes=l,e.memoizedState=m}}function dd(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=yi.transition;yi.transition={};try{e(!1),t()}finally{M=r,yi.transition=n}}function jd(){return _e().memoizedState}function bg(e,t,r){var n=Mt(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Bd(e))Nd(t,r);else if(r=od(e,t,r,n),r!==null){var a=xe();Je(r,e,n,a),Pd(r,t,n)}}function vg(e,t,r){var n=Mt(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Bd(e))Nd(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,He(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=od(e,t,a,n),r!==null&&(a=xe(),Je(r,e,n,a),Pd(r,t,n))}}function Bd(e){var t=e.alternate;return e===G||t!==null&&t===G}function Nd(e,t){On=Ka=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Pd(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Il(e,r)}}var Xa={readContext:Fe,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},Tg={readContext:Fe,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:Cd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Qa(4194308,4,Id.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qa(4,2,e,t)},useMemo:function(e,t){var r=nt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=nt();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=bg.bind(null,G,e),[n.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Td,useDebugValue:Si,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Td(!1),t=e[0];return e=gg.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=G,a=nt();if(Z){if(r===void 0)throw Error(C(407));r=r()}else{if(r=t(),ie===null)throw Error(C(349));rr&30||hd(n,t,r)}a.memoizedState=r;var s={value:r,getSnapshot:t};return a.queue=s,Cd(gd.bind(null,n,s,e),[e]),n.flags|=2048,qn(9,yd.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=nt(),t=ie.identifierPrefix;if(Z){var r=mt,n=dt;r=(n&~(1<<32-Ge(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=kn++,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[tt]=t,e[wn]=n,Jd(e,t,!1,!1),t.stateNode=e;e:{switch(l=hl(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;aZr&&(t.flags|=128,n=!0,Mn(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),Mn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Z)return ye(t),null}else 2*Y()-s.renderingStartTime>Zr&&r!==1073741824&&(t.flags|=128,n=!0,Mn(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=W.current,F(W,n?r&1|2:r&1),t):(ye(t),null);case 22:case 23:return Gi(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Oe&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Eg(e,t){switch(ri(t),t.tag){case 1:return Le(t.type)&&ka(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zr(),V(Ie),V(fe),hi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pi(t),null;case 13:if(V(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(W),null;case 4:return zr(),null;case 10:return oi(t.type._context),null;case 22:case 23:return Gi(),null;case 24:return null;default:return null}}var rs=!1,ge=!1,wg=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 Oi(e,t,r){try{r()}catch(n){Q(e,t,n)}}var rm=!1;function jg(e,t){if(Gl=Ca,e=Uc(),Ml(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,m=e,d=null;t:for(;;){for(var y;m!==r||a!==0&&m.nodeType!==3||(i=l+a),m!==s||n!==0&&m.nodeType!==3||(o=l+n),m.nodeType===3&&(l+=m.nodeValue.length),(y=m.firstChild)!==null;)d=m,m=y;for(;;){if(m===e)break t;if(d===r&&++u===a&&(i=l),d===s&&++c===n&&(o=l),(y=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=y}r=i===-1||o===-1?null:{start:i,end:o}}else r=null}r=r||{start:0,end:0}}else r=null;for(Hl={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,A=g.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?b:Qe(t.type,b),A);f.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(v){Q(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return g=rm,rm=!1,g}function zn(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&&Oi(t,r,s)}a=a.next}while(a!==n)}}function ns(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 ki(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 nm(e){var t=e.alternate;t!==null&&(e.alternate=null,nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tt],delete t[wn],delete t[Xl],delete t[mg],delete t[pg])),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 am(e){return e.tag===5||e.tag===3||e.tag===4}function sm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||am(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=Ua));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 de=null,Ye=!1;function kt(e,t,r){for(r=r.child;r!==null;)lm(e,t,r),r=r.sibling}function lm(e,t,r){if(et&&typeof et.onCommitFiberUnmount=="function")try{et.onCommitFiberUnmount(ya,r)}catch(i){}switch(r.tag){case 5:ge||_r(r,t);case 6:var n=de,a=Ye;de=null,kt(e,t,r),de=n,Ye=a,de!==null&&(Ye?(e=de,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):de.removeChild(r.stateNode));break;case 18:de!==null&&(Ye?(e=de,r=r.stateNode,e.nodeType===8?Yl(e.parentNode,r):e.nodeType===1&&Yl(e,r),bn(e)):Yl(de,r.stateNode));break;case 4:n=de,a=Ye,de=r.stateNode.containerInfo,Ye=!0,kt(e,t,r),de=n,Ye=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)&&Oi(r,t,l),a=a.next}while(a!==n)}kt(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)}kt(e,t,r);break;case 21:kt(e,t,r);break;case 22:r.mode&1?(ge=(n=ge)||r.memoizedState!==null,kt(e,t,r),ge=n):kt(e,t,r);break;default:kt(e,t,r)}}function im(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new wg),t.forEach(function(n){var a=Mg.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Xe(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*Ng(n/1960))-n,10e?16:e,qt===null)var n=!1;else{if(e=qt,qt=null,os=0,q&6)throw Error(C(331));var a=q;for(q|=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()-Fi?sr(e,0):zi|=r),we(e,t)}function Tm(e,t){t===0&&(e.mode&1?(t=ba,ba<<=1,!(ba&130023424)&&(ba=4194304)):t=1);var r=xe();e=pt(e,t),e!==null&&(pn(e,t,r),we(e,r))}function qg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Tm(e,r)}function Mg(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(C(314))}n!==null&&n.delete(t),Tm(e,r)}var Am;Am=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,Lg(e,t,r);De=!!(e.flags&131072)}else De=!1,Z&&t.flags&1048576&&ed(t,za,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ts(e,t),e=t.pendingProps;var a=Pr(t,fe.current);Mr(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,Ra(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,di(t),a.updater=Ja,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),Se(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Fg(n),e=Qe(n,e),a){case 0:t=Ei(null,t,n,e,r);break e;case 1:t=Gd(null,t,n,e,r);break e;case 11:t=_d(null,t,n,e,r);break e;case 14:t=Vd(null,t,n,Qe(n.type,e),r);break e}throw Error(C(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qe(n,a),Ei(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qe(n,a),Gd(e,t,n,a,r);case 3:e:{if(Hd(t),e===null)throw Error(C(387));n=t.pendingProps,s=t.memoizedState,a=s.element,ud(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=Fr(Error(C(423)),t),t=Kd(e,t,n,r,a);break e}else if(n!==a){a=Fr(Error(C(424)),t),t=Kd(e,t,n,r,a);break e}else for(Ue=jt(t.stateNode.containerInfo.firstChild),Pe=t,Z=!0,Ke=null,r=id(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(kr(),n===a){t=ht(e,t,r);break e}Se(e,t,n,r)}t=t.child}return t;case 5:return md(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),Wd(e,t),Se(e,t,l,r),t.child;case 6:return e===null&&ai(t),null;case 13:return Qd(e,t,r);case 4:return mi(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Rr(t,null,n,r):Se(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qe(n,a),_d(e,t,n,a,r);case 7:return Se(e,t,t.pendingProps,r),t.child;case 8:return Se(e,t,t.pendingProps.children,r),t.child;case 12:return Se(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,F(Va,n._currentValue),n._currentValue=l,s!==null)if(He(s.value,l)){if(s.children===a.children&&!Ie.current){t=ht(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(C(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}Se(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Mr(t,r),a=Fe(a),n=n(a),t.flags|=1,Se(e,t,n,r),t.child;case 14:return n=t.type,a=Qe(n,t.pendingProps),a=Qe(n.type,a),Vd(e,t,n,a,r);case 15:return Zd(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qe(n,a),ts(e,t),t.tag=1,Le(n)?(e=!0,Ra(t)):e=!1,Mr(t,r),Od(t,n,a),Ii(t,n,a,r),wi(null,t,n,!0,e,r);case 19:return Xd(e,t,r);case 22:return $d(e,t,r)}throw Error(C(156,t.tag))};function Cm(e,t){return tc(e,t)}function zg(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 Ze(e,t,r,n){return new zg(e,t,r,n)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fg(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 Ft(e,t){var r=e.alternate;return r===null?(r=Ze(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 ms(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 Tr:return ir(r.children,a,s,t);case Js:l=8,a|=8;break;case el:return e=Ze(12,r,t,a|2),e.elementType=el,e.lanes=s,e;case rl:return e=Ze(13,r,t,a),e.elementType=rl,e.lanes=s,e;case nl:return e=Ze(19,r,t,a),e.elementType=nl,e.lanes=s,e;case Bu:return ps(r,a,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wu:l=10;break e;case ju:l=9;break e;case tl:l=11;break e;case al:l=14;break e;case Ct:l=16,n=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Ze(l,r,t,a),t.elementType=e,t.type=n,t.lanes=s,t}function ir(e,t,r,n){return e=Ze(7,e,n,t),e.lanes=r,e}function ps(e,t,r,n){return e=Ze(22,e,n,t),e.elementType=Bu,e.lanes=r,e.stateNode={isHidden:!1},e}function Qi(e,t,r){return e=Ze(6,e,null,t),e.lanes=r,e}function Yi(e,t,r){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _g(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=xl(0),this.expirationTimes=xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xl(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Xi(e,t,r,n,a,s,l,i,o){return e=new _g(e,t,r,i,o),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ze(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 Vg(e,t,r){var n=3e(...n);return new Proxy(r,{get:(n,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}function Ts(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ro=e=>Array.isArray(e);function jm(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function no(e,t,r,n){if(typeof t=="function"){const[a,s]=Bm(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]=Bm(n);t=t(r!==void 0?r:e.custom,a,s)}return t}function As(e,t,r){const n=e.getProps();return no(n,t,r!==void 0?r:n.custom,e)}const ao=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],so=["initial",...ao],Wn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],or=new Set(Wn),gt=e=>e*1e3,bt=e=>e/1e3,Jg={type:"spring",stiffness:500,damping:25,restSpeed:10},eb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tb={type:"keyframes",duration:.8},rb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nb=(e,{keyframes:t})=>t.length>2?tb:or.has(e)?e.startsWith("scale")?eb(t[1]):Jg:rb;function lo(e,t){return e?e[t]||e.default||e:void 0}const ab={skipAnimations:!1,useManualTiming:!1},sb=e=>e!==null;function Cs(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(sb),s=t&&r!=="loop"&&t%2===1?0:a.length-1;return!s||n===void 0?a[s]:n}const be=e=>e;function lb(e){let t=new Set,r=new Set,n=!1,a=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function i(u){s.has(u)&&(o.schedule(u),e()),u(l)}const o={schedule:(u,c=!1,m=!1)=>{const y=m&&n?t:r;return c&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(l=u,n){a=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(i),n=!1,a&&(a=!1,o.process(u))}};return o}const Ss=["read","resolveKeyframes","update","preRender","render","postRender"],ib=40;function Nm(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,l=Ss.reduce((f,p)=>(f[p]=lb(s),f),{}),{read:i,resolveKeyframes:o,update:u,preRender:c,render:m,postRender:d}=l,y=()=>{const f=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(f-a.timestamp,ib),1),a.timestamp=f,a.isProcessing=!0,i.process(a),o.process(a),u.process(a),c.process(a),m.process(a),d.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(y))},g=()=>{r=!0,n=!0,a.isProcessing||e(y)};return{schedule:Ss.reduce((f,p)=>{const h=l[p];return f[p]=(v,T=!1,x=!1)=>(r||g(),h.schedule(v,T,x)),f},{}),cancel:f=>{for(let p=0;p(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,ob=1e-7,ub=12;function cb(e,t,r,n,a){let s,l,i=0;do l=t+(r-t)/2,s=Pm(l,n,a)-e,s>0?r=l:t=l;while(Math.abs(s)>ob&&++icb(s,0,1,e,r);return s=>s===0||s===1?s:Pm(a(s),t,n)}const Um=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Om=e=>t=>1-e(1-t),km=Gn(.33,1.53,.69,.99),oo=Om(km),Rm=Um(oo),qm=e=>(e*=2)<1?.5*oo(e):.5*(2-Math.pow(2,-10*(e-1))),uo=e=>1-Math.sin(Math.acos(e)),Mm=Om(uo),zm=Um(uo),Fm=e=>/^0[^.\s]+$/u.test(e);function db(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Fm(e):!0}let co=be;const _m=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vm=e=>t=>typeof t=="string"&&t.startsWith(e),Zm=Vm("--"),mb=Vm("var(--"),mo=e=>mb(e)?pb.test(e.split("/*")[0].trim()):!1,pb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hb(e){const t=fb.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r!=null?r:n}`,a]}function $m(e,t,r=1){const[n,a]=hb(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const l=s.trim();return _m(l)?parseFloat(l):l}return mo(a)?$m(a,t,r+1):a}const Vt=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},Hn=R(I({},Wr),{transform:e=>Vt(0,1,e)}),xs=R(I({},Wr),{default:1}),Kn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zt=Kn("deg"),st=Kn("%"),j=Kn("px"),yb=Kn("vh"),gb=Kn("vw"),Wm=R(I({},st),{parse:e=>st.parse(e)/100,transform:e=>st.transform(e*100)}),bb=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gm=e=>e===Wr||e===j,Hm=(e,t)=>parseFloat(e.split(", ")[t]),Km=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return Hm(a[1],t);{const s=n.match(/^matrix\((.+)\)$/u);return s?Hm(s[1],e):0}},vb=new Set(["x","y","z"]),Tb=Wn.filter(e=>!vb.has(e));function Ab(e){const t=[];return Tb.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Gr={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:Km(4,13),y:Km(5,14)};Gr.translateX=Gr.x,Gr.translateY=Gr.y;const Qm=e=>t=>t.test(e),Ym=[Wr,j,st,Zt,gb,yb,{test:e=>e==="auto",parse:e=>e}],Xm=e=>Ym.find(Qm(e)),ur=new Set;let po=!1,fo=!1;function Jm(){if(fo){const e=Array.from(ur).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=Ab(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)})}fo=!1,po=!1,ur.forEach(e=>e.complete()),ur.clear()}function ep(){ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fo=!0)})}function Cb(){ep(),Jm()}class ho{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?(ur.add(this),po||(po=!0,z.read(ep),z.resolveKeyframes(Jm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let s=0;sMath.round(e*1e5)/1e5,yo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sb(e){return e==null}const xb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,go=(e,t)=>r=>!!(typeof r=="string"&&xb.test(r)&&r.startsWith(e)||t&&!Sb(r)&&Object.prototype.hasOwnProperty.call(r,t)),tp=(e,t,r)=>n=>{if(typeof n!="string")return n;const[a,s,l,i]=n.match(yo);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(l),alpha:i!==void 0?parseFloat(i):1}},Ib=e=>Vt(0,255,e),bo=R(I({},Wr),{transform:e=>Math.round(Ib(e))}),cr={test:go("rgb","red"),parse:tp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+bo.transform(e)+", "+bo.transform(t)+", "+bo.transform(r)+", "+Qn(Hn.transform(n))+")"};function Lb(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 vo={test:go("#"),parse:Lb,transform:cr.transform},Hr={test:go("hsl","hue"),parse:tp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+st.transform(Qn(t))+", "+st.transform(Qn(r))+", "+Qn(Hn.transform(n))+")"},ve={test:e=>cr.test(e)||vo.test(e)||Hr.test(e),parse:e=>cr.test(e)?cr.parse(e):Hr.test(e)?Hr.parse(e):vo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cr.transform(e):Hr.transform(e)},Db=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Eb(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yo))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Db))===null||r===void 0?void 0:r.length)||0)>0}const rp="number",np="color",wb="var",jb="var(",ap="${}",Bb=/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 Yn(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let s=0;const i=t.replace(Bb,o=>(ve.test(o)?(n.color.push(s),a.push(np),r.push(ve.parse(o))):o.startsWith(jb)?(n.var.push(s),a.push(wb),r.push(o)):(n.number.push(s),a.push(rp),r.push(parseFloat(o))),++s,ap)).split(ap);return{values:r,split:i,indexes:n,types:a}}function sp(e){return Yn(e).values}function lp(e){const{split:t,types:r}=Yn(e),n=t.length;return a=>{let s="";for(let l=0;ltypeof e=="number"?0:e;function Pb(e){const t=sp(e);return lp(e)(t.map(Nb))}const $t={test:Eb,parse:sp,createTransformer:lp,getAnimatableNone:Pb},Ub=new Set(["brightness","contrast","saturate","opacity"]);function Ob(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(yo)||[];if(!n)return e;const a=r.replace(n,"");let s=Ub.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+a+")"}const kb=/\b([a-z-]*)\(.*?\)/gu,To=R(I({},$t),{getAnimatableNone:e=>{const t=e.match(kb);return t?t.map(Ob).join(" "):e}}),Rb={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},qb={rotate:Zt,rotateX:Zt,rotateY:Zt,rotateZ:Zt,scale:xs,scaleX:xs,scaleY:xs,scaleZ:xs,skew:Zt,skewX:Zt,skewY:Zt,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Hn,originX:Wm,originY:Wm,originZ:j},ip=R(I({},Wr),{transform:Math.round}),Ao=R(I(I({},Rb),qb),{zIndex:ip,size:j,fillOpacity:Hn,strokeOpacity:Hn,numOctaves:ip}),Mb=R(I({},Ao),{color:ve,backgroundColor:ve,outlineColor:ve,fill:ve,stroke:ve,borderColor:ve,borderTopColor:ve,borderRightColor:ve,borderBottomColor:ve,borderLeftColor:ve,filter:To,WebkitFilter:To}),Co=e=>Mb[e];function op(e,t){let r=Co(e);return r!==To&&(r=$t),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const zb=new Set(["auto","none","0"]);function Fb(e,t,r){let n=0,a;for(;n{r.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function So(e){return typeof e=="function"}let Is;function _b(){Is=void 0}const lt={now:()=>(Is===void 0&<.set(pe.isProcessing||ab.useManualTiming?pe.timestamp:performance.now()),Is),set:e=>{Is=e,queueMicrotask(_b)}},cp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($t.test(e)||e==="0")&&!e.startsWith("url("));function Vb(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r$b?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Cb(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=lt.now(),this.hasAttemptedResolve=!0;const{name:n,type:a,velocity:s,delay:l,onComplete:i,onUpdate:o,isGenerator:u}=this.options;if(!u&&!Zb(t,n,a,s))if(l)this.options.duration=0;else{o==null||o(Cs(t,this.options,r)),i==null||i(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,r);c!==!1&&(this._resolved=I({keyframes:t,finalKeyframe:r},c),this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function mp(e,t){return t?e*(1e3/t):0}const Wb=5;function pp(e,t,r){const n=Math.max(t-Wb,0);return mp(r-e(n),t-n)}const xo=.001,Gb=.01,Hb=10,Kb=.05,Qb=1;function Yb({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,s,l=1-t;l=Vt(Kb,Qb,l),e=Vt(Gb,Hb,bt(e)),l<1?(a=u=>{const c=u*l,m=c*e,d=c-r,y=Io(u,l),g=Math.exp(-m);return xo-d/y*g},s=u=>{const m=u*l*e,d=m*r+r,y=Math.pow(l,2)*Math.pow(u,2)*e,g=Math.exp(-m),b=Io(Math.pow(u,2),l);return(-a(u)+xo>0?-1:1)*((d-y)*g)/b}):(a=u=>{const c=Math.exp(-u*e),m=(u-r)*e+1;return-xo+c*m},s=u=>{const c=Math.exp(-u*e),m=(r-u)*(e*e);return c*m});const i=5/e,o=Jb(a,s,i);if(e=gt(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 Xb=12;function Jb(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function rv(e){let t=I({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!fp(e,tv)&&fp(e,ev)){const r=Yb(e);t=R(I(I({},t),r),{mass:1}),t.isResolvedFromDuration=!0}return t}function hp(a){var s=a,{keyframes:e,restDelta:t,restSpeed:r}=s,n=Re(s,["keyframes","restDelta","restSpeed"]);const l=e[0],i=e[e.length-1],o={done:!1,value:l},{stiffness:u,damping:c,mass:m,duration:d,velocity:y,isResolvedFromDuration:g}=rv(R(I({},n),{velocity:-bt(n.velocity||0)})),b=y||0,A=c/(2*Math.sqrt(u*m)),f=i-l,p=bt(Math.sqrt(u/m)),h=Math.abs(f)<5;r||(r=h?.01:2),t||(t=h?.005:.5);let v;if(A<1){const T=Io(p,A);v=x=>{const D=Math.exp(-A*p*x);return i-D*((b+A*p*f)/T*Math.sin(T*x)+f*Math.cos(T*x))}}else if(A===1)v=T=>i-Math.exp(-p*T)*(f+(b+p*f)*T);else{const T=p*Math.sqrt(A*A-1);v=x=>{const D=Math.exp(-A*p*x),S=Math.min(T*x,300);return i-D*((b+A*p*f)*Math.sinh(S)+T*f*Math.cosh(S))/T}}return{calculatedDuration:g&&d||null,next:T=>{const x=v(T);if(g)o.done=T>=d;else{let D=0;A<1&&(D=T===0?gt(b):pp(v,T,x));const S=Math.abs(D)<=r,O=Math.abs(i-x)<=t;o.done=S&&O}return o.value=o.done?i:x,o}}}function yp({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 m=e[0],d={done:!1,value:m},y=S=>i!==void 0&&So,g=S=>i===void 0?o:o===void 0||Math.abs(i-S)-b*Math.exp(-S/n),h=S=>f+p(S),v=S=>{const O=p(S),B=h(S);d.done=Math.abs(O)<=u,d.value=d.done?f:B};let T,x;const D=S=>{y(d.value)&&(T=S,x=hp({keyframes:[d.value,g(d.value)],velocity:pp(h,S,d.value),damping:a,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:S=>{let O=!1;return!x&&T===void 0&&(O=!0,v(S),D(S)),T!==void 0&&S>=T?x.next(S-T):(!O&&v(S),d)}}}const nv=Gn(.42,0,1,1),av=Gn(0,0,.58,1),gp=Gn(.42,0,.58,1),sv=e=>Array.isArray(e)&&typeof e[0]!="number",Lo=e=>Array.isArray(e)&&typeof e[0]=="number",bp={linear:be,easeIn:nv,easeInOut:gp,easeOut:av,circIn:uo,circInOut:zm,circOut:Mm,backIn:oo,backInOut:Rm,backOut:km,anticipate:qm},vp=e=>{if(Lo(e)){co(e.length===4);const[t,r,n,a]=e;return Gn(t,r,n,a)}else if(typeof e=="string")return co(bp[e]!==void 0),bp[e];return e},lv=(e,t)=>r=>t(e(r)),vt=(...e)=>e.reduce(lv),Kr=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},H=(e,t,r)=>e+(t-e)*r;function Do(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 iv({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=Do(o,i,e+1/3),s=Do(o,i,e),l=Do(o,i,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:n}}function Ls(e,t){return r=>r>0?t:e}const Eo=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},ov=[vo,cr,Hr],uv=e=>ov.find(t=>t.test(e));function Tp(e){const t=uv(e);if(!t)return!1;let r=t.parse(e);return t===Hr&&(r=iv(r)),r}const Ap=(e,t)=>{const r=Tp(e),n=Tp(t);if(!r||!n)return Ls(e,t);const a=I({},r);return s=>(a.red=Eo(r.red,n.red,s),a.green=Eo(r.green,n.green,s),a.blue=Eo(r.blue,n.blue,s),a.alpha=H(r.alpha,n.alpha,s),cr.transform(a))},wo=new Set(["none","hidden"]);function cv(e,t){return wo.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function dv(e,t){return r=>H(e,t,r)}function jo(e){return typeof e=="number"?dv:typeof e=="string"?mo(e)?Ls:ve.test(e)?Ap:fv:Array.isArray(e)?Cp:typeof e=="object"?ve.test(e)?Ap:mv:Ls}function Cp(e,t){const r=[...e],n=r.length,a=e.map((s,l)=>jo(s)(s,t[l]));return s=>{for(let l=0;l{for(const s in n)r[s]=n[s](a);return r}}function pv(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let s=0;s{const r=$t.createTransformer(t),n=Yn(e),a=Yn(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?wo.has(e)&&!a.values.length||wo.has(t)&&!n.values.length?cv(e,t):vt(Cp(pv(n,a),a.values),r):Ls(e,t)};function Sp(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?H(e,t,r):jo(e)(e,t)}function hv(e,t,r){const n=[],a=r||Sp,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=hv(t,n,a),i=l.length,o=u=>{let c=0;if(i>1)for(;co(Vt(e[0],e[s-1],u)):o}function gv(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=Kr(0,t,n);e.push(H(r,1,a))}}function bv(e){const t=[0];return gv(t,e.length-1),t}function vv(e,t){return e.map(r=>r*t)}function Tv(e,t){return e.map(()=>t||gp).splice(0,e.length-1)}function Ds({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=sv(n)?n.map(vp):vp(n),s={done:!1,value:t[0]},l=vv(r&&r.length===t.length?r:bv(t),e),i=yv(l,t,{ease:Array.isArray(a)?a:Tv(t,a)});return{calculatedDuration:e,next:o=>(s.value=i(o),s.done=o>=e,s)}}const xp=2e4;function Av(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=xp?1/0:t}const Cv=e=>{const t=({timestamp:r})=>e(r);return{start:()=>z.update(t,!0),stop:()=>_t(t),now:()=>pe.isProcessing?pe.timestamp:lt.now()}},Sv={decay:yp,inertia:yp,tween:Ds,keyframes:Ds,spring:hp},xv=e=>e/100;class Bo extends dp{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:o}=this.options;o&&o()};const{name:r,motionValue:n,element:a,keyframes:s}=this.options,l=(a==null?void 0:a.KeyframeResolver)||ho,i=(o,u)=>this.onKeyframesResolved(o,u);this.resolver=new l(s,i,r,n,a),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=this.options,i=So(r)?r:Sv[r]||Ds;let o,u;i!==Ds&&typeof t[0]!="number"&&(o=vt(xv,Sp(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=Av(c));const{calculatedDuration:m}=c,d=m+a,y=d*(n+1)-a;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:o,calculatedDuration:m,resolvedDuration:d,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:a,generator:s,mirroredGenerator:l,mapPercentToKeyframes:i,keyframes:o,calculatedDuration:u,totalDuration:c,resolvedDuration:m}=n;if(this.startTime===null)return s.next(0);const{delay:d,repeat:y,repeatType:g,repeatDelay:b,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const f=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?f<0:f>c;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let h=this.currentTime,v=s;if(y){const S=Math.min(this.currentTime,c)/m;let O=Math.floor(S),B=S%1;!B&&S>=1&&(B=1),B===1&&O--,O=Math.min(O,y+1),!!(O%2)&&(g==="reverse"?(B=1-B,b&&(B-=b/m)):g==="mirror"&&(v=l)),h=Vt(0,1,B)*m}const T=p?{done:!1,value:o[0]}:v.next(h);i&&(T.value=i(T.value));let{done:x}=T;!p&&u!==null&&(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&x);return D&&a!==void 0&&(T.value=Cs(o,this.options,a)),A&&A(T.value),D&&this.finish(),T}get duration(){const{resolved:t}=this;return t?bt(t.calculatedDuration):0}get time(){return bt(this.currentTime)}set time(t){t=gt(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=bt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Cv,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),r&&r();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=n!=null?n:this.calcStartTime(),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 Iv=new Set(["opacity","clipPath","filter","transform"]),Lv=10,Dv=(e,t)=>{let r="";const n=Math.max(Math.round(t/Lv),2);for(let a=0;a(t===void 0&&(t=e()),t)}const Ev={linearEasing:void 0};function wv(e,t){const r=No(e);return()=>{var n;return(n=Ev[t])!==null&&n!==void 0?n:r()}}const Es=wv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");function Ip(e){return!!(typeof e=="function"&&Es()||!e||typeof e=="string"&&(e in Po||Es())||Lo(e)||Array.isArray(e)&&e.every(Ip))}const Xn=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Po={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xn([0,.65,.55,1]),circOut:Xn([.55,0,1,.45]),backIn:Xn([.31,.01,.66,-.59]),backOut:Xn([.33,1.53,.69,.99])};function Lp(e,t){if(e)return typeof e=="function"&&Es()?Dv(e,t):Lo(e)?Xn(e):Array.isArray(e)?e.map(r=>Lp(r,t)||Po.easeOut):Po[e]}function jv(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=Lp(i,a);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"})}function Dp(e,t){e.timeline=t,e.onfinish=null}const Bv=No(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ws=10,Nv=2e4;function Pv(e){return So(e.type)||e.type==="spring"||!Ip(e.ease)}function Uv(e,t){const r=new Bo(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(l,i),r,n,a),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:s,ease:l,type:i,motionValue:o,name:u,startTime:c}=this.options;if(!(!((n=o.owner)===null||n===void 0)&&n.current))return!1;if(typeof l=="string"&&Es()&&Ov(l)&&(l=Ep[l]),Pv(this.options)){const d=this.options,{onComplete:y,onUpdate:g,motionValue:b,element:A}=d,f=Re(d,["onComplete","onUpdate","motionValue","element"]),p=Uv(t,f);t=p.keyframes,t.length===1&&(t[1]=t[0]),a=p.duration,s=p.times,l=p.ease,i="keyframes"}const m=jv(o.owner.current,u,t,R(I({},this.options),{duration:a,times:s,ease:l}));return m.startTime=c!=null?c:this.calcStartTime(),this.pendingTimeline?(Dp(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:y}=this.options;o.set(Cs(t,this.options,r)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:m,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 bt(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return bt(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=gt(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}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return be;const{animation:n}=r;Dp(n,t)}return be}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:s,ease:l,times:i}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const u=this.options,{motionValue:c,onUpdate:m,onComplete:d,element:y}=u,g=Re(u,["motionValue","onUpdate","onComplete","element"]),b=new Bo(R(I({},g),{keyframes:n,duration:a,type:s,ease:l,times:i,isGenerator:!0})),A=gt(this.time);c.setWithVelocity(b.sample(A-ws).value,b.sample(A).value,ws)}const{onStop:o}=this.options;o&&o(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:s,damping:l,type:i}=t;return Bv()&&n&&Iv.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&s!=="mirror"&&l!==0&&i!=="inertia"}}const kv=No(()=>window.ScrollTimeline!==void 0);class Rv{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;nkv()&&a.attachTimeline?a.attachTimeline(t):r(a));return()=>{n.forEach((a,s)=>{a&&a(),this.animations[s].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 startTime(){return this.getAll("startTime")}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")}}function qv(m){var d=m,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:i,from:o,elapsed:u}=d,c=Re(d,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}const Uo=(e,t,r,n={},a,s)=>l=>{const i=lo(n,e)||{},o=i.delay||n.delay||0;let{elapsed:u=0}=n;u=u-gt(o);let c=R(I({keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity()},i),{delay:-u,onUpdate:d=>{t.set(d),i.onUpdate&&i.onUpdate(d)},onComplete:()=>{l(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:s?void 0:a});qv(i)||(c=I(I({},c),nb(e,c))),c.duration&&(c.duration=gt(c.duration)),c.repeatDelay&&(c.repeatDelay=gt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let m=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(m=!0)),m&&!s&&t.get()!==void 0){const d=Cs(c.keyframes,i);if(d!==void 0)return z.update(()=>{c.onUpdate(d),c.onComplete()}),new Rv([])}return!s&&wp.supports(c)?new wp(c):new Bo(c)},Mv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),zv=e=>ro(e)?e[e.length-1]||0:e;function Oo(e,t){e.indexOf(t)===-1&&e.push(t)}function ko(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Ro{constructor(){this.subscriptions=[]}add(t){return Oo(this.subscriptions,t),()=>ko(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 _v{constructor(t,r={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const s=lt.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=lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Fv(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 Ro);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=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jp)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,jp);return mp(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 Jn(e,t){return new _v(e,t)}function Vv(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jn(r))}function Zv(e,t){let l=As(e,t)||{},{transitionEnd:n={},transition:a={}}=l,s=Re(l,["transitionEnd","transition"]);s=I(I({},s),n);for(const i in s){const o=zv(s[i]);Vv(e,i,o)}}const qo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Bp="data-"+qo("framerAppearId");function Np(e){return e.props[Bp]}const Te=e=>!!(e&&e.getVelocity);function $v(e){return!!(Te(e)&&e.add)}function Mo(e,t){const r=e.getValue("willChange");if($v(r))return r.add(t)}function Wv({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Pp(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var s;let m=t,{transition:l=e.getDefaultTransition(),transitionEnd:i}=m,o=Re(m,["transition","transitionEnd"]);n&&(l=n);const u=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const d in o){const y=e.getValue(d,(s=e.latestValues[d])!==null&&s!==void 0?s:null),g=o[d];if(g===void 0||c&&Wv(c,d))continue;const b=I({delay:r},lo(l||{},d));let A=!1;if(window.MotionHandoffAnimation){const p=Np(e);if(p){const h=window.MotionHandoffAnimation(p,d,z);h!==null&&(b.startTime=h,A=!0)}}Mo(e,d),y.start(Uo(d,y,g,e.shouldReduceMotion&&or.has(d)?{type:!1}:b,e,A));const f=y.animation;f&&u.push(f)}return i&&Promise.all(u).then(()=>{z.update(()=>{i&&Zv(e,i)})}),u}function zo(e,t,r={}){var n;const a=As(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(Pp(e,a,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:m,staggerDirection:d}=s;return Gv(e,t,c+u,m,d,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 Gv(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(Hv).forEach((u,c)=>{u.notify("AnimationStart",t),l.push(zo(u,t,R(I({},s),{delay:r+o(c)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(l)}function Hv(e,t){return e.sortNodePosition(t)}function Kv(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(s=>zo(e,s,r));n=Promise.all(a)}else if(typeof t=="string")n=zo(e,t,r);else{const a=typeof t=="function"?As(e,t,r.custom):t;n=Promise.all(Pp(e,a,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const Qv=so.length;function Up(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Up(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;rPromise.all(t.map(({animation:r,options:n})=>Kv(e,r,n)))}function eT(e){let t=Jv(e),r=Op(),n=!0;const a=o=>(u,c)=>{var m;const d=As(e,c,o==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(d){const y=d,{transition:g,transitionEnd:b}=y,A=Re(y,["transition","transitionEnd"]);u=I(I(I({},u),A),b)}return u};function s(o){t=o(e)}function l(o){const{props:u}=e,c=Up(e.parent)||{},m=[],d=new Set;let y={},g=1/0;for(let A=0;Ag&&v,O=!1;const B=Array.isArray(h)?h:[h];let oe=B.reduce(a(f),{});T===!1&&(oe={});const{prevResolvedValues:Gt={}}=p,fr=I(I({},Gt),oe),sa=ae=>{S=!0,d.has(ae)&&(O=!0,d.delete(ae)),p.needsAnimating[ae]=!0;const L=e.getValue(ae);L&&(L.liveStyle=!1)};for(const ae in fr){const L=oe[ae],N=Gt[ae];if(y.hasOwnProperty(ae))continue;let P=!1;ro(L)&&ro(N)?P=!jm(L,N):P=L!==N,P?L!=null?sa(ae):d.add(ae):L!==void 0&&d.has(ae)?sa(ae):p.protectedKeys[ae]=!0}p.prevProp=h,p.prevResolvedValues=oe,p.isActive&&(y=I(I({},y),oe)),n&&e.blockInitialAnimation&&(S=!1),S&&(!(x&&D)||O)&&m.push(...B.map(ae=>({animation:ae,options:{type:f}})))}if(d.size){const A={};d.forEach(f=>{const p=e.getBaseTarget(f),h=e.getValue(f);h&&(h.liveStyle=!0),A[f]=p!=null?p:null}),m.push({animation:A})}let b=!!m.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(m):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(d=>{var y;return(y=d.animationState)===null||y===void 0?void 0:y.setActive(o,u)}),r[o].isActive=u;const m=l(o);for(const d in r)r[d].protectedKeys={};return m}return{animateChanges:l,setActive:i,setAnimateFunction:s,getState:()=>r,reset:()=>{r=Op(),n=!0}}}function tT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jm(t,e):!1}function dr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Op(){return{animate:dr(!0),whileInView:dr(),whileHover:dr(),whileTap:dr(),whileDrag:dr(),whileFocus:dr(),exit:dr()}}class Wt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rT extends Wt{constructor(t){super(t),t.animationState||(t.animationState=eT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ts(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 nT=0;class aT extends Wt{constructor(){super(...arguments),this.id=nT++}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 sT={animation:{Feature:rT},exit:{Feature:aT}},kp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function js(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const lT=e=>t=>kp(t)&&e(t,js(t));function Tt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function At(e,t,r,n){return Tt(e,t,lT(r),n)}const Rp=(e,t)=>Math.abs(e-t);function iT(e,t){const r=Rp(e.x,t.x),n=Rp(e.y,t.y);return Math.sqrt(cu(r,2)+cu(n,2))}class qp{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 m=_o(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,y=iT(m.offset,{x:0,y:0})>=3;if(!d&&!y)return;const{point:g}=m,{timestamp:b}=pe;this.history.push(R(I({},g),{timestamp:b}));const{onStart:A,onMove:f}=this.handlers;d||(A&&A(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,m)},this.handlePointerMove=(m,d)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Fo(d,this.transformPagePoint),z.update(this.updatePoint,!0)},this.handlePointerUp=(m,d)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=_o(m.type==="pointercancel"?this.lastMoveEventInfo:Fo(d,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,A),g&&g(m,A)},!kp(t))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const l=js(t),i=Fo(l,this.transformPagePoint),{point:o}=i,{timestamp:u}=pe;this.history=[R(I({},o),{timestamp:u})];const{onSessionStart:c}=r;c&&c(t,_o(i,this.history)),this.removeListeners=vt(At(this.contextWindow,"pointermove",this.handlePointerMove),At(this.contextWindow,"pointerup",this.handlePointerUp),At(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}}function Fo(e,t){return t?{point:t(e.point)}:e}function Mp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _o({point:e},t){return{point:e,delta:Mp(e,zp(t)),offset:Mp(e,oT(t)),velocity:uT(t,.1)}}function oT(e){return e[0]}function zp(e){return e[e.length-1]}function uT(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=zp(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>gt(t)));)r--;if(!n)return{x:0,y:0};const s=bt(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 Fp(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const _p=Fp("dragHorizontal"),Vp=Fp("dragVertical");function Zp(e){let t=!1;if(e==="y")t=Vp();else if(e==="x")t=_p();else{const r=_p(),n=Vp();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function $p(){const e=Zp(!0);return e?(e(),!1):!0}function Qr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Wp=1e-4,cT=1-Wp,dT=1+Wp,Gp=.01,mT=0-Gp,pT=0+Gp;function ke(e){return e.max-e.min}function fT(e,t,r){return Math.abs(e-t)<=r}function Hp(e,t,r,n=.5){e.origin=n,e.originPoint=H(t.min,t.max,e.origin),e.scale=ke(r)/ke(t),e.translate=H(r.min,r.max,e.origin)-e.originPoint,(e.scale>=cT&&e.scale<=dT||isNaN(e.scale))&&(e.scale=1),(e.translate>=mT&&e.translate<=pT||isNaN(e.translate))&&(e.translate=0)}function ea(e,t,r,n){Hp(e.x,t.x,r.x,n?n.originX:void 0),Hp(e.y,t.y,r.y,n?n.originY:void 0)}function Kp(e,t,r){e.min=r.min+t.min,e.max=e.min+ke(t)}function hT(e,t,r){Kp(e.x,t.x,r.x),Kp(e.y,t.y,r.y)}function Qp(e,t,r){e.min=t.min-r.min,e.max=e.min+ke(t)}function ta(e,t,r){Qp(e.x,t.x,r.x),Qp(e.y,t.y,r.y)}function yT(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?H(r,e,n.max):Math.min(e,r)),e}function Yp(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 gT(e,{top:t,left:r,bottom:n,right:a}){return{x:Yp(e.x,r,a),y:Yp(e.y,t,n)}}function Xp(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Kr(t.min,t.max-n,e.min):n>a&&(r=Kr(e.min,e.max-a,t.min)),Vt(0,1,r)}function TT(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 Vo=.35;function AT(e=Vo){return e===!1?e=0:e===!0&&(e=Vo),{x:Jp(e,"left","right"),y:Jp(e,"top","bottom")}}function Jp(e,t,r){return{min:ef(e,t),max:ef(e,r)}}function ef(e,t){return typeof e=="number"?e:e[t]||0}const tf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yr=()=>({x:tf(),y:tf()}),rf=()=>({min:0,max:0}),X=()=>({x:rf(),y:rf()});function $e(e){return[e("x"),e("y")]}function nf({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function CT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ST(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 Zo(e){return e===void 0||e===1}function $o({scale:e,scaleX:t,scaleY:r}){return!Zo(e)||!Zo(t)||!Zo(r)}function mr(e){return $o(e)||af(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function af(e){return sf(e.x)||sf(e.y)}function sf(e){return e&&e!=="0%"}function Bs(e,t,r){const n=e-r,a=t*n;return r+a}function lf(e,t,r,n,a){return a!==void 0&&(e=Bs(e,a,n)),Bs(e,r,n)+t}function Wo(e,t=0,r=1,n,a){e.min=lf(e.min,t,r,n,a),e.max=lf(e.max,t,r,n,a)}function of(e,{x:t,y:r}){Wo(e.x,t.translate,t.scale,t.originPoint),Wo(e.y,r.translate,r.scale,r.originPoint)}const uf=.999999999999,cf=1.0000000000001;function xT(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let s,l;for(let i=0;iuf&&(t.x=1),t.yuf&&(t.y=1)}function Xr(e,t){e.min=e.min+t,e.max=e.max+t}function df(e,t,r,n,a=.5){const s=H(e.min,e.max,a);Wo(e,t,r,s,n)}function Jr(e,t){df(e.x,t.x,t.scaleX,t.scale,t.originX),df(e.y,t.y,t.scaleY,t.scale,t.originY)}function mf(e,t){return nf(ST(e.getBoundingClientRect(),t))}function IT(e,t,r){const n=mf(e,r),{scroll:a}=t;return a&&(Xr(n.x,a.offset.x),Xr(n.y,a.offset.y)),n}const pf=({current:e})=>e?e.ownerDocument.defaultView:null,LT=new WeakMap;class DT{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=c=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(js(c,"page").point)},s=(c,m)=>{const{drag:d,dragPropagation:y,onDragStart:g}=this.getProps();if(d&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zp(d),!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),$e(A=>{let f=this.getAxisMotionValue(A).get()||0;if(st.test(f)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[A];h&&(f=ke(h)*(parseFloat(f)/100))}}this.originPoint[A]=f}),g&&z.postRender(()=>g(c,m)),Mo(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(c,m)=>{const{dragPropagation:d,dragDirectionLock:y,onDirectionLock:g,onDrag:b}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:A}=m;if(y&&this.currentDirection===null){this.currentDirection=ET(A),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",m.point,A),this.updateAxis("y",m.point,A),this.visualElement.render(),b&&b(c,m)},i=(c,m)=>this.stop(c,m),o=()=>$e(c=>{var m;return this.getAnimationState(c)==="paused"&&((m=this.getAxisMotionValue(c).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new qp(t,{onSessionStart:a,onStart:s,onMove:l,onSessionEnd:i,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:pf(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||!Ns(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(l=yT(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&&Qr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=gT(a.layoutBox,r):this.constraints=!1,this.elastic=AT(n),s!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&$e(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=TT(a.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Qr(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=IT(n,a.root,this.visualElement.getTransformPagePoint());let l=bT(a.layout.layoutBox,s);if(r){const i=r(CT(l));this.hasMutatedConstraints=!!i,i&&(l=nf(i))}return l}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:i}=this.getProps(),o=this.constraints||{},u=$e(c=>{if(!Ns(c,r,this.currentDirection))return;let m=o&&o[c]||{};l&&(m={min:0,max:0});const d=a?200:1e6,y=a?40:1e7,g=I(I({type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10},s),m);return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Mo(this.visualElement,t),n.start(Uo(t,n,0,r,this.visualElement,!1))}stopAnimation(){$e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$e(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){$e(r=>{const{drag:n}=this.getProps();if(!Ns(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]-H(l,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Qr(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};$e(l=>{const i=this.getAxisMotionValue(l);if(i&&this.constraints!==!1){const o=i.get();a[l]=vT({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(),$e(l=>{if(!Ns(l,t,null))return;const i=this.getAxisMotionValue(l),{min:o,max:u}=this.constraints[l];i.set(H(o,u,a[l]))})}addListeners(){if(!this.visualElement.current)return;LT.set(this.visualElement,this);const t=this.visualElement.current,r=At(t,"pointerdown",o=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(o)}),n=()=>{const{dragConstraints:o}=this.getProps();Qr(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=Tt(window,"resize",()=>this.scalePositionWithinConstraints()),i=a.addEventListener("didUpdate",({delta:o,hasLayoutChanged:u})=>{this.isDragging&&u&&($e(c=>{const m=this.getAxisMotionValue(c);m&&(this.originPoint[c]+=o[c].translate,m.set(m.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=Vo,dragMomentum:i=!0}=t;return R(I({},t),{drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:i})}}function Ns(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function ET(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class wT extends Wt{constructor(t){super(t),this.removeGroupControls=be,this.removeListeners=be,this.controls=new DT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||be}unmount(){this.removeGroupControls(),this.removeListeners()}}const ff=e=>(t,r)=>{e&&z.postRender(()=>e(t,r))};class jT extends Wt{constructor(){super(...arguments),this.removePointerDownListener=be}onPointerDown(t){this.session=new qp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:ff(t),onStart:ff(r),onMove:n,onEnd:(s,l)=>{delete this.session,a&&z.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=At(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Go=w.createContext(null);function BT(){const e=w.useContext(Go);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=w.useId();w.useEffect(()=>n(a),[]);const s=w.useCallback(()=>r&&r(a),[a,r]);return!t&&r?[!1,s]:[!0]}const hf=w.createContext({}),yf=w.createContext({}),Ps={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ra={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const r=gf(e,t.target.x),n=gf(e,t.target.y);return`${r}% ${n}%`}},NT={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=$t.parse(e);if(a.length>5)return n;const s=$t.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=H(i,o,.5);return typeof a[2+l]=="number"&&(a[2+l]/=u),typeof a[3+l]=="number"&&(a[3+l]/=u),s(a)}},Us={};function PT(e){Object.assign(Us,e)}const{schedule:Ho,cancel:F0}=Nm(queueMicrotask,!1);class UT extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:s}=t;PT(OT),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()}))),Ps.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(),Ho.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 bf(e){const[t,r]=BT(),n=w.useContext(hf);return k.jsx(UT,R(I({},e),{layoutGroup:n,switchLayoutGroup:w.useContext(yf),isPresent:t,safeToRemove:r}))}const OT={borderRadius:R(I({},ra),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ra,borderTopRightRadius:ra,borderBottomLeftRadius:ra,borderBottomRightRadius:ra,boxShadow:NT},vf=["TopLeft","TopRight","BottomLeft","BottomRight"],kT=vf.length,Tf=e=>typeof e=="string"?parseFloat(e):e,Af=e=>typeof e=="number"||j.test(e);function RT(e,t,r,n,a,s){a?(e.opacity=H(0,r.opacity!==void 0?r.opacity:1,qT(n)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,MT(n))):s&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let l=0;lnt?1:r(Kr(e,t,n))}function xf(e,t){e.min=t.min,e.max=t.max}function We(e,t){xf(e.x,t.x),xf(e.y,t.y)}function If(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Lf(e,t,r,n,a){return e-=t,e=Bs(e,1/r,n),a!==void 0&&(e=Bs(e,1/a,n)),e}function zT(e,t=0,r=1,n=.5,a,s=e,l=e){if(st.test(t)&&(t=parseFloat(t),t=H(l.min,l.max,t/100)-l.min),typeof t!="number")return;let i=H(s.min,s.max,n);e===s&&(i-=t),e.min=Lf(e.min,t,r,i,a),e.max=Lf(e.max,t,r,i,a)}function Df(e,t,[r,n,a],s,l){zT(e,t[r],t[n],t[a],t.scale,s,l)}const FT=["x","scaleX","originX"],_T=["y","scaleY","originY"];function Ef(e,t,r,n){Df(e.x,t,FT,r?r.x:void 0,n?n.x:void 0),Df(e.y,t,_T,r?r.y:void 0,n?n.y:void 0)}function wf(e){return e.translate===0&&e.scale===1}function jf(e){return wf(e.x)&&wf(e.y)}function Bf(e,t){return e.min===t.min&&e.max===t.max}function VT(e,t){return Bf(e.x,t.x)&&Bf(e.y,t.y)}function Nf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pf(e,t){return Nf(e.x,t.x)&&Nf(e.y,t.y)}function Uf(e){return ke(e.x)/ke(e.y)}function Of(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZT{constructor(){this.members=[]}add(t){Oo(this.members,t),t.scheduleRender()}remove(t){if(ko(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 $T(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:m,rotateY:d,skewX:y,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}`),c&&(n+=`rotate(${c}deg) `),m&&(n+=`rotateX(${m}deg) `),d&&(n+=`rotateY(${d}deg) `),y&&(n+=`skewX(${y}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 WT=(e,t)=>e.depth-t.depth;class GT{constructor(){this.children=[],this.isDirty=!1}add(t){Oo(this.children,t),this.isDirty=!0}remove(t){ko(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WT),this.isDirty=!1,this.children.forEach(t)}}function Os(e){const t=Te(e)?e.get():e;return Mv(t)?t.toValue():t}function HT(e,t){const r=lt.now(),n=({timestamp:a})=>{const s=a-r;s>=t&&(_t(n),e(s-t))};return z.read(n,!0),()=>_t(n)}function KT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function QT(e,t,r){const n=Te(e)?e:Jn(e);return n.start(Uo("",n,t,r)),n.animation}const pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},na=typeof window!="undefined"&&window.MotionDebug!==void 0,Ko=["","X","Y","Z"],YT={visibility:"hidden"},kf=1e3;let XT=0;function Qo(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Rf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=Np(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",z,!(a||s))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Rf(n)}function qf({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(l={},i=t==null?void 0:t()){this.id=XT++,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,na&&(pr.totalNodes=pr.resolvedTargetDeltas=pr.recalculatedProjection=0),this.nodes.forEach(tA),this.nodes.forEach(lA),this.nodes.forEach(iA),this.nodes.forEach(rA),na&&window.MotionDebug.record(pr)},this.resolvedRelativeTargetAt=0,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,m&&m(),m=HT(d,250),Ps.hasAnimatedSinceResize&&(Ps.hasAnimatedSinceResize=!1,this.nodes.forEach(zf))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||u)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:d,hasRelativeTargetChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||mA,{onLayoutAnimationStart:A,onLayoutAnimationComplete:f}=c.getProps(),p=!this.targetLayout||!Pf(this.targetLayout,g)||y,h=!d&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,h);const v=R(I({},lo(b,"layout")),{onPlay:A,onComplete:f});(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else d||zf(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,_t(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oA),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.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rf(this),!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;Ff(m.x,l.x,T),Ff(m.y,l.y,T),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ta(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cA(this.relativeTarget,this.relativeTargetOrigin,d,T),h&&VT(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=X()),We(h,this.relativeTarget)),b&&(this.animationValues=c,RT(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&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{Ps.hasAnimatedSinceResize=!0,this.currentAnimation=QT(0,kf,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(kf),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&&Wf(this.options.animationType,this.layout.layoutBox,u.layoutBox)){o=this.target||X();const m=ke(this.layout.layoutBox.x);o.x.min=l.target.x.min,o.x.max=o.x.min+m;const d=ke(this.layout.layoutBox.y);o.y.min=l.target.y.min,o.y.max=o.y.min+d}We(i,o),Jr(i,c),ea(this.projectionDeltaWithTransform,this.layoutCorrected,i,c)}}registerSharedNode(l,i){this.sharedNodes.has(l)||this.sharedNodes.set(l,new ZT),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&&Qo("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(Mf),this.root.sharedNodes.clear()}}}function JT(e){e.updateLayout()}function eA(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"?$e(m=>{const d=l?r.measuredBox[m]:r.layoutBox[m],y=ke(d);d.min=n[m].min,d.max=d.min+y}):Wf(s,r.layoutBox,n)&&$e(m=>{const d=l?r.measuredBox[m]:r.layoutBox[m],y=ke(n[m]);d.max=d.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const i=Yr();ea(i,n,r.layoutBox);const o=Yr();l?ea(o,e.applyTransform(a,!0),r.measuredBox):ea(o,n,r.layoutBox);const u=!jf(i);let c=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:d,layout:y}=m;if(d&&y){const g=X();ta(g,r.layoutBox,d.layoutBox);const b=X();ta(b,n,y.layoutBox),Pf(g,b)||(c=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=m)}}}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 tA(e){na&&pr.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 rA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nA(e){e.clearSnapshot()}function Mf(e){e.clearMeasurements()}function aA(e){e.isLayoutDirty=!1}function sA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lA(e){e.resolveTargetDelta()}function iA(e){e.calcProjection()}function oA(e){e.resetSkewAndRotation()}function uA(e){e.removeLeadSnapshot()}function Ff(e,t,r){e.translate=H(t.translate,0,r),e.scale=H(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function _f(e,t,r,n){e.min=H(t.min,r.min,n),e.max=H(t.max,r.max,n)}function cA(e,t,r,n){_f(e.x,t.x,r.x,n),_f(e.y,t.y,r.y,n)}function dA(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mA={duration:.45,ease:[.4,0,.1,1]},Vf=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zf=Vf("applewebkit/")&&!Vf("chrome/")?Math.round:be;function $f(e){e.min=Zf(e.min),e.max=Zf(e.max)}function pA(e){$f(e.x),$f(e.y)}function Wf(e,t,r){return e==="position"||e==="preserve-aspect"&&!fT(Uf(t),Uf(r),.2)}function fA(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const hA=qf({attachResizeListener:(e,t)=>Tt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yo={current:void 0},Gf=qf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yo.current){const e=new hA({});e.mount(window),e.setOptions({layoutScroll:!0}),Yo.current=e}return Yo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yA={pan:{Feature:jT},drag:{Feature:wT,ProjectionNode:Gf,MeasureLayout:bf}};function Hf(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(s,l)=>{if(s.pointerType==="touch"||$p())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 At(e.current,r,a,{passive:!e.getProps()[n]})}class gA extends Wt{mount(){this.unmount=vt(Hf(this.node,!0),Hf(this.node,!1))}unmount(){}}class bA extends Wt{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=vt(Tt(this.node.current,"focus",()=>this.onFocus()),Tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Kf=(e,t)=>t?e===t?!0:Kf(e,t.parentElement):!1;function Xo(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,js(r))}class vA extends Wt{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=At(window,"pointerup",(i,o)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:m}=this.node.getProps(),d=!m&&!Kf(this.node.current,i.target)?c:u;d&&z.update(()=>d(i,o))},{passive:!(n.onTap||n.onPointerUp)}),l=At(window,"pointercancel",(i,o)=>this.cancelPress(i,o),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=vt(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()||Xo("up",(o,u)=>{const{onTap:c}=this.node.getProps();c&&z.postRender(()=>c(o,u))})};this.removeEndListeners(),this.removeEndListeners=Tt(this.node.current,"keyup",l),Xo("down",(i,o)=>{this.startPress(i,o)})},r=Tt(this.node.current,"keydown",t),n=()=>{this.isPressing&&Xo("cancel",(s,l)=>this.cancelPress(s,l))},a=Tt(this.node.current,"blur",n);this.removeAccessibleListeners=vt(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),!$p()}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=At(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Tt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Jo=new WeakMap,eu=new WeakMap,TA=e=>{const t=Jo.get(e.target);t&&t(e)},AA=e=>{e.forEach(TA)};function CA(r){var n=r,{root:e}=n,t=Re(n,["root"]);const a=e||document;eu.has(a)||eu.set(a,{});const s=eu.get(a),l=JSON.stringify(t);return s[l]||(s[l]=new IntersectionObserver(AA,I({root:e},t))),s[l]}function SA(e,t,r){const n=CA(t);return Jo.set(e,r),n.observe(e),()=>{Jo.delete(e),n.unobserve(e)}}const xA={some:0,all:1};class IA extends Wt{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:xA[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:m}=this.node.getProps(),d=u?c:m;d&&d(o)};return SA(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(LA(t,r))&&this.startObserver()}unmount(){}}function LA({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const DA={inView:{Feature:IA},tap:{Feature:vA},focus:{Feature:bA},hover:{Feature:gA}},EA={layout:{ProjectionNode:Gf,MeasureLayout:bf}},Qf=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ks=w.createContext({}),tu=typeof window!="undefined",wA=tu?w.useLayoutEffect:w.useEffect,Yf=w.createContext({strict:!1});function jA(e,t,r,n,a){var s,l;const{visualElement:i}=w.useContext(ks),o=w.useContext(Yf),u=w.useContext(Go),c=w.useContext(Qf).reducedMotion,m=w.useRef();n=n||o.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:i,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=m.current,y=w.useContext(yf);d&&!d.projection&&a&&(d.type==="html"||d.type==="svg")&&BA(m.current,r,a,y),w.useInsertionEffect(()=>{d&&d.update(r,u)});const g=r[Bp],b=w.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,g)));return wA(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),Ho.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),w.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)===null||A===void 0||A.call(window,g)}),b.current=!1))}),d}function BA(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:Xf(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||i&&Qr(i),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,layoutScroll:o,layoutRoot:u})}function Xf(e){if(e)return e.options.allowProjection!==!1?e.projection:Xf(e.parent)}function NA(e,t,r){return w.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Qr(r)&&(r.current=n))},[t])}function Rs(e){return Ts(e.animate)||so.some(t=>$n(e[t]))}function Jf(e){return!!(Rs(e)||e.variants)}function PA(e,t){if(Rs(e)){const{initial:r,animate:n}=e;return{initial:r===!1||$n(r)?r:void 0,animate:$n(n)?n:void 0}}return e.inherit!==!1?t:{}}function UA(e){const{initial:t,animate:r}=PA(e,w.useContext(ks));return w.useMemo(()=>({initial:t,animate:r}),[eh(t),eh(r)])}function eh(e){return Array.isArray(e)?e.join(" "):e}const th={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"]},en={};for(const e in th)en[e]={isEnabled:t=>th[e].some(r=>!!t[r])};function OA(e){for(const t in e)en[t]=I(I({},en[t]),e[t])}const kA=Symbol.for("motionComponentSymbol");function RA({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&OA(e);function s(i,o){let u;const c=R(I(I({},w.useContext(Qf)),i),{layoutId:qA(i)}),{isStatic:m}=c,d=UA(i),y=n(i,m);if(!m&&tu){MA();const g=zA(c);u=g.MeasureLayout,d.visualElement=jA(a,y,c,t,g.ProjectionNode)}return k.jsxs(ks.Provider,{value:d,children:[u&&d.visualElement?k.jsx(u,I({visualElement:d.visualElement},c)):null,r(a,i,NA(y,d.visualElement,o),y,m,d.visualElement)]})}const l=w.forwardRef(s);return l[kA]=a,l}function qA({layoutId:e}){const t=w.useContext(hf).id;return t&&e!==void 0?t+"-"+e:e}function MA(e,t){w.useContext(Yf).strict}function zA(e){const{drag:t,layout:r}=en;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}}const FA=["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 ru(e){return typeof e!="string"||e.includes("-")?!1:!!(FA.indexOf(e)>-1||/[A-Z]/u.test(e))}function rh(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 nh=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 ah(e,t,r,n){rh(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(nh.has(a)?a:qo(a),t.attrs[a])}function sh(e,{layout:t,layoutId:r}){return or.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Us[e]||e==="opacity")}function nu(e,t,r){var n;const{style:a}=e,s={};for(const l in a)(Te(a[l])||t.style&&Te(t.style[l])||sh(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 lh(e,t,r){const n=nu(e,t,r);for(const a in e)if(Te(e[a])||Te(t[a])){const s=Wn.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[s]=e[a]}return n}function _A(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}function VA({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,a,s){const l={latestValues:ZA(n,a,s,e),renderState:t()};return r&&(l.mount=i=>r(n,i,l)),l}const ih=e=>(t,r)=>{const n=w.useContext(ks),a=w.useContext(Go),s=()=>VA(e,t,n,a);return r?s():_A(s)};function ZA(e,t,r,n){const a={},s=n(e,{});for(const y in s)a[y]=Os(s[y]);let{initial:l,animate:i}=e;const o=Rs(e),u=Jf(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 m=c?i:l;if(m&&typeof m!="boolean"&&!Ts(m)){const y=Array.isArray(m)?m:[m];for(let g=0;g({style:{},transform:{},transformOrigin:{},vars:{}}),oh=()=>R(I({},au()),{attrs:{}}),uh=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$A={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WA=Wn.length;function GA(e,t,r){let n="",a=!0;for(let s=0;stypeof e=="string"&&e.toLowerCase()==="svg",XA={useVisualState:ih({scrapeMotionValuesFromProps:lh,createRenderState:oh,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(()=>{lu(r,n,iu(t.tagName),e.transformTemplate),ah(t,r)})}})},JA={useVisualState:ih({scrapeMotionValuesFromProps:nu,createRenderState:au})};function dh(e,t,r){for(const n in t)!Te(t[n])&&!sh(n,r)&&(e[n]=t[n])}function e0({transformTemplate:e},t){return w.useMemo(()=>{const r=au();return su(r,t,e),Object.assign({},r.vars,r.style)},[t])}function t0(e,t){const r=e.style||{},n={};return dh(n,r,e),Object.assign(n,e0(e,t)),n}function r0(e,t){const r={},n=t0(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const n0=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 qs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n0.has(e)}let mh=e=>!qs(e);function a0(e){e&&(mh=t=>t.startsWith("on")?!qs(t):e(t))}try{a0(require("@emotion/is-prop-valid").default)}catch(e){}function s0(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(mh(a)||r===!0&&qs(a)||!t&&!qs(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function l0(e,t,r,n){const a=w.useMemo(()=>{const s=oh();return lu(s,t,iu(n),e.transformTemplate),R(I({},s.attrs),{style:I({},s.style)})},[t]);if(e.style){const s={};dh(s,e.style,e),a.style=I(I({},s),a.style)}return a}function i0(e=!1){return(r,n,a,{latestValues:s},l)=>{const o=(ru(r)?l0:r0)(n,s,l,r),u=s0(n,typeof r=="string",e),c=r!==w.Fragment?R(I(I({},u),o),{ref:a}):{},{children:m}=n,d=w.useMemo(()=>Te(m)?m.get():m,[m]);return w.createElement(r,R(I({},c),{children:d}))}}function o0(e,t){return function(n,{forwardMotionProps:a}={forwardMotionProps:!1}){const s=ru(n)?XA:JA,l=R(I({},s),{preloadedFeatures:e,useRender:i0(a),createVisualElement:t,Component:n});return RA(l)}}const ou={current:null},ph={current:!1};function u0(){if(ph.current=!0,!!tu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ou.current=e.matches;e.addListener(t),t()}else ou.current=!1}function c0(e,t,r){for(const n in t){const a=t[n],s=r[n];if(Te(a))e.addValue(n,a);else if(Te(s))e.addValue(n,Jn(a,{owner:e}));else if(s!==a)if(e.hasValue(n)){const l=e.getValue(n);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(n);e.addValue(n,Jn(l!==void 0?l:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const fh=new WeakMap,d0=[...Ym,ve,$t],m0=e=>d0.find(Qm(e)),hh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class p0{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:s,visualState:l},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ho,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=lt.now();this.renderScheduledAtthis.bindToMotionValue(n,r)),ph.current||u0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ou.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){fh.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=or.has(t),a=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),s(),l&&l(),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 en){const r=en[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jn(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"&&(_m(a)||Fm(a))?a=parseFloat(a):!m0(a)&&$t.test(r)&&(a=op(t,r)),this.setBaseTarget(t,Te(a)?a.get():a)),Te(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=no(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&&!Te(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 Ro),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class yh extends p0{constructor(){super(...arguments),this.KeyframeResolver=up}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 f0(e){return window.getComputedStyle(e)}class h0 extends yh{constructor(){super(...arguments),this.type="html",this.renderInstance=rh}readValueFromInstance(t,r){if(or.has(r)){const n=Co(r);return n&&n.default||0}else{const n=f0(t),a=(Zm(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return mf(t,r)}build(t,r,n){su(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return nu(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class y0 extends yh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(or.has(r)){const n=Co(r);return n&&n.default||0}return r=nh.has(r)?r:qo(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return lh(t,r,n)}build(t,r,n){lu(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){ah(t,r,n,a)}mount(t){this.isSVGTag=iu(t.tagName),super.mount(t)}}const g0=(e,t)=>ru(e)?new y0(t):new h0(t,{allowProjection:e!==w.Fragment}),b0=o0(I(I(I(I({},sT),DA),yA),EA),g0),v0=Xg(b0),gh={name:"dc-connectors",private:!0,version:"0.1.2",type:"module",scripts:{dev:"vite",build:"vite build","build:connectors":"node ./scripts/build-connectors.js","build:mulesoft":"node ./scripts/build-mulesoft.js",lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",preview:"vite preview",commit:"git-cz"},dependencies:{"framer-motion":"^11.2.11",react:"^18.2.0","react-aria-components":"^1.2.1","react-dom":"^18.2.0","tailwindcss-animate":"^1.0.7","tailwindcss-react-aria-components":"^1.1.3"},devDependencies:{"@types/react":"^18.2.66","@types/react-dom":"^18.2.22","@typescript-eslint/eslint-plugin":"^7.2.0","@typescript-eslint/parser":"^7.2.0","@vitejs/plugin-react":"^4.2.1",autoprefixer:"^10.4.19",eslint:"^8.57.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-react-refresh":"^0.4.6",postcss:"^8.4.38","postcss-prefix-selector":"^1.16.1",tailwindcss:"^3.4.3",typescript:"^5.2.2",vite:"^5.2.0"},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}},T0={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.45,.14,.1,.97]}}},A0=gh.version,C0=`https://a.sfdcstatic.com/digital/@sfdc-www/open-blade-libs/${gh.name}/v${A0}`,aa=new URLSearchParams(window.location.search).has("retroMode"),S0=({index:e,item:t,isVisible:r,shouldAnimate:n})=>{const a=s=>k.jsxs(v0.div,{className:`card shadow-lg p-4 rounded-lg flex items-center ${aa?"bg-black border-2 text-green-400 font-mono border-yellow-400":""}`,initial:"hidden",variants:T0,"data-index":e,animate:n?"visible":"hidden",children:[k.jsx("div",{className:`flex-none py-3 pr-4 ${aa?"border-yellow-400":"border-gray-200"} border-r-2`,children:k.jsx("img",{role:"presentation",src:C0+t.iconUrl,alt:t.label,className:"w-10 h-10 align-middle"})}),k.jsxs("div",{className:"pl-4 flex-grow overflow-hidden items-center",children:[k.jsxs("div",{className:"flex-grow",children:[t.releaseLevel==="IN_DEV"&&k.jsx("div",{className:"px-2 py-1 bg-gray-800 rounded-xl border border-gray-800 justify-center items-center inline-flex mb-2",children:k.jsx("div",{className:"text-white text-[10px] font-bold leading-none tracking-tight",children:"Coming Soon"})}),t.releaseLevel==="BETA"&&k.jsx("div",{className:`px-2 py-1 rounded-xl border justify-center items-center inline-flex mb-2 ${aa?"bg-fuchsia-500 text-white":"text-fuchsia-700 border-violet-50 bg-violet-50"}`,children:k.jsx("div",{className:"text-[10px] font-bold leading-none tracking-tight",children:"Beta"})})]}),k.jsx("h3",{className:`mb-2 font-bold overflow-hidden truncate ${aa?"text-green-400":"text-sfnavy"}`,children:t.label}),k.jsxs("p",{className:`text-xs ${aa?"text-green-400":"text-gray-800"}`,children:[s&&(s.length>120?`${s.substring(0,120)}...`:s),t.releaseLevel==="MuleSoft"&&"Ingest data via MuleSoft’s Anypoint Exchange"]})]})]},e);return k.jsxs(k.Fragment,{children:[a(t.ingressDescription),t.egressDescription&&a(t.egressDescription)]})},x0=Qg.map(e=>R(I({},e),{name:e.label||"",features:e.label||[],featuresConfig:{IncrementalUpdate:{deleteSupport:"No"}},connectionAttributes:{},extractAttributes:{}})),I0=[...Kg.filter(e=>e.releaseLevel!=="IN_DEV"&&e.releaseLevel!=="PILOT"&&e.name!=="OCI"&&e.name!=="TenantBillingUsageConnector"),...x0,Yg].sort((e,t)=>e.label.localeCompare(t.label));function L0(){const[e,t]=w.useState(""),[r,n]=w.useState(new Set),[a,s]=w.useState(new Set),[l,i]=w.useState(0),o=y=>{t(y.target.value),n(new Set)},u=I0.filter(y=>e?e==="GA"?y.releaseLevel==="GA"||y.releaseLevel==="MuleSoft":y.releaseLevel===e:!0);w.useEffect(()=>{i(u.length)},[u]);const c=w.useRef(new IntersectionObserver(y=>{const g=y.filter(b=>b.isIntersecting);if(g.length){const b=new Set(r),A=new Set(a);g.forEach(f=>{const p=Number(f.target.getAttribute("data-index"));b.add(p),A.add(p)}),n(b),s(A)}},{threshold:.5}));w.useEffect(()=>{const y=c.current;return document.querySelectorAll(".card").forEach(b=>{y.observe(b)}),()=>{y.disconnect()}},[u]);const d=new URLSearchParams(window.location.search).has("retroMode");return k.jsxs(k.Fragment,{children:[d&&k.jsx("style",{children:` .relative.marquee--blade.marquee--center { background: #000; } .marquee--blade .blade__description p, .marquee--blade .container .grid.grid_main .content__wrapper .marquee__blade-heading .headline { color: rgb(74 222 128); font-family: monospace; } a.cta_button[data-variant=primary] { background-color: yellow; color: black; border: 3px solid rgb(74 222 128); outline:none; } `}),k.jsx("div",{className:`${d?"bg-black text-green-400 py-10":""}`,children:k.jsx("div",{className:"container mx-auto lg:mt-0 md:mt-5 pt-0 min-h-screen ",children:k.jsxs("div",{className:"flex flex-col items-center min-h-screen text-gray-900 font-sans",children:[k.jsxs("div",{className:"flex space-x-4 mb-6",children:[k.jsx("label",{htmlFor:"filter",className:`mr-2 font-bold text-[18px]${d?"text-green-400":""}`,children:"Filter:"}),k.jsxs("select",{id:"filter",value:e,onChange:o,className:`border p-1 rounded ${d?"bg-black text-green-400 border-green-400":""}`,children:[k.jsx("option",{value:"",children:"All"}),k.jsx("option",{value:"BETA",children:"Beta"}),k.jsx("option",{value:"GA",children:"General Availability"})]})]}),d&&k.jsxs("div",{id:"connectorCounter",className:"mb-4 font-mono text-4xl text-green-600 bg-black p-4 rounded",children:[l," Data Sources"]}),!d&&k.jsxs("div",{id:"connectorCounter",className:" mb-4",children:[l," Data Sources"]}),k.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 gap-6 p-4",children:u.map((y,g)=>k.jsx(S0,{index:g,item:y,isVisible:r.has(g)||a.has(g),shouldAnimate:r.has(g),"data-index":g,retroMode:d},g))})]})})})]})}Hs.createRoot(document.getElementById("wps-dc-integrator")).render(k.jsx(Rh.StrictMode,{children:k.jsx(L0,{})}))});