diff --git a/assets/index-3ec0e52d.js b/assets/index-3ec0e52d.js deleted file mode 100644 index f361aa4..0000000 --- a/assets/index-3ec0e52d.js +++ /dev/null @@ -1,40 +0,0 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hi={exports:{}},el={},Wi={exports:{}},T={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Xt=Symbol.for("react.element"),oc=Symbol.for("react.portal"),uc=Symbol.for("react.fragment"),ic=Symbol.for("react.strict_mode"),sc=Symbol.for("react.profiler"),ac=Symbol.for("react.provider"),cc=Symbol.for("react.context"),fc=Symbol.for("react.forward_ref"),dc=Symbol.for("react.suspense"),pc=Symbol.for("react.memo"),mc=Symbol.for("react.lazy"),Iu=Symbol.iterator;function hc(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var Qi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ki=Object.assign,Yi={};function ot(e,n,t){this.props=e,this.context=n,this.refs=Yi,this.updater=t||Qi}ot.prototype.isReactComponent={};ot.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ot.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xi(){}Xi.prototype=ot.prototype;function $o(e,n,t){this.props=e,this.context=n,this.refs=Yi,this.updater=t||Qi}var Ao=$o.prototype=new Xi;Ao.constructor=$o;Ki(Ao,ot.prototype);Ao.isPureReactComponent=!0;var Du=Array.isArray,Gi=Object.prototype.hasOwnProperty,Vo={current:null},Zi={key:!0,ref:!0,__self:!0,__source:!0};function Ji(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)Gi.call(n,r)&&!Zi.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1>>1,G=x[H];if(0>>1;Hl(gl,z))gnl(er,gl)?(x[H]=er,x[gn]=z,H=gn):(x[H]=gl,x[yn]=z,H=yn);else if(gnl(er,z))x[H]=er,x[gn]=z,H=gn;else break e}}return P}function l(x,P){var z=x.sortIndex-P.sortIndex;return z!==0?z:x.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();e.unstable_now=function(){return u.now()-i}}var s=[],c=[],h=1,m=null,p=3,g=!1,w=!1,k=!1,j=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(x){for(var P=t(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=x)r(c),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(c)}}function v(x){if(k=!1,d(x),!w)if(t(s)!==null)w=!0,vl(E);else{var P=t(c);P!==null&&yl(v,P.startTime-x)}}function E(x,P){w=!1,k&&(k=!1,f(N),N=-1),g=!0;var z=p;try{for(d(P),m=t(s);m!==null&&(!(m.expirationTime>P)||x&&!Ne());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var G=H(m.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?m.callback=G:m===t(s)&&r(s),d(P)}else r(s);m=t(s)}if(m!==null)var bt=!0;else{var yn=t(c);yn!==null&&yl(v,yn.startTime-P),bt=!1}return bt}finally{m=null,p=z,g=!1}}var C=!1,_=null,N=-1,B=5,L=-1;function Ne(){return!(e.unstable_now()-Lx||125H?(x.sortIndex=z,n(c,x),t(s)===null&&x===t(c)&&(k?(f(N),N=-1):k=!0,yl(v,z-H))):(x.sortIndex=G,n(s,x),w||g||(w=!0,vl(E))),x},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(x){var P=p;return function(){var z=p;p=P;try{return x.apply(this,arguments)}finally{p=z}}}})(ns);es.exports=ns;var Pc=es.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ts=Fe,ye=Pc;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,zc=/^[: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]*$/,Fu={},Uu={};function Tc(e){return Kl.call(Uu,e)?!0:Kl.call(Fu,e)?!1:zc.test(e)?Uu[e]=!0:(Fu[e]=!0,!1)}function Lc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rc(e,n,t,r){if(n===null||typeof n>"u"||Lc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function se(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ee[n]=new se(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ee[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ho=/[\-:]([a-z])/g;function Wo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ho,Wo);ee[n]=new se(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ho,Wo);ee[n]=new se(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ho,Wo);ee[n]=new se(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qo(e,n,t,r){var l=ee.hasOwnProperty(n)?ee[n]:null;(l!==null?l.type!==0:r||!(2i||l[u]!==o[i]){var s=` -`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=i);break}}}finally{Sl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?gt(e):""}function Oc(e){switch(e.tag){case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return gt("Suspense");case 19:return gt("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Zl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dn:return"Fragment";case In:return"Portal";case Yl:return"Profiler";case Ko:return"StrictMode";case Xl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case os:return(e.displayName||"Context")+".Consumer";case ls:return(e._context.displayName||"Context")+".Provider";case Yo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xo:return n=e.displayName||null,n!==null?n:Zl(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return Zl(e(n))}catch{}}return null}function Mc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(n);case 8:return n===Ko?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function is(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ic(e){var n=is(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function rr(e){e._valueTracker||(e._valueTracker=Ic(e))}function ss(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=is(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Au(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function as(e,n){n=n.checked,n!=null&&Qo(e,"checked",n,!1)}function ql(e,n){as(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?bl(e,n.type,t):n.hasOwnProperty("defaultValue")&&bl(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Vu(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function bl(e,n,t){(n!=="number"||Lr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var wt=Array.isArray;function Kn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ot(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Et={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dc=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){Dc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Et[n]=Et[e]})});function ps(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Et.hasOwnProperty(e)&&Et[e]?(""+n).trim():n+"px"}function ms(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ps(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var jc=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function to(e,n){if(n){if(jc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function ro(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lo=null;function Go(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oo=null,Yn=null,Xn=null;function Wu(e){if(e=Jt(e)){if(typeof oo!="function")throw Error(y(280));var n=e.stateNode;n&&(n=ol(n),oo(e.stateNode,e.type,n))}}function hs(e){Yn?Xn?Xn.push(e):Xn=[e]:Yn=e}function vs(){if(Yn){var e=Yn,n=Xn;if(Xn=Yn=null,Wu(e),n)for(e=0;e>>=0,e===0?32:31-(Yc(e)/Xc|0)|0}var or=64,ur=4194304;function kt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ir(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=t&268435455;if(u!==0){var i=u&~l;i!==0?r=kt(i):(o&=u,o!==0&&(r=kt(o)))}else u=t&~l,u!==0?r=kt(u):o!==0&&(r=kt(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Gt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Re(n),e[n]=t}function qc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ct),bu=String.fromCharCode(32),ei=!1;function js(e,n){switch(e){case"keyup":return Pf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Tf(e,n){switch(e){case"compositionend":return Fs(n);case"keypress":return n.which!==32?null:(ei=!0,bu);case"textInput":return e=n.data,e===bu&&ei?null:e;default:return null}}function Lf(e,n){if(jn)return e==="compositionend"||!ru&&js(e,n)?(e=Is(),Sr=eu=nn=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=li(t)}}function Vs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Bs(){for(var e=window,n=Lr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Lr(e.document)}return n}function lu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function $f(e){var n=Bs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Vs(t.ownerDocument.documentElement,t)){if(r!==null&&lu(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=oi(t,o);var u=oi(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Fn=null,fo=null,Nt=null,po=!1;function ui(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;po||Fn==null||Fn!==Lr(r)||(r=Fn,"selectionStart"in r&&lu(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}),Nt&&Ut(Nt,r)||(Nt=r,r=Fr(fo,"onSelect"),0An||(e.current=wo[An],wo[An]=null,An--)}function M(e,n){An++,wo[An]=e.current,e.current=n}var pn={},le=hn(pn),fe=hn(!1),Nn=pn;function bn(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function de(e){return e=e.childContextTypes,e!=null}function $r(){D(fe),D(le)}function pi(e,n,t){if(le.current!==pn)throw Error(y(168));M(le,n),M(fe,t)}function Js(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Mc(e)||"Unknown",l));return A({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Nn=le.current,M(le,e),M(fe,fe.current),!0}function mi(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Js(e,n,Nn),r.__reactInternalMemoizedMergedChildContext=e,D(fe),D(le),M(le,e)):D(fe),M(fe,t)}var Ve=null,ul=!1,jl=!1;function qs(e){Ve===null?Ve=[e]:Ve.push(e)}function Jf(e){ul=!0,qs(e)}function vn(){if(!jl&&Ve!==null){jl=!0;var e=0,n=O;try{var t=Ve;for(O=1;e>=u,l-=u,Be=1<<32-Re(n)+l|t<N?(B=_,_=null):B=_.sibling;var L=p(f,_,d[N],v);if(L===null){_===null&&(_=B);break}e&&_&&L.alternate===null&&n(f,_),a=o(L,a,N),C===null?E=L:C.sibling=L,C=L,_=B}if(N===d.length)return t(f,_),F&&wn(f,N),E;if(_===null){for(;NN?(B=_,_=null):B=_.sibling;var Ne=p(f,_,L.value,v);if(Ne===null){_===null&&(_=B);break}e&&_&&Ne.alternate===null&&n(f,_),a=o(Ne,a,N),C===null?E=Ne:C.sibling=Ne,C=Ne,_=B}if(L.done)return t(f,_),F&&wn(f,N),E;if(_===null){for(;!L.done;N++,L=d.next())L=m(f,L.value,v),L!==null&&(a=o(L,a,N),C===null?E=L:C.sibling=L,C=L);return F&&wn(f,N),E}for(_=r(f,_);!L.done;N++,L=d.next())L=g(_,f,N,L.value,v),L!==null&&(e&&L.alternate!==null&&_.delete(L.key===null?N:L.key),a=o(L,a,N),C===null?E=L:C.sibling=L,C=L);return e&&_.forEach(function(st){return n(f,st)}),F&&wn(f,N),E}function j(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Dn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case tr:e:{for(var E=d.key,C=a;C!==null;){if(C.key===E){if(E=d.type,E===Dn){if(C.tag===7){t(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&Si(E)===C.type){t(f,C.sibling),a=l(C,d.props),a.ref=ht(f,C,d),a.return=f,f=a;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===Dn?(a=_n(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Tr(d.type,d.key,d.props,null,f.mode,v),v.ref=ht(f,a,d),v.return=f,f=v)}return u(f);case In:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Wl(d,f.mode,v),a.return=f,f=a}return u(f);case Je:return C=d._init,j(f,a,C(d._payload),v)}if(wt(d))return w(f,a,d,v);if(ct(d))return k(f,a,d,v);pr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Hl(d,f.mode,v),a.return=f,f=a),u(f)):t(f,a)}return j}var nt=ua(!0),ia=ua(!1),qt={},$e=hn(qt),Bt=hn(qt),Ht=hn(qt);function xn(e){if(e===qt)throw Error(y(174));return e}function pu(e,n){switch(M(Ht,n),M(Bt,e),M($e,qt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:no(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=no(n,e)}D($e),M($e,n)}function tt(){D($e),D(Bt),D(Ht)}function sa(e){xn(Ht.current);var n=xn($e.current),t=no(n,e.type);n!==t&&(M(Bt,e),M($e,t))}function mu(e){Bt.current===e&&(D($e),D(Bt))}var U=hn(0);function Kr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Fl=[];function hu(){for(var e=0;et?t:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),n()}finally{O=t,Ul.transition=r}}function Ca(){return _e().memoizedState}function nd(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},_a(e))Na(n,t);else if(t=ta(e,n,t,r),t!==null){var l=ue();Oe(t,e,r,l),Pa(t,n,r)}}function td(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(_a(e))Na(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var u=n.lastRenderedState,i=o(u,t);if(l.hasEagerState=!0,l.eagerState=i,Me(i,u)){var s=n.interleaved;s===null?(l.next=l,fu(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ta(e,n,l,r),t!==null&&(l=ue(),Oe(t,e,r,l),Pa(t,n,r))}}function _a(e){var n=e.alternate;return e===$||n!==null&&n===$}function Na(e,n){Pt=Yr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Pa(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Jo(e,t)}}var Xr={readContext:Ce,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},rd={readContext:Ce,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:xi,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,_r(4194308,4,wa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return _r(4194308,4,e,n)},useInsertionEffect:function(e,n){return _r(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=nd.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:Ei,useDebugValue:ku,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=Ei(!1),n=e[0];return e=ed.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=$,l=De();if(F){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),J===null)throw Error(y(349));zn&30||fa(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,xi(pa.bind(null,r,o,e),[e]),r.flags|=2048,Kt(9,da.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=De(),n=J.identifierPrefix;if(F){var t=He,r=Be;t=(r&~(1<<32-Re(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Wt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[je]=n,e[Vt]=r,ja(e,n,!1,!1),n.stateNode=e;e:{switch(u=ro(t,r),t){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;llt&&(n.flags|=128,r=!0,vt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Kr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),vt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!F)return te(n),null}else 2*W()-o.renderingStartTime>lt&&t!==1073741824&&(n.flags|=128,r=!0,vt(o,!1),n.lanes=4194304);o.isBackwards?(u.sibling=n.child,n.child=u):(t=o.last,t!==null?t.sibling=u:n.child=u,o.last=u)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=W(),n.sibling=null,t=U.current,M(U,r?t&1|2:t&1),n):(te(n),null);case 22:case 23:return Nu(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?me&1073741824&&(te(n),n.subtreeFlags&6&&(n.flags|=8192)):te(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function fd(e,n){switch(uu(n),n.tag){case 1:return de(n.type)&&$r(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return tt(),D(fe),D(le),hu(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return mu(n),null;case 13:if(D(U),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));et()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return D(U),null;case 4:return tt(),null;case 10:return cu(n.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var hr=!1,re=!1,dd=typeof WeakSet=="function"?WeakSet:Set,S=null;function Wn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Ro(e,n,t){try{t()}catch(r){V(e,n,r)}}var Oi=!1;function pd(e,n){if(mo=Dr,e=Bs(),lu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var u=0,i=-1,s=-1,c=0,h=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(i=u+l),m!==o||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++c===l&&(i=u),p===o&&++h===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=i===-1||s===-1?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ho={focusedElem:e,selectionRange:t},Dr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,j=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:ze(n.type,k),j);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){V(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=Oi,Oi=!1,w}function zt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(n,t,o)}l=l.next}while(l!==r)}}function al(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Oo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function $a(e){var n=e.alternate;n!==null&&(e.alternate=null,$a(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[je],delete n[Vt],delete n[go],delete n[Gf],delete n[Zf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Aa(e){return e.tag===5||e.tag===3||e.tag===4}function Mi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Aa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,n,t),e=e.sibling;e!==null;)Mo(e,n,t),e=e.sibling}function Io(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Io(e,n,t),e=e.sibling;e!==null;)Io(e,n,t),e=e.sibling}var q=null,Te=!1;function Ze(e,n,t){for(t=t.child;t!==null;)Va(e,n,t),t=t.sibling}function Va(e,n,t){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(nl,t)}catch{}switch(t.tag){case 5:re||Wn(t,n);case 6:var r=q,l=Te;q=null,Ze(e,n,t),q=r,Te=l,q!==null&&(Te?(e=q,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):q.removeChild(t.stateNode));break;case 18:q!==null&&(Te?(e=q,t=t.stateNode,e.nodeType===8?Dl(e.parentNode,t):e.nodeType===1&&Dl(e,t),jt(e)):Dl(q,t.stateNode));break;case 4:r=q,l=Te,q=t.stateNode.containerInfo,Te=!0,Ze(e,n,t),q=r,Te=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&Ro(t,n,u),l=l.next}while(l!==r)}Ze(e,n,t);break;case 1:if(!re&&(Wn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){V(t,n,i)}Ze(e,n,t);break;case 21:Ze(e,n,t);break;case 22:t.mode&1?(re=(r=re)||t.memoizedState!==null,Ze(e,n,t),re=r):Ze(e,n,t);break;default:Ze(e,n,t)}}function Ii(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new dd),n.forEach(function(r){var l=Ed.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Pe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hd(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Jr=0,R&6)throw Error(y(331));var l=R;for(R|=4,S=e.current;S!==null;){var o=S,u=o.child;if(S.flags&16){var i=o.deletions;if(i!==null){for(var s=0;sW()-Cu?Cn(e,0):xu|=t),pe(e,n)}function Ga(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=ue();e=Ye(e,n),e!==null&&(Gt(e,n,t),pe(e,t))}function Sd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Ga(e,t)}function Ed(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Ga(e,t)}var Za;Za=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||fe.current)ce=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ce=!1,ad(e,n,t);ce=!!(e.flags&131072)}else ce=!1,F&&n.flags&1048576&&bs(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Nr(e,n),e=n.pendingProps;var l=bn(n,le.current);Zn(n,t),l=yu(null,n,r,e,l,t);var o=gu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,de(r)?(o=!0,Ar(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,du(n),l.updater=il,n.stateNode=l,l._reactInternals=n,Co(n,r,e,t),n=Po(null,n,r,!0,o,t)):(n.tag=0,F&&o&&ou(n),oe(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Nr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Cd(r),e=ze(r,e),l){case 0:n=No(null,n,r,e,t);break e;case 1:n=Ti(null,n,r,e,t);break e;case 11:n=Pi(null,n,r,e,t);break e;case 14:n=zi(null,n,r,ze(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),No(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Ti(e,n,r,l,t);case 3:e:{if(Ma(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ra(e,n),Qr(n,r,null,t);var u=n.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=rt(Error(y(423)),n),n=Li(e,n,r,t,l);break e}else if(r!==l){l=rt(Error(y(424)),n),n=Li(e,n,r,t,l);break e}else for(he=un(n.stateNode.containerInfo.firstChild),ve=n,F=!0,Le=null,t=ia(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(et(),r===l){n=Xe(e,n,t);break e}oe(e,n,r,t)}n=n.child}return n;case 5:return sa(n),e===null&&So(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,vo(r,l)?u=null:o!==null&&vo(r,o)&&(n.flags|=32),Oa(e,n),oe(e,n,u,t),n.child;case 6:return e===null&&So(n),null;case 13:return Ia(e,n,t);case 4:return pu(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=nt(n,null,r,t):oe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Pi(e,n,r,l,t);case 7:return oe(e,n,n.pendingProps,t),n.child;case 8:return oe(e,n,n.pendingProps.children,t),n.child;case 12:return oe(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,u=l.value,M(Hr,r._currentValue),r._currentValue=u,o!==null)if(Me(o.value,u)){if(o.children===l.children&&!fe.current){n=Xe(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var i=o.dependencies;if(i!==null){u=o.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Eo(o.return,t,n),i.lanes|=t;break}s=s.next}}else if(o.tag===10)u=o.type===n.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(y(341));u.lanes|=t,i=u.alternate,i!==null&&(i.lanes|=t),Eo(u,t,n),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===n){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}oe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Zn(n,t),l=Ce(l),r=r(l),n.flags|=1,oe(e,n,r,t),n.child;case 14:return r=n.type,l=ze(r,n.pendingProps),l=ze(r.type,l),zi(e,n,r,l,t);case 15:return La(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Nr(e,n),n.tag=1,de(r)?(e=!0,Ar(n)):e=!1,Zn(n,t),oa(n,r,l),Co(n,r,l,t),Po(null,n,r,!0,e,t);case 19:return Da(e,n,t);case 22:return Ra(e,n,t)}throw Error(y(156,n.tag))};function Ja(e,n){return xs(e,n)}function xd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Ee(e,n,t,r){return new xd(e,n,t,r)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cd(e){if(typeof e=="function")return zu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yo)return 11;if(e===Xo)return 14}return 2}function fn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Tr(e,n,t,r,l,o){var u=2;if(r=e,typeof e=="function")zu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Dn:return _n(t.children,l,o,n);case Ko:u=8,l|=8;break;case Yl:return e=Ee(12,t,n,l|2),e.elementType=Yl,e.lanes=o,e;case Xl:return e=Ee(13,t,n,l),e.elementType=Xl,e.lanes=o,e;case Gl:return e=Ee(19,t,n,l),e.elementType=Gl,e.lanes=o,e;case us:return fl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ls:u=10;break e;case os:u=9;break e;case Yo:u=11;break e;case Xo:u=14;break e;case Je:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=Ee(u,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function _n(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function fl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=us,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Wl(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function _d(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Tu(e,n,t,r,l,o,u,i,s){return e=new _d(e,n,t,i,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ee(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},du(o),e}function Nd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nc)}catch(e){console.error(e)}}nc(),bi.exports=ge;var Rd=bi.exports,Bi=Rd;Ql.createRoot=Bi.createRoot,Ql.hydrateRoot=Bi.hydrateRoot;function Od({onSubmit:e}){const[n,t]=Fe.useState("");function r(l){l.preventDefault(),n!==""&&(e(n),t(""))}return Q.jsxs("form",{className:"flex flex-col gap-2 mb-6",onSubmit:r,children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"my-1 block py-0.5 dark:text-white",htmlFor:"item",children:"New Item"}),Q.jsx("input",{className:"w-full rounded-md border-2 border-blue-400 bg-blue-400/50 py-0.5 pl-1.5 text-black shadow shadow-blue-400/40 outline-none transition-all placeholder:text-blue-400 focus:shadow-blue-400/90 dark:text-white",value:n,onChange:l=>t(l.target.value),type:"text",id:"item",placeholder:"add an item"})]}),Q.jsx("button",{className:"select-none rounded-md border-2 border-blue-500 bg-blue-500/50 py-0.5 font-semibold text-blue-500 shadow shadow-blue-500/40 transition-all hover:bg-blue-500/60 hover:shadow-blue-500/90",children:"Add"})]})}function tc({completed:e,id:n,title:t,toggleTodo:r,deleteTodo:l}){return Q.jsxs("li",{className:"flex",children:[Q.jsxs("label",{className:`${e&&"line-through"} mr-2 flex-1 cursor-pointer select-none rounded-md border-2 bg-gray-50 px-2.5 py-0.5 text-black shadow shadow-gray-400/40 transition-all hover:bg-gray-100/80 hover:shadow-gray-400/90 dark:bg-white/30 dark:text-white dark:hover:bg-white/40`,children:[Q.jsx("input",{className:"mr-1.5 cursor-pointer align-baseline",type:"checkbox",checked:e,onChange:o=>r(n,o.target.checked)}),t]}),Q.jsx("button",{className:"h-min select-none self-center rounded-md border-2 border-red-500 bg-red-500/50 px-2.5 py-0.5 text-red-500 shadow shadow-red-500/40 transition-all hover:bg-red-500/60 hover:shadow-red-500/90",onClick:()=>l(n),children:"Delete"})]},n)}function Md({todos:e,toggleTodo:n,deleteTodo:t}){return Q.jsx("ul",{className:"flex flex-col gap-2",children:e.filter(r=>!r.completed).map(r=>Fe.createElement(tc,{...r,key:r.id,toggleTodo:n,deleteTodo:t}))})}function Id({todos:e,toggleTodo:n,deleteTodo:t}){return Q.jsx("ul",{className:"flex flex-col gap-2",children:e.filter(r=>r.completed).map(r=>Fe.createElement(tc,{...r,key:r.id,toggleTodo:n,deleteTodo:t}))})}function Dd(){const[e,n]=Fe.useState(()=>{const i=localStorage.getItem("ITEMS");return i==null?[]:JSON.parse(i)}),t=Fe.useMemo(()=>e.some(i=>i.completed),[e]),r=Fe.useMemo(()=>!e.some(i=>!i.completed),[e]);Fe.useEffect(()=>{localStorage.setItem("ITEMS",JSON.stringify(e))},[e]);function l(i){n(s=>[...s,{id:crypto.randomUUID(),title:i,completed:!1}])}function o(i,s){n(c=>c.map(h=>h.id===i?{...h,completed:s}:h))}function u(i){n(s=>s.filter(c=>c.id!==i))}return Q.jsxs("div",{className:"mx-auto max-w-md p-6",children:[Q.jsx(Od,{onSubmit:l}),Q.jsx("h1",{className:"my-2 text-2xl font-medium dark:text-white",children:"Todo List"}),Q.jsx(Md,{todos:e,toggleTodo:o,deleteTodo:u}),(e.length===0||r)&&Q.jsx("p",{className:"dark:text-white",children:"You have nothing to do"}),t&&Q.jsx("hr",{className:"my-6 h-0.5 rounded border-0 bg-gray-300 dark:bg-gray-600"}),Q.jsx(Id,{todos:e,toggleTodo:o,deleteTodo:u})]})}Ql.createRoot(document.getElementById("root")).render(Q.jsx(kc.StrictMode,{children:Q.jsx(Dd,{})})); diff --git a/assets/index-e0d203c9.js b/assets/index-e0d203c9.js new file mode 100644 index 0000000..df1fa31 --- /dev/null +++ b/assets/index-e0d203c9.js @@ -0,0 +1,48 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function bh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mf={exports:{}},wo={},yf={exports:{}},F={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xr=Symbol.for("react.element"),em=Symbol.for("react.portal"),tm=Symbol.for("react.fragment"),nm=Symbol.for("react.strict_mode"),rm=Symbol.for("react.profiler"),im=Symbol.for("react.provider"),om=Symbol.for("react.context"),sm=Symbol.for("react.forward_ref"),lm=Symbol.for("react.suspense"),am=Symbol.for("react.memo"),um=Symbol.for("react.lazy"),eu=Symbol.iterator;function cm(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}var gf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vf=Object.assign,wf={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=wf,this.updater=n||gf}Jn.prototype.isReactComponent={};Jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sf(){}Sf.prototype=Jn.prototype;function Ol(e,t,n){this.props=e,this.context=t,this.refs=wf,this.updater=n||gf}var jl=Ol.prototype=new Sf;jl.constructor=Ol;vf(jl,Jn.prototype);jl.isPureReactComponent=!0;var tu=Array.isArray,xf=Object.prototype.hasOwnProperty,Il={current:null},kf={key:!0,ref:!0,__self:!0,__source:!0};function Pf(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)xf.call(t,r)&&!kf.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,$=L[A];if(0>>1;Ai(gn,N))Ve<$&&0>i(Yt,gn)?(L[A]=Yt,L[Ve]=N,A=Ve):(L[A]=gn,L[qe]=N,A=qe);else if(Ve<$&&0>i(Yt,N))L[A]=Yt,L[Ve]=N,A=Ve;else break e}}return _}function i(L,_){var N=L.sortIndex-_.sortIndex;return N!==0?N:L.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,m=!1,g=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(L){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=L)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function w(L){if(v=!1,h(L),!g)if(n(a)!==null)g=!0,Oe(S);else{var _=n(u);_!==null&&Je(w,_.startTime-L)}}function S(L,_){g=!1,v&&(v=!1,y(k),k=-1),m=!0;var N=d;try{for(h(_),f=n(a);f!==null&&(!(f.expirationTime>_)||L&&!J());){var A=f.callback;if(typeof A=="function"){f.callback=null,d=f.priorityLevel;var $=A(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(a)&&r(a),h(_)}else r(a);f=n(a)}if(f!==null)var Qt=!0;else{var qe=n(u);qe!==null&&Je(w,qe.startTime-_),Qt=!1}return Qt}finally{f=null,d=N,m=!1}}var T=!1,C=null,k=-1,D=5,R=-1;function J(){return!(e.unstable_now()-RL||125A?(L.sortIndex=N,t(u,L),n(a)===null&&L===n(u)&&(v?(y(k),k=-1):v=!0,Je(w,N-A))):(L.sortIndex=$,t(a,L),g||m||(g=!0,Oe(S))),L},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(L){var _=d;return function(){var N=d;d=_;try{return L.apply(this,arguments)}finally{d=N}}}})(Lf);Ef.exports=Lf;var xm=Ef.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vf=P,Ae=xm;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=Object.prototype.hasOwnProperty,km=/^[: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]*$/,ru={},iu={};function Pm(e){return Ds.call(iu,e)?!0:Ds.call(ru,e)?!1:km.test(e)?iu[e]=!0:(ru[e]=!0,!1)}function Cm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tm(e,t,n,r){if(t===null||typeof t>"u"||Cm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function we(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new we(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ue[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function $l(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ul,$l);ue[t]=new we(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ul,$l);ue[t]=new we(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ul,$l);ue[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hl(e,t,n,r){var i=ue.hasOwnProperty(t)?ue[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` +`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Go=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cr(e):""}function Em(e){switch(e.tag){case 5:return cr(e.type);case 16:return cr("Lazy");case 13:return cr("Suspense");case 19:return cr("SuspenseList");case 0:case 2:case 15:return e=Qo(e.type,!1),e;case 11:return e=Qo(e.type.render,!1),e;case 1:return e=Qo(e.type,!0),e;default:return""}}function Ns(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xn:return"Fragment";case Sn:return"Portal";case Rs:return"Profiler";case Wl:return"StrictMode";case As:return"Suspense";case _s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rf:return(e.displayName||"Context")+".Consumer";case Df:return(e._context.displayName||"Context")+".Provider";case Kl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gl:return t=e.displayName||null,t!==null?t:Ns(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return Ns(e(t))}catch{}}return null}function Lm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ns(t);case 8:return t===Wl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vm(e){var t=_f(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 li(e){e._valueTracker||(e._valueTracker=Vm(e))}function Nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_f(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fs(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function su(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ff(e,t){t=t.checked,t!=null&&Hl(e,"checked",t,!1)}function Os(e,t){Ff(e,t);var n=zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?js(e,t.type,n):t.hasOwnProperty("defaultValue")&&js(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function js(e,t,n){(t!=="number"||Bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fr=Array.isArray;function On(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mm=["Webkit","ms","Moz","O"];Object.keys(mr).forEach(function(e){Mm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]})});function zf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function Bf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Dm=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bs(e,t){if(t){if(Dm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Us(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $s=null;function Ql(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hs=null,jn=null,In=null;function cu(e){if(e=qr(e)){if(typeof Hs!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Co(t),Hs(e.stateNode,e.type,t))}}function Uf(e){jn?In?In.push(e):In=[e]:jn=e}function $f(){if(jn){var e=jn,t=In;if(In=jn=null,cu(e),t)for(e=0;e>>=0,e===0?32:31-(Um(e)/$m|0)|0}var ui=64,ci=4194304;function dr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=dr(l):(o&=s,o!==0&&(r=dr(o)))}else s=n&~i,s!==0?r=dr(s):o!==0&&(r=dr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Zr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function Gm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=gr),wu=String.fromCharCode(32),Su=!1;function ad(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function ky(e,t){switch(e){case"compositionend":return ud(t);case"keypress":return t.which!==32?null:(Su=!0,wu);case"textInput":return e=t.data,e===wu&&Su?null:e;default:return null}}function Py(e,t){if(kn)return e==="compositionend"||!ta&&ad(e,t)?(e=sd(),Mi=ql=Lt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cu(n)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(){for(var e=window,t=Bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bi(e.document)}return t}function na(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 Ay(e){var t=hd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pd(n.ownerDocument.documentElement,n)){if(r!==null&&na(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Tu(n,o);var s=Tu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pn=null,Xs=null,wr=null,Zs=!1;function Eu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zs||Pn==null||Pn!==Bi(r)||(r=Pn,"selectionStart"in r&&na(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}),wr&&Fr(wr,r)||(wr=r,r=Qi(Xs,"onSelect"),0En||(e.current=nl[En],nl[En]=null,En--)}function I(e,t){En++,nl[En]=e.current,e.current=t}var Bt={},he=Wt(Bt),Ce=Wt(!1),an=Bt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Te(e){return e=e.childContextTypes,e!=null}function Xi(){U(Ce),U(he)}function _u(e,t,n){if(he.current!==Bt)throw Error(x(168));I(he,t),I(Ce,n)}function Pd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(x(108,Lm(e)||"Unknown",i));return Y({},n,r)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,an=he.current,I(he,e),I(Ce,Ce.current),!0}function Nu(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Pd(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,U(Ce),U(he),I(he,e)):U(Ce),I(Ce,n)}var lt=null,To=!1,ls=!1;function Cd(e){lt===null?lt=[e]:lt.push(e)}function Wy(e){To=!0,Cd(e)}function Kt(){if(!ls&<!==null){ls=!0;var e=0,t=j;try{var n=lt;for(j=1;e>=s,i-=s,at=1<<32-Ye(t)+i|n<k?(D=C,C=null):D=C.sibling;var R=d(y,C,h[k],w);if(R===null){C===null&&(C=D);break}e&&C&&R.alternate===null&&t(y,C),p=o(R,p,k),T===null?S=R:T.sibling=R,T=R,C=D}if(k===h.length)return n(y,C),W&&Jt(y,k),S;if(C===null){for(;kk?(D=C,C=null):D=C.sibling;var J=d(y,C,R.value,w);if(J===null){C===null&&(C=D);break}e&&C&&J.alternate===null&&t(y,C),p=o(J,p,k),T===null?S=J:T.sibling=J,T=J,C=D}if(R.done)return n(y,C),W&&Jt(y,k),S;if(C===null){for(;!R.done;k++,R=h.next())R=f(y,R.value,w),R!==null&&(p=o(R,p,k),T===null?S=R:T.sibling=R,T=R);return W&&Jt(y,k),S}for(C=r(y,C);!R.done;k++,R=h.next())R=m(C,y,k,R.value,w),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?k:R.key),p=o(R,p,k),T===null?S=R:T.sibling=R,T=R);return e&&C.forEach(function(Se){return t(y,Se)}),W&&Jt(y,k),S}function E(y,p,h,w){if(typeof h=="object"&&h!==null&&h.type===xn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case si:e:{for(var S=h.key,T=p;T!==null;){if(T.key===S){if(S=h.type,S===xn){if(T.tag===7){n(y,T.sibling),p=i(T,h.props.children),p.return=y,y=p;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===kt&&Uu(S)===T.type){n(y,T.sibling),p=i(T,h.props),p.ref=or(y,T,h),p.return=y,y=p;break e}n(y,T);break}else t(y,T);T=T.sibling}h.type===xn?(p=ln(h.props.children,y.mode,w,h.key),p.return=y,y=p):(w=ji(h.type,h.key,h.props,null,y.mode,w),w.ref=or(y,p,h),w.return=y,y=w)}return s(y);case Sn:e:{for(T=h.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(y,p.sibling),p=i(p,h.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=ms(h,y.mode,w),p.return=y,y=p}return s(y);case kt:return T=h._init,E(y,p,T(h._payload),w)}if(fr(h))return g(y,p,h,w);if(er(h))return v(y,p,h,w);gi(y,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(y,p.sibling),p=i(p,h),p.return=y,y=p):(n(y,p),p=hs(h,y.mode,w),p.return=y,y=p),s(y)):n(y,p)}return E}var Kn=Ad(!0),_d=Ad(!1),br={},it=Wt(br),zr=Wt(br),Br=Wt(br);function rn(e){if(e===br)throw Error(x(174));return e}function fa(e,t){switch(I(Br,t),I(zr,e),I(it,br),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zs(t,e)}U(it),I(it,t)}function Gn(){U(it),U(zr),U(Br)}function Nd(e){rn(Br.current);var t=rn(it.current),n=zs(t,e.type);t!==n&&(I(zr,e),I(it,n))}function da(e){zr.current===e&&(U(it),U(zr))}var K=Wt(0);function no(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 as=[];function pa(){for(var e=0;en?n:4,e(!0);var r=us.transition;us.transition={};try{e(!1),t()}finally{j=n,us.transition=r}}function Zd(){return He().memoizedState}function Yy(e,t,n){var r=Ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jd(e))qd(t,n);else if(n=Vd(e,t,n,r),n!==null){var i=ge();Xe(n,e,r,i),bd(n,t,r)}}function Xy(e,t,n){var r=Ft(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jd(e))qd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Ze(l,s)){var a=t.interleaved;a===null?(i.next=i,ua(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Vd(e,t,i,r),n!==null&&(i=ge(),Xe(n,e,r,i),bd(n,t,r))}}function Jd(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function qd(e,t){Sr=ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xl(e,n)}}var io={readContext:$e,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},Zy={readContext:$e,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_i(4194308,4,Kd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){return _i(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yy.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:$u,useDebugValue:va,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=$u(!1),t=e[0];return e=Qy.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=et();if(W){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),se===null)throw Error(x(349));cn&30||jd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Hu(zd.bind(null,r,o,e),[e]),r.flags|=2048,Hr(9,Id.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=et(),t=se.identifierPrefix;if(W){var n=ut,r=at;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[nt]=t,e[Ir]=r,ap(e,t,!1,!1),t.stateNode=e;e:{switch(s=Us(n,r),n){case"dialog":B("cancel",e),B("close",e),i=r;break;case"iframe":case"object":case"embed":B("load",e),i=r;break;case"video":case"audio":for(i=0;iYn&&(t.flags|=128,r=!0,sr(o,!1),t.lanes=4194304)}else{if(!r)if(e=no(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return fe(t),null}else 2*ee()-o.renderingStartTime>Yn&&n!==1073741824&&(t.flags|=128,r=!0,sr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=K.current,I(K,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return Ca(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function ig(e,t){switch(ia(t),t.tag){case 1:return Te(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(),U(Ce),U(he),pa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return da(t),null;case 13:if(U(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(K),null;case 4:return Gn(),null;case 10:return aa(t.type._context),null;case 22:case 23:return Ca(),null;case 24:return null;default:return null}}var wi=!1,pe=!1,og=typeof WeakSet=="function"?WeakSet:Set,V=null;function Dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function hl(e,t,n){try{n()}catch(r){X(e,t,r)}}var qu=!1;function sg(e,t){if(Js=Ki,e=hd(),na(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(qs={focusedElem:e,selectionRange:n},Ki=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,E=g.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ke(t.type,v),E);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(w){X(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return g=qu,qu=!1,g}function xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&hl(t,n,o)}i=i.next}while(i!==r)}}function Vo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ml(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Ir],delete t[tl],delete t[$y],delete t[Hy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dp(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yl(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=Yi));else if(r!==4&&(e=e.child,e!==null))for(yl(e,t,n),e=e.sibling;e!==null;)yl(e,t,n),e=e.sibling}function gl(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&&(e=e.child,e!==null))for(gl(e,t,n),e=e.sibling;e!==null;)gl(e,t,n),e=e.sibling}var le=null,Ge=!1;function St(e,t,n){for(n=n.child;n!==null;)pp(e,t,n),n=n.sibling}function pp(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(So,n)}catch{}switch(n.tag){case 5:pe||Dn(n,t);case 6:var r=le,i=Ge;le=null,St(e,t,n),le=r,Ge=i,le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?ss(e.parentNode,n):e.nodeType===1&&ss(e,n),_r(e)):ss(le,n.stateNode));break;case 4:r=le,i=Ge,le=n.stateNode.containerInfo,Ge=!0,St(e,t,n),le=r,Ge=i;break;case 0:case 11:case 14:case 15:if(!pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&hl(n,t,s),i=i.next}while(i!==r)}St(e,t,n);break;case 1:if(!pe&&(Dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){X(n,t,l)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(pe=(r=pe)||n.memoizedState!==null,St(e,t,n),pe=r):St(e,t,n);break;default:St(e,t,n)}}function ec(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new og),t.forEach(function(r){var i=mg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ag(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,lo=0,O&6)throw Error(x(331));var i=O;for(O|=4,V=e.current;V!==null;){var o=V,s=o.child;if(V.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aee()-ka?sn(e,0):xa|=n),Ee(e,t)}function xp(e,t){t===0&&(e.mode&1?(t=ci,ci<<=1,!(ci&130023424)&&(ci=4194304)):t=1);var n=ge();e=yt(e,t),e!==null&&(Zr(e,t,n),Ee(e,n))}function hg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xp(e,n)}function mg(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;default:throw Error(x(314))}r!==null&&r.delete(t),xp(e,n)}var kp;kp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,ng(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,W&&t.flags&1048576&&Td(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ni(e,t),e=t.pendingProps;var i=Hn(t,he.current);Bn(t,n),i=ma(null,t,r,e,i,n);var o=ya();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Te(r)?(o=!0,Zi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ca(t),i.updater=Eo,t.stateNode=i,i._reactInternals=t,ll(t,r,e,n),t=cl(null,t,r,!0,o,n)):(t.tag=0,W&&o&&ra(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ni(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gg(r),e=Ke(r,e),i){case 0:t=ul(null,t,r,e,n);break e;case 1:t=Xu(null,t,r,e,n);break e;case 11:t=Qu(null,t,r,e,n);break e;case 14:t=Yu(null,t,r,Ke(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),ul(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Xu(e,t,r,i,n);case 3:e:{if(op(t),e===null)throw Error(x(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Md(e,t),to(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Qn(Error(x(423)),t),t=Zu(e,t,r,n,i);break e}else if(r!==i){i=Qn(Error(x(424)),t),t=Zu(e,t,r,n,i);break e}else for(De=At(t.stateNode.containerInfo.firstChild),Re=t,W=!0,Qe=null,n=_d(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===i){t=gt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return Nd(t),e===null&&il(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,bs(r,i)?s=null:o!==null&&bs(r,o)&&(t.flags|=32),ip(e,t),ye(e,t,s,n),t.child;case 6:return e===null&&il(t),null;case 13:return sp(e,t,n);case 4:return fa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Qu(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,I(bi,r._currentValue),r._currentValue=s,o!==null)if(Ze(o.value,s)){if(o.children===i.children&&!Ce.current){t=gt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=ft(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ol(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(x(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ol(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bn(t,n),i=$e(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=Ke(r,t.pendingProps),i=Ke(r.type,i),Yu(e,t,r,i,n);case 15:return np(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Ni(e,t),t.tag=1,Te(r)?(e=!0,Zi(t)):e=!1,Bn(t,n),Rd(t,r,i),ll(t,r,i,n),cl(null,t,r,!0,e,n);case 19:return lp(e,t,n);case 22:return rp(e,t,n)}throw Error(x(156,t.tag))};function Pp(e,t){return Xf(e,t)}function yg(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.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 Be(e,t,n,r){return new yg(e,t,n,r)}function Ea(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gg(e){if(typeof e=="function")return Ea(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kl)return 11;if(e===Gl)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Be(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ji(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ea(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xn:return ln(n.children,i,o,t);case Wl:s=8,i|=8;break;case Rs:return e=Be(12,n,t,i|2),e.elementType=Rs,e.lanes=o,e;case As:return e=Be(13,n,t,i),e.elementType=As,e.lanes=o,e;case _s:return e=Be(19,n,t,i),e.elementType=_s,e.lanes=o,e;case Af:return Do(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Df:s=10;break e;case Rf:s=9;break e;case Kl:s=11;break e;case Gl:s=14;break e;case kt:s=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Be(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ln(e,t,n,r){return e=Be(7,e,r,t),e.lanes=n,e}function Do(e,t,n,r){return e=Be(22,e,r,t),e.elementType=Af,e.lanes=n,e.stateNode={isHidden:!1},e}function hs(e,t,n){return e=Be(6,e,null,t),e.lanes=n,e}function ms(e,t,n){return t=Be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xo(0),this.expirationTimes=Xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function La(e,t,n,r,i,o,s,l,a){return e=new vg(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Be(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ca(o),e}function wg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lp)}catch(e){console.error(e)}}Lp(),Tf.exports=Ne;var Cg=Tf.exports,ac=Cg;Ms.createRoot=ac.createRoot,Ms.hydrateRoot=ac.hydrateRoot;function Tg({onSubmit:e}){const[t,n]=P.useState("");function r(i){i.preventDefault(),t!==""&&(e(t),n(""))}return H.jsxs("form",{className:"flex flex-col gap-2 mb-6",onSubmit:r,children:[H.jsxs("div",{children:[H.jsx("label",{className:"my-1 block py-0.5 dark:text-white",htmlFor:"item",children:"New Item"}),H.jsx("input",{className:"w-full rounded-md border-2 border-blue-400 bg-blue-400/50 py-0.5 pl-1.5 text-black shadow shadow-blue-400/40 outline-none transition-all placeholder:text-blue-400 focus:shadow-blue-400/90 dark:text-white",value:t,onChange:i=>n(i.target.value),type:"text",id:"item",placeholder:"add an item"})]}),H.jsx("button",{className:"select-none rounded-md border-2 border-blue-500 bg-blue-500/50 py-0.5 font-semibold text-blue-500 shadow shadow-blue-500/40 transition-all hover:bg-blue-500/60 hover:shadow-blue-500/90",children:"Add"})]})}const Vp=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fo=P.createContext({}),Oo=P.createContext(null),jo=typeof document<"u",Ra=jo?P.useLayoutEffect:P.useEffect,Mp=P.createContext({strict:!1});function Eg(e,t,n,r){const{visualElement:i}=P.useContext(Fo),o=P.useContext(Mp),s=P.useContext(Oo),l=P.useContext(Vp).reducedMotion,a=P.useRef();r=r||o.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;P.useInsertionEffect(()=>{u&&u.update(n,s)});const c=P.useRef(!!window.HandoffAppearAnimations);return Ra(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),P.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function An(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lg(e,t,n){return P.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):An(n)&&(n.current=r))},[t])}function Kr(e){return typeof e=="string"||Array.isArray(e)}function Io(e){return typeof e=="object"&&typeof e.start=="function"}const Aa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_a=["initial",...Aa];function zo(e){return Io(e.animate)||_a.some(t=>Kr(e[t]))}function Dp(e){return!!(zo(e)||e.variants)}function Vg(e,t){if(zo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kr(n)?n:void 0,animate:Kr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Mg(e){const{initial:t,animate:n}=Vg(e,P.useContext(Fo));return P.useMemo(()=>({initial:t,animate:n}),[uc(t),uc(n)])}function uc(e){return Array.isArray(e)?e.join(" "):e}const cc={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"]},Gr={};for(const e in cc)Gr[e]={isEnabled:t=>cc[e].some(n=>!!t[n])};function Dg(e){for(const t in e)Gr[t]={...Gr[t],...e[t]}}const Qr=P.createContext({}),Rp=P.createContext({}),Rg=Symbol.for("motionComponentSymbol");function Ag({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Dg(e);function o(l,a){let u;const c={...P.useContext(Vp),...l,layoutId:_g(l)},{isStatic:f}=c,d=Mg(l),m=r(l,f);if(!f&&jo){d.visualElement=Eg(i,m,c,t);const g=P.useContext(Rp),v=P.useContext(Mp).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,g))}return P.createElement(Fo.Provider,{value:d},u&&d.visualElement?P.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,Lg(m,d.visualElement,a),m,f,d.visualElement))}const s=P.forwardRef(o);return s[Rg]=i,s}function _g({layoutId:e}){const t=P.useContext(Qr).id;return t&&e!==void 0?t+"-"+e:e}function Ng(e){function t(r,i={}){return Ag(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Fg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Na(e){return typeof e!="string"||e.includes("-")?!1:!!(Fg.indexOf(e)>-1||/[A-Z]/.test(e))}const co={};function Og(e){Object.assign(co,e)}const ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mn=new Set(ei);function Ap(e,{layout:t,layoutId:n}){return mn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!co[e]||e==="opacity")}const Le=e=>!!(e&&e.getVelocity),jg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ig=ei.length;function zg(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Np=_p("--"),kl=_p("var(--"),Bg=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Ug=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ut=(e,t,n)=>Math.min(Math.max(n,e),t),yn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Cr={...yn,transform:e=>Ut(0,1,e)},ki={...yn,default:1},Tr=e=>Math.round(e*1e5)/1e5,Bo=/(-)?([\d]*\.?[\d])+/g,Fp=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$g=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ti(e){return typeof e=="string"}const ni=e=>({test:t=>ti(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xt=ni("deg"),ot=ni("%"),M=ni("px"),Hg=ni("vh"),Wg=ni("vw"),fc={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},dc={...yn,transform:Math.round},Op={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,size:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:ki,scaleX:ki,scaleY:ki,scaleZ:ki,skew:xt,skewX:xt,skewY:xt,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Cr,originX:fc,originY:fc,originZ:M,zIndex:dc,fillOpacity:Cr,strokeOpacity:Cr,numOctaves:dc};function Fa(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(Np(f)){o[f]=d;continue}const m=Op[f],g=Ug(d,m);if(mn.has(f)){if(a=!0,s[f]=g,!c)continue;d!==(m.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=g):i[f]=g}if(t.transform||(a||r?i.transform=zg(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:m=0}=l;i.transformOrigin=`${f} ${d} ${m}`}}const Oa=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jp(e,t,n){for(const r in t)!Le(t[r])&&!Ap(r,n)&&(e[r]=t[r])}function Kg({transformTemplate:e},t,n){return P.useMemo(()=>{const r=Oa();return Fa(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Gg(e,t,n){const r=e.style||{},i={};return jp(i,r,e),Object.assign(i,Kg(e,t,n)),e.transformValues?e.transformValues(i):i}function Qg(e,t,n){const r={},i=Gg(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Yg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function fo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Yg.has(e)}let Ip=e=>!fo(e);function Xg(e){e&&(Ip=t=>t.startsWith("on")?!fo(t):e(t))}try{Xg(require("@emotion/is-prop-valid").default)}catch{}function Zg(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ip(i)||n===!0&&fo(i)||!t&&!fo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function pc(e,t,n){return typeof e=="string"?e:M.transform(t+n*e)}function Jg(e,t,n){const r=pc(t,e.x,e.width),i=pc(n,e.y,e.height);return`${r} ${i}`}const qg={offset:"stroke-dashoffset",array:"stroke-dasharray"},bg={offset:"strokeDashoffset",array:"strokeDasharray"};function e0(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?qg:bg;e[o.offset]=M.transform(-r);const s=M.transform(t),l=M.transform(n);e[o.array]=`${s} ${l}`}function ja(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(Fa(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Jg(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&e0(m,s,l,a,!1)}const zp=()=>({...Oa(),attrs:{}}),Ia=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t0(e,t,n,r){const i=P.useMemo(()=>{const o=zp();return ja(o,t,{enableHardwareAcceleration:!1},Ia(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jp(o,e.style,e),i.style={...o,...i.style}}return i}function n0(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Na(n)?t0:Qg)(r,o,s,n),c={...Zg(r,typeof n=="string",e),...a,ref:i},{children:f}=r,d=P.useMemo(()=>Le(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}const za=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Bp(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Up=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 $p(e,t,n,r){Bp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Up.has(i)?i:za(i),t.attrs[i])}function Ba(e,t){const{style:n}=e,r={};for(const i in n)(Le(n[i])||t.style&&Le(t.style[i])||Ap(i,e))&&(r[i]=n[i]);return r}function Hp(e,t){const n=Ba(e,t);for(const r in e)if(Le(e[r])||Le(t[r])){const i=ei.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Ua(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Wp(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const po=e=>Array.isArray(e),r0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),i0=e=>po(e)?e[e.length-1]||0:e;function Ii(e){const t=Le(e)?e.get():e;return r0(t)?t.toValue():t}function o0({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:s0(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const Kp=e=>(t,n)=>{const r=P.useContext(Fo),i=P.useContext(Oo),o=()=>o0(e,t,r,i);return n?o():Wp(o)};function s0(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ii(o[d]);let{initial:s,animate:l}=e;const a=zo(e),u=Dp(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;return f&&typeof f!="boolean"&&!Io(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{const g=Ua(e,m);if(!g)return;const{transitionEnd:v,transition:E,...y}=g;for(const p in y){let h=y[p];if(Array.isArray(h)){const w=c?h.length-1:0;h=h[w]}h!==null&&(i[p]=h)}for(const p in v)i[p]=v[p]}),i}const Z=e=>e;class hc{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function l0(e){let t=new hc,n=new hc,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.add(a),d.add(a)&&f&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=l0(()=>n=!0),f),{}),s=f=>o[f].process(i),l=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,a0),1),i.timestamp=f,i.isProcessing=!0,Pi.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Pi.reduce((f,d)=>{const m=o[d];return f[d]=(g,v=!1,E=!1)=>(n||a(),m.schedule(g,v,E)),f},{}),cancel:f=>Pi.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:z,cancel:vt,state:de,steps:ys}=u0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Z,!0),c0={useVisualState:Kp({scrapeMotionValuesFromProps:Hp,createRenderState:zp,onMount:(e,t,{renderState:n,latestValues:r})=>{z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),z.render(()=>{ja(n,r,{enableHardwareAcceleration:!1},Ia(t.tagName),e.transformTemplate),$p(t,n)})}})},f0={useVisualState:Kp({scrapeMotionValuesFromProps:Ba,createRenderState:Oa})};function d0(e,{forwardMotionProps:t=!1},n,r){return{...Na(e)?c0:f0,preloadedFeatures:n,useRender:n0(t),createVisualElement:r,Component:e}}function ct(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Gp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Uo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const p0=e=>t=>Gp(t)&&e(t,Uo(t));function dt(e,t,n,r){return ct(e,t,p0(n),r)}const h0=(e,t)=>n=>t(e(n)),jt=(...e)=>e.reduce(h0);function Qp(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const mc=Qp("dragHorizontal"),yc=Qp("dragVertical");function Yp(e){let t=!1;if(e==="y")t=yc();else if(e==="x")t=mc();else{const n=mc(),r=yc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Xp(){const e=Yp(!0);return e?(e(),!1):!0}class Gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function gc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||Xp())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&z.update(()=>l[r](o,s))};return dt(e.current,n,i,{passive:!e.getProps()[r]})}class m0 extends Gt{mount(){this.unmount=jt(gc(this.node,!0),gc(this.node,!1))}unmount(){}}class y0 extends Gt{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=jt(ct(this.node.current,"focus",()=>this.onFocus()),ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zp=(e,t)=>t?e===t?!0:Zp(e,t.parentElement):!1;function gs(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Uo(n))}class g0 extends Gt{constructor(){super(...arguments),this.removeStartListeners=Z,this.removeEndListeners=Z,this.removeAccessibleListeners=Z,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=dt(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();z.update(()=>{Zp(this.node.current,l.target)?u&&u(l,a):c&&c(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=dt(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jt(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||gs("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&z.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",s),gs("down",(l,a)=>{this.startPress(l,a)})},n=ct(this.node.current,"keydown",t),r=()=>{this.isPressing&&gs("cancel",(o,s)=>this.cancelPress(o,s))},i=ct(this.node.current,"blur",r);this.removeAccessibleListeners=jt(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&&z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xp()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=dt(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Pl=new WeakMap,vs=new WeakMap,v0=e=>{const t=Pl.get(e.target);t&&t(e)},w0=e=>{e.forEach(v0)};function S0({root:e,...t}){const n=e||document;vs.has(n)||vs.set(n,{});const r=vs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(w0,{root:e,...t})),r[i]}function x0(e,t,n){const r=S0(t);return Pl.set(e,n),r.observe(e),()=>{Pl.delete(e),r.unobserve(e)}}const k0={some:0,all:1};class P0 extends Gt{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:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:k0[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return x0(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(C0(t,n))&&this.startObserver()}unmount(){}}function C0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const T0={inView:{Feature:P0},tap:{Feature:g0},focus:{Feature:y0},hover:{Feature:m0}};function Jp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function L0(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function $o(e,t,n){const r=e.getProps();return Ua(r,t,n!==void 0?n:r.custom,E0(e),L0(e))}const V0="framerAppearId",M0="data-"+za(V0);let D0=Z,$a=Z;const It=e=>e*1e3,pt=e=>e/1e3,R0={current:!1},qp=e=>Array.isArray(e)&&typeof e[0]=="number";function bp(e){return!!(!e||typeof e=="string"&&eh[e]||qp(e)||Array.isArray(e)&&e.every(bp))}const hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,eh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hr([0,.65,.55,1]),circOut:hr([.55,0,1,.45]),backIn:hr([.31,.01,.66,-.59]),backOut:hr([.33,1.53,.69,.99])};function th(e){if(e)return qp(e)?hr(e):Array.isArray(e)?e.map(th):eh[e]}function A0(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=th(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function _0(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const nh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,N0=1e-7,F0=12;function O0(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=nh(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>N0&&++lO0(o,0,1,e,n);return o=>o===0||o===1?o:nh(i(o),t,r)}const j0=ri(.42,0,1,1),I0=ri(0,0,.58,1),rh=ri(.42,0,.58,1),z0=e=>Array.isArray(e)&&typeof e[0]!="number",ih=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oh=e=>t=>1-e(1-t),sh=e=>1-Math.sin(Math.acos(e)),Ha=oh(sh),B0=ih(Ha),lh=ri(.33,1.53,.69,.99),Wa=oh(lh),U0=ih(Wa),$0=e=>(e*=2)<1?.5*Wa(e):.5*(2-Math.pow(2,-10*(e-1))),H0={linear:Z,easeIn:j0,easeInOut:rh,easeOut:I0,circIn:sh,circInOut:B0,circOut:Ha,backIn:Wa,backInOut:U0,backOut:lh,anticipate:$0},vc=e=>{if(Array.isArray(e)){$a(e.length===4);const[t,n,r,i]=e;return ri(t,n,r,i)}else if(typeof e=="string")return H0[e];return e},Ka=(e,t)=>n=>!!(ti(n)&&$g.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ah=(e,t,n)=>r=>{if(!ti(r))return r;const[i,o,s,l]=r.match(Bo);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},W0=e=>Ut(0,255,e),ws={...yn,transform:e=>Math.round(W0(e))},on={test:Ka("rgb","red"),parse:ah("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ws.transform(e)+", "+ws.transform(t)+", "+ws.transform(n)+", "+Tr(Cr.transform(r))+")"};function K0(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 Cl={test:Ka("#"),parse:K0,transform:on.transform},_n={test:Ka("hsl","hue"),parse:ah("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Tr(t))+", "+ot.transform(Tr(n))+", "+Tr(Cr.transform(r))+")"},me={test:e=>on.test(e)||Cl.test(e)||_n.test(e),parse:e=>on.test(e)?on.parse(e):_n.test(e)?_n.parse(e):Cl.parse(e),transform:e=>ti(e)?e:e.hasOwnProperty("red")?on.transform(e):_n.transform(e)},G=(e,t,n)=>-n*e+n*t+e;function Ss(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 G0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=Ss(a,l,e+1/3),o=Ss(a,l,e),s=Ss(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const xs=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Q0=[Cl,on,_n],Y0=e=>Q0.find(t=>t.test(e));function wc(e){const t=Y0(e);let n=t.parse(e);return t===_n&&(n=G0(n)),n}const uh=(e,t)=>{const n=wc(e),r=wc(t),i={...n};return o=>(i.red=xs(n.red,r.red,o),i.green=xs(n.green,r.green,o),i.blue=xs(n.blue,r.blue,o),i.alpha=G(n.alpha,r.alpha,o),on.transform(i))};function X0(e){var t,n;return isNaN(e)&&ti(e)&&(((t=e.match(Bo))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Fp))===null||n===void 0?void 0:n.length)||0)>0}const ch={regex:Bg,countKey:"Vars",token:"${v}",parse:Z},fh={regex:Fp,countKey:"Colors",token:"${c}",parse:me.parse},dh={regex:Bo,countKey:"Numbers",token:"${n}",parse:yn.parse};function ks(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function ho(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ks(n,ch),ks(n,fh),ks(n,dh),n}function ph(e){return ho(e).values}function hh(e){const{values:t,numColors:n,numVars:r,tokenised:i}=ho(e),o=t.length;return s=>{let l=i;for(let a=0;atypeof e=="number"?0:e;function J0(e){const t=ph(e);return hh(e)(t.map(Z0))}const $t={test:X0,parse:ph,createTransformer:hh,getAnimatableNone:J0},mh=(e,t)=>n=>`${n>0?t:e}`;function yh(e,t){return typeof e=="number"?n=>G(e,t,n):me.test(e)?uh(e,t):e.startsWith("var(")?mh(e,t):vh(e,t)}const gh=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>yh(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yh(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},vh=(e,t)=>{const n=$t.createTransformer(t),r=ho(e),i=ho(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?jt(gh(r.values,i.values),n):mh(e,t)},Yr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Sc=(e,t)=>n=>G(e,t,n);function b0(e){return typeof e=="number"?Sc:typeof e=="string"?me.test(e)?uh:vh:Array.isArray(e)?gh:typeof e=="object"?q0:Sc}function ev(e,t,n){const r=[],i=n||b0(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ev(t,r,i),l=s.length,a=u=>{let c=0;if(l>1)for(;ca(Ut(e[0],e[o-1],u)):a}function tv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Yr(0,t,r);e.push(G(n,1,i))}}function nv(e){const t=[0];return tv(t,e.length-1),t}function rv(e,t){return e.map(n=>n*t)}function iv(e,t){return e.map(()=>t||rh).splice(0,e.length-1)}function mo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=z0(r)?r.map(vc):vc(r),o={done:!1,value:t[0]},s=rv(n&&n.length===t.length?n:nv(t),e),l=wh(s,t,{ease:Array.isArray(i)?i:iv(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Sh(e,t){return t?e*(1e3/t):0}const ov=5;function xh(e,t,n){const r=Math.max(t-ov,0);return Sh(n-e(r),t-r)}const Ps=.001,sv=.01,xc=10,lv=.05,av=1;function uv({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;D0(e<=It(xc));let s=1-t;s=Ut(lv,av,s),e=Ut(sv,xc,pt(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,m=Tl(u,s),g=Math.exp(-f);return Ps-d/m*g},o=u=>{const f=u*s*e,d=f*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=Tl(Math.pow(u,2),s);return(-i(u)+Ps>0?-1:1)*((d-m)*g)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Ps+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=fv(i,o,l);if(e=It(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const cv=12;function fv(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function hv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!kc(e,pv)&&kc(e,dv)){const n=uv(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function kh({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:a,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=hv(r),m=c?-pt(c):0,g=a/(2*Math.sqrt(l*u)),v=o-i,E=pt(Math.sqrt(l/u)),y=Math.abs(v)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let p;if(g<1){const h=Tl(E,g);p=w=>{const S=Math.exp(-g*E*w);return o-S*((m+g*E*v)/h*Math.sin(h*w)+v*Math.cos(h*w))}}else if(g===1)p=h=>o-Math.exp(-E*h)*(v+(m+E*v)*h);else{const h=E*Math.sqrt(g*g-1);p=w=>{const S=Math.exp(-g*E*w),T=Math.min(h*w,300);return o-S*((m+g*E*v)*Math.sinh(T)+h*v*Math.cosh(T))/h}}return{calculatedDuration:d&&f||null,next:h=>{const w=p(h);if(d)s.done=h>=f;else{let S=m;h!==0&&(g<1?S=xh(p,h,w):S=0);const T=Math.abs(S)<=n,C=Math.abs(o-w)<=t;s.done=T&&C}return s.value=s.done?o:w,s}}}function Pc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},m=k=>l!==void 0&&ka,g=k=>l===void 0?a:a===void 0||Math.abs(l-k)-v*Math.exp(-k/r),h=k=>y+p(k),w=k=>{const D=p(k),R=h(k);d.done=Math.abs(D)<=u,d.value=d.done?y:R};let S,T;const C=k=>{m(d.value)&&(S=k,T=kh({keyframes:[d.value,g(d.value)],velocity:xh(h,k,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let D=!1;return!T&&S===void 0&&(D=!0,w(k),C(k)),S!==void 0&&k>S?T.next(k-S):(!D&&w(k),d)}}}const mv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>z.update(t,!0),stop:()=>vt(t),now:()=>de.isProcessing?de.timestamp:performance.now()}},Cc=2e4;function Tc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Cc?1/0:t}const yv={decay:Pc,inertia:Pc,tween:mo,keyframes:mo,spring:kh};function yo({autoplay:e=!0,delay:t=0,driver:n=mv,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...d}){let m=1,g=!1,v,E;const y=()=>{E=new Promise(A=>{v=A})};y();let p;const h=yv[i]||mo;let w;h!==mo&&typeof r[0]!="number"&&(w=wh([0,100],r,{clamp:!1}),r=[0,100]);const S=h({...d,keyframes:r});let T;l==="mirror"&&(T=h({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let C="idle",k=null,D=null,R=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=Tc(S));const{calculatedDuration:J}=S;let Se=1/0,xe=1/0;J!==null&&(Se=J+s,xe=Se*(o+1)-s);let q=0;const b=A=>{if(D===null)return;m>0&&(D=Math.min(D,A)),m<0&&(D=Math.min(A-xe/m,D)),k!==null?q=k:q=Math.round(A-D)*m;const $=q-t*(m>=0?1:-1),Qt=m>=0?$<0:$>xe;q=Math.max($,0),C==="finished"&&k===null&&(q=xe);let qe=q,gn=S;if(o){const Ho=q/Se;let ii=Math.floor(Ho),Xt=Ho%1;!Xt&&Ho>=1&&(Xt=1),Xt===1&&ii--,ii=Math.min(ii,o+1);const qa=!!(ii%2);qa&&(l==="reverse"?(Xt=1-Xt,s&&(Xt-=s/Se)):l==="mirror"&&(gn=T));let ba=Ut(0,1,Xt);q>xe&&(ba=l==="reverse"&&qa?1:0),qe=ba*Se}const Ve=Qt?{done:!1,value:r[0]}:gn.next(qe);w&&(Ve.value=w(Ve.value));let{done:Yt}=Ve;!Qt&&J!==null&&(Yt=m>=0?q>=xe:q<=0);const qh=k===null&&(C==="finished"||C==="running"&&Yt);return f&&f(Ve.value),qh&&L(),Ve},Oe=()=>{p&&p.stop(),p=void 0},Je=()=>{C="idle",Oe(),v(),y(),D=R=null},L=()=>{C="finished",c&&c(),Oe(),v()},_=()=>{if(g)return;p||(p=n(b));const A=p.now();a&&a(),k!==null?D=A-k:(!D||C==="finished")&&(D=A),C==="finished"&&y(),R=D,k=null,C="running",p.start()};e&&_();const N={then(A,$){return E.then(A,$)},get time(){return pt(q)},set time(A){A=It(A),q=A,k!==null||!p||m===0?k=A:D=p.now()-A/m},get duration(){const A=S.calculatedDuration===null?Tc(S):S.calculatedDuration;return pt(A)},get speed(){return m},set speed(A){A===m||!p||(m=A,N.time=pt(q))},get state(){return C},play:_,pause:()=>{C="paused",k=q},stop:()=>{g=!0,C!=="idle"&&(C="idle",u&&u(),Je())},cancel:()=>{R!==null&&b(R),Je()},complete:()=>{C="finished"},sample:A=>(D=0,b(A))};return N}function gv(e){let t;return()=>(t===void 0&&(t=e()),t)}const vv=gv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ci=10,Sv=2e4,xv=(e,t)=>t.type==="spring"||e==="backgroundColor"||!bp(t.ease);function kv(e,t,{onUpdate:n,onComplete:r,...i}){if(!(vv()&&wv.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a;const u=()=>{a=new Promise(p=>{l=p})};u();let{keyframes:c,duration:f=300,ease:d,times:m}=i;if(xv(t,i)){const p=yo({...i,repeat:0,delay:0});let h={done:!1,value:c[0]};const w=[];let S=0;for(;!h.done&&Sg.cancel(),E=()=>{z.update(v),l(),u()};return g.onfinish=()=>{e.set(_0(c,i)),r&&r(),E()},{then(p,h){return a.then(p,h)},attachTimeline(p){return g.timeline=p,g.onfinish=null,Z},get time(){return pt(g.currentTime||0)},set time(p){g.currentTime=It(p)},get speed(){return g.playbackRate},set speed(p){g.playbackRate=p},get duration(){return pt(f)},play:()=>{s||(g.play(),vt(v))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:p}=g;if(p){const h=yo({...i,autoplay:!1});e.setWithVelocity(h.sample(p-Ci).value,h.sample(p).value,Ci)}E()},complete:()=>g.finish(),cancel:E}}function Pv({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Z,pause:Z,stop:Z,then:o=>(o(),Promise.resolve()),cancel:Z,complete:Z});return t?yo({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Cv={type:"spring",stiffness:500,damping:25,restSpeed:10},Tv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ev={type:"keyframes",duration:.8},Lv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vv=(e,{keyframes:t})=>t.length>2?Ev:mn.has(e)?e.startsWith("scale")?Tv(t[1]):Cv:Lv,El=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($t.test(t)||t==="0")&&!t.startsWith("url(")),Mv=new Set(["brightness","contrast","saturate","opacity"]);function Dv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bo)||[];if(!r)return e;const i=n.replace(r,"");let o=Mv.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Rv=/([a-z-]*)\(.*?\)/g,Ll={...$t,getAnimatableNone:e=>{const t=e.match(Rv);return t?t.map(Dv).join(" "):e}},Av={...Op,color:me,backgroundColor:me,outlineColor:me,fill:me,stroke:me,borderColor:me,borderTopColor:me,borderRightColor:me,borderBottomColor:me,borderLeftColor:me,filter:Ll,WebkitFilter:Ll},Ga=e=>Av[e];function Ph(e,t){let n=Ga(e);return n!==Ll&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ch=e=>/^0[^.\s]+$/.test(e);function _v(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ch(e)}function Nv(e,t,n,r){const i=El(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;ui=>{const o=Th(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-It(s);const a=Nv(t,e,n,o),u=a[0],c=a[a.length-1],f=El(e,u),d=El(e,c);let m={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Fv(o)||(m={...m,...Vv(e,m)}),m.duration&&(m.duration=It(m.duration)),m.repeatDelay&&(m.repeatDelay=It(m.repeatDelay)),!f||!d||R0.current||o.type===!1)return Pv(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=kv(t,e,m);if(g)return g}return yo(m)};function go(e){return!!(Le(e)&&e.add)}const Eh=e=>/^\-?\d*\.?\d+$/.test(e);function Ya(e,t){e.indexOf(t)===-1&&e.push(t)}function Xa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Za{constructor(){this.subscriptions=[]}add(t){return Ya(this.subscriptions,t),()=>Xa(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 o=0;o!isNaN(parseFloat(e));class jv{constructor(t,n={}){this.version="10.16.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=de;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Ov(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Za);const r=this.events[t].add(n);return t==="change"?()=>{r(),z.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=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Sh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 Xn(e,t){return new jv(e,t)}const Lh=e=>t=>t.test(e),Iv={test:e=>e==="auto",parse:e=>e},Vh=[yn,M,ot,xt,Wg,Hg,Iv],ar=e=>Vh.find(Lh(e)),zv=[...Vh,me,$t],Bv=e=>zv.find(Lh(e));function Uv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xn(n))}function $v(e,t){const n=$o(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=i0(o[s]);Uv(e,s,l)}}function Hv(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;la.remove(f))),u.push(v)}return s&&Promise.all(u).then(()=>{s&&$v(e,s)}),u}function Vl(e,t,n={}){const r=$o(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Mh(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Qv(e,t,u+a,c,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[o,s]:[s,o];return a().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function Qv(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Yv).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Vl(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Yv(e,t){return e.sortNodePosition(t)}function Xv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Vl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Vl(e,t,n);else{const i=typeof t=="function"?$o(e,t,n.custom):t;r=Promise.all(Mh(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Zv=[...Aa].reverse(),Jv=Aa.length;function qv(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Xv(e,n,r)))}function bv(e){let t=qv(e);const n=t1();let r=!0;const i=(a,u)=>{const c=$o(e,u);if(c){const{transition:f,transitionEnd:d,...m}=c;a={...a,...m,...d}}return a};function o(a){t=a(e)}function s(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],m=new Set;let g={},v=1/0;for(let y=0;yv&&S;const R=Array.isArray(w)?w:[w];let J=R.reduce(i,{});T===!1&&(J={});const{prevResolvedValues:Se={}}=h,xe={...Se,...J},q=b=>{D=!0,m.delete(b),h.needsAnimating[b]=!0};for(const b in xe){const Oe=J[b],Je=Se[b];g.hasOwnProperty(b)||(Oe!==Je?po(Oe)&&po(Je)?!Jp(Oe,Je)||k?q(b):h.protectedKeys[b]=!0:Oe!==void 0?q(b):m.add(b):Oe!==void 0&&m.has(b)?q(b):h.protectedKeys[b]=!0)}h.prevProp=w,h.prevResolvedValues=J,h.isActive&&(g={...g,...J}),r&&e.blockInitialAnimation&&(D=!1),D&&!C&&d.push(...R.map(b=>({animation:b,options:{type:p,...a}})))}if(m.size){const y={};m.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(y[p]=h)}),d.push({animation:y})}let E=!!d.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(d):Promise.resolve()}function l(a,u,c){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const d=s(c,a);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function e1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Jp(t,e):!1}function Zt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t1(){return{animate:Zt(!0),whileInView:Zt(),whileHover:Zt(),whileTap:Zt(),whileDrag:Zt(),whileFocus:Zt(),exit:Zt()}}class n1 extends Gt{constructor(t){super(t),t.animationState||(t.animationState=bv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Io(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let r1=0;class i1 extends Gt{constructor(){super(...arguments),this.id=r1++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const o1={animation:{Feature:n1},exit:{Feature:i1}},Ec=(e,t)=>Math.abs(e-t);function s1(e,t){const n=Ec(e.x,t.x),r=Ec(e.y,t.y);return Math.sqrt(n**2+r**2)}class Dh{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Ts(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=s1(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:m}=de;this.history.push({...d,timestamp:m});const{onStart:g,onMove:v}=this.handlers;c||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Cs(c,this.transformPagePoint),z.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,m=Ts(u.type==="pointercancel"?this.lastMoveEventInfo:Cs(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,m),d&&d(u,m)},!Gp(t))return;this.handlers=n,this.transformPagePoint=r;const i=Uo(t),o=Cs(i,this.transformPagePoint),{point:s}=o,{timestamp:l}=de;this.history=[{...s,timestamp:l}];const{onSessionStart:a}=n;a&&a(t,Ts(o,this.history)),this.removeListeners=jt(dt(window,"pointermove",this.handlePointerMove),dt(window,"pointerup",this.handlePointerUp),dt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),vt(this.updatePoint)}}function Cs(e,t){return t?{point:t(e.point)}:e}function Lc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ts({point:e},t){return{point:e,delta:Lc(e,Rh(t)),offset:Lc(e,l1(t)),velocity:a1(t,.1)}}function l1(e){return e[0]}function Rh(e){return e[e.length-1]}function a1(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Rh(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>It(t)));)n--;if(!r)return{x:0,y:0};const o=pt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function _e(e){return e.max-e.min}function Ml(e,t=0,n=.01){return Math.abs(e-t)<=n}function Vc(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=_e(n)/_e(t),(Ml(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(Ml(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Er(e,t,n,r){Vc(e.x,t.x,n.x,r?r.originX:void 0),Vc(e.y,t.y,n.y,r?r.originY:void 0)}function Mc(e,t,n){e.min=n.min+t.min,e.max=e.min+_e(t)}function u1(e,t,n){Mc(e.x,t.x,n.x),Mc(e.y,t.y,n.y)}function Dc(e,t,n){e.min=t.min-n.min,e.max=e.min+_e(t)}function Lr(e,t,n){Dc(e.x,t.x,n.x),Dc(e.y,t.y,n.y)}function c1(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Rc(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 f1(e,{top:t,left:n,bottom:r,right:i}){return{x:Rc(e.x,n,i),y:Rc(e.y,t,r)}}function Ac(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Yr(t.min,t.max-r,e.min):r>i&&(n=Yr(e.min,e.max-i,t.min)),Ut(0,1,n)}function h1(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 Dl=.35;function m1(e=Dl){return e===!1?e=0:e===!0&&(e=Dl),{x:_c(e,"left","right"),y:_c(e,"top","bottom")}}function _c(e,t,n){return{min:Nc(e,t),max:Nc(e,n)}}function Nc(e,t){return typeof e=="number"?e:e[t]||0}const Fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nn=()=>({x:Fc(),y:Fc()}),Oc=()=>({min:0,max:0}),te=()=>({x:Oc(),y:Oc()});function tt(e){return[e("x"),e("y")]}function Ah({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function y1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function g1(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 Es(e){return e===void 0||e===1}function Rl({scale:e,scaleX:t,scaleY:n}){return!Es(e)||!Es(t)||!Es(n)}function bt(e){return Rl(e)||_h(e)||e.z||e.rotate||e.rotateX||e.rotateY}function _h(e){return jc(e.x)||jc(e.y)}function jc(e){return e&&e!=="0%"}function vo(e,t,n){const r=e-n,i=t*r;return n+i}function Ic(e,t,n,r,i){return i!==void 0&&(e=vo(e,i,r)),vo(e,n,r)+t}function Al(e,t=0,n=1,r,i){e.min=Ic(e.min,t,n,r,i),e.max=Ic(e.max,t,n,r,i)}function Nh(e,{x:t,y:n}){Al(e.x,t.translate,t.scale,t.originPoint),Al(e.y,n.translate,n.scale,n.originPoint)}function v1(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l1.0000000000001||e<.999999999999?e:1}function Ct(e,t){e.min=e.min+t,e.max=e.max+t}function Bc(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=G(e.min,e.max,o);Al(e,t[n],t[r],s,t.scale)}const w1=["x","scaleX","originX"],S1=["y","scaleY","originY"];function Fn(e,t){Bc(e.x,t,w1),Bc(e.y,t,S1)}function Fh(e,t){return Ah(g1(e.getBoundingClientRect(),t))}function x1(e,t,n){const r=Fh(e,n),{scroll:i}=t;return i&&(Ct(r.x,i.offset.x),Ct(r.y,i.offset.y)),r}const k1=new WeakMap;class P1{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=te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=a=>{this.stopAnimation(),n&&this.snapToCursor(Uo(a,"page").point)},o=(a,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Yp(c),!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),tt(g=>{let v=this.getAxisMotionValue(g).get()||0;if(ot.test(v)){const{projection:E}=this.visualElement;if(E&&E.layout){const y=E.layout.layoutBox[g];y&&(v=_e(y)*(parseFloat(v)/100))}}this.originPoint[g]=v}),d&&z.update(()=>d(a,u),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(a,u)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:m}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=u;if(f&&this.currentDirection===null){this.currentDirection=C1(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),m&&m(a,u)},l=(a,u)=>this.stop(a,u);this.panSession=new Dh(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&z.update(()=>o(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||!Ti(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=c1(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&An(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=f1(r.layoutBox,t):this.constraints=!1,this.elastic=m1(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tt(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=h1(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!An(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=x1(r,i.root,this.visualElement.getTransformPagePoint());let s=d1(i.layout.layoutBox,o);if(n){const l=n(y1(s));this.hasMutatedConstraints=!!l,l&&(s=Ah(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=tt(c=>{if(!Ti(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Qa(t,r,0,n))}stopAnimation(){tt(t=>this.getAxisMotionValue(t).stop())}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){tt(n=>{const{drag:r}=this.getProps();if(!Ti(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-G(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!An(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tt(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=p1({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tt(s=>{if(!Ti(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(G(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;k1.set(this.visualElement,this);const t=this.visualElement.current,n=dt(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();An(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ct(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(tt(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Dl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Ti(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C1(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T1 extends Gt{constructor(t){super(t),this.removeGroupControls=Z,this.removeListeners=Z,this.controls=new P1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z}unmount(){this.removeGroupControls(),this.removeListeners()}}const Uc=e=>(t,n)=>{e&&z.update(()=>e(t,n))};class E1 extends Gt{constructor(){super(...arguments),this.removePointerDownListener=Z}onPointerDown(t){this.session=new Dh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Uc(t),onStart:Uc(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&z.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=dt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function L1(){const e=P.useContext(Oo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=P.useId();return P.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const zi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $c(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ur={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=$c(e,t.target.x),r=$c(e,t.target.y);return`${n}% ${r}%`}},V1={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$t.parse(e);if(i.length>5)return r;const o=$t.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=G(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class M1 extends Bl.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Og(D1),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),zi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||z.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!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 Oh(e){const[t,n]=L1(),r=P.useContext(Qr);return Bl.createElement(M1,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(Rp),isPresent:t,safeToRemove:n})}const D1={borderRadius:{...ur,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ur,borderTopRightRadius:ur,borderBottomLeftRadius:ur,borderBottomRightRadius:ur,boxShadow:V1},jh=["TopLeft","TopRight","BottomLeft","BottomRight"],R1=jh.length,Hc=e=>typeof e=="string"?parseFloat(e):e,Wc=e=>typeof e=="number"||M.test(e);function A1(e,t,n,r,i,o){i?(e.opacity=G(0,n.opacity!==void 0?n.opacity:1,_1(r)),e.opacityExit=G(t.opacity!==void 0?t.opacity:1,0,N1(r))):o&&(e.opacity=G(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Yr(e,t,r))}function Gc(e,t){e.min=t.min,e.max=t.max}function je(e,t){Gc(e.x,t.x),Gc(e.y,t.y)}function Qc(e,t,n,r,i){return e-=t,e=vo(e,1/n,r),i!==void 0&&(e=vo(e,1/i,r)),e}function F1(e,t=0,n=1,r=.5,i,o=e,s=e){if(ot.test(t)&&(t=parseFloat(t),t=G(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=G(o.min,o.max,r);e===o&&(l-=t),e.min=Qc(e.min,t,n,l,i),e.max=Qc(e.max,t,n,l,i)}function Yc(e,t,[n,r,i],o,s){F1(e,t[n],t[r],t[i],t.scale,o,s)}const O1=["x","scaleX","originX"],j1=["y","scaleY","originY"];function Xc(e,t,n,r){Yc(e.x,t,O1,n?n.x:void 0,r?r.x:void 0),Yc(e.y,t,j1,n?n.y:void 0,r?r.y:void 0)}function Zc(e){return e.translate===0&&e.scale===1}function zh(e){return Zc(e.x)&&Zc(e.y)}function I1(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Bh(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Jc(e){return _e(e.x)/_e(e.y)}class z1{constructor(){this.members=[]}add(t){Ya(this.members,t),t.scheduleRender()}remove(t){if(Xa(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 qc(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const B1=(e,t)=>e.depth-t.depth;class U1{constructor(){this.children=[],this.isDirty=!1}add(t){Ya(this.children,t),this.isDirty=!0}remove(t){Xa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B1),this.isDirty=!1,this.children.forEach(t)}}function $1(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(vt(r),e(o-t))};return z.read(r,!0),()=>vt(r)}function H1(e){window.MotionDebug&&window.MotionDebug.record(e)}function W1(e){return e instanceof SVGElement&&e.tagName!=="svg"}function K1(e,t,n){const r=Le(e)?e:Xn(e);return r.start(Qa("",r,t,n)),r.animation}const bc=["","X","Y","Z"],ef=1e3;let G1=0;const en={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Uh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=G1++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{en.totalNodes=en.resolvedTargetDeltas=en.recalculatedProjection=0,this.nodes.forEach(X1),this.nodes.forEach(ew),this.nodes.forEach(tw),this.nodes.forEach(Z1),H1(en)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=$1(d,250),zi.hasAnimatedSinceResize&&(zi.hasAnimatedSinceResize=!1,this.nodes.forEach(nf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||sw,{onLayoutAnimationStart:E,onLayoutAnimationComplete:y}=c.getProps(),p=!this.targetLayout||!Bh(this.targetLayout,g)||m,h=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,h);const w={...Th(v,"layout"),onPlay:E,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||nf(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,vt(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(nw),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(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(J1),this.sharedNodes.forEach(rw)}scheduleUpdateProjection(){z.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){z.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 a=0;a{const S=w/1e3;rf(f.x,s.x,S),rf(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iw(this.relativeTarget,this.relativeTargetOrigin,d,S),h&&I1(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=te()),je(h,this.relativeTarget)),v&&(this.animationValues=c,A1(c,u,this.latestValues,S,p,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&(vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{zi.hasAnimatedSinceResize=!0,this.currentAnimation=K1(0,ef,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},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(ef),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&$h(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||te();const f=_e(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=_e(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}je(l,a),Fn(l,c),Er(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new z1),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(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:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let c=0;c{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(tf),this.root.sharedNodes.clear()}}}function Q1(e){e.updateLayout()}function Y1(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:o}=e.options,s=n.source!==e.layout.source;o==="size"?tt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=_e(d);d.min=r[f].min,d.max=d.min+m}):$h(o,n.layoutBox,r)&&tt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=_e(r[f]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const l=Nn();Er(l,r,n.layoutBox);const a=Nn();s?Er(a,e.applyTransform(i,!0),n.measuredBox):Er(a,r,n.layoutBox);const u=!zh(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:m}=f;if(d&&m){const g=te();Lr(g,n.layoutBox,d.layoutBox);const v=te();Lr(v,r,m.layoutBox),Bh(g,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X1(e){en.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 Z1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J1(e){e.clearSnapshot()}function tf(e){e.clearMeasurements()}function q1(e){e.isLayoutDirty=!1}function b1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ew(e){e.resolveTargetDelta()}function tw(e){e.calcProjection()}function nw(e){e.resetRotation()}function rw(e){e.removeLeadSnapshot()}function rf(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function of(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function iw(e,t,n,r){of(e.x,t.x,n.x,r),of(e.y,t.y,n.y,r)}function ow(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sw={duration:.45,ease:[.4,0,.1,1]},sf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),lf=sf("applewebkit/")&&!sf("chrome/")?Math.round:Z;function af(e){e.min=lf(e.min),e.max=lf(e.max)}function lw(e){af(e.x),af(e.y)}function $h(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ml(Jc(t),Jc(n),.2)}const aw=Uh({attachResizeListener:(e,t)=>ct(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ls={current:void 0},Hh=Uh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ls.current){const e=new aw({});e.mount(window),e.setOptions({layoutScroll:!0}),Ls.current=e}return Ls.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),uw={pan:{Feature:E1},drag:{Feature:T1,ProjectionNode:Hh,MeasureLayout:Oh}},cw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fw(e){const t=cw.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function _l(e,t,n=1){const[r,i]=fw(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Eh(s)?parseFloat(s):s}else return kl(i)?_l(i,t,n+1):i}function dw(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!kl(o))return;const s=_l(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!kl(o))continue;const s=_l(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const pw=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wh=e=>pw.has(e),hw=e=>Object.keys(e).some(Wh),uf=e=>e===yn||e===M,cf=(e,t)=>parseFloat(e.split(", ")[t]),ff=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return cf(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?cf(o[1],e):0}},mw=new Set(["x","y","z"]),yw=ei.filter(e=>!mw.has(e));function gw(e){const t=[];return yw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Zn={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:ff(4,13),y:ff(5,14)};Zn.translateX=Zn.x;Zn.translateY=Zn.y;const vw=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=Zn[u](r,o)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(l[u]),e[u]=Zn[u](a,o)}),e},ww=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Wh);let o=[],s=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],f=ar(c);const d=t[a];let m;if(po(d)){const g=d.length,v=d[0]===null?1:0;c=d[v],f=ar(c);for(let E=v;E=0?window.pageYOffset:null,u=vw(t,e,l);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),jo&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Sw(e,t,n,r){return hw(t)?ww(e,t,n,r):{target:t,transitionEnd:r}}const xw=(e,t,n,r)=>{const i=dw(e,t,r);return t=i.target,r=i.transitionEnd,Sw(e,t,n,r)},Nl={current:null},Kh={current:!1};function kw(){if(Kh.current=!0,!!jo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nl.current=e.matches;e.addListener(t),t()}else Nl.current=!1}function Pw(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Le(o))e.addValue(i,o),go(r)&&r.add(i);else if(Le(s))e.addValue(i,Xn(o,{owner:e})),go(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Xn(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const df=new WeakMap,Gh=Object.keys(Gr),Cw=Gh.length,pf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tw=_a.length;class Ew{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>z.render(this.render,!1,!0);const{latestValues:l,renderState:a}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=zo(n),this.isVariantNode=Dp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];l[f]!==void 0&&Le(d)&&(d.set(l[f],!1),go(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,df.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)),Kh.current||kw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){df.delete(this.current),this.projection&&this.projection.unmount(),vt(this.notifyUpdate),vt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=mn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;for(let a=0;athis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:m})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(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=Xn(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Ua(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Le(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Za),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Qh extends Ew{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=Kv(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){Hv(this,r,s);const l=xw(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function Lw(e){return window.getComputedStyle(e)}class Vw extends Qh{readValueFromInstance(t,n){if(mn.has(n)){const r=Ga(n);return r&&r.default||0}else{const r=Lw(t),i=(Np(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fh(t,n)}build(t,n,r,i){Fa(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ba(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Bp(t,n,r,i)}}class Mw extends Qh{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mn.has(n)){const r=Ga(n);return r&&r.default||0}return n=Up.has(n)?n:za(n),t.getAttribute(n)}measureInstanceViewportBox(){return te()}scrapeMotionValuesFromProps(t,n){return Hp(t,n)}build(t,n,r,i){ja(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){$p(t,n,r,i)}mount(t){this.isSVGTag=Ia(t.tagName),super.mount(t)}}const Dw=(e,t)=>Na(e)?new Mw(t,{enableHardwareAcceleration:!1}):new Vw(t,{enableHardwareAcceleration:!0}),Rw={layout:{ProjectionNode:Hh,MeasureLayout:Oh}},Aw={...o1,...T0,...uw,...Rw},Fl=Ng((e,t)=>d0(e,t,Aw,Dw));function Yh(){const e=P.useRef(!1);return Ra(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Xh(){const e=Yh(),[t,n]=P.useState(0),r=P.useCallback(()=>{e.current&&n(t+1)},[t]);return[P.useCallback(()=>z.postRender(r),[r]),t]}class _w extends P.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 Nw({children:e,isPresent:t}){const n=P.useId(),r=P.useRef(null),i=P.useRef({width:0,height:0,top:0,left:0});return P.useInsertionEffect(()=>{const{width:o,height:s,top:l,left:a}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${o}px !important; + height: ${s}px !important; + top: ${l}px !important; + left: ${a}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),P.createElement(_w,{isPresent:t,childRef:r,sizeRef:i},P.cloneElement(e,{ref:r}))}const Vs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=Wp(Fw),a=P.useId(),u=P.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:c=>{l.set(c,!0);for(const f of l.values())if(!f)return;r&&r()},register:c=>(l.set(c,!1),()=>l.delete(c))}),o?void 0:[n]);return P.useMemo(()=>{l.forEach((c,f)=>l.set(f,!1))},[n]),P.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=P.createElement(Nw,{isPresent:n},e)),P.createElement(Oo.Provider,{value:u},e)};function Fw(){return new Map}function Ow(e){return P.useEffect(()=>()=>e(),[])}const wn=e=>e.key||"";function jw(e,t){e.forEach(n=>{const r=wn(n);t.set(r,n)})}function Iw(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Ja=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=P.useContext(Qr).forceRender||Xh()[0],a=Yh(),u=Iw(e);let c=u;const f=P.useRef(new Map).current,d=P.useRef(c),m=P.useRef(new Map).current,g=P.useRef(!0);if(Ra(()=>{g.current=!1,jw(u,m),d.current=c}),Ow(()=>{g.current=!0,m.clear(),f.clear()}),g.current)return P.createElement(P.Fragment,null,c.map(p=>P.createElement(Vs,{key:wn(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},p)));c=[...c];const v=d.current.map(wn),E=u.map(wn),y=v.length;for(let p=0;p{if(E.indexOf(h)!==-1)return;const w=m.get(h);if(!w)return;const S=v.indexOf(h);let T=p;if(!T){const C=()=>{m.delete(h),f.delete(h);const k=d.current.findIndex(D=>D.key===h);if(d.current.splice(k,1),!f.size){if(d.current=u,a.current===!1)return;l(),r&&r()}};T=P.createElement(Vs,{key:wn(w),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:o,mode:s},w),f.set(h,T)}c.splice(S,0,T)}),c=c.map(p=>{const h=p.key;return f.has(h)?p:P.createElement(Vs,{key:wn(p),isPresent:!0,presenceAffectsLayout:o,mode:s},p)}),P.createElement(P.Fragment,null,f.size?c:c.map(p=>P.cloneElement(p)))},zw=P.createContext(null),Bw=e=>!e.isLayoutDirty&&e.willUpdate(!1);function hf(){const e=new Set,t=new WeakMap,n=()=>e.forEach(Bw);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}const Zh=e=>e===!0,Uw=e=>Zh(e===!0)||e==="id",$w=({children:e,id:t,inherit:n=!0})=>{const r=P.useContext(Qr),i=P.useContext(zw),[o,s]=Xh(),l=P.useRef(null),a=r.id||i;l.current===null&&(Uw(n)&&a&&(t=t?a+"-"+t:a),l.current={id:t,group:Zh(n)&&r.group||hf()});const u=P.useMemo(()=>({...l.current,forceRender:o}),[s]);return P.createElement(Qr.Provider,{value:u},e)};function Jh({completed:e,id:t,title:n,toggleTodo:r,deleteTodo:i}){return H.jsxs(Fl.li,{layout:!0,className:"flex",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[H.jsxs("label",{className:`${e&&"line-through"} mr-2 flex-1 cursor-pointer select-none rounded-md border-2 bg-gray-50 px-2.5 py-0.5 text-black shadow shadow-gray-400/40 transition-all hover:bg-gray-100/80 hover:shadow-gray-400/90 dark:bg-white/30 dark:text-white dark:hover:bg-white/40`,children:[H.jsx("input",{className:"mr-1.5 cursor-pointer align-baseline",type:"checkbox",checked:e,onChange:o=>r(t,o.target.checked)}),n]}),H.jsx("button",{className:"h-min select-none self-center rounded-md border-2 border-red-500 bg-red-500/50 px-2.5 py-0.5 text-red-500 shadow shadow-red-500/40 transition-all hover:bg-red-500/60 hover:shadow-red-500/90",onClick:()=>i(t),children:"Delete"})]},t)}function Hw({todos:e,toggleTodo:t,deleteTodo:n}){return H.jsx("ul",{className:"flex flex-col gap-2",children:H.jsx(Ja,{children:e.filter(r=>!r.completed).map(r=>P.createElement(Jh,{...r,key:r.id,toggleTodo:t,deleteTodo:n}))})})}function Ww({todos:e,toggleTodo:t,deleteTodo:n}){return H.jsx("ul",{className:"flex flex-col gap-2",children:H.jsx(Ja,{children:e.filter(r=>r.completed).map(r=>P.createElement(Jh,{...r,key:r.id,toggleTodo:t,deleteTodo:n}))})})}function Kw(){const[e,t]=P.useState(()=>{const l=localStorage.getItem("ITEMS");return l==null?[]:JSON.parse(l)}),n=P.useMemo(()=>e.some(l=>l.completed),[e]),r=P.useMemo(()=>!e.some(l=>!l.completed),[e]);P.useEffect(()=>{localStorage.setItem("ITEMS",JSON.stringify(e))},[e]);function i(l){t(a=>[...a,{id:crypto.randomUUID(),title:l,completed:!1}])}function o(l,a){t(u=>u.map(c=>c.id===l?{...c,completed:a}:c))}function s(l){t(a=>a.filter(u=>u.id!==l))}return H.jsxs("div",{className:"mx-auto max-w-md p-6",children:[H.jsx(Tg,{onSubmit:i}),H.jsx("h1",{className:"my-2 text-2xl font-medium dark:text-white",children:"Todo List"}),H.jsxs($w,{className:"flex flex-col",children:[H.jsx(Hw,{todos:e,toggleTodo:o,deleteTodo:s}),(e.length===0||r)&&H.jsx(Ja,{children:H.jsx(Fl.p,{layout:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"dark:text-white",children:"You have nothing to do"})}),n&&H.jsx(Fl.hr,{layout:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"my-6 h-0.5 rounded border-0 bg-gray-300 dark:bg-gray-600"}),H.jsx(Ww,{todos:e,toggleTodo:o,deleteTodo:s})]})]})}Ms.createRoot(document.getElementById("root")).render(H.jsx(Bl.StrictMode,{children:H.jsx(Kw,{})})); diff --git a/index.html b/index.html index c6fef16..aeee9b8 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Todo List - +