From 99b96c01a5e1ec547965bef2b63a739ccc7af9a8 Mon Sep 17 00:00:00 2001 From: Volodymyr Vorobiov Date: Wed, 28 Feb 2024 16:40:29 +0100 Subject: [PATCH] Updates --- assets/index-BMGN21fJ.js | 48 +++++++++++++++++++++++++++++++++++ assets/index-DNJZEG5k.css | 1 + favicon-32x32.png | Bin 0 -> 1063 bytes images/bg-pentagon.svg | 1 + images/bg-triangle.svg | 2 ++ images/icon-close.svg | 1 + images/icon-lizard.svg | 1 + images/icon-paper.svg | 1 + images/icon-rock.svg | 1 + images/icon-scissors.svg | 1 + images/icon-spock.svg | 1 + images/image-rules-bonus.svg | 1 + images/image-rules.svg | 1 + images/logo-bonus.svg | 1 + images/logo.svg | 1 + index.html | 22 ++++++++++++++++ 16 files changed, 84 insertions(+) create mode 100644 assets/index-BMGN21fJ.js create mode 100644 assets/index-DNJZEG5k.css create mode 100644 favicon-32x32.png create mode 100644 images/bg-pentagon.svg create mode 100644 images/bg-triangle.svg create mode 100644 images/icon-close.svg create mode 100644 images/icon-lizard.svg create mode 100644 images/icon-paper.svg create mode 100644 images/icon-rock.svg create mode 100644 images/icon-scissors.svg create mode 100644 images/icon-spock.svg create mode 100644 images/image-rules-bonus.svg create mode 100644 images/image-rules.svg create mode 100644 images/logo-bonus.svg create mode 100644 images/logo.svg create mode 100644 index.html diff --git a/assets/index-BMGN21fJ.js b/assets/index-BMGN21fJ.js new file mode 100644 index 0000000..732b870 --- /dev/null +++ b/assets/index-BMGN21fJ.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 qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wf={exports:{}},ko={},Sf={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 Zr=Symbol.for("react.element"),bh=Symbol.for("react.portal"),em=Symbol.for("react.fragment"),tm=Symbol.for("react.strict_mode"),nm=Symbol.for("react.profiler"),rm=Symbol.for("react.provider"),im=Symbol.for("react.context"),om=Symbol.for("react.forward_ref"),sm=Symbol.for("react.suspense"),lm=Symbol.for("react.memo"),am=Symbol.for("react.lazy"),ru=Symbol.iterator;function um(e){return e===null||typeof e!="object"?null:(e=ru&&e[ru]||e["@@iterator"],typeof e=="function"?e:null)}var Pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kf=Object.assign,Cf={};function qn(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||Pf}qn.prototype.isReactComponent={};qn.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")};qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tf(){}Tf.prototype=qn.prototype;function zl(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||Pf}var Il=zl.prototype=new Tf;Il.constructor=zl;kf(Il,qn.prototype);Il.isPureReactComponent=!0;var iu=Array.isArray,Ef=Object.prototype.hasOwnProperty,Bl={current:null},Vf={key:!0,ref:!0,__self:!0,__source:!0};function Lf(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)Ef.call(t,r)&&!Vf.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,$=V[_];if(0>>1;_i(xn,j))Le<$&&0>i(Yt,xn)?(V[_]=Yt,V[Le]=j,_=Le):(V[_]=xn,V[be]=j,_=be);else if(Le<$&&0>i(Yt,j))V[_]=Yt,V[Le]=j,_=Le;else break e}}return D}function i(V,D){var j=V.sortIndex-D.sortIndex;return j!==0?j:V.id-D.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,y=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,g=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(V){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=V)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function x(V){if(v=!1,h(V),!y)if(n(a)!==null)y=!0,Z(w);else{var D=n(u);D!==null&&Fe(x,D.startTime-V)}}function w(V,D){y=!1,v&&(v=!1,g(P),P=-1),m=!0;var j=d;try{for(h(D),f=n(a);f!==null&&(!(f.expirationTime>D)||V&&!re());){var _=f.callback;if(typeof _=="function"){f.callback=null,d=f.priorityLevel;var $=_(f.expirationTime<=D);D=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(a)&&r(a),h(D)}else r(a);f=n(a)}if(f!==null)var Qt=!0;else{var be=n(u);be!==null&&Fe(x,be.startTime-D),Qt=!1}return Qt}finally{f=null,d=j,m=!1}}var C=!1,T=null,P=-1,M=5,A=-1;function re(){return!(e.unstable_now()-AV||125_?(V.sortIndex=j,t(u,V),n(a)===null&&V===n(u)&&(v?(g(P),P=-1):v=!0,Fe(x,j-_))):(V.sortIndex=$,t(a,V),y||m||(y=!0,Z(w))),V},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(V){var D=d;return function(){var j=d;d=D;try{return V.apply(this,arguments)}finally{d=j}}}})(Df);Af.exports=Df;var wm=Af.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 Nf=E,De=wm;function S(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,Sm=/^[: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]*$/,su={},lu={};function Pm(e){return Ds.call(lu,e)?!0:Ds.call(su,e)?!1:Sm.test(e)?lu[e]=!0:(su[e]=!0,!1)}function km(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 Cm(e,t,n,r){if(t===null||typeof t>"u"||km(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 Se(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 fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[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){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var $l=/[\-:]([a-z])/g;function Wl(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($l,Wl);fe[t]=new Se(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($l,Wl);fe[t]=new Se(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($l,Wl);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hl(e,t,n,r){var i=fe.hasOwnProperty(t)?fe[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{Xo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?dr(e):""}function Tm(e){switch(e.tag){case 5:return dr(e.type);case 16:return dr("Lazy");case 13:return dr("Suspense");case 19:return dr("SuspenseList");case 0:case 2:case 15:return e=Zo(e.type,!1),e;case 11:return e=Zo(e.type.render,!1),e;case 1:return e=Zo(e.type,!0),e;default:return""}}function Fs(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 Pn:return"Fragment";case Sn:return"Portal";case Ns:return"Profiler";case Kl:return"StrictMode";case _s:return"Suspense";case js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ff:return(e.displayName||"Context")+".Consumer";case jf:return(e._context.displayName||"Context")+".Provider";case Gl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ql:return t=e.displayName||null,t!==null?t:Fs(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return Fs(e(t))}catch{}}return null}function Em(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 Fs(t);case 8:return t===Kl?"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 It(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vm(e){var t=zf(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 ai(e){e._valueTracker||(e._valueTracker=Vm(e))}function If(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $i(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 Os(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=It(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 Bf(e,t){t=t.checked,t!=null&&Hl(e,"checked",t,!1)}function zs(e,t){Bf(e,t);var n=It(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")?Is(e,t.type,n):t.hasOwnProperty("defaultValue")&&Is(e,t.type,It(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cu(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 Is(e,t,n){(t!=="number"||$i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pr=Array.isArray;function On(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ar(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yr={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},Lm=["Webkit","ms","Moz","O"];Object.keys(yr).forEach(function(e){Lm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yr[t]=yr[e]})});function Hf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yr.hasOwnProperty(e)&&yr[e]?(""+t).trim():t+"px"}function Kf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Hf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Mm=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 $s(e,t){if(t){if(Mm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Ws(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 Hs=null;function Yl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ks=null,zn=null,In=null;function pu(e){if(e=br(e)){if(typeof Ks!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Lo(t),Ks(e.stateNode,e.type,t))}}function Gf(e){zn?In?In.push(e):In=[e]:zn=e}function Qf(){if(zn){var e=zn,t=In;if(In=zn=null,pu(e),t)for(e=0;e>>=0,e===0?32:31-(Bm(e)/Um|0)|0}var ci=64,fi=4194304;function hr(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 Gi(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=hr(l):(o&=s,o!==0&&(r=hr(o)))}else s=n&~i,s!==0?r=hr(s):o!==0&&(r=hr(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 Jr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function Km(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=xr),Pu=" ",ku=!1;function pd(e,t){switch(e){case"keyup":return xg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function Sg(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(ku=!0,Pu);case"textInput":return e=t.data,e===Pu&&ku?null:e;default:return null}}function Pg(e,t){if(kn)return e==="compositionend"||!na&&pd(e,t)?(e=fd(),Ri=bl=Mt=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=Vu(n)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xd(){for(var e=window,t=$i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$i(e.document)}return t}function ra(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 Ag(e){var t=xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vd(n.ownerDocument.documentElement,n)){if(r!==null&&ra(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=Lu(n,o);var s=Lu(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,Cn=null,Js=null,Sr=null,qs=!1;function Mu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qs||Cn==null||Cn!==$i(r)||(r=Cn,"selectionStart"in r&&ra(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}),Sr&&Or(Sr,r)||(Sr=r,r=Xi(Js,"onSelect"),0Vn||(e.current=il[Vn],il[Vn]=null,Vn--)}function I(e,t){Vn++,il[Vn]=e.current,e.current=t}var Bt={},ge=Ht(Bt),Ce=Ht(!1),fn=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 Ji(){U(Ce),U(ge)}function Fu(e,t,n){if(ge.current!==Bt)throw Error(S(168));I(ge,t),I(Ce,n)}function Ld(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(S(108,Em(e)||"Unknown",i));return Y({},n,r)}function qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,fn=ge.current,I(ge,e),I(Ce,Ce.current),!0}function Ou(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ld(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,U(Ce),U(ge),I(ge,e)):U(Ce),I(Ce,n)}var lt=null,Mo=!1,cs=!1;function Md(e){lt===null?lt=[e]:lt.push(e)}function Wg(e){Mo=!0,Md(e)}function Kt(){if(!cs&<!==null){cs=!0;var e=0,t=z;try{var n=lt;for(z=1;e>=s,i-=s,at=1<<32-Ze(t)+i|n<P?(M=T,T=null):M=T.sibling;var A=d(g,T,h[P],x);if(A===null){T===null&&(T=M);break}e&&T&&A.alternate===null&&t(g,T),p=o(A,p,P),C===null?w=A:C.sibling=A,C=A,T=M}if(P===h.length)return n(g,T),W&&Jt(g,P),w;if(T===null){for(;PP?(M=T,T=null):M=T.sibling;var re=d(g,T,A.value,x);if(re===null){T===null&&(T=M);break}e&&T&&re.alternate===null&&t(g,T),p=o(re,p,P),C===null?w=re:C.sibling=re,C=re,T=M}if(A.done)return n(g,T),W&&Jt(g,P),w;if(T===null){for(;!A.done;P++,A=h.next())A=f(g,A.value,x),A!==null&&(p=o(A,p,P),C===null?w=A:C.sibling=A,C=A);return W&&Jt(g,P),w}for(T=r(g,T);!A.done;P++,A=h.next())A=m(T,g,P,A.value,x),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?P:A.key),p=o(A,p,P),C===null?w=A:C.sibling=A,C=A);return e&&T.forEach(function(le){return t(g,le)}),W&&Jt(g,P),w}function k(g,p,h,x){if(typeof h=="object"&&h!==null&&h.type===Pn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case li:e:{for(var w=h.key,C=p;C!==null;){if(C.key===w){if(w=h.type,w===Pn){if(C.tag===7){n(g,C.sibling),p=i(C,h.props.children),p.return=g,g=p;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ct&&Hu(w)===C.type){n(g,C.sibling),p=i(C,h.props),p.ref=lr(g,C,h),p.return=g,g=p;break e}n(g,C);break}else t(g,C);C=C.sibling}h.type===Pn?(p=an(h.props.children,g.mode,x,h.key),p.return=g,g=p):(x=zi(h.type,h.key,h.props,null,g.mode,x),x.ref=lr(g,p,h),x.return=g,g=x)}return s(g);case Sn:e:{for(C=h.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(g,p.sibling),p=i(p,h.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=vs(h,g.mode,x),p.return=g,g=p}return s(g);case Ct:return C=h._init,k(g,p,C(h._payload),x)}if(pr(h))return y(g,p,h,x);if(nr(h))return v(g,p,h,x);vi(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(g,p.sibling),p=i(p,h),p.return=g,g=p):(n(g,p),p=ys(h,g.mode,x),p.return=g,g=p),s(g)):n(g,p)}return k}var Gn=Od(!0),zd=Od(!1),ei={},it=Ht(ei),Ur=Ht(ei),$r=Ht(ei);function on(e){if(e===ei)throw Error(S(174));return e}function da(e,t){switch(I($r,t),I(Ur,e),I(it,ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Us(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Us(t,e)}U(it),I(it,t)}function Qn(){U(it),U(Ur),U($r)}function Id(e){on($r.current);var t=on(it.current),n=Us(t,e.type);t!==n&&(I(Ur,e),I(it,n))}function pa(e){Ur.current===e&&(U(it),U(Ur))}var K=Ht(0);function io(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 fs=[];function ha(){for(var e=0;en?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{z=n,ds.transition=r}}function tp(){return Ke().memoizedState}function Qg(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},np(e))rp(t,n);else if(n=Nd(e,t,n,r),n!==null){var i=xe();Je(n,e,r,i),ip(n,t,r)}}function Yg(e,t,n){var r=Ot(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(np(e))rp(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,qe(l,s)){var a=t.interleaved;a===null?(i.next=i,ca(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Nd(e,t,i,r),n!==null&&(i=xe(),Je(n,e,r,i),ip(n,t,r))}}function np(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function rp(e,t){Pr=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ip(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zl(e,n)}}var so={readContext:He,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Xg={readContext:He,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:Gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_i(4194308,4,Zd.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=tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tt();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=Qg.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:Ku,useDebugValue:xa,useDeferredValue:function(e){return tt().memoizedState=e},useTransition:function(){var e=Ku(!1),t=e[0];return e=Gg.bind(null,e[1]),tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=tt();if(W){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),se===null)throw Error(S(349));pn&30||$d(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Gu(Hd.bind(null,r,o,e),[e]),r.flags|=2048,Kr(9,Wd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tt(),t=se.identifierPrefix;if(W){var n=ut,r=at;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wr++,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[Br]=r,pp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ws(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;iXn&&(t.flags|=128,r=!0,ar(o,!1),t.lanes=4194304)}else{if(!r)if(e=io(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ar(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return pe(t),null}else 2*q()-o.renderingStartTime>Xn&&n!==1073741824&&(t.flags|=128,r=!0,ar(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=q(),t.sibling=null,n=K.current,I(K,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return Ta(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function ry(e,t){switch(oa(t),t.tag){case 1:return Te(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),U(Ce),U(ge),ha(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pa(t),null;case 13:if(U(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(K),null;case 4:return Qn(),null;case 10:return ua(t.type._context),null;case 22:case 23:return Ta(),null;case 24:return null;default:return null}}var wi=!1,me=!1,iy=typeof WeakSet=="function"?WeakSet:Set,L=null;function An(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 gl(e,t,n){try{n()}catch(r){X(e,t,r)}}var tc=!1;function oy(e,t){if(bs=Qi,e=xd(),ra(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(el={focusedElem:e,selectionRange:n},Qi=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,k=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Qe(t.type,v),k);g.__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(S(163))}}catch(x){X(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=tc,tc=!1,y}function kr(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&&gl(t,n,o)}i=i.next}while(i!==r)}}function Do(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 yl(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 gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Br],delete t[rl],delete t[Ug],delete t[$g])),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 yp(e){return e.tag===5||e.tag===3||e.tag===4}function nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(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 vl(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=Zi));else if(r!==4&&(e=e.child,e!==null))for(vl(e,t,n),e=e.sibling;e!==null;)vl(e,t,n),e=e.sibling}function xl(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(xl(e,t,n),e=e.sibling;e!==null;)xl(e,t,n),e=e.sibling}var ae=null,Ye=!1;function Pt(e,t,n){for(n=n.child;n!==null;)vp(e,t,n),n=n.sibling}function vp(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Co,n)}catch{}switch(n.tag){case 5:me||An(n,t);case 6:var r=ae,i=Ye;ae=null,Pt(e,t,n),ae=r,Ye=i,ae!==null&&(Ye?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Ye?(e=ae,n=n.stateNode,e.nodeType===8?us(e.parentNode,n):e.nodeType===1&&us(e,n),jr(e)):us(ae,n.stateNode));break;case 4:r=ae,i=Ye,ae=n.stateNode.containerInfo,Ye=!0,Pt(e,t,n),ae=r,Ye=i;break;case 0:case 11:case 14:case 15:if(!me&&(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)&&gl(n,t,s),i=i.next}while(i!==r)}Pt(e,t,n);break;case 1:if(!me&&(An(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)}Pt(e,t,n);break;case 21:Pt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,Pt(e,t,n),me=r):Pt(e,t,n);break;default:Pt(e,t,n)}}function rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iy),t.forEach(function(r){var i=hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ly(r/1960))-r,10e?16:e,Rt===null)var r=!1;else{if(e=Rt,Rt=null,uo=0,O&6)throw Error(S(331));var i=O;for(O|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aq()-ka?ln(e,0):Pa|=n),Ee(e,t)}function Ep(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=xe();e=yt(e,t),e!==null&&(Jr(e,t,n),Ee(e,n))}function py(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ep(e,n)}function hy(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(S(314))}r!==null&&r.delete(t),Ep(e,n)}var Vp;Vp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,ty(e,t,n);ke=!!(e.flags&131072)}else ke=!1,W&&t.flags&1048576&&Rd(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ji(e,t),e=t.pendingProps;var i=Hn(t,ge.current);Un(t,n),i=ga(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,qi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fa(t),i.updater=Ro,t.stateNode=i,i._reactInternals=t,ul(t,r,e,n),t=dl(null,t,r,!0,o,n)):(t.tag=0,W&&o&&ia(t),ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gy(r),e=Qe(r,e),i){case 0:t=fl(null,t,r,e,n);break e;case 1:t=qu(null,t,r,e,n);break e;case 11:t=Zu(null,t,r,e,n);break e;case 14:t=Ju(null,t,r,Qe(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),fl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),qu(e,t,r,i,n);case 3:e:{if(cp(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,i=o.element,_d(e,t),ro(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=Yn(Error(S(423)),t),t=bu(e,t,r,n,i);break e}else if(r!==i){i=Yn(Error(S(424)),t),t=bu(e,t,r,n,i);break e}else for(Re=_t(t.stateNode.containerInfo.firstChild),Ae=t,W=!0,Xe=null,n=zd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kn(),r===i){t=vt(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return Id(t),e===null&&sl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,tl(r,i)?s=null:o!==null&&tl(r,o)&&(t.flags|=32),up(e,t),ve(e,t,s,n),t.child;case 6:return e===null&&sl(t),null;case 13:return fp(e,t,n);case 4:return da(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Zu(e,t,r,i,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(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(to,r._currentValue),r._currentValue=s,o!==null)if(qe(o.value,s)){if(o.children===i.children&&!Ce.current){t=vt(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),ll(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(S(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ll(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}ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=He(i),r=r(i),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,i=Qe(r,t.pendingProps),i=Qe(r.type,i),Ju(e,t,r,i,n);case 15:return lp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ji(e,t),t.tag=1,Te(r)?(e=!0,qi(t)):e=!1,Un(t,n),Fd(t,r,i),ul(t,r,i,n),dl(null,t,r,!0,e,n);case 19:return dp(e,t,n);case 22:return ap(e,t,n)}throw Error(S(156,t.tag))};function Lp(e,t){return ed(e,t)}function my(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 $e(e,t,n,r){return new my(e,t,n,r)}function Va(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gy(e){if(typeof e=="function")return Va(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gl)return 11;if(e===Ql)return 14}return 2}function zt(e,t){var n=e.alternate;return n===null?(n=$e(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 zi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Va(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Pn:return an(n.children,i,o,t);case Kl:s=8,i|=8;break;case Ns:return e=$e(12,n,t,i|2),e.elementType=Ns,e.lanes=o,e;case _s:return e=$e(13,n,t,i),e.elementType=_s,e.lanes=o,e;case js:return e=$e(19,n,t,i),e.elementType=js,e.lanes=o,e;case Of:return _o(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jf:s=10;break e;case Ff:s=9;break e;case Gl:s=11;break e;case Ql:s=14;break e;case Ct:s=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=$e(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function _o(e,t,n,r){return e=$e(22,e,r,t),e.elementType=Of,e.lanes=n,e.stateNode={isHidden:!1},e}function ys(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function vs(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(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=qo(0),this.expirationTimes=qo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function La(e,t,n,r,i,o,s,l,a){return e=new yy(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=$e(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fa(o),e}function vy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dp)}catch(e){console.error(e)}}Dp(),Rf.exports=_e;var ky=Rf.exports,fc=ky;As.createRoot=fc.createRoot,As.hydrateRoot=fc.hydrateRoot;function Cy({score:e}){return N.jsxs("header",{className:"mediaHeader flex justify-between items-center gap-10 p-3 border-2 relative rounded-xl mx-auto border-solid border-outlineColor uppercase",children:[N.jsx("div",{children:N.jsxs("h1",{className:"mediaLogo p-2 flex flex-col font-semibold ",children:[N.jsx("span",{className:"block",children:"Rock"}),N.jsx("span",{className:"block",children:"Paper"}),N.jsx("span",{className:"block",children:"Scissors"})]})}),N.jsxs("div",{className:"mediaScoreWrap bg-[white] h-full font-semibold rounded-md flex flex-col items-center justify-center text-scoreColor",children:[N.jsx("p",{className:"mediaScore tracking-[.2em]",children:"Score"}),N.jsx("p",{className:"mediaPoints",children:e})]})]})}const Np=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Io=E.createContext({}),Bo=E.createContext(null),Uo=typeof document<"u",Da=Uo?E.useLayoutEffect:E.useEffect,_p=E.createContext({strict:!1}),Na=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ty="framerAppearId",jp="data-"+Na(Ty),Fp={skipAnimations:!1,useManualTiming:!1};class dc{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 Ey(e){let t=new dc,n=new dc,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]=Ey(()=>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,Vy),1),i.timestamp=f,i.isProcessing=!0,ki.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:ki.reduce((f,d)=>{const m=o[d];return f[d]=(y,v=!1,k=!1)=>(n||a(),m.schedule(y,v,k)),f},{}),cancel:f=>ki.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:_a,cancel:ew}=Op(queueMicrotask,!1);function Ly(e,t,n,r){const{visualElement:i}=E.useContext(Io),o=E.useContext(_p),s=E.useContext(Bo),l=E.useContext(Np).reducedMotion,a=E.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;E.useInsertionEffect(()=>{u&&u.update(n,s)});const c=E.useRef(!!(n[jp]&&!window.HandoffComplete));return Da(()=>{u&&(_a.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Nn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function My(e,t,n){return E.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Nn(n)&&(n.current=r))},[t])}function Qr(e){return typeof e=="string"||Array.isArray(e)}function $o(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ja=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fa=["initial",...ja];function Wo(e){return $o(e.animate)||Fa.some(t=>Qr(e[t]))}function zp(e){return!!(Wo(e)||e.variants)}function Ry(e,t){if(Wo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qr(n)?n:void 0,animate:Qr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ay(e){const{initial:t,animate:n}=Ry(e,E.useContext(Io));return E.useMemo(()=>({initial:t,animate:n}),[pc(t),pc(n)])}function pc(e){return Array.isArray(e)?e.join(" "):e}const hc={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"]},Yr={};for(const e in hc)Yr[e]={isEnabled:t=>hc[e].some(n=>!!t[n])};function Dy(e){for(const t in e)Yr[t]={...Yr[t],...e[t]}}const Oa=E.createContext({}),Ip=E.createContext({}),Ny=Symbol.for("motionComponentSymbol");function _y({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Dy(e);function o(l,a){let u;const c={...E.useContext(Np),...l,layoutId:jy(l)},{isStatic:f}=c,d=Ay(l),m=r(l,f);if(!f&&Uo){d.visualElement=Ly(i,m,c,t);const y=E.useContext(Ip),v=E.useContext(_p).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,y))}return E.createElement(Io.Provider,{value:d},u&&d.visualElement?E.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,My(m,d.visualElement,a),m,f,d.visualElement))}const s=E.forwardRef(o);return s[Ny]=i,s}function jy({layoutId:e}){const t=E.useContext(Oa).id;return t&&e!==void 0?t+"-"+e:e}function Fy(e){function t(r,i={}){return _y(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 Oy=["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 za(e){return typeof e!="string"||e.includes("-")?!1:!!(Oy.indexOf(e)>-1||/[A-Z]/.test(e))}const po={};function zy(e){Object.assign(po,e)}const ti=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vn=new Set(ti);function Bp(e,{layout:t,layoutId:n}){return vn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!po[e]||e==="opacity")}const Ve=e=>!!(e&&e.getVelocity),Iy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},By=ti.length;function Uy(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),$p=Up("--"),$y=Up("var(--"),ho=e=>$y(e)&&Wy.test(e),Wy=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Hy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ut=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Er={...tr,transform:e=>Ut(0,1,e)},Ci={...tr,default:1},Vr=e=>Math.round(e*1e5)/1e5,Ia=/(-)?([\d]*\.?[\d])+/g,Ky=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Gy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ni(e){return typeof e=="string"}const ri=e=>({test:t=>ni(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kt=ri("deg"),ot=ri("%"),R=ri("px"),Qy=ri("vh"),Yy=ri("vw"),mc={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},gc={...tr,transform:Math.round},Wp={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,size:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,rotate:kt,rotateX:kt,rotateY:kt,rotateZ:kt,scale:Ci,scaleX:Ci,scaleY:Ci,scaleZ:Ci,skew:kt,skewX:kt,skewY:kt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Er,originX:mc,originY:mc,originZ:R,zIndex:gc,fillOpacity:Er,strokeOpacity:Er,numOctaves:gc};function Ba(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($p(f)){o[f]=d;continue}const m=Wp[f],y=Hy(d,m);if(vn.has(f)){if(a=!0,s[f]=y,!c)continue;d!==(m.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=y):i[f]=y}if(t.transform||(a||r?i.transform=Uy(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 Ua=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hp(e,t,n){for(const r in t)!Ve(t[r])&&!Bp(r,n)&&(e[r]=t[r])}function Xy({transformTemplate:e},t,n){return E.useMemo(()=>{const r=Ua();return Ba(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Zy(e,t,n){const r=e.style||{},i={};return Hp(i,r,e),Object.assign(i,Xy(e,t,n)),i}function Jy(e,t,n){const r={},i=Zy(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 qy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function mo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qy.has(e)}let Kp=e=>!mo(e);function by(e){e&&(Kp=t=>t.startsWith("on")?!mo(t):e(t))}try{by(require("@emotion/is-prop-valid").default)}catch{}function ev(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Kp(i)||n===!0&&mo(i)||!t&&!mo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yc(e,t,n){return typeof e=="string"?e:R.transform(t+n*e)}function tv(e,t,n){const r=yc(t,e.x,e.width),i=yc(n,e.y,e.height);return`${r} ${i}`}const nv={offset:"stroke-dashoffset",array:"stroke-dasharray"},rv={offset:"strokeDashoffset",array:"strokeDasharray"};function iv(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?nv:rv;e[o.offset]=R.transform(-r);const s=R.transform(t),l=R.transform(n);e[o.array]=`${s} ${l}`}function $a(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(Ba(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:y,dimensions:v}=e;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=tv(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&&iv(m,s,l,a,!1)}const Gp=()=>({...Ua(),attrs:{}}),Wa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ov(e,t,n,r){const i=E.useMemo(()=>{const o=Gp();return $a(o,t,{enableHardwareAcceleration:!1},Wa(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Hp(o,e.style,e),i.style={...o,...i.style}}return i}function sv(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(za(n)?ov:Jy)(r,o,s,n),u=ev(r,typeof n=="string",e),c=n!==E.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=E.useMemo(()=>Ve(f)?f.get():f,[f]);return E.createElement(n,{...c,children:d})}}function Qp(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 Yp=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 Xp(e,t,n,r){Qp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Yp.has(i)?i:Na(i),t.attrs[i])}function Ha(e,t){const{style:n}=e,r={};for(const i in n)(Ve(n[i])||t.style&&Ve(t.style[i])||Bp(i,e))&&(r[i]=n[i]);return r}function Zp(e,t){const n=Ha(e,t);for(const r in e)if(Ve(e[r])||Ve(t[r])){const i=ti.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Ka(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 Jp(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const go=e=>Array.isArray(e),lv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),av=e=>go(e)?e[e.length-1]||0:e;function Ii(e){const t=Ve(e)?e.get():e;return lv(t)?t.toValue():t}function uv({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:cv(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const qp=e=>(t,n)=>{const r=E.useContext(Io),i=E.useContext(Bo),o=()=>uv(e,t,r,i);return n?o():Jp(o)};function cv(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=Wo(e),u=zp(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"&&!$o(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{const y=Ka(e,m);if(!y)return;const{transitionEnd:v,transition:k,...g}=y;for(const p in g){let h=g[p];if(Array.isArray(h)){const x=c?h.length-1:0;h=h[x]}h!==null&&(i[p]=h)}for(const p in v)i[p]=v[p]}),i}const ee=e=>e,{schedule:H,cancel:xt,state:ue,steps:xs}=Op(typeof requestAnimationFrame<"u"?requestAnimationFrame:ee,!0),fv={useVisualState:qp({scrapeMotionValuesFromProps:Zp,createRenderState:Gp,onMount:(e,t,{renderState:n,latestValues:r})=>{H.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),H.render(()=>{$a(n,r,{enableHardwareAcceleration:!1},Wa(t.tagName),e.transformTemplate),Xp(t,n)})}})},dv={useVisualState:qp({scrapeMotionValuesFromProps:Ha,createRenderState:Ua})};function pv(e,{forwardMotionProps:t=!1},n,r){return{...za(e)?fv:dv,preloadedFeatures:n,useRender:sv(t),createVisualElement:r,Component:e}}function ct(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const bp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ho(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const hv=e=>t=>bp(t)&&e(t,Ho(t));function dt(e,t,n,r){return ct(e,t,hv(n),r)}const mv=(e,t)=>n=>t(e(n)),pt=(...e)=>e.reduce(mv);function eh(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vc=eh("dragHorizontal"),xc=eh("dragVertical");function th(e){let t=!1;if(e==="y")t=xc();else if(e==="x")t=vc();else{const n=vc(),r=xc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function nh(){const e=th(!0);return e?(e(),!1):!0}class Gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function wc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||nh())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&H.update(()=>l[r](o,s))};return dt(e.current,n,i,{passive:!e.getProps()[r]})}class gv extends Gt{mount(){this.unmount=pt(wc(this.node,!0),wc(this.node,!1))}unmount(){}}class yv 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=pt(ct(this.node.current,"focus",()=>this.onFocus()),ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const rh=(e,t)=>t?e===t?!0:rh(e,t.parentElement):!1;function ws(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ho(n))}class vv extends Gt{constructor(){super(...arguments),this.removeStartListeners=ee,this.removeEndListeners=ee,this.removeAccessibleListeners=ee,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=dt(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();H.update(()=>{!f&&!rh(this.node.current,l.target)?c&&c(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=dt(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pt(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()||ws("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&H.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",s),ws("down",(l,a)=>{this.startPress(l,a)})},n=ct(this.node.current,"keydown",t),r=()=>{this.isPressing&&ws("cancel",(o,s)=>this.cancelPress(o,s))},i=ct(this.node.current,"blur",r);this.removeAccessibleListeners=pt(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&&H.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nh()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&H.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=dt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Cl=new WeakMap,Ss=new WeakMap,xv=e=>{const t=Cl.get(e.target);t&&t(e)},wv=e=>{e.forEach(xv)};function Sv({root:e,...t}){const n=e||document;Ss.has(n)||Ss.set(n,{});const r=Ss.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(wv,{root:e,...t})),r[i]}function Pv(e,t,n){const r=Sv(t);return Cl.set(e,n),r.observe(e),()=>{Cl.delete(e),r.unobserve(e)}}const kv={some:0,all:1};class Cv 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:kv[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 Pv(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(Tv(t,n))&&this.startObserver()}unmount(){}}function Tv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ev={inView:{Feature:Cv},tap:{Feature:vv},focus:{Feature:yv},hover:{Feature:gv}};function ih(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 Lv(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ko(e,t,n){const r=e.getProps();return Ka(r,t,n!==void 0?n:r.custom,Vv(e),Lv(e))}let Ga=ee;const un=e=>e*1e3,ht=e=>e/1e3,Mv={current:!1},oh=e=>Array.isArray(e)&&typeof e[0]=="number";function sh(e){return!!(!e||typeof e=="string"&&lh[e]||oh(e)||Array.isArray(e)&&e.every(sh))}const gr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gr([0,.65,.55,1]),circOut:gr([.55,0,1,.45]),backIn:gr([.31,.01,.66,-.59]),backOut:gr([.33,1.53,.69,.99])};function ah(e){if(e)return oh(e)?gr(e):Array.isArray(e)?e.map(ah):lh[e]}function Rv(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=ah(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 Av(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const uh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Dv=1e-7,Nv=12;function _v(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=uh(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Dv&&++l_v(o,0,1,e,n);return o=>o===0||o===1?o:uh(i(o),t,r)}const jv=ii(.42,0,1,1),Fv=ii(0,0,.58,1),ch=ii(.42,0,.58,1),Ov=e=>Array.isArray(e)&&typeof e[0]!="number",fh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dh=e=>t=>1-e(1-t),Qa=e=>1-Math.sin(Math.acos(e)),ph=dh(Qa),zv=fh(Qa),hh=ii(.33,1.53,.69,.99),Ya=dh(hh),Iv=fh(Ya),Bv=e=>(e*=2)<1?.5*Ya(e):.5*(2-Math.pow(2,-10*(e-1))),Uv={linear:ee,easeIn:jv,easeInOut:ch,easeOut:Fv,circIn:Qa,circInOut:zv,circOut:ph,backIn:Ya,backInOut:Iv,backOut:hh,anticipate:Bv},Sc=e=>{if(Array.isArray(e)){Ga(e.length===4);const[t,n,r,i]=e;return ii(t,n,r,i)}else if(typeof e=="string")return Uv[e];return e},Xr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},G=(e,t,n)=>e+(t-e)*n;function Ps(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 $v({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=Ps(a,l,e+1/3),o=Ps(a,l,e),s=Ps(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Xa=(e,t)=>n=>!!(ni(n)&&Gy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mh=(e,t,n)=>r=>{if(!ni(r))return r;const[i,o,s,l]=r.match(Ia);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Wv=e=>Ut(0,255,e),ks={...tr,transform:e=>Math.round(Wv(e))},sn={test:Xa("rgb","red"),parse:mh("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ks.transform(e)+", "+ks.transform(t)+", "+ks.transform(n)+", "+Vr(Er.transform(r))+")"};function Hv(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 Tl={test:Xa("#"),parse:Hv,transform:sn.transform},_n={test:Xa("hsl","hue"),parse:mh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Vr(t))+", "+ot.transform(Vr(n))+", "+Vr(Er.transform(r))+")"},Cs=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kv=[Tl,sn,_n],Gv=e=>Kv.find(t=>t.test(e));function Pc(e){const t=Gv(e);let n=t.parse(e);return t===_n&&(n=$v(n)),n}const kc=(e,t)=>{const n=Pc(e),r=Pc(t),i={...n};return o=>(i.red=Cs(n.red,r.red,o),i.green=Cs(n.green,r.green,o),i.blue=Cs(n.blue,r.blue,o),i.alpha=G(n.alpha,r.alpha,o),sn.transform(i))},he={test:e=>sn.test(e)||Tl.test(e)||_n.test(e),parse:e=>sn.test(e)?sn.parse(e):_n.test(e)?_n.parse(e):Tl.parse(e),transform:e=>ni(e)?e:e.hasOwnProperty("red")?sn.transform(e):_n.transform(e)};function Qv(e){var t,n;return isNaN(e)&&ni(e)&&(((t=e.match(Ia))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ky))===null||n===void 0?void 0:n.length)||0)>0}const gh="number",yh="color",Yv="var",Xv="var(",Cc="${}",Tc=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function yo(e){const t=e.toString(),n=t.match(Tc)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let a=0;a{let o="";for(let s=0;stypeof e=="number"?0:e;function Jv(e){const t=vh(e);return xh(e)(t.map(Zv))}const $t={test:Qv,parse:vh,createTransformer:xh,getAnimatableNone:Jv};function El(e,t){return n=>n>0?t:e}function qv(e,t){return n=>G(e,t,n)}function Za(e){return typeof e=="number"?qv:typeof e=="string"?ho(e)?El:he.test(e)?kc:t0:Array.isArray(e)?wh:typeof e=="object"?he.test(e)?kc:bv:El}function wh(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Za(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function e0(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=$t.createTransformer(t),r=yo(e),i=yo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?pt(wh(e0(r,i),i.values),n):El(e,t)};function Sh(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?G(e,t,n):Za(e)(e,t)}function n0(e,t,n){const r=[],i=n||Sh,o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=n0(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 i0(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xr(0,t,r);e.push(G(n,1,i))}}function o0(e){const t=[0];return i0(t,e.length-1),t}function s0(e,t){return e.map(n=>n*t)}function l0(e,t){return e.map(()=>t||ch).splice(0,e.length-1)}function vo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ov(r)?r.map(Sc):Sc(r),o={done:!1,value:t[0]},s=s0(n&&n.length===t.length?n:o0(t),e),l=r0(s,t,{ease:Array.isArray(i)?i:l0(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Ph(e,t){return t?e*(1e3/t):0}const a0=5;function kh(e,t,n){const r=Math.max(t-a0,0);return Ph(n-e(r),t-r)}const Ts=.001,u0=.01,c0=10,f0=.05,d0=1;function p0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Ut(f0,d0,s),e=Ut(u0,c0,ht(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,m=Vl(u,s),y=Math.exp(-f);return Ts-d/m*y},o=u=>{const f=u*s*e,d=f*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),v=Vl(Math.pow(u,2),s);return(-i(u)+Ts>0?-1:1)*((d-m)*y)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Ts+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=m0(i,o,l);if(e=un(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 h0=12;function m0(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function v0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ec(e,y0)&&Ec(e,g0)){const n=p0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ch({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,duration:c,velocity:f,isResolvedFromDuration:d}=v0({...r,velocity:-ht(r.velocity||0)}),m=f||0,y=a/(2*Math.sqrt(l*u)),v=o-i,k=ht(Math.sqrt(l/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(y<1){const h=Vl(k,y);p=x=>{const w=Math.exp(-y*k*x);return o-w*((m+y*k*v)/h*Math.sin(h*x)+v*Math.cos(h*x))}}else if(y===1)p=h=>o-Math.exp(-k*h)*(v+(m+k*v)*h);else{const h=k*Math.sqrt(y*y-1);p=x=>{const w=Math.exp(-y*k*x),C=Math.min(h*x,300);return o-w*((m+y*k*v)*Math.sinh(C)+h*v*Math.cosh(C))/h}}return{calculatedDuration:d&&c||null,next:h=>{const x=p(h);if(d)s.done=h>=c;else{let w=m;h!==0&&(y<1?w=kh(p,h,x):w=0);const C=Math.abs(w)<=n,T=Math.abs(o-x)<=t;s.done=C&&T}return s.value=s.done?o:x,s}}}function Vc({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=P=>l!==void 0&&Pa,y=P=>l===void 0?a:a===void 0||Math.abs(l-P)-v*Math.exp(-P/r),h=P=>g+p(P),x=P=>{const M=p(P),A=h(P);d.done=Math.abs(M)<=u,d.value=d.done?g:A};let w,C;const T=P=>{m(d.value)&&(w=P,C=Ch({keyframes:[d.value,y(d.value)],velocity:kh(h,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let M=!1;return!C&&w===void 0&&(M=!0,x(P),T(P)),w!==void 0&&P>w?C.next(P-w):(!M&&x(P),d)}}}let Bi;function x0(){Bi=void 0}const cn={now:()=>(Bi===void 0&&cn.set(ue.isProcessing||Fp.useManualTiming?ue.timestamp:performance.now()),Bi),set:e=>{Bi=e,queueMicrotask(x0)}},w0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>H.update(t,!0),stop:()=>xt(t),now:()=>ue.isProcessing?ue.timestamp:cn.now()}},Lc=2e4;function Mc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Lc?1/0:t}const S0={decay:Vc,inertia:Vc,tween:vo,keyframes:vo,spring:Ch},P0=e=>e/100;function xo({autoplay:e=!0,delay:t=0,driver:n=w0,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,y=!1,v,k;const g=()=>{k=new Promise(_=>{v=_})};g();let p;const h=S0[i]||vo;let x;h!==vo&&typeof r[0]!="number"&&(x=pt(P0,Sh(r[0],r[1])),r=[0,100]);const w=h({...d,keyframes:r});let C;l==="mirror"&&(C=h({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",P=null,M=null,A=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Mc(w));const{calculatedDuration:re}=w;let le=1/0,ye=1/0;re!==null&&(le=re+s,ye=le*(o+1)-s);let ie=0;const St=_=>{if(M===null)return;m>0&&(M=Math.min(M,_)),m<0&&(M=Math.min(_-ye/m,M)),P!==null?ie=P:ie=Math.round(_-M)*m;const $=ie-t*(m>=0?1:-1),Qt=m>=0?$<0:$>ye;ie=Math.max($,0),T==="finished"&&P===null&&(ie=ye);let be=ie,xn=w;if(o){const Go=Math.min(ie,ye)/le;let oi=Math.floor(Go),Xt=Go%1;!Xt&&Go>=1&&(Xt=1),Xt===1&&oi--,oi=Math.min(oi,o+1),!!(oi%2)&&(l==="reverse"?(Xt=1-Xt,s&&(Xt-=s/le)):l==="mirror"&&(xn=C)),be=Ut(0,1,Xt)*le}const Le=Qt?{done:!1,value:r[0]}:xn.next(be);x&&(Le.value=x(Le.value));let{done:Yt}=Le;!Qt&&re!==null&&(Yt=m>=0?ie>=ye:ie<=0);const Jh=P===null&&(T==="finished"||T==="running"&&Yt);return f&&f(Le.value),Jh&&V(),Le},Z=()=>{p&&p.stop(),p=void 0},Fe=()=>{T="idle",Z(),v(),g(),M=A=null},V=()=>{T="finished",c&&c(),Z(),v()},D=()=>{if(y)return;p||(p=n(St));const _=p.now();a&&a(),P!==null?M=_-P:(!M||T==="finished")&&(M=_),T==="finished"&&g(),A=M,P=null,T="running",p.start()};e&&D();const j={then(_,$){return k.then(_,$)},get time(){return ht(ie)},set time(_){_=un(_),ie=_,P!==null||!p||m===0?P=_:M=p.now()-_/m},get duration(){const _=w.calculatedDuration===null?Mc(w):w.calculatedDuration;return ht(_)},get speed(){return m},set speed(_){_===m||!p||(m=_,j.time=ht(ie))},get state(){return T},play:D,pause:()=>{T="paused",P=ie},stop:()=>{y=!0,T!=="idle"&&(T="idle",u&&u(),Fe())},cancel:()=>{A!==null&&St(A),Fe()},complete:()=>{T="finished"},sample:_=>(M=0,St(_))};return j}function k0(e){let t;return()=>(t===void 0&&(t=e()),t)}const C0=k0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),T0=new Set(["opacity","clipPath","filter","transform"]),Ti=10,E0=2e4,V0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sh(t.ease);function L0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(C0()&&T0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a,u=!1;const c=()=>{a=new Promise(h=>{l=h})};c();let{keyframes:f,duration:d=300,ease:m,times:y}=i;if(V0(t,i)){const h=xo({...i,repeat:0,delay:0});let x={done:!1,value:f[0]};const w=[];let C=0;for(;!x.done&&C{u=!1,v.cancel()},g=()=>{u=!0,H.update(k),l(),c()};return v.onfinish=()=>{u||(e.set(Av(f,i)),r&&r(),g())},{then(h,x){return a.then(h,x)},attachTimeline(h){return v.timeline=h,v.onfinish=null,ee},get time(){return ht(v.currentTime||0)},set time(h){v.currentTime=un(h)},get speed(){return v.playbackRate},set speed(h){v.playbackRate=h},get duration(){return ht(d)},play:()=>{s||(v.play(),xt(k))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:h}=v;if(h){const x=xo({...i,autoplay:!1});e.setWithVelocity(x.sample(h-Ti).value,x.sample(h).value,Ti)}g()},complete:()=>{u||v.finish()},cancel:g}}function M0({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:ee,pause:ee,stop:ee,then:o=>(o(),Promise.resolve()),cancel:ee,complete:ee});return t?xo({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const R0={type:"spring",stiffness:500,damping:25,restSpeed:10},A0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),D0={type:"keyframes",duration:.8},N0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_0=(e,{keyframes:t})=>t.length>2?D0:vn.has(e)?e.startsWith("scale")?A0(t[1]):R0:N0,Ll=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($t.test(t)||t==="0")&&!t.startsWith("url(")),j0=new Set(["brightness","contrast","saturate","opacity"]);function F0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ia)||[];if(!r)return e;const i=n.replace(r,"");let o=j0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const O0=/([a-z-]*)\(.*?\)/g,Ml={...$t,getAnimatableNone:e=>{const t=e.match(O0);return t?t.map(F0).join(" "):e}},z0={...Wp,color:he,backgroundColor:he,outlineColor:he,fill:he,stroke:he,borderColor:he,borderTopColor:he,borderRightColor:he,borderBottomColor:he,borderLeftColor:he,filter:Ml,WebkitFilter:Ml},Ja=e=>z0[e];function Th(e,t){let n=Ja(e);return n!==Ml&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Eh=e=>/^0[^.\s]+$/.test(e);function I0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Eh(e)}function B0(e,t,n,r){const i=Ll(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=qa(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-un(s);const a=B0(t,e,n,o),u=a[0],c=a[a.length-1],f=Ll(e,u),d=Ll(e,c);let m={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(U0(o)||(m={...m,..._0(e,m)}),m.duration&&(m.duration=un(m.duration)),m.repeatDelay&&(m.repeatDelay=un(m.repeatDelay)),!f||!d||Mv.current||o.type===!1||Fp.skipAnimations)return M0(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=L0(t,e,m);if(y)return y}return xo(m)};function wo(e){return!!(Ve(e)&&e.add)}const Vh=e=>/^\-?\d*\.?\d+$/.test(e);function eu(e,t){e.indexOf(t)===-1&&e.push(t)}function tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class nu{constructor(){this.subscriptions=[]}add(t){return eu(this.subscriptions,t),()=>tu(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 W0{constructor(t,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=cn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=$0(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=cn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new nu);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=cn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rc);return Ph(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zn(e,t){return new W0(e,t)}const Lh=e=>t=>t.test(e),H0={test:e=>e==="auto",parse:e=>e},Mh=[tr,R,ot,kt,Yy,Qy,H0],cr=e=>Mh.find(Lh(e)),K0=[...Mh,he,$t],G0=e=>K0.find(Lh(e));function Q0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zn(n))}function Y0(e,t){const n=Ko(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=av(o[s]);Q0(e,s,l)}}function X0(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(k)}return s&&Promise.all(u).then(()=>{s&&Y0(e,s)}),u}function Rl(e,t,n={}){const r=Ko(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Rh(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return e1(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 e1(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(t1).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Rl(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function t1(e,t){return e.sortNodePosition(t)}function n1(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Rl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Rl(e,t,n);else{const i=typeof t=="function"?Ko(e,t,n.custom):t;r=Promise.all(Rh(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const r1=[...ja].reverse(),i1=ja.length;function o1(e){return t=>Promise.all(t.map(({animation:n,options:r})=>n1(e,n,r)))}function s1(e){let t=o1(e);const n=a1();let r=!0;const i=(a,u)=>{const c=Ko(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 y={},v=1/0;for(let g=0;gv&&w,A=!1;const re=Array.isArray(x)?x:[x];let le=re.reduce(i,{});C===!1&&(le={});const{prevResolvedValues:ye={}}=h,ie={...ye,...le},St=Z=>{M=!0,m.has(Z)&&(A=!0,m.delete(Z)),h.needsAnimating[Z]=!0};for(const Z in ie){const Fe=le[Z],V=ye[Z];if(y.hasOwnProperty(Z))continue;let D=!1;go(Fe)&&go(V)?D=!ih(Fe,V):D=Fe!==V,D?Fe!==void 0?St(Z):m.add(Z):Fe!==void 0&&m.has(Z)?St(Z):h.protectedKeys[Z]=!0}h.prevProp=x,h.prevResolvedValues=le,h.isActive&&(y={...y,...le}),r&&e.blockInitialAnimation&&(M=!1),M&&(!T||A)&&d.push(...re.map(Z=>({animation:Z,options:{type:p,...a}})))}if(m.size){const g={};m.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(g[p]=h)}),d.push({animation:g})}let k=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,k?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 y;return(y=m.animationState)===null||y===void 0?void 0:y.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 l1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ih(t,e):!1}function Zt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a1(){return{animate:Zt(!0),whileInView:Zt(),whileHover:Zt(),whileTap:Zt(),whileDrag:Zt(),whileFocus:Zt(),exit:Zt()}}class u1 extends Gt{constructor(t){super(t),t.animationState||(t.animationState=s1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),$o(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 c1=0;class f1 extends Gt{constructor(){super(...arguments),this.id=c1++}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 d1={animation:{Feature:u1},exit:{Feature:f1}},Ac=(e,t)=>Math.abs(e-t);function p1(e,t){const n=Ac(e.x,t.x),r=Ac(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ah{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Vs(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=p1(f.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:y}=f,{timestamp:v}=ue;this.history.push({...y,timestamp:v});const{onStart:k,onMove:g}=this.handlers;d||(k&&k(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Es(d,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Vs(f.type==="pointercancel"?this.lastMoveEventInfo:Es(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,k),y&&y(f,k)},!bp(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Ho(t),l=Es(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=ue;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Vs(l,this.history)),this.removeListeners=pt(dt(this.contextWindow,"pointermove",this.handlePointerMove),dt(this.contextWindow,"pointerup",this.handlePointerUp),dt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xt(this.updatePoint)}}function Es(e,t){return t?{point:t(e.point)}:e}function Dc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Vs({point:e},t){return{point:e,delta:Dc(e,Dh(t)),offset:Dc(e,h1(t)),velocity:m1(t,.1)}}function h1(e){return e[0]}function Dh(e){return e[e.length-1]}function m1(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Dh(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>un(t)));)n--;if(!r)return{x:0,y:0};const o=ht(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 Ne(e){return e.max-e.min}function Al(e,t=0,n=.01){return Math.abs(e-t)<=n}function Nc(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Ne(n)/Ne(t),(Al(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(Al(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Lr(e,t,n,r){Nc(e.x,t.x,n.x,r?r.originX:void 0),Nc(e.y,t.y,n.y,r?r.originY:void 0)}function _c(e,t,n){e.min=n.min+t.min,e.max=e.min+Ne(t)}function g1(e,t,n){_c(e.x,t.x,n.x),_c(e.y,t.y,n.y)}function jc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ne(t)}function Mr(e,t,n){jc(e.x,t.x,n.x),jc(e.y,t.y,n.y)}function y1(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Fc(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 v1(e,{top:t,left:n,bottom:r,right:i}){return{x:Fc(e.x,n,i),y:Fc(e.y,t,r)}}function Oc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Xr(t.min,t.max-r,e.min):r>i&&(n=Xr(e.min,e.max-i,t.min)),Ut(0,1,n)}function S1(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 P1(e=Dl){return e===!1?e=0:e===!0&&(e=Dl),{x:zc(e,"left","right"),y:zc(e,"top","bottom")}}function zc(e,t,n){return{min:Ic(e,t),max:Ic(e,n)}}function Ic(e,t){return typeof e=="number"?e:e[t]||0}const Bc=()=>({translate:0,scale:1,origin:0,originPoint:0}),jn=()=>({x:Bc(),y:Bc()}),Uc=()=>({min:0,max:0}),J=()=>({x:Uc(),y:Uc()});function ze(e){return[e("x"),e("y")]}function Nh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function k1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C1(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 Ls(e){return e===void 0||e===1}function Nl({scale:e,scaleX:t,scaleY:n}){return!Ls(e)||!Ls(t)||!Ls(n)}function bt(e){return Nl(e)||_h(e)||e.z||e.rotate||e.rotateX||e.rotateY}function _h(e){return $c(e.x)||$c(e.y)}function $c(e){return e&&e!=="0%"}function So(e,t,n){const r=e-n,i=t*r;return n+i}function Wc(e,t,n,r,i){return i!==void 0&&(e=So(e,i,r)),So(e,n,r)+t}function _l(e,t=0,n=1,r,i){e.min=Wc(e.min,t,n,r,i),e.max=Wc(e.max,t,n,r,i)}function jh(e,{x:t,y:n}){_l(e.x,t.translate,t.scale,t.originPoint),_l(e.y,n.translate,n.scale,n.originPoint)}function T1(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 Et(e,t){e.min=e.min+t,e.max=e.max+t}function Kc(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=G(e.min,e.max,o);_l(e,t[n],t[r],s,t.scale)}const E1=["x","scaleX","originX"],V1=["y","scaleY","originY"];function Fn(e,t){Kc(e.x,t,E1),Kc(e.y,t,V1)}function Fh(e,t){return Nh(C1(e.getBoundingClientRect(),t))}function L1(e,t,n){const r=Fh(e,n),{scroll:i}=t;return i&&(Et(r.x,i.offset.x),Et(r.y,i.offset.y)),r}const Oh=({current:e})=>e?e.ownerDocument.defaultView:null,M1=new WeakMap;class R1{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=J(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ho(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=th(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(k=>{let g=this.getAxisMotionValue(k).get()||0;if(ot.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[k];h&&(g=Ne(h)*(parseFloat(g)/100))}}this.originPoint[k]=g}),y&&H.update(()=>y(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:k}=f;if(m&&this.currentDirection===null){this.currentDirection=A1(k),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,k),this.updateAxis("y",f.point,k),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f),a=()=>ze(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ah(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Oh(this.visualElement)})}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&&H.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||!Ei(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=y1(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Nn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v1(i.layoutBox,n):this.constraints=!1,this.elastic=P1(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ze(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=S1(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Nn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=L1(r,i.root,this.visualElement.getTransformPagePoint());let s=x1(i.layout.layoutBox,o);if(n){const l=n(k1(s));this.hasMutatedConstraints=!!l,l&&(s=Nh(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=ze(c=>{if(!Ei(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,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ba(t,r,0,n))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!Ei(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(!Nn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ze(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=w1({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(),ze(s=>{if(!Ei(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;M1.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();Nn(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&&(ze(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 Ei(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function A1(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class D1 extends Gt{constructor(t){super(t),this.removeGroupControls=ee,this.removeListeners=ee,this.controls=new R1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ee}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gc=e=>(t,n)=>{e&&H.update(()=>e(t,n))};class N1 extends Gt{constructor(){super(...arguments),this.removePointerDownListener=ee}onPointerDown(t){this.session=new Ah(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oh(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gc(t),onStart:Gc(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&H.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 _1(){const e=E.useContext(Bo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=E.useId();return E.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Ui={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=Qc(e,t.target.x),r=Qc(e,t.target.y);return`${n}% ${r}%`}},j1={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 F1 extends Ue.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;zy(O1),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()})),Ui.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()||H.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),_a.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zh(e){const[t,n]=_1(),r=E.useContext(Oa);return Ue.createElement(F1,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Ip),isPresent:t,safeToRemove:n})}const O1={borderRadius:{...fr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fr,borderTopRightRadius:fr,borderBottomLeftRadius:fr,borderBottomRightRadius:fr,boxShadow:j1},Ih=["TopLeft","TopRight","BottomLeft","BottomRight"],z1=Ih.length,Yc=e=>typeof e=="string"?parseFloat(e):e,Xc=e=>typeof e=="number"||R.test(e);function I1(e,t,n,r,i,o){i?(e.opacity=G(0,n.opacity!==void 0?n.opacity:1,B1(r)),e.opacityExit=G(t.opacity!==void 0?t.opacity:1,0,U1(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(Xr(e,t,r))}function Jc(e,t){e.min=t.min,e.max=t.max}function Oe(e,t){Jc(e.x,t.x),Jc(e.y,t.y)}function qc(e,t,n,r,i){return e-=t,e=So(e,1/n,r),i!==void 0&&(e=So(e,1/i,r)),e}function $1(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 bc(e,t,[n,r,i],o,s){$1(e,t[n],t[r],t[i],t.scale,o,s)}const W1=["x","scaleX","originX"],H1=["y","scaleY","originY"];function ef(e,t,n,r){bc(e.x,t,W1,n?n.x:void 0,r?r.x:void 0),bc(e.y,t,H1,n?n.y:void 0,r?r.y:void 0)}function tf(e){return e.translate===0&&e.scale===1}function Uh(e){return tf(e.x)&&tf(e.y)}function K1(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 $h(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 nf(e){return Ne(e.x)/Ne(e.y)}class G1{constructor(){this.members=[]}add(t){eu(this.members,t),t.scheduleRender()}remove(t){if(tu(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 rf(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 Q1=(e,t)=>e.depth-t.depth;class Y1{constructor(){this.children=[],this.isDirty=!1}add(t){eu(this.children,t),this.isDirty=!0}remove(t){tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Q1),this.isDirty=!1,this.children.forEach(t)}}function X1(e,t){const n=cn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xt(r),e(o-t))};return H.read(r,!0),()=>xt(r)}function Z1(e){window.MotionDebug&&window.MotionDebug.record(e)}function J1(e){return e instanceof SVGElement&&e.tagName!=="svg"}function q1(e,t,n){const r=Ve(e)?e:Zn(e);return r.start(ba("",r,t,n)),r.animation}const of=["","X","Y","Z"],b1={visibility:"hidden"},sf=1e3;let ex=0;const en={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Wh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=ex++,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.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,en.totalNodes=en.resolvedTargetDeltas=en.recalculatedProjection=0,this.nodes.forEach(rx),this.nodes.forEach(ax),this.nodes.forEach(ux),this.nodes.forEach(ix),Z1(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=X1(d,250),Ui.hasAnimatedSinceResize&&(Ui.hasAnimatedSinceResize=!1,this.nodes.forEach(af))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||hx,{onLayoutAnimationStart:k,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!$h(this.targetLayout,y)||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 x={...qa(v,"layout"),onPlay:k,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||af(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,xt(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(cx),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(ox),this.sharedNodes.forEach(fx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.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 w=x/1e3;uf(f.x,s.x,w),uf(f.y,s.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dx(this.relativeTarget,this.relativeTargetOrigin,d,w),h&&K1(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=J()),Oe(h,this.relativeTarget)),v&&(this.animationValues=c,I1(c,u,this.latestValues,w,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},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&&(xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Ui.hasAnimatedSinceResize=!0,this.currentAnimation=q1(0,sf,{...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(sf),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&&Hh(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||J();const f=Ne(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=Ne(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Oe(l,a),Fn(l,c),Lr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new G1),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(lf),this.root.sharedNodes.clear()}}}function tx(e){e.updateLayout()}function nx(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"?ze(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Ne(d);d.min=r[f].min,d.max=d.min+m}):Hh(o,n.layoutBox,r)&&ze(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],m=Ne(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=jn();Lr(l,r,n.layoutBox);const a=jn();s?Lr(a,e.applyTransform(i,!0),n.measuredBox):Lr(a,r,n.layoutBox);const u=!Uh(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 y=J();Mr(y,n.layoutBox,d.layoutBox);const v=J();Mr(v,r,m.layoutBox),$h(y,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,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 rx(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 ix(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ox(e){e.clearSnapshot()}function lf(e){e.clearMeasurements()}function sx(e){e.isLayoutDirty=!1}function lx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function af(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ax(e){e.resolveTargetDelta()}function ux(e){e.calcProjection()}function cx(e){e.resetRotation()}function fx(e){e.removeLeadSnapshot()}function uf(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 cf(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function dx(e,t,n,r){cf(e.x,t.x,n.x,r),cf(e.y,t.y,n.y,r)}function px(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hx={duration:.45,ease:[.4,0,.1,1]},ff=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),df=ff("applewebkit/")&&!ff("chrome/")?Math.round:ee;function pf(e){e.min=df(e.min),e.max=df(e.max)}function mx(e){pf(e.x),pf(e.y)}function Hh(e,t,n){return e==="position"||e==="preserve-aspect"&&!Al(nf(t),nf(n),.2)}const gx=Wh({attachResizeListener:(e,t)=>ct(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ms={current:void 0},Kh=Wh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ms.current){const e=new gx({});e.mount(window),e.setOptions({layoutScroll:!0}),Ms.current=e}return Ms.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yx={pan:{Feature:N1},drag:{Feature:D1,ProjectionNode:Kh,MeasureLayout:zh}},vx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function xx(e){const t=vx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function jl(e,t,n=1){const[r,i]=xx(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Vh(s)?parseFloat(s):s}else return ho(i)?jl(i,t,n+1):i}function wx(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(!ho(o))return;const s=jl(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!ho(o))continue;const s=jl(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const Sx=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gh=e=>Sx.has(e),Px=e=>Object.keys(e).some(Gh),hf=e=>e===tr||e===R,mf=(e,t)=>parseFloat(e.split(", ")[t]),gf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return mf(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?mf(o[1],e):0}},kx=new Set(["x","y","z"]),Cx=ti.filter(e=>!kx.has(e));function Tx(e){const t=[];return Cx.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 Jn={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:gf(4,13),y:gf(5,14)};Jn.translateX=Jn.x;Jn.translateY=Jn.y;const Ex=(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]=Jn[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]=Jn[u](a,o)}),e},Vx=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Gh);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=cr(c);const d=t[a];let m;if(go(d)){const y=d.length,v=d[0]===null?1:0;c=d[v],f=cr(c);for(let k=v;k=0?window.pageYOffset:null,u=Ex(t,e,l);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Uo&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Lx(e,t,n,r){return Px(t)?Vx(e,t,n,r):{target:t,transitionEnd:r}}const Mx=(e,t,n,r)=>{const i=wx(e,t,r);return t=i.target,r=i.transitionEnd,Lx(e,t,n,r)},Fl={current:null},Qh={current:!1};function Rx(){if(Qh.current=!0,!!Uo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fl.current=e.matches;e.addListener(t),t()}else Fl.current=!1}function Ax(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ve(o))e.addValue(i,o),wo(r)&&r.add(i);else if(Ve(s))e.addValue(i,Zn(o,{owner:e})),wo(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,Zn(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const yf=new WeakMap,Yh=Object.keys(Yr),Dx=Yh.length,vf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Nx=Fa.length;class _x{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=()=>H.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=Wo(n),this.isVariantNode=zp(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&&Ve(d)&&(d.set(l[f],!1),wo(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,yf.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)),Qh.current||Rx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yf.delete(this.current),this.projection&&this.projection.unmount(),xt(this.notifyUpdate),xt(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=vn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&H.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):J()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;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=Zn(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=Ka(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&&!Ve(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 nu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Xh extends _x{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},i){const o=J0(r,t||{},this);if(i){X0(this,r,o);const s=Mx(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function jx(e){return window.getComputedStyle(e)}class Fx extends Xh{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(vn.has(n)){const r=Ja(n);return r&&r.default||0}else{const r=jx(t),i=($p(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){Ba(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ha(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Qp(t,n,r,i)}}class Ox extends Xh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vn.has(n)){const r=Ja(n);return r&&r.default||0}return n=Yp.has(n)?n:Na(n),t.getAttribute(n)}measureInstanceViewportBox(){return J()}scrapeMotionValuesFromProps(t,n){return Zp(t,n)}build(t,n,r,i){$a(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Xp(t,n,r,i)}mount(t){this.isSVGTag=Wa(t.tagName),super.mount(t)}}const zx=(e,t)=>za(e)?new Ox(t,{enableHardwareAcceleration:!1}):new Fx(t,{enableHardwareAcceleration:!0}),Ix={layout:{ProjectionNode:Kh,MeasureLayout:zh}},Bx={...d1,...Ev,...yx,...Ix},Po=Fy((e,t)=>pv(e,t,Bx,zx));function Zh(){const e=E.useRef(!1);return Da(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ux(){const e=Zh(),[t,n]=E.useState(0),r=E.useCallback(()=>{e.current&&n(t+1)},[t]);return[E.useCallback(()=>H.postRender(r),[r]),t]}class $x extends E.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 Wx({children:e,isPresent:t}){const n=E.useId(),r=E.useRef(null),i=E.useRef({width:0,height:0,top:0,left:0});return E.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]),E.createElement($x,{isPresent:t,childRef:r,sizeRef:i},E.cloneElement(e,{ref:r}))}const Rs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=Jp(Hx),a=E.useId(),u=E.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 E.useMemo(()=>{l.forEach((c,f)=>l.set(f,!1))},[n]),E.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=E.createElement(Wx,{isPresent:n},e)),E.createElement(Bo.Provider,{value:u},e)};function Hx(){return new Map}function Kx(e){return E.useEffect(()=>()=>e(),[])}const tn=e=>e.key||"";function Gx(e,t){e.forEach(n=>{const r=tn(n);t.set(r,n)})}function Qx(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Yx=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=E.useContext(Oa).forceRender||Ux()[0],a=Zh(),u=Qx(e);let c=u;const f=E.useRef(new Map).current,d=E.useRef(c),m=E.useRef(new Map).current,y=E.useRef(!0);if(Da(()=>{y.current=!1,Gx(u,m),d.current=c}),Kx(()=>{y.current=!0,m.clear(),f.clear()}),y.current)return E.createElement(E.Fragment,null,c.map(p=>E.createElement(Rs,{key:tn(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},p)));c=[...c];const v=d.current.map(tn),k=u.map(tn),g=v.length;for(let p=0;p{if(k.indexOf(h)!==-1)return;const x=m.get(h);if(!x)return;const w=v.indexOf(h);let C=p;if(!C){const T=()=>{f.delete(h);const P=Array.from(m.keys()).filter(M=>!k.includes(M));if(P.forEach(M=>m.delete(M)),d.current=u.filter(M=>{const A=tn(M);return A===h||P.includes(A)}),!f.size){if(a.current===!1)return;l(),r&&r()}};C=E.createElement(Rs,{key:tn(x),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:o,mode:s},x),f.set(h,C)}c.splice(w,0,C)}),c=c.map(p=>{const h=p.key;return f.has(h)?p:E.createElement(Rs,{key:tn(p),isPresent:!0,presenceAffectsLayout:o,mode:s},p)}),E.createElement(E.Fragment,null,f.size?c:c.map(p=>E.cloneElement(p)))};function Xx({setShowModal:e}){return N.jsx(Po.div,{exit:{opacity:0},className:"modal",children:N.jsxs(Po.div,{initial:{zIndex:10,opacity:0},animate:{opacity:1},className:"mediaRulesBg absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-[white] px-10 py-8 ",children:[N.jsxs("div",{className:" w-full mb-7 flex justify-between items-center",children:[N.jsx("p",{className:" uppercase font-bold text-3xl text-scoreColor",children:"Rules"}),N.jsx("button",{onClick:()=>e(!1),children:N.jsx("img",{className:" w-full",src:"/images/icon-close.svg",alt:"cross"})})]}),N.jsx("div",{children:N.jsx("img",{className:"mediaRulesImg",src:"/images/image-rules.svg",alt:"rules"})})]})})}function Ol(e){const t=()=>{e.handleSelection&&e.handleSelection(e.name)},n=e.large?"mediaGestureLarge":"w-52 h-52 border-[25px]";return N.jsx(Po.div,{initial:{scale:0},animate:{scale:1},whileTap:{translateY:5},whileHover:{scale:1.05,rotate:10},onClick:t,style:{borderColor:`${e.color}`},className:`image ${n} ${e.win&&"boxShadow"}`,children:N.jsx("img",{className:" w-[40%] ",src:e.path,alt:e.name})},e.id)}function xf({children:e,onClick:t}){return N.jsx("button",{onClick:t,className:"bg-[white] whitespace-nowrap uppercase text-scoreColor sm:px-10 sm:py-2 px-20 py-4 rounded-lg",children:e})}function Zx({userSelection:e,computerSelection:t,setStartGame:n,score:r,setScore:i,newGame:o}){const[s,l]=Ue.useState(""),[a,u]=Ue.useState(!1),[c,f]=Ue.useState(!1);function d(m,y){m===y?l("Draw"):m==="paper"&&y==="rock"||m==="rock"&&y==="scissors"||m==="scissors"&&y==="paper"?(l("You win!"),u(!0),f(!1),i(v=>v+1)):(r>1?l("You lose!"):l("game over"),i(v=>v>0?v-1:0),f(!0),u(!1))}return Ue.useEffect(()=>{d(e.name,t.name)},[]),N.jsxs("div",{initial:{scale:0},className:"mediaGestureWrapper flex sm:justify-between justify-center flex-wrap items-center mx-auto mt-20",children:[N.jsxs("div",{className:" flex flex-col sm:order-none order-1 gap-12 items-center ",children:[N.jsx("h2",{className:"mediaGestText text-nowrap",children:"You Picked"}),N.jsx(Ol,{large:!0,size:!0,win:a,...e})]}),N.jsxs(Po.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.3},className:"flex sm:order-none order-3 mt-10 flex-col items-center",children:[N.jsx("p",{className:" text-4xl mb-5 whitespace-nowrap",children:s}),s!=="game over"?N.jsx(xf,{onClick:()=>n(!1),children:"Try Again"}):N.jsx(xf,{onClick:o,children:"New Game"})]}),N.jsxs("div",{className:" flex flex-col sm:order-none order-2 gap-12 items-center ",children:[N.jsx("h2",{className:"mediaGestText text-nowrap",children:"The House Picked"}),N.jsx(Ol,{large:!0,w:80,win:c,...t})]})]})}function Jx({startGame:e,setStartGame:t,setShowModal:n,score:r,setScore:i}){const[o,s]=Ue.useState([{id:1,name:"paper",color:"#515fe1",path:"/images/icon-paper.svg",position:"-top-24 left-40"},{id:2,name:"scissors",color:"#e8a839",path:"/images/icon-scissors.svg",position:"-top-24 right-40"},{id:3,name:"rock",color:"#da2d2d",path:"/images/icon-rock.svg",position:"-bottom-24 left-1/2 -translate-x-1/2"}]),[l,a]=Ue.useState([]),[u,c]=Ue.useState([]);function f(){t(!1),i(0)}const d=m=>{t(!0),c(o.filter(y=>y.name===m)[0]),a(o[Math.floor(Math.random()*o.length)])};return N.jsxs("div",{className:" w-full h-full mx-auto",children:[N.jsx("div",{className:"",children:e?N.jsx("div",{className:"",children:N.jsx(Zx,{userSelection:u,computerSelection:l,newGame:f,score:r,setScore:i,setStartGame:t})}):N.jsx("div",{className:"mediaGestWrap h-64 w-64 mx-auto flex justify-center bg-contain bg-no-repeat bg-[url('/images/bg-triangle.svg')]",children:o.map(m=>N.jsx("div",{className:`absolute ${m.position}`,children:N.jsx(Ol,{handleSelection:d,...m})},m.id))})}),N.jsx("button",{onClick:()=>n(!0),className:"absolute sm:right-0 right-auto bottom-10 sm:left-auto left-1/2 -translate-x-1/2 border-2 border-outlineColor px-10 py-2 rounded-xl hover:bg-scoreColor transition-bg ease-out uppercase text-xl tracking-[.2em]",children:"Rule$"})]})}function qx(){const[e,t]=Ue.useState(!1),[n,r]=Ue.useState(0),[i,o]=Ue.useState();return N.jsxs("div",{className:"mediaApp w-full h-screen relative uppercase font-semibold select-none box-border text-textColor ",children:[N.jsxs("div",{className:"w-full mx-auto",children:[N.jsx(Cy,{score:n}),N.jsx(Jx,{setShowModal:o,score:n,startGame:e,setStartGame:t,setScore:r})]}),N.jsx(Yx,{children:i&&N.jsx(Xx,{setShowModal:o})})]})}As.createRoot(document.getElementById("root")).render(N.jsx(qx,{})); diff --git a/assets/index-DNJZEG5k.css b/assets/index-DNJZEG5k.css new file mode 100644 index 0000000..6953243 --- /dev/null +++ b/assets/index-DNJZEG5k.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute}.relative{position:relative}.-bottom-24{bottom:-6rem}.-top-24{top:-6rem}.bottom-10{bottom:2.5rem}.left-1\/2{left:50%}.left-40{left:10rem}.right-40{right:10rem}.right-auto{right:auto}.top-1\/2{top:50%}.order-1{order:1}.order-2{order:2}.order-3{order:3}.mx-auto{margin-left:auto;margin-right:auto}.mb-5{margin-bottom:1.25rem}.mb-7{margin-bottom:1.75rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.h-52{height:13rem}.h-64{height:16rem}.h-full{height:100%}.h-screen{height:100vh}.w-52{width:13rem}.w-64{width:16rem}.w-\[40\%\]{width:40%}.w-full{width:100%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border-2{border-width:2px}.border-\[25px\]{border-width:25px}.border-solid{border-style:solid}.border-outlineColor{--tw-border-opacity: 1;border-color:hsl(217 16% 45% / var(--tw-border-opacity))}.bg-\[white\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-\[url\(\'\/images\/bg-triangle\.svg\'\)\]{background-image:url(/images/bg-triangle.svg)}.bg-contain{background-size:contain}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-20{padding-left:5rem;padding-right:5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-\[\.2em\]{letter-spacing:.2em}.text-scoreColor{--tw-text-opacity: 1;color:hsl(229 25% 31% / var(--tw-text-opacity))}.text-textColor{color:#fff}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}body{background-image:radial-gradient(circle,#1f3756,#141539);box-sizing:border-box;padding:0;margin:0;width:100%;height:100%}.pseudo_content{content:"";position:absolute;width:inherit;height:inherit;border-radius:100%}.bg-img{background:url(/images/bg-triangle.svg) no-repeat;background-size:300px 300px;background-position:center}.image{position:relative;z-index:1;display:flex;--tw-rotate: 20deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-shadow: inset 0px 3px 1px 3px rgba(0,0,0,.2);--tw-shadow-colored: inset 0px 3px 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}.image:before{--tw-shadow: inset 0px -4px 1px 4px rgba(0,0,0,.3);--tw-shadow-colored: inset 0px -4px 1px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";position:absolute;width:inherit;height:inherit;border-radius:100%}.image:after{--tw-shadow: inset 0px 8px 6px 3px rgba(255,255,255,.2);--tw-shadow-colored: inset 0px 8px 6px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);content:"";position:absolute;width:inherit;height:inherit;border-radius:100%}.image:hover{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.image:active{--tw-shadow: inset 0px 3px 1px 3px rgba(0,0,0,.1);--tw-shadow-colored: inset 0px 3px 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.image:active:after{--tw-shadow: 0px 0px 4px 1px rgba(0,0,0,.4);--tw-shadow-colored: 0px 0px 4px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);content:"";position:absolute;width:inherit;height:inherit;border-radius:100%}.image:active:before{--tw-shadow: inset 0px 0px 7px 6px rgba(0,0,0,.2);--tw-shadow-colored: inset 0px 0px 7px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);content:"";position:absolute;width:inherit;height:inherit;border-radius:100%}.boxShadow{--shadow-20px: 0 0 0 40px hsla(0, 0%, 83%, .026);--shadow-50px: 0 0 0 80px hsla(0, 0%, 83%, .026);--shadow-80px: 0 0 0 120px hsla(0, 0%, 83%, .026);box-shadow:var(--shadow-20px),var(--shadow-50px),var(--shadow-80px);animation:shadow 1s ease-in-out infinite}@keyframes shadow{0%{box-shadow:none}50%{box-shadow:var(--shadow-20px),var(--shadow-50px),var(--shadow-80px)}to{box-shadow:none}}.modal:before{position:absolute;top:0;left:0;z-index:2;height:100%;width:100%;background-color:#00000096;--tw-content: "";content:var(--tw-content)}.abs{position:absolute;left:50%;top:50%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.mediaApp{padding:1.5rem}@media (min-width: 640px){.mediaApp{padding:1.75rem}}@media (min-width: 768px){.mediaApp{padding:2rem}}@media (min-width: 1024px){.mediaApp{padding:2.5rem}}.mediaHeader{height:6rem;width:100%}@media (min-width: 640px){.mediaHeader{height:8rem;width:91.666667%}}@media (min-width: 768px){.mediaHeader{height:9rem;width:83.333333%}}@media (min-width: 1024px){.mediaHeader{height:10rem;width:58.333333%}}.mediaLogo{font-size:1.125rem;line-height:1.75rem}@media (min-width: 640px){.mediaLogo{padding:1.25rem;font-size:1.5rem;line-height:2rem}}@media (min-width: 768px){.mediaLogo{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 1024px){.mediaLogo{font-size:2.25rem;line-height:2.5rem}}.mediaLogo span{line-height:1rem}@media (min-width: 640px){.mediaLogo span{line-height:1.25rem}}@media (min-width: 768px){.mediaLogo span{line-height:1.5rem}}@media (min-width: 1024px){.mediaLogo span{line-height:1.75rem}}.mediaScoreWrap{padding:.5rem 1.5rem}@media (min-width: 640px){.mediaScoreWrap{padding-left:2rem;padding-right:2rem}}@media (min-width: 768px){.mediaScoreWrap{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width: 1024px){.mediaScoreWrap{padding-left:3rem;padding-right:3rem}}.mediaScore{font-size:8px}@media (min-width: 640px){.mediaScore{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.mediaScore{font-size:.875rem;line-height:1.25rem}}.mediaPoints{font-size:2.25rem;line-height:2.5rem}@media (min-width: 640px){.mediaPoints{font-size:3rem;line-height:1}}@media (min-width: 768px){.mediaPoints{font-size:3.75rem;line-height:1}}@media (min-width: 1024px){.mediaPoints{font-size:4.5rem;line-height:1}}.mediaGestWrap{margin-top:7rem;--tw-scale-x: .6;--tw-scale-y: .6;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.mediaGestWrap{margin-top:10rem;--tw-scale-x: .8;--tw-scale-y: .8;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}@media (min-width: 1024px){.mediaGestWrap{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.mediaGestItem{--tw-scale-x: .4;--tw-scale-y: .4;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));gap:2.5rem}.mediaGestText{font-size:13px}@media (min-width: 640px){.mediaGestText{font-size:16px}}.mediaGestureWrapper{max-width:48rem;-moz-column-gap:3rem;column-gap:3rem}@media (min-width: 640px){.mediaGestureWrapper{max-width:42rem;-moz-column-gap:2.5rem;column-gap:2.5rem}}@media (min-width: 768px){.mediaGestureWrapper{max-width:48rem}}@media (min-width: 1024px){.mediaGestureWrapper{max-width:56rem}}.mediaGestureLarge{height:8rem;width:8rem;border-width:18px}@media (min-width: 640px){.mediaGestureLarge{height:10rem;width:10rem}}@media (min-width: 768px){.mediaGestureLarge{height:13rem;width:13rem;border-width:25px}}@media (min-width: 1024px){.mediaGestureLarge{height:18rem;width:18rem;border-width:35px}}.mediaRulesBg{height:100%;width:100%;border-radius:0}@media (min-width: 640px){.mediaRulesBg{height:auto;width:auto;border-radius:.75rem}}.mediaRulesImg{position:absolute;left:50%;top:50%;z-index:10;width:80%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.mediaRulesImg{position:relative;left:0;top:0;width:100%;--tw-translate-x: -0px;--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.hover\:bg-scoreColor:hover{--tw-bg-opacity: 1;background-color:hsl(229 25% 31% / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:left-auto{left:auto}.sm\:right-0{right:0}.sm\:order-none{order:0}.sm\:justify-between{justify-content:space-between}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}} diff --git a/favicon-32x32.png b/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..1e2df7f089f46dd930239e418bf13e8e4c1cca0f GIT binary patch literal 1063 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+081EY0-Plzi}!G9Wnr(eF` z|M+F+!xzhMK3;zF(cgdn_B?v|`rD7+fB)V2@MY=EN9|{BEWPpQ{f}RtfBl|!^+Ea3 z%d2iZe)i@2x9`6{eg66V&!4ULpSPU4KJ)Uu^RM22`~BzO$wz&&PyPA(@7<4I`yRjQ zJAZr1#XB#){D-o5+r^Vjdc3)fsquh@R{^yA;Z|8C!Zw`1zDvzMNK{QUFr z^G~yvU&yK5nOnE3q5ts2d8Z#d`S9=G|MwriU%2{m%ii0owp@Sy>dXGuA$NemCsPvS z7YvLEt(>(tKmBDkpML+hROc(RL;oBPGFiO5x8~1ErS?rgb&N^g?k~Ih+L^ zk;M!Q+`=Ht$S`Y;1W=H@#M9T6{SlWiKeL>x)y)*39#2mf#}JFtt&`J}n+ycniko-@ z3;26vOWyCzeS7I$?C$UX{_kIKV}WAF+24(KRQ;Wbm=(hXgpO=b(eBb|byZ~P5M3dt zyDB-nDx`Zw9LoWN-GrY`kHxRfy}Q3KfBxRdclJCv_%N_mL-x0j+x*I+s%JIY&vgg3Y zTes?8j%DMbh5PocynFBNZJq}$w`Q+tKfe6=^y}tkkv_Zb+uQBmSHB|O-+X(*4%OrO zQF%8%OSj*z`t$7X`oHyz%ReTa40^8r7Z}c}C9V-ADTyViR>?)FK#IZ0z|cb1&_LJF zGQ`l-%D~vl*g)IB$jZQAv*1E06b-rgDVb@NxHTN|kz5AU01WSllAy$Lg@U5|w9K4T zg_6pGRE5lfl4J&kiaC!z@o*G|X=t4CKYhmYX%GXmGPhnbx3IFX_hb=fVFi~4lfx;@ u%9}$JPT#n4;>ejJGDp}?H+U@Y(qnifE?Dx($#g2v3I \ No newline at end of file diff --git a/images/bg-triangle.svg b/images/bg-triangle.svg new file mode 100644 index 0000000..457f905 --- /dev/null +++ b/images/bg-triangle.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/images/icon-close.svg b/images/icon-close.svg new file mode 100644 index 0000000..52407f4 --- /dev/null +++ b/images/icon-close.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/icon-lizard.svg b/images/icon-lizard.svg new file mode 100644 index 0000000..a34cf30 --- /dev/null +++ b/images/icon-lizard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/icon-paper.svg b/images/icon-paper.svg new file mode 100644 index 0000000..5d21904 --- /dev/null +++ b/images/icon-paper.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/icon-rock.svg b/images/icon-rock.svg new file mode 100644 index 0000000..2852f5a --- /dev/null +++ b/images/icon-rock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/icon-scissors.svg b/images/icon-scissors.svg new file mode 100644 index 0000000..fb1d7b5 --- /dev/null +++ b/images/icon-scissors.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/icon-spock.svg b/images/icon-spock.svg new file mode 100644 index 0000000..8b171d7 --- /dev/null +++ b/images/icon-spock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/image-rules-bonus.svg b/images/image-rules-bonus.svg new file mode 100644 index 0000000..d54fc66 --- /dev/null +++ b/images/image-rules-bonus.svg @@ -0,0 +1 @@ +BEATSBEATSBEATSBEATSBEATSBEATSBEATSBEATSBEATSBEATS \ No newline at end of file diff --git a/images/image-rules.svg b/images/image-rules.svg new file mode 100644 index 0000000..bc82403 --- /dev/null +++ b/images/image-rules.svg @@ -0,0 +1 @@ +BEATSBEATSBEATS \ No newline at end of file diff --git a/images/logo-bonus.svg b/images/logo-bonus.svg new file mode 100644 index 0000000..10a3070 --- /dev/null +++ b/images/logo-bonus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/logo.svg b/images/logo.svg new file mode 100644 index 0000000..7469d63 --- /dev/null +++ b/images/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..1e1e923 --- /dev/null +++ b/index.html @@ -0,0 +1,22 @@ + + + + + + + + + + + RPSGame + + + + + +
+ + + \ No newline at end of file