@opencx/widget 3.0.66 → 3.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@
46
46
  `+u[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=i);break}}}finally{Qh=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Mu(n):""}function kN(e){switch(e.tag){case 26:case 27:case 5:return Mu(e.type);case 16:return Mu("Lazy");case 13:return Mu("Suspense");case 19:return Mu("SuspenseList");case 0:case 15:return e=Jh(e.type,!1),e;case 11:return e=Jh(e.type.render,!1),e;case 1:return e=Jh(e.type,!0),e;default:return""}}function Ky(e){try{var t="";do t+=kN(e),e=e.return;while(e);return t}catch(n){return`
47
47
  Error generating stack: `+n.message+`
48
48
  `+n.stack}}function Gs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Qy(e){if(Gs(e)!==e)throw Error($(188))}function RN(e){var t=e.alternate;if(!t){if(t=Gs(e),t===null)throw Error($(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qy(i),e;if(a===r)return Qy(i),t;a=a.sibling}throw Error($(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error($(189))}}if(n.alternate!==r)throw Error($(190))}if(n.tag!==3)throw Error($(188));return n.stateNode.current===n?e:t}function Jy(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Jy(e),t!==null)return t;e=e.sibling}return null}var Lu=Array.isArray,ot=TN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ka={pending:!1,data:null,method:null,action:null},em=[],Ws=-1;function Ir(e){return{current:e}}function zt(e){0>Ws||(e.current=em[Ws],em[Ws]=null,Ws--)}function ct(e,t){Ws++,em[Ws]=e.current,e.current=t}var Pr=Ir(null),Iu=Ir(null),qi=Ir(null),cd=Ir(null);function dd(e,t){switch(ct(qi,t),ct(Iu,e),ct(Pr,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?d2(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=d2(e),t=f2(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}zt(Pr),ct(Pr,t)}function Xs(){zt(Pr),zt(Iu),zt(qi)}function tm(e){e.memoizedState!==null&&ct(cd,e);var t=Pr.current,n=f2(t,e.type);t!==n&&(ct(Iu,e),ct(Pr,n))}function fd(e){Iu.current===e&&(zt(Pr),zt(Iu)),cd.current===e&&(zt(cd),Cl._currentValue=Ka)}var nm=Object.prototype.hasOwnProperty,rm=It.unstable_scheduleCallback,im=It.unstable_cancelCallback,ON=It.unstable_shouldYield,NN=It.unstable_requestPaint,Br=It.unstable_now,DN=It.unstable_getCurrentPriorityLevel,ex=It.unstable_ImmediatePriority,tx=It.unstable_UserBlockingPriority,pd=It.unstable_NormalPriority,MN=It.unstable_LowPriority,nx=It.unstable_IdlePriority,LN=It.log,IN=It.unstable_setDisableYieldValue,Pu=null,Ln=null;function PN(e){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Pu,e,void 0,(e.current.flags&128)===128)}catch{}}function $i(e){if(typeof LN=="function"&&IN(e),Ln&&typeof Ln.setStrictMode=="function")try{Ln.setStrictMode(Pu,e)}catch{}}var In=Math.clz32?Math.clz32:FN,BN=Math.log,UN=Math.LN2;function FN(e){return e>>>=0,e===0?32:31-(BN(e)/UN|0)|0}var hd=128,md=4194304;function Za(e){var t=e&42;if(t!==0)return t;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:return 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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=e.warmLanes;e=e.finishedLanes!==0;var o=n&134217727;return o!==0?(n=o&~i,n!==0?r=Za(n):(a&=o,a!==0?r=Za(a):e||(s=o&~s,s!==0&&(r=Za(s))))):(o=n&~i,o!==0?r=Za(o):a!==0?r=Za(a):e||(s=n&~s,s!==0&&(r=Za(s)))),r===0?0:t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===32&&(s&4194176)!==0)?t:r}function Bu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function jN(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rx(){var e=hd;return hd<<=1,!(hd&4194176)&&(hd=128),e}function ix(){var e=md;return md<<=1,!(md&62914560)&&(md=4194304),e}function am(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Uu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function HN(e,t,n,r,i,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,u=e.expirationTimes,l=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-In(n),d=1<<c;o[c]=0,u[c]=-1;var f=l[c];if(f!==null)for(l[c]=null,c=0;c<f.length;c++){var p=f[c];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ax(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(s&~t))}function ax(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-In(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&4194218}function sx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-In(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ox(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ux(){var e=ot.p;return e!==0?e:(e=window.event,e===void 0?32:O2(e.type))}function zN(e,t){var n=ot.p;try{return ot.p=e,t()}finally{ot.p=n}}var Gi=Math.random().toString(36).slice(2),rn="__reactFiber$"+Gi,Tn="__reactProps$"+Gi,Ks="__reactContainer$"+Gi,sm="__reactEvents$"+Gi,VN="__reactListeners$"+Gi,YN="__reactHandles$"+Gi,lx="__reactResources$"+Gi,Fu="__reactMarker$"+Gi;function om(e){delete e[rn],delete e[Tn],delete e[sm],delete e[VN],delete e[YN]}function Qa(e){var t=e[rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ks]||n[rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=m2(e);e!==null;){if(n=e[rn])return n;e=m2(e)}return t}e=n,n=e.parentNode}return null}function Zs(e){if(e=e[rn]||e[Ks]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ju(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error($(33))}function Qs(e){var t=e[lx];return t||(t=e[lx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Vt(e){e[Fu]=!0}var cx=new Set,dx={};function Ja(e,t){Js(e,t),Js(e+"Capture",t)}function Js(e,t){for(dx[e]=t,e=0;e<t.length;e++)cx.add(t[e])}var ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qN=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fx={},px={};function $N(e){return nm.call(px,e)?!0:nm.call(fx,e)?!1:qN.test(e)?px[e]=!0:(fx[e]=!0,!1)}function bd(e,t,n){if($N(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vd(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function si(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Jn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GN(e){var t=hx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yd(e){e._valueTracker||(e._valueTracker=GN(e))}function mx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var WN=/[\n"\\]/g;function er(e){return e.replace(WN,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function um(e,t,n,r,i,a,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jn(t)):e.value!==""+Jn(t)&&(e.value=""+Jn(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?lm(e,s,Jn(t)):n!=null?lm(e,s,Jn(n)):r!=null&&e.removeAttribute("value"),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Jn(o):e.removeAttribute("name")}function gx(e,t,n,r,i,a,s,o){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+Jn(n):"",t=t!=null?""+Jn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function lm(e,t,n){t==="number"&&xd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function eo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function bx(e,t,n){if(t!=null&&(t=""+Jn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Jn(n):""}function vx(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error($(92));if(Lu(r)){if(1<r.length)throw Error($(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Jn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r)}function to(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var XN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yx(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||XN.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function xx(e,t,n){if(t!=null&&typeof t!="object")throw Error($(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&yx(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&yx(e,a,t[a])}function cm(e){if(e.indexOf("-")===-1)return!1;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 KN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ZN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ed(e){return ZN.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var dm=null;function fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var no=null,ro=null;function Ex(e){var t=Zs(e);if(t&&(e=t.stateNode)){var n=e[Tn]||null;e:switch(e=t.stateNode,t.type){case"input":if(um(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+er(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Tn]||null;if(!i)throw Error($(90));um(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&mx(r)}break e;case"textarea":bx(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&eo(e,!!n.multiple,t,!1)}}}var pm=!1;function wx(e,t,n){if(pm)return e(t,n);pm=!0;try{var r=e(t);return r}finally{if(pm=!1,(no!==null||ro!==null)&&(af(),no&&(t=no,e=ro,ro=no=null,Ex(t),e)))for(t=0;t<e.length;t++)Ex(e[t])}}function Hu(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Tn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error($(231,t,typeof n));return n}var hm=!1;if(ai)try{var zu={};Object.defineProperty(zu,"passive",{get:function(){hm=!0}}),window.addEventListener("test",zu,zu),window.removeEventListener("test",zu,zu)}catch{hm=!1}var Wi=null,mm=null,wd=null;function Tx(){if(wd)return wd;var e,t=mm,n=t.length,r,i="value"in Wi?Wi.value:Wi.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return wd=i.slice(e,1<r?1-r:void 0)}function Td(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _d(){return!0}function _x(){return!1}function _n(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?_d:_x,this.isPropagationStopped=_x,this}return st(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_d)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_d)},persist:function(){},isPersistent:_d}),t}var es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sd=_n(es),Vu=st({},es,{view:0,detail:0}),QN=_n(Vu),gm,bm,Yu,Ad=st({},Vu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ym,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yu&&(Yu&&e.type==="mousemove"?(gm=e.screenX-Yu.screenX,bm=e.screenY-Yu.screenY):bm=gm=0,Yu=e),gm)},movementY:function(e){return"movementY"in e?e.movementY:bm}}),Sx=_n(Ad),JN=st({},Ad,{dataTransfer:0}),eD=_n(JN),tD=st({},Vu,{relatedTarget:0}),vm=_n(tD),nD=st({},es,{animationName:0,elapsedTime:0,pseudoElement:0}),rD=_n(nD),iD=st({},es,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aD=_n(iD),sD=st({},es,{data:0}),Ax=_n(sD),oD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lD[e])?!!t[e]:!1}function ym(){return cD}var dD=st({},Vu,{key:function(e){if(e.key){var t=oD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Td(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ym,charCode:function(e){return e.type==="keypress"?Td(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Td(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fD=_n(dD),pD=st({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cx=_n(pD),hD=st({},Vu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ym}),mD=_n(hD),gD=st({},es,{propertyName:0,elapsedTime:0,pseudoElement:0}),bD=_n(gD),vD=st({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),yD=_n(vD),xD=st({},es,{newState:0,oldState:0}),ED=_n(xD),wD=[9,13,27,32],xm=ai&&"CompositionEvent"in window,qu=null;ai&&"documentMode"in document&&(qu=document.documentMode);var TD=ai&&"TextEvent"in window&&!qu,kx=ai&&(!xm||qu&&8<qu&&11>=qu),Rx=" ",Ox=!1;function Nx(e,t){switch(e){case"keyup":return wD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function _D(e,t){switch(e){case"compositionend":return Dx(t);case"keypress":return t.which!==32?null:(Ox=!0,Rx);case"textInput":return e=t.data,e===Rx&&Ox?null:e;default:return null}}function SD(e,t){if(io)return e==="compositionend"||!xm&&Nx(e,t)?(e=Tx(),wd=mm=Wi=null,io=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kx&&t.locale!=="ko"?null:t.data;default:return null}}var AD={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!AD[e.type]:t==="textarea"}function Lx(e,t,n,r){no?ro?ro.push(r):ro=[r]:no=r,t=cf(t,"onChange"),0<t.length&&(n=new Sd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $u=null,Gu=null;function CD(e){s2(e,0)}function Cd(e){var t=ju(e);if(mx(t))return e}function Ix(e,t){if(e==="change")return t}var Px=!1;if(ai){var Em;if(ai){var wm="oninput"in document;if(!wm){var Bx=document.createElement("div");Bx.setAttribute("oninput","return;"),wm=typeof Bx.oninput=="function"}Em=wm}else Em=!1;Px=Em&&(!document.documentMode||9<document.documentMode)}function Ux(){$u&&($u.detachEvent("onpropertychange",Fx),Gu=$u=null)}function Fx(e){if(e.propertyName==="value"&&Cd(Gu)){var t=[];Lx(t,Gu,e,fm(e)),wx(CD,t)}}function kD(e,t,n){e==="focusin"?(Ux(),$u=t,Gu=n,$u.attachEvent("onpropertychange",Fx)):e==="focusout"&&Ux()}function RD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cd(Gu)}function OD(e,t){if(e==="click")return Cd(t)}function ND(e,t){if(e==="input"||e==="change")return Cd(t)}function DD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pn=typeof Object.is=="function"?Object.is:DD;function Wu(e,t){if(Pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!nm.call(t,i)||!Pn(e[i],t[i]))return!1}return!0}function jx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hx(e,t){var n=jx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jx(n)}}function zx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vx(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xd(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xd(e.document)}return t}function Tm(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 MD(e,t){var n=Vx(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&zx(t.ownerDocument.documentElement,t)){if(r!==null&&Tm(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!n.extend&&a>r&&(i=r,r=a,a=i),i=Hx(t,a);var s=Hx(t,r);i&&s&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var LD=ai&&"documentMode"in document&&11>=document.documentMode,ao=null,_m=null,Xu=null,Sm=!1;function Yx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sm||ao==null||ao!==xd(r)||(r=ao,"selectionStart"in r&&Tm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xu&&Wu(Xu,r)||(Xu=r,r=cf(_m,"onSelect"),0<r.length&&(t=new Sd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ao)))}function ts(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:ts("Animation","AnimationEnd"),animationiteration:ts("Animation","AnimationIteration"),animationstart:ts("Animation","AnimationStart"),transitionrun:ts("Transition","TransitionRun"),transitionstart:ts("Transition","TransitionStart"),transitioncancel:ts("Transition","TransitionCancel"),transitionend:ts("Transition","TransitionEnd")},Am={},qx={};ai&&(qx=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function ns(e){if(Am[e])return Am[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qx)return Am[e]=t[n];return e}var $x=ns("animationend"),Gx=ns("animationiteration"),Wx=ns("animationstart"),ID=ns("transitionrun"),PD=ns("transitionstart"),BD=ns("transitioncancel"),Xx=ns("transitionend"),Kx=new Map,Zx="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Er(e,t){Kx.set(e,t),Ja(t,[e])}var tr=[],oo=0,Cm=0;function kd(){for(var e=oo,t=Cm=oo=0;t<e;){var n=tr[t];tr[t++]=null;var r=tr[t];tr[t++]=null;var i=tr[t];tr[t++]=null;var a=tr[t];if(tr[t++]=null,r!==null&&i!==null){var s=r.pending;s===null?i.next=i:(i.next=s.next,s.next=i),r.pending=i}a!==0&&Qx(n,i,a)}}function Rd(e,t,n,r){tr[oo++]=e,tr[oo++]=t,tr[oo++]=n,tr[oo++]=r,Cm|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function km(e,t,n,r){return Rd(e,t,n,r),Od(e)}function Xi(e,t){return Rd(e,null,null,t),Od(e)}function Qx(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;i&&t!==null&&e.tag===3&&(a=e.stateNode,i=31-In(n),a=a.hiddenUpdates,e=a[i],e===null?a[i]=[t]:e.push(t),t.lane=n|536870912)}function Od(e){if(50<xl)throw xl=0,L0=null,Error($(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var uo={},Jx=new WeakMap;function nr(e,t){if(typeof e=="object"&&e!==null){var n=Jx.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ky(t)},Jx.set(e,t),t)}return{value:e,source:t,stack:Ky(t)}}var lo=[],co=0,Nd=null,Dd=0,rr=[],ir=0,rs=null,oi=1,ui="";function is(e,t){lo[co++]=Dd,lo[co++]=Nd,Nd=e,Dd=t}function eE(e,t,n){rr[ir++]=oi,rr[ir++]=ui,rr[ir++]=rs,rs=e;var r=oi;e=ui;var i=32-In(r)-1;r&=~(1<<i),n+=1;var a=32-In(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,oi=1<<32-In(t)+i|n<<i|r,ui=a+e}else oi=1<<a|n<<i|r,ui=e}function Rm(e){e.return!==null&&(is(e,1),eE(e,1,0))}function Om(e){for(;e===Nd;)Nd=lo[--co],lo[co]=null,Dd=lo[--co],lo[co]=null;for(;e===rs;)rs=rr[--ir],rr[ir]=null,ui=rr[--ir],rr[ir]=null,oi=rr[--ir],rr[ir]=null}var bn=null,Zt=null,ze=!1,wr=null,Ur=!1,Nm=Error($(519));function as(e){var t=Error($(418,""));throw Qu(nr(t,e)),Nm}function tE(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rn]=e,t[Tn]=r,n){case"dialog":Pe("cancel",t),Pe("close",t);break;case"iframe":case"object":case"embed":Pe("load",t);break;case"video":case"audio":for(n=0;n<wl.length;n++)Pe(wl[n],t);break;case"source":Pe("error",t);break;case"img":case"image":case"link":Pe("error",t),Pe("load",t);break;case"details":Pe("toggle",t);break;case"input":Pe("invalid",t),gx(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),yd(t);break;case"select":Pe("invalid",t);break;case"textarea":Pe("invalid",t),vx(t,r.value,r.defaultValue,r.children),yd(t)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||c2(t.textContent,n)?(r.popover!=null&&(Pe("beforetoggle",t),Pe("toggle",t)),r.onScroll!=null&&Pe("scroll",t),r.onScrollEnd!=null&&Pe("scrollend",t),r.onClick!=null&&(t.onclick=df),t=!0):t=!1,t||as(e)}function nE(e){for(bn=e.return;bn;)switch(bn.tag){case 3:case 27:Ur=!0;return;case 5:case 13:Ur=!1;return;default:bn=bn.return}}function Ku(e){if(e!==bn)return!1;if(!ze)return nE(e),ze=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Z0(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&Zt&&as(e),nE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Zt=_r(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Zt=null}}else Zt=bn?_r(e.stateNode.nextSibling):null;return!0}function Zu(){Zt=bn=null,ze=!1}function Qu(e){wr===null?wr=[e]:wr.push(e)}var Ju=Error($(460)),rE=Error($(474)),Dm={then:function(){}};function iE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Md(){}function aE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Md,Md),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ju?Error($(483)):e;default:if(typeof t.status=="string")t.then(Md,Md);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error($(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ju?Error($(483)):e}throw el=t,Ju}}var el=null;function sE(){if(el===null)throw Error($(459));var e=el;return el=null,e}var fo=null,tl=0;function Ld(e){var t=tl;return tl+=1,fo===null&&(fo=[]),aE(fo,e,t)}function nl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Id(e,t){throw t.$$typeof===_N?Error($(525)):(e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function oE(e){var t=e._init;return t(e._payload)}function uE(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function i(m,y){return m=oa(m,y),m.index=0,m.sibling=null,m}function a(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=33554434,y):x):(m.flags|=33554434,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=33554434),m}function o(m,y,x,T){return y===null||y.tag!==6?(y=A0(x,m.mode,T),y.return=m,y):(y=i(y,x),y.return=m,y)}function u(m,y,x,T){var _=x.type;return _===$s?c(m,y,x.props.children,T,x.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Yi&&oE(_)===y.type)?(y=i(y,x.props),nl(y,x),y.return=m,y):(y=Jd(x.type,x.key,x.props,null,m.mode,T),nl(y,x),y.return=m,y)}function l(m,y,x,T){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=C0(x,m.mode,T),y.return=m,y):(y=i(y,x.children||[]),y.return=m,y)}function c(m,y,x,T,_){return y===null||y.tag!==7?(y=ms(x,m.mode,T,_),y.return=m,y):(y=i(y,x),y.return=m,y)}function d(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=A0(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ld:return x=Jd(y.type,y.key,y.props,null,m.mode,x),nl(x,y),x.return=m,x;case Nu:return y=C0(y,m.mode,x),y.return=m,y;case Yi:var T=y._init;return y=T(y._payload),d(m,y,x)}if(Lu(y)||Du(y))return y=ms(y,m.mode,x,null),y.return=m,y;if(typeof y.then=="function")return d(m,Ld(y),x);if(y.$$typeof===ii)return d(m,Kd(m,y),x);Id(m,y)}return null}function f(m,y,x,T){var _=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return _!==null?null:o(m,y,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ld:return x.key===_?u(m,y,x,T):null;case Nu:return x.key===_?l(m,y,x,T):null;case Yi:return _=x._init,x=_(x._payload),f(m,y,x,T)}if(Lu(x)||Du(x))return _!==null?null:c(m,y,x,T,null);if(typeof x.then=="function")return f(m,y,Ld(x),T);if(x.$$typeof===ii)return f(m,y,Kd(m,x),T);Id(m,x)}return null}function p(m,y,x,T,_){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return m=m.get(x)||null,o(y,m,""+T,_);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ld:return m=m.get(T.key===null?x:T.key)||null,u(y,m,T,_);case Nu:return m=m.get(T.key===null?x:T.key)||null,l(y,m,T,_);case Yi:var A=T._init;return T=A(T._payload),p(m,y,x,T,_)}if(Lu(T)||Du(T))return m=m.get(x)||null,c(y,m,T,_,null);if(typeof T.then=="function")return p(m,y,x,Ld(T),_);if(T.$$typeof===ii)return p(m,y,x,Kd(y,T),_);Id(y,T)}return null}function g(m,y,x,T){for(var _=null,A=null,C=y,D=y=0,F=null;C!==null&&D<x.length;D++){C.index>D?(F=C,C=null):F=C.sibling;var N=f(m,C,x[D],T);if(N===null){C===null&&(C=F);break}e&&C&&N.alternate===null&&t(m,C),y=a(N,y,D),A===null?_=N:A.sibling=N,A=N,C=F}if(D===x.length)return n(m,C),ze&&is(m,D),_;if(C===null){for(;D<x.length;D++)C=d(m,x[D],T),C!==null&&(y=a(C,y,D),A===null?_=C:A.sibling=C,A=C);return ze&&is(m,D),_}for(C=r(C);D<x.length;D++)F=p(C,m,D,x[D],T),F!==null&&(e&&F.alternate!==null&&C.delete(F.key===null?D:F.key),y=a(F,y,D),A===null?_=F:A.sibling=F,A=F);return e&&C.forEach(function(Y){return t(m,Y)}),ze&&is(m,D),_}function v(m,y,x,T){if(x==null)throw Error($(151));for(var _=null,A=null,C=y,D=y=0,F=null,N=x.next();C!==null&&!N.done;D++,N=x.next()){C.index>D?(F=C,C=null):F=C.sibling;var Y=f(m,C,N.value,T);if(Y===null){C===null&&(C=F);break}e&&C&&Y.alternate===null&&t(m,C),y=a(Y,y,D),A===null?_=Y:A.sibling=Y,A=Y,C=F}if(N.done)return n(m,C),ze&&is(m,D),_;if(C===null){for(;!N.done;D++,N=x.next())N=d(m,N.value,T),N!==null&&(y=a(N,y,D),A===null?_=N:A.sibling=N,A=N);return ze&&is(m,D),_}for(C=r(C);!N.done;D++,N=x.next())N=p(C,m,D,N.value,T),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?D:N.key),y=a(N,y,D),A===null?_=N:A.sibling=N,A=N);return e&&C.forEach(function(H){return t(m,H)}),ze&&is(m,D),_}function w(m,y,x,T){if(typeof x=="object"&&x!==null&&x.type===$s&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ld:e:{for(var _=x.key;y!==null;){if(y.key===_){if(_=x.type,_===$s){if(y.tag===7){n(m,y.sibling),T=i(y,x.props.children),T.return=m,m=T;break e}}else if(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Yi&&oE(_)===y.type){n(m,y.sibling),T=i(y,x.props),nl(T,x),T.return=m,m=T;break e}n(m,y);break}else t(m,y);y=y.sibling}x.type===$s?(T=ms(x.props.children,m.mode,T,x.key),T.return=m,m=T):(T=Jd(x.type,x.key,x.props,null,m.mode,T),nl(T,x),T.return=m,m=T)}return s(m);case Nu:e:{for(_=x.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),T=i(y,x.children||[]),T.return=m,m=T;break e}else{n(m,y);break}else t(m,y);y=y.sibling}T=C0(x,m.mode,T),T.return=m,m=T}return s(m);case Yi:return _=x._init,x=_(x._payload),w(m,y,x,T)}if(Lu(x))return g(m,y,x,T);if(Du(x)){if(_=Du(x),typeof _!="function")throw Error($(150));return x=_.call(x),v(m,y,x,T)}if(typeof x.then=="function")return w(m,y,Ld(x),T);if(x.$$typeof===ii)return w(m,y,Kd(m,x),T);Id(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),T=i(y,x),T.return=m,m=T):(n(m,y),T=A0(x,m.mode,T),T.return=m,m=T),s(m)):n(m,y)}return function(m,y,x,T){try{tl=0;var _=w(m,y,x,T);return fo=null,_}catch(C){if(C===Ju)throw C;var A=ur(29,C,null,m.mode);return A.lanes=T,A.return=m,A}finally{}}}var ss=uE(!0),lE=uE(!1),po=Ir(null),Pd=Ir(0);function cE(e,t){e=yi,ct(Pd,e),ct(po,t),yi=e|t.baseLanes}function Mm(){ct(Pd,yi),ct(po,po.current)}function Lm(){yi=Pd.current,zt(po),zt(Pd)}var ar=Ir(null),Fr=null;function Ki(e){var t=e.alternate;ct(Pt,Pt.current&1),ct(ar,e),Fr===null&&(t===null||po.current!==null||t.memoizedState!==null)&&(Fr=e)}function dE(e){if(e.tag===22){if(ct(Pt,Pt.current),ct(ar,e),Fr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Fr=e)}}else Zi()}function Zi(){ct(Pt,Pt.current),ct(ar,ar.current)}function li(e){zt(ar),Fr===e&&(Fr=null),zt(Pt)}var Pt=Ir(0);function Bd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var UD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},FD=It.unstable_scheduleCallback,jD=It.unstable_NormalPriority,Bt={$$typeof:ii,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Im(){return{controller:new UD,data:new Map,refCount:0}}function rl(e){e.refCount--,e.refCount===0&&FD(jD,function(){e.controller.abort()})}var il=null,Pm=0,ho=0,mo=null;function HD(e,t){if(il===null){var n=il=[];Pm=0,ho=z0(),mo={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Pm++,t.then(fE,fE),t}function fE(){if(--Pm===0&&il!==null){mo!==null&&(mo.status="fulfilled");var e=il;il=null,ho=0,mo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zD(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var pE=Ee.S;Ee.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&HD(e,t),pE!==null&&pE(e,t)};var os=Ir(null);function Bm(){var e=os.current;return e!==null?e:tt.pooledCache}function Ud(e,t){t===null?ct(os,os.current):ct(os,t.pool)}function hE(){var e=Bm();return e===null?null:{parent:Bt._currentValue,pool:e}}var Qi=0,Ne=null,Xe=null,Ot=null,Fd=!1,go=!1,us=!1,jd=0,al=0,bo=null,VD=0;function St(){throw Error($(321))}function Um(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pn(e[n],t[n]))return!1;return!0}function Fm(e,t,n,r,i,a){return Qi=a,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ee.H=e===null||e.memoizedState===null?ls:Ji,us=!1,a=n(r,i),us=!1,go&&(a=gE(t,n,r,i)),mE(e),a}function mE(e){Ee.H=jr;var t=Xe!==null&&Xe.next!==null;if(Qi=0,Ot=Xe=Ne=null,Fd=!1,al=0,bo=null,t)throw Error($(300));e===null||Yt||(e=e.dependencies,e!==null&&Xd(e)&&(Yt=!0))}function gE(e,t,n,r){Ne=e;var i=0;do{if(go&&(bo=null),al=0,go=!1,25<=i)throw Error($(301));if(i+=1,Ot=Xe=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Ee.H=cs,a=t(n,r)}while(go);return a}function YD(){var e=Ee.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(Ne.flags|=1024),t}function jm(){var e=jd!==0;return jd=0,e}function Hm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function zm(e){if(Fd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fd=!1}Qi=0,Ot=Xe=Ne=null,go=!1,al=jd=0,bo=null}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?Ne.memoizedState=Ot=e:Ot=Ot.next=e,Ot}function Nt(){if(Xe===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=Ot===null?Ne.memoizedState:Ot.next;if(t!==null)Ot=t,Xe=e;else{if(e===null)throw Ne.alternate===null?Error($(467)):Error($(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Ot===null?Ne.memoizedState=Ot=e:Ot=Ot.next=e}return Ot}var Hd;Hd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function sl(e){var t=al;return al+=1,bo===null&&(bo=[]),e=aE(bo,e,t),t=Ne,(Ot===null?t.memoizedState:Ot.next)===null&&(t=t.alternate,Ee.H=t===null||t.memoizedState===null?ls:Ji),e}function zd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===ii)return an(e)}throw Error($(438,String(e)))}function Vm(e){var t=null,n=Ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ne.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Hd(),Ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=AN;return t.index++,n}function ci(e,t){return typeof t=="function"?t(e):t}function Vd(e){var t=Nt();return Ym(t,Xe,e)}function Ym(e,t,n){var r=e.queue;if(r===null)throw Error($(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var o=s=null,u=null,l=t,c=!1;do{var d=l.lane&-536870913;if(d!==l.lane?(Ue&d)===d:(Qi&d)===d){var f=l.revertLane;if(f===0)u!==null&&(u=u.next={lane:0,revertLane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===ho&&(c=!0);else if((Qi&f)===f){l=l.next,f===ho&&(c=!0);continue}else d={lane:0,revertLane:l.revertLane,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},u===null?(o=u=d,s=a):u=u.next=d,Ne.lanes|=f,ua|=f;d=l.action,us&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},u===null?(o=u=f,s=a):u=u.next=f,Ne.lanes|=d,ua|=d;l=l.next}while(l!==null&&l!==t);if(u===null?s=a:u.next=o,!Pn(a,e.memoizedState)&&(Yt=!0,c&&(n=mo,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=u,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function qm(e){var t=Nt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Pn(a,t.memoizedState)||(Yt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function bE(e,t,n){var r=Ne,i=Nt(),a=ze;if(a){if(n===void 0)throw Error($(407));n=n()}else n=t();var s=!Pn((Xe||i).memoizedState,n);if(s&&(i.memoizedState=n,Yt=!0),i=i.queue,Wm(xE.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||Ot!==null&&Ot.memoizedState.tag&1){if(r.flags|=2048,vo(9,yE.bind(null,r,i,n,t),{destroy:void 0},null),tt===null)throw Error($(349));a||Qi&60||vE(r,t,n)}return n}function vE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ne.updateQueue,t===null?(t=Hd(),Ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yE(e,t,n,r){t.value=n,t.getSnapshot=r,EE(t)&&wE(e)}function xE(e,t,n){return n(function(){EE(t)&&wE(e)})}function EE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pn(e,n)}catch{return!0}}function wE(e){var t=Xi(e,2);t!==null&&vn(t,e,2)}function $m(e){var t=Sn();if(typeof e=="function"){var n=e;if(e=n(),us){$i(!0);try{n()}finally{$i(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e},t}function TE(e,t,n,r){return e.baseState=n,Ym(e,Xe,typeof r=="function"?r:ci)}function qD(e,t,n,r,i){if($d(e))throw Error($(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){a.listeners.push(s)}};Ee.T!==null?n(!0):a.isTransition=!1,r(a),n=t.pending,n===null?(a.next=t.pending=a,_E(t,a)):(a.next=n.next,t.pending=n.next=a)}}function _E(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=Ee.T,s={};Ee.T=s;try{var o=n(i,r),u=Ee.S;u!==null&&u(s,o),SE(e,t,o)}catch(l){Gm(e,t,l)}finally{Ee.T=a}}else try{a=n(i,r),SE(e,t,a)}catch(l){Gm(e,t,l)}}function SE(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){AE(e,t,r)},function(r){return Gm(e,t,r)}):AE(e,t,n)}function AE(e,t,n){t.status="fulfilled",t.value=n,CE(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_E(e,n)))}function Gm(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,CE(t),t=t.next;while(t!==r)}e.action=null}function CE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kE(e,t){return t}function RE(e,t){if(ze){var n=tt.formState;if(n!==null){e:{var r=Ne;if(ze){if(Zt){t:{for(var i=Zt,a=Ur;i.nodeType!==8;){if(!a){i=null;break t}if(i=_r(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){Zt=_r(i.nextSibling),r=i.data==="F!";break e}}as(r)}r=!1}r&&(t=n[0])}}return n=Sn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kE,lastRenderedState:t},n.queue=r,n=GE.bind(null,Ne,r),r.dispatch=n,r=$m(!1),a=Jm.bind(null,Ne,!1,r.queue),r=Sn(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qD.bind(null,Ne,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function OE(e){var t=Nt();return NE(t,Xe,e)}function NE(e,t,n){t=Ym(e,t,kE)[0],e=Vd(ci)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?sl(t):t;var r=Nt(),i=r.queue,a=i.dispatch;return n!==r.memoizedState&&(Ne.flags|=2048,vo(9,$D.bind(null,i,n),{destroy:void 0},null)),[t,a,e]}function $D(e,t){e.action=t}function DE(e){var t=Nt(),n=Xe;if(n!==null)return NE(t,n,e);Nt(),t=t.memoizedState,n=Nt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function vo(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},t=Ne.updateQueue,t===null&&(t=Hd(),Ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ME(){return Nt().memoizedState}function Yd(e,t,n,r){var i=Sn();Ne.flags|=e,i.memoizedState=vo(1|t,n,{destroy:void 0},r===void 0?null:r)}function qd(e,t,n,r){var i=Nt();r=r===void 0?null:r;var a=i.memoizedState.inst;Xe!==null&&r!==null&&Um(r,Xe.memoizedState.deps)?i.memoizedState=vo(t,n,a,r):(Ne.flags|=e,i.memoizedState=vo(1|t,n,a,r))}function LE(e,t){Yd(8390656,8,e,t)}function Wm(e,t){qd(2048,8,e,t)}function IE(e,t){return qd(4,2,e,t)}function PE(e,t){return qd(4,4,e,t)}function BE(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function UE(e,t,n){n=n!=null?n.concat([e]):null,qd(4,4,BE.bind(null,t,e),n)}function Xm(){}function FE(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Um(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function jE(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Um(t,r[1]))return r[0];if(r=e(),us){$i(!0);try{e()}finally{$i(!1)}}return n.memoizedState=[r,t],r}function Km(e,t,n){return n===void 0||Qi&1073741824?e.memoizedState=t:(e.memoizedState=n,e=zw(),Ne.lanes|=e,ua|=e,n)}function HE(e,t,n,r){return Pn(n,t)?n:po.current!==null?(e=Km(e,n,r),Pn(e,t)||(Yt=!0),e):Qi&42?(e=zw(),Ne.lanes|=e,ua|=e,t):(Yt=!0,e.memoizedState=n)}function zE(e,t,n,r,i){var a=ot.p;ot.p=a!==0&&8>a?a:8;var s=Ee.T,o={};Ee.T=o,Jm(e,!1,t,n);try{var u=i(),l=Ee.S;if(l!==null&&l(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=zD(u,r);ol(e,t,c,jn(e))}else ol(e,t,r,jn(e))}catch(d){ol(e,t,{then:function(){},status:"rejected",reason:d},jn())}finally{ot.p=a,Ee.T=s}}function GD(){}function Zm(e,t,n,r){if(e.tag!==5)throw Error($(476));var i=VE(e).queue;zE(e,i,t,Ka,n===null?GD:function(){return YE(e),n(r)})}function VE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ka,baseState:Ka,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:Ka},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function YE(e){var t=VE(e).next.queue;ol(e,t,{},jn())}function Qm(){return an(Cl)}function qE(){return Nt().memoizedState}function $E(){return Nt().memoizedState}function WD(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jn();e=na(n);var r=ra(t,e,n);r!==null&&(vn(r,t,n),cl(r,t,n)),t={cache:Im()},e.payload=t;return}t=t.return}}function XD(e,t,n){var r=jn();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},$d(e)?WE(t,n):(n=km(e,t,n,r),n!==null&&(vn(n,e,r),XE(n,t,r)))}function GE(e,t,n){var r=jn();ol(e,t,n,r)}function ol(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if($d(e))WE(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Pn(o,s))return Rd(e,t,i,0),tt===null&&kd(),!1}catch{}finally{}if(n=km(e,t,i,r),n!==null)return vn(n,e,r),XE(n,t,r),!0}return!1}function Jm(e,t,n,r){if(r={lane:2,revertLane:z0(),action:r,hasEagerState:!1,eagerState:null,next:null},$d(e)){if(t)throw Error($(479))}else t=km(e,n,r,2),t!==null&&vn(t,e,2)}function $d(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function WE(e,t){go=Fd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XE(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sx(e,n)}}var jr={readContext:an,use:zd,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St};jr.useCacheRefresh=St,jr.useMemoCache=St,jr.useHostTransitionStatus=St,jr.useFormState=St,jr.useActionState=St,jr.useOptimistic=St;var ls={readContext:an,use:zd,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:an,useEffect:LE,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Yd(4194308,4,BE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yd(4194308,4,e,t)},useInsertionEffect:function(e,t){Yd(4,2,e,t)},useMemo:function(e,t){var n=Sn();t=t===void 0?null:t;var r=e();if(us){$i(!0);try{e()}finally{$i(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Sn();if(n!==void 0){var i=n(t);if(us){$i(!0);try{n(t)}finally{$i(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=XD.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:function(e){e=$m(e);var t=e.queue,n=GE.bind(null,Ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xm,useDeferredValue:function(e,t){var n=Sn();return Km(n,e,t)},useTransition:function(){var e=$m(!1);return e=zE.bind(null,Ne,e.queue,!0,!1),Sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ne,i=Sn();if(ze){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),tt===null)throw Error($(349));Ue&60||vE(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,LE(xE.bind(null,r,a,e),[e]),r.flags|=2048,vo(9,yE.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=Sn(),t=tt.identifierPrefix;if(ze){var n=ui,r=oi;n=(r&~(1<<32-In(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=VD++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Sn().memoizedState=WD.bind(null,Ne)}};ls.useMemoCache=Vm,ls.useHostTransitionStatus=Qm,ls.useFormState=RE,ls.useActionState=RE,ls.useOptimistic=function(e){var t=Sn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Jm.bind(null,Ne,!0,n),n.dispatch=t,[e,t]};var Ji={readContext:an,use:zd,useCallback:FE,useContext:an,useEffect:Wm,useImperativeHandle:UE,useInsertionEffect:IE,useLayoutEffect:PE,useMemo:jE,useReducer:Vd,useRef:ME,useState:function(){return Vd(ci)},useDebugValue:Xm,useDeferredValue:function(e,t){var n=Nt();return HE(n,Xe.memoizedState,e,t)},useTransition:function(){var e=Vd(ci)[0],t=Nt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:bE,useId:qE};Ji.useCacheRefresh=$E,Ji.useMemoCache=Vm,Ji.useHostTransitionStatus=Qm,Ji.useFormState=OE,Ji.useActionState=OE,Ji.useOptimistic=function(e,t){var n=Nt();return TE(n,Xe,e,t)};var cs={readContext:an,use:zd,useCallback:FE,useContext:an,useEffect:Wm,useImperativeHandle:UE,useInsertionEffect:IE,useLayoutEffect:PE,useMemo:jE,useReducer:qm,useRef:ME,useState:function(){return qm(ci)},useDebugValue:Xm,useDeferredValue:function(e,t){var n=Nt();return Xe===null?Km(n,e,t):HE(n,Xe.memoizedState,e,t)},useTransition:function(){var e=qm(ci)[0],t=Nt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:bE,useId:qE};cs.useCacheRefresh=$E,cs.useMemoCache=Vm,cs.useHostTransitionStatus=Qm,cs.useFormState=DE,cs.useActionState=DE,cs.useOptimistic=function(e,t){var n=Nt();return Xe!==null?TE(n,Xe,e,t):(n.baseState=e,[e,n.queue.dispatch])};function e0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var t0={isMounted:function(e){return(e=e._reactInternals)?Gs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jn(),i=na(r);i.payload=t,n!=null&&(i.callback=n),t=ra(e,i,r),t!==null&&(vn(t,e,r),cl(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jn(),i=na(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ra(e,i,r),t!==null&&(vn(t,e,r),cl(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jn(),r=na(n);r.tag=2,t!=null&&(r.callback=t),t=ra(e,r,n),t!==null&&(vn(t,e,n),cl(t,e,n))}};function KE(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!Wu(n,r)||!Wu(i,a):!0}function ZE(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&t0.enqueueReplaceState(t,t.state,null)}function ds(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=st({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var Gd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function QE(e){Gd(e)}function JE(e){console.error(e)}function ew(e){Gd(e)}function Wd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function tw(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function n0(e,t,n){return n=na(n),n.tag=3,n.payload={element:null},n.callback=function(){Wd(e,t)},n}function nw(e){return e=na(e),e.tag=3,e}function rw(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){tw(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){tw(t,n,r),typeof i!="function"&&(la===null?la=new Set([this]):la.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function KD(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&ll(t,n,i,!0),n=ar.current,n!==null){switch(n.tag){case 13:return Fr===null?B0():n.alternate===null&&Et===0&&(Et=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Dm?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),F0(e,r,i)),!1;case 22:return n.flags|=65536,r===Dm?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),F0(e,r,i)),!1}throw Error($(435,n.tag))}return F0(e,r,i),B0(),!1}if(ze)return t=ar.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Nm&&(e=Error($(422),{cause:r}),Qu(nr(e,n)))):(r!==Nm&&(t=Error($(423),{cause:r}),Qu(nr(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=nr(r,n),i=n0(e.stateNode,r,i),b0(e,i),Et!==4&&(Et=2)),!1;var a=Error($(520),{cause:r});if(a=nr(a,n),vl===null?vl=[a]:vl.push(a),Et!==4&&(Et=2),t===null)return!0;r=nr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=n0(n.stateNode,r,e),b0(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(la===null||!la.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=nw(i),rw(i,e,n,r),b0(n,i),!1}n=n.return}while(n!==null);return!1}var iw=Error($(461)),Yt=!1;function Qt(e,t,n,r){t.child=e===null?lE(t,null,n,r):ss(t,e.child,n,r)}function aw(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}else s=r;return ps(t),r=Fm(e,t,n,s,a,i),o=jm(),e!==null&&!Yt?(Hm(e,t,i),di(e,t,i)):(ze&&o&&Rm(t),t.flags|=1,Qt(e,t,r,i),t.child)}function sw(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!S0(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ow(e,t,a,r,i)):(e=Jd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!d0(e,i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Wu,n(s,r)&&e.ref===t.ref)return di(e,t,i)}return t.flags|=1,e=oa(a,r),e.ref=t.ref,e.return=t,t.child=e}function ow(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Wu(a,r)&&e.ref===t.ref)if(Yt=!1,t.pendingProps=r=a,d0(e,i))e.flags&131072&&(Yt=!0);else return t.lanes=e.lanes,di(e,t,i)}return r0(e,t,n,r,i)}function uw(e,t,n){var r=t.pendingProps,i=r.children,a=(t.stateNode._pendingVisibility&2)!==0,s=e!==null?e.memoizedState:null;if(ul(e,t),r.mode==="hidden"||a){if(t.flags&128){if(r=s!==null?s.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return lw(e,t,r,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ud(t,s!==null?s.cachePool:null),s!==null?cE(t,s):Mm(),dE(t);else return t.lanes=t.childLanes=536870912,lw(e,t,s!==null?s.baseLanes|n:n,n)}else s!==null?(Ud(t,s.cachePool),cE(t,s),Zi(),t.memoizedState=null):(e!==null&&Ud(t,null),Mm(),Zi());return Qt(e,t,i,n),t.child}function lw(e,t,n,r){var i=Bm();return i=i===null?null:{parent:Bt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Ud(t,null),Mm(),dE(t),e!==null&&ll(e,t,r,!0),null}function ul(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error($(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function r0(e,t,n,r,i){return ps(t),n=Fm(e,t,n,r,void 0,i),r=jm(),e!==null&&!Yt?(Hm(e,t,i),di(e,t,i)):(ze&&r&&Rm(t),t.flags|=1,Qt(e,t,n,i),t.child)}function cw(e,t,n,r,i,a){return ps(t),t.updateQueue=null,n=gE(t,r,n,i),mE(e),r=jm(),e!==null&&!Yt?(Hm(e,t,a),di(e,t,a)):(ze&&r&&Rm(t),t.flags|=1,Qt(e,t,n,a),t.child)}function dw(e,t,n,r,i){if(ps(t),t.stateNode===null){var a=uo,s=n.contextType;typeof s=="object"&&s!==null&&(a=an(s)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=t0,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},m0(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?an(s):uo,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(e0(t,n,s,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(s=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&t0.enqueueReplaceState(a,a.state,null),fl(t,r,a,i),dl(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var o=t.memoizedProps,u=ds(n,o);a.props=u;var l=a.context,c=n.contextType;s=uo,typeof c=="object"&&c!==null&&(s=an(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||l!==s)&&ZE(t,a,r,s),ta=!1;var f=t.memoizedState;a.state=f,fl(t,r,a,i),dl(),l=t.memoizedState,o||f!==l||ta?(typeof d=="function"&&(e0(t,n,d,r),l=t.memoizedState),(u=ta||KE(t,n,u,r,f,l,s))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,g0(e,t),s=t.memoizedProps,c=ds(n,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,u=uo,typeof l=="object"&&l!==null&&(u=an(l)),o=n.getDerivedStateFromProps,(l=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==u)&&ZE(t,a,r,u),ta=!1,f=t.memoizedState,a.state=f,fl(t,r,a,i),dl();var p=t.memoizedState;s!==d||f!==p||ta||e!==null&&e.dependencies!==null&&Xd(e.dependencies)?(typeof o=="function"&&(e0(t,n,o,r),p=t.memoizedState),(c=ta||KE(t,n,c,r,f,p,u)||e!==null&&e.dependencies!==null&&Xd(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,p,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,p,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,ul(e,t),r=(t.flags&128)!==0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ss(t,e.child,null,i),t.child=ss(t,null,n,i)):Qt(e,t,n,i),t.memoizedState=a.state,e=t.child):e=di(e,t,i),e}function fw(e,t,n,r){return Zu(),t.flags|=256,Qt(e,t,n,r),t.child}var i0={dehydrated:null,treeContext:null,retryLane:0};function a0(e){return{baseLanes:e,cachePool:hE()}}function s0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=lr),e}function pw(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(Pt.current&2)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(i?Ki(t):Zi(),ze){var o=Zt,u;if(u=o){e:{for(u=o,o=Ur;u.nodeType!==8;){if(!o){o=null;break e}if(u=_r(u.nextSibling),u===null){o=null;break e}}o=u}o!==null?(t.memoizedState={dehydrated:o,treeContext:rs!==null?{id:oi,overflow:ui}:null,retryLane:536870912},u=ur(18,null,null,0),u.stateNode=o,u.return=t,t.child=u,bn=t,Zt=null,u=!0):u=!1}u||as(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return o.data==="$!"?t.lanes=16:t.lanes=536870912,null;li(t)}return o=r.children,r=r.fallback,i?(Zi(),i=t.mode,o=u0({mode:"hidden",children:o},i),r=ms(r,i,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,i=t.child,i.memoizedState=a0(n),i.childLanes=s0(e,s,n),t.memoizedState=i0,r):(Ki(t),o0(t,o))}if(u=e.memoizedState,u!==null&&(o=u.dehydrated,o!==null)){if(a)t.flags&256?(Ki(t),t.flags&=-257,t=l0(e,t,n)):t.memoizedState!==null?(Zi(),t.child=e.child,t.flags|=128,t=null):(Zi(),i=r.fallback,o=t.mode,r=u0({mode:"visible",children:r.children},o),i=ms(i,o,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,ss(t,e.child,null,n),r=t.child,r.memoizedState=a0(n),r.childLanes=s0(e,s,n),t.memoizedState=i0,t=i);else if(Ki(t),o.data==="$!"){if(s=o.nextSibling&&o.nextSibling.dataset,s)var l=s.dgst;s=l,r=Error($(419)),r.stack="",r.digest=s,Qu({value:r,source:null,stack:null}),t=l0(e,t,n)}else if(Yt||ll(e,t,n,!1),s=(n&e.childLanes)!==0,Yt||s){if(s=tt,s!==null){if(r=n&-n,r&42)r=1;else switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:r=64;break;case 268435456:r=134217728;break;default:r=0}if(r=r&(s.suspendedLanes|n)?0:r,r!==0&&r!==u.retryLane)throw u.retryLane=r,Xi(e,r),vn(s,e,r),iw}o.data==="$?"||B0(),t=l0(e,t,n)}else o.data==="$?"?(t.flags|=128,t.child=e.child,t=d8.bind(null,e),o._reactRetry=t,t=null):(e=u.treeContext,Zt=_r(o.nextSibling),bn=t,ze=!0,wr=null,Ur=!1,e!==null&&(rr[ir++]=oi,rr[ir++]=ui,rr[ir++]=rs,oi=e.id,ui=e.overflow,rs=t),t=o0(t,r.children),t.flags|=4096);return t}return i?(Zi(),i=r.fallback,o=t.mode,u=e.child,l=u.sibling,r=oa(u,{mode:"hidden",children:r.children}),r.subtreeFlags=u.subtreeFlags&31457280,l!==null?i=oa(l,i):(i=ms(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o===null?o=a0(n):(u=o.cachePool,u!==null?(l=Bt._currentValue,u=u.parent!==l?{parent:l,pool:l}:u):u=hE(),o={baseLanes:o.baseLanes|n,cachePool:u}),i.memoizedState=o,i.childLanes=s0(e,s,n),t.memoizedState=i0,r):(Ki(t),n=e.child,e=n.sibling,n=oa(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function o0(e,t){return t=u0({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function u0(e,t){return Fw(e,t,0,null)}function l0(e,t,n){return ss(t,e.child,null,n),e=o0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),p0(e.return,t,n)}function c0(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function mw(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Qt(e,t,r.children,n),r=Pt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hw(e,n,t);else if(e.tag===19)hw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(ct(Pt,r),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Bd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),c0(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}c0(t,!0,n,null,a);break;case"together":c0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ua|=t.lanes,!(n&t.childLanes))if(e!==null){if(ll(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=oa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d0(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Xd(e)))}function ZD(e,t,n){switch(t.tag){case 3:dd(t,t.stateNode.containerInfo),ea(t,Bt,e.memoizedState.cache),Zu();break;case 27:case 5:tm(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:ea(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ki(t),t.flags|=128,null):n&t.child.childLanes?pw(e,t,n):(Ki(t),e=di(e,t,n),e!==null?e.sibling:null);Ki(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(ll(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return mw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ct(Pt,Pt.current),r)break;return null;case 22:case 23:return t.lanes=0,uw(e,t,n);case 24:ea(t,Bt,e.memoizedState.cache)}return di(e,t,n)}function gw(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Yt=!0;else{if(!d0(e,n)&&!(t.flags&128))return Yt=!1,ZD(e,t,n);Yt=!!(e.flags&131072)}else Yt=!1,ze&&t.flags&1048576&&eE(t,Dd,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,typeof r=="function")S0(r)?(e=ds(r,e),t.tag=1,t=dw(null,t,r,e,n)):(t.tag=0,t=r0(null,t,r,e,n));else{if(r!=null){if(i=r.$$typeof,i===$h){t.tag=11,t=aw(null,t,r,e,n);break e}else if(i===Xh){t.tag=14,t=sw(null,t,r,e,n);break e}}throw t=Kh(r)||r,Error($(306,t,""))}}return t;case 0:return r0(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=ds(r,t.pendingProps),dw(e,t,r,i,n);case 3:e:{if(dd(t,t.stateNode.containerInfo),e===null)throw Error($(387));var a=t.pendingProps;i=t.memoizedState,r=i.element,g0(e,t),fl(t,a,null,n);var s=t.memoizedState;if(a=s.cache,ea(t,Bt,a),a!==i.cache&&h0(t,[Bt],n,!0),dl(),a=s.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=fw(e,t,a,n);break e}else if(a!==r){r=nr(Error($(424)),t),Qu(r),t=fw(e,t,a,n);break e}else for(Zt=_r(t.stateNode.containerInfo.firstChild),bn=t,ze=!0,wr=null,Ur=!0,n=lE(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zu(),a===r){t=di(e,t,n);break e}Qt(e,t,a,n)}t=t.child}return t;case 26:return ul(e,t),e===null?(n=y2(t.type,null,t.pendingProps,null))?t.memoizedState=n:ze||(n=t.type,e=t.pendingProps,r=ff(qi.current).createElement(n),r[rn]=t,r[Tn]=e,Jt(r,n,e),Vt(r),t.stateNode=r):t.memoizedState=y2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return tm(t),e===null&&ze&&(r=t.stateNode=g2(t.type,t.pendingProps,qi.current),bn=t,Ur=!0,Zt=_r(r.firstChild)),r=t.pendingProps.children,e!==null||ze?Qt(e,t,r,n):t.child=ss(t,null,r,n),ul(e,t),t.child;case 5:return e===null&&ze&&((i=r=Zt)&&(r=C8(r,t.type,t.pendingProps,Ur),r!==null?(t.stateNode=r,bn=t,Zt=_r(r.firstChild),Ur=!1,i=!0):i=!1),i||as(t)),tm(t),i=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,r=a.children,Z0(i,a)?r=null:s!==null&&Z0(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Fm(e,t,YD,null,null,n),Cl._currentValue=i),ul(e,t),Qt(e,t,r,n),t.child;case 6:return e===null&&ze&&((e=n=Zt)&&(n=k8(n,t.pendingProps,Ur),n!==null?(t.stateNode=n,bn=t,Zt=null,e=!0):e=!1),e||as(t)),null;case 13:return pw(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ss(t,null,r,n):Qt(e,t,r,n),t.child;case 11:return aw(e,t,t.type,t.pendingProps,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return Qt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ea(t,t.type,r.value),Qt(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,ps(t),i=an(i),r=r(i),t.flags|=1,Qt(e,t,r,n),t.child;case 14:return sw(e,t,t.type,t.pendingProps,n);case 15:return ow(e,t,t.type,t.pendingProps,n);case 19:return mw(e,t,n);case 22:return uw(e,t,n);case 24:return ps(t),r=an(Bt),e===null?(i=Bm(),i===null&&(i=tt,a=Im(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},m0(t),ea(t,Bt,i)):(e.lanes&n&&(g0(e,t),fl(t,null,null,n),dl()),i=e.memoizedState,a=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ea(t,Bt,r)):(r=a.cache,ea(t,Bt,r),r!==i.cache&&h0(t,[Bt],n,!0))),Qt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error($(156,t.tag))}var f0=Ir(null),fs=null,fi=null;function ea(e,t,n){ct(f0,t._currentValue),t._currentValue=n}function pi(e){e._currentValue=f0.current,zt(f0)}function p0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function h0(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;e:for(;a!==null;){var o=a;a=i;for(var u=0;u<t.length;u++)if(o.context===t[u]){a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),p0(a.return,n,e),r||(s=null);break e}a=o.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error($(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),p0(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ll(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error($(387));if(s=s.memoizedProps,s!==null){var o=i.type;Pn(i.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(i===cd.current){if(s=i.alternate,s===null)throw Error($(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Cl):e=[Cl])}i=i.return}e!==null&&h0(t,e,n,r),t.flags|=262144}function Xd(e){for(e=e.firstContext;e!==null;){if(!Pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ps(e){fs=e,fi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function an(e){return bw(fs,e)}function Kd(e,t){return fs===null&&ps(e),bw(e,t)}function bw(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fi===null){if(e===null)throw Error($(308));fi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fi=fi.next=t;return n}var ta=!1;function m0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function g0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,mt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Od(e),Qx(e,null,n),t}return Rd(e,r,t,n),Od(e)}function cl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sx(e,n)}}function b0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var v0=!1;function dl(){if(v0){var e=mo;if(e!==null)throw e}}function fl(e,t,n,r){v0=!1;var i=e.updateQueue;ta=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,l=u.next;u.next=null,s===null?a=l:s.next=l,s=u;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=l:o.next=l,c.lastBaseUpdate=u))}if(a!==null){var d=i.baseState;s=0,c=l=u=null,o=a;do{var f=o.lane&-536870913,p=f!==o.lane;if(p?(Ue&f)===f:(r&f)===f){f!==0&&f===ho&&(v0=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,v=o;f=t;var w=n;switch(v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(w,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g=="function"?g.call(w,d,f):g,f==null)break e;d=st({},d,f);break e;case 2:ta=!0}}f=o.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(l=c=p,u=d):c=c.next=p,s|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);c===null&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,a===null&&(i.shared.lanes=0),ua|=s,e.lanes=s,e.memoizedState=d}}function vw(e,t){if(typeof e!="function")throw Error($(191,e));e.call(t)}function yw(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vw(n[e],t)}function pl(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,s=n.inst;r=a(),s.destroy=r}n=n.next}while(n!==i)}}catch(o){Qe(t,t.return,o)}}function ia(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var s=r.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,i=t;var u=n;try{o()}catch(l){Qe(i,u,l)}}}r=r.next}while(r!==a)}}catch(l){Qe(t,t.return,l)}}function xw(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yw(t,n)}catch(r){Qe(e,e.return,r)}}}function Ew(e,t,n){n.props=ds(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Qe(e,t,r)}}function hs(e,t){try{var n=e.ref;if(n!==null){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=r;break;default:i=r}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){Qe(e,t,a)}}function Bn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){Qe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Qe(e,t,i)}else n.current=null}function ww(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Qe(e,e.return,i)}}function Tw(e,t,n){try{var r=e.stateNode;w8(r,e.type,n,t),r[Tn]=t}catch(i){Qe(e,e.return,i)}}function _w(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function y0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_w(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&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 x0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=df));else if(r!==4&&r!==27&&(e=e.child,e!==null))for(x0(e,t,n),e=e.sibling;e!==null;)x0(e,t,n),e=e.sibling}function Zd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&r!==27&&(e=e.child,e!==null))for(Zd(e,t,n),e=e.sibling;e!==null;)Zd(e,t,n),e=e.sibling}var hi=!1,xt=!1,E0=!1,Sw=typeof WeakSet=="function"?WeakSet:Set,qt=null,Aw=!1;function QD(e,t){if(e=e.containerInfo,X0=vf,e=Vx(e),Tm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(o=s+i),d!==a||r!==0&&d.nodeType!==3||(u=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++l===i&&(o=s),f===a&&++c===r&&(u=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(K0={focusedElem:e,selectionRange:n},vf=!1,qt=t;qt!==null;)if(t=qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qt=e;else for(;qt!==null;){switch(t=qt,a=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var g=ds(n.type,i,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(g,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){Qe(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)eg(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error($(163))}if(e=t.sibling,e!==null){e.return=t.return,qt=e;break}qt=t.return}return g=Aw,Aw=!1,g}function Cw(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gi(e,n),r&4&&pl(5,n);break;case 1:if(gi(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Qe(n,n.return,o)}else{var i=ds(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Qe(n,n.return,o)}}r&64&&xw(n),r&512&&hs(n,n.return);break;case 3:if(gi(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{yw(r,e)}catch(o){Qe(n,n.return,o)}}break;case 26:gi(e,n),r&512&&hs(n,n.return);break;case 27:case 5:gi(e,n),t===null&&r&4&&ww(n),r&512&&hs(n,n.return);break;case 12:gi(e,n);break;case 13:gi(e,n),r&4&&Ow(e,n);break;case 22:if(i=n.memoizedState!==null||hi,!i){t=t!==null&&t.memoizedState!==null||xt;var a=hi,s=xt;hi=i,(xt=t)&&!s?aa(e,n,(n.subtreeFlags&8772)!==0):gi(e,n),hi=a,xt=s}r&512&&(n.memoizedProps.mode==="manual"?hs(n,n.return):Bn(n,n.return));break;default:gi(e,n)}}function kw(e){var t=e.alternate;t!==null&&(e.alternate=null,kw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&om(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dt=null,Un=!1;function mi(e,t,n){for(n=n.child;n!==null;)Rw(e,t,n),n=n.sibling}function Rw(e,t,n){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Pu,n)}catch{}switch(n.tag){case 26:xt||Bn(n,t),mi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:xt||Bn(n,t);var r=Dt,i=Un;for(Dt=n.stateNode,mi(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);om(n),Dt=r,Un=i;break;case 5:xt||Bn(n,t);case 6:i=Dt;var a=Un;if(Dt=null,mi(e,t,n),Dt=i,Un=a,Dt!==null)if(Un)try{e=Dt,r=n.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)}catch(s){Qe(n,t,s)}else try{Dt.removeChild(n.stateNode)}catch(s){Qe(n,t,s)}break;case 18:Dt!==null&&(Un?(t=Dt,n=n.stateNode,t.nodeType===8?J0(t.parentNode,n):t.nodeType===1&&J0(t,n),Nl(t)):J0(Dt,n.stateNode));break;case 4:r=Dt,i=Un,Dt=n.stateNode.containerInfo,Un=!0,mi(e,t,n),Dt=r,Un=i;break;case 0:case 11:case 14:case 15:xt||ia(2,n,t),xt||ia(4,n,t),mi(e,t,n);break;case 1:xt||(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&Ew(n,t,r)),mi(e,t,n);break;case 21:mi(e,t,n);break;case 22:xt||Bn(n,t),xt=(r=xt)||n.memoizedState!==null,mi(e,t,n),xt=r;break;default:mi(e,t,n)}}function Ow(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nl(e)}catch(n){Qe(t,t.return,n)}}function JD(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sw),t;default:throw Error($(435,e.tag))}}function w0(e,t){var n=JD(e);t.forEach(function(r){var i=f8.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}function sr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:case 5:Dt=o.stateNode,Un=!1;break e;case 3:Dt=o.stateNode.containerInfo,Un=!0;break e;case 4:Dt=o.stateNode.containerInfo,Un=!0;break e}o=o.return}if(Dt===null)throw Error($(160));Rw(a,s,i),Dt=null,Un=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nw(t,e),t=t.sibling}var Tr=null;function Nw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sr(t,e),or(e),r&4&&(ia(3,e,e.return),pl(3,e),ia(5,e,e.return));break;case 1:sr(t,e),or(e),r&512&&(xt||n===null||Bn(n,n.return)),r&64&&hi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Tr;if(sr(t,e),or(e),r&512&&(xt||n===null||Bn(n,n.return)),r&4){var a=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":a=i.getElementsByTagName("title")[0],(!a||a[Fu]||a[rn]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector("head > title"))),Jt(a,r,n),a[rn]=e,Vt(a),r=a;break e;case"link":var s=w2("link","href",i).get(r+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(a=s[o],a.getAttribute("href")===(n.href==null?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}a=i.createElement(r),Jt(a,r,n),i.head.appendChild(a);break;case"meta":if(s=w2("meta","content",i).get(r+(n.content||""))){for(o=0;o<s.length;o++)if(a=s[o],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}a=i.createElement(r),Jt(a,r,n),i.head.appendChild(a);break;default:throw Error($(468,r))}a[rn]=e,Vt(a),r=a}e.stateNode=r}else T2(i,e.type,e.stateNode);else e.stateNode=E2(i,r,e.memoizedProps);else a!==r?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?T2(i,e.type,e.stateNode):E2(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Tw(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(r&4&&e.alternate===null){i=e.stateNode,a=e.memoizedProps;try{for(var u=i.firstChild;u;){var l=u.nextSibling,c=u.nodeName;u[Fu]||c==="HEAD"||c==="BODY"||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||i.removeChild(u),u=l}for(var d=e.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Jt(i,d,a),i[rn]=e,i[Tn]=a}catch(g){Qe(e,e.return,g)}}case 5:if(sr(t,e),or(e),r&512&&(xt||n===null||Bn(n,n.return)),e.flags&32){i=e.stateNode;try{to(i,"")}catch(g){Qe(e,e.return,g)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Tw(e,i,n!==null?n.memoizedProps:i)),r&1024&&(E0=!0);break;case 6:if(sr(t,e),or(e),r&4){if(e.stateNode===null)throw Error($(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(g){Qe(e,e.return,g)}}break;case 3:if(mf=null,i=Tr,Tr=pf(t.containerInfo),sr(t,e),Tr=i,or(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Nl(t.containerInfo)}catch(g){Qe(e,e.return,g)}E0&&(E0=!1,Dw(e));break;case 4:r=Tr,Tr=pf(e.stateNode.containerInfo),sr(t,e),or(e),Tr=r;break;case 12:sr(t,e),or(e);break;case 13:sr(t,e),or(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(N0=Br()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,w0(e,r)));break;case 22:if(r&512&&(xt||n===null||Bn(n,n.return)),u=e.memoizedState!==null,l=n!==null&&n.memoizedState!==null,c=hi,d=xt,hi=c||u,xt=d||l,sr(t,e),xt=d,hi=c,or(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,r&8192&&(t._visibility=u?t._visibility&-2:t._visibility|1,u&&(t=hi||xt,n===null||l||t||yo(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){l=n=t;try{if(i=l.stateNode,u)a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{s=l.stateNode,o=l.memoizedProps.style;var p=o!=null&&o.hasOwnProperty("display")?o.display:null;s.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(g){Qe(l,l.return,g)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=u?"":l.memoizedProps}catch(g){Qe(l,l.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,w0(e,n))));break;case 19:sr(t,e),or(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,w0(e,r)));break;case 21:break;default:sr(t,e),or(e)}}function or(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(_w(n)){var r=n;break e}n=n.return}throw Error($(160))}switch(r.tag){case 27:var i=r.stateNode,a=y0(e);Zd(e,a,i);break;case 5:var s=r.stateNode;r.flags&32&&(to(s,""),r.flags&=-33);var o=y0(e);Zd(e,o,s);break;case 3:case 4:var u=r.stateNode.containerInfo,l=y0(e);x0(e,l,u);break;default:throw Error($(161))}}}catch(c){Qe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dw(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dw(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cw(e,t.alternate,t),t=t.sibling}function yo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ia(4,t,t.return),yo(t);break;case 1:Bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ew(t,t.return,n),yo(t);break;case 26:case 27:case 5:Bn(t,t.return),yo(t);break;case 22:Bn(t,t.return),t.memoizedState===null&&yo(t);break;default:yo(t)}e=e.sibling}}function aa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,s=a.flags;switch(a.tag){case 0:case 11:case 15:aa(i,a,n),pl(4,a);break;case 1:if(aa(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(l){Qe(r,r.return,l)}if(r=a,i=r.updateQueue,i!==null){var o=r.stateNode;try{var u=i.shared.hiddenCallbacks;if(u!==null)for(i.shared.hiddenCallbacks=null,i=0;i<u.length;i++)vw(u[i],o)}catch(l){Qe(r,r.return,l)}}n&&s&64&&xw(a),hs(a,a.return);break;case 26:case 27:case 5:aa(i,a,n),n&&r===null&&s&4&&ww(a),hs(a,a.return);break;case 12:aa(i,a,n);break;case 13:aa(i,a,n),n&&s&4&&Ow(i,a);break;case 22:a.memoizedState===null&&aa(i,a,n),hs(a,a.return);break;default:aa(i,a,n)}t=t.sibling}}function T0(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&rl(n))}function _0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e))}function sa(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mw(e,t,n,r),t=t.sibling}function Mw(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:sa(e,t,n,r),i&2048&&pl(9,t);break;case 3:sa(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e)));break;case 12:if(i&2048){sa(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,s=a.id,o=a.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){Qe(t,t.return,u)}}else sa(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,t.memoizedState!==null?a._visibility&4?sa(e,t,n,r):hl(e,t):a._visibility&4?sa(e,t,n,r):(a._visibility|=4,xo(e,t,n,r,(t.subtreeFlags&10256)!==0)),i&2048&&T0(t.alternate,t);break;case 24:sa(e,t,n,r),i&2048&&_0(t.alternate,t);break;default:sa(e,t,n,r)}}function xo(e,t,n,r,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var a=e,s=t,o=n,u=r,l=s.flags;switch(s.tag){case 0:case 11:case 15:xo(a,s,o,u,i),pl(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&4?xo(a,s,o,u,i):hl(a,s):(c._visibility|=4,xo(a,s,o,u,i)),i&&l&2048&&T0(s.alternate,s);break;case 24:xo(a,s,o,u,i),i&&l&2048&&_0(s.alternate,s);break;default:xo(a,s,o,u,i)}t=t.sibling}}function hl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:hl(n,r),i&2048&&T0(r.alternate,r);break;case 24:hl(n,r),i&2048&&_0(r.alternate,r);break;default:hl(n,r)}t=t.sibling}}var ml=8192;function Eo(e){if(e.subtreeFlags&ml)for(e=e.child;e!==null;)Lw(e),e=e.sibling}function Lw(e){switch(e.tag){case 26:Eo(e),e.flags&ml&&e.memoizedState!==null&&H8(Tr,e.memoizedState,e.memoizedProps);break;case 5:Eo(e);break;case 3:case 4:var t=Tr;Tr=pf(e.stateNode.containerInfo),Eo(e),Tr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ml,ml=16777216,Eo(e),ml=t):Eo(e));break;default:Eo(e)}}function Iw(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];qt=r,Bw(r,e)}Iw(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pw(e),e=e.sibling}function Pw(e){switch(e.tag){case 0:case 11:case 15:gl(e),e.flags&2048&&ia(9,e,e.return);break;case 3:gl(e);break;case 12:gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,Qd(e)):gl(e);break;default:gl(e)}}function Qd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];qt=r,Bw(r,e)}Iw(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ia(8,t,t.return),Qd(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,Qd(t));break;default:Qd(t)}e=e.sibling}}function Bw(e,t){for(;qt!==null;){var n=qt;switch(n.tag){case 0:case 11:case 15:ia(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:rl(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,qt=r;else e:for(n=e;qt!==null;){r=qt;var i=r.sibling,a=r.return;if(kw(r),r===n){qt=null;break e}if(i!==null){i.return=a,qt=i;break e}qt=a}}}function e8(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ur(e,t,n,r){return new e8(e,t,n,r)}function S0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oa(e,t){var n=e.alternate;return n===null?(n=ur(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&31457280,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Uw(e,t){e.flags&=31457282;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Jd(e,t,n,r,i,a){var s=0;if(r=e,typeof e=="function")S0(e)&&(s=1);else if(typeof e=="string")s=F8(e,n,Pr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $s:return ms(n.children,i,a,t);case qy:s=8,i|=24;break;case qh:return e=ur(12,n,t,i|2),e.elementType=qh,e.lanes=a,e;case Gh:return e=ur(13,n,t,i),e.elementType=Gh,e.lanes=a,e;case Wh:return e=ur(19,n,t,i),e.elementType=Wh,e.lanes=a,e;case Gy:return Fw(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SN:case ii:s=10;break e;case $y:s=9;break e;case $h:s=11;break e;case Xh:s=14;break e;case Yi:s=16,r=null;break e}s=29,n=Error($(130,e===null?"null":typeof e,"")),r=null}return t=ur(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ms(e,t,n,r){return e=ur(7,e,r,t),e.lanes=n,e}function Fw(e,t,n,r){e=ur(22,e,r,t),e.elementType=Gy,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var a=i._current;if(a===null)throw Error($(456));if(!(i._pendingVisibility&2)){var s=Xi(a,2);s!==null&&(i._pendingVisibility|=2,vn(s,a,2))}},attach:function(){var a=i._current;if(a===null)throw Error($(456));if(i._pendingVisibility&2){var s=Xi(a,2);s!==null&&(i._pendingVisibility&=-3,vn(s,a,2))}}};return e.stateNode=i,e}function A0(e,t,n){return e=ur(6,e,null,t),e.lanes=n,e}function C0(e,t,n){return t=ur(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bi(e){e.flags|=4}function jw(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!_2(t)){if(t=ar.current,t!==null&&((Ue&4194176)===Ue?Fr!==null:(Ue&62914560)!==Ue&&!(Ue&536870912)||t!==Fr))throw el=Dm,rE;e.flags|=8192}}function ef(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ix():536870912,e.lanes|=t,To|=t)}function bl(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&31457280,r|=i.flags&31457280,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function t8(e,t,n){var r=t.pendingProps;switch(Om(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return ht(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pi(Bt),Xs(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ku(t)?bi(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wr!==null&&(I0(wr),wr=null))),ht(t),null;case 26:return n=t.memoizedState,e===null?(bi(t),n!==null?(ht(t),jw(t,n)):(ht(t),t.flags&=-16777217)):n?n!==e.memoizedState?(bi(t),ht(t),jw(t,n)):(ht(t),t.flags&=-16777217):(e.memoizedProps!==r&&bi(t),ht(t),t.flags&=-16777217),null;case 27:fd(t),n=qi.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&bi(t);else{if(!r){if(t.stateNode===null)throw Error($(166));return ht(t),null}e=Pr.current,Ku(t)?tE(t):(e=g2(i,r,n),t.stateNode=e,bi(t))}return ht(t),null;case 5:if(fd(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&bi(t);else{if(!r){if(t.stateNode===null)throw Error($(166));return ht(t),null}if(e=Pr.current,Ku(t))tE(t);else{switch(i=ff(qi.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?i.createElement(n,{is:r.is}):i.createElement(n)}}e[rn]=t,e[Tn]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Jt(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&bi(t)}}return ht(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&bi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));if(e=qi.current,Ku(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=bn,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[rn]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||c2(e.nodeValue,n)),e||as(t)}else e=ff(e).createTextNode(r),e[rn]=t,t.stateNode=e}return ht(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ku(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error($(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error($(317));i[rn]=t}else Zu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),i=!1}else wr!==null&&(I0(wr),wr=null),i=!0;if(!i)return t.flags&256?(li(t),t):(li(t),null)}if(li(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool);var a=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ef(t,t.updateQueue),ht(t),null;case 4:return Xs(),e===null&&$0(t.stateNode.containerInfo),ht(t),null;case 10:return pi(t.type),ht(t),null;case 19:if(zt(Pt),i=t.memoizedState,i===null)return ht(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)bl(i,!1);else{if(Et!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Bd(e),a!==null){for(t.flags|=128,bl(i,!1),e=a.updateQueue,t.updateQueue=e,ef(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Uw(n,e),n=n.sibling;return ct(Pt,Pt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Br()>tf&&(t.flags|=128,r=!0,bl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Bd(a),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ef(t,e),bl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ze)return ht(t),null}else 2*Br()-i.renderingStartTime>tf&&n!==536870912&&(t.flags|=128,r=!0,bl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Br(),t.sibling=null,e=Pt.current,ct(Pt,r?e&1|2:e&1),t):(ht(t),null);case 22:case 23:return li(t),Lm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),n=t.updateQueue,n!==null&&ef(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&zt(os),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pi(Bt),ht(t),null;case 25:return null}throw Error($(156,t.tag))}function n8(e,t){switch(Om(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pi(Bt),Xs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fd(t),null;case 13:if(li(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Zu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zt(Pt),null;case 4:return Xs(),null;case 10:return pi(t.type),null;case 22:case 23:return li(t),Lm(),e!==null&&zt(os),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pi(Bt),null;case 25:return null;default:return null}}function Hw(e,t){switch(Om(t),t.tag){case 3:pi(Bt),Xs();break;case 26:case 27:case 5:fd(t);break;case 4:Xs();break;case 13:li(t);break;case 19:zt(Pt);break;case 10:pi(t.type);break;case 22:case 23:li(t),Lm(),e!==null&&zt(os);break;case 24:pi(Bt)}}var r8={getCacheForType:function(e){var t=an(Bt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},i8=typeof WeakMap=="function"?WeakMap:Map,mt=0,tt=null,Le=null,Ue=0,nt=0,Fn=null,vi=!1,wo=!1,k0=!1,yi=0,Et=0,ua=0,gs=0,R0=0,lr=0,To=0,vl=null,Hr=null,O0=!1,N0=0,tf=1/0,nf=null,la=null,rf=!1,bs=null,yl=0,D0=0,M0=null,xl=0,L0=null;function jn(){if(mt&2&&Ue!==0)return Ue&-Ue;if(Ee.T!==null){var e=ho;return e!==0?e:z0()}return ux()}function zw(){lr===0&&(lr=!(Ue&536870912)||ze?rx():536870912);var e=ar.current;return e!==null&&(e.flags|=32),lr}function vn(e,t,n){(e===tt&&nt===2||e.cancelPendingCommit!==null)&&(_o(e,0),xi(e,Ue,lr,!1)),Uu(e,n),(!(mt&2)||e!==tt)&&(e===tt&&(!(mt&2)&&(gs|=n),Et===4&&xi(e,Ue,lr,!1)),zr(e))}function Vw(e,t,n){if(mt&6)throw Error($(327));var r=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Bu(e,t),i=r?o8(e,t):U0(e,t,!0),a=r;do{if(i===0){wo&&!r&&xi(e,t,0,!1);break}else if(i===6)xi(e,t,0,!vi);else{if(n=e.current.alternate,a&&!a8(n)){i=U0(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;i=vl;var u=o.current.memoizedState.isDehydrated;if(u&&(_o(o,s).flags|=256),s=U0(o,s,!1),s!==2){if(k0&&!u){o.errorRecoveryDisabledLanes|=a,gs|=a,i=4;break e}a=Hr,Hr=i,a!==null&&I0(a)}i=s}if(a=!1,i!==2)continue}}if(i===1){_o(e,0),xi(e,t,0,!0);break}e:{switch(r=e,i){case 0:case 1:throw Error($(345));case 4:if((t&4194176)===t){xi(r,t,lr,!vi);break e}break;case 2:Hr=null;break;case 3:case 5:break;default:throw Error($(329))}if(r.finishedWork=n,r.finishedLanes=t,(t&62914560)===t&&(a=N0+300-Br(),10<a)){if(xi(r,t,lr,!vi),gd(r,0)!==0)break e;r.timeoutHandle=p2(Yw.bind(null,r,n,Hr,nf,O0,t,lr,gs,To,vi,2,-0,0),a);break e}Yw(r,n,Hr,nf,O0,t,lr,gs,To,vi,0,-0,0)}}break}while(!0);zr(e)}function I0(e){Hr===null?Hr=e:Hr.push.apply(Hr,e)}function Yw(e,t,n,r,i,a,s,o,u,l,c,d,f){var p=t.subtreeFlags;if((p&8192||(p&16785408)===16785408)&&(Al={stylesheets:null,count:0,unsuspend:j8},Lw(t),t=z8(),t!==null)){e.cancelPendingCommit=t(Zw.bind(null,e,n,r,i,s,o,u,1,d,f)),xi(e,a,s,!l);return}Zw(e,n,r,i,s,o,u,c,d,f)}function a8(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pn(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xi(e,t,n,r){t&=~R0,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-In(i),s=1<<a;r[a]=-1,i&=~s}n!==0&&ax(e,n,t)}function af(){return mt&6?!0:(El(0),!1)}function P0(){if(Le!==null){if(nt===0)var e=Le.return;else e=Le,fi=fs=null,zm(e),fo=null,tl=0,e=Le;for(;e!==null;)Hw(e.alternate,e),e=e.return;Le=null}}function _o(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_8(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),P0(),tt=e,Le=n=oa(e.current,null),Ue=t,nt=0,Fn=null,vi=!1,wo=Bu(e,t),k0=!1,To=lr=R0=gs=ua=Et=0,Hr=vl=null,O0=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-In(r),a=1<<i;t|=e[i],r&=~a}return yi=t,kd(),n}function qw(e,t){Ne=null,Ee.H=jr,t===Ju?(t=sE(),nt=3):t===rE?(t=sE(),nt=4):nt=t===iw?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Fn=t,Le===null&&(Et=1,Wd(e,nr(t,e.current)))}function $w(){var e=Ee.H;return Ee.H=jr,e===null?jr:e}function Gw(){var e=Ee.A;return Ee.A=r8,e}function B0(){Et=4,vi||(Ue&4194176)!==Ue&&ar.current!==null||(wo=!0),!(ua&134217727)&&!(gs&134217727)||tt===null||xi(tt,Ue,lr,!1)}function U0(e,t,n){var r=mt;mt|=2;var i=$w(),a=Gw();(tt!==e||Ue!==t)&&(nf=null,_o(e,t)),t=!1;var s=Et;e:do try{if(nt!==0&&Le!==null){var o=Le,u=Fn;switch(nt){case 8:P0(),s=6;break e;case 3:case 2:case 6:ar.current===null&&(t=!0);var l=nt;if(nt=0,Fn=null,So(e,o,u,l),n&&wo){s=0;break e}break;default:l=nt,nt=0,Fn=null,So(e,o,u,l)}}s8(),s=Et;break}catch(c){qw(e,c)}while(!0);return t&&e.shellSuspendCounter++,fi=fs=null,mt=r,Ee.H=i,Ee.A=a,Le===null&&(tt=null,Ue=0,kd()),s}function s8(){for(;Le!==null;)Ww(Le)}function o8(e,t){var n=mt;mt|=2;var r=$w(),i=Gw();tt!==e||Ue!==t?(nf=null,tf=Br()+500,_o(e,t)):wo=Bu(e,t);e:do try{if(nt!==0&&Le!==null){t=Le;var a=Fn;t:switch(nt){case 1:nt=0,Fn=null,So(e,t,a,1);break;case 2:if(iE(a)){nt=0,Fn=null,Xw(t);break}t=function(){nt===2&&tt===e&&(nt=7),zr(e)},a.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:iE(a)?(nt=0,Fn=null,Xw(t)):(nt=0,Fn=null,So(e,t,a,7));break;case 5:var s=null;switch(Le.tag){case 26:s=Le.memoizedState;case 5:case 27:var o=Le;if(!s||_2(s)){nt=0,Fn=null;var u=o.sibling;if(u!==null)Le=u;else{var l=o.return;l!==null?(Le=l,sf(l)):Le=null}break t}}nt=0,Fn=null,So(e,t,a,5);break;case 6:nt=0,Fn=null,So(e,t,a,6);break;case 8:P0(),Et=6;break e;default:throw Error($(462))}}u8();break}catch(c){qw(e,c)}while(!0);return fi=fs=null,Ee.H=r,Ee.A=i,mt=n,Le!==null?0:(tt=null,Ue=0,kd(),Et)}function u8(){for(;Le!==null&&!ON();)Ww(Le)}function Ww(e){var t=gw(e.alternate,e,yi);e.memoizedProps=e.pendingProps,t===null?sf(e):Le=t}function Xw(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=cw(n,t,t.pendingProps,t.type,void 0,Ue);break;case 11:t=cw(n,t,t.pendingProps,t.type.render,t.ref,Ue);break;case 5:zm(t);default:Hw(n,t),t=Le=Uw(t,yi),t=gw(n,t,yi)}e.memoizedProps=e.pendingProps,t===null?sf(e):Le=t}function So(e,t,n,r){fi=fs=null,zm(t),fo=null,tl=0;var i=t.return;try{if(KD(e,i,t,n,Ue)){Et=1,Wd(e,nr(n,e.current)),Le=null;return}}catch(a){if(i!==null)throw Le=i,a;Et=1,Wd(e,nr(n,e.current)),Le=null;return}t.flags&32768?(ze||r===1?e=!0:wo||Ue&536870912?e=!1:(vi=e=!0,(r===2||r===3||r===6)&&(r=ar.current,r!==null&&r.tag===13&&(r.flags|=16384))),Kw(t,e)):sf(t)}function sf(e){var t=e;do{if(t.flags&32768){Kw(t,vi);return}e=t.return;var n=t8(t.alternate,t,yi);if(n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Et===0&&(Et=5)}function Kw(e,t){do{var n=n8(e.alternate,e);if(n!==null){n.flags&=32767,Le=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Le=e;return}Le=e=n}while(e!==null);Et=6,Le=null}function Zw(e,t,n,r,i,a,s,o,u,l){var c=Ee.T,d=ot.p;try{ot.p=2,Ee.T=null,l8(e,t,n,r,d,i,a,s,o,u,l)}finally{Ee.T=c,ot.p=d}}function l8(e,t,n,r,i,a,s,o){do Ao();while(bs!==null);if(mt&6)throw Error($(327));var u=e.finishedWork;if(r=e.finishedLanes,u===null)return null;if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error($(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var l=u.lanes|u.childLanes;if(l|=Cm,HN(e,r,l,a,s,o),e===tt&&(Le=tt=null,Ue=0),!(u.subtreeFlags&10256)&&!(u.flags&10256)||rf||(rf=!0,D0=l,M0=n,p8(pd,function(){return Ao(),null})),n=(u.flags&15990)!==0,u.subtreeFlags&15990||n?(n=Ee.T,Ee.T=null,a=ot.p,ot.p=2,s=mt,mt|=4,QD(e,u),Nw(u,e),MD(K0,e.containerInfo),vf=!!X0,K0=X0=null,e.current=u,Cw(e,u.alternate,u),NN(),mt=s,ot.p=a,Ee.T=n):e.current=u,rf?(rf=!1,bs=e,yl=r):Qw(e,l),l=e.pendingLanes,l===0&&(la=null),PN(u.stateNode),zr(e),t!==null)for(i=e.onRecoverableError,u=0;u<t.length;u++)l=t[u],i(l.value,{componentStack:l.stack});return yl&3&&Ao(),l=e.pendingLanes,r&4194218&&l&42?e===L0?xl++:(xl=0,L0=e):xl=0,El(0),null}function Qw(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rl(t)))}function Ao(){if(bs!==null){var e=bs,t=D0;D0=0;var n=ox(yl),r=Ee.T,i=ot.p;try{if(ot.p=32>n?32:n,Ee.T=null,bs===null)var a=!1;else{n=M0,M0=null;var s=bs,o=yl;if(bs=null,yl=0,mt&6)throw Error($(331));var u=mt;if(mt|=4,Pw(s.current),Mw(s,s.current,o,n),mt=u,El(0,!1),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Pu,s)}catch{}a=!0}return a}finally{ot.p=i,Ee.T=r,Qw(e,t)}}return!1}function Jw(e,t,n){t=nr(n,t),t=n0(e.stateNode,t,2),e=ra(e,t,2),e!==null&&(Uu(e,2),zr(e))}function Qe(e,t,n){if(e.tag===3)Jw(e,e,n);else for(;t!==null;){if(t.tag===3){Jw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(la===null||!la.has(r))){e=nr(n,e),n=nw(2),r=ra(t,n,2),r!==null&&(rw(n,r,t,e),Uu(r,2),zr(r));break}}t=t.return}}function F0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new i8;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(k0=!0,i.add(n),e=c8.bind(null,e,t,n),t.then(e,e))}function c8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tt===e&&(Ue&n)===n&&(Et===4||Et===3&&(Ue&62914560)===Ue&&300>Br()-N0?!(mt&2)&&_o(e,0):R0|=n,To===Ue&&(To=0)),zr(e)}function e2(e,t){t===0&&(t=ix()),e=Xi(e,t),e!==null&&(Uu(e,t),zr(e))}function d8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e2(e,n)}function f8(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error($(314))}r!==null&&r.delete(t),e2(e,n)}function p8(e,t){return rm(e,t)}var of=null,Co=null,j0=!1,uf=!1,H0=!1,vs=0;function zr(e){e!==Co&&e.next===null&&(Co===null?of=Co=e:Co=Co.next=e),uf=!0,j0||(j0=!0,m8(h8))}function El(e,t){if(!H0&&uf){H0=!0;do for(var n=!1,r=of;r!==null;){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var s=r.suspendedLanes,o=r.pingedLanes;a=(1<<31-In(42|e)+1)-1,a&=i&~(s&~o),a=a&201326677?a&201326677|1:a?a|2:0}a!==0&&(n=!0,r2(r,a))}else a=Ue,a=gd(r,r===tt?a:0),!(a&3)||Bu(r,a)||(n=!0,r2(r,a));r=r.next}while(n);H0=!1}}function h8(){uf=j0=!1;var e=0;vs!==0&&(T8()&&(e=vs),vs=0);for(var t=Br(),n=null,r=of;r!==null;){var i=r.next,a=t2(r,t);a===0?(r.next=null,n===null?of=i:n.next=i,i===null&&(Co=n)):(n=r,(e!==0||a&3)&&(uf=!0)),r=i}El(e)}function t2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-In(a),o=1<<s,u=i[s];u===-1?(!(o&n)||o&r)&&(i[s]=jN(o,t)):u<=t&&(e.expiredLanes|=o),a&=~o}if(t=tt,n=Ue,n=gd(e,e===t?n:0),r=e.callbackNode,n===0||e===t&&nt===2||e.cancelPendingCommit!==null)return r!==null&&r!==null&&im(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Bu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&im(r),ox(n)){case 2:case 8:n=tx;break;case 32:n=pd;break;case 268435456:n=nx;break;default:n=pd}return r=n2.bind(null,e),n=rm(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&im(r),e.callbackPriority=2,e.callbackNode=null,2}function n2(e,t){var n=e.callbackNode;if(Ao()&&e.callbackNode!==n)return null;var r=Ue;return r=gd(e,e===tt?r:0),r===0?null:(Vw(e,r,t),t2(e,Br()),e.callbackNode!=null&&e.callbackNode===n?n2.bind(null,e):null)}function r2(e,t){if(Ao())return null;Vw(e,t,!0)}function m8(e){S8(function(){mt&6?rm(ex,e):e()})}function z0(){return vs===0&&(vs=rx()),vs}function i2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ed(""+e)}function a2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function g8(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var a=i2((i[Tn]||null).action),s=r.submitter;s&&(t=(t=s[Tn]||null)?i2(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new Sd("action","action",null,r,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(vs!==0){var u=s?a2(i,s):new FormData(i);Zm(n,{pending:!0,data:u,method:i.method,action:a},null,u)}}else typeof a=="function"&&(o.preventDefault(),u=s?a2(i,s):new FormData(i),Zm(n,{pending:!0,data:u,method:i.method,action:a},a,u))},currentTarget:i}]})}}for(var V0=0;V0<Zx.length;V0++){var Y0=Zx[V0],b8=Y0.toLowerCase(),v8=Y0[0].toUpperCase()+Y0.slice(1);Er(b8,"on"+v8)}Er($x,"onAnimationEnd"),Er(Gx,"onAnimationIteration"),Er(Wx,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(ID,"onTransitionRun"),Er(PD,"onTransitionStart"),Er(BD,"onTransitionCancel"),Er(Xx,"onTransitionEnd"),Js("onMouseEnter",["mouseout","mouseover"]),Js("onMouseLeave",["mouseout","mouseover"]),Js("onPointerEnter",["pointerout","pointerover"]),Js("onPointerLeave",["pointerout","pointerover"]),Ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),y8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function s2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],u=o.instance,l=o.currentTarget;if(o=o.listener,u!==a&&i.isPropagationStopped())break e;a=o,i.currentTarget=l;try{a(i)}catch(c){Gd(c)}i.currentTarget=null,a=u}else for(s=0;s<r.length;s++){if(o=r[s],u=o.instance,l=o.currentTarget,o=o.listener,u!==a&&i.isPropagationStopped())break e;a=o,i.currentTarget=l;try{a(i)}catch(c){Gd(c)}i.currentTarget=null,a=u}}}}function Pe(e,t){var n=t[sm];n===void 0&&(n=t[sm]=new Set);var r=e+"__bubble";n.has(r)||(o2(t,e,2,!1),n.add(r))}function q0(e,t,n){var r=0;t&&(r|=4),o2(n,e,r,t)}var lf="_reactListening"+Math.random().toString(36).slice(2);function $0(e){if(!e[lf]){e[lf]=!0,cx.forEach(function(n){n!=="selectionchange"&&(y8.has(n)||q0(n,!1,e),q0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lf]||(t[lf]=!0,q0("selectionchange",!1,t))}}function o2(e,t,n,r){switch(O2(t)){case 2:var i=q8;break;case 8:i=$8;break;default:i=ag}n=i.bind(null,t,n,e),i=void 0,!hm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function G0(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Qa(o),s===null)return;if(u=s.tag,u===5||u===6||u===26||u===27){r=a=s;continue e}o=o.parentNode}}r=r.return}wx(function(){var l=a,c=fm(n),d=[];e:{var f=Kx.get(e);if(f!==void 0){var p=Sd,g=e;switch(e){case"keypress":if(Td(n)===0)break e;case"keydown":case"keyup":p=fD;break;case"focusin":g="focus",p=vm;break;case"focusout":g="blur",p=vm;break;case"beforeblur":case"afterblur":p=vm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Sx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=eD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=mD;break;case $x:case Gx:case Wx:p=rD;break;case Xx:p=bD;break;case"scroll":case"scrollend":p=QN;break;case"wheel":p=yD;break;case"copy":case"cut":case"paste":p=aD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Cx;break;case"toggle":case"beforetoggle":p=ED}var v=(t&4)!==0,w=!v&&(e==="scroll"||e==="scrollend"),m=v?f!==null?f+"Capture":null:f;v=[];for(var y=l,x;y!==null;){var T=y;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||m===null||(T=Hu(y,m),T!=null&&v.push(Tl(y,T,x))),w)break;y=y.return}0<v.length&&(f=new p(f,g,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==dm&&(g=n.relatedTarget||n.fromElement)&&(Qa(g)||g[Ks]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=l,g=g?Qa(g):null,g!==null&&(w=Gs(g),v=g.tag,g!==w||v!==5&&v!==27&&v!==6)&&(g=null)):(p=null,g=l),p!==g)){if(v=Sx,T="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Cx,T="onPointerLeave",m="onPointerEnter",y="pointer"),w=p==null?f:ju(p),x=g==null?f:ju(g),f=new v(T,y+"leave",p,n,c),f.target=w,f.relatedTarget=x,T=null,Qa(c)===l&&(v=new v(m,y+"enter",g,n,c),v.target=x,v.relatedTarget=w,T=v),w=T,p&&g)t:{for(v=p,m=g,y=0,x=v;x;x=ko(x))y++;for(x=0,T=m;T;T=ko(T))x++;for(;0<y-x;)v=ko(v),y--;for(;0<x-y;)m=ko(m),x--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=ko(v),m=ko(m)}v=null}else v=null;p!==null&&u2(d,f,p,v,!1),g!==null&&w!==null&&u2(d,w,g,v,!0)}}e:{if(f=l?ju(l):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=Ix;else if(Mx(f))if(Px)_=ND;else{_=RD;var A=kD}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?l&&cm(l.elementType)&&(_=Ix):_=OD;if(_&&(_=_(e,l))){Lx(d,_,n,c);break e}A&&A(e,f,l),e==="focusout"&&l&&f.type==="number"&&l.memoizedProps.value!=null&&lm(f,"number",f.value)}switch(A=l?ju(l):window,e){case"focusin":(Mx(A)||A.contentEditable==="true")&&(ao=A,_m=l,Xu=null);break;case"focusout":Xu=_m=ao=null;break;case"mousedown":Sm=!0;break;case"contextmenu":case"mouseup":case"dragend":Sm=!1,Yx(d,n,c);break;case"selectionchange":if(LD)break;case"keydown":case"keyup":Yx(d,n,c)}var C;if(xm)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else io?Nx(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(kx&&n.locale!=="ko"&&(io||D!=="onCompositionStart"?D==="onCompositionEnd"&&io&&(C=Tx()):(Wi=c,mm="value"in Wi?Wi.value:Wi.textContent,io=!0)),A=cf(l,D),0<A.length&&(D=new Ax(D,e,null,n,c),d.push({event:D,listeners:A}),C?D.data=C:(C=Dx(n),C!==null&&(D.data=C)))),(C=TD?_D(e,n):SD(e,n))&&(D=cf(l,"onBeforeInput"),0<D.length&&(A=new Ax("onBeforeInput","beforeinput",null,n,c),d.push({event:A,listeners:D}),A.data=C)),g8(d,e,l,n,c)}s2(d,t)})}function Tl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cf(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Hu(e,n),i!=null&&r.unshift(Tl(e,i,a)),i=Hu(e,t),i!=null&&r.push(Tl(e,i,a))),e=e.return}return r}function ko(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function u2(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,u=o.alternate,l=o.stateNode;if(o=o.tag,u!==null&&u===r)break;o!==5&&o!==26&&o!==27||l===null||(u=l,i?(l=Hu(n,a),l!=null&&s.unshift(Tl(n,l,u))):i||(l=Hu(n,a),l!=null&&s.push(Tl(n,l,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var x8=/\r\n?/g,E8=/\u0000|\uFFFD/g;function l2(e){return(typeof e=="string"?e:""+e).replace(x8,`
49
- `).replace(E8,"")}function c2(e,t){return t=l2(t),l2(e)===t}function df(){}function Ke(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||to(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&to(e,""+r);break;case"className":vd(e,"class",r);break;case"tabIndex":vd(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":vd(e,n,r);break;case"style":xx(e,r,a);break;case"data":if(t!=="object"){vd(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Ed(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",i.name,i,null),Ke(e,t,"formEncType",i.formEncType,i,null),Ke(e,t,"formMethod",i.formMethod,i,null),Ke(e,t,"formTarget",i.formTarget,i,null)):(Ke(e,t,"encType",i.encType,i,null),Ke(e,t,"method",i.method,i,null),Ke(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Ed(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=df);break;case"onScroll":r!=null&&Pe("scroll",e);break;case"onScrollEnd":r!=null&&Pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error($(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error($(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Ed(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Pe("beforetoggle",e),Pe("toggle",e),bd(e,"popover",r);break;case"xlinkActuate":si(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":si(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":si(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":si(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":si(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":si(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":si(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":si(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":si(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":bd(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=KN.get(n)||n,bd(e,n,r))}}function W0(e,t,n,r,i,a){switch(n){case"style":xx(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error($(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error($(60));e.innerHTML=n}}break;case"children":typeof r=="string"?to(e,r):(typeof r=="number"||typeof r=="bigint")&&to(e,""+r);break;case"onScroll":r!=null&&Pe("scroll",e);break;case"onScrollEnd":r!=null&&Pe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=df);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dx.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[Tn]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):bd(e,n,r)}}}function Jt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",e),Pe("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error($(137,t));default:Ke(e,t,a,s,n,null)}}i&&Ke(e,t,"srcSet",n.srcSet,n,null),r&&Ke(e,t,"src",n.src,n,null);return;case"input":Pe("invalid",e);var o=a=s=i=null,u=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"name":i=c;break;case"type":s=c;break;case"checked":u=c;break;case"defaultChecked":l=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error($(137,t));break;default:Ke(e,t,r,c,n,null)}}gx(e,a,o,u,l,s,i,!1),yd(e);return;case"select":Pe("invalid",e),r=s=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:Ke(e,t,i,o,n,null)}t=a,n=s,e.multiple=!!r,t!=null?eo(e,!!r,t,!1):n!=null&&eo(e,!!r,n,!0);return;case"textarea":Pe("invalid",e),a=i=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":i=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error($(91));break;default:Ke(e,t,s,o,n,null)}vx(e,r,i,a),yd(e);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ke(e,t,u,r,n,null)}return;case"dialog":Pe("cancel",e),Pe("close",e);break;case"iframe":case"object":Pe("load",e);break;case"video":case"audio":for(r=0;r<wl.length;r++)Pe(wl[r],e);break;case"image":Pe("error",e),Pe("load",e);break;case"details":Pe("toggle",e);break;case"embed":case"source":case"link":Pe("error",e),Pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error($(137,t));default:Ke(e,t,l,r,n,null)}return;default:if(cm(t)){for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!==void 0&&W0(e,t,c,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Ke(e,t,o,r,n,null))}function w8(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,o=null,u=null,l=null,c=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":u=d;default:r.hasOwnProperty(p)||Ke(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":a=p;break;case"name":i=p;break;case"checked":l=p;break;case"defaultChecked":c=p;break;case"value":s=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error($(137,t));break;default:p!==d&&Ke(e,t,f,p,r,d)}}um(e,s,o,u,l,c,a,i);return;case"select":p=s=o=f=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":p=u;default:r.hasOwnProperty(a)||Ke(e,t,a,null,r,u)}for(i in r)if(a=r[i],u=n[i],r.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":f=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==u&&Ke(e,t,i,a,r,u)}t=o,n=s,r=p,f!=null?eo(e,!!n,f,!1):!!r!=!!n&&(t!=null?eo(e,!!n,t,!0):eo(e,!!n,n?[]:"",!1));return;case"textarea":p=f=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ke(e,t,o,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error($(91));break;default:i!==a&&Ke(e,t,s,i,r,a)}bx(e,f,p);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!r.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ke(e,t,g,null,r,f)}for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ke(e,t,u,f,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!r.hasOwnProperty(v)&&Ke(e,t,v,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error($(137,t));break;default:Ke(e,t,l,f,r,p)}return;default:if(cm(t)){for(var w in n)f=n[w],n.hasOwnProperty(w)&&f!==void 0&&!r.hasOwnProperty(w)&&W0(e,t,w,void 0,r,f);for(c in r)f=r[c],p=n[c],!r.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||W0(e,t,c,f,r,p);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m)&&Ke(e,t,m,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||Ke(e,t,d,f,r,p)}var X0=null,K0=null;function ff(e){return e.nodeType===9?e:e.ownerDocument}function d2(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function f2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Z0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Q0=null;function T8(){var e=window.event;return e&&e.type==="popstate"?e===Q0?!1:(Q0=e,!0):(Q0=null,!1)}var p2=typeof setTimeout=="function"?setTimeout:void 0,_8=typeof clearTimeout=="function"?clearTimeout:void 0,h2=typeof Promise=="function"?Promise:void 0,S8=typeof queueMicrotask=="function"?queueMicrotask:typeof h2<"u"?function(e){return h2.resolve(null).then(e).catch(A8)}:p2;function A8(e){setTimeout(function(){throw e})}function J0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Nl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Nl(t)}function eg(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":eg(n),om(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function C8(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Fu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=_r(e.nextSibling),e===null)break}return null}function k8(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=_r(e.nextSibling),e===null))return null;return e}function _r(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function m2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function g2(e,t,n){switch(t=ff(n),e){case"html":if(e=t.documentElement,!e)throw Error($(452));return e;case"head":if(e=t.head,!e)throw Error($(453));return e;case"body":if(e=t.body,!e)throw Error($(454));return e;default:throw Error($(451))}}var cr=new Map,b2=new Set;function pf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Ei=ot.d;ot.d={f:R8,r:O8,D:N8,C:D8,L:M8,m:L8,X:P8,S:I8,M:B8};function R8(){var e=Ei.f(),t=af();return e||t}function O8(e){var t=Zs(e);t!==null&&t.tag===5&&t.type==="form"?YE(t):Ei.r(e)}var Ro=typeof document>"u"?null:document;function v2(e,t,n){var r=Ro;if(r&&typeof t=="string"&&t){var i=er(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),b2.has(i)||(b2.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Jt(t,"link",e),Vt(t),r.head.appendChild(t)))}}function N8(e){Ei.D(e),v2("dns-prefetch",e,null)}function D8(e,t){Ei.C(e,t),v2("preconnect",e,t)}function M8(e,t,n){Ei.L(e,t,n);var r=Ro;if(r&&e&&t){var i='link[rel="preload"][as="'+er(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+er(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+er(n.imageSizes)+'"]')):i+='[href="'+er(e)+'"]';var a=i;switch(t){case"style":a=Oo(e);break;case"script":a=No(e)}cr.has(a)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cr.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(_l(a))||t==="script"&&r.querySelector(Sl(a))||(t=r.createElement("link"),Jt(t,"link",e),Vt(t),r.head.appendChild(t)))}}function L8(e,t){Ei.m(e,t);var n=Ro;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+er(r)+'"][href="'+er(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=No(e)}if(!cr.has(a)&&(e=st({rel:"modulepreload",href:e},t),cr.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Sl(a)))return}r=n.createElement("link"),Jt(r,"link",e),Vt(r),n.head.appendChild(r)}}}function I8(e,t,n){Ei.S(e,t,n);var r=Ro;if(r&&e){var i=Qs(r).hoistableStyles,a=Oo(e);t=t||"default";var s=i.get(a);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(_l(a)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cr.get(a))&&tg(e,n);var u=s=r.createElement("link");Vt(u),Jt(u,"link",e),u._p=new Promise(function(l,c){u.onload=l,u.onerror=c}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,hf(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},i.set(a,s)}}}function P8(e,t){Ei.X(e,t);var n=Ro;if(n&&e){var r=Qs(n).hoistableScripts,i=No(e),a=r.get(i);a||(a=n.querySelector(Sl(i)),a||(e=st({src:e,async:!0},t),(t=cr.get(i))&&ng(e,t),a=n.createElement("script"),Vt(a),Jt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function B8(e,t){Ei.M(e,t);var n=Ro;if(n&&e){var r=Qs(n).hoistableScripts,i=No(e),a=r.get(i);a||(a=n.querySelector(Sl(i)),a||(e=st({src:e,async:!0,type:"module"},t),(t=cr.get(i))&&ng(e,t),a=n.createElement("script"),Vt(a),Jt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function y2(e,t,n,r){var i=(i=qi.current)?pf(i):null;if(!i)throw Error($(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Oo(n.href),n=Qs(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Oo(n.href);var a=Qs(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(_l(e)))&&!a._p&&(s.instance=a,s.state.loading=5),cr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cr.set(e,n),a||U8(i,e,n,s.state))),t&&r===null)throw Error($(528,""));return s}if(t&&r!==null)throw Error($(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=No(n),n=Qs(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error($(444,e))}}function Oo(e){return'href="'+er(e)+'"'}function _l(e){return'link[rel="stylesheet"]['+e+"]"}function x2(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function U8(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Jt(t,"link",n),Vt(t),e.head.appendChild(t))}function No(e){return'[src="'+er(e)+'"]'}function Sl(e){return"script[async]"+e}function E2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+er(n.href)+'"]');if(r)return t.instance=r,Vt(r),r;var i=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Vt(r),Jt(r,"style",i),hf(r,n.precedence,e),t.instance=r;case"stylesheet":i=Oo(n.href);var a=e.querySelector(_l(i));if(a)return t.state.loading|=4,t.instance=a,Vt(a),a;r=x2(n),(i=cr.get(i))&&tg(r,i),a=(e.ownerDocument||e).createElement("link"),Vt(a);var s=a;return s._p=new Promise(function(o,u){s.onload=o,s.onerror=u}),Jt(a,"link",r),t.state.loading|=4,hf(a,n.precedence,e),t.instance=a;case"script":return a=No(n.src),(i=e.querySelector(Sl(a)))?(t.instance=i,Vt(i),i):(r=n,(i=cr.get(a))&&(r=st({},n),ng(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Vt(i),Jt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error($(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,hf(r,n.precedence,e));return t.instance}function hf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)a=o;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function tg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ng(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mf=null;function w2(e,t,n){if(mf===null){var r=new Map,i=mf=new Map;i.set(n,r)}else i=mf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Fu]||a[rn]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(a):r.set(s,[a])}}return r}function T2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function F8(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _2(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Al=null;function j8(){}function H8(e,t,n){if(Al===null)throw Error($(475));var r=Al;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=Oo(n.href),a=e.querySelector(_l(i));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=gf.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,Vt(a);return}a=e.ownerDocument||e,n=x2(n),(i=cr.get(i))&&tg(n,i),a=a.createElement("link"),Vt(a);var s=a;s._p=new Promise(function(o,u){s.onload=o,s.onerror=u}),Jt(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=gf.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function z8(){if(Al===null)throw Error($(475));var e=Al;return e.stylesheets&&e.count===0&&rg(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&rg(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function gf(){if(this.count--,this.count===0){if(this.stylesheets)rg(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bf=null;function rg(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bf=new Map,t.forEach(V8,e),bf=null,gf.call(e))}function V8(e,t){if(!(t.state.loading&4)){var n=bf.get(e);if(n)var r=n.get(null);else{n=new Map,bf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var s=i[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}i=t.instance,s=i.getAttribute("data-precedence"),a=n.get(s)||r,a===r&&n.set(null,i),n.set(s,i),this.count++,r=gf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Cl={$$typeof:ii,Provider:null,Consumer:null,_currentValue:Ka,_currentValue2:Ka,_threadCount:0};function Y8(e,t,n,r,i,a,s,o){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=am(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=am(0),this.hiddenUpdates=am(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function S2(e,t,n,r,i,a,s,o,u,l,c,d){return e=new Y8(e,t,n,s,o,u,l,d),t=1,a===!0&&(t|=24),a=ur(3,null,null,t),e.current=a,a.stateNode=e,t=Im(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},m0(a),e}function A2(e){return e?(e=uo,e):uo}function C2(e,t,n,r,i,a){i=A2(i),r.context===null?r.context=i:r.pendingContext=i,r=na(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ra(e,r,t),n!==null&&(vn(n,e,t),cl(n,e,t))}function k2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ig(e,t){k2(e,t),(e=e.alternate)&&k2(e,t)}function R2(e){if(e.tag===13){var t=Xi(e,67108864);t!==null&&vn(t,e,67108864),ig(e,67108864)}}var vf=!0;function q8(e,t,n,r){var i=Ee.T;Ee.T=null;var a=ot.p;try{ot.p=2,ag(e,t,n,r)}finally{ot.p=a,Ee.T=i}}function $8(e,t,n,r){var i=Ee.T;Ee.T=null;var a=ot.p;try{ot.p=8,ag(e,t,n,r)}finally{ot.p=a,Ee.T=i}}function ag(e,t,n,r){if(vf){var i=sg(r);if(i===null)G0(e,t,r,yf,n),N2(e,r);else if(W8(i,e,t,n,r))r.stopPropagation();else if(N2(e,r),t&4&&-1<G8.indexOf(e)){for(;i!==null;){var a=Zs(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=Za(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var u=1<<31-In(s);o.entanglements[1]|=u,s&=~u}zr(a),!(mt&6)&&(tf=Br()+500,El(0))}}break;case 13:o=Xi(a,2),o!==null&&vn(o,a,2),af(),ig(a,2)}if(a=sg(r),a===null&&G0(e,t,r,yf,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else G0(e,t,r,null,n)}}function sg(e){return e=fm(e),og(e)}var yf=null;function og(e){if(yf=null,e=Qa(e),e!==null){var t=Gs(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Zy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yf=e,null}function O2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(DN()){case ex:return 2;case tx:return 8;case pd:case MN:return 32;case nx:return 268435456;default:return 32}default:return 32}}var ug=!1,ca=null,da=null,fa=null,kl=new Map,Rl=new Map,pa=[],G8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function N2(e,t){switch(e){case"focusin":case"focusout":ca=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(t.pointerId)}}function Ol(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Zs(t),t!==null&&R2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function W8(e,t,n,r,i){switch(t){case"focusin":return ca=Ol(ca,e,t,n,r,i),!0;case"dragenter":return da=Ol(da,e,t,n,r,i),!0;case"mouseover":return fa=Ol(fa,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return kl.set(a,Ol(kl.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Rl.set(a,Ol(Rl.get(a)||null,e,t,n,r,i)),!0}return!1}function D2(e){var t=Qa(e.target);if(t!==null){var n=Gs(t);if(n!==null){if(t=n.tag,t===13){if(t=Zy(n),t!==null){e.blockedOn=t,zN(e.priority,function(){if(n.tag===13){var r=jn(),i=Xi(n,r);i!==null&&vn(i,n,r),ig(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sg(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dm=r,n.target.dispatchEvent(r),dm=null}else return t=Zs(n),t!==null&&R2(t),e.blockedOn=n,!1;t.shift()}return!0}function M2(e,t,n){xf(e)&&n.delete(t)}function X8(){ug=!1,ca!==null&&xf(ca)&&(ca=null),da!==null&&xf(da)&&(da=null),fa!==null&&xf(fa)&&(fa=null),kl.forEach(M2),Rl.forEach(M2)}function Ef(e,t){e.blockedOn===t&&(e.blockedOn=null,ug||(ug=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,X8)))}var wf=null;function L2(e){wf!==e&&(wf=e,It.unstable_scheduleCallback(It.unstable_NormalPriority,function(){wf===e&&(wf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(og(r||n)===null)continue;break}var a=Zs(n);a!==null&&(e.splice(t,3),t-=3,Zm(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Nl(e){function t(u){return Ef(u,e)}ca!==null&&Ef(ca,e),da!==null&&Ef(da,e),fa!==null&&Ef(fa,e),kl.forEach(t),Rl.forEach(t);for(var n=0;n<pa.length;n++){var r=pa[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<pa.length&&(n=pa[0],n.blockedOn===null);)D2(n),n.blockedOn===null&&pa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],s=i[Tn]||null;if(typeof a=="function")s||L2(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(i=a,s=a[Tn]||null)o=s.formAction;else if(og(i)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),L2(n)}}}function lg(e){this._internalRoot=e}Tf.prototype.render=lg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));var n=t.current,r=jn();C2(n,r,e,t,null,null)},Tf.prototype.unmount=lg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Ao(),C2(e.current,2,null,e,null,null),af(),t[Ks]=null}};function Tf(e){this._internalRoot=e}Tf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ux();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pa.length&&t!==0&&t<pa[n].priority;n++);pa.splice(n,0,e),n===0&&D2(e)}};var I2=Vy.version;if(I2!=="19.0.0")throw Error($(527,I2,"19.0.0"));ot.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):(e=Object.keys(e).join(","),Error($(268,e)));return e=RN(t),e=e!==null?Jy(e):null,e=e===null?null:e.stateNode,e};var K8={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Ee,findFiberByHostInstance:Qa,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_f.isDisabled&&_f.supportsFiber)try{Pu=_f.inject(K8),Ln=_f}catch{}}od.createRoot=function(e,t){if(!Yy(e))throw Error($(299));var n=!1,r="",i=QE,a=JE,s=ew,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=S2(e,1,!1,null,null,n,r,i,a,s,o,null),e[Ks]=t.current,$0(e.nodeType===8?e.parentNode:e),new lg(t)},od.hydrateRoot=function(e,t,n){if(!Yy(e))throw Error($(299));var r=!1,i="",a=QE,s=JE,o=ew,u=null,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(u=n.unstable_transitionCallbacks),n.formState!==void 0&&(l=n.formState)),t=S2(e,1,!0,t,n??null,r,i,a,s,o,u,l),t.context=A2(null),n=t.current,r=jn(),i=na(r),i.callback=null,ra(n,i,r),t.current.lanes=r,Uu(t,r),zr(t),e[Ks]=t.current,$0(e),new Tf(t)},od.version="19.0.0";function P2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P2)}catch(e){console.error(e)}}P2(),By.exports=od;var Z8=By.exports;const B2="3.0.66";function Q8(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Dl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const cg=e=>Array.isArray(e);function U2(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ml(e){return typeof e=="string"||Array.isArray(e)}function F2(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function dg(e,t,n,r){if(typeof t=="function"){const[i,a]=F2(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=F2(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Sf(e,t,n){const r=e.getProps();return dg(r,t,n!==void 0?n:r.custom,e)}const fg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pg=["initial",...fg],Ll=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ha=new Set(Ll),wi=e=>e*1e3,Ti=e=>e/1e3,J8={type:"spring",stiffness:500,damping:25,restSpeed:10},eM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tM={type:"keyframes",duration:.8},nM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rM=(e,{keyframes:t})=>t.length>2?tM:ha.has(e)?e.startsWith("scale")?eM(t[1]):J8:nM;function hg(e,t){return e?e[t]||e.default||e:void 0}const iM={skipAnimations:!1,useManualTiming:!1},aM=e=>e!==null;function Af(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(aM),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const sn=e=>e;function sM(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(l){a.has(l)&&(u.schedule(l),e()),l(s)}const u={schedule:(l,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&a.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(s=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(o),r=!1,i&&(i=!1,u.process(l))}};return u}const Cf=["read","resolveKeyframes","update","preRender","render","postRender"],oM=40;function j2(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Cf.reduce((m,y)=>(m[y]=sM(a),m),{}),{read:o,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,oM),1),i.timestamp=m,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},g=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:Cf.reduce((m,y)=>{const x=s[y];return m[y]=(T,_=!1,A=!1)=>(n||g(),x.schedule(T,_,A)),m},{}),cancel:m=>{for(let y=0;y<Cf.length;y++)s[Cf[y]].cancel(m)},state:i,steps:s}}const{schedule:Ze,cancel:ma,state:en,steps:mg}=j2(typeof requestAnimationFrame<"u"?requestAnimationFrame:sn,!0),H2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uM=1e-7,lM=12;function cM(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=H2(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>uM&&++o<lM);return s}function Il(e,t,n,r){if(e===t&&n===r)return sn;const i=a=>cM(a,0,1,e,n);return a=>a===0||a===1?a:H2(i(a),t,r)}const z2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V2=e=>t=>1-e(1-t),Y2=Il(.33,1.53,.69,.99),gg=V2(Y2),q2=z2(gg),$2=e=>(e*=2)<1?.5*gg(e):.5*(2-Math.pow(2,-10*(e-1))),bg=e=>1-Math.sin(Math.acos(e)),G2=V2(bg),W2=z2(bg),X2=e=>/^0[^.\s]+$/u.test(e);function dM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||X2(e):!0}let vg=sn;const K2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Z2=e=>t=>typeof t=="string"&&t.startsWith(e),Q2=Z2("--"),fM=Z2("var(--"),yg=e=>fM(e)?pM.test(e.split("/*")[0].trim()):!1,pM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mM(e){const t=hM.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function J2(e,t,n=1){const[r,i]=mM(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return K2(s)?parseFloat(s):s}return yg(i)?J2(i,t,n+1):i}const ga=(e,t,n)=>n>t?t:n<e?e:n,Do={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pl={...Do,transform:e=>ga(0,1,e)},kf={...Do,default:1},Bl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ba=Bl("deg"),Vr=Bl("%"),pe=Bl("px"),gM=Bl("vh"),bM=Bl("vw"),eT={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},vM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tT=e=>e===Do||e===pe,nT=(e,t)=>parseFloat(e.split(", ")[t]),rT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return nT(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?nT(a[1],e):0}},yM=new Set(["x","y","z"]),xM=Ll.filter(e=>!yM.has(e));function EM(e){const t=[];return xM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rT(4,13),y:rT(5,14)};Mo.translateX=Mo.x,Mo.translateY=Mo.y;const iT=e=>t=>t.test(e),aT=[Do,pe,Vr,ba,bM,gM,{test:e=>e==="auto",parse:e=>e}],sT=e=>aT.find(iT(e)),ys=new Set;let xg=!1,Eg=!1;function oT(){if(Eg){const e=Array.from(ys).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=EM(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Eg=!1,xg=!1,ys.forEach(e=>e.complete()),ys.clear()}function uT(){ys.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Eg=!0)})}function wM(){uT(),oT()}class wg{constructor(t,n,r,i,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ys.add(this),xg||(xg=!0,Ze.read(uT),Ze.resolveKeyframes(oT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,o);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ys.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ys.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ul=e=>Math.round(e*1e5)/1e5,Tg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TM(e){return e==null}const _M=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_g=(e,t)=>n=>!!(typeof n=="string"&&_M.test(n)&&n.startsWith(e)||t&&!TM(n)&&Object.prototype.hasOwnProperty.call(n,t)),lT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Tg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},SM=e=>ga(0,255,e),Sg={...Do,transform:e=>Math.round(SM(e))},xs={test:_g("rgb","red"),parse:lT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sg.transform(e)+", "+Sg.transform(t)+", "+Sg.transform(n)+", "+Ul(Pl.transform(r))+")"};function AM(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ag={test:_g("#"),parse:AM,transform:xs.transform},Lo={test:_g("hsl","hue"),parse:lT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Ul(t))+", "+Vr.transform(Ul(n))+", "+Ul(Pl.transform(r))+")"},on={test:e=>xs.test(e)||Ag.test(e)||Lo.test(e),parse:e=>xs.test(e)?xs.parse(e):Lo.test(e)?Lo.parse(e):Ag.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xs.transform(e):Lo.transform(e)},CM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(CM))===null||n===void 0?void 0:n.length)||0)>0}const cT="number",dT="color",RM="var",OM="var(",fT="${}",NM=/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 Fl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(NM,u=>(on.test(u)?(r.color.push(a),i.push(dT),n.push(on.parse(u))):u.startsWith(OM)?(r.var.push(a),i.push(RM),n.push(u)):(r.number.push(a),i.push(cT),n.push(parseFloat(u))),++a,fT)).split(fT);return{values:n,split:o,indexes:r,types:i}}function pT(e){return Fl(e).values}function hT(e){const{split:t,types:n}=Fl(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===cT?a+=Ul(i[s]):o===dT?a+=on.transform(i[s]):a+=i[s]}return a}}const DM=e=>typeof e=="number"?0:e;function MM(e){const t=pT(e);return hT(e)(t.map(DM))}const va={test:kM,parse:pT,createTransformer:hT,getAnimatableNone:MM},LM=new Set(["brightness","contrast","saturate","opacity"]);function IM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Tg)||[];if(!r)return e;const i=n.replace(r,"");let a=LM.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const PM=/\b([a-z-]*)\(.*?\)/gu,Cg={...va,getAnimatableNone:e=>{const t=e.match(PM);return t?t.map(IM).join(" "):e}},BM={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},UM={rotate:ba,rotateX:ba,rotateY:ba,rotateZ:ba,scale:kf,scaleX:kf,scaleY:kf,scaleZ:kf,skew:ba,skewX:ba,skewY:ba,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Pl,originX:eT,originY:eT,originZ:pe},mT={...Do,transform:Math.round},kg={...BM,...UM,zIndex:mT,size:pe,fillOpacity:Pl,strokeOpacity:Pl,numOctaves:mT},FM={...kg,color:on,backgroundColor:on,outlineColor:on,fill:on,stroke:on,borderColor:on,borderTopColor:on,borderRightColor:on,borderBottomColor:on,borderLeftColor:on,filter:Cg,WebkitFilter:Cg},Rg=e=>FM[e];function gT(e,t){let n=Rg(e);return n!==Cg&&(n=va),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jM=new Set(["auto","none","0"]);function HM(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!jM.has(a)&&Fl(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=gT(n,i)}class bT extends wg{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),yg(l))){const c=J2(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!vM.has(r)||t.length!==2)return;const[i,a]=t,s=sT(i),o=sT(a);if(s!==o)if(tT(s)&&tT(o))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)dM(t[i])&&r.push(i);r.length&&HM(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=Mo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,l])=>{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Og(e){return typeof e=="function"}let Rf;function zM(){Rf=void 0}const Yr={now:()=>(Rf===void 0&&Yr.set(en.isProcessing||iM.useManualTiming?en.timestamp:performance.now()),Rf),set:e=>{Rf=e,queueMicrotask(zM)}},vT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(va.test(e)||e==="0")&&!e.startsWith("url("));function VM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function YM(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=vT(i,t),o=vT(a,t);return!s||!o?!1:VM(e)||(n==="spring"||Og(n))&&r}const qM=40;class yT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>qM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&wM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:s,onComplete:o,onUpdate:u,isGenerator:l}=this.options;if(!l&&!YM(t,r,i,a))if(s)this.options.duration=0;else{u==null||u(Af(t,this.options,n)),o==null||o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function xT(e,t){return t?e*(1e3/t):0}const $M=5;function ET(e,t,n){const r=Math.max(t-$M,0);return xT(n-e(r),t-r)}const Ng=.001,GM=.01,WM=10,XM=.05,KM=1;function ZM({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,s=1-t;s=ga(XM,KM,s),e=ga(GM,WM,Ti(e)),s<1?(i=l=>{const c=l*s,d=c*e,f=c-n,p=Dg(l,s),g=Math.exp(-d);return Ng-f/p*g},a=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,g=Math.exp(-d),v=Dg(Math.pow(l,2),s);return(-i(l)+Ng>0?-1:1)*((f-p)*g)/v}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Ng+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=JM(i,a,o);if(e=wi(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const QM=12;function JM(e,t,n){let r=n;for(let i=1;i<QM;i++)r=r-e(r)/t(r);return r}function Dg(e,t){return e*Math.sqrt(1-t*t)}const eL=["duration","bounce"],tL=["stiffness","damping","mass"];function wT(e,t){return t.some(n=>e[n]!==void 0)}function nL(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wT(e,tL)&&wT(e,eL)){const n=ZM(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function TT({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],s={done:!1,value:i},{stiffness:o,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=nL({...r,velocity:-Ti(r.velocity||0)}),p=d||0,g=u/(2*Math.sqrt(o*l)),v=a-i,w=Ti(Math.sqrt(o/l)),m=Math.abs(v)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(g<1){const x=Dg(w,g);y=T=>{const _=Math.exp(-g*w*T);return a-_*((p+g*w*v)/x*Math.sin(x*T)+v*Math.cos(x*T))}}else if(g===1)y=x=>a-Math.exp(-w*x)*(v+(p+w*v)*x);else{const x=w*Math.sqrt(g*g-1);y=T=>{const _=Math.exp(-g*w*T),A=Math.min(x*T,300);return a-_*((p+g*w*v)*Math.sinh(A)+x*v*Math.cosh(A))/x}}return{calculatedDuration:f&&c||null,next:x=>{const T=y(x);if(f)s.done=x>=c;else{let _=0;g<1&&(_=x===0?wi(p):ET(y,x,T));const A=Math.abs(_)<=n,C=Math.abs(a-T)<=t;s.done=A&&C}return s.value=s.done?a:T,s}}}function _T({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=D=>o!==void 0&&D<o||u!==void 0&&D>u,g=D=>o===void 0?u:u===void 0||Math.abs(o-D)<Math.abs(u-D)?o:u;let v=n*t;const w=d+v,m=s===void 0?w:s(w);m!==w&&(v=m-d);const y=D=>-v*Math.exp(-D/r),x=D=>m+y(D),T=D=>{const F=y(D),N=x(D);f.done=Math.abs(F)<=l,f.value=f.done?m:N};let _,A;const C=D=>{p(f.value)&&(_=D,A=TT({keyframes:[f.value,g(f.value)],velocity:ET(x,D,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return C(0),{calculatedDuration:null,next:D=>{let F=!1;return!A&&_===void 0&&(F=!0,T(D),C(D)),_!==void 0&&D>=_?A.next(D-_):(!F&&T(D),f)}}}const rL=Il(.42,0,1,1),iL=Il(0,0,.58,1),ST=Il(.42,0,.58,1),aL=e=>Array.isArray(e)&&typeof e[0]!="number",Mg=e=>Array.isArray(e)&&typeof e[0]=="number",AT={linear:sn,easeIn:rL,easeInOut:ST,easeOut:iL,circIn:bg,circInOut:W2,circOut:G2,backIn:gg,backInOut:q2,backOut:Y2,anticipate:$2},CT=e=>{if(Mg(e)){vg(e.length===4);const[t,n,r,i]=e;return Il(t,n,r,i)}else if(typeof e=="string")return vg(AT[e]!==void 0),AT[e];return e},sL=(e,t)=>n=>t(e(n)),_i=(...e)=>e.reduce(sL),Io=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},gt=(e,t,n)=>e+(t-e)*n;function Lg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Lg(u,o,e+1/3),a=Lg(u,o,e),s=Lg(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Of(e,t){return n=>n>0?t:e}const Ig=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},uL=[Ag,xs,Lo],lL=e=>uL.find(t=>t.test(e));function kT(e){const t=lL(e);if(!t)return!1;let n=t.parse(e);return t===Lo&&(n=oL(n)),n}const RT=(e,t)=>{const n=kT(e),r=kT(t);if(!n||!r)return Of(e,t);const i={...n};return a=>(i.red=Ig(n.red,r.red,a),i.green=Ig(n.green,r.green,a),i.blue=Ig(n.blue,r.blue,a),i.alpha=gt(n.alpha,r.alpha,a),xs.transform(i))},Pg=new Set(["none","hidden"]);function cL(e,t){return Pg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dL(e,t){return n=>gt(e,t,n)}function Bg(e){return typeof e=="number"?dL:typeof e=="string"?yg(e)?Of:on.test(e)?RT:hL:Array.isArray(e)?OT:typeof e=="object"?on.test(e)?RT:fL:Of}function OT(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>Bg(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function fL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bg(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function pL(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][i[s]],u=(n=e.values[o])!==null&&n!==void 0?n:0;r[a]=u,i[s]++}return r}const hL=(e,t)=>{const n=va.createTransformer(t),r=Fl(e),i=Fl(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pg.has(e)&&!i.values.length||Pg.has(t)&&!r.values.length?cL(e,t):_i(OT(pL(r,i),i.values),n):Of(e,t)};function NT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?gt(e,t,n):Bg(e)(e,t)}function mL(e,t,n){const r=[],i=n||NT,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||sn:t;o=_i(u,o)}r.push(o)}return r}function gL(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(vg(a===t.length),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=mL(t,r,i),o=s.length,u=l=>{let c=0;if(o>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=Io(e[c],e[c+1],l);return s[c](d)};return n?l=>u(ga(e[0],e[a-1],l)):u}function bL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Io(0,t,r);e.push(gt(n,1,i))}}function vL(e){const t=[0];return bL(t,e.length-1),t}function yL(e,t){return e.map(n=>n*t)}function xL(e,t){return e.map(()=>t||ST).splice(0,e.length-1)}function Nf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aL(r)?r.map(CT):CT(r),a={done:!1,value:t[0]},s=yL(n&&n.length===t.length?n:vL(t),e),o=gL(s,t,{ease:Array.isArray(i)?i:xL(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const DT=2e4;function EL(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<DT;)t+=n,r=e.next(t);return t>=DT?1/0:t}const wL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ze.update(t,!0),stop:()=>ma(t),now:()=>en.isProcessing?en.timestamp:Yr.now()}},TL={decay:_T,inertia:_T,tween:Nf,keyframes:Nf,spring:TT},_L=e=>e/100;class Ug extends yT{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,s=(i==null?void 0:i.KeyframeResolver)||wg,o=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new s(a,o,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,o=Og(n)?n:TL[n]||Nf;let u,l;o!==Nf&&typeof t[0]!="number"&&(u=_i(_L,NT(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});a==="mirror"&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=EL(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return a.next(0);const{delay:f,repeat:p,repeatType:g,repeatDelay:v,onUpdate:w}=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)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,T=a;if(p){const D=Math.min(this.currentTime,c)/d;let F=Math.floor(D),N=D%1;!N&&D>=1&&(N=1),N===1&&F--,F=Math.min(F,p+1),!!(F%2)&&(g==="reverse"?(N=1-N,v&&(N-=v/d)):g==="mirror"&&(T=s)),x=ga(0,1,N)*d}const _=y?{done:!1,value:u[0]}:T.next(x);o&&(_.value=o(_.value));let{done:A}=_;!y&&l!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return C&&i!==void 0&&(_.value=Af(u,this.options,i)),w&&w(_.value),C&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Ti(t.calculatedDuration):0}get time(){return Ti(this.currentTime)}set time(t){t=wi(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 n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ti(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wL,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??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 MT=new Set(["opacity","clipPath","filter","transform"]),SL=10,AL=(e,t)=>{let n="";const r=Math.max(Math.round(t/SL),2);for(let i=0;i<r;i++)n+=e(Io(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Fg(e){let t;return()=>(t===void 0&&(t=e()),t)}const CL={linearEasing:void 0};function kL(e,t){const n=Fg(e);return()=>{var r;return(r=CL[t])!==null&&r!==void 0?r:n()}}const Df=kL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function LT(e){return!!(typeof e=="function"&&Df()||!e||typeof e=="string"&&(e in jg||Df())||Mg(e)||Array.isArray(e)&&e.every(LT))}const jl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function IT(e,t){if(e)return typeof e=="function"&&Df()?AL(e,t):Mg(e)?jl(e):Array.isArray(e)?e.map(n=>IT(n,t)||jg.easeOut):jg[e]}function RL(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=IT(o,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function PT(e,t){e.timeline=t,e.onfinish=null}const OL=Fg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mf=10,NL=2e4;function DL(e){return Og(e.type)||e.type==="spring"||!LT(e.ease)}function ML(e,t){const n=new Ug({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<NL;)r=n.sample(a),i.push(r.value),a+=Mf;return{times:void 0,keyframes:i,duration:a-Mf,ease:"linear"}}const BT={anticipate:$2,backInOut:q2,circInOut:W2};function LL(e){return e in BT}class UT extends yT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new bT(a,(s,o)=>this.onKeyframesResolved(s,o),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:s,type:o,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Df()&&LL(s)&&(s=BT[s]),DL(this.options)){const{onComplete:f,onUpdate:p,motionValue:g,element:v,...w}=this.options,m=ML(t,w);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,a=m.times,s=m.ease,o="keyframes"}const d=RL(u.owner.current,l,t,{...this.options,duration:i,times:a,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(PT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Af(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:a,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ti(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ti(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return sn;const{animation:r}=n;PT(r,t)}return sn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.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:n,keyframes:r,duration:i,type:a,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...p}=this.options,g=new Ug({...p,keyframes:r,duration:i,type:a,ease:s,times:o,isGenerator:!0}),v=wi(this.time);l.setWithVelocity(g.sample(v-Mf).value,g.sample(v).value,Mf)}const{onStop:u}=this.options;u&&u(),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:n,name:r,repeatDelay:i,repeatType:a,damping:s,type:o}=t;return OL()&&r&&MT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&s!==0&&o!=="inertia"}}const IL=Fg(()=>window.ScrollTimeline!==void 0);class PL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>IL()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function BL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const Hg=(e,t,n,r={},i,a)=>s=>{const o=hg(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-wi(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};BL(o)||(c={...c,...rM(e,c)}),c.duration&&(c.duration=wi(c.duration)),c.repeatDelay&&(c.repeatDelay=wi(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){const f=Af(c.keyframes,o);if(f!==void 0)return Ze.update(()=>{c.onUpdate(f),c.onComplete()}),new PL([])}return!a&&UT.supports(c)?new UT(c):new Ug(c)},UL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FL=e=>cg(e)?e[e.length-1]||0:e;function zg(e,t){e.indexOf(t)===-1&&e.push(t)}function Vg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yg{constructor(){this.subscriptions=[]}add(t){return zg(this.subscriptions,t),()=>Vg(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const FT=30,jL=e=>!isNaN(parseFloat(e));class HL{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Yr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=jL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ze.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>FT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,FT);return xT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hl(e,t){return new HL(e,t)}function zL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hl(n))}function VL(e,t){const n=Sf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=FL(a[s]);zL(e,s,o)}}const Lf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jT="data-"+Lf("framerAppearId");function HT(e){return e.props[jT]}const un=e=>!!(e&&e.getVelocity);function YL(e){return!!(un(e)&&e.add)}function qg(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(YL(n))return n.add(t)}function qL({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function zT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...u}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),p=u[d];if(p===void 0||c&&qL(c,d))continue;const g={delay:n,...hg(s||{},d)};let v=!1;if(window.MotionHandoffAnimation){const m=HT(e);if(m){const y=window.MotionHandoffAnimation(m,d,Ze);y!==null&&(g.startTime=y,v=!0)}}qg(e,d),f.start(Hg(d,f,p,e.shouldReduceMotion&&ha.has(d)?{type:!1}:g,e,v));const w=f.animation;w&&l.push(w)}return o&&Promise.all(l).then(()=>{Ze.update(()=>{o&&VL(e,o)})}),l}function $g(e,t,n={}){var r;const i=Sf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const s=i?()=>Promise.all(zT(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return $L(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[l,c]=u==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function $L(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>o-l*r;return Array.from(e.variantChildren).sort(GL).forEach((l,c)=>{l.notify("AnimationStart",t),s.push($g(l,t,{...a,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function GL(e,t){return e.sortNodePosition(t)}function WL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>$g(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=$g(e,t,n);else{const i=typeof t=="function"?Sf(e,t,n.custom):t;r=Promise.all(zT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const XL=pg.length;function VT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?VT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<XL;n++){const r=pg[n],i=e.props[r];(Ml(i)||i===!1)&&(t[r]=i)}return t}const KL=[...fg].reverse(),ZL=fg.length;function QL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>WL(e,n,r)))}function JL(e){let t=QL(e),n=YT(),r=!0;const i=u=>(l,c)=>{var d;const f=Sf(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:g,...v}=f;l={...l,...v,...g}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=VT(e.parent)||{},d=[],f=new Set;let p={},g=1/0;for(let w=0;w<ZL;w++){const m=KL[w],y=n[m],x=l[m]!==void 0?l[m]:c[m],T=Ml(x),_=m===u?y.isActive:null;_===!1&&(g=w);let A=x===c[m]&&x!==l[m]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...p},!y.isActive&&_===null||!x&&!y.prevProp||Dl(x)||typeof x=="boolean")continue;const C=e9(y.prevProp,x);let D=C||m===u&&y.isActive&&!A&&T||w>g&&T,F=!1;const N=Array.isArray(x)?x:[x];let Y=N.reduce(i(m),{});_===!1&&(Y={});const{prevResolvedValues:H={}}=y,ee={...H,...Y},G=q=>{D=!0,f.has(q)&&(F=!0,f.delete(q)),y.needsAnimating[q]=!0;const z=e.getValue(q);z&&(z.liveStyle=!1)};for(const q in ee){const z=Y[q],V=H[q];if(p.hasOwnProperty(q))continue;let R=!1;cg(z)&&cg(V)?R=!U2(z,V):R=z!==V,R?z!=null?G(q):f.add(q):z!==void 0&&f.has(q)?G(q):y.protectedKeys[q]=!0}y.prevProp=x,y.prevResolvedValues=Y,y.isActive&&(p={...p,...Y}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(A&&C)||F)&&d.push(...N.map(q=>({animation:q,options:{type:m}})))}if(f.size){const w={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),w[m]=y??null}),d.push({animation:w})}let v=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function o(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(u,l)}),n[u].isActive=l;const d=s(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=YT(),r=!0}}}function e9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!U2(t,e):!1}function Es(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YT(){return{animate:Es(!0),whileInView:Es(),whileHover:Es(),whileTap:Es(),whileDrag:Es(),whileFocus:Es(),exit:Es()}}class ya{constructor(t){this.isMounted=!1,this.node=t}update(){}}class t9 extends ya{constructor(t){super(t),t.animationState||(t.animationState=JL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Dl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let n9=0;class r9 extends ya{constructor(){super(...arguments),this.id=n9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const i9={animation:{Feature:t9},exit:{Feature:r9}},qT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function If(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const a9=e=>t=>qT(t)&&e(t,If(t));function Si(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ai(e,t,n,r){return Si(e,t,a9(n),r)}const $T=(e,t)=>Math.abs(e-t);function s9(e,t){const n=$T(e.x,t.x),r=$T(e.y,t.y);return Math.sqrt(n**2+r**2)}class GT{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Wg(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=s9(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:g}=d,{timestamp:v}=en;this.history.push({...g,timestamp:v});const{onStart:w,onMove:m}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Gg(f,this.transformPagePoint),Ze.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Wg(d.type==="pointercancel"?this.lastMoveEventInfo:Gg(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,w),g&&g(d,w)},!qT(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=If(t),o=Gg(s,this.transformPagePoint),{point:u}=o,{timestamp:l}=en;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Wg(o,this.history)),this.removeListeners=_i(Ai(this.contextWindow,"pointermove",this.handlePointerMove),Ai(this.contextWindow,"pointerup",this.handlePointerUp),Ai(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ma(this.updatePoint)}}function Gg(e,t){return t?{point:t(e.point)}:e}function WT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:WT(e,XT(t)),offset:WT(e,o9(t)),velocity:u9(t,.1)}}function o9(e){return e[0]}function XT(e){return e[e.length-1]}function u9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=XT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wi(t)));)n--;if(!r)return{x:0,y:0};const a=Ti(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function KT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ZT=KT("dragHorizontal"),QT=KT("dragVertical");function JT(e){let t=!1;if(e==="y")t=QT();else if(e==="x")t=ZT();else{const n=ZT(),r=QT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function e_(){const e=JT(!0);return e?(e(),!1):!0}function Po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const t_=1e-4,l9=1-t_,c9=1+t_,n_=.01,d9=0-n_,f9=0+n_;function Hn(e){return e.max-e.min}function p9(e,t,n){return Math.abs(e-t)<=n}function r_(e,t,n,r=.5){e.origin=r,e.originPoint=gt(t.min,t.max,e.origin),e.scale=Hn(n)/Hn(t),e.translate=gt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=l9&&e.scale<=c9||isNaN(e.scale))&&(e.scale=1),(e.translate>=d9&&e.translate<=f9||isNaN(e.translate))&&(e.translate=0)}function zl(e,t,n,r){r_(e.x,t.x,n.x,r?r.originX:void 0),r_(e.y,t.y,n.y,r?r.originY:void 0)}function i_(e,t,n){e.min=n.min+t.min,e.max=e.min+Hn(t)}function h9(e,t,n){i_(e.x,t.x,n.x),i_(e.y,t.y,n.y)}function a_(e,t,n){e.min=t.min-n.min,e.max=e.min+Hn(t)}function Vl(e,t,n){a_(e.x,t.x,n.x),a_(e.y,t.y,n.y)}function m9(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?gt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?gt(n,e,r.max):Math.min(e,n)),e}function s_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function g9(e,{top:t,left:n,bottom:r,right:i}){return{x:s_(e.x,n,i),y:s_(e.y,t,r)}}function o_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function b9(e,t){return{x:o_(e.x,t.x),y:o_(e.y,t.y)}}function v9(e,t){let n=.5;const r=Hn(e),i=Hn(t);return i>r?n=Io(t.min,t.max-r,e.min):r>i&&(n=Io(e.min,e.max-i,t.min)),ga(0,1,n)}function y9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xg=.35;function x9(e=Xg){return e===!1?e=0:e===!0&&(e=Xg),{x:u_(e,"left","right"),y:u_(e,"top","bottom")}}function u_(e,t,n){return{min:l_(e,t),max:l_(e,n)}}function l_(e,t){return typeof e=="number"?e:e[t]||0}const c_=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bo=()=>({x:c_(),y:c_()}),d_=()=>({min:0,max:0}),At=()=>({x:d_(),y:d_()});function dr(e){return[e("x"),e("y")]}function f_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function E9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Kg(e){return e===void 0||e===1}function Zg({scale:e,scaleX:t,scaleY:n}){return!Kg(e)||!Kg(t)||!Kg(n)}function ws(e){return Zg(e)||p_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p_(e){return h_(e.x)||h_(e.y)}function h_(e){return e&&e!=="0%"}function Pf(e,t,n){const r=e-n,i=t*r;return n+i}function m_(e,t,n,r,i){return i!==void 0&&(e=Pf(e,i,r)),Pf(e,n,r)+t}function Qg(e,t=0,n=1,r,i){e.min=m_(e.min,t,n,r,i),e.max=m_(e.max,t,n,r,i)}function g_(e,{x:t,y:n}){Qg(e.x,t.translate,t.scale,t.originPoint),Qg(e.y,n.translate,n.scale,n.originPoint)}const b_=.999999999999,v_=1.0000000000001;function T9(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,g_(e,s)),r&&ws(a.latestValues)&&Fo(e,a.latestValues))}t.x<v_&&t.x>b_&&(t.x=1),t.y<v_&&t.y>b_&&(t.y=1)}function Uo(e,t){e.min=e.min+t,e.max=e.max+t}function y_(e,t,n,r,i=.5){const a=gt(e.min,e.max,i);Qg(e,t,n,a,r)}function Fo(e,t){y_(e.x,t.x,t.scaleX,t.scale,t.originX),y_(e.y,t.y,t.scaleY,t.scale,t.originY)}function x_(e,t){return f_(w9(e.getBoundingClientRect(),t))}function _9(e,t,n){const r=x_(e,n),{scroll:i}=t;return i&&(Uo(r.x,i.offset.x),Uo(r.y,i.offset.y)),r}const E_=({current:e})=>e?e.ownerDocument.defaultView:null,S9=new WeakMap;class A9{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=At(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(If(c,"page").point)},a=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=JT(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dr(w=>{let m=this.getAxisMotionValue(w).get()||0;if(Vr.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[w];x&&(m=Hn(x)*(parseFloat(m)/100))}}this.originPoint[w]=m}),g&&Ze.postRender(()=>g(c,d)),qg(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:w}=d;if(p&&this.currentDirection===null){this.currentDirection=C9(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),v&&v(c,d)},o=(c,d)=>this.stop(c,d),u=()=>dr(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new GT(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:E_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ze.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Bf(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=m9(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=g9(i.layoutBox,n):this.constraints=!1,this.elastic=x9(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&dr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=y9(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Po(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=_9(r,i.root,this.visualElement.getTransformPagePoint());let s=b9(i.layout.layoutBox,a);if(n){const o=n(E9(s));this.hasMutatedConstraints=!!o,o&&(s=f_(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=dr(c=>{if(!Bf(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return qg(this.visualElement,t),r.start(Hg(t,r,0,n,this.visualElement,!1))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){dr(n=>{const{drag:r}=this.getProps();if(!Bf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-gt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Po(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dr(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=v9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),dr(s=>{if(!Bf(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(gt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;S9.set(this.visualElement,this);const t=this.visualElement.current,n=Ai(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Po(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ze.read(r);const s=Si(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(dr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Xg,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Bf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class k9 extends ya{constructor(t){super(t),this.removeGroupControls=sn,this.removeListeners=sn,this.controls=new A9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sn}unmount(){this.removeGroupControls(),this.removeListeners()}}const w_=e=>(t,n)=>{e&&Ze.postRender(()=>e(t,n))};class R9 extends ya{constructor(){super(...arguments),this.removePointerDownListener=sn}onPointerDown(t){this.session=new GT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:E_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:w_(t),onStart:w_(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&Ze.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ai(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 Uf=b.createContext(null);function O9(){const e=b.useContext(Uf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();b.useEffect(()=>r(i),[]);const a=b.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,a]:[!0]}const Jg=b.createContext({}),T_=b.createContext({}),Ff={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function __(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=__(e,t.target.x),r=__(e,t.target.y);return`${n}% ${r}%`}},N9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=va.parse(e);if(i.length>5)return r;const a=va.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=gt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}},jf={};function D9(e){Object.assign(jf,e)}const{schedule:e1,cancel:Are}=j2(queueMicrotask,!1);class M9 extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;D9(L9),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ff.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ze.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),e1.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function S_(e){const[t,n]=O9(),r=b.useContext(Jg);return E.jsx(M9,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(T_),isPresent:t,safeToRemove:n})}const L9={borderRadius:{...Yl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yl,borderTopRightRadius:Yl,borderBottomLeftRadius:Yl,borderBottomRightRadius:Yl,boxShadow:N9},A_=["TopLeft","TopRight","BottomLeft","BottomRight"],I9=A_.length,C_=e=>typeof e=="string"?parseFloat(e):e,k_=e=>typeof e=="number"||pe.test(e);function P9(e,t,n,r,i,a){i?(e.opacity=gt(0,n.opacity!==void 0?n.opacity:1,B9(r)),e.opacityExit=gt(t.opacity!==void 0?t.opacity:1,0,U9(r))):a&&(e.opacity=gt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<I9;s++){const o=`border${A_[s]}Radius`;let u=R_(t,o),l=R_(n,o);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||k_(u)===k_(l)?(e[o]=Math.max(gt(C_(u),C_(l),r),0),(Vr.test(l)||Vr.test(u))&&(e[o]+="%")):e[o]=l}(t.rotate||n.rotate)&&(e.rotate=gt(t.rotate||0,n.rotate||0,r))}function R_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const B9=O_(0,.5,G2),U9=O_(.5,.95,sn);function O_(e,t,n){return r=>r<e?0:r>t?1:n(Io(e,t,r))}function N_(e,t){e.min=t.min,e.max=t.max}function fr(e,t){N_(e.x,t.x),N_(e.y,t.y)}function D_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function M_(e,t,n,r,i){return e-=t,e=Pf(e,1/n,r),i!==void 0&&(e=Pf(e,1/i,r)),e}function F9(e,t=0,n=1,r=.5,i,a=e,s=e){if(Vr.test(t)&&(t=parseFloat(t),t=gt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=gt(a.min,a.max,r);e===a&&(o-=t),e.min=M_(e.min,t,n,o,i),e.max=M_(e.max,t,n,o,i)}function L_(e,t,[n,r,i],a,s){F9(e,t[n],t[r],t[i],t.scale,a,s)}const j9=["x","scaleX","originX"],H9=["y","scaleY","originY"];function I_(e,t,n,r){L_(e.x,t,j9,n?n.x:void 0,r?r.x:void 0),L_(e.y,t,H9,n?n.y:void 0,r?r.y:void 0)}function P_(e){return e.translate===0&&e.scale===1}function B_(e){return P_(e.x)&&P_(e.y)}function U_(e,t){return e.min===t.min&&e.max===t.max}function z9(e,t){return U_(e.x,t.x)&&U_(e.y,t.y)}function F_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function j_(e,t){return F_(e.x,t.x)&&F_(e.y,t.y)}function H_(e){return Hn(e.x)/Hn(e.y)}function z_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class V9{constructor(){this.members=[]}add(t){zg(this.members,t),t.scheduleRender()}remove(t){if(Vg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Y9(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const q9=(e,t)=>e.depth-t.depth;class $9{constructor(){this.children=[],this.isDirty=!1}add(t){zg(this.children,t),this.isDirty=!0}remove(t){Vg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q9),this.isDirty=!1,this.children.forEach(t)}}function Hf(e){const t=un(e)?e.get():e;return UL(t)?t.toValue():t}function G9(e,t){const n=Yr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(ma(r),e(a-t))};return Ze.read(r,!0),()=>ma(r)}function W9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function X9(e,t,n){const r=un(e)?e:Hl(e);return r.start(Hg("",r,t,n)),r.animation}const Ts={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ql=typeof window<"u"&&window.MotionDebug!==void 0,t1=["","X","Y","Z"],K9={visibility:"hidden"},V_=1e3;let Z9=0;function n1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Y_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=HT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ze,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Y_(r)}function q_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=Z9++,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,ql&&(Ts.totalNodes=Ts.resolvedTargetDeltas=Ts.recalculatedProjection=0),this.nodes.forEach(eI),this.nodes.forEach(aI),this.nodes.forEach(sI),this.nodes.forEach(tI),ql&&window.MotionDebug.record(Ts)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new $9)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Yg),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const u=this.eventHandlers.get(s);u&&u.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W9(s),this.instance=s;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(l||u)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=G9(f,250),Ff.hasAnimatedSinceResize&&(Ff.hasAnimatedSinceResize=!1,this.nodes.forEach(G_))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||dI,{onLayoutAnimationStart:w,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!j_(this.targetLayout,g)||p,x=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...hg(v,"layout"),onPlay:w,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||G_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ma(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(oI),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($_);return}this.isUpdating||this.nodes.forEach(rI),this.isUpdating=!1,this.nodes.forEach(iI),this.nodes.forEach(Q9),this.nodes.forEach(J9),this.clearAllSnapshots();const o=Yr.now();en.delta=ga(0,1e3/60,o-en.timestamp),en.timestamp=o,en.isProcessing=!0,mg.update.process(en),mg.preRender.process(en),mg.render.process(en),en.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nI),this.sharedNodes.forEach(uI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=At(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!B_(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;s&&(o||ws(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return s&&(u=this.removeTransform(u)),fI(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return At();const u=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(pI))){const{scroll:c}=this.root;c&&(Uo(u.x,c.offset.x),Uo(u.y,c.offset.y))}return u}removeElementScroll(s){var o;const u=At();if(fr(u,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return u;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&fr(u,s),Uo(u.x,d.offset.x),Uo(u.y,d.offset.y))}return u}applyTransform(s,o=!1){const u=At();fr(u,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Fo(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ws(c.latestValues)&&Fo(u,c.latestValues)}return ws(this.latestValues)&&Fo(u,this.latestValues),u}removeTransform(s){const o=At();fr(o,s);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!ws(l.latestValues))continue;Zg(l.latestValues)&&l.updateSnapshot();const c=At(),d=l.measurePageBox();fr(c,d),I_(o,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return ws(this.latestValues)&&I_(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==en.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=en.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=At(),this.relativeTargetOrigin=At(),Vl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=At(),this.targetWithTransforms=At()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fr(this.target,this.layout.layoutBox),g_(this.target,this.targetDelta)):fr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=At(),this.relativeTargetOrigin=At(),Vl(this.relativeTargetOrigin,this.target,p.target),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ql&&Ts.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Zg(this.parent.latestValues)||p_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),u=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===en.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;fr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;T9(this.layoutCorrected,this.treeScale,this.path,u),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=At());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(D_(this.prevProjectionDelta.x,this.projectionDelta.x),D_(this.prevProjectionDelta.y,this.projectionDelta.y)),zl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!z_(this.projectionDelta.x,this.prevProjectionDelta.x)||!z_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),ql&&Ts.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bo(),this.projectionDelta=Bo(),this.projectionDeltaWithTransform=Bo()}setAnimationOrigin(s,o=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=Bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=At(),p=u?u.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,w=this.getStack(),m=!w||w.members.length<=1,y=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(cI));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const _=T/1e3;W_(d.x,s.x,_),W_(d.y,s.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lI(this.relativeTarget,this.relativeTargetOrigin,f,_),x&&z9(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=At()),fr(x,this.relativeTarget)),v&&(this.animationValues=c,P9(c,l,this.latestValues,_,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ma(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ze.update(()=>{Ff.hasAnimatedSinceResize=!0,this.currentAnimation=X9(0,V_,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(V_),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&J_(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||At();const d=Hn(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const f=Hn(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+f}fr(o,u),Fo(o,c),zl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new V9),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&n1("z",s,l,this.animationValues);for(let c=0;c<t1.length;c++)n1(`rotate${t1[c]}`,s,l,this.animationValues),n1(`skew${t1[c]}`,s,l,this.animationValues);s.render();for(const c in l)s.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);s.scheduleRender()}getProjectionStyles(s){var o,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return K9;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Hf(s==null?void 0:s.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Hf(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ws(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=Y9(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:g}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,d.animationValues?l.opacity=d===this?(u=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const v in jf){if(f[v]===void 0)continue;const{correct:w,applyTo:m}=jf[v],y=l.transform==="none"?f[v]:w(f[v],d);if(m){const x=m.length;for(let T=0;T<x;T++)l[m[T]]=y}else l[v]=y}return this.options.layoutId&&(l.pointerEvents=d===this?Hf(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach($_),this.root.sharedNodes.clear()}}}function Q9(e){e.updateLayout()}function J9(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?dr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Hn(f);f.min=r[d].min,f.max=f.min+p}):J_(a,n.layoutBox,r)&&dr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Hn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const o=Bo();zl(o,r,n.layoutBox);const u=Bo();s?zl(u,e.applyTransform(i,!0),n.measuredBox):zl(u,r,n.layoutBox);const l=!B_(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const g=At();Vl(g,n.layoutBox,f.layoutBox);const v=At();Vl(v,r,p.layoutBox),j_(g,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function eI(e){ql&&Ts.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 tI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nI(e){e.clearSnapshot()}function $_(e){e.clearMeasurements()}function rI(e){e.isLayoutDirty=!1}function iI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function G_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aI(e){e.resolveTargetDelta()}function sI(e){e.calcProjection()}function oI(e){e.resetSkewAndRotation()}function uI(e){e.removeLeadSnapshot()}function W_(e,t,n){e.translate=gt(t.translate,0,n),e.scale=gt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function X_(e,t,n,r){e.min=gt(t.min,n.min,r),e.max=gt(t.max,n.max,r)}function lI(e,t,n,r){X_(e.x,t.x,n.x,r),X_(e.y,t.y,n.y,r)}function cI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dI={duration:.45,ease:[.4,0,.1,1]},K_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Z_=K_("applewebkit/")&&!K_("chrome/")?Math.round:sn;function Q_(e){e.min=Z_(e.min),e.max=Z_(e.max)}function fI(e){Q_(e.x),Q_(e.y)}function J_(e,t,n){return e==="position"||e==="preserve-aspect"&&!p9(H_(t),H_(n),.2)}function pI(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const hI=q_({attachResizeListener:(e,t)=>Si(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r1={current:void 0},eS=q_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r1.current){const e=new hI({});e.mount(window),e.setOptions({layoutScroll:!0}),r1.current=e}return r1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mI={pan:{Feature:R9},drag:{Feature:k9,ProjectionNode:eS,MeasureLayout:S_}};function tS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(a,s)=>{if(a.pointerType==="touch"||e_())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);const u=o[r];u&&Ze.postRender(()=>u(a,s))};return Ai(e.current,n,i,{passive:!e.getProps()[r]})}class gI extends ya{mount(){this.unmount=_i(tS(this.node,!0),tS(this.node,!1))}unmount(){}}class bI extends ya{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_i(Si(this.node.current,"focus",()=>this.onFocus()),Si(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const nS=(e,t)=>t?e===t?!0:nS(e,t.parentElement):!1;function i1(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,If(n))}class vI extends ya{constructor(){super(...arguments),this.removeStartListeners=sn,this.removeEndListeners=sn,this.removeAccessibleListeners=sn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=Ai(window,"pointerup",(o,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!nS(this.node.current,o.target)?c:l;f&&Ze.update(()=>f(o,u))},{passive:!(r.onTap||r.onPointerUp)}),s=Ai(window,"pointercancel",(o,u)=>this.cancelPress(o,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=_i(a,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=o=>{o.key!=="Enter"||!this.checkPressEnd()||i1("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ze.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Si(this.node.current,"keyup",s),i1("down",(o,u)=>{this.startPress(o,u)})},n=Si(this.node.current,"keydown",t),r=()=>{this.isPressing&&i1("cancel",(a,s)=>this.cancelPress(a,s))},i=Si(this.node.current,"blur",r);this.removeAccessibleListeners=_i(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ze.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!e_()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ze.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ai(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Si(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_i(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const a1=new WeakMap,s1=new WeakMap,yI=e=>{const t=a1.get(e.target);t&&t(e)},xI=e=>{e.forEach(yI)};function EI({root:e,...t}){const n=e||document;s1.has(n)||s1.set(n,{});const r=s1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(xI,{root:e,...t})),r[i]}function wI(e,t,n){const r=EI(t);return a1.set(e,n),r.observe(e),()=>{a1.delete(e),r.unobserve(e)}}const TI={some:0,all:1};class _I extends ya{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:TI[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(u)};return wI(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(SI(t,n))&&this.startObserver()}unmount(){}}function SI({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AI={inView:{Feature:_I},tap:{Feature:vI},focus:{Feature:bI},hover:{Feature:gI}},CI={layout:{ProjectionNode:eS,MeasureLayout:S_}},o1=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),zf=b.createContext({}),u1=typeof window<"u",rS=u1?b.useLayoutEffect:b.useEffect,iS=b.createContext({strict:!1});function kI(e,t,n,r,i){var a,s;const{visualElement:o}=b.useContext(zf),u=b.useContext(iS),l=b.useContext(Uf),c=b.useContext(o1).reducedMotion,d=b.useRef();r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,p=b.useContext(T_);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&RI(d.current,n,i,p),b.useInsertionEffect(()=>{f&&f.update(n,l)});const g=n[jT],v=b.useRef(!!g&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return rS(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),e1.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,g)}),v.current=!1))}),f}function RI(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:aS(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Po(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function aS(e){if(e)return e.options.allowProjection!==!1?e.projection:aS(e.parent)}function OI(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Po(n)&&(n.current=r))},[t])}function Vf(e){return Dl(e.animate)||pg.some(t=>Ml(e[t]))}function sS(e){return!!(Vf(e)||e.variants)}function NI(e,t){if(Vf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ml(n)?n:void 0,animate:Ml(r)?r:void 0}}return e.inherit!==!1?t:{}}function DI(e){const{initial:t,animate:n}=NI(e,b.useContext(zf));return b.useMemo(()=>({initial:t,animate:n}),[oS(t),oS(n)])}function oS(e){return Array.isArray(e)?e.join(" "):e}const uS={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"]},jo={};for(const e in uS)jo[e]={isEnabled:t=>uS[e].some(n=>!!t[n])};function MI(e){for(const t in e)jo[t]={...jo[t],...e[t]}}const LI=Symbol.for("motionComponentSymbol");function II({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&MI(e);function a(o,u){let l;const c={...b.useContext(o1),...o,layoutId:PI(o)},{isStatic:d}=c,f=DI(o),p=r(o,d);if(!d&&u1){BI();const g=UI(c);l=g.MeasureLayout,f.visualElement=kI(i,p,c,t,g.ProjectionNode)}return E.jsxs(zf.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,o,OI(p,f.visualElement,u),p,d,f.visualElement)]})}const s=b.forwardRef(a);return s[LI]=i,s}function PI({layoutId:e}){const t=b.useContext(Jg).id;return t&&e!==void 0?t+"-"+e:e}function BI(e,t){b.useContext(iS).strict}function UI(e){const{drag:t,layout:n}=jo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const FI=["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 l1(e){return typeof e!="string"||e.includes("-")?!1:!!(FI.indexOf(e)>-1||/[A-Z]/u.test(e))}function lS(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const cS=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 dS(e,t,n,r){lS(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(cS.has(i)?i:Lf(i),t.attrs[i])}function fS(e,{layout:t,layoutId:n}){return ha.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jf[e]||e==="opacity")}function c1(e,t,n){var r;const{style:i}=e,a={};for(const s in i)(un(i[s])||t.style&&un(t.style[s])||fS(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[s]=i[s]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),a}function pS(e,t,n){const r=c1(e,t,n);for(const i in e)if(un(e[i])||un(t[i])){const a=Ll.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function d1(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function jI(e){if(ha.has(e))return"transform";if(MT.has(e))return Lf(e)}function HI({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,a,s,o){const u={latestValues:zI(i,a,s,o?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const hS=e=>(t,n)=>{const r=b.useContext(zf),i=b.useContext(Uf),a=()=>HI(e,t,r,i,n);return n?a():d1(a)};function mS(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const a=dg(e,r[i]);if(a){const{transitionEnd:s,transition:o,...u}=a;n(u,s)}}}function zI(e,t,n,r,i){var a;const s={},o=new Set,u=r&&((a=e.style)===null||a===void 0?void 0:a.willChange)===void 0,l=i(e,{});for(const w in l)s[w]=Hf(l[w]);let{initial:c,animate:d}=e;const f=Vf(e),p=sS(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let g=n?n.initial===!1:!1;g=g||c===!1;const v=g?d:c;return v&&typeof v!="boolean"&&!Dl(v)&&mS(e,v,(w,m)=>{for(const y in w){let x=w[y];if(Array.isArray(x)){const T=g?x.length-1:0;x=x[T]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}),u&&(d&&c!==!1&&!Dl(d)&&mS(e,d,w=>{for(const m in w){const y=jI(m);y&&o.add(y)}}),o.size&&(s.willChange=Array.from(o).join(","))),s}const f1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),gS=()=>({...f1(),attrs:{}}),bS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,VI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YI=Ll.length;function qI(e,t,n){let r="",i=!0;for(let a=0;a<YI;a++){const s=Ll[a],o=e[s];if(o===void 0)continue;let u=!0;if(typeof o=="number"?u=o===(s.startsWith("scale")?1:0):u=parseFloat(o)===0,!u||n){const l=bS(o,kg[s]);if(!u){i=!1;const c=VI[s]||s;r+=`${c}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function p1(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const u in t){const l=t[u];if(ha.has(u)){s=!0;continue}else if(Q2(u)){i[u]=l;continue}else{const c=bS(l,kg[u]);u.startsWith("origin")?(o=!0,a[u]=c):r[u]=c}}if(t.transform||(s||n?r.transform=qI(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:u="50%",originY:l="50%",originZ:c=0}=a;r.transformOrigin=`${u} ${l} ${c}`}}function vS(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function $I(e,t,n){const r=vS(t,e.x,e.width),i=vS(n,e.y,e.height);return`${r} ${i}`}const GI={offset:"stroke-dashoffset",array:"stroke-dasharray"},WI={offset:"strokeDashoffset",array:"strokeDasharray"};function XI(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?GI:WI;e[a.offset]=pe.transform(-r);const s=pe.transform(t),o=pe.transform(n);e[a.array]=`${s} ${o}`}function h1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:u=0,...l},c,d){if(p1(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:g}=e;f.transform&&(g&&(p.transform=f.transform),delete f.transform),g&&(i!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=$I(g,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&XI(f,s,o,u,!1)}const m1=e=>typeof e=="string"&&e.toLowerCase()==="svg",KI={useVisualState:hS({scrapeMotionValuesFromProps:pS,createRenderState:gS,onMount:(e,t,{renderState:n,latestValues:r})=>{Ze.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ze.render(()=>{h1(n,r,m1(t.tagName),e.transformTemplate),dS(t,n)})}})},ZI={useVisualState:hS({applyWillChange:!0,scrapeMotionValuesFromProps:c1,createRenderState:f1})};function yS(e,t,n){for(const r in t)!un(t[r])&&!fS(r,n)&&(e[r]=t[r])}function QI({transformTemplate:e},t){return b.useMemo(()=>{const n=f1();return p1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function JI(e,t){const n=e.style||{},r={};return yS(r,n,e),Object.assign(r,QI(e,t)),r}function eP(e,t){const n={},r=JI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const tP=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 Yf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tP.has(e)}let xS=e=>!Yf(e);function nP(e){e&&(xS=t=>t.startsWith("on")?!Yf(t):e(t))}try{nP(require("@emotion/is-prop-valid").default)}catch{}function rP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(xS(i)||n===!0&&Yf(i)||!t&&!Yf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function iP(e,t,n,r){const i=b.useMemo(()=>{const a=gS();return h1(a,t,m1(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};yS(a,e.style,e),i.style={...a,...i.style}}return i}function aP(e=!1){return(n,r,i,{latestValues:a},s)=>{const u=(l1(n)?iP:eP)(r,a,s,n),l=rP(r,typeof n=="string",e),c=n!==b.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=b.useMemo(()=>un(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function sP(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...l1(r)?KI:ZI,preloadedFeatures:e,useRender:aP(i),createVisualElement:t,Component:r};return II(s)}}const g1={current:null},ES={current:!1};function oP(){if(ES.current=!0,!!u1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>g1.current=e.matches;e.addListener(t),t()}else g1.current=!1}function uP(e,t,n){for(const r in t){const i=t[r],a=n[r];if(un(i))e.addValue(r,i);else if(un(a))e.addValue(r,Hl(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Hl(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wS=new WeakMap,lP=[...aT,on,va],cP=e=>lP.find(iT(e)),TS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dP{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wg,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 f=Yr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ze.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Vf(n),this.isVariantNode=sS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&un(p)&&p.set(u[f],!1)}}mount(t){this.current=t,wS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ES.current||oP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:g1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wS.delete(this.current),this.projection&&this.projection.unmount(),ma(this.notifyUpdate),ma(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ha.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ze.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.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 jo){const n=jo[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):At()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<TS.length;r++){const i=TS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=uP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Hl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(K2(i)||X2(i))?i=parseFloat(i):!cP(i)&&va.test(n)&&(i=gT(t,n)),this.setBaseTarget(t,un(i)?i.get():i)),un(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=dg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!un(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _S extends dP{constructor(){super(...arguments),this.KeyframeResolver=bT}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function fP(e){return window.getComputedStyle(e)}class pP extends _S{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=lS}readValueFromInstance(t,n){if(ha.has(n)){const r=Rg(n);return r&&r.default||0}else{const r=fP(t),i=(Q2(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return x_(t,n)}build(t,n,r){p1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return c1(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class hP extends _S{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=At}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ha.has(n)){const r=Rg(n);return r&&r.default||0}return n=cS.has(n)?n:Lf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pS(t,n,r)}build(t,n,r){h1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){dS(t,n,r,i)}mount(t){this.isSVGTag=m1(t.tagName),super.mount(t)}}const mP=(e,t)=>l1(e)?new hP(t):new pP(t,{allowProjection:e!==b.Fragment}),gP=sP({...i9,...AI,...mI,...CI},mP),Ho=Q8(gP);class bP extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vP({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=b.useContext(o1);return b.useInsertionEffect(()=>{const{width:s,height:o,top:u,left:l}=i.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
49
+ `).replace(E8,"")}function c2(e,t){return t=l2(t),l2(e)===t}function df(){}function Ke(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||to(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&to(e,""+r);break;case"className":vd(e,"class",r);break;case"tabIndex":vd(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":vd(e,n,r);break;case"style":xx(e,r,a);break;case"data":if(t!=="object"){vd(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Ed(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",i.name,i,null),Ke(e,t,"formEncType",i.formEncType,i,null),Ke(e,t,"formMethod",i.formMethod,i,null),Ke(e,t,"formTarget",i.formTarget,i,null)):(Ke(e,t,"encType",i.encType,i,null),Ke(e,t,"method",i.method,i,null),Ke(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Ed(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=df);break;case"onScroll":r!=null&&Pe("scroll",e);break;case"onScrollEnd":r!=null&&Pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error($(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error($(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Ed(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Pe("beforetoggle",e),Pe("toggle",e),bd(e,"popover",r);break;case"xlinkActuate":si(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":si(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":si(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":si(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":si(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":si(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":si(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":si(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":si(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":bd(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=KN.get(n)||n,bd(e,n,r))}}function W0(e,t,n,r,i,a){switch(n){case"style":xx(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error($(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error($(60));e.innerHTML=n}}break;case"children":typeof r=="string"?to(e,r):(typeof r=="number"||typeof r=="bigint")&&to(e,""+r);break;case"onScroll":r!=null&&Pe("scroll",e);break;case"onScrollEnd":r!=null&&Pe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=df);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dx.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[Tn]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):bd(e,n,r)}}}function Jt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",e),Pe("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error($(137,t));default:Ke(e,t,a,s,n,null)}}i&&Ke(e,t,"srcSet",n.srcSet,n,null),r&&Ke(e,t,"src",n.src,n,null);return;case"input":Pe("invalid",e);var o=a=s=i=null,u=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"name":i=c;break;case"type":s=c;break;case"checked":u=c;break;case"defaultChecked":l=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error($(137,t));break;default:Ke(e,t,r,c,n,null)}}gx(e,a,o,u,l,s,i,!1),yd(e);return;case"select":Pe("invalid",e),r=s=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:Ke(e,t,i,o,n,null)}t=a,n=s,e.multiple=!!r,t!=null?eo(e,!!r,t,!1):n!=null&&eo(e,!!r,n,!0);return;case"textarea":Pe("invalid",e),a=i=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":i=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error($(91));break;default:Ke(e,t,s,o,n,null)}vx(e,r,i,a),yd(e);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ke(e,t,u,r,n,null)}return;case"dialog":Pe("cancel",e),Pe("close",e);break;case"iframe":case"object":Pe("load",e);break;case"video":case"audio":for(r=0;r<wl.length;r++)Pe(wl[r],e);break;case"image":Pe("error",e),Pe("load",e);break;case"details":Pe("toggle",e);break;case"embed":case"source":case"link":Pe("error",e),Pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error($(137,t));default:Ke(e,t,l,r,n,null)}return;default:if(cm(t)){for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!==void 0&&W0(e,t,c,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Ke(e,t,o,r,n,null))}function w8(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,o=null,u=null,l=null,c=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":u=d;default:r.hasOwnProperty(p)||Ke(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":a=p;break;case"name":i=p;break;case"checked":l=p;break;case"defaultChecked":c=p;break;case"value":s=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error($(137,t));break;default:p!==d&&Ke(e,t,f,p,r,d)}}um(e,s,o,u,l,c,a,i);return;case"select":p=s=o=f=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":p=u;default:r.hasOwnProperty(a)||Ke(e,t,a,null,r,u)}for(i in r)if(a=r[i],u=n[i],r.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":f=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==u&&Ke(e,t,i,a,r,u)}t=o,n=s,r=p,f!=null?eo(e,!!n,f,!1):!!r!=!!n&&(t!=null?eo(e,!!n,t,!0):eo(e,!!n,n?[]:"",!1));return;case"textarea":p=f=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ke(e,t,o,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error($(91));break;default:i!==a&&Ke(e,t,s,i,r,a)}bx(e,f,p);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!r.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ke(e,t,g,null,r,f)}for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ke(e,t,u,f,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!r.hasOwnProperty(v)&&Ke(e,t,v,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error($(137,t));break;default:Ke(e,t,l,f,r,p)}return;default:if(cm(t)){for(var w in n)f=n[w],n.hasOwnProperty(w)&&f!==void 0&&!r.hasOwnProperty(w)&&W0(e,t,w,void 0,r,f);for(c in r)f=r[c],p=n[c],!r.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||W0(e,t,c,f,r,p);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m)&&Ke(e,t,m,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||Ke(e,t,d,f,r,p)}var X0=null,K0=null;function ff(e){return e.nodeType===9?e:e.ownerDocument}function d2(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function f2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Z0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Q0=null;function T8(){var e=window.event;return e&&e.type==="popstate"?e===Q0?!1:(Q0=e,!0):(Q0=null,!1)}var p2=typeof setTimeout=="function"?setTimeout:void 0,_8=typeof clearTimeout=="function"?clearTimeout:void 0,h2=typeof Promise=="function"?Promise:void 0,S8=typeof queueMicrotask=="function"?queueMicrotask:typeof h2<"u"?function(e){return h2.resolve(null).then(e).catch(A8)}:p2;function A8(e){setTimeout(function(){throw e})}function J0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Nl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Nl(t)}function eg(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":eg(n),om(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function C8(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Fu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=_r(e.nextSibling),e===null)break}return null}function k8(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=_r(e.nextSibling),e===null))return null;return e}function _r(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function m2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function g2(e,t,n){switch(t=ff(n),e){case"html":if(e=t.documentElement,!e)throw Error($(452));return e;case"head":if(e=t.head,!e)throw Error($(453));return e;case"body":if(e=t.body,!e)throw Error($(454));return e;default:throw Error($(451))}}var cr=new Map,b2=new Set;function pf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Ei=ot.d;ot.d={f:R8,r:O8,D:N8,C:D8,L:M8,m:L8,X:P8,S:I8,M:B8};function R8(){var e=Ei.f(),t=af();return e||t}function O8(e){var t=Zs(e);t!==null&&t.tag===5&&t.type==="form"?YE(t):Ei.r(e)}var Ro=typeof document>"u"?null:document;function v2(e,t,n){var r=Ro;if(r&&typeof t=="string"&&t){var i=er(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),b2.has(i)||(b2.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Jt(t,"link",e),Vt(t),r.head.appendChild(t)))}}function N8(e){Ei.D(e),v2("dns-prefetch",e,null)}function D8(e,t){Ei.C(e,t),v2("preconnect",e,t)}function M8(e,t,n){Ei.L(e,t,n);var r=Ro;if(r&&e&&t){var i='link[rel="preload"][as="'+er(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+er(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+er(n.imageSizes)+'"]')):i+='[href="'+er(e)+'"]';var a=i;switch(t){case"style":a=Oo(e);break;case"script":a=No(e)}cr.has(a)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cr.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(_l(a))||t==="script"&&r.querySelector(Sl(a))||(t=r.createElement("link"),Jt(t,"link",e),Vt(t),r.head.appendChild(t)))}}function L8(e,t){Ei.m(e,t);var n=Ro;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+er(r)+'"][href="'+er(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=No(e)}if(!cr.has(a)&&(e=st({rel:"modulepreload",href:e},t),cr.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Sl(a)))return}r=n.createElement("link"),Jt(r,"link",e),Vt(r),n.head.appendChild(r)}}}function I8(e,t,n){Ei.S(e,t,n);var r=Ro;if(r&&e){var i=Qs(r).hoistableStyles,a=Oo(e);t=t||"default";var s=i.get(a);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(_l(a)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cr.get(a))&&tg(e,n);var u=s=r.createElement("link");Vt(u),Jt(u,"link",e),u._p=new Promise(function(l,c){u.onload=l,u.onerror=c}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,hf(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},i.set(a,s)}}}function P8(e,t){Ei.X(e,t);var n=Ro;if(n&&e){var r=Qs(n).hoistableScripts,i=No(e),a=r.get(i);a||(a=n.querySelector(Sl(i)),a||(e=st({src:e,async:!0},t),(t=cr.get(i))&&ng(e,t),a=n.createElement("script"),Vt(a),Jt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function B8(e,t){Ei.M(e,t);var n=Ro;if(n&&e){var r=Qs(n).hoistableScripts,i=No(e),a=r.get(i);a||(a=n.querySelector(Sl(i)),a||(e=st({src:e,async:!0,type:"module"},t),(t=cr.get(i))&&ng(e,t),a=n.createElement("script"),Vt(a),Jt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function y2(e,t,n,r){var i=(i=qi.current)?pf(i):null;if(!i)throw Error($(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Oo(n.href),n=Qs(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Oo(n.href);var a=Qs(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(_l(e)))&&!a._p&&(s.instance=a,s.state.loading=5),cr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cr.set(e,n),a||U8(i,e,n,s.state))),t&&r===null)throw Error($(528,""));return s}if(t&&r!==null)throw Error($(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=No(n),n=Qs(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error($(444,e))}}function Oo(e){return'href="'+er(e)+'"'}function _l(e){return'link[rel="stylesheet"]['+e+"]"}function x2(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function U8(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Jt(t,"link",n),Vt(t),e.head.appendChild(t))}function No(e){return'[src="'+er(e)+'"]'}function Sl(e){return"script[async]"+e}function E2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+er(n.href)+'"]');if(r)return t.instance=r,Vt(r),r;var i=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Vt(r),Jt(r,"style",i),hf(r,n.precedence,e),t.instance=r;case"stylesheet":i=Oo(n.href);var a=e.querySelector(_l(i));if(a)return t.state.loading|=4,t.instance=a,Vt(a),a;r=x2(n),(i=cr.get(i))&&tg(r,i),a=(e.ownerDocument||e).createElement("link"),Vt(a);var s=a;return s._p=new Promise(function(o,u){s.onload=o,s.onerror=u}),Jt(a,"link",r),t.state.loading|=4,hf(a,n.precedence,e),t.instance=a;case"script":return a=No(n.src),(i=e.querySelector(Sl(a)))?(t.instance=i,Vt(i),i):(r=n,(i=cr.get(a))&&(r=st({},n),ng(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Vt(i),Jt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error($(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,hf(r,n.precedence,e));return t.instance}function hf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)a=o;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function tg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ng(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mf=null;function w2(e,t,n){if(mf===null){var r=new Map,i=mf=new Map;i.set(n,r)}else i=mf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Fu]||a[rn]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(a):r.set(s,[a])}}return r}function T2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function F8(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _2(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Al=null;function j8(){}function H8(e,t,n){if(Al===null)throw Error($(475));var r=Al;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=Oo(n.href),a=e.querySelector(_l(i));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=gf.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,Vt(a);return}a=e.ownerDocument||e,n=x2(n),(i=cr.get(i))&&tg(n,i),a=a.createElement("link"),Vt(a);var s=a;s._p=new Promise(function(o,u){s.onload=o,s.onerror=u}),Jt(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=gf.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function z8(){if(Al===null)throw Error($(475));var e=Al;return e.stylesheets&&e.count===0&&rg(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&rg(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function gf(){if(this.count--,this.count===0){if(this.stylesheets)rg(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bf=null;function rg(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bf=new Map,t.forEach(V8,e),bf=null,gf.call(e))}function V8(e,t){if(!(t.state.loading&4)){var n=bf.get(e);if(n)var r=n.get(null);else{n=new Map,bf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var s=i[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}i=t.instance,s=i.getAttribute("data-precedence"),a=n.get(s)||r,a===r&&n.set(null,i),n.set(s,i),this.count++,r=gf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Cl={$$typeof:ii,Provider:null,Consumer:null,_currentValue:Ka,_currentValue2:Ka,_threadCount:0};function Y8(e,t,n,r,i,a,s,o){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=am(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=am(0),this.hiddenUpdates=am(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function S2(e,t,n,r,i,a,s,o,u,l,c,d){return e=new Y8(e,t,n,s,o,u,l,d),t=1,a===!0&&(t|=24),a=ur(3,null,null,t),e.current=a,a.stateNode=e,t=Im(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},m0(a),e}function A2(e){return e?(e=uo,e):uo}function C2(e,t,n,r,i,a){i=A2(i),r.context===null?r.context=i:r.pendingContext=i,r=na(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ra(e,r,t),n!==null&&(vn(n,e,t),cl(n,e,t))}function k2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ig(e,t){k2(e,t),(e=e.alternate)&&k2(e,t)}function R2(e){if(e.tag===13){var t=Xi(e,67108864);t!==null&&vn(t,e,67108864),ig(e,67108864)}}var vf=!0;function q8(e,t,n,r){var i=Ee.T;Ee.T=null;var a=ot.p;try{ot.p=2,ag(e,t,n,r)}finally{ot.p=a,Ee.T=i}}function $8(e,t,n,r){var i=Ee.T;Ee.T=null;var a=ot.p;try{ot.p=8,ag(e,t,n,r)}finally{ot.p=a,Ee.T=i}}function ag(e,t,n,r){if(vf){var i=sg(r);if(i===null)G0(e,t,r,yf,n),N2(e,r);else if(W8(i,e,t,n,r))r.stopPropagation();else if(N2(e,r),t&4&&-1<G8.indexOf(e)){for(;i!==null;){var a=Zs(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=Za(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var u=1<<31-In(s);o.entanglements[1]|=u,s&=~u}zr(a),!(mt&6)&&(tf=Br()+500,El(0))}}break;case 13:o=Xi(a,2),o!==null&&vn(o,a,2),af(),ig(a,2)}if(a=sg(r),a===null&&G0(e,t,r,yf,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else G0(e,t,r,null,n)}}function sg(e){return e=fm(e),og(e)}var yf=null;function og(e){if(yf=null,e=Qa(e),e!==null){var t=Gs(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Zy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yf=e,null}function O2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(DN()){case ex:return 2;case tx:return 8;case pd:case MN:return 32;case nx:return 268435456;default:return 32}default:return 32}}var ug=!1,ca=null,da=null,fa=null,kl=new Map,Rl=new Map,pa=[],G8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function N2(e,t){switch(e){case"focusin":case"focusout":ca=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(t.pointerId)}}function Ol(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Zs(t),t!==null&&R2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function W8(e,t,n,r,i){switch(t){case"focusin":return ca=Ol(ca,e,t,n,r,i),!0;case"dragenter":return da=Ol(da,e,t,n,r,i),!0;case"mouseover":return fa=Ol(fa,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return kl.set(a,Ol(kl.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Rl.set(a,Ol(Rl.get(a)||null,e,t,n,r,i)),!0}return!1}function D2(e){var t=Qa(e.target);if(t!==null){var n=Gs(t);if(n!==null){if(t=n.tag,t===13){if(t=Zy(n),t!==null){e.blockedOn=t,zN(e.priority,function(){if(n.tag===13){var r=jn(),i=Xi(n,r);i!==null&&vn(i,n,r),ig(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sg(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dm=r,n.target.dispatchEvent(r),dm=null}else return t=Zs(n),t!==null&&R2(t),e.blockedOn=n,!1;t.shift()}return!0}function M2(e,t,n){xf(e)&&n.delete(t)}function X8(){ug=!1,ca!==null&&xf(ca)&&(ca=null),da!==null&&xf(da)&&(da=null),fa!==null&&xf(fa)&&(fa=null),kl.forEach(M2),Rl.forEach(M2)}function Ef(e,t){e.blockedOn===t&&(e.blockedOn=null,ug||(ug=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,X8)))}var wf=null;function L2(e){wf!==e&&(wf=e,It.unstable_scheduleCallback(It.unstable_NormalPriority,function(){wf===e&&(wf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(og(r||n)===null)continue;break}var a=Zs(n);a!==null&&(e.splice(t,3),t-=3,Zm(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Nl(e){function t(u){return Ef(u,e)}ca!==null&&Ef(ca,e),da!==null&&Ef(da,e),fa!==null&&Ef(fa,e),kl.forEach(t),Rl.forEach(t);for(var n=0;n<pa.length;n++){var r=pa[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<pa.length&&(n=pa[0],n.blockedOn===null);)D2(n),n.blockedOn===null&&pa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],s=i[Tn]||null;if(typeof a=="function")s||L2(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(i=a,s=a[Tn]||null)o=s.formAction;else if(og(i)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),L2(n)}}}function lg(e){this._internalRoot=e}Tf.prototype.render=lg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));var n=t.current,r=jn();C2(n,r,e,t,null,null)},Tf.prototype.unmount=lg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Ao(),C2(e.current,2,null,e,null,null),af(),t[Ks]=null}};function Tf(e){this._internalRoot=e}Tf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ux();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pa.length&&t!==0&&t<pa[n].priority;n++);pa.splice(n,0,e),n===0&&D2(e)}};var I2=Vy.version;if(I2!=="19.0.0")throw Error($(527,I2,"19.0.0"));ot.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):(e=Object.keys(e).join(","),Error($(268,e)));return e=RN(t),e=e!==null?Jy(e):null,e=e===null?null:e.stateNode,e};var K8={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Ee,findFiberByHostInstance:Qa,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_f.isDisabled&&_f.supportsFiber)try{Pu=_f.inject(K8),Ln=_f}catch{}}od.createRoot=function(e,t){if(!Yy(e))throw Error($(299));var n=!1,r="",i=QE,a=JE,s=ew,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=S2(e,1,!1,null,null,n,r,i,a,s,o,null),e[Ks]=t.current,$0(e.nodeType===8?e.parentNode:e),new lg(t)},od.hydrateRoot=function(e,t,n){if(!Yy(e))throw Error($(299));var r=!1,i="",a=QE,s=JE,o=ew,u=null,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(u=n.unstable_transitionCallbacks),n.formState!==void 0&&(l=n.formState)),t=S2(e,1,!0,t,n??null,r,i,a,s,o,u,l),t.context=A2(null),n=t.current,r=jn(),i=na(r),i.callback=null,ra(n,i,r),t.current.lanes=r,Uu(t,r),zr(t),e[Ks]=t.current,$0(e),new Tf(t)},od.version="19.0.0";function P2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P2)}catch(e){console.error(e)}}P2(),By.exports=od;var Z8=By.exports;const B2="3.0.67";function Q8(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Dl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const cg=e=>Array.isArray(e);function U2(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ml(e){return typeof e=="string"||Array.isArray(e)}function F2(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function dg(e,t,n,r){if(typeof t=="function"){const[i,a]=F2(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=F2(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Sf(e,t,n){const r=e.getProps();return dg(r,t,n!==void 0?n:r.custom,e)}const fg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pg=["initial",...fg],Ll=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ha=new Set(Ll),wi=e=>e*1e3,Ti=e=>e/1e3,J8={type:"spring",stiffness:500,damping:25,restSpeed:10},eM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tM={type:"keyframes",duration:.8},nM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rM=(e,{keyframes:t})=>t.length>2?tM:ha.has(e)?e.startsWith("scale")?eM(t[1]):J8:nM;function hg(e,t){return e?e[t]||e.default||e:void 0}const iM={skipAnimations:!1,useManualTiming:!1},aM=e=>e!==null;function Af(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(aM),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const sn=e=>e;function sM(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(l){a.has(l)&&(u.schedule(l),e()),l(s)}const u={schedule:(l,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&a.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(s=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(o),r=!1,i&&(i=!1,u.process(l))}};return u}const Cf=["read","resolveKeyframes","update","preRender","render","postRender"],oM=40;function j2(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Cf.reduce((m,y)=>(m[y]=sM(a),m),{}),{read:o,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,oM),1),i.timestamp=m,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},g=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:Cf.reduce((m,y)=>{const x=s[y];return m[y]=(T,_=!1,A=!1)=>(n||g(),x.schedule(T,_,A)),m},{}),cancel:m=>{for(let y=0;y<Cf.length;y++)s[Cf[y]].cancel(m)},state:i,steps:s}}const{schedule:Ze,cancel:ma,state:en,steps:mg}=j2(typeof requestAnimationFrame<"u"?requestAnimationFrame:sn,!0),H2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uM=1e-7,lM=12;function cM(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=H2(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>uM&&++o<lM);return s}function Il(e,t,n,r){if(e===t&&n===r)return sn;const i=a=>cM(a,0,1,e,n);return a=>a===0||a===1?a:H2(i(a),t,r)}const z2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V2=e=>t=>1-e(1-t),Y2=Il(.33,1.53,.69,.99),gg=V2(Y2),q2=z2(gg),$2=e=>(e*=2)<1?.5*gg(e):.5*(2-Math.pow(2,-10*(e-1))),bg=e=>1-Math.sin(Math.acos(e)),G2=V2(bg),W2=z2(bg),X2=e=>/^0[^.\s]+$/u.test(e);function dM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||X2(e):!0}let vg=sn;const K2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Z2=e=>t=>typeof t=="string"&&t.startsWith(e),Q2=Z2("--"),fM=Z2("var(--"),yg=e=>fM(e)?pM.test(e.split("/*")[0].trim()):!1,pM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mM(e){const t=hM.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function J2(e,t,n=1){const[r,i]=mM(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return K2(s)?parseFloat(s):s}return yg(i)?J2(i,t,n+1):i}const ga=(e,t,n)=>n>t?t:n<e?e:n,Do={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pl={...Do,transform:e=>ga(0,1,e)},kf={...Do,default:1},Bl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ba=Bl("deg"),Vr=Bl("%"),pe=Bl("px"),gM=Bl("vh"),bM=Bl("vw"),eT={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},vM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tT=e=>e===Do||e===pe,nT=(e,t)=>parseFloat(e.split(", ")[t]),rT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return nT(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?nT(a[1],e):0}},yM=new Set(["x","y","z"]),xM=Ll.filter(e=>!yM.has(e));function EM(e){const t=[];return xM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rT(4,13),y:rT(5,14)};Mo.translateX=Mo.x,Mo.translateY=Mo.y;const iT=e=>t=>t.test(e),aT=[Do,pe,Vr,ba,bM,gM,{test:e=>e==="auto",parse:e=>e}],sT=e=>aT.find(iT(e)),ys=new Set;let xg=!1,Eg=!1;function oT(){if(Eg){const e=Array.from(ys).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=EM(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Eg=!1,xg=!1,ys.forEach(e=>e.complete()),ys.clear()}function uT(){ys.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Eg=!0)})}function wM(){uT(),oT()}class wg{constructor(t,n,r,i,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ys.add(this),xg||(xg=!0,Ze.read(uT),Ze.resolveKeyframes(oT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,o);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ys.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ys.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ul=e=>Math.round(e*1e5)/1e5,Tg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TM(e){return e==null}const _M=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_g=(e,t)=>n=>!!(typeof n=="string"&&_M.test(n)&&n.startsWith(e)||t&&!TM(n)&&Object.prototype.hasOwnProperty.call(n,t)),lT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Tg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},SM=e=>ga(0,255,e),Sg={...Do,transform:e=>Math.round(SM(e))},xs={test:_g("rgb","red"),parse:lT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sg.transform(e)+", "+Sg.transform(t)+", "+Sg.transform(n)+", "+Ul(Pl.transform(r))+")"};function AM(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ag={test:_g("#"),parse:AM,transform:xs.transform},Lo={test:_g("hsl","hue"),parse:lT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Ul(t))+", "+Vr.transform(Ul(n))+", "+Ul(Pl.transform(r))+")"},on={test:e=>xs.test(e)||Ag.test(e)||Lo.test(e),parse:e=>xs.test(e)?xs.parse(e):Lo.test(e)?Lo.parse(e):Ag.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xs.transform(e):Lo.transform(e)},CM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(CM))===null||n===void 0?void 0:n.length)||0)>0}const cT="number",dT="color",RM="var",OM="var(",fT="${}",NM=/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 Fl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(NM,u=>(on.test(u)?(r.color.push(a),i.push(dT),n.push(on.parse(u))):u.startsWith(OM)?(r.var.push(a),i.push(RM),n.push(u)):(r.number.push(a),i.push(cT),n.push(parseFloat(u))),++a,fT)).split(fT);return{values:n,split:o,indexes:r,types:i}}function pT(e){return Fl(e).values}function hT(e){const{split:t,types:n}=Fl(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===cT?a+=Ul(i[s]):o===dT?a+=on.transform(i[s]):a+=i[s]}return a}}const DM=e=>typeof e=="number"?0:e;function MM(e){const t=pT(e);return hT(e)(t.map(DM))}const va={test:kM,parse:pT,createTransformer:hT,getAnimatableNone:MM},LM=new Set(["brightness","contrast","saturate","opacity"]);function IM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Tg)||[];if(!r)return e;const i=n.replace(r,"");let a=LM.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const PM=/\b([a-z-]*)\(.*?\)/gu,Cg={...va,getAnimatableNone:e=>{const t=e.match(PM);return t?t.map(IM).join(" "):e}},BM={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},UM={rotate:ba,rotateX:ba,rotateY:ba,rotateZ:ba,scale:kf,scaleX:kf,scaleY:kf,scaleZ:kf,skew:ba,skewX:ba,skewY:ba,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Pl,originX:eT,originY:eT,originZ:pe},mT={...Do,transform:Math.round},kg={...BM,...UM,zIndex:mT,size:pe,fillOpacity:Pl,strokeOpacity:Pl,numOctaves:mT},FM={...kg,color:on,backgroundColor:on,outlineColor:on,fill:on,stroke:on,borderColor:on,borderTopColor:on,borderRightColor:on,borderBottomColor:on,borderLeftColor:on,filter:Cg,WebkitFilter:Cg},Rg=e=>FM[e];function gT(e,t){let n=Rg(e);return n!==Cg&&(n=va),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jM=new Set(["auto","none","0"]);function HM(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!jM.has(a)&&Fl(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=gT(n,i)}class bT extends wg{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),yg(l))){const c=J2(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!vM.has(r)||t.length!==2)return;const[i,a]=t,s=sT(i),o=sT(a);if(s!==o)if(tT(s)&&tT(o))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)dM(t[i])&&r.push(i);r.length&&HM(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=Mo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,l])=>{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function Og(e){return typeof e=="function"}let Rf;function zM(){Rf=void 0}const Yr={now:()=>(Rf===void 0&&Yr.set(en.isProcessing||iM.useManualTiming?en.timestamp:performance.now()),Rf),set:e=>{Rf=e,queueMicrotask(zM)}},vT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(va.test(e)||e==="0")&&!e.startsWith("url("));function VM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function YM(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=vT(i,t),o=vT(a,t);return!s||!o?!1:VM(e)||(n==="spring"||Og(n))&&r}const qM=40;class yT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>qM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&wM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:s,onComplete:o,onUpdate:u,isGenerator:l}=this.options;if(!l&&!YM(t,r,i,a))if(s)this.options.duration=0;else{u==null||u(Af(t,this.options,n)),o==null||o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function xT(e,t){return t?e*(1e3/t):0}const $M=5;function ET(e,t,n){const r=Math.max(t-$M,0);return xT(n-e(r),t-r)}const Ng=.001,GM=.01,WM=10,XM=.05,KM=1;function ZM({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,s=1-t;s=ga(XM,KM,s),e=ga(GM,WM,Ti(e)),s<1?(i=l=>{const c=l*s,d=c*e,f=c-n,p=Dg(l,s),g=Math.exp(-d);return Ng-f/p*g},a=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,g=Math.exp(-d),v=Dg(Math.pow(l,2),s);return(-i(l)+Ng>0?-1:1)*((f-p)*g)/v}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Ng+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=JM(i,a,o);if(e=wi(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const QM=12;function JM(e,t,n){let r=n;for(let i=1;i<QM;i++)r=r-e(r)/t(r);return r}function Dg(e,t){return e*Math.sqrt(1-t*t)}const eL=["duration","bounce"],tL=["stiffness","damping","mass"];function wT(e,t){return t.some(n=>e[n]!==void 0)}function nL(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wT(e,tL)&&wT(e,eL)){const n=ZM(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function TT({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],s={done:!1,value:i},{stiffness:o,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=nL({...r,velocity:-Ti(r.velocity||0)}),p=d||0,g=u/(2*Math.sqrt(o*l)),v=a-i,w=Ti(Math.sqrt(o/l)),m=Math.abs(v)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(g<1){const x=Dg(w,g);y=T=>{const _=Math.exp(-g*w*T);return a-_*((p+g*w*v)/x*Math.sin(x*T)+v*Math.cos(x*T))}}else if(g===1)y=x=>a-Math.exp(-w*x)*(v+(p+w*v)*x);else{const x=w*Math.sqrt(g*g-1);y=T=>{const _=Math.exp(-g*w*T),A=Math.min(x*T,300);return a-_*((p+g*w*v)*Math.sinh(A)+x*v*Math.cosh(A))/x}}return{calculatedDuration:f&&c||null,next:x=>{const T=y(x);if(f)s.done=x>=c;else{let _=0;g<1&&(_=x===0?wi(p):ET(y,x,T));const A=Math.abs(_)<=n,C=Math.abs(a-T)<=t;s.done=A&&C}return s.value=s.done?a:T,s}}}function _T({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=D=>o!==void 0&&D<o||u!==void 0&&D>u,g=D=>o===void 0?u:u===void 0||Math.abs(o-D)<Math.abs(u-D)?o:u;let v=n*t;const w=d+v,m=s===void 0?w:s(w);m!==w&&(v=m-d);const y=D=>-v*Math.exp(-D/r),x=D=>m+y(D),T=D=>{const F=y(D),N=x(D);f.done=Math.abs(F)<=l,f.value=f.done?m:N};let _,A;const C=D=>{p(f.value)&&(_=D,A=TT({keyframes:[f.value,g(f.value)],velocity:ET(x,D,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return C(0),{calculatedDuration:null,next:D=>{let F=!1;return!A&&_===void 0&&(F=!0,T(D),C(D)),_!==void 0&&D>=_?A.next(D-_):(!F&&T(D),f)}}}const rL=Il(.42,0,1,1),iL=Il(0,0,.58,1),ST=Il(.42,0,.58,1),aL=e=>Array.isArray(e)&&typeof e[0]!="number",Mg=e=>Array.isArray(e)&&typeof e[0]=="number",AT={linear:sn,easeIn:rL,easeInOut:ST,easeOut:iL,circIn:bg,circInOut:W2,circOut:G2,backIn:gg,backInOut:q2,backOut:Y2,anticipate:$2},CT=e=>{if(Mg(e)){vg(e.length===4);const[t,n,r,i]=e;return Il(t,n,r,i)}else if(typeof e=="string")return vg(AT[e]!==void 0),AT[e];return e},sL=(e,t)=>n=>t(e(n)),_i=(...e)=>e.reduce(sL),Io=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},gt=(e,t,n)=>e+(t-e)*n;function Lg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Lg(u,o,e+1/3),a=Lg(u,o,e),s=Lg(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Of(e,t){return n=>n>0?t:e}const Ig=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},uL=[Ag,xs,Lo],lL=e=>uL.find(t=>t.test(e));function kT(e){const t=lL(e);if(!t)return!1;let n=t.parse(e);return t===Lo&&(n=oL(n)),n}const RT=(e,t)=>{const n=kT(e),r=kT(t);if(!n||!r)return Of(e,t);const i={...n};return a=>(i.red=Ig(n.red,r.red,a),i.green=Ig(n.green,r.green,a),i.blue=Ig(n.blue,r.blue,a),i.alpha=gt(n.alpha,r.alpha,a),xs.transform(i))},Pg=new Set(["none","hidden"]);function cL(e,t){return Pg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dL(e,t){return n=>gt(e,t,n)}function Bg(e){return typeof e=="number"?dL:typeof e=="string"?yg(e)?Of:on.test(e)?RT:hL:Array.isArray(e)?OT:typeof e=="object"?on.test(e)?RT:fL:Of}function OT(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>Bg(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function fL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bg(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function pL(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][i[s]],u=(n=e.values[o])!==null&&n!==void 0?n:0;r[a]=u,i[s]++}return r}const hL=(e,t)=>{const n=va.createTransformer(t),r=Fl(e),i=Fl(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pg.has(e)&&!i.values.length||Pg.has(t)&&!r.values.length?cL(e,t):_i(OT(pL(r,i),i.values),n):Of(e,t)};function NT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?gt(e,t,n):Bg(e)(e,t)}function mL(e,t,n){const r=[],i=n||NT,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||sn:t;o=_i(u,o)}r.push(o)}return r}function gL(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(vg(a===t.length),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=mL(t,r,i),o=s.length,u=l=>{let c=0;if(o>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=Io(e[c],e[c+1],l);return s[c](d)};return n?l=>u(ga(e[0],e[a-1],l)):u}function bL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Io(0,t,r);e.push(gt(n,1,i))}}function vL(e){const t=[0];return bL(t,e.length-1),t}function yL(e,t){return e.map(n=>n*t)}function xL(e,t){return e.map(()=>t||ST).splice(0,e.length-1)}function Nf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aL(r)?r.map(CT):CT(r),a={done:!1,value:t[0]},s=yL(n&&n.length===t.length?n:vL(t),e),o=gL(s,t,{ease:Array.isArray(i)?i:xL(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const DT=2e4;function EL(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<DT;)t+=n,r=e.next(t);return t>=DT?1/0:t}const wL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ze.update(t,!0),stop:()=>ma(t),now:()=>en.isProcessing?en.timestamp:Yr.now()}},TL={decay:_T,inertia:_T,tween:Nf,keyframes:Nf,spring:TT},_L=e=>e/100;class Ug extends yT{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,s=(i==null?void 0:i.KeyframeResolver)||wg,o=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new s(a,o,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,o=Og(n)?n:TL[n]||Nf;let u,l;o!==Nf&&typeof t[0]!="number"&&(u=_i(_L,NT(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});a==="mirror"&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=EL(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return a.next(0);const{delay:f,repeat:p,repeatType:g,repeatDelay:v,onUpdate:w}=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)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,T=a;if(p){const D=Math.min(this.currentTime,c)/d;let F=Math.floor(D),N=D%1;!N&&D>=1&&(N=1),N===1&&F--,F=Math.min(F,p+1),!!(F%2)&&(g==="reverse"?(N=1-N,v&&(N-=v/d)):g==="mirror"&&(T=s)),x=ga(0,1,N)*d}const _=y?{done:!1,value:u[0]}:T.next(x);o&&(_.value=o(_.value));let{done:A}=_;!y&&l!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return C&&i!==void 0&&(_.value=Af(u,this.options,i)),w&&w(_.value),C&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Ti(t.calculatedDuration):0}get time(){return Ti(this.currentTime)}set time(t){t=wi(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 n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ti(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wL,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??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 MT=new Set(["opacity","clipPath","filter","transform"]),SL=10,AL=(e,t)=>{let n="";const r=Math.max(Math.round(t/SL),2);for(let i=0;i<r;i++)n+=e(Io(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Fg(e){let t;return()=>(t===void 0&&(t=e()),t)}const CL={linearEasing:void 0};function kL(e,t){const n=Fg(e);return()=>{var r;return(r=CL[t])!==null&&r!==void 0?r:n()}}const Df=kL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function LT(e){return!!(typeof e=="function"&&Df()||!e||typeof e=="string"&&(e in jg||Df())||Mg(e)||Array.isArray(e)&&e.every(LT))}const jl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function IT(e,t){if(e)return typeof e=="function"&&Df()?AL(e,t):Mg(e)?jl(e):Array.isArray(e)?e.map(n=>IT(n,t)||jg.easeOut):jg[e]}function RL(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=IT(o,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function PT(e,t){e.timeline=t,e.onfinish=null}const OL=Fg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mf=10,NL=2e4;function DL(e){return Og(e.type)||e.type==="spring"||!LT(e.ease)}function ML(e,t){const n=new Ug({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<NL;)r=n.sample(a),i.push(r.value),a+=Mf;return{times:void 0,keyframes:i,duration:a-Mf,ease:"linear"}}const BT={anticipate:$2,backInOut:q2,circInOut:W2};function LL(e){return e in BT}class UT extends yT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new bT(a,(s,o)=>this.onKeyframesResolved(s,o),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:s,type:o,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Df()&&LL(s)&&(s=BT[s]),DL(this.options)){const{onComplete:f,onUpdate:p,motionValue:g,element:v,...w}=this.options,m=ML(t,w);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,a=m.times,s=m.ease,o="keyframes"}const d=RL(u.owner.current,l,t,{...this.options,duration:i,times:a,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(PT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Af(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:a,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ti(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ti(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return sn;const{animation:r}=n;PT(r,t)}return sn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.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:n,keyframes:r,duration:i,type:a,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...p}=this.options,g=new Ug({...p,keyframes:r,duration:i,type:a,ease:s,times:o,isGenerator:!0}),v=wi(this.time);l.setWithVelocity(g.sample(v-Mf).value,g.sample(v).value,Mf)}const{onStop:u}=this.options;u&&u(),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:n,name:r,repeatDelay:i,repeatType:a,damping:s,type:o}=t;return OL()&&r&&MT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&s!==0&&o!=="inertia"}}const IL=Fg(()=>window.ScrollTimeline!==void 0);class PL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>IL()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function BL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const Hg=(e,t,n,r={},i,a)=>s=>{const o=hg(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-wi(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};BL(o)||(c={...c,...rM(e,c)}),c.duration&&(c.duration=wi(c.duration)),c.repeatDelay&&(c.repeatDelay=wi(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){const f=Af(c.keyframes,o);if(f!==void 0)return Ze.update(()=>{c.onUpdate(f),c.onComplete()}),new PL([])}return!a&&UT.supports(c)?new UT(c):new Ug(c)},UL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FL=e=>cg(e)?e[e.length-1]||0:e;function zg(e,t){e.indexOf(t)===-1&&e.push(t)}function Vg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yg{constructor(){this.subscriptions=[]}add(t){return zg(this.subscriptions,t),()=>Vg(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const FT=30,jL=e=>!isNaN(parseFloat(e));class HL{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Yr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=jL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ze.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>FT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,FT);return xT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hl(e,t){return new HL(e,t)}function zL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hl(n))}function VL(e,t){const n=Sf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=FL(a[s]);zL(e,s,o)}}const Lf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jT="data-"+Lf("framerAppearId");function HT(e){return e.props[jT]}const un=e=>!!(e&&e.getVelocity);function YL(e){return!!(un(e)&&e.add)}function qg(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(YL(n))return n.add(t)}function qL({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function zT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...u}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),p=u[d];if(p===void 0||c&&qL(c,d))continue;const g={delay:n,...hg(s||{},d)};let v=!1;if(window.MotionHandoffAnimation){const m=HT(e);if(m){const y=window.MotionHandoffAnimation(m,d,Ze);y!==null&&(g.startTime=y,v=!0)}}qg(e,d),f.start(Hg(d,f,p,e.shouldReduceMotion&&ha.has(d)?{type:!1}:g,e,v));const w=f.animation;w&&l.push(w)}return o&&Promise.all(l).then(()=>{Ze.update(()=>{o&&VL(e,o)})}),l}function $g(e,t,n={}){var r;const i=Sf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const s=i?()=>Promise.all(zT(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return $L(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[l,c]=u==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function $L(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>o-l*r;return Array.from(e.variantChildren).sort(GL).forEach((l,c)=>{l.notify("AnimationStart",t),s.push($g(l,t,{...a,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function GL(e,t){return e.sortNodePosition(t)}function WL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>$g(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=$g(e,t,n);else{const i=typeof t=="function"?Sf(e,t,n.custom):t;r=Promise.all(zT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const XL=pg.length;function VT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?VT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<XL;n++){const r=pg[n],i=e.props[r];(Ml(i)||i===!1)&&(t[r]=i)}return t}const KL=[...fg].reverse(),ZL=fg.length;function QL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>WL(e,n,r)))}function JL(e){let t=QL(e),n=YT(),r=!0;const i=u=>(l,c)=>{var d;const f=Sf(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:g,...v}=f;l={...l,...v,...g}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=VT(e.parent)||{},d=[],f=new Set;let p={},g=1/0;for(let w=0;w<ZL;w++){const m=KL[w],y=n[m],x=l[m]!==void 0?l[m]:c[m],T=Ml(x),_=m===u?y.isActive:null;_===!1&&(g=w);let A=x===c[m]&&x!==l[m]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...p},!y.isActive&&_===null||!x&&!y.prevProp||Dl(x)||typeof x=="boolean")continue;const C=e9(y.prevProp,x);let D=C||m===u&&y.isActive&&!A&&T||w>g&&T,F=!1;const N=Array.isArray(x)?x:[x];let Y=N.reduce(i(m),{});_===!1&&(Y={});const{prevResolvedValues:H={}}=y,ee={...H,...Y},G=q=>{D=!0,f.has(q)&&(F=!0,f.delete(q)),y.needsAnimating[q]=!0;const z=e.getValue(q);z&&(z.liveStyle=!1)};for(const q in ee){const z=Y[q],V=H[q];if(p.hasOwnProperty(q))continue;let R=!1;cg(z)&&cg(V)?R=!U2(z,V):R=z!==V,R?z!=null?G(q):f.add(q):z!==void 0&&f.has(q)?G(q):y.protectedKeys[q]=!0}y.prevProp=x,y.prevResolvedValues=Y,y.isActive&&(p={...p,...Y}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(A&&C)||F)&&d.push(...N.map(q=>({animation:q,options:{type:m}})))}if(f.size){const w={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),w[m]=y??null}),d.push({animation:w})}let v=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function o(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(u,l)}),n[u].isActive=l;const d=s(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=YT(),r=!0}}}function e9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!U2(t,e):!1}function Es(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YT(){return{animate:Es(!0),whileInView:Es(),whileHover:Es(),whileTap:Es(),whileDrag:Es(),whileFocus:Es(),exit:Es()}}class ya{constructor(t){this.isMounted=!1,this.node=t}update(){}}class t9 extends ya{constructor(t){super(t),t.animationState||(t.animationState=JL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Dl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let n9=0;class r9 extends ya{constructor(){super(...arguments),this.id=n9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const i9={animation:{Feature:t9},exit:{Feature:r9}},qT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function If(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const a9=e=>t=>qT(t)&&e(t,If(t));function Si(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ai(e,t,n,r){return Si(e,t,a9(n),r)}const $T=(e,t)=>Math.abs(e-t);function s9(e,t){const n=$T(e.x,t.x),r=$T(e.y,t.y);return Math.sqrt(n**2+r**2)}class GT{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Wg(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=s9(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:g}=d,{timestamp:v}=en;this.history.push({...g,timestamp:v});const{onStart:w,onMove:m}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Gg(f,this.transformPagePoint),Ze.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Wg(d.type==="pointercancel"?this.lastMoveEventInfo:Gg(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,w),g&&g(d,w)},!qT(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=If(t),o=Gg(s,this.transformPagePoint),{point:u}=o,{timestamp:l}=en;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Wg(o,this.history)),this.removeListeners=_i(Ai(this.contextWindow,"pointermove",this.handlePointerMove),Ai(this.contextWindow,"pointerup",this.handlePointerUp),Ai(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ma(this.updatePoint)}}function Gg(e,t){return t?{point:t(e.point)}:e}function WT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:WT(e,XT(t)),offset:WT(e,o9(t)),velocity:u9(t,.1)}}function o9(e){return e[0]}function XT(e){return e[e.length-1]}function u9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=XT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wi(t)));)n--;if(!r)return{x:0,y:0};const a=Ti(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function KT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ZT=KT("dragHorizontal"),QT=KT("dragVertical");function JT(e){let t=!1;if(e==="y")t=QT();else if(e==="x")t=ZT();else{const n=ZT(),r=QT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function e_(){const e=JT(!0);return e?(e(),!1):!0}function Po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const t_=1e-4,l9=1-t_,c9=1+t_,n_=.01,d9=0-n_,f9=0+n_;function Hn(e){return e.max-e.min}function p9(e,t,n){return Math.abs(e-t)<=n}function r_(e,t,n,r=.5){e.origin=r,e.originPoint=gt(t.min,t.max,e.origin),e.scale=Hn(n)/Hn(t),e.translate=gt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=l9&&e.scale<=c9||isNaN(e.scale))&&(e.scale=1),(e.translate>=d9&&e.translate<=f9||isNaN(e.translate))&&(e.translate=0)}function zl(e,t,n,r){r_(e.x,t.x,n.x,r?r.originX:void 0),r_(e.y,t.y,n.y,r?r.originY:void 0)}function i_(e,t,n){e.min=n.min+t.min,e.max=e.min+Hn(t)}function h9(e,t,n){i_(e.x,t.x,n.x),i_(e.y,t.y,n.y)}function a_(e,t,n){e.min=t.min-n.min,e.max=e.min+Hn(t)}function Vl(e,t,n){a_(e.x,t.x,n.x),a_(e.y,t.y,n.y)}function m9(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?gt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?gt(n,e,r.max):Math.min(e,n)),e}function s_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function g9(e,{top:t,left:n,bottom:r,right:i}){return{x:s_(e.x,n,i),y:s_(e.y,t,r)}}function o_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function b9(e,t){return{x:o_(e.x,t.x),y:o_(e.y,t.y)}}function v9(e,t){let n=.5;const r=Hn(e),i=Hn(t);return i>r?n=Io(t.min,t.max-r,e.min):r>i&&(n=Io(e.min,e.max-i,t.min)),ga(0,1,n)}function y9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xg=.35;function x9(e=Xg){return e===!1?e=0:e===!0&&(e=Xg),{x:u_(e,"left","right"),y:u_(e,"top","bottom")}}function u_(e,t,n){return{min:l_(e,t),max:l_(e,n)}}function l_(e,t){return typeof e=="number"?e:e[t]||0}const c_=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bo=()=>({x:c_(),y:c_()}),d_=()=>({min:0,max:0}),At=()=>({x:d_(),y:d_()});function dr(e){return[e("x"),e("y")]}function f_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function E9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Kg(e){return e===void 0||e===1}function Zg({scale:e,scaleX:t,scaleY:n}){return!Kg(e)||!Kg(t)||!Kg(n)}function ws(e){return Zg(e)||p_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p_(e){return h_(e.x)||h_(e.y)}function h_(e){return e&&e!=="0%"}function Pf(e,t,n){const r=e-n,i=t*r;return n+i}function m_(e,t,n,r,i){return i!==void 0&&(e=Pf(e,i,r)),Pf(e,n,r)+t}function Qg(e,t=0,n=1,r,i){e.min=m_(e.min,t,n,r,i),e.max=m_(e.max,t,n,r,i)}function g_(e,{x:t,y:n}){Qg(e.x,t.translate,t.scale,t.originPoint),Qg(e.y,n.translate,n.scale,n.originPoint)}const b_=.999999999999,v_=1.0000000000001;function T9(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,g_(e,s)),r&&ws(a.latestValues)&&Fo(e,a.latestValues))}t.x<v_&&t.x>b_&&(t.x=1),t.y<v_&&t.y>b_&&(t.y=1)}function Uo(e,t){e.min=e.min+t,e.max=e.max+t}function y_(e,t,n,r,i=.5){const a=gt(e.min,e.max,i);Qg(e,t,n,a,r)}function Fo(e,t){y_(e.x,t.x,t.scaleX,t.scale,t.originX),y_(e.y,t.y,t.scaleY,t.scale,t.originY)}function x_(e,t){return f_(w9(e.getBoundingClientRect(),t))}function _9(e,t,n){const r=x_(e,n),{scroll:i}=t;return i&&(Uo(r.x,i.offset.x),Uo(r.y,i.offset.y)),r}const E_=({current:e})=>e?e.ownerDocument.defaultView:null,S9=new WeakMap;class A9{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=At(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(If(c,"page").point)},a=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=JT(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dr(w=>{let m=this.getAxisMotionValue(w).get()||0;if(Vr.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[w];x&&(m=Hn(x)*(parseFloat(m)/100))}}this.originPoint[w]=m}),g&&Ze.postRender(()=>g(c,d)),qg(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:w}=d;if(p&&this.currentDirection===null){this.currentDirection=C9(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),v&&v(c,d)},o=(c,d)=>this.stop(c,d),u=()=>dr(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new GT(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:E_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ze.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Bf(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=m9(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=g9(i.layoutBox,n):this.constraints=!1,this.elastic=x9(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&dr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=y9(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Po(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=_9(r,i.root,this.visualElement.getTransformPagePoint());let s=b9(i.layout.layoutBox,a);if(n){const o=n(E9(s));this.hasMutatedConstraints=!!o,o&&(s=f_(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=dr(c=>{if(!Bf(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return qg(this.visualElement,t),r.start(Hg(t,r,0,n,this.visualElement,!1))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){dr(n=>{const{drag:r}=this.getProps();if(!Bf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-gt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Po(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dr(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=v9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),dr(s=>{if(!Bf(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(gt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;S9.set(this.visualElement,this);const t=this.visualElement.current,n=Ai(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Po(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ze.read(r);const s=Si(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(dr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Xg,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Bf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class k9 extends ya{constructor(t){super(t),this.removeGroupControls=sn,this.removeListeners=sn,this.controls=new A9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sn}unmount(){this.removeGroupControls(),this.removeListeners()}}const w_=e=>(t,n)=>{e&&Ze.postRender(()=>e(t,n))};class R9 extends ya{constructor(){super(...arguments),this.removePointerDownListener=sn}onPointerDown(t){this.session=new GT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:E_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:w_(t),onStart:w_(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&Ze.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ai(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 Uf=b.createContext(null);function O9(){const e=b.useContext(Uf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();b.useEffect(()=>r(i),[]);const a=b.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,a]:[!0]}const Jg=b.createContext({}),T_=b.createContext({}),Ff={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function __(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=__(e,t.target.x),r=__(e,t.target.y);return`${n}% ${r}%`}},N9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=va.parse(e);if(i.length>5)return r;const a=va.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=gt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}},jf={};function D9(e){Object.assign(jf,e)}const{schedule:e1,cancel:Are}=j2(queueMicrotask,!1);class M9 extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;D9(L9),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ff.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ze.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),e1.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function S_(e){const[t,n]=O9(),r=b.useContext(Jg);return E.jsx(M9,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(T_),isPresent:t,safeToRemove:n})}const L9={borderRadius:{...Yl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yl,borderTopRightRadius:Yl,borderBottomLeftRadius:Yl,borderBottomRightRadius:Yl,boxShadow:N9},A_=["TopLeft","TopRight","BottomLeft","BottomRight"],I9=A_.length,C_=e=>typeof e=="string"?parseFloat(e):e,k_=e=>typeof e=="number"||pe.test(e);function P9(e,t,n,r,i,a){i?(e.opacity=gt(0,n.opacity!==void 0?n.opacity:1,B9(r)),e.opacityExit=gt(t.opacity!==void 0?t.opacity:1,0,U9(r))):a&&(e.opacity=gt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<I9;s++){const o=`border${A_[s]}Radius`;let u=R_(t,o),l=R_(n,o);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||k_(u)===k_(l)?(e[o]=Math.max(gt(C_(u),C_(l),r),0),(Vr.test(l)||Vr.test(u))&&(e[o]+="%")):e[o]=l}(t.rotate||n.rotate)&&(e.rotate=gt(t.rotate||0,n.rotate||0,r))}function R_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const B9=O_(0,.5,G2),U9=O_(.5,.95,sn);function O_(e,t,n){return r=>r<e?0:r>t?1:n(Io(e,t,r))}function N_(e,t){e.min=t.min,e.max=t.max}function fr(e,t){N_(e.x,t.x),N_(e.y,t.y)}function D_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function M_(e,t,n,r,i){return e-=t,e=Pf(e,1/n,r),i!==void 0&&(e=Pf(e,1/i,r)),e}function F9(e,t=0,n=1,r=.5,i,a=e,s=e){if(Vr.test(t)&&(t=parseFloat(t),t=gt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=gt(a.min,a.max,r);e===a&&(o-=t),e.min=M_(e.min,t,n,o,i),e.max=M_(e.max,t,n,o,i)}function L_(e,t,[n,r,i],a,s){F9(e,t[n],t[r],t[i],t.scale,a,s)}const j9=["x","scaleX","originX"],H9=["y","scaleY","originY"];function I_(e,t,n,r){L_(e.x,t,j9,n?n.x:void 0,r?r.x:void 0),L_(e.y,t,H9,n?n.y:void 0,r?r.y:void 0)}function P_(e){return e.translate===0&&e.scale===1}function B_(e){return P_(e.x)&&P_(e.y)}function U_(e,t){return e.min===t.min&&e.max===t.max}function z9(e,t){return U_(e.x,t.x)&&U_(e.y,t.y)}function F_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function j_(e,t){return F_(e.x,t.x)&&F_(e.y,t.y)}function H_(e){return Hn(e.x)/Hn(e.y)}function z_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class V9{constructor(){this.members=[]}add(t){zg(this.members,t),t.scheduleRender()}remove(t){if(Vg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Y9(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const q9=(e,t)=>e.depth-t.depth;class $9{constructor(){this.children=[],this.isDirty=!1}add(t){zg(this.children,t),this.isDirty=!0}remove(t){Vg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q9),this.isDirty=!1,this.children.forEach(t)}}function Hf(e){const t=un(e)?e.get():e;return UL(t)?t.toValue():t}function G9(e,t){const n=Yr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(ma(r),e(a-t))};return Ze.read(r,!0),()=>ma(r)}function W9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function X9(e,t,n){const r=un(e)?e:Hl(e);return r.start(Hg("",r,t,n)),r.animation}const Ts={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ql=typeof window<"u"&&window.MotionDebug!==void 0,t1=["","X","Y","Z"],K9={visibility:"hidden"},V_=1e3;let Z9=0;function n1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Y_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=HT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ze,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Y_(r)}function q_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=Z9++,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,ql&&(Ts.totalNodes=Ts.resolvedTargetDeltas=Ts.recalculatedProjection=0),this.nodes.forEach(eI),this.nodes.forEach(aI),this.nodes.forEach(sI),this.nodes.forEach(tI),ql&&window.MotionDebug.record(Ts)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new $9)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Yg),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const u=this.eventHandlers.get(s);u&&u.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W9(s),this.instance=s;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(l||u)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=G9(f,250),Ff.hasAnimatedSinceResize&&(Ff.hasAnimatedSinceResize=!1,this.nodes.forEach(G_))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||dI,{onLayoutAnimationStart:w,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!j_(this.targetLayout,g)||p,x=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...hg(v,"layout"),onPlay:w,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||G_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ma(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(oI),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($_);return}this.isUpdating||this.nodes.forEach(rI),this.isUpdating=!1,this.nodes.forEach(iI),this.nodes.forEach(Q9),this.nodes.forEach(J9),this.clearAllSnapshots();const o=Yr.now();en.delta=ga(0,1e3/60,o-en.timestamp),en.timestamp=o,en.isProcessing=!0,mg.update.process(en),mg.preRender.process(en),mg.render.process(en),en.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nI),this.sharedNodes.forEach(uI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=At(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!B_(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;s&&(o||ws(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return s&&(u=this.removeTransform(u)),fI(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return At();const u=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(pI))){const{scroll:c}=this.root;c&&(Uo(u.x,c.offset.x),Uo(u.y,c.offset.y))}return u}removeElementScroll(s){var o;const u=At();if(fr(u,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return u;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&fr(u,s),Uo(u.x,d.offset.x),Uo(u.y,d.offset.y))}return u}applyTransform(s,o=!1){const u=At();fr(u,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Fo(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ws(c.latestValues)&&Fo(u,c.latestValues)}return ws(this.latestValues)&&Fo(u,this.latestValues),u}removeTransform(s){const o=At();fr(o,s);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!ws(l.latestValues))continue;Zg(l.latestValues)&&l.updateSnapshot();const c=At(),d=l.measurePageBox();fr(c,d),I_(o,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return ws(this.latestValues)&&I_(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==en.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=en.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=At(),this.relativeTargetOrigin=At(),Vl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=At(),this.targetWithTransforms=At()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fr(this.target,this.layout.layoutBox),g_(this.target,this.targetDelta)):fr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=At(),this.relativeTargetOrigin=At(),Vl(this.relativeTargetOrigin,this.target,p.target),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ql&&Ts.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Zg(this.parent.latestValues)||p_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),u=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===en.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;fr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;T9(this.layoutCorrected,this.treeScale,this.path,u),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=At());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(D_(this.prevProjectionDelta.x,this.projectionDelta.x),D_(this.prevProjectionDelta.y,this.projectionDelta.y)),zl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!z_(this.projectionDelta.x,this.prevProjectionDelta.x)||!z_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),ql&&Ts.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bo(),this.projectionDelta=Bo(),this.projectionDeltaWithTransform=Bo()}setAnimationOrigin(s,o=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=Bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=At(),p=u?u.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,w=this.getStack(),m=!w||w.members.length<=1,y=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(cI));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const _=T/1e3;W_(d.x,s.x,_),W_(d.y,s.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lI(this.relativeTarget,this.relativeTargetOrigin,f,_),x&&z9(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=At()),fr(x,this.relativeTarget)),v&&(this.animationValues=c,P9(c,l,this.latestValues,_,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ma(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ze.update(()=>{Ff.hasAnimatedSinceResize=!0,this.currentAnimation=X9(0,V_,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(V_),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&J_(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||At();const d=Hn(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const f=Hn(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+f}fr(o,u),Fo(o,c),zl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new V9),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&n1("z",s,l,this.animationValues);for(let c=0;c<t1.length;c++)n1(`rotate${t1[c]}`,s,l,this.animationValues),n1(`skew${t1[c]}`,s,l,this.animationValues);s.render();for(const c in l)s.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);s.scheduleRender()}getProjectionStyles(s){var o,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return K9;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Hf(s==null?void 0:s.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Hf(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ws(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=Y9(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:g}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,d.animationValues?l.opacity=d===this?(u=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const v in jf){if(f[v]===void 0)continue;const{correct:w,applyTo:m}=jf[v],y=l.transform==="none"?f[v]:w(f[v],d);if(m){const x=m.length;for(let T=0;T<x;T++)l[m[T]]=y}else l[v]=y}return this.options.layoutId&&(l.pointerEvents=d===this?Hf(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach($_),this.root.sharedNodes.clear()}}}function Q9(e){e.updateLayout()}function J9(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?dr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Hn(f);f.min=r[d].min,f.max=f.min+p}):J_(a,n.layoutBox,r)&&dr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Hn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const o=Bo();zl(o,r,n.layoutBox);const u=Bo();s?zl(u,e.applyTransform(i,!0),n.measuredBox):zl(u,r,n.layoutBox);const l=!B_(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const g=At();Vl(g,n.layoutBox,f.layoutBox);const v=At();Vl(v,r,p.layoutBox),j_(g,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function eI(e){ql&&Ts.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 tI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nI(e){e.clearSnapshot()}function $_(e){e.clearMeasurements()}function rI(e){e.isLayoutDirty=!1}function iI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function G_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aI(e){e.resolveTargetDelta()}function sI(e){e.calcProjection()}function oI(e){e.resetSkewAndRotation()}function uI(e){e.removeLeadSnapshot()}function W_(e,t,n){e.translate=gt(t.translate,0,n),e.scale=gt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function X_(e,t,n,r){e.min=gt(t.min,n.min,r),e.max=gt(t.max,n.max,r)}function lI(e,t,n,r){X_(e.x,t.x,n.x,r),X_(e.y,t.y,n.y,r)}function cI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dI={duration:.45,ease:[.4,0,.1,1]},K_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Z_=K_("applewebkit/")&&!K_("chrome/")?Math.round:sn;function Q_(e){e.min=Z_(e.min),e.max=Z_(e.max)}function fI(e){Q_(e.x),Q_(e.y)}function J_(e,t,n){return e==="position"||e==="preserve-aspect"&&!p9(H_(t),H_(n),.2)}function pI(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const hI=q_({attachResizeListener:(e,t)=>Si(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r1={current:void 0},eS=q_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r1.current){const e=new hI({});e.mount(window),e.setOptions({layoutScroll:!0}),r1.current=e}return r1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mI={pan:{Feature:R9},drag:{Feature:k9,ProjectionNode:eS,MeasureLayout:S_}};function tS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(a,s)=>{if(a.pointerType==="touch"||e_())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);const u=o[r];u&&Ze.postRender(()=>u(a,s))};return Ai(e.current,n,i,{passive:!e.getProps()[r]})}class gI extends ya{mount(){this.unmount=_i(tS(this.node,!0),tS(this.node,!1))}unmount(){}}class bI extends ya{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_i(Si(this.node.current,"focus",()=>this.onFocus()),Si(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const nS=(e,t)=>t?e===t?!0:nS(e,t.parentElement):!1;function i1(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,If(n))}class vI extends ya{constructor(){super(...arguments),this.removeStartListeners=sn,this.removeEndListeners=sn,this.removeAccessibleListeners=sn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=Ai(window,"pointerup",(o,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!nS(this.node.current,o.target)?c:l;f&&Ze.update(()=>f(o,u))},{passive:!(r.onTap||r.onPointerUp)}),s=Ai(window,"pointercancel",(o,u)=>this.cancelPress(o,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=_i(a,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=o=>{o.key!=="Enter"||!this.checkPressEnd()||i1("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ze.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Si(this.node.current,"keyup",s),i1("down",(o,u)=>{this.startPress(o,u)})},n=Si(this.node.current,"keydown",t),r=()=>{this.isPressing&&i1("cancel",(a,s)=>this.cancelPress(a,s))},i=Si(this.node.current,"blur",r);this.removeAccessibleListeners=_i(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ze.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!e_()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ze.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ai(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Si(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_i(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const a1=new WeakMap,s1=new WeakMap,yI=e=>{const t=a1.get(e.target);t&&t(e)},xI=e=>{e.forEach(yI)};function EI({root:e,...t}){const n=e||document;s1.has(n)||s1.set(n,{});const r=s1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(xI,{root:e,...t})),r[i]}function wI(e,t,n){const r=EI(t);return a1.set(e,n),r.observe(e),()=>{a1.delete(e),r.unobserve(e)}}const TI={some:0,all:1};class _I extends ya{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:TI[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(u)};return wI(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(SI(t,n))&&this.startObserver()}unmount(){}}function SI({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AI={inView:{Feature:_I},tap:{Feature:vI},focus:{Feature:bI},hover:{Feature:gI}},CI={layout:{ProjectionNode:eS,MeasureLayout:S_}},o1=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),zf=b.createContext({}),u1=typeof window<"u",rS=u1?b.useLayoutEffect:b.useEffect,iS=b.createContext({strict:!1});function kI(e,t,n,r,i){var a,s;const{visualElement:o}=b.useContext(zf),u=b.useContext(iS),l=b.useContext(Uf),c=b.useContext(o1).reducedMotion,d=b.useRef();r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,p=b.useContext(T_);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&RI(d.current,n,i,p),b.useInsertionEffect(()=>{f&&f.update(n,l)});const g=n[jT],v=b.useRef(!!g&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return rS(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),e1.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,g)}),v.current=!1))}),f}function RI(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:aS(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Po(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function aS(e){if(e)return e.options.allowProjection!==!1?e.projection:aS(e.parent)}function OI(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Po(n)&&(n.current=r))},[t])}function Vf(e){return Dl(e.animate)||pg.some(t=>Ml(e[t]))}function sS(e){return!!(Vf(e)||e.variants)}function NI(e,t){if(Vf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ml(n)?n:void 0,animate:Ml(r)?r:void 0}}return e.inherit!==!1?t:{}}function DI(e){const{initial:t,animate:n}=NI(e,b.useContext(zf));return b.useMemo(()=>({initial:t,animate:n}),[oS(t),oS(n)])}function oS(e){return Array.isArray(e)?e.join(" "):e}const uS={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"]},jo={};for(const e in uS)jo[e]={isEnabled:t=>uS[e].some(n=>!!t[n])};function MI(e){for(const t in e)jo[t]={...jo[t],...e[t]}}const LI=Symbol.for("motionComponentSymbol");function II({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&MI(e);function a(o,u){let l;const c={...b.useContext(o1),...o,layoutId:PI(o)},{isStatic:d}=c,f=DI(o),p=r(o,d);if(!d&&u1){BI();const g=UI(c);l=g.MeasureLayout,f.visualElement=kI(i,p,c,t,g.ProjectionNode)}return E.jsxs(zf.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,o,OI(p,f.visualElement,u),p,d,f.visualElement)]})}const s=b.forwardRef(a);return s[LI]=i,s}function PI({layoutId:e}){const t=b.useContext(Jg).id;return t&&e!==void 0?t+"-"+e:e}function BI(e,t){b.useContext(iS).strict}function UI(e){const{drag:t,layout:n}=jo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const FI=["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 l1(e){return typeof e!="string"||e.includes("-")?!1:!!(FI.indexOf(e)>-1||/[A-Z]/u.test(e))}function lS(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const cS=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 dS(e,t,n,r){lS(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(cS.has(i)?i:Lf(i),t.attrs[i])}function fS(e,{layout:t,layoutId:n}){return ha.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jf[e]||e==="opacity")}function c1(e,t,n){var r;const{style:i}=e,a={};for(const s in i)(un(i[s])||t.style&&un(t.style[s])||fS(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[s]=i[s]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),a}function pS(e,t,n){const r=c1(e,t,n);for(const i in e)if(un(e[i])||un(t[i])){const a=Ll.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function d1(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function jI(e){if(ha.has(e))return"transform";if(MT.has(e))return Lf(e)}function HI({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,a,s,o){const u={latestValues:zI(i,a,s,o?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const hS=e=>(t,n)=>{const r=b.useContext(zf),i=b.useContext(Uf),a=()=>HI(e,t,r,i,n);return n?a():d1(a)};function mS(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const a=dg(e,r[i]);if(a){const{transitionEnd:s,transition:o,...u}=a;n(u,s)}}}function zI(e,t,n,r,i){var a;const s={},o=new Set,u=r&&((a=e.style)===null||a===void 0?void 0:a.willChange)===void 0,l=i(e,{});for(const w in l)s[w]=Hf(l[w]);let{initial:c,animate:d}=e;const f=Vf(e),p=sS(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let g=n?n.initial===!1:!1;g=g||c===!1;const v=g?d:c;return v&&typeof v!="boolean"&&!Dl(v)&&mS(e,v,(w,m)=>{for(const y in w){let x=w[y];if(Array.isArray(x)){const T=g?x.length-1:0;x=x[T]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}),u&&(d&&c!==!1&&!Dl(d)&&mS(e,d,w=>{for(const m in w){const y=jI(m);y&&o.add(y)}}),o.size&&(s.willChange=Array.from(o).join(","))),s}const f1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),gS=()=>({...f1(),attrs:{}}),bS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,VI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YI=Ll.length;function qI(e,t,n){let r="",i=!0;for(let a=0;a<YI;a++){const s=Ll[a],o=e[s];if(o===void 0)continue;let u=!0;if(typeof o=="number"?u=o===(s.startsWith("scale")?1:0):u=parseFloat(o)===0,!u||n){const l=bS(o,kg[s]);if(!u){i=!1;const c=VI[s]||s;r+=`${c}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function p1(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const u in t){const l=t[u];if(ha.has(u)){s=!0;continue}else if(Q2(u)){i[u]=l;continue}else{const c=bS(l,kg[u]);u.startsWith("origin")?(o=!0,a[u]=c):r[u]=c}}if(t.transform||(s||n?r.transform=qI(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:u="50%",originY:l="50%",originZ:c=0}=a;r.transformOrigin=`${u} ${l} ${c}`}}function vS(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function $I(e,t,n){const r=vS(t,e.x,e.width),i=vS(n,e.y,e.height);return`${r} ${i}`}const GI={offset:"stroke-dashoffset",array:"stroke-dasharray"},WI={offset:"strokeDashoffset",array:"strokeDasharray"};function XI(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?GI:WI;e[a.offset]=pe.transform(-r);const s=pe.transform(t),o=pe.transform(n);e[a.array]=`${s} ${o}`}function h1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:u=0,...l},c,d){if(p1(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:g}=e;f.transform&&(g&&(p.transform=f.transform),delete f.transform),g&&(i!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=$I(g,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&XI(f,s,o,u,!1)}const m1=e=>typeof e=="string"&&e.toLowerCase()==="svg",KI={useVisualState:hS({scrapeMotionValuesFromProps:pS,createRenderState:gS,onMount:(e,t,{renderState:n,latestValues:r})=>{Ze.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ze.render(()=>{h1(n,r,m1(t.tagName),e.transformTemplate),dS(t,n)})}})},ZI={useVisualState:hS({applyWillChange:!0,scrapeMotionValuesFromProps:c1,createRenderState:f1})};function yS(e,t,n){for(const r in t)!un(t[r])&&!fS(r,n)&&(e[r]=t[r])}function QI({transformTemplate:e},t){return b.useMemo(()=>{const n=f1();return p1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function JI(e,t){const n=e.style||{},r={};return yS(r,n,e),Object.assign(r,QI(e,t)),r}function eP(e,t){const n={},r=JI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const tP=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 Yf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tP.has(e)}let xS=e=>!Yf(e);function nP(e){e&&(xS=t=>t.startsWith("on")?!Yf(t):e(t))}try{nP(require("@emotion/is-prop-valid").default)}catch{}function rP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(xS(i)||n===!0&&Yf(i)||!t&&!Yf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function iP(e,t,n,r){const i=b.useMemo(()=>{const a=gS();return h1(a,t,m1(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};yS(a,e.style,e),i.style={...a,...i.style}}return i}function aP(e=!1){return(n,r,i,{latestValues:a},s)=>{const u=(l1(n)?iP:eP)(r,a,s,n),l=rP(r,typeof n=="string",e),c=n!==b.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=b.useMemo(()=>un(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function sP(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...l1(r)?KI:ZI,preloadedFeatures:e,useRender:aP(i),createVisualElement:t,Component:r};return II(s)}}const g1={current:null},ES={current:!1};function oP(){if(ES.current=!0,!!u1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>g1.current=e.matches;e.addListener(t),t()}else g1.current=!1}function uP(e,t,n){for(const r in t){const i=t[r],a=n[r];if(un(i))e.addValue(r,i);else if(un(a))e.addValue(r,Hl(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Hl(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wS=new WeakMap,lP=[...aT,on,va],cP=e=>lP.find(iT(e)),TS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dP{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wg,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 f=Yr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ze.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Vf(n),this.isVariantNode=sS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&un(p)&&p.set(u[f],!1)}}mount(t){this.current=t,wS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ES.current||oP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:g1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wS.delete(this.current),this.projection&&this.projection.unmount(),ma(this.notifyUpdate),ma(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ha.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ze.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.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 jo){const n=jo[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):At()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<TS.length;r++){const i=TS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=uP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Hl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(K2(i)||X2(i))?i=parseFloat(i):!cP(i)&&va.test(n)&&(i=gT(t,n)),this.setBaseTarget(t,un(i)?i.get():i)),un(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=dg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!un(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _S extends dP{constructor(){super(...arguments),this.KeyframeResolver=bT}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function fP(e){return window.getComputedStyle(e)}class pP extends _S{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=lS}readValueFromInstance(t,n){if(ha.has(n)){const r=Rg(n);return r&&r.default||0}else{const r=fP(t),i=(Q2(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return x_(t,n)}build(t,n,r){p1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return c1(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class hP extends _S{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=At}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ha.has(n)){const r=Rg(n);return r&&r.default||0}return n=cS.has(n)?n:Lf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pS(t,n,r)}build(t,n,r){h1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){dS(t,n,r,i)}mount(t){this.isSVGTag=m1(t.tagName),super.mount(t)}}const mP=(e,t)=>l1(e)?new hP(t):new pP(t,{allowProjection:e!==b.Fragment}),gP=sP({...i9,...AI,...mI,...CI},mP),Ho=Q8(gP);class bP extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vP({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=b.useContext(o1);return b.useInsertionEffect(()=>{const{width:s,height:o,top:u,left:l}=i.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
50
50
  [data-motion-pop-id="${n}"] {
51
51
  position: absolute !important;
52
52
  width: ${s}px !important;