(function(Tr){typeof define=="function"&&define.amd?define(Tr):Tr()})(function(){"use strict";function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vc={exports:{}},Fi={},xc={exports:{}},W={};/** * @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 $r=Symbol.for("react.element"),xy=Symbol.for("react.portal"),wy=Symbol.for("react.fragment"),Sy=Symbol.for("react.strict_mode"),Py=Symbol.for("react.profiler"),Cy=Symbol.for("react.provider"),Ty=Symbol.for("react.context"),$y=Symbol.for("react.forward_ref"),Ey=Symbol.for("react.suspense"),ky=Symbol.for("react.memo"),by=Symbol.for("react.lazy"),wc=Symbol.iterator;function My(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var Sc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pc=Object.assign,Cc={};function Nn(e,t,n){this.props=e,this.context=t,this.refs=Cc,this.updater=n||Sc}Nn.prototype.isReactComponent={},Nn.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")},Nn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tc(){}Tc.prototype=Nn.prototype;function Ns(e,t,n){this.props=e,this.context=t,this.refs=Cc,this.updater=n||Sc}var Ks=Ns.prototype=new Tc;Ks.constructor=Ns,Pc(Ks,Nn.prototype),Ks.isPureReactComponent=!0;var $c=Array.isArray,Ec=Object.prototype.hasOwnProperty,Is={current:null},kc={key:!0,ref:!0,__self:!0,__source:!0};function bc(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)Ec.call(t,r)&&!kc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,U=R[V];if(0>>1;Vi(le,_))Ji(pt,le)?(R[V]=pt,R[J]=_,V=J):(R[V]=le,R[K]=_,V=K);else if(Ji(pt,_))R[V]=pt,R[J]=_,V=J;else break e}}return O}function i(R,O){var _=R.sortIndex-O.sortIndex;return _!==0?_:R.id-O.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,h=!1,x=!1,w=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=R)r(u),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(u)}}function S(R){if(w=!1,m(R),!x)if(n(a)!==null)x=!0,H(C);else{var O=n(u);O!==null&&F(S,O.startTime-R)}}function C(R,O){x=!1,w&&(w=!1,y(g),g=-1),h=!0;var _=d;try{for(m(O),f=n(a);f!==null&&(!(f.expirationTime>O)||R&&!b());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var U=V(f.expirationTime<=O);O=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(a)&&r(a),m(O)}else r(a);f=n(a)}if(f!==null)var te=!0;else{var K=n(u);K!==null&&F(S,K.startTime-O),te=!1}return te}finally{f=null,d=_,h=!1}}var k=!1,M=null,g=-1,E=5,T=-1;function b(){return!(e.unstable_now()-TR||125V?(R.sortIndex=_,t(u,R),n(a)===null&&R===n(u)&&(w?(y(g),g=-1):w=!0,F(S,_-V))):(R.sortIndex=U,t(a,R),x||h||(x=!0,H(C))),R},e.unstable_shouldYield=b,e.unstable_wrapCallback=function(R){var O=d;return function(){var _=d;d=O;try{return R.apply(this,arguments)}finally{d=_}}}})(Fc),Rc.exports=Fc;var Oy=Rc.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 zy=v,Ke=Oy;function D(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"),zs=Object.prototype.hasOwnProperty,By=/^[: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]*$/,Nc={},Kc={};function _y(e){return zs.call(Kc,e)?!0:zs.call(Nc,e)?!1:By.test(e)?Kc[e]=!0:(Nc[e]=!0,!1)}function Uy(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 Hy(e,t,n,r){if(t===null||typeof t>"u"||Uy(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 $e(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 ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new $e(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new $e(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new $e(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new $e(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){ge[e]=new $e(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new $e(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ge[e]=new $e(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ge[e]=new $e(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ge[e]=new $e(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bs=/[\-:]([a-z])/g;function _s(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(Bs,_s);ge[t]=new $e(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(Bs,_s);ge[t]=new $e(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(Bs,_s);ge[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)}),ge.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ge[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)});function Us(e,t,n,r){var i=ge.hasOwnProperty(t)?ge[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{qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?br(e):""}function Wy(e){switch(e.tag){case 5:return br(e.type);case 16:return br("Lazy");case 13:return br("Suspense");case 19:return br("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function el(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 jn:return"Fragment";case In:return"Portal";case Ws:return"Profiler";case Hs:return"StrictMode";case Qs:return"Suspense";case Ys:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jc:return(e.displayName||"Context")+".Consumer";case Ic:return(e._context.displayName||"Context")+".Provider";case Gs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xs:return t=e.displayName||null,t!==null?t:el(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return el(e(t))}catch{}}return null}function Gy(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 el(t);case 8:return t===Hs?"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 Rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qy(e){var t=Bc(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 ji(e){e._valueTracker||(e._valueTracker=Qy(e))}function _c(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oi(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 tl(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rt(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 Hc(e,t){t=t.checked,t!=null&&Us(e,"checked",t,!1)}function nl(e,t){Hc(e,t);var n=Rt(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")?rl(e,t.type,n):t.hasOwnProperty("defaultValue")&&rl(e,t.type,Rt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wc(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 rl(e,t,n){(t!=="number"||Oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function On(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dr={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},Yy=["Webkit","ms","Moz","O"];Object.keys(Dr).forEach(function(e){Yy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dr[t]=Dr[e]})});function qc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dr.hasOwnProperty(e)&&Dr[e]?(""+t).trim():t+"px"}function Jc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=qc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Xy=ne({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 sl(e,t){if(t){if(Xy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ll(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 al=null;function ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cl=null,zn=null,Bn=null;function ef(e){if(e=Jr(e)){if(typeof cl!="function")throw Error(D(280));var t=e.stateNode;t&&(t=co(t),cl(e.stateNode,e.type,t))}}function tf(e){zn?Bn?Bn.push(e):Bn=[e]:zn=e}function nf(){if(zn){var e=zn,t=Bn;if(Bn=zn=null,ef(e),t)for(e=0;e>>=0,e===0?32:31-(lv(e)/av|0)|0}var Wi=64,Gi=4194304;function Vr(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 Qi(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=Vr(l):(o&=s,o!==0&&(r=Vr(o)))}else s=n&~i,s!==0?r=Vr(s):o!==0&&(r=Vr(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 Nr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function dv(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=Ur),Df=" ",Af=!1;function Rf(e,t){switch(e){case"keyup":return Ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Bv(e,t){switch(e){case"compositionend":return Ff(t);case"keypress":return t.which!==32?null:(Af=!0,Df);case"textInput":return e=t.data,e===Df&&Af?null:e;default:return null}}function _v(e,t){if(Hn)return e==="compositionend"||!bl&&Rf(e,t)?(e=$f(),Ji=Pl=It=null,Hn=!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=zf(n)}}function _f(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_f(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(){for(var e=window,t=Oi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oi(e.document)}return t}function Dl(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 qv(e){var t=Uf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_f(n.ownerDocument.documentElement,n)){if(r!==null&&Dl(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=Bf(n,o);var s=Bf(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,Wn=null,Al=null,Qr=null,Rl=!1;function Hf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rl||Wn==null||Wn!==Oi(r)||(r=Wn,"selectionStart"in r&&Dl(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}),Qr&&Gr(Qr,r)||(Qr=r,r=lo(Al,"onSelect"),0Zn||(e.current=Hl[Zn],Hl[Zn]=null,Zn--)}function Y(e,t){Zn++,Hl[Zn]=e.current,e.current=t}var Bt={},xe=zt(Bt),Me=zt(!1),fn=Bt;function qn(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 Le(e){return e=e.childContextTypes,e!=null}function fo(){q(Me),q(xe)}function sd(e,t,n){if(xe.current!==Bt)throw Error(D(168));Y(xe,t),Y(Me,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(D(108,Gy(e)||"Unknown",i));return ne({},n,r)}function ho(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,fn=xe.current,Y(xe,e),Y(Me,Me.current),!0}function ad(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=ld(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,q(Me),q(xe),Y(xe,e)):q(Me),Y(Me,n)}var vt=null,po=!1,Wl=!1;function ud(e){vt===null?vt=[e]:vt.push(e)}function c0(e){po=!0,ud(e)}function _t(){if(!Wl&&vt!==null){Wl=!0;var e=0,t=Q;try{var n=vt;for(Q=1;e>=s,i-=s,xt=1<<32-qe(t)+i|n<g?(E=M,M=null):E=M.sibling;var T=d(y,M,m[g],S);if(T===null){M===null&&(M=E);break}e&&M&&T.alternate===null&&t(y,M),p=o(T,p,g),k===null?C=T:k.sibling=T,k=T,M=E}if(g===m.length)return n(y,M),ee&&hn(y,g),C;if(M===null){for(;gg?(E=M,M=null):E=M.sibling;var b=d(y,M,T.value,S);if(b===null){M===null&&(M=E);break}e&&M&&b.alternate===null&&t(y,M),p=o(b,p,g),k===null?C=b:k.sibling=b,k=b,M=E}if(T.done)return n(y,M),ee&&hn(y,g),C;if(M===null){for(;!T.done;g++,T=m.next())T=f(y,T.value,S),T!==null&&(p=o(T,p,g),k===null?C=T:k.sibling=T,k=T);return ee&&hn(y,g),C}for(M=r(y,M);!T.done;g++,T=m.next())T=h(M,y,g,T.value,S),T!==null&&(e&&T.alternate!==null&&M.delete(T.key===null?g:T.key),p=o(T,p,g),k===null?C=T:k.sibling=T,k=T);return e&&M.forEach(function(j){return t(y,j)}),ee&&hn(y,g),C}function P(y,p,m,S){if(typeof m=="object"&&m!==null&&m.type===jn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ii:e:{for(var C=m.key,k=p;k!==null;){if(k.key===C){if(C=m.type,C===jn){if(k.tag===7){n(y,k.sibling),p=i(k,m.props.children),p.return=y,y=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===At&&md(C)===k.type){n(y,k.sibling),p=i(k,m.props),p.ref=ei(y,k,m),p.return=y,y=p;break e}n(y,k);break}else t(y,k);k=k.sibling}m.type===jn?(p=Sn(m.props.children,y.mode,S,m.key),p.return=y,y=p):(S=Bo(m.type,m.key,m.props,null,y.mode,S),S.ref=ei(y,p,m),S.return=y,y=S)}return s(y);case In:e:{for(k=m.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(y,p.sibling),p=i(p,m.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=_a(m,y.mode,S),p.return=y,y=p}return s(y);case At:return k=m._init,P(y,p,k(m._payload),S)}if(Mr(m))return x(y,p,m,S);if(kr(m))return w(y,p,m,S);vo(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(y,p.sibling),p=i(p,m),p.return=y,y=p):(n(y,p),p=Ba(m,y.mode,S),p.return=y,y=p),s(y)):n(y,p)}return P}var nr=gd(!0),yd=gd(!1),xo=zt(null),wo=null,rr=null,ql=null;function Jl(){ql=rr=wo=null}function ea(e){var t=xo.current;q(xo),e._currentValue=t}function ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ir(e,t){wo=e,ql=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(De=!0),e.firstContext=null)}function He(e){var t=e._currentValue;if(ql!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(wo===null)throw Error(D(308));rr=e,wo.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var pn=null;function na(e){pn===null?pn=[e]:pn.push(e)}function vd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,na(t)):(n.next=i.next,i.next=n),t.interleaved=n,St(e,r)}function St(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ut=!1;function ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,St(e,n)}return i=r.interleaved,i===null?(t.next=t,na(r)):(t.next=i.next,i.next=t),r.interleaved=t,St(e,n)}function So(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yl(e,n)}}function wd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Po(e,t,n,r){var i=e.updateQueue;Ut=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,h=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,w=l;switch(d=t,h=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){f=x.call(h,f,d);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,d=typeof x=="function"?x.call(h,f,d):x,d==null)break e;f=ne({},f,d);break e;case 2:Ut=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);yn|=s,e.lanes=s,e.memoizedState=f}}function Sd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{Q=n,aa.transition=r}}function Od(){return We().memoizedState}function p0(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zd(e))Bd(t,n);else if(n=vd(e,t,n,r),n!==null){var i=ke();it(n,e,r,i),_d(n,t,r)}}function m0(e,t,n){var r=Yt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zd(e))Bd(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,Je(l,s)){var a=t.interleaved;a===null?(i.next=i,na(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=vd(e,t,i,r),n!==null&&(i=ke(),it(n,e,r,i),_d(n,t,r))}}function zd(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Bd(e,t){ii=$o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _d(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yl(e,n)}}var bo={readContext:He,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},g0={readContext:He,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:Ad,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4194308,4,Vd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eo(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();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=p0.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:ma,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=h0.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,i=ft();if(ee){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),me===null)throw Error(D(349));gn&30||$d(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ad(kd.bind(null,r,o,e),[e]),r.flags|=2048,li(9,Ed.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ft(),t=me.identifierPrefix;if(ee){var n=wt,r=xt;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oi++,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[ut]=t,e[qr]=r,uh(e,t,!1,!1),t.stateNode=e;e:{switch(s=ll(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;iur&&(t.flags|=128,r=!0,ai(o,!1),t.lanes=4194304)}else{if(!r)if(e=Co(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ai(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ee)return Se(t),null}else 2*ae()-o.renderingStartTime>ur&&n!==1073741824&&(t.flags|=128,r=!0,ai(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=ae(),t.sibling=null,n=re.current,Y(re,r?n&1|2:n&1),t):(Se(t),null);case 22:case 23:return ja(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function T0(e,t){switch(Ql(t),t.tag){case 1:return Le(t.type)&&fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),q(Me),q(xe),la(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oa(t),null;case 13:if(q(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(re),null;case 4:return or(),null;case 10:return ea(t.type._context),null;case 22:case 23:return ja(),null;case 24:return null;default:return null}}var Ao=!1,Pe=!1,$0=typeof WeakSet=="function"?WeakSet:Set,N=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function ka(e,t,n){try{n()}catch(r){se(e,t,r)}}var dh=!1;function E0(e,t){if(jl=Zi,e=Uf(),Dl(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 h;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),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ol={focusedElem:e,selectionRange:n},Zi=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,P=x.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?w:tt(t.type,w),P);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){se(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return x=dh,dh=!1,x}function ui(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&&ka(t,n,o)}i=i.next}while(i!==r)}}function Ro(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 ba(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 hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[qr],delete t[Ul],delete t[a0],delete t[u0])),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 ph(e){return e.tag===5||e.tag===3||e.tag===4}function mh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ph(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 Ma(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=uo));else if(r!==4&&(e=e.child,e!==null))for(Ma(e,t,n),e=e.sibling;e!==null;)Ma(e,t,n),e=e.sibling}function La(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(La(e,t,n),e=e.sibling;e!==null;)La(e,t,n),e=e.sibling}var ye=null,nt=!1;function Wt(e,t,n){for(n=n.child;n!==null;)gh(e,t,n),n=n.sibling}function gh(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(Hi,n)}catch{}switch(n.tag){case 5:Pe||lr(n,t);case 6:var r=ye,i=nt;ye=null,Wt(e,t,n),ye=r,nt=i,ye!==null&&(nt?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(nt?(e=ye,n=n.stateNode,e.nodeType===8?_l(e.parentNode,n):e.nodeType===1&&_l(e,n),zr(e)):_l(ye,n.stateNode));break;case 4:r=ye,i=nt,ye=n.stateNode.containerInfo,nt=!0,Wt(e,t,n),ye=r,nt=i;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ka(n,t,s),i=i.next}while(i!==r)}Wt(e,t,n);break;case 1:if(!Pe&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){se(n,t,l)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,Wt(e,t,n),Pe=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function yh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $0),t.forEach(function(r){var i=V0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*b0(r/1960))-r,10e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Io=0,G&6)throw Error(D(331));var i=G;for(G|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aae()-Ra?xn(e,0):Aa|=n),Re(e,t)}function Lh(e,t){t===0&&(e.mode&1?(t=Gi,Gi<<=1,!(Gi&130023424)&&(Gi=4194304)):t=1);var n=ke();e=St(e,t),e!==null&&(Nr(e,t,n),Re(e,n))}function F0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lh(e,n)}function V0(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(D(314))}r!==null&&r.delete(t),Lh(e,n)}var Dh;Dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Me.current)De=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return De=!1,P0(e,t,n);De=!!(e.flags&131072)}else De=!1,ee&&t.flags&1048576&&cd(t,go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Do(e,t),e=t.pendingProps;var i=qn(t,xe.current);ir(t,n),i=ca(null,t,r,e,i,n);var o=fa();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,Le(r)?(o=!0,ho(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ra(t),i.updater=Mo,t.stateNode=i,i._reactInternals=t,ya(t,r,e,n),t=Sa(null,t,r,!0,o,n)):(t.tag=0,ee&&o&&Gl(t),Ee(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Do(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=K0(r),e=tt(r,e),i){case 0:t=wa(null,t,r,e,n);break e;case 1:t=rh(null,t,r,e,n);break e;case 11:t=qd(null,t,r,e,n);break e;case 14:t=Jd(null,t,r,tt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),wa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),rh(e,t,r,i,n);case 3:e:{if(ih(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,xd(e,t),Po(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=sr(Error(D(423)),t),t=oh(e,t,r,n,i);break e}else if(r!==i){i=sr(Error(D(424)),t),t=oh(e,t,r,n,i);break e}else for(Oe=Ot(t.stateNode.containerInfo.firstChild),je=t,ee=!0,et=null,n=yd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===i){t=Ct(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return Pd(t),e===null&&Xl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zl(r,i)?s=null:o!==null&&zl(r,o)&&(t.flags|=32),nh(e,t),Ee(e,t,s,n),t.child;case 6:return e===null&&Xl(t),null;case 13:return sh(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),qd(e,t,r,i,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(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,Y(xo,r._currentValue),r._currentValue=s,o!==null)if(Je(o.value,s)){if(o.children===i.children&&!Me.current){t=Ct(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=Pt(-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),ta(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(D(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ta(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}Ee(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ir(t,n),i=He(i),r=r(i),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,i=tt(r,t.pendingProps),i=tt(r.type,i),Jd(e,t,r,i,n);case 15:return eh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),Do(e,t),t.tag=1,Le(r)?(e=!0,ho(t)):e=!1,ir(t,n),Hd(t,r,i),ya(t,r,i,n),Sa(null,t,r,!0,e,n);case 19:return ah(e,t,n);case 22:return th(e,t,n)}throw Error(D(156,t.tag))};function Ah(e,t){return ff(e,t)}function N0(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 Qe(e,t,n,r){return new N0(e,t,n,r)}function za(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K0(e){if(typeof e=="function")return za(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gs)return 11;if(e===Xs)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Qe(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 Bo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")za(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case jn:return Sn(n.children,i,o,t);case Hs:s=8,i|=8;break;case Ws:return e=Qe(12,n,t,i|2),e.elementType=Ws,e.lanes=o,e;case Qs:return e=Qe(13,n,t,i),e.elementType=Qs,e.lanes=o,e;case Ys:return e=Qe(19,n,t,i),e.elementType=Ys,e.lanes=o,e;case Oc:return _o(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ic:s=10;break e;case jc:s=9;break e;case Gs:s=11;break e;case Xs:s=14;break e;case At:s=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Qe(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Sn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function _o(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Oc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ba(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function _a(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I0(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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ua(e,t,n,r,i,o,s,l,a){return e=new I0(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ra(o),e}function j0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ih)}catch(e){console.error(e)}}Ih(),Ac.exports=Ne;var Xo=Ac.exports;const U0=Tr(Xo);function pi(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var H0=["color"],jh=v.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=pi(e,H0);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M8.81809 4.18179C8.99383 4.35753 8.99383 4.64245 8.81809 4.81819L6.13629 7.49999L8.81809 10.1818C8.99383 10.3575 8.99383 10.6424 8.81809 10.8182C8.64236 10.9939 8.35743 10.9939 8.1817 10.8182L5.1817 7.81819C5.09731 7.73379 5.0499 7.61933 5.0499 7.49999C5.0499 7.38064 5.09731 7.26618 5.1817 7.18179L8.1817 4.18179C8.35743 4.00605 8.64236 4.00605 8.81809 4.18179Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),W0=["color"],Oh=v.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=pi(e,W0);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M6.18194 4.18185C6.35767 4.00611 6.6426 4.00611 6.81833 4.18185L9.81833 7.18185C9.90272 7.26624 9.95013 7.3807 9.95013 7.50005C9.95013 7.6194 9.90272 7.73386 9.81833 7.81825L6.81833 10.8182C6.6426 10.994 6.35767 10.994 6.18194 10.8182C6.0062 10.6425 6.0062 10.3576 6.18194 10.1819L8.86374 7.50005L6.18194 4.81825C6.0062 4.64251 6.0062 4.35759 6.18194 4.18185Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),G0=["color"],Q0=v.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=pi(e,G0);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Y0=["color"],X0=v.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=pi(e,Y0);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Z0=["color"],q0=v.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=pi(e,Z0);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});class Qa{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Qa(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class J0{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class zh{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class mi extends zh{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof mi?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,i;let o=this.ownerDocument.getMutableNode(this);o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof mi?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var l;o.nextKey=(l=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&l!==void 0?l:null,o.hasChildNodes=!!this.firstChild;var a;o.firstChildKey=(a=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&a!==void 0?a:null;var u;o.lastChildKey=(u=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&u!==void 0?u:null}setProps(t,n,r,i){let o=this.ownerDocument.getMutableNode(this),{value:s,textValue:l,id:a,...u}=t;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=l||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",a!=null&&a!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=a}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Qa(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class e1 extends zh{get isConnected(){return this.isMounted}createElement(t){return new mi(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof mi&&o.isConnected&&o.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let o=this.getMutableCollection();for(let s of this.mutatedNodes)s.isConnected&&o.addNode(s.node);var r,i;o.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function Bh(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=e,s=v.useMemo(()=>new WeakMap,o);return v.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let c of n){let f=s.get(c);if(!f){f=t(c);var l,a;let d=(a=(l=f.props.id)!==null&&l!==void 0?l:c.key)!==null&&a!==void 0?a:c.id;if(d==null)throw new Error("Could not determine key for item");r&&(d=r+":"+d),f=v.cloneElement(f,i?{key:d,id:d,value:c}:{key:d}),s.set(c,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,n,s,r,i])}const Zo={prefix:String(Math.round(Math.random()*1e10)),current:0},_h=z.createContext(Zo),t1=z.createContext(!1);let n1=!!(typeof window<"u"&&window.document&&window.document.createElement),Ya=new WeakMap;function r1(e=!1){let t=v.useContext(_h),n=v.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=Ya.get(o);s==null?Ya.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,Ya.delete(o))}n.current=++t.current}return n.current}function i1(e){let t=v.useContext(_h);t===Zo&&!n1&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=r1(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function o1(e){let t=z.useId(),[n]=v.useState(gi()),r=n?"react-aria":`react-aria${Zo.prefix}`;return e||`${r}-${t}`}const s1=typeof z.useId=="function"?o1:i1;function l1(){return!1}function a1(){return!0}function u1(e){return()=>{}}function gi(){return typeof z.useSyncExternalStore=="function"?z.useSyncExternalStore(u1,l1,a1):v.useContext(t1)}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Xa=v.createContext(!1),c1=typeof DocumentFragment<"u"?new DocumentFragment:null;function f1(e){let t=v.useContext(Xa),n=gi();if(t)return z.createElement(z.Fragment,null,e.children);let r=z.createElement(Xa.Provider,{value:!0},e.children);return n?z.createElement("template",{"data-react-aria-hidden":!0},r):Xo.createPortal(r,c1)}function d1(e){let t=(n,r)=>v.useContext(Xa)?null:e(n,r);return t.displayName=e.displayName||e.name,v.forwardRef(t)}const Pn=typeof document<"u"?z.useLayoutEffect:()=>{};function Cn(e){const t=v.useRef(null);return Pn(()=>{t.current=e},[e]),v.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}let h1=!!(typeof window<"u"&&window.document&&window.document.createElement),qt=new Map;function Uh(e){let[t,n]=v.useState(e),r=v.useRef(null),i=s1(t),o=v.useCallback(s=>{r.current=s},[]);return h1&&(qt.has(i)&&!qt.get(i).includes(o)?qt.set(i,[...qt.get(i),o]):qt.set(i,[o])),Pn(()=>{let s=i;return()=>{qt.delete(s)}},[i]),v.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function p1(e,t){if(e===t)return e;let n=qt.get(e);if(n)return n.forEach(i=>i(t)),t;let r=qt.get(t);return r?(r.forEach(i=>i(e)),e):t}function Hh(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Fe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ot=e=>e&&"window"in e&&e.window===e?e:Fe(e).defaultView||window;function Wh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=Hh(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=m1(o,s):i==="id"&&o&&s?t.id=p1(o,s):t[i]=s!==void 0?s:o}}return t}function g1(...e){return e.length===1&&e[0]?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const y1=new Set(["id"]),v1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),x1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),w1=/^(data-.*)$/;function qo(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(y1.has(s)||n&&v1.has(s)||r&&x1.has(s)||i!=null&&i.has(s)||w1.test(s))&&(o[s]=e[s]);return o}function $t(e){if(S1())e.focus({preventScroll:!0});else{let t=P1(e);e.focus(),C1(t)}}let Jo=null;function S1(){if(Jo==null){Jo=!1;try{document.createElement("div").focus({get preventScroll(){return Jo=!0,!0}})}catch{}}return Jo}function P1(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Za(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Et(e){let t=null;return()=>(t==null&&(t=e()),t)}const Tn=Et(function(){return Za(/^Mac/i)}),T1=Et(function(){return Za(/^iPhone/i)}),Gh=Et(function(){return Za(/^iPad/i)||Tn()&&navigator.maxTouchPoints>1}),qa=Et(function(){return T1()||Gh()}),$1=Et(function(){return Tn()||qa()}),E1=Et(function(){return es(/AppleWebKit/i)&&!k1()}),k1=Et(function(){return es(/Chrome/i)}),Qh=Et(function(){return es(/Android/i)}),b1=Et(function(){return es(/Firefox/i)}),M1=v.createContext({isNative:!0,open:D1,useHref:e=>e});function Ja(){return v.useContext(M1)}function $n(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:l,shiftKey:a}=t;b1()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Tn()?o=!0:s=!0);let u=E1()&&Tn()&&!Gh()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:l,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:l,shiftKey:a,bubbles:!0,cancelable:!0});$n.isOpening=n,$t(e),e.dispatchEvent(u),$n.isOpening=!1}$n.isOpening=!1;function L1(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function D1(e,t){L1(e,n=>$n(n,t))}function A1(e){let t=Ja();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let fr=new Map,eu=new Set;function Yh(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=fr.get(r.target);i||(i=new Set,fr.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=fr.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),fr.delete(r.target)),fr.size===0)){for(let o of eu)o();eu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Yh():document.addEventListener("DOMContentLoaded",Yh));function Xh(e){requestAnimationFrame(()=>{fr.size===0?e():eu.add(e)})}function Zh(){let e=v.useRef(new Map),t=v.useCallback((i,o,s,l)=>{let a=l!=null&&l.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:o,eventTarget:i,fn:a,options:l}),i.addEventListener(o,s,l)},[]),n=v.useCallback((i,o,s,l)=>{var a;let u=((a=e.current.get(s))===null||a===void 0?void 0:a.fn)||s;i.removeEventListener(o,u,l),e.current.delete(s)},[]),r=v.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return v.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function qh(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Uh(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function ts(e){const t=v.useRef(null);return v.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function R1(e,t){Pn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function F1(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function V1(e,t){const n=[];for(;e&&e!==document.documentElement;)F1(e,t)&&n.push(e),e=e.parentElement;return n}let N1=0;const tu=new Map;function K1(e){let[t,n]=v.useState();return Pn(()=>{if(!e)return;let r=tu.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${N1++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},tu.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),tu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Jh(e,t,n,r){let i=Cn(n),o=n==null;v.useEffect(()=>{if(o||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,o,i])}function ep(e,t){let n=tp(e,t,"left"),r=tp(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(a,10),d=c+e.clientWidth,h=f+e.clientHeight;n<=s?s=n-parseInt(u,10):n+i>d&&(s+=n+i-d),r<=f?l=r-parseInt(a,10):r+o>h&&(l+=r+o-h),e.scrollLeft=s,e.scrollTop=l}function tp(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function np(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let a=V1(e);for(let u of a)ep(u,e)}else{var n;let{left:a,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(a-c)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function nu(e){return e.mozInputSource===0&&e.isTrusted?!0:Qh()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function I1(e){return!Qh()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function rp(e,t,n){let[r,i]=v.useState(e||t),o=v.useRef(e!==void 0),s=e!==void 0;v.useEffect(()=>{let u=o.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let l=s?e:r,a=v.useCallback((u,...c)=>{let f=(d,...h)=>{n&&(Object.is(l,d)||n(d,...h)),s||(l=d)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((h,...x)=>{let w=u(s?l:h,...x);return f(w,...c),s?h:w})):(s||i(u),f(u,...c))},[s,l,n]);return[l,a]}var ip={exports:{}},op={};/** * @license React * use-sync-external-store-shim.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 dr=v;function j1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var O1=typeof Object.is=="function"?Object.is:j1,z1=dr.useState,B1=dr.useEffect,_1=dr.useLayoutEffect,U1=dr.useDebugValue;function H1(e,t){var n=t(),r=z1({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return _1(function(){i.value=n,i.getSnapshot=t,ru(i)&&o({inst:i})},[e,n,t]),B1(function(){return ru(i)&&o({inst:i}),e(function(){ru(i)&&o({inst:i})})},[e]),U1(n),n}function ru(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!O1(e,n)}catch{return!0}}function W1(e,t){return t()}var G1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W1:H1;op.useSyncExternalStore=dr.useSyncExternalStore!==void 0?dr.useSyncExternalStore:G1,ip.exports=op;var Q1=ip.exports;const sp=v.createContext(!1),yi=v.createContext(null);function Y1(e){if(v.useContext(yi))return e.content;let{collection:n,document:r}=J1(e.createCollection);return z.createElement(z.Fragment,null,z.createElement(f1,null,z.createElement(yi.Provider,{value:r},e.content)),z.createElement(X1,{render:e.children,collection:n}))}function X1({collection:e,render:t}){return t(e)}function Z1(e,t,n){let r=gi(),i=v.useRef(r);i.current=r;let o=v.useCallback(()=>i.current?n():t(),[t,n]);return Q1.useSyncExternalStore(e,o)}const q1=typeof z.useSyncExternalStore=="function"?z.useSyncExternalStore:Z1;function J1(e){let[t]=v.useState(()=>new e1((e==null?void 0:e())||new J0)),n=v.useCallback(s=>t.subscribe(s),[t]),r=v.useCallback(()=>{let s=t.getCollection();return t.isSSR&&t.resetAfterSSR(),s},[t]),i=v.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),o=q1(n,r,i);return Pn(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:o,document:t}}const iu=v.createContext(null);function ex(e,t,n,r,i,o){let s=v.useCallback(a=>{a==null||a.setProps(t,n,r,o)},[t,n,r,o]),l=v.useContext(iu);if(l){let a=l.ownerDocument.nodesByProps.get(t);return a||(a=l.ownerDocument.createElement(e),a.setProps(t,n,r,o),l.appendChild(a),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,a)),i?z.createElement(iu.Provider,{value:a},i):null}return z.createElement(e,{ref:s},i)}function tx(e,t){let n=({node:i})=>t(i.props,i.props.ref,i),r=v.forwardRef((i,o)=>{if(!v.useContext(sp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,o)}return ex(e,i,o,"children"in i?i.children:null,null,l=>z.createElement(n,{node:l}))});return r.displayName=t.name,r}function nx(e){return Bh({...e,addIdAndValue:!0})}const lp=v.createContext(null);function rx(e){let t=v.useContext(lp),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),i=nx({...e,idScope:r,dependencies:n});return v.useContext(yi)&&(i=z.createElement(ix,null,i)),t=v.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),z.createElement(lp.Provider,{value:t},i)}function ix({children:e}){let t=v.useContext(yi),n=v.useMemo(()=>z.createElement(yi.Provider,{value:null},z.createElement(sp.Provider,{value:!0},e)),[e]);return gi()?z.createElement(iu.Provider,{value:t},n):Xo.createPortal(n,t)}const ox={CollectionRoot({collection:e,renderDropIndicator:t}){return ap(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return ap(e,t,n)}};function ap(e,t,n){return Bh({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let s=r.key,l=e.getKeyAfter(s);return z.createElement(z.Fragment,null,n({type:"item",key:s,dropPosition:"before"}),o,(l==null||((i=e.getItem(l))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:s,dropPosition:"after"}))}})}const sx=v.createContext(ox);function lx(e){return v.useMemo(()=>e!=null?new Set([e]):null,[e])}const up=Symbol("default");function cp({values:e,children:t}){for(let[n,r]of e)t=z.createElement(n.Provider,{value:r},t);return t}function ns(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:l}=e;return v.useMemo(()=>{let a,u,c;return typeof t=="function"?a=t({...l,defaultClassName:i}):a=t,typeof n=="function"?u=n({...l,defaultStyle:s||{}}):u=n,typeof r=="function"?c=r({...l,defaultChildren:o}):r==null?c=o:c=r,{className:a??i,style:u||s?{...s,...u}:void 0,children:c??o,"data-rac":""}},[t,n,r,i,o,s,l])}function fp(e,t){let n=v.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`));if(!t&&!n.slots[up])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||up;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function ax(e,t,n){let r=fp(n,e.slot)||{},{ref:i,...o}=r,s=ts(v.useMemo(()=>g1(t,i),[t,i])),l=st(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&(typeof o.style=="function"||typeof e.style=="function"?l.style=a=>{let u=typeof o.style=="function"?o.style(a):o.style,c={...a.defaultStyle,...u},f=typeof e.style=="function"?e.style({...a,defaultStyle:c}):e.style;return{...c,...f}}:l.style={...o.style,...e.style}),[l,s]}let hr="default",ou="",rs=new WeakMap;function dp(e){if(qa()){if(hr==="default"){const t=Fe(e);ou=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}hr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(rs.set(e,e.style.userSelect),e.style.userSelect="none")}function is(e){if(qa()){if(hr!=="disabled")return;hr="restoring",setTimeout(()=>{Xh(()=>{if(hr==="restoring"){const t=Fe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ou||""),ou="",hr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&rs.has(e)){let t=rs.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),rs.delete(e)}}const hp=z.createContext({register:()=>{}});hp.displayName="PressResponderContext";function ux(e,t){return t.get?t.get.call(e):t.value}function pp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cx(e,t){var n=pp(e,t,"get");return ux(e,n)}function fx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function dx(e,t,n){fx(e,t),t.set(e,n)}function hx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function mp(e,t,n){var r=pp(e,t,"set");return hx(e,r,n),n}function px(e){let t=v.useContext(hp);if(t){let{register:n,...r}=t;e=st(r,e),n()}return R1(t,e.ref),e}var os=new WeakMap;class ss{continuePropagation(){mp(this,os,!1)}get shouldStopPropagation(){return cx(this,os)}constructor(t,n,r,i){dx(this,os,{writable:!0,value:void 0}),mp(this,os,!0);var o;let s=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const l=s==null?void 0:s.getBoundingClientRect();let a,u=0,c,f=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,f=r.clientY),l&&(c!=null&&f!=null?(a=c-l.left,u=f-l.top):(a=l.width/2,u=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=a,this.y=u}}const gp=Symbol("linkClicked");function yp(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...d}=px(e),[h,x]=v.useState(!1),w=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:P,removeAllGlobalListeners:y}=Zh(),p=Cn((g,E)=>{let T=w.current;if(s||T.didFirePressStart)return!1;let b=!0;if(T.isTriggeringEvent=!0,r){let j=new ss("pressstart",E,g);r(j),b=j.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,x(!0),b}),m=Cn((g,E,T=!0)=>{let b=w.current;if(!b.didFirePressStart)return!1;b.ignoreClickAfterPress=!0,b.didFirePressStart=!1,b.isTriggeringEvent=!0;let j=!0;if(i){let $=new ss("pressend",E,g);i($),j=$.shouldStopPropagation}if(n&&n(!1),x(!1),t&&T&&!s){let $=new ss("press",E,g);t($),j&&(j=$.shouldStopPropagation)}return b.isTriggeringEvent=!1,j}),S=Cn((g,E)=>{let T=w.current;if(s)return!1;if(o){T.isTriggeringEvent=!0;let b=new ss("pressup",E,g);return o(b),T.isTriggeringEvent=!1,b.shouldStopPropagation}return!0}),C=Cn(g=>{let E=w.current;E.isPressed&&E.target&&(E.isOverTarget&&E.pointerType!=null&&m(kt(E.target,g),E.pointerType,!1),E.isPressed=!1,E.isOverTarget=!1,E.activePointerId=null,E.pointerType=null,y(),c||is(E.target))}),k=Cn(g=>{u&&C(g)}),M=v.useMemo(()=>{let g=w.current,E={onKeyDown(b){if(lu(b.nativeEvent,b.currentTarget)&&b.currentTarget.contains(b.target)){var j;wp(b.target,b.key)&&b.preventDefault();let $=!0;if(!g.isPressed&&!b.repeat){g.target=b.currentTarget,g.isPressed=!0,$=p(b,"keyboard");let I=b.currentTarget,L=H=>{lu(H,I)&&!H.repeat&&I.contains(H.target)&&g.target&&S(kt(g.target,H),"keyboard")};P(Fe(b.currentTarget),"keyup",Hh(L,T),!0)}$&&b.stopPropagation(),b.metaKey&&Tn()&&((j=g.metaKeyEvents)===null||j===void 0||j.set(b.key,b.nativeEvent))}else b.key==="Meta"&&(g.metaKeyEvents=new Map)},onClick(b){if(!(b&&!b.currentTarget.contains(b.target))&&b&&b.button===0&&!g.isTriggeringEvent&&!$n.isOpening){let j=!0;if(s&&b.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||nu(b.nativeEvent))){!s&&!a&&$t(b.currentTarget);let $=p(b,"virtual"),I=S(b,"virtual"),L=m(b,"virtual");j=$&&I&&L}g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1,j&&b.stopPropagation()}}},T=b=>{var j;if(g.isPressed&&g.target&&lu(b,g.target)){var $;wp(b.target,b.key)&&b.preventDefault();let L=b.target;m(kt(g.target,b),"keyboard",g.target.contains(L)),y(),b.key!=="Enter"&&su(g.target)&&g.target.contains(L)&&!b[gp]&&(b[gp]=!0,$n(g.target,b,!1)),g.isPressed=!1,($=g.metaKeyEvents)===null||$===void 0||$.delete(b.key)}else if(b.key==="Meta"&&(!((j=g.metaKeyEvents)===null||j===void 0)&&j.size)){var I;let L=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let H of L.values())(I=g.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",H))}};if(typeof PointerEvent<"u"){E.onPointerDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(I1(L.nativeEvent)){g.pointerType="virtual";return}au(L.currentTarget)&&L.preventDefault(),g.pointerType=L.pointerType;let H=!0;g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=L.pointerId,g.target=L.currentTarget,!s&&!a&&$t(L.currentTarget),c||dp(g.target),H=p(L,g.pointerType),P(Fe(L.currentTarget),"pointermove",b,!1),P(Fe(L.currentTarget),"pointerup",j,!1),P(Fe(L.currentTarget),"pointercancel",I,!1)),H&&L.stopPropagation()},E.onMouseDown=L=>{L.currentTarget.contains(L.target)&&L.button===0&&(au(L.currentTarget)&&L.preventDefault(),L.stopPropagation())},E.onPointerUp=L=>{!L.currentTarget.contains(L.target)||g.pointerType==="virtual"||L.button===0&&pr(L,L.currentTarget)&&S(L,g.pointerType||L.pointerType)};let b=L=>{L.pointerId===g.activePointerId&&(g.target&&pr(L,g.target)?!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,p(kt(g.target,L),g.pointerType)):g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,m(kt(g.target,L),g.pointerType,!1),k(L)))},j=L=>{L.pointerId===g.activePointerId&&g.isPressed&&L.button===0&&g.target&&(pr(L,g.target)&&g.pointerType!=null?m(kt(g.target,L),g.pointerType):g.isOverTarget&&g.pointerType!=null&&m(kt(g.target,L),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,y(),c||is(g.target),"ontouchend"in g.target&&L.pointerType!=="mouse"&&P(g.target,"touchend",$,{once:!0}))},$=L=>{xp(L.currentTarget)&&L.preventDefault()},I=L=>{C(L)};E.onDragStart=L=>{L.currentTarget.contains(L.target)&&C(L)}}else{E.onMouseDown=$=>{if($.button!==0||!$.currentTarget.contains($.target))return;if(au($.currentTarget)&&$.preventDefault(),g.ignoreEmulatedMouseEvents){$.stopPropagation();return}g.isPressed=!0,g.isOverTarget=!0,g.target=$.currentTarget,g.pointerType=nu($.nativeEvent)?"virtual":"mouse",!s&&!a&&$t($.currentTarget),p($,g.pointerType)&&$.stopPropagation(),P(Fe($.currentTarget),"mouseup",b,!1)},E.onMouseEnter=$=>{if(!$.currentTarget.contains($.target))return;let I=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&g.pointerType!=null&&(g.isOverTarget=!0,I=p($,g.pointerType)),I&&$.stopPropagation()},E.onMouseLeave=$=>{if(!$.currentTarget.contains($.target))return;let I=!0;g.isPressed&&!g.ignoreEmulatedMouseEvents&&g.pointerType!=null&&(g.isOverTarget=!1,I=m($,g.pointerType,!1),k($)),I&&$.stopPropagation()},E.onMouseUp=$=>{$.currentTarget.contains($.target)&&!g.ignoreEmulatedMouseEvents&&$.button===0&&S($,g.pointerType||"mouse")};let b=$=>{if($.button===0){if(g.isPressed=!1,y(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}g.target&&pr($,g.target)&&g.pointerType!=null?m(kt(g.target,$),g.pointerType):g.target&&g.isOverTarget&&g.pointerType!=null&&m(kt(g.target,$),g.pointerType,!1),g.isOverTarget=!1}};E.onTouchStart=$=>{if(!$.currentTarget.contains($.target))return;let I=mx($.nativeEvent);if(!I)return;g.activePointerId=I.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=$.currentTarget,g.pointerType="touch",!s&&!a&&$t($.currentTarget),c||dp(g.target),p(Jt(g.target,$),g.pointerType)&&$.stopPropagation(),P(ot($.currentTarget),"scroll",j,!0)},E.onTouchMove=$=>{if(!$.currentTarget.contains($.target))return;if(!g.isPressed){$.stopPropagation();return}let I=vp($.nativeEvent,g.activePointerId),L=!0;I&&pr(I,$.currentTarget)?!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,L=p(Jt(g.target,$),g.pointerType)):g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,L=m(Jt(g.target,$),g.pointerType,!1),k(Jt(g.target,$))),L&&$.stopPropagation()},E.onTouchEnd=$=>{if(!$.currentTarget.contains($.target))return;if(!g.isPressed){$.stopPropagation();return}let I=vp($.nativeEvent,g.activePointerId),L=!0;I&&pr(I,$.currentTarget)&&g.pointerType!=null?(S(Jt(g.target,$),g.pointerType),L=m(Jt(g.target,$),g.pointerType)):g.isOverTarget&&g.pointerType!=null&&(L=m(Jt(g.target,$),g.pointerType,!1)),L&&$.stopPropagation(),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,g.target&&!c&&is(g.target),y()},E.onTouchCancel=$=>{$.currentTarget.contains($.target)&&($.stopPropagation(),g.isPressed&&C(Jt(g.target,$)))};let j=$=>{g.isPressed&&$.target.contains(g.target)&&C({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};E.onDragStart=$=>{$.currentTarget.contains($.target)&&C($)}}return E},[P,s,a,y,c,C,k,m,p,S]);return v.useEffect(()=>()=>{var g;c||is((g=w.current.target)!==null&&g!==void 0?g:void 0)},[c]),{isPressed:l||h,pressProps:st(d,M)}}function su(e){return e.tagName==="A"&&e.hasAttribute("href")}function lu(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ot(i).HTMLInputElement&&!Sp(i,n)||i instanceof ot(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&su(i))&&n!=="Enter")}function mx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function vp(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function pr(e,t){let n=t.getBoundingClientRect(),r=gx(e);return yx(n,r)}function au(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function xp(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!su(e)}function wp(e,t){return e instanceof HTMLInputElement?!Sp(e,t):xp(e)}const vx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Sp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":vx.has(e.type)}class xx{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Pp(e){let t=v.useRef({isFocused:!1,observer:null});Pn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Cn(r=>{e==null||e(r)});return v.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new xx("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function wx(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=v.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),i&&i(!1),!0},[r,i]),s=Pp(o),l=v.useCallback(a=>{const u=Fe(a.target);a.target===a.currentTarget&&u.activeElement===a.target&&(n&&n(a),i&&i(!0),s(a))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?o:void 0}}}let mr=null,uu=new Set,vi=new Map,En=!1,cu=!1;const Sx={Tab:!0,Escape:!0};function fu(e,t){for(let n of uu)n(e,t)}function Px(e){return!(e.metaKey||!Tn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ls(e){En=!0,Px(e)&&(mr="keyboard",fu("keyboard",e))}function Ye(e){mr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(En=!0,fu("pointer",e))}function Cp(e){nu(e)&&(En=!0,mr="virtual")}function Tp(e){e.target===window||e.target===document||(!En&&!cu&&(mr="virtual",fu("virtual",e)),En=!1,cu=!1)}function $p(){En=!1,cu=!0}function du(e){if(typeof window>"u"||vi.get(ot(e)))return;const t=ot(e),n=Fe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){En=!0,r.apply(this,arguments)},n.addEventListener("keydown",ls,!0),n.addEventListener("keyup",ls,!0),n.addEventListener("click",Cp,!0),t.addEventListener("focus",Tp,!0),t.addEventListener("blur",$p,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ye,!0),n.addEventListener("pointermove",Ye,!0),n.addEventListener("pointerup",Ye,!0)):(n.addEventListener("mousedown",Ye,!0),n.addEventListener("mousemove",Ye,!0),n.addEventListener("mouseup",Ye,!0)),t.addEventListener("beforeunload",()=>{Ep(e)},{once:!0}),vi.set(t,{focus:r})}const Ep=(e,t)=>{const n=ot(e),r=Fe(e);t&&r.removeEventListener("DOMContentLoaded",t),vi.has(n)&&(n.HTMLElement.prototype.focus=vi.get(n).focus,r.removeEventListener("keydown",ls,!0),r.removeEventListener("keyup",ls,!0),r.removeEventListener("click",Cp,!0),n.removeEventListener("focus",Tp,!0),n.removeEventListener("blur",$p,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ye,!0),r.removeEventListener("pointermove",Ye,!0),r.removeEventListener("pointerup",Ye,!0)):(r.removeEventListener("mousedown",Ye,!0),r.removeEventListener("mousemove",Ye,!0),r.removeEventListener("mouseup",Ye,!0)),vi.delete(n))};function Cx(e){const t=Fe(e);let n;return t.readyState!=="loading"?du(e):(n=()=>{du(e)},t.addEventListener("DOMContentLoaded",n)),()=>Ep(e,n)}typeof document<"u"&&Cx();function kp(){return mr!=="pointer"}function hu(){return mr}const Tx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $x(e,t,n){var r;const i=typeof window<"u"?ot(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?ot(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ot(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?ot(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Tx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!Sx[n.key])}function Ex(e,t,n){du(),v.useEffect(()=>{let r=(i,o)=>{$x(!!(n!=null&&n.isTextInput),i,o)&&e(kp())};return uu.add(r),()=>{uu.delete(r)}},t)}function kx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=v.useRef({isFocusWithin:!1}),s=v.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),l=Pp(s),a=v.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:s}}}let as=!1,pu=0;function mu(){as=!0,setTimeout(()=>{as=!1},50)}function bp(e){e.pointerType==="touch"&&mu()}function bx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",bp):document.addEventListener("touchend",mu),pu++,()=>{pu--,!(pu>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",bp):document.removeEventListener("touchend",mu))}}function Mx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=v.useState(!1),l=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(bx,[]);let{hoverProps:a,triggerHoverEnd:u}=v.useMemo(()=>{let c=(h,x)=>{if(l.pointerType=x,i||x==="touch"||l.isHovered||!h.currentTarget.contains(h.target))return;l.isHovered=!0;let w=h.currentTarget;l.target=w,t&&t({type:"hoverstart",target:w,pointerType:x}),n&&n(!0),s(!0)},f=(h,x)=>{if(l.pointerType="",l.target=null,x==="touch"||!l.isHovered)return;l.isHovered=!1;let w=h.currentTarget;r&&r({type:"hoverend",target:w,pointerType:x}),n&&n(!1),s(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=h=>{as&&h.pointerType==="mouse"||c(h,h.pointerType)},d.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(d.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=h=>{!l.ignoreEmulatedMouseEvents&&!as&&c(h,"mouse"),l.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,i,l]);return v.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:a,isHovered:o}}const Lx=500;function Dx(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Lx,accessibilityDescription:s}=e;const l=v.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:u}=Zh(),{pressProps:c}=yp({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),l.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...d,type:"longpress"}),l.current=void 0},o),d.pointerType==="touch")){let h=x=>{x.preventDefault()};a(d.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){l.current&&clearTimeout(l.current),r&&(d.pointerType==="mouse"||d.pointerType==="touch")&&r({...d,type:"longpressend"})}}),f=K1(i&&!t?s:void 0);return{longPressProps:st(c,f)}}function gu(e){const t=Fe(e);if(hu()==="virtual"){let n=t.activeElement;Xh(()=>{t.activeElement===n&&e.isConnected&&$t(e)})}else $t(e)}function Ax(e){const t=ot(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:s,visibility:l}=o(e);i=s!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function Rx(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Mp(e,t){return e.nodeName!=="#comment"&&Ax(e)&&Rx(e,t)&&(!e.parentElement||Mp(e.parentElement,e))}const yu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Fx=yu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Vx=yu.join(':not([hidden]):not([tabindex="-1"]),');function Lp(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Dp(e,t,n){let r=t!=null&&t.tabbable?Vx:Fx,i=Fe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&Mp(o)&&(!n||Lp(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}class vu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Ap({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Lp(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new vu;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ap({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ap{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new vu;function xu(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=v.useRef({isFocused:!1,isFocusVisible:t||kp()}),[o,s]=v.useState(!1),[l,a]=v.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=v.useCallback(()=>a(i.current.isFocused&&i.current.isFocusVisible),[]),c=v.useCallback(h=>{i.current.isFocused=h,s(h),u()},[u]);Ex(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=wx({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=kx({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:l,focusProps:r?d:f}}function Nx(e,t){let n=t==null?void 0:t.isDisabled,[r,i]=v.useState(!1);return Pn(()=>{if(e!=null&&e.current&&!n){let o=()=>{if(e.current){let l=Dp(e.current,{tabbable:!0});i(!!l.nextNode())}};o();let s=new MutationObserver(o);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),n?!1:r}const Kx=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ix=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function jx(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Kx.has(n.script)}let t=e.split("-")[0];return Ix.has(t)}const Ox=Symbol.for("react-aria.i18n.locale");function Rp(){let e=typeof window<"u"&&window[Ox]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:jx(e)?"rtl":"ltr"}}let wu=Rp(),xi=new Set;function Fp(){wu=Rp();for(let e of xi)e(wu)}function zx(){let e=gi(),[t,n]=v.useState(wu);return v.useEffect(()=>(xi.size===0&&window.addEventListener("languagechange",Fp),xi.add(n),()=>{xi.delete(n),xi.size===0&&window.removeEventListener("languagechange",Fp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Bx=z.createContext(null);function Vp(){let e=zx();return v.useContext(Bx)||e}function Su(e){return $1()?e.altKey:e.ctrlKey}function gr(e){return Tn()?e.metaKey:e.ctrlKey}const _x=1e3;function Ux(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=v.useRef({search:"",timeout:null}).current,o=s=>{let l=Hx(s.key);if(!l||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;l===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=l;let a=t.getKeyForSearch(i.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(i.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},_x)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:null}}}function Hx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Wx(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:l=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:d,scrollRef:h=r,linkBehavior:x="action"}=e,{direction:w}=Vp(),P=Ja(),y=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current.contains(T.target))return;const b=(K,le)=>{if(K!=null){if(t.isLink(K)&&x==="selection"&&a&&!Su(T)){Xo.flushSync(()=>{t.setFocusedKey(K,le)});let J=h.current.querySelector(`[data-key="${CSS.escape(K.toString())}"]`),pt=t.getItemProps(K);P.open(J,T,pt.href,pt.routerOptions);return}if(t.setFocusedKey(K,le),t.isLink(K)&&x==="override")return;T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):a&&!Su(T)&&t.replaceSelection(K)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var j,$,I;let K=t.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,t.focusedKey):($=n.getFirstKey)===null||$===void 0?void 0:$.call(n);K==null&&o&&(K=(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n,t.focusedKey)),K!=null&&(T.preventDefault(),b(K))}break;case"ArrowUp":if(n.getKeyAbove){var L,H,F;let K=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n);K==null&&o&&(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,t.focusedKey)),K!=null&&(T.preventDefault(),b(K))}break;case"ArrowLeft":if(n.getKeyLeftOf){var R,O,_;let K=(R=n.getKeyLeftOf)===null||R===void 0?void 0:R.call(n,t.focusedKey);K==null&&o&&(K=w==="rtl"?(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),K!=null&&(T.preventDefault(),b(K,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var V,U,te;let K=(V=n.getKeyRightOf)===null||V===void 0?void 0:V.call(n,t.focusedKey);K==null&&o&&(K=w==="rtl"?(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,t.focusedKey):(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n,t.focusedKey)),K!=null&&(T.preventDefault(),b(K,w==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){T.preventDefault();let K=n.getFirstKey(t.focusedKey,gr(T));t.setFocusedKey(K),gr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):a&&t.replaceSelection(K)}break;case"End":if(n.getLastKey){T.preventDefault();let K=n.getLastKey(t.focusedKey,gr(T));t.setFocusedKey(K),gr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):a&&t.replaceSelection(K)}break;case"PageDown":if(n.getKeyPageBelow){let K=n.getKeyPageBelow(t.focusedKey);K!=null&&(T.preventDefault(),b(K))}break;case"PageUp":if(n.getKeyPageAbove){let K=n.getKeyPageAbove(t.focusedKey);K!=null&&(T.preventDefault(),b(K))}break;case"a":gr(T)&&t.selectionMode==="multiple"&&l!==!0&&(T.preventDefault(),t.selectAll());break;case"Escape":!s&&t.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(T.shiftKey)r.current.focus();else{let K=Dp(r.current,{tabbable:!0}),le,J;do J=K.lastChild(),J&&(le=J);while(J);le&&!le.contains(document.activeElement)&&$t(le)}break}}},p=v.useRef({top:0,left:0});Jh(h,"scroll",d?null:()=>{p.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let m=T=>{if(t.isFocused){T.currentTarget.contains(T.target)||t.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(t.setFocused(!0),t.focusedKey==null){let $=L=>{L!=null&&(t.setFocusedKey(L),a&&t.replaceSelection(L))},I=T.relatedTarget;var b,j;I&&T.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?$((b=t.lastSelectedKey)!==null&&b!==void 0?b:n.getLastKey()):$((j=t.firstSelectedKey)!==null&&j!==void 0?j:n.getFirstKey())}else d||(h.current.scrollTop=p.current.top,h.current.scrollLeft=p.current.left);if(t.focusedKey!=null){let $=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);$&&($.contains(document.activeElement)||$t($),hu()==="keyboard"&&np($,{containingElement:r.current}))}}},S=T=>{T.currentTarget.contains(T.relatedTarget)||t.setFocused(!1)};const C=v.useRef(i);v.useEffect(()=>{if(C.current){let T=null;i==="first"&&(T=n.getFirstKey()),i==="last"&&(T=n.getLastKey());let b=t.selectedKeys;if(b.size){for(let j of b)if(t.canSelectItem(j)){T=j;break}}t.setFocused(!0),t.setFocusedKey(T),T==null&&!c&&gu(r.current)}},[]);let k=v.useRef(t.focusedKey);v.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==k.current||C.current)&&(h!=null&&h.current)){let T=hu(),b=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!b)return;(T==="keyboard"||C.current)&&(ep(h.current,b),T!=="virtual"&&np(b,{containingElement:r.current}))}!c&&t.isFocused&&t.focusedKey==null&&k.current!=null&&gu(r.current),k.current=t.focusedKey,C.current=!1}),Jh(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),t.setFocused(!0)});let M={onKeyDown:y,onFocus:m,onBlur:S,onMouseDown(T){h.current===T.target&&T.preventDefault()}},{typeSelectProps:g}=Ux({keyboardDelegate:n,selectionManager:t});u||(M=st(g,M));let E;return c||(E=t.focusedKey==null?0:-1),{collectionProps:{...M,tabIndex:E}}}function Gx(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:s,isDisabled:l,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=Ja(),d=F=>{if(F.pointerType==="keyboard"&&Su(F))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){let R=t.getItemProps(n);f.open(r.current,F,R.href,R.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):F&&F.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||F&&(gr(F)||F.pointerType==="touch"||F.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};v.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(s?s():document.activeElement!==r.current&&gu(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),l=l||t.isDisabled(n);let h={};!o&&!l?h={tabIndex:n===t.focusedKey?0:-1,onFocus(F){F.target===r.current&&t.setFocusedKey(n)}}:l&&(h.onMouseDown=F=>{F.preventDefault()});let x=t.isLink(n)&&c==="override",w=t.isLink(n)&&c!=="selection"&&c!=="none",P=!l&&t.canSelectItem(n)&&!x,y=(a||w)&&!l,p=y&&(t.selectionBehavior==="replace"?!P:!P||t.isEmpty),m=y&&P&&t.selectionBehavior==="replace",S=p||m,C=v.useRef(null),k=S&&P,M=v.useRef(!1),g=v.useRef(!1),E=F=>{if(a&&a(),w){let R=t.getItemProps(n);f.open(r.current,F,R.href,R.routerOptions)}},T={};i?(T.onPressStart=F=>{C.current=F.pointerType,M.current=k,F.pointerType==="keyboard"&&(!S||Kp())&&d(F)},u?(T.onPressUp=p?null:F=>{F.pointerType!=="keyboard"&&P&&d(F)},T.onPress=p?E:null):T.onPress=F=>{if(p||m&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!Np())return;E(F)}else F.pointerType!=="keyboard"&&P&&d(F)}):(T.onPressStart=F=>{C.current=F.pointerType,M.current=k,g.current=p,P&&(F.pointerType==="mouse"&&!p||F.pointerType==="keyboard"&&(!y||Kp()))&&d(F)},T.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&S&&Np()||F.pointerType==="mouse"&&g.current)&&(S?E(F):P&&d(F))}),h["data-key"]=n,T.preventFocusOnPress=o;let{pressProps:b,isPressed:j}=yp(T),$=m?F=>{C.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),E(F))}:void 0,{longPressProps:I}=Dx({isDisabled:!k,onLongPress(F){F.pointerType==="touch"&&(d(F),t.setSelectionBehavior("toggle"))}}),L=F=>{C.current==="touch"&&M.current&&F.preventDefault()},H=t.isLink(n)?F=>{$n.isOpening||F.preventDefault()}:void 0;return{itemProps:st(h,P||p?b:{},k?I:{},{onDoubleClick:$,onDragStartCapture:L,onClick:H}),isPressed:j,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:P,hasAction:S}}function Np(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Kp(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Qx{build(t,n){return this.context=n,Ip(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(z.isValidElement(n)&&n.type===z.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let i of t.items)yield*this.getFullNode({value:i},{renderer:n})}else{let i=[];z.Children.forEach(n,s=>{i.push(s)});let o=0;for(let s of i){let l=this.getFullNode({element:s,index:o},{});for(let a of l)o++,yield a}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var s;let l=(s=o.key)!==null&&s!==void 0?s:o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(z.isValidElement(t.element)&&t.element.type===z.Fragment){let a=[];z.Children.forEach(t.element.props.children,c=>{a.push(c)});let u=t.index;for(const c of a)yield*this.getFullNode({element:c,index:u++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=i?i.key:null,yield a;return}o=n.renderer(t.value)}if(z.isValidElement(o)){let a=o.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let d=typeof o.type=="function"?o.type.name:o.type;throw new Error(`Unknown element <${d}> in collection.`)}let u=a.getCollectionNode(o.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let d=f.value;t.index=c;let h=d.key;h||(h=d.element?null:this.getKey(o,t,n,r));let w=[...this.getFullNode({...d,key:h,index:c,wrapper:Yx(t.wrapper,d.wrapper)},this.getChildState(n,d),r?`${r}${o.key}`:o.key,i)];for(let P of w){if(P.value=d.value||t.value,P.value&&this.cache.set(P.value,P),t.type&&P.type!==t.type)throw new Error(`Unsupported type <${Pu(P.type)}> in <${Pu(i.type)}>. Only <${Pu(t.type)}> is supported.`);c++,yield P}f=u.next(w)}return}if(t.key==null)return;let s=this,l={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Ip(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`),u.index=a;let c=s.getFullNode(u,s.getChildState(n,u),l.key,l);for(let f of c)a++,yield f}})};yield l}constructor(){this.cache=new WeakMap}}function Ip(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Yx(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Pu(e){return e[0].toUpperCase()+e.slice(1)}function Xx(e,t,n){let r=v.useMemo(()=>new Qx,[]),{children:i,items:o,collection:s}=e;return v.useMemo(()=>{if(s)return s;let a=r.build({children:i,items:o},n);return t(a)},[r,i,o,s,n,t])}function Zx(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function qx(e){return Jx(e)}function Jx(e,t){for(let n of e)return n}function Cu(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...jp(e,t),t],i=[...jp(e,n),n],o=r.slice(0,i.length).findIndex((s,l)=>s!==i[l]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function jp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Op=new WeakMap;function us(e,t,n){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Op.get(e)}-${n}-${t}`):""}function ew(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=e,{selectionManager:s,selectedKey:l}=t,a=r===l,u=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:c,isPressed:f}=Gx({selectionManager:s,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),d=us(t,r,"tab"),h=us(t,r,"tabpanel"),{tabIndex:x}=c,w=t.collection.getItem(r),P=qo(w==null?void 0:w.props,{labelable:!0});delete P.id;let y=A1(w==null?void 0:w.props);return{tabProps:st(P,y,c,{id:d,"aria-selected":a,"aria-disabled":u||void 0,"aria-controls":a?h:void 0,tabIndex:u?void 0:x,role:"tab"}),isSelected:a,isDisabled:u,isPressed:f}}function tw(e,t,n){let r=Nx(n)?void 0:0;var i;const o=us(t,(i=e.id)!==null&&i!==void 0?i:t==null?void 0:t.selectedKey,"tabpanel"),s=qh({...e,id:o,"aria-labelledby":us(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:st(s,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class nw{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var n,r;return this.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.isDisabled(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.isDisabled(t));return t}constructor(t,n,r,i=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function rw(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:o,selectionManager:s,disabledKeys:l}=t,{direction:a}=Vp(),u=v.useMemo(()=>new nw(o,a,r,l),[o,l,r,a]),{collectionProps:c}=Wx({ref:n,selectionManager:s,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Uh();Op.set(t,f);let d=qh({...e,id:f});return{tabListProps:{...st(c,d),role:"tablist","aria-orientation":r,tabIndex:void 0}}}class zp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let l of s.childNodes)n(l)};for(let s of t)n(s);let r=null,i=0;for(let[s,l]of this.keyMap)r?(r.nextKey=s,l.prevKey=r.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),r=l,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class lt extends Set{constructor(t,n,r){super(t),t instanceof lt?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function iw(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function ow(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,s=v.useRef(!1),[,l]=v.useState(!1),a=v.useRef(null),u=v.useRef(null),[,c]=v.useState(null),f=v.useMemo(()=>Bp(e.selectedKeys),[e.selectedKeys]),d=v.useMemo(()=>Bp(e.defaultSelectedKeys,new lt),[e.defaultSelectedKeys]),[h,x]=rp(f,d,e.onSelectionChange),w=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[P,y]=v.useState(i);i==="replace"&&P==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let p=v.useRef(i);return v.useEffect(()=>{i!==p.current&&(y(i),p.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:P,setSelectionBehavior:y,get isFocused(){return s.current},setFocused(m){s.current=m,l(m)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(m,S="first"){a.current=m,u.current=S,c(m)},selectedKeys:h,setSelectedKeys(m){(r||!iw(m,h))&&x(m)},disabledKeys:w,disabledBehavior:o}}function Bp(e,t){return e?e==="all"?"all":new lt(e):t}class sw{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Cu(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Cu(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new lt([t],t,t);else{let o=this.state.selectedKeys;var r;let s=(r=o.anchorKey)!==null&&r!==void 0?r:t;n=new lt(o,s,t);var i;for(let l of this.getKeyRange(s,(i=o.currentKey)!==null&&i!==void 0?i:t))n.delete(l);for(let l of this.getKeyRange(t,s))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Cu(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let s=this.collection.getItem(o);if((s&&s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new lt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new lt([t],t,t):new lt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new lt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){let i=this.collection.getItem(r);i.type==="item"&&t.push(r),i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n(qx(Zx(i,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new lt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function lw(e){let{filter:t,layoutDelegate:n}=e,r=ow(e),i=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=v.useCallback(c=>t?new zp(t(c)):new zp(c),[t]),s=v.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Xx(e,o,s),a=v.useMemo(()=>new sw(l,r,{layoutDelegate:n}),[l,r,n]);const u=v.useRef(null);return v.useEffect(()=>{if(r.focusedKey!=null&&!l.getItem(r.focusedKey)&&u.current){const y=u.current.getItem(r.focusedKey),p=[...u.current.getKeys()].map(g=>{const E=u.current.getItem(g);return(E==null?void 0:E.type)==="item"?E:null}).filter(g=>g!==null),m=[...l.getKeys()].map(g=>{const E=l.getItem(g);return(E==null?void 0:E.type)==="item"?E:null}).filter(g=>g!==null);var c,f;const S=((c=p==null?void 0:p.length)!==null&&c!==void 0?c:0)-((f=m==null?void 0:m.length)!==null&&f!==void 0?f:0);var d,h,x;let C=Math.min(S>1?Math.max(((d=y==null?void 0:y.index)!==null&&d!==void 0?d:0)-S+1,0):(h=y==null?void 0:y.index)!==null&&h!==void 0?h:0,((x=m==null?void 0:m.length)!==null&&x!==void 0?x:0)-1),k=null,M=!1;for(;C>=0;){if(!a.isDisabled(m[C].key)){k=m[C];break}if(C((w=y==null?void 0:y.index)!==null&&w!==void 0?w:0)&&(C=(P=y==null?void 0:y.index)!==null&&P!==void 0?P:0),C--}}r.setFocusedKey(k?k.key:null)}u.current=l},[l,a,r,r.focusedKey]),{collection:l,disabledKeys:i,selectionManager:a}}function aw(e){var t;let[n,r]=rp(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=v.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:s,selectionManager:l}=lw({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),a=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:s,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:a}}function uw(e){var t;let n=aw({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:_p(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:i,selectedKey:o}=n,s=v.useRef(o);return v.useEffect(()=>{let l=o;(r.isEmpty||!i.getItem(l))&&(l=_p(i,n.disabledKeys),l!=null&&r.setSelectedKeys([l])),(l!=null&&r.focusedKey==null||!r.isFocused&&l!==s.current)&&r.setFocusedKey(l),s.current=l}),{...n,isDisabled:e.isDisabled||!1}}function _p(e,t){let n=null;if(e){var r,i,o,s;for(n=e.getFirstKey();(t.has(n)||!((i=e.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||!((s=e.getItem(n))===null||s===void 0||(o=s.props)===null||o===void 0)&&o.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const cs=v.createContext(null),yr=v.createContext(null);function cw(e,t){[e,t]=ax(e,t,cs);let{children:n,orientation:r="horizontal"}=e;return n=v.useMemo(()=>typeof n=="function"?n({orientation:r,defaultChildren:null}):n,[n,r]),z.createElement(Y1,{content:n},i=>z.createElement(fw,{props:e,collection:i,tabsRef:t}))}function fw({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,i=uw({...e,collection:n,children:void 0}),{focusProps:o,isFocused:s,isFocusVisible:l}=xu({within:!0}),a=v.useMemo(()=>({orientation:r,isFocusWithin:s,isFocusVisible:l}),[r,s,l]),u=ns({...e,defaultClassName:"react-aria-Tabs",values:a});return z.createElement("div",{...qo(e),...o,...u,ref:t,slot:e.slot||void 0,"data-focused":s||void 0,"data-orientation":r,"data-focus-visible":l||void 0,"data-disabled":i.isDisabled||void 0},z.createElement(cp,{values:[[cs,e],[yr,i]]},u.children))}const dw=v.forwardRef(cw);function hw(e,t){return v.useContext(yr)?z.createElement(pw,{props:e,forwardedRef:t}):z.createElement(rx,e)}function pw({props:e,forwardedRef:t}){let n=v.useContext(yr),{CollectionRoot:r}=v.useContext(sx),{orientation:i="horizontal",keyboardActivation:o="automatic"}=fp(cs),s=ts(t),{tabListProps:l}=rw({...e,orientation:i,keyboardActivation:o},n,s),a=ns({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=qo(e);return delete u.id,z.createElement("div",{...u,...l,ref:s,...a,"data-orientation":i||void 0},z.createElement(r,{collection:n.collection,persistedKeys:lx(n.selectionManager.focusedKey)}))}const mw=v.forwardRef(hw),Up=tx("item",(e,t,n)=>{let r=v.useContext(yr),i=ts(t),{tabProps:o,isSelected:s,isDisabled:l,isPressed:a}=ew({key:n.key,...e},r,i),{focusProps:u,isFocused:c,isFocusVisible:f}=xu(),{hoverProps:d,isHovered:h}=Mx({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),x=ns({...e,id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:s,isDisabled:l,isFocused:c,isFocusVisible:f,isPressed:a,isHovered:h}}),w=n.props.href?"a":"div";return z.createElement(w,{...st(o,u,d,x),ref:i,"data-selected":s||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":a||void 0,"data-hovered":h||void 0})});function gw(e,t){const n=v.useContext(yr);let r=ts(t),{tabPanelProps:i}=tw(e,n,r),{focusProps:o,isFocused:s,isFocusVisible:l}=xu(),a=n.selectedKey===e.id,u=ns({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:l,isInert:!a,state:n}});if(!a&&!e.shouldForceMount)return null;let c=qo(e);delete c.id;let f=a?st(c,i,o,u):u;return z.createElement("div",{...f,ref:r,"data-focused":s||void 0,"data-focus-visible":l||void 0,inert:a?void 0:"true","data-inert":a?void 0:"true"},z.createElement(cp,{values:[[cs,null],[yr,null]]},u.children))}const yw=d1(gw),vw=({title:e,slideData:t,count:n,setCount:r,handleNext:i,handlePrevious:o,theme:s})=>{const[l,a]=v.useState(0),[u,c]=v.useState(!1),[f,d]=v.useState(!0);return v.useEffect(()=>{if(!f){const h=setInterval(()=>{l<100?a(x=>x+1):l>100&&n100&&n===t.length?(c(!u),a(0),clearInterval(h)):a(x=>x+1)},100);return u&&clearInterval(h),()=>{clearInterval(h)}}},[i,n,t.length,r,l,u,f]),A.jsxs("nav",{className:"visible flex w-full flex-col justify-between max-lg:hidden lg:basis-3/12",children:[A.jsxs(mw,{"aria-label":e,className:`flex justify-stretch gap-0 sm:mx-0 lg:flex-col xl:gap-0 ${s==="dark"&&""}`,children:[s==="light"&&(t==null?void 0:t.map((h,x)=>A.jsxs(Up,{id:`tab-${h.id}-${h.position}`,className:`relative box-border flex w-full cursor-pointer flex-col gap-1 overflow-hidden py-[1.3rem] font-display text-sm font-semibold text-sfnavy transition-all hover:text-sfprimary hover:underline hover:underline-offset-2 sm:gap-3 lg:flex-row lg:items-center lg:align-middle lg:text-base ${h.position===n?"rounded-md bg-white text-sfprimary shadow-nav transition-transform hover:no-underline":""}`,children:[h.position===n?A.jsx("div",{className:`countdown-display absolute top-0 h-[4px] bg-sfprimary transition-all ${f&&"w-100"}`,style:f?{width:"100%"}:{width:l*1e3/1e3+"%"}&&n===t.length&&u?{width:"100%"}:{width:l*1e3/1e3+"%"}}):A.jsx("div",{className:"countdown-display absolute top-0 h-[2px] bg-transparent"}),A.jsx("span",{className:"visible px-3 text-left text-xs leading-tight max-sm:hidden xl:text-base xl:leading-normal",children:h.title})]},h.id))),s==="dark"&&(t==null?void 0:t.map((h,x)=>A.jsxs(Up,{id:`tab-${h.id}-${h.position}`,className:`relative box-border flex w-full cursor-pointer flex-col gap-1 overflow-hidden py-[1.3rem] font-display text-sm font-semibold text-white transition-all hover:rounded-md ${h.position===n?"gt-tablist-dark rounded-md bg-[#0000005d] text-white bg-blend-luminosity transition-transform hover:no-underline":" hover:bg-white/10 hover:underline hover:underline-offset-2 sm:gap-3 lg:flex-row lg:items-center lg:align-middle lg:text-base"}`,children:[h.position===n?A.jsx("div",{className:`countdown-display absolute top-0 h-[4px] bg-sfaccentdata transition-all ${f&&"w-100"}`,style:f?{width:"100%",background:"#04E1CB"}:{width:l*1e3/1e3+"%"}&&n===t.length&&u?{width:"100%"}:{width:l*1e3/1e3+"%"}}):A.jsx("div",{className:"countdown-display absolute top-0 h-[2px] bg-transparent"}),A.jsx("span",{className:"visible px-3 text-left text-xs leading-tight text-white max-sm:hidden xl:text-base xl:leading-normal",children:h.title})]},h.id)))]}),A.jsxs("div",{className:`visible flex flex-row items-center gap-3 border-t pt-4 text-center align-middle text-sm max-lg:hidden ${s==="dark"&&"border-t border-[#73A3C7]"}`,children:[A.jsx("button",{className:"flex h-10 w-10 flex-shrink items-center justify-center rounded-full bg-white text-sfnavy ring-2 ring-sfprimary transition-transform enabled:hover:bg-sfprimary enabled:hover:text-white disabled:cursor-not-allowed disabled:bg-[#c9c9c9] disabled:text-white disabled:opacity-60 disabled:ring-0 disabled:hover:bg-[#c9c9c9]",onClick:()=>{o(),u?c(!1):a(0)},disabled:!(n>1),"aria-label":"Previous Slide",tabIndex:-1,children:A.jsx(jh,{width:22,height:22})}),A.jsx("button",{className:"flex h-10 w-10 flex-shrink items-center justify-center rounded-full bg-white text-sfnavy ring-2 ring-sfprimary transition-transform enabled:hover:bg-sfprimary enabled:hover:text-white disabled:cursor-not-allowed disabled:bg-[#c9c9c9] disabled:text-white disabled:opacity-60 disabled:ring-0 disabled:hover:bg-[#c9c9c9]",onClick:()=>{i(),u?c(!1):a(0)},disabled:!(n{c(h=>!h)},"aria-label":u?"Start autoplay":"Pause autoplay",tabIndex:-1,children:u?A.jsx(q0,{width:18,height:18}):A.jsx(X0,{width:18,height:18})})})]})]})},Hp=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),fs=v.createContext({}),ds=v.createContext(null),hs=typeof document<"u",Tu=hs?v.useLayoutEffect:v.useEffect,Wp=v.createContext({strict:!1}),$u=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Gp="data-"+$u("framerAppearId");function xw(e,t,n,r){const{visualElement:i}=v.useContext(fs),o=v.useContext(Wp),s=v.useContext(ds),l=v.useContext(Hp).reducedMotion,a=v.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;v.useInsertionEffect(()=>{u&&u.update(n,s)});const c=v.useRef(!!(n[Gp]&&!window.HandoffComplete));return Tu(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),v.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function vr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ww(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):vr(n)&&(n.current=r))},[t])}function wi(e){return typeof e=="string"||Array.isArray(e)}function ps(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ku=["initial",...Eu];function ms(e){return ps(e.animate)||ku.some(t=>wi(e[t]))}function Qp(e){return!!(ms(e)||e.variants)}function Sw(e,t){if(ms(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wi(n)?n:void 0,animate:wi(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pw(e){const{initial:t,animate:n}=Sw(e,v.useContext(fs));return v.useMemo(()=>({initial:t,animate:n}),[Yp(t),Yp(n)])}function Yp(e){return Array.isArray(e)?e.join(" "):e}const Xp={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"]},Si={};for(const e in Xp)Si[e]={isEnabled:t=>Xp[e].some(n=>!!t[n])};function Cw(e){for(const t in e)Si[t]={...Si[t],...e[t]}}const bu=v.createContext({}),Zp=v.createContext({}),Tw=Symbol.for("motionComponentSymbol");function $w({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Cw(e);function o(l,a){let u;const c={...v.useContext(Hp),...l,layoutId:Ew(l)},{isStatic:f}=c,d=Pw(l),h=r(l,f);if(!f&&hs){d.visualElement=xw(i,h,c,t);const x=v.useContext(Zp),w=v.useContext(Wp).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,w,e,x))}return v.createElement(fs.Provider,{value:d},u&&d.visualElement?v.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,ww(h,d.visualElement,a),h,f,d.visualElement))}const s=v.forwardRef(o);return s[Tw]=i,s}function Ew({layoutId:e}){const t=v.useContext(bu).id;return t&&e!==void 0?t+"-"+e:e}function kw(e){function t(r,i={}){return $w(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 bw=["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 Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(bw.indexOf(e)>-1||/[A-Z]/.test(e))}const gs={};function Mw(e){Object.assign(gs,e)}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kn=new Set(Pi);function qp(e,{layout:t,layoutId:n}){return kn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!gs[e]||e==="opacity")}const Ve=e=>!!(e&&e.getVelocity),Lw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dw=Pi.length;function Aw(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),em=Jp("--"),Lu=Jp("var(--"),Rw=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Fw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,en=(e,t,n)=>Math.min(Math.max(n,e),t),bn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ci={...bn,transform:e=>en(0,1,e)},ys={...bn,default:1},Ti=e=>Math.round(e*1e5)/1e5,vs=/(-)?([\d]*\.?[\d])+/g,tm=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Vw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $i(e){return typeof e=="string"}const Ei=e=>({test:t=>$i(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tn=Ei("deg"),ht=Ei("%"),B=Ei("px"),Nw=Ei("vh"),Kw=Ei("vw"),nm={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)},rm={...bn,transform:Math.round},im={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,size:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:ys,scaleX:ys,scaleY:ys,scaleZ:ys,skew:tn,skewX:tn,skewY:tn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Ci,originX:nm,originY:nm,originZ:B,zIndex:rm,fillOpacity:Ci,strokeOpacity:Ci,numOctaves:rm};function Du(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(em(f)){o[f]=d;continue}const h=im[f],x=Fw(d,h);if(kn.has(f)){if(a=!0,s[f]=x,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=x):i[f]=x}if(t.transform||(a||r?i.transform=Aw(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=l;i.transformOrigin=`${f} ${d} ${h}`}}const Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function om(e,t,n){for(const r in t)!Ve(t[r])&&!qp(r,n)&&(e[r]=t[r])}function Iw({transformTemplate:e},t,n){return v.useMemo(()=>{const r=Au();return Du(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function jw(e,t,n){const r=e.style||{},i={};return om(i,r,e),Object.assign(i,Iw(e,t,n)),e.transformValues?e.transformValues(i):i}function Ow(e,t,n){const r={},i=jw(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 zw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||zw.has(e)}let sm=e=>!xs(e);function Bw(e){e&&(sm=t=>t.startsWith("on")?!xs(t):e(t))}try{Bw(require("@emotion/is-prop-valid").default)}catch{}function _w(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(sm(i)||n===!0&&xs(i)||!t&&!xs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function lm(e,t,n){return typeof e=="string"?e:B.transform(t+n*e)}function Uw(e,t,n){const r=lm(t,e.x,e.width),i=lm(n,e.y,e.height);return`${r} ${i}`}const Hw={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ww={offset:"strokeDashoffset",array:"strokeDasharray"};function Gw(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Hw:Ww;e[o.offset]=B.transform(-r);const s=B.transform(t),l=B.transform(n);e[o.array]=`${s} ${l}`}function Ru(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(Du(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:x,dimensions:w}=e;h.transform&&(w&&(x.transform=h.transform),delete h.transform),w&&(i!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=Uw(w,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&Gw(h,s,l,a,!1)}const am=()=>({...Au(),attrs:{}}),Fu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qw(e,t,n,r){const i=v.useMemo(()=>{const o=am();return Ru(o,t,{enableHardwareAcceleration:!1},Fu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};om(o,e.style,e),i.style={...o,...i.style}}return i}function Yw(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Mu(n)?Qw:Ow)(r,o,s,n),c={..._w(r,typeof n=="string",e),...a,ref:i},{children:f}=r,d=v.useMemo(()=>Ve(f)?f.get():f,[f]);return v.createElement(n,{...c,children:d})}}function um(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 cm=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 fm(e,t,n,r){um(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(cm.has(i)?i:$u(i),t.attrs[i])}function Vu(e,t){const{style:n}=e,r={};for(const i in n)(Ve(n[i])||t.style&&Ve(t.style[i])||qp(i,e))&&(r[i]=n[i]);return r}function dm(e,t){const n=Vu(e,t);for(const r in e)if(Ve(e[r])||Ve(t[r])){const i=Pi.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Nu(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 hm(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const ws=e=>Array.isArray(e),Xw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Zw=e=>ws(e)?e[e.length-1]||0:e;function Ss(e){const t=Ve(e)?e.get():e;return Xw(t)?t.toValue():t}function qw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Jw(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const pm=e=>(t,n)=>{const r=v.useContext(fs),i=v.useContext(ds),o=()=>qw(e,t,r,i);return n?o():hm(o)};function Jw(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ss(o[d]);let{initial:s,animate:l}=e;const a=ms(e),u=Qp(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"&&!ps(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const x=Nu(e,h);if(!x)return;const{transitionEnd:w,transition:P,...y}=x;for(const p in y){let m=y[p];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(i[p]=m)}for(const p in w)i[p]=w[p]}),i}const ue=e=>e;class mm{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 eS(e){let t=new mm,n=new mm,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]=eS(()=>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,tS),1),i.timestamp=f,i.isProcessing=!0,Ps.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ps.reduce((f,d)=>{const h=o[d];return f[d]=(x,w=!1,P=!1)=>(n||a(),h.schedule(x,w,P)),f},{}),cancel:f=>Ps.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:X,cancel:bt,state:Ce,steps:Ku}=nS(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0),rS={useVisualState:pm({scrapeMotionValuesFromProps:dm,createRenderState:am,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{Ru(n,r,{enableHardwareAcceleration:!1},Fu(t.tagName),e.transformTemplate),fm(t,n)})}})},iS={useVisualState:pm({scrapeMotionValuesFromProps:Vu,createRenderState:Au})};function oS(e,{forwardMotionProps:t=!1},n,r){return{...Mu(e)?rS:iS,preloadedFeatures:n,useRender:Yw(t),createVisualElement:r,Component:e}}function Mt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Cs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const sS=e=>t=>gm(t)&&e(t,Cs(t));function Lt(e,t,n,r){return Mt(e,t,sS(n),r)}const lS=(e,t)=>n=>t(e(n)),nn=(...e)=>e.reduce(lS);function ym(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vm=ym("dragHorizontal"),xm=ym("dragVertical");function wm(e){let t=!1;if(e==="y")t=xm();else if(e==="x")t=vm();else{const n=vm(),r=xm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Sm(){const e=wm(!0);return e?(e(),!1):!0}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Sm())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&X.update(()=>l[r](o,s))};return Lt(e.current,n,i,{passive:!e.getProps()[r]})}class aS extends rn{mount(){this.unmount=nn(Pm(this.node,!0),Pm(this.node,!1))}unmount(){}}class uS extends rn{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=nn(Mt(this.node.current,"focus",()=>this.onFocus()),Mt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Cm=(e,t)=>t?e===t?!0:Cm(e,t.parentElement):!1;function Iu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Cs(n))}class cS extends rn{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Lt(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();X.update(()=>{!f&&!Cm(this.node.current,l.target)?c&&c(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=Lt(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=nn(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()||Iu("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=Mt(this.node.current,"keyup",s),Iu("down",(l,a)=>{this.startPress(l,a)})},n=Mt(this.node.current,"keydown",t),r=()=>{this.isPressing&&Iu("cancel",(o,s)=>this.cancelPress(o,s))},i=Mt(this.node.current,"blur",r);this.removeAccessibleListeners=nn(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&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Sm()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Lt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Mt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=nn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ju=new WeakMap,Ou=new WeakMap,fS=e=>{const t=ju.get(e.target);t&&t(e)},dS=e=>{e.forEach(fS)};function hS({root:e,...t}){const n=e||document;Ou.has(n)||Ou.set(n,{});const r=Ou.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(dS,{root:e,...t})),r[i]}function pS(e,t,n){const r=hS(t);return ju.set(e,n),r.observe(e),()=>{ju.delete(e),r.unobserve(e)}}const mS={some:0,all:1};class gS extends rn{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:mS[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 pS(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(yS(t,n))&&this.startObserver()}unmount(){}}function yS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vS={inView:{Feature:gS},tap:{Feature:cS},focus:{Feature:uS},hover:{Feature:aS}};function Tm(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 wS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ts(e,t,n){const r=e.getProps();return Nu(r,t,n!==void 0?n:r.custom,xS(e),wS(e))}let $s=ue;const Mn=e=>e*1e3,Dt=e=>e/1e3,SS={current:!1},$m=e=>Array.isArray(e)&&typeof e[0]=="number";function Em(e){return!!(!e||typeof e=="string"&&km[e]||$m(e)||Array.isArray(e)&&e.every(Em))}const ki=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,km={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ki([0,.65,.55,1]),circOut:ki([.55,0,1,.45]),backIn:ki([.31,.01,.66,-.59]),backOut:ki([.33,1.53,.69,.99])};function bm(e){if(e)return $m(e)?ki(e):Array.isArray(e)?e.map(bm):km[e]}function PS(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=bm(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 CS(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Mm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,TS=1e-7,$S=12;function ES(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=Mm(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>TS&&++l<$S);return s}function bi(e,t,n,r){if(e===t&&n===r)return ue;const i=o=>ES(o,0,1,e,n);return o=>o===0||o===1?o:Mm(i(o),t,r)}const kS=bi(.42,0,1,1),bS=bi(0,0,.58,1),Lm=bi(.42,0,.58,1),MS=e=>Array.isArray(e)&&typeof e[0]!="number",Dm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Am=e=>t=>1-e(1-t),zu=e=>1-Math.sin(Math.acos(e)),Rm=Am(zu),LS=Dm(zu),Fm=bi(.33,1.53,.69,.99),Bu=Am(Fm),DS=Dm(Bu),Vm={linear:ue,easeIn:kS,easeInOut:Lm,easeOut:bS,circIn:zu,circInOut:LS,circOut:Rm,backIn:Bu,backInOut:DS,backOut:Fm,anticipate:e=>(e*=2)<1?.5*Bu(e):.5*(2-Math.pow(2,-10*(e-1)))},Nm=e=>{if(Array.isArray(e)){$s(e.length===4);const[t,n,r,i]=e;return bi(t,n,r,i)}else if(typeof e=="string")return $s(Vm[e]!==void 0),Vm[e];return e},_u=(e,t)=>n=>!!($i(n)&&Vw.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Km=(e,t,n)=>r=>{if(!$i(r))return r;const[i,o,s,l]=r.match(vs);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},AS=e=>en(0,255,e),Uu={...bn,transform:e=>Math.round(AS(e))},Ln={test:_u("rgb","red"),parse:Km("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uu.transform(e)+", "+Uu.transform(t)+", "+Uu.transform(n)+", "+Ti(Ci.transform(r))+")"};function RS(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 Hu={test:_u("#"),parse:RS,transform:Ln.transform},xr={test:_u("hsl","hue"),parse:Km("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Ti(t))+", "+ht.transform(Ti(n))+", "+Ti(Ci.transform(r))+")"},be={test:e=>Ln.test(e)||Hu.test(e)||xr.test(e),parse:e=>Ln.test(e)?Ln.parse(e):xr.test(e)?xr.parse(e):Hu.parse(e),transform:e=>$i(e)?e:e.hasOwnProperty("red")?Ln.transform(e):xr.transform(e)},oe=(e,t,n)=>-n*e+n*t+e;function Wu(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 FS({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=Wu(a,l,e+1/3),o=Wu(a,l,e),s=Wu(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Gu=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},VS=[Hu,Ln,xr],NS=e=>VS.find(t=>t.test(e));function Im(e){const t=NS(e);let n=t.parse(e);return t===xr&&(n=FS(n)),n}const jm=(e,t)=>{const n=Im(e),r=Im(t),i={...n};return o=>(i.red=Gu(n.red,r.red,o),i.green=Gu(n.green,r.green,o),i.blue=Gu(n.blue,r.blue,o),i.alpha=oe(n.alpha,r.alpha,o),Ln.transform(i))};function KS(e){var t,n;return isNaN(e)&&$i(e)&&(((t=e.match(vs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(tm))===null||n===void 0?void 0:n.length)||0)>0}const Om={regex:Rw,countKey:"Vars",token:"${v}",parse:ue},zm={regex:tm,countKey:"Colors",token:"${c}",parse:be.parse},Bm={regex:vs,countKey:"Numbers",token:"${n}",parse:bn.parse};function Qu(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Es(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Qu(n,Om),Qu(n,zm),Qu(n,Bm),n}function _m(e){return Es(e).values}function Um(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Es(e),o=t.length;return s=>{let l=i;for(let a=0;atypeof e=="number"?0:e;function jS(e){const t=_m(e);return Um(e)(t.map(IS))}const on={test:KS,parse:_m,createTransformer:Um,getAnimatableNone:jS},Hm=(e,t)=>n=>`${n>0?t:e}`;function Wm(e,t){return typeof e=="number"?n=>oe(e,t,n):be.test(e)?jm(e,t):e.startsWith("var(")?Hm(e,t):Qm(e,t)}const Gm=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Wm(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Wm(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Qm=(e,t)=>{const n=on.createTransformer(t),r=Es(e),i=Es(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?nn(Gm(r.values,i.values),n):Hm(e,t)},Mi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ym=(e,t)=>n=>oe(e,t,n);function zS(e){return typeof e=="number"?Ym:typeof e=="string"?be.test(e)?jm:Qm:Array.isArray(e)?Gm:typeof e=="object"?OS:Ym}function BS(e,t,n){const r=[],i=n||zS(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=BS(t,r,i),l=s.length,a=u=>{let c=0;if(l>1)for(;ca(en(e[0],e[o-1],u)):a}function _S(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Mi(0,t,r);e.push(oe(n,1,i))}}function US(e){const t=[0];return _S(t,e.length-1),t}function HS(e,t){return e.map(n=>n*t)}function WS(e,t){return e.map(()=>t||Lm).splice(0,e.length-1)}function ks({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=MS(r)?r.map(Nm):Nm(r),o={done:!1,value:t[0]},s=HS(n&&n.length===t.length?n:US(t),e),l=Xm(s,t,{ease:Array.isArray(i)?i:WS(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Zm(e,t){return t?e*(1e3/t):0}const GS=5;function qm(e,t,n){const r=Math.max(t-GS,0);return Zm(n-e(r),t-r)}const Yu=.001,QS=.01,YS=10,XS=.05,ZS=1;function qS({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=en(XS,ZS,s),e=en(QS,YS,Dt(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=Xu(u,s),x=Math.exp(-f);return Yu-d/h*x},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-f),w=Xu(Math.pow(u,2),s);return(-i(u)+Yu>0?-1:1)*((d-h)*x)/w}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Yu+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=eP(i,o,l);if(e=Mn(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 JS=12;function eP(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function rP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jm(e,nP)&&Jm(e,tP)){const n=qS(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function eg({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}=rP({...r,velocity:-Dt(r.velocity||0)}),h=f||0,x=a/(2*Math.sqrt(l*u)),w=o-i,P=Dt(Math.sqrt(l/u)),y=Math.abs(w)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let p;if(x<1){const m=Xu(P,x);p=S=>{const C=Math.exp(-x*P*S);return o-C*((h+x*P*w)/m*Math.sin(m*S)+w*Math.cos(m*S))}}else if(x===1)p=m=>o-Math.exp(-P*m)*(w+(h+P*w)*m);else{const m=P*Math.sqrt(x*x-1);p=S=>{const C=Math.exp(-x*P*S),k=Math.min(m*S,300);return o-C*((h+x*P*w)*Math.sinh(k)+m*w*Math.cosh(k))/m}}return{calculatedDuration:d&&c||null,next:m=>{const S=p(m);if(d)s.done=m>=c;else{let C=h;m!==0&&(x<1?C=qm(p,m,S):C=0);const k=Math.abs(C)<=n,M=Math.abs(o-S)<=t;s.done=k&&M}return s.value=s.done?o:S,s}}}function tg({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},h=g=>l!==void 0&&ga,x=g=>l===void 0?a:a===void 0||Math.abs(l-g)-w*Math.exp(-g/r),m=g=>y+p(g),S=g=>{const E=p(g),T=m(g);d.done=Math.abs(E)<=u,d.value=d.done?y:T};let C,k;const M=g=>{h(d.value)&&(C=g,k=eg({keyframes:[d.value,x(d.value)],velocity:qm(m,g,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:g=>{let E=!1;return!k&&C===void 0&&(E=!0,S(g),M(g)),C!==void 0&&g>C?k.next(g-C):(!E&&S(g),d)}}}const iP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>bt(t),now:()=>Ce.isProcessing?Ce.timestamp:performance.now()}},ng=2e4;function rg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ng?1/0:t}const oP={decay:tg,inertia:tg,tween:ks,keyframes:ks,spring:eg};function bs({autoplay:e=!0,delay:t=0,driver:n=iP,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...d}){let h=1,x=!1,w,P;const y=()=>{P=new Promise(V=>{w=V})};y();let p;const m=oP[i]||ks;let S;m!==ks&&typeof r[0]!="number"&&(S=Xm([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...d,keyframes:r});let k;l==="mirror"&&(k=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let M="idle",g=null,E=null,T=null;C.calculatedDuration===null&&o&&(C.calculatedDuration=rg(C));const{calculatedDuration:b}=C;let j=1/0,$=1/0;b!==null&&(j=b+s,$=j*(o+1)-s);let I=0;const L=V=>{if(E===null)return;h>0&&(E=Math.min(E,V)),h<0&&(E=Math.min(V-$/h,E)),g!==null?I=g:I=Math.round(V-E)*h;const U=I-t*(h>=0?1:-1),te=h>=0?U<0:U>$;I=Math.max(U,0),M==="finished"&&g===null&&(I=$);let K=I,le=C;if(o){const yc=Math.min(I,$)/j;let Vs=Math.floor(yc),Vn=yc%1;!Vn&&yc>=1&&(Vn=1),Vn===1&&Vs--,Vs=Math.min(Vs,o+1),!!(Vs%2)&&(l==="reverse"?(Vn=1-Vn,s&&(Vn-=s/j)):l==="mirror"&&(le=k)),K=en(0,1,Vn)*j}const J=te?{done:!1,value:r[0]}:le.next(K);S&&(J.value=S(J.value));let{done:pt}=J;!te&&b!==null&&(pt=h>=0?I>=$:I<=0);const FC=g===null&&(M==="finished"||M==="running"&&pt);return f&&f(J.value),FC&&R(),J},H=()=>{p&&p.stop(),p=void 0},F=()=>{M="idle",H(),w(),y(),E=T=null},R=()=>{M="finished",c&&c(),H(),w()},O=()=>{if(x)return;p||(p=n(L));const V=p.now();a&&a(),g!==null?E=V-g:(!E||M==="finished")&&(E=V),M==="finished"&&y(),T=E,g=null,M="running",p.start()};e&&O();const _={then(V,U){return P.then(V,U)},get time(){return Dt(I)},set time(V){V=Mn(V),I=V,g!==null||!p||h===0?g=V:E=p.now()-V/h},get duration(){const V=C.calculatedDuration===null?rg(C):C.calculatedDuration;return Dt(V)},get speed(){return h},set speed(V){V===h||!p||(h=V,_.time=Dt(I))},get state(){return M},play:O,pause:()=>{M="paused",g=I},stop:()=>{x=!0,M!=="idle"&&(M="idle",u&&u(),F())},cancel:()=>{T!==null&&L(T),F()},complete:()=>{M="finished"},sample:V=>(E=0,L(V))};return _}function sP(e){let t;return()=>(t===void 0&&(t=e()),t)}const lP=sP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),aP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ms=10,uP=2e4,cP=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Em(t.ease);function fP(e,t,{onUpdate:n,onComplete:r,...i}){if(!(lP()&&aP.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(m=>{l=m})};c();let{keyframes:f,duration:d=300,ease:h,times:x}=i;if(cP(t,i)){const m=bs({...i,repeat:0,delay:0});let S={done:!1,value:f[0]};const C=[];let k=0;for(;!S.done&&k{u=!1,w.cancel()},y=()=>{u=!0,X.update(P),l(),c()};return w.onfinish=()=>{u||(e.set(CS(f,i)),r&&r(),y())},{then(m,S){return a.then(m,S)},attachTimeline(m){return w.timeline=m,w.onfinish=null,ue},get time(){return Dt(w.currentTime||0)},set time(m){w.currentTime=Mn(m)},get speed(){return w.playbackRate},set speed(m){w.playbackRate=m},get duration(){return Dt(d)},play:()=>{s||(w.play(),bt(P))},pause:()=>w.pause(),stop:()=>{if(s=!0,w.playState==="idle")return;const{currentTime:m}=w;if(m){const S=bs({...i,autoplay:!1});e.setWithVelocity(S.sample(m-Ms).value,S.sample(m).value,Ms)}y()},complete:()=>{u||w.finish()},cancel:y}}function dP({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:ue,pause:ue,stop:ue,then:o=>(o(),Promise.resolve()),cancel:ue,complete:ue});return t?bs({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const hP={type:"spring",stiffness:500,damping:25,restSpeed:10},pP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mP={type:"keyframes",duration:.8},gP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yP=(e,{keyframes:t})=>t.length>2?mP:kn.has(e)?e.startsWith("scale")?pP(t[1]):hP:gP,Zu=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(on.test(t)||t==="0")&&!t.startsWith("url(")),vP=new Set(["brightness","contrast","saturate","opacity"]);function xP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(vs)||[];if(!r)return e;const i=n.replace(r,"");let o=vP.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const wP=/([a-z-]*)\(.*?\)/g,qu={...on,getAnimatableNone:e=>{const t=e.match(wP);return t?t.map(xP).join(" "):e}},SP={...im,color:be,backgroundColor:be,outlineColor:be,fill:be,stroke:be,borderColor:be,borderTopColor:be,borderRightColor:be,borderBottomColor:be,borderLeftColor:be,filter:qu,WebkitFilter:qu},Ju=e=>SP[e];function ig(e,t){let n=Ju(e);return n!==qu&&(n=on),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const og=e=>/^0[^.\s]+$/.test(e);function PP(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||og(e)}function CP(e,t,n,r){const i=Zu(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=ec(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Mn(s);const a=CP(t,e,n,o),u=a[0],c=a[a.length-1],f=Zu(e,u),d=Zu(e,c);let h={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:x=>{t.set(x),o.onUpdate&&o.onUpdate(x)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(TP(o)||(h={...h,...yP(e,h)}),h.duration&&(h.duration=Mn(h.duration)),h.repeatDelay&&(h.repeatDelay=Mn(h.repeatDelay)),!f||!d||SS.current||o.type===!1||$P.skipAnimations)return dP(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const x=fP(t,e,h);if(x)return x}return bs(h)};function Ls(e){return!!(Ve(e)&&e.add)}const sg=e=>/^\-?\d*\.?\d+$/.test(e);function nc(e,t){e.indexOf(t)===-1&&e.push(t)}function rc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ic{constructor(){this.subscriptions=[]}add(t){return nc(this.subscriptions,t),()=>rc(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 kP{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Ce;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,X.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>X.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=EP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ic);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Zm(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wr(e,t){return new kP(e,t)}const lg=e=>t=>t.test(e),ag=[bn,B,ht,tn,Kw,Nw,{test:e=>e==="auto",parse:e=>e}],Li=e=>ag.find(lg(e)),bP=[...ag,be,on],MP=e=>bP.find(lg(e));function LP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wr(n))}function DP(e,t){const n=Ts(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=Zw(o[s]);LP(e,s,l)}}function AP(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(P)}return s&&Promise.all(u).then(()=>{s&&DP(e,s)}),u}function oc(e,t,n={}){const r=Ts(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(ug(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return KP(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 KP(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(IP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(oc(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function IP(e,t){return e.sortNodePosition(t)}function jP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>oc(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=oc(e,t,n);else{const i=typeof t=="function"?Ts(e,t,n.custom):t;r=Promise.all(ug(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const OP=[...Eu].reverse(),zP=Eu.length;function BP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>jP(e,n,r)))}function _P(e){let t=BP(e);const n=HP();let r=!0;const i=(a,u)=>{const c=Ts(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;a={...a,...h,...d}}return a};function o(a){t=a(e)}function s(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let x={},w=1/0;for(let y=0;yw&&C,T=!1;const b=Array.isArray(S)?S:[S];let j=b.reduce(i,{});k===!1&&(j={});const{prevResolvedValues:$={}}=m,I={...$,...j},L=H=>{E=!0,h.has(H)&&(T=!0,h.delete(H)),m.needsAnimating[H]=!0};for(const H in I){const F=j[H],R=$[H];if(x.hasOwnProperty(H))continue;let O=!1;ws(F)&&ws(R)?O=!Tm(F,R):O=F!==R,O?F!==void 0?L(H):h.add(H):F!==void 0&&h.has(H)?L(H):m.protectedKeys[H]=!0}m.prevProp=S,m.prevResolvedValues=j,m.isActive&&(x={...x,...j}),r&&e.blockInitialAnimation&&(E=!1),E&&(!M||T)&&d.push(...b.map(H=>({animation:H,options:{type:p,...a}})))}if(h.size){const y={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(y[p]=m)}),d.push({animation:y})}let P=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?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(h=>{var x;return(x=h.animationState)===null||x===void 0?void 0:x.setActive(a,u)}),n[a].isActive=u;const d=s(c,a);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function UP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tm(t,e):!1}function Dn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HP(){return{animate:Dn(!0),whileInView:Dn(),whileHover:Dn(),whileTap:Dn(),whileDrag:Dn(),whileFocus:Dn(),exit:Dn()}}class WP extends rn{constructor(t){super(t),t.animationState||(t.animationState=_P(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ps(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 GP=0;class QP extends rn{constructor(){super(...arguments),this.id=GP++}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 YP={animation:{Feature:WP},exit:{Feature:QP}},cg=(e,t)=>Math.abs(e-t);function XP(e,t){const n=cg(e.x,t.x),r=cg(e.y,t.y);return Math.sqrt(n**2+r**2)}class fg{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=lc(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=XP(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:x}=f,{timestamp:w}=Ce;this.history.push({...x,timestamp:w});const{onStart:P,onMove:y}=this.handlers;d||(P&&P(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=sc(d,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=lc(f.type==="pointercancel"?this.lastMoveEventInfo:sc(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,P),x&&x(f,P)},!gm(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Cs(t),l=sc(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=Ce;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,lc(l,this.history)),this.removeListeners=nn(Lt(this.contextWindow,"pointermove",this.handlePointerMove),Lt(this.contextWindow,"pointerup",this.handlePointerUp),Lt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),bt(this.updatePoint)}}function sc(e,t){return t?{point:t(e.point)}:e}function dg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lc({point:e},t){return{point:e,delta:dg(e,hg(t)),offset:dg(e,ZP(t)),velocity:qP(t,.1)}}function ZP(e){return e[0]}function hg(e){return e[e.length-1]}function qP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Dt(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 Be(e){return e.max-e.min}function ac(e,t=0,n=.01){return Math.abs(e-t)<=n}function pg(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=Be(n)/Be(t),(ac(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(ac(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Di(e,t,n,r){pg(e.x,t.x,n.x,r?r.originX:void 0),pg(e.y,t.y,n.y,r?r.originY:void 0)}function mg(e,t,n){e.min=n.min+t.min,e.max=e.min+Be(t)}function JP(e,t,n){mg(e.x,t.x,n.x),mg(e.y,t.y,n.y)}function gg(e,t,n){e.min=t.min-n.min,e.max=e.min+Be(t)}function Ai(e,t,n){gg(e.x,t.x,n.x),gg(e.y,t.y,n.y)}function e2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function yg(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 t2(e,{top:t,left:n,bottom:r,right:i}){return{x:yg(e.x,n,i),y:yg(e.y,t,r)}}function vg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Mi(t.min,t.max-r,e.min):r>i&&(n=Mi(e.min,e.max-i,t.min)),en(0,1,n)}function i2(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 uc=.35;function o2(e=uc){return e===!1?e=0:e===!0&&(e=uc),{x:xg(e,"left","right"),y:xg(e,"top","bottom")}}function xg(e,t,n){return{min:wg(e,t),max:wg(e,n)}}function wg(e,t){return typeof e=="number"?e:e[t]||0}const Sg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sr=()=>({x:Sg(),y:Sg()}),Pg=()=>({min:0,max:0}),fe=()=>({x:Pg(),y:Pg()});function Xe(e){return[e("x"),e("y")]}function Cg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function s2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l2(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 cc(e){return e===void 0||e===1}function fc({scale:e,scaleX:t,scaleY:n}){return!cc(e)||!cc(t)||!cc(n)}function An(e){return fc(e)||Tg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Tg(e){return $g(e.x)||$g(e.y)}function $g(e){return e&&e!=="0%"}function Ds(e,t,n){const r=e-n,i=t*r;return n+i}function Eg(e,t,n,r,i){return i!==void 0&&(e=Ds(e,i,r)),Ds(e,n,r)+t}function dc(e,t=0,n=1,r,i){e.min=Eg(e.min,t,n,r,i),e.max=Eg(e.max,t,n,r,i)}function kg(e,{x:t,y:n}){dc(e.x,t.translate,t.scale,t.originPoint),dc(e.y,n.translate,n.scale,n.originPoint)}function a2(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 sn(e,t){e.min=e.min+t,e.max=e.max+t}function Mg(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=oe(e.min,e.max,o);dc(e,t[n],t[r],s,t.scale)}const u2=["x","scaleX","originX"],c2=["y","scaleY","originY"];function Pr(e,t){Mg(e.x,t,u2),Mg(e.y,t,c2)}function Lg(e,t){return Cg(l2(e.getBoundingClientRect(),t))}function f2(e,t,n){const r=Lg(e,n),{scroll:i}=t;return i&&(sn(r.x,i.offset.x),sn(r.y,i.offset.y)),r}const Dg=({current:e})=>e?e.ownerDocument.defaultView:null,d2=new WeakMap;class h2{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=fe(),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(Cs(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:x}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wm(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),Xe(P=>{let y=this.getAxisMotionValue(P).get()||0;if(ht.test(y)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[P];m&&(y=Be(m)*(parseFloat(y)/100))}}this.originPoint[P]=y}),x&&X.update(()=>x(c,f),!1,!0);const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:x,onDrag:w}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:P}=f;if(h&&this.currentDirection===null){this.currentDirection=p2(P),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,P),this.updateAxis("y",f.point,P),this.visualElement.render(),w&&w(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Xe(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 fg(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Dg(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&&X.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||!As(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=e2(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&&vr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=t2(i.layoutBox,n):this.constraints=!1,this.elastic=o2(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Xe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=i2(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=f2(r,i.root,this.visualElement.getTransformPagePoint());let s=n2(i.layout.layoutBox,o);if(n){const l=n(s2(s));this.hasMutatedConstraints=!!l,l&&(s=Cg(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Xe(c=>{if(!As(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(tc(t,r,0,n))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xe(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){Xe(n=>{const{drag:r}=this.getProps();if(!As(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]-oe(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xe(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=r2({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(),Xe(s=>{if(!As(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(oe(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;d2.set(this.visualElement,this);const t=this.visualElement.current,n=Lt(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();vr(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=Mt(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Xe(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=uc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function As(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function p2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class m2 extends rn{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new h2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ag=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class g2 extends rn{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new fg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Dg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ag(t),onStart:Ag(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&X.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Lt(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 y2(){const e=v.useContext(ds);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();return v.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ri={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=Rg(e,t.target.x),r=Rg(e,t.target.y);return`${n}% ${r}%`}},v2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=on.parse(e);if(i.length>5)return r;const o=on.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=oe(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 x2 extends z.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Mw(w2),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()})),Rs.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()||X.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Fg(e){const[t,n]=y2(),r=v.useContext(bu);return z.createElement(x2,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Zp),isPresent:t,safeToRemove:n})}const w2={borderRadius:{...Ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ri,borderTopRightRadius:Ri,borderBottomLeftRadius:Ri,borderBottomRightRadius:Ri,boxShadow:v2},Vg=["TopLeft","TopRight","BottomLeft","BottomRight"],S2=Vg.length,Ng=e=>typeof e=="string"?parseFloat(e):e,Kg=e=>typeof e=="number"||B.test(e);function P2(e,t,n,r,i,o){i?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,C2(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,T2(r))):o&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Mi(e,t,r))}function Og(e,t){e.min=t.min,e.max=t.max}function Ze(e,t){Og(e.x,t.x),Og(e.y,t.y)}function zg(e,t,n,r,i){return e-=t,e=Ds(e,1/n,r),i!==void 0&&(e=Ds(e,1/i,r)),e}function $2(e,t=0,n=1,r=.5,i,o=e,s=e){if(ht.test(t)&&(t=parseFloat(t),t=oe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=oe(o.min,o.max,r);e===o&&(l-=t),e.min=zg(e.min,t,n,l,i),e.max=zg(e.max,t,n,l,i)}function Bg(e,t,[n,r,i],o,s){$2(e,t[n],t[r],t[i],t.scale,o,s)}const E2=["x","scaleX","originX"],k2=["y","scaleY","originY"];function _g(e,t,n,r){Bg(e.x,t,E2,n?n.x:void 0,r?r.x:void 0),Bg(e.y,t,k2,n?n.y:void 0,r?r.y:void 0)}function Ug(e){return e.translate===0&&e.scale===1}function Hg(e){return Ug(e.x)&&Ug(e.y)}function b2(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 Wg(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 Gg(e){return Be(e.x)/Be(e.y)}class M2{constructor(){this.members=[]}add(t){nc(this.members,t),t.scheduleRender()}remove(t){if(rc(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 Qg(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 L2=(e,t)=>e.depth-t.depth;class D2{constructor(){this.children=[],this.isDirty=!1}add(t){nc(this.children,t),this.isDirty=!0}remove(t){rc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(L2),this.isDirty=!1,this.children.forEach(t)}}function A2(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(bt(r),e(o-t))};return X.read(r,!0),()=>bt(r)}function R2(e){window.MotionDebug&&window.MotionDebug.record(e)}function F2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function V2(e,t,n){const r=Ve(e)?e:wr(e);return r.start(tc("",r,t,n)),r.animation}const Yg=["","X","Y","Z"],N2={visibility:"hidden"},Xg=1e3;let K2=0;const Rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Zg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=K2++,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,Rn.totalNodes=Rn.resolvedTargetDeltas=Rn.recalculatedProjection=0,this.nodes.forEach(O2),this.nodes.forEach(H2),this.nodes.forEach(W2),this.nodes.forEach(z2),R2(Rn)},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=A2(d,250),Rs.hasAnimatedSinceResize&&(Rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Jg))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||Z2,{onLayoutAnimationStart:P,onLayoutAnimationComplete:y}=c.getProps(),p=!this.targetLayout||!Wg(this.targetLayout,x)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const S={...ec(w,"layout"),onPlay:P,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||Jg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}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,bt(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(G2),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(B2),this.sharedNodes.forEach(Q2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.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 C=S/1e3;ey(f.x,s.x,C),ey(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ai(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Y2(this.relativeTarget,this.relativeTargetOrigin,d,C),m&&b2(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=fe()),Ze(m,this.relativeTarget)),w&&(this.animationValues=c,P2(c,u,this.latestValues,C,p,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(bt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Rs.hasAnimatedSinceResize=!0,this.currentAnimation=V2(0,Xg,{...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(Xg),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&&oy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||fe();const f=Be(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=Be(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Ze(l,a),Pr(l,c),Di(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new M2),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(qg),this.root.sharedNodes.clear()}}}function I2(e){e.updateLayout()}function j2(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"?Xe(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Be(d);d.min=r[f].min,d.max=d.min+h}):oy(o,n.layoutBox,r)&&Xe(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Be(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=Sr();Di(l,r,n.layoutBox);const a=Sr();s?Di(a,e.applyTransform(i,!0),n.measuredBox):Di(a,r,n.layoutBox);const u=!Hg(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const x=fe();Ai(x,n.layoutBox,d.layoutBox);const w=fe();Ai(w,r,h.layoutBox),Wg(x,w)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=x,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 O2(e){Rn.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 z2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B2(e){e.clearSnapshot()}function qg(e){e.clearMeasurements()}function _2(e){e.isLayoutDirty=!1}function U2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function H2(e){e.resolveTargetDelta()}function W2(e){e.calcProjection()}function G2(e){e.resetRotation()}function Q2(e){e.removeLeadSnapshot()}function ey(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ty(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function Y2(e,t,n,r){ty(e.x,t.x,n.x,r),ty(e.y,t.y,n.y,r)}function X2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Z2={duration:.45,ease:[.4,0,.1,1]},ny=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ry=ny("applewebkit/")&&!ny("chrome/")?Math.round:ue;function iy(e){e.min=ry(e.min),e.max=ry(e.max)}function q2(e){iy(e.x),iy(e.y)}function oy(e,t,n){return e==="position"||e==="preserve-aspect"&&!ac(Gg(t),Gg(n),.2)}const J2=Zg({attachResizeListener:(e,t)=>Mt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hc={current:void 0},sy=Zg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hc.current){const e=new J2({});e.mount(window),e.setOptions({layoutScroll:!0}),hc.current=e}return hc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eC={pan:{Feature:g2},drag:{Feature:m2,ProjectionNode:sy,MeasureLayout:Fg}},tC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nC(e){const t=tC.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function pc(e,t,n=1){const[r,i]=nC(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return sg(s)?parseFloat(s):s}else return Lu(i)?pc(i,t,n+1):i}function rC(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(!Lu(o))return;const s=pc(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Lu(o))continue;const s=pc(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const iC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ly=e=>iC.has(e),oC=e=>Object.keys(e).some(ly),ay=e=>e===bn||e===B,uy=(e,t)=>parseFloat(e.split(", ")[t]),cy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return uy(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?uy(o[1],e):0}},sC=new Set(["x","y","z"]),lC=Pi.filter(e=>!sC.has(e));function aC(e){const t=[];return lC.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 Cr={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:cy(4,13),y:cy(5,14)};Cr.translateX=Cr.x,Cr.translateY=Cr.y;const uC=(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]=Cr[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]=Cr[u](a,o)}),e},cC=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(ly);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=Li(c);const d=t[a];let h;if(ws(d)){const x=d.length,w=d[0]===null?1:0;c=d[w],f=Li(c);for(let P=w;P=0?window.pageYOffset:null,u=uC(t,e,l);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),hs&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function fC(e,t,n,r){return oC(t)?cC(e,t,n,r):{target:t,transitionEnd:r}}const dC=(e,t,n,r)=>{const i=rC(e,t,r);return t=i.target,r=i.transitionEnd,fC(e,t,n,r)},mc={current:null},fy={current:!1};function hC(){if(fy.current=!0,!!hs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mc.current=e.matches;e.addListener(t),t()}else mc.current=!1}function pC(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),Ls(r)&&r.add(i);else if(Ve(s))e.addValue(i,wr(o,{owner:e})),Ls(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,wr(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const dy=new WeakMap,hy=Object.keys(Si),mC=hy.length,py=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gC=ku.length;class yC{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=()=>X.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=ms(n),this.isVariantNode=Qp(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),Ls(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,dy.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)),fy.current||hC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){dy.delete(this.current),this.projection&&this.projection.unmount(),bt(this.notifyUpdate),bt(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=kn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.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:h})}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):fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=wr(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=Nu(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 ic),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class my extends yC{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=FP(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){AP(this,r,s);const l=dC(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function vC(e){return window.getComputedStyle(e)}class xC extends my{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(kn.has(n)){const r=Ju(n);return r&&r.default||0}else{const r=vC(t),i=(em(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Lg(t,n)}build(t,n,r,i){Du(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Vu(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){um(t,n,r,i)}}class wC extends my{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(kn.has(n)){const r=Ju(n);return r&&r.default||0}return n=cm.has(n)?n:$u(n),t.getAttribute(n)}measureInstanceViewportBox(){return fe()}scrapeMotionValuesFromProps(t,n){return dm(t,n)}build(t,n,r,i){Ru(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){fm(t,n,r,i)}mount(t){this.isSVGTag=Fu(t.tagName),super.mount(t)}}const SC=(e,t)=>Mu(e)?new wC(t,{enableHardwareAcceleration:!1}):new xC(t,{enableHardwareAcceleration:!0}),PC={...YP,...vS,...eC,...{layout:{ProjectionNode:sy,MeasureLayout:Fg}}},ln=kw((e,t)=>oS(e,t,PC,SC));function gy(){const e=v.useRef(!1);return Tu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function CC(){const e=gy(),[t,n]=v.useState(0),r=v.useCallback(()=>{e.current&&n(t+1)},[t]);return[v.useCallback(()=>X.postRender(r),[r]),t]}class TC extends v.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 $C({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0});return v.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]),v.createElement(TC,{isPresent:t,childRef:r,sizeRef:i},v.cloneElement(e,{ref:r}))}const gc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=hm(EC),a=v.useId(),u=v.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 v.useMemo(()=>{l.forEach((c,f)=>l.set(f,!1))},[n]),v.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=v.createElement($C,{isPresent:n},e)),v.createElement(ds.Provider,{value:u},e)};function EC(){return new Map}function kC(e){return v.useEffect(()=>()=>e(),[])}const Fn=e=>e.key||"";function bC(e,t){e.forEach(n=>{const r=Fn(n);t.set(r,n)})}function MC(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const Fs=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=v.useContext(bu).forceRender||CC()[0],a=gy(),u=MC(e);let c=u;const f=v.useRef(new Map).current,d=v.useRef(c),h=v.useRef(new Map).current,x=v.useRef(!0);if(Tu(()=>{x.current=!1,bC(u,h),d.current=c}),kC(()=>{x.current=!0,h.clear(),f.clear()}),x.current)return v.createElement(v.Fragment,null,c.map(p=>v.createElement(gc,{key:Fn(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},p)));c=[...c];const w=d.current.map(Fn),P=u.map(Fn),y=w.length;for(let p=0;p{if(P.indexOf(m)!==-1)return;const S=h.get(m);if(!S)return;const C=w.indexOf(m);let k=p;if(!k){const M=()=>{f.delete(m);const g=Array.from(h.keys()).filter(E=>!P.includes(E));if(g.forEach(E=>h.delete(E)),d.current=u.filter(E=>{const T=Fn(E);return T===m||g.includes(T)}),!f.size){if(a.current===!1)return;l(),r&&r()}};k=v.createElement(gc,{key:Fn(S),isPresent:!1,onExitComplete:M,custom:t,presenceAffectsLayout:o,mode:s},S),f.set(m,k)}c.splice(C,0,k)}),c=c.map(p=>{const m=p.key;return f.has(m)?p:v.createElement(gc,{key:Fn(p),isPresent:!0,presenceAffectsLayout:o,mode:s},p)}),v.createElement(v.Fragment,null,f.size?c:c.map(p=>v.cloneElement(p)))},yy=v.forwardRef(({slideData:e,count:t,onDragEnd:n,setIsAnimating:r,popoverDelay:i,handleNext:o,handlePrevious:s},l)=>{const a={duration:i,ease:[.45,.04,.1,.97]};return A.jsxs("div",{className:"slide-image relative h-auto w-full max-w-[936px] overflow-hidden rounded-[1.65rem] bg-slate-100",children:[A.jsxs(ln.div,{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.1,onDragEnd:n,ref:l,onDragTransitionEnd:()=>r(!1),onAnimationEnd:()=>r(!1),className:"absolute bottom-0 top-0 z-[10] flex w-full flex-row items-center justify-between gap-2 px-4 text-center align-middle text-sm max-md:visible lg:hidden",children:[A.jsx("button",{className:"flex h-10 w-10 flex-shrink items-center justify-center rounded-full bg-white text-sfnavy ring-2 ring-sfprimary transition-transform enabled:hover:bg-sfprimary enabled:hover:text-white disabled:cursor-not-allowed disabled:bg-[#c9c9c9] disabled:text-white disabled:ring-0 disabled:hover:bg-[#c9c9c9]",onClick:()=>s(),disabled:!(t>1),"aria-controls":"Previous Slide",children:A.jsx(jh,{width:22,height:22})}),A.jsx("button",{className:"flex h-10 w-10 flex-shrink items-center justify-center rounded-full bg-white text-sfnavy ring-2 ring-sfprimary transition-transform enabled:hover:bg-sfprimary enabled:hover:text-white disabled:cursor-not-allowed disabled:bg-[#c9c9c9] disabled:text-white disabled:ring-0 disabled:hover:bg-[#c9c9c9]",onClick:()=>o(),disabled:!(t{u==="center"&&r(!1)},children:e==null?void 0:e.map((u,c)=>A.jsx(yw,{shouldForceMount:!0,className:"relative w-auto min-w-fit",id:`tab-${u.id}-${u.position}`,"tab-index":-1,children:A.jsx(ln.img,{animate:{opacity:c===t-1?1:.5,scale:c===t-1?1:.8},src:u.image,ref:l,alt:u.desc,onAnimationEnd:()=>r(!1),loading:"eager"},c)},c))},"slider")})]})});yy.displayName="SlideImageAria";const vy=v.forwardRef(({slideData:e,count:t,direction:n,popoverWidth:r,dotWidth:i,convertPercentage:o,setIsAnimating:s,handleNext:l,handlePrevious:a,popoverDelay:u},c)=>{const[f,d]=v.useState(!1),h={enter:P=>({opacity:0,x:P*-60,scale:.9}),center:{opacity:1,x:0,scale:1,transition:{delay:u}},exit:P=>({opacity:0,x:P*60,scale:.9})},x={duration:.3,ease:[.45,.14,.1,.97]},w={duration:.2,ease:[.45,.14,.1,.97]};return A.jsx(Fs,{custom:n,initial:!1,children:e==null?void 0:e.map((P,y)=>t===P.position&&A.jsx("div",{children:A.jsxs(ln.div,{variants:h,initial:"enter",animate:"center",exit:"exit",custom:n,transition:x,onAnimationComplete:p=>{if(p==="center")s(!1);else return null},ref:c,whileHover:{scale:1},className:"slide-popover focus visible absolute z-20 rounded-full border-2 border-transparent bg-blue-500 max-lg:hidden",style:{width:i,height:i,transformOrigin:"center",left:`${P.x}%`,top:`${P.y}%`},children:[A.jsxs(ln.button,{whileHover:{scale:1.4},onClick:()=>d(!f),className:"flex h-full w-full items-center justify-center rounded-full bg-blue-600 text-sm font-semibold text-white shadow-xl ring-2 ring-white/70 focus-within:outline-none focus-within:ring-0 focus-visible:bg-sfnavy focus-visible:ring-2 focus-visible:ring-white",tabIndex:t===P.position?0:-1,"aria-hidden":t!==P.position,"aria-label":f?`Close text description for ${P.title} tab`:`Open text description form ${P.title} tab`,children:[!f&&A.jsxs(A.Fragment,{children:[A.jsx("span",{className:"z-20",children:t}),A.jsx("span",{className:"absolute z-10 flex h-full w-full animate-ping rounded-full bg-blue-600 focus:ring-0","aria-hidden":!0})]}),f&&A.jsx(ln.span,{initial:{rotate:-20},animate:{rotate:0},className:"z-20 rounded-full focus:ring-0","aria-hidden":!0,children:A.jsx(Q0,{})})]}),A.jsx(Fs,{mode:"wait",children:f&&A.jsxs(ln.div,{initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.7},transition:w,className:`absolute flex h-[auto] flex-col gap-3 rounded-xl bg-white/90 p-6 shadow-2xl ring-1 ring-slate-400/10 backdrop-blur-lg ${P.pointer==="tl"?"left-[25px] top-[25px]":P.pointer==="tr"?"right-[25px] top-[25px]":P.pointer==="bl"?"bottom-[25px] left-[25px]":P.pointer==="br"?"bottom-[25px] right-[25px]":P.pointer==="na"?"hidden":"left-[25px] top-[25px]"}`,style:{width:r},children:[A.jsx("h3",{className:"text-[1.2rem] text-sfnavy",children:P.title}),A.jsx("p",{className:"text-gray-800",children:P.desc}),P.hasCta==="on"&&A.jsx("div",{className:"mt-4",children:A.jsx("a",{className:"btn-primary-tour",href:P.ctaUrl??"#","aria-describedby":P.ctaTitle??"Finish tour",children:P.ctaTitle})}),A.jsxs("div",{className:"flex flex-row items-center gap-4 text-center align-middle text-sm",children:[t>1&&t&&P.hasCta!=="on"&&A.jsx("button",{className:"mt-2 flex-1 items-center rounded-full text-left align-middle font-semibold text-sfnavy underline hover:text-sfprimary",onClick:()=>a(),children:"Previous"}),tl(),children:"Next"})]})]})})]},y)},y))})});vy.displayName="SlidePopover";const LC=({slideData:e,count:t,setCount:n,theme:r})=>A.jsxs("div",{className:"visible mx-4 flex flex-col lg:hidden",children:[A.jsx("nav",{className:"my-4 h-auto w-full justify-between",children:A.jsx("ul",{className:"flex h-12 justify-center gap-3 sm:mx-0 lg:flex-col xl:gap-0",children:e==null?void 0:e.map((i,o)=>A.jsx("li",{className:"flex h-12 w-12 rounded-full bg-[#EAF5FE] ring-2 ring-sfprimary",role:"none",children:A.jsx("button",{className:`relative flex h-12 w-12 cursor-pointer flex-col items-center justify-center gap-1 overflow-hidden rounded-full font-display text-sm font-semibold text-sfnavy transition-colors hover:bg-sfprimary hover:text-white sm:gap-3 lg:flex-row lg:items-center lg:align-middle lg:text-base ${i.position===t&&"rounded-full bg-sfnavy text-white transition-transform"}`,onClick:()=>n(i.position),role:"tab","aria-controls":`tab-${i.id}-${i.position}`,"aria-label":i.title,"aria-selected":i.position===t,children:i.position},i.id)},o))})}),A.jsx(Fs,{initial:!1,mode:"popLayout",children:e==null?void 0:e.map((i,o)=>t===i.position&&A.jsxs(ln.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"mb-10 flex w-full columns-1 flex-col gap-4",children:[A.jsx("h3",{className:`mt-4 ${r==="light"?"text-sfnavy":"text-white"}`,children:i.title}),A.jsx("p",{className:`${r==="light"?"text-sfnavy":"text-white"}`,children:i.desc}),i.hasCta==="on"&&A.jsx("div",{className:"my-4",children:A.jsx("a",{className:"btn-primary-tour",href:i.ctaUrl??"#","aria-describedby":i.ctaTitle??"Finish tour",children:i.ctaTitle})})]},i.id))})]});function DC(){return A.jsxs("div",{className:"guided-tour-container mx-auto xl:px-8",children:[A.jsxs("div",{className:"flex flex-col items-center justify-center",children:[A.jsx("div",{className:"mx-4 mb-4 h-12 w-2/3 animate-pulse rounded-md bg-slate-200 text-center text-3xl text-sfnavy sm:mx-0 xl:text-4xl"}),A.jsx("div",{className:"mx-4 mb-10 h-8 w-2/3 animate-pulse rounded-md bg-slate-200 text-center text-3xl text-sfnavy sm:mx-0 xl:text-4xl"})]}),A.jsxs("section",{className:"flex columns-1 flex-col gap-4 lg:columns-2 lg:flex-row lg:gap-8",children:[A.jsx("nav",{className:"visible flex w-full flex-col justify-between max-lg:hidden lg:basis-3/12",children:A.jsxs("ul",{className:" flex justify-stretch gap-1 sm:mx-0 lg:flex-col xl:gap-3",children:[A.jsx("li",{className:"first-line:text-sfnavy-800 relative box-border flex h-16 w-full animate-pulse flex-col gap-1 overflow-hidden rounded-md bg-slate-200 py-[1.3rem] font-display text-sm font-semibold text-sfnavy transition-all hover:text-sfprimary sm:gap-3 lg:flex-row lg:items-center lg:align-middle lg:text-base"}),A.jsx("li",{className:"first-line:text-sfnavy-800 relative box-border flex h-16 w-full animate-pulse flex-col gap-1 overflow-hidden rounded-md bg-slate-200 py-[1.3rem] font-display text-sm font-semibold text-sfnavy transition-all hover:text-sfprimary sm:gap-3 lg:flex-row lg:items-center lg:align-middle lg:text-base"}),A.jsx("li",{className:"first-line:text-sfnavy-800 relative box-border flex h-16 w-full animate-pulse flex-col gap-1 overflow-hidden rounded-md bg-slate-200 py-[1.3rem] font-display text-sm font-semibold text-sfnavy transition-all hover:text-sfprimary sm:gap-3 lg:flex-row lg:items-center lg:align-middle lg:text-base"})]})}),A.jsx("div",{className:"relative h-full lg:basis-9/12",children:A.jsx("div",{className:"relative aspect-video h-full w-full max-w-[936px] animate-pulse overflow-hidden rounded-md bg-slate-200 transition-all"})})]})]})}const AC=({title:e,tourId:t,theme:n,copy:r})=>{var _;const[i,o]=v.useState(1),[s,l]=v.useState(!1),a=384,u=32,c=.5,f=v.useRef(null),[d,h]=v.useState((_=f.current)==null?void 0:_.clientHeight),[x,w]=v.useState(0),[P,y]=v.useState(0),[p,m]=v.useState(0),[S,C]=v.useState(0),k=I(i),M=k!==null&&i>k?1:-1,g=v.useRef(null),[E,T]=v.useState(null),[b,j]=v.useState("");v.useEffect(()=>{$()},[]);const $=async()=>{try{const V=`//wps-guided-tours-cd2869867e18.herokuapp.com/api/tours/${t}`,U=await fetch(V);if(console.log(U),!U.ok)throw new Error(`HTTP error! status: ${U.status}`);const te=await U.json();console.log("Data:",te),j(te.orientation),T(te.slides)}catch(V){console.error("Error fetching slide data:",V)}};v.useEffect(()=>{var U,te;m((U=g.current)==null?void 0:U.clientWidth),C((te=g.current)==null?void 0:te.clientHeight);const V=()=>{var K,le,J;h((K=f.current)==null?void 0:K.clientHeight),w((le=g.current)==null?void 0:le.clientWidth),y((J=g.current)==null?void 0:J.clientHeight),console.log(P)};return V(),window.addEventListener("resize",V),()=>{var K,le;m((K=g.current)==null?void 0:K.clientWidth),C((le=g.current)==null?void 0:le.clientHeight),window.removeEventListener("resize",V)}},[d,i,p,S,P]);function I(V){let[U,te]=v.useState([null,V]);return U[1]!==V&&te([U[1],V]),U[0]}function L(){s||(l(!0),o(i+1))}function H(){s||(l(!0),o(i-1))}function F(V){let te=V.toString().slice(-1);o(+te)}function R(V,U){let te=p-a/2,K=S-d/2,le=V/100*te,J=U/100*K;return[le,J]}function O(V,U){U.offset.xx/3&&i!==1?(l(!0),o(i-1)):console.log(V)}return E?A.jsxs("div",{className:"guided-tour-container mx-auto xl:px-8",children:[e!==""&&A.jsx("h2",{className:`mx-4 text-center text-3xl ${n==="light"?"text-sfnavy":"text-white"} ${r!==""?"mb-6":"mb-12"} sm:mx-0 xl:text-[32px]`,children:e}),r!==""&&A.jsx("div",{className:"blade__description mx-auto mb-14 flex w-3/4 items-center justify-center",children:A.jsx("p",{className:`text-center text-[18px] ${n==="light"?"text-sfdarygrey":"text-white"}`,children:r})}),A.jsx("section",{children:A.jsxs(dw,{orientation:"vertical",keyboardActivation:"manual",onSelectionChange:V=>{F(V)},className:`flex columns-1 flex-col gap-4 lg:columns-2 lg:gap-8 ${b==="right"?"lg:flex-row":b==="left"?"lg:flex-row-reverse":"lg:flex-row"}`,children:[A.jsx(vw,{title:e,slideData:E,setCount:o,count:i,handleNext:L,handlePrevious:H,theme:n}),A.jsxs("div",{className:"relative h-auto w-full lg:basis-9/12",children:[A.jsx(vy,{slideData:E,count:i,direction:M,popoverWidth:a,dotWidth:u,convertPercentage:R,ref:f,setIsAnimating:l,handleNext:L,handlePrevious:H,popoverDelay:c}),A.jsx(yy,{slideData:E,ref:g,count:i,onDragEnd:O,setIsAnimating:l,popoverDelay:c,handleNext:L,handlePrevious:H})]}),A.jsx(LC,{slideData:E,count:i,setCount:o,handleNext:L,handlePrevious:H,theme:n})]})})]}):A.jsx(DC,{})};function RC(){document.querySelectorAll('[data-mwo-widget="guided-tour"]').forEach(t=>{const n=t.getAttribute("data-title")||"",r=t.getAttribute("data-theme")||"",i=t.getAttribute("data-copy")||"",o=t.getAttribute("data-tour-id")||"";U0.render(A.jsx(z.StrictMode,{children:A.jsx(AC,{title:n,theme:r,copy:i,tourId:o})}),t)})}document.addEventListener("DOMContentLoaded",RC)});