function _m(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Im(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var qf={exports:{}},No={},Qf={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Jr=Symbol.for("react.element"),Bm=Symbol.for("react.portal"),Um=Symbol.for("react.fragment"),$m=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),Wm=Symbol.for("react.provider"),Gm=Symbol.for("react.context"),Km=Symbol.for("react.forward_ref"),qm=Symbol.for("react.suspense"),Qm=Symbol.for("react.memo"),Ym=Symbol.for("react.lazy"),wu=Symbol.iterator;function Zm(e){return e===null||typeof e!="object"?null:(e=wu&&e[wu]||e["@@iterator"],typeof e=="function"?e:null)}var Yf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zf=Object.assign,Xf={};function Yn(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||Yf}Yn.prototype.isReactComponent={};Yn.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")};Yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bf(){}bf.prototype=Yn.prototype;function tl(e,t,n){this.props=e,this.context=t,this.refs=Xf,this.updater=n||Yf}var nl=tl.prototype=new bf;nl.constructor=tl;Zf(nl,Yn.prototype);nl.isPureReactComponent=!0;var Cu=Array.isArray,Jf=Object.prototype.hasOwnProperty,rl={current:null},ed={key:!0,ref:!0,__self:!0,__source:!0};function td(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)Jf.call(t,r)&&!ed.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,W=R[A];if(0>>1;Ai(gn,O))jei(qt,gn)?(R[A]=qt,R[je]=O,A=je):(R[A]=gn,R[Ze]=O,A=Ze);else if(jei(qt,O))R[A]=qt,R[je]=O,A=je;else break e}}return D}function i(R,D){var O=R.sortIndex-D.sortIndex;return O!==0?O:R.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,g=!1,v=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=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 D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=R)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function x(R){if(w=!1,m(R),!v)if(n(l)!==null)v=!0,Fe(C);else{var D=n(u);D!==null&&Ye(x,D.startTime-R)}}function C(R,D){v=!1,w&&(w=!1,p(E),E=-1),g=!0;var O=d;try{for(m(D),f=n(l);f!==null&&(!(f.expirationTime>D)||R&&!z());){var A=f.callback;if(typeof A=="function"){f.callback=null,d=f.priorityLevel;var W=A(f.expirationTime<=D);D=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(l)&&r(l),m(D)}else r(l);f=n(l)}if(f!==null)var Kt=!0;else{var Ze=n(u);Ze!==null&&Ye(x,Ze.startTime-D),Kt=!1}return Kt}finally{f=null,d=O,g=!1}}var j=!1,T=null,E=-1,L=5,M=-1;function z(){return!(e.unstable_now()-MR||125A?(R.sortIndex=O,t(u,R),n(l)===null&&R===n(u)&&(w?(p(E),E=-1):w=!0,Ye(x,O-A))):(R.sortIndex=W,t(l,R),v||g||(v=!0,Fe(C))),R},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(R){var D=d;return function(){var O=d;d=D;try{return R.apply(this,arguments)}finally{d=O}}}})(od);id.exports=od;var l1=id.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 sd=P,Me=l1;function k(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"),Gs=Object.prototype.hasOwnProperty,u1=/^[: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]*$/,Pu={},Eu={};function c1(e){return Gs.call(Eu,e)?!0:Gs.call(Pu,e)?!1:u1.test(e)?Eu[e]=!0:(Pu[e]=!0,!1)}function f1(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 d1(e,t,n,r){if(t===null||typeof t>"u"||f1(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 ve(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ue[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var sl=/[\-:]([a-z])/g;function al(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(sl,al);ue[t]=new ve(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(sl,al);ue[t]=new ve(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(sl,al);ue[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function ll(e,t,n,r){var i=ue.hasOwnProperty(t)?ue[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{as=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fr(e):""}function h1(e){switch(e.tag){case 5:return fr(e.type);case 16:return fr("Lazy");case 13:return fr("Suspense");case 19:return fr("SuspenseList");case 0:case 2:case 15:return e=ls(e.type,!1),e;case 11:return e=ls(e.type.render,!1),e;case 1:return e=ls(e.type,!0),e;default:return""}}function Ys(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xn:return"Fragment";case vn:return"Portal";case Ks:return"Profiler";case ul:return"StrictMode";case qs:return"Suspense";case Qs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ud:return(e.displayName||"Context")+".Consumer";case ld:return(e._context.displayName||"Context")+".Provider";case cl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fl:return t=e.displayName||null,t!==null?t:Ys(e.type)||"Memo";case wt:t=e._payload,e=e._init;try{return Ys(e(t))}catch{}}return null}function p1(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 Ys(t);case 8:return t===ul?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m1(e){var t=fd(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 pi(e){e._valueTracker||(e._valueTracker=m1(e))}function dd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qi(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 Zs(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 hd(e,t){t=t.checked,t!=null&&ll(e,"checked",t,!1)}function Xs(e,t){hd(e,t);var n=_t(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")?bs(e,t.type,n):t.hasOwnProperty("defaultValue")&&bs(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ju(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 bs(e,t,n){(t!=="number"||Qi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function Dn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gr={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},g1=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){g1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function yd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gr.hasOwnProperty(e)&&gr[e]?(""+t).trim():t+"px"}function vd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var y1=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ta(e,t){if(t){if(y1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function na(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 ra=null;function dl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ia=null,An=null,On=null;function Lu(e){if(e=ni(e)){if(typeof ia!="function")throw Error(k(280));var t=e.stateNode;t&&(t=_o(t),ia(e.stateNode,e.type,t))}}function xd(e){An?On?On.push(e):On=[e]:An=e}function wd(){if(An){var e=An,t=On;if(On=An=null,Lu(e),t)for(e=0;e>>=0,e===0?32:31-(V1(e)/R1|0)|0}var gi=64,yi=4194304;function hr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bi(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 a=s&~i;a!==0?r=hr(a):(o&=s,o!==0&&(r=hr(o)))}else s=n&~i,s!==0?r=hr(s):o!==0&&(r=hr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ei(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 D1(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=vr),zu=String.fromCharCode(32),Bu=!1;function zd(e,t){switch(e){case"keyup":return a0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function u0(e,t){switch(e){case"compositionend":return Bd(t);case"keypress":return t.which!==32?null:(Bu=!0,zu);case"textInput":return e=t.data,e===zu&&Bu?null:e;default:return null}}function c0(e,t){if(wn)return e==="compositionend"||!wl&&zd(e,t)?(e=_d(),Ii=yl=kt=null,wn=!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=Wu(n)}}function Wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gd(){for(var e=window,t=Qi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function Cl(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 x0(e){var t=Gd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wd(n.ownerDocument.documentElement,n)){if(r!==null&&Cl(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=Gu(n,o);var s=Gu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cn=null,ca=null,wr=null,fa=!1;function Ku(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fa||Cn==null||Cn!==Qi(r)||(r=Cn,"selectionStart"in r&&Cl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wr&&Or(wr,r)||(wr=r,r=eo(ca,"onSelect"),0En||(e.current=ga[En],ga[En]=null,En--)}function B(e,t){En++,ga[En]=e.current,e.current=t}var It={},he=Ht(It),Pe=Ht(!1),ln=It;function Un(e,t){var n=e.type.contextTypes;if(!n)return It;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 Ee(e){return e=e.childContextTypes,e!=null}function no(){$(Pe),$(he)}function Ju(e,t,n){if(he.current!==It)throw Error(k(168));B(he,t),B(Pe,n)}function eh(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(k(108,p1(e)||"Unknown",i));return Y({},n,r)}function ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||It,ln=he.current,B(he,e),B(Pe,Pe.current),!0}function ec(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=eh(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,$(Pe),$(he),B(he,e)):$(Pe),B(Pe,n)}var st=null,Io=!1,Ss=!1;function th(e){st===null?st=[e]:st.push(e)}function M0(e){Io=!0,th(e)}function Wt(){if(!Ss&&st!==null){Ss=!0;var e=0,t=I;try{var n=st;for(I=1;e>=s,i-=s,lt=1<<32-Qe(t)+i|n<E?(L=T,T=null):L=T.sibling;var M=d(p,T,m[E],x);if(M===null){T===null&&(T=L);break}e&&T&&M.alternate===null&&t(p,T),h=o(M,h,E),j===null?C=M:j.sibling=M,j=M,T=L}if(E===m.length)return n(p,T),H&&Zt(p,E),C;if(T===null){for(;EE?(L=T,T=null):L=T.sibling;var z=d(p,T,M.value,x);if(z===null){T===null&&(T=L);break}e&&T&&z.alternate===null&&t(p,T),h=o(z,h,E),j===null?C=z:j.sibling=z,j=z,T=L}if(M.done)return n(p,T),H&&Zt(p,E),C;if(T===null){for(;!M.done;E++,M=m.next())M=f(p,M.value,x),M!==null&&(h=o(M,h,E),j===null?C=M:j.sibling=M,j=M);return H&&Zt(p,E),C}for(T=r(p,T);!M.done;E++,M=m.next())M=g(T,p,E,M.value,x),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?E:M.key),h=o(M,h,E),j===null?C=M:j.sibling=M,j=M);return e&&T.forEach(function(xe){return t(p,xe)}),H&&Zt(p,E),C}function S(p,h,m,x){if(typeof m=="object"&&m!==null&&m.type===xn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case hi:e:{for(var C=m.key,j=h;j!==null;){if(j.key===C){if(C=m.type,C===xn){if(j.tag===7){n(p,j.sibling),h=i(j,m.props.children),h.return=p,p=h;break e}}else if(j.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===wt&&ac(C)===j.type){n(p,j.sibling),h=i(j,m.props),h.ref=sr(p,j,m),h.return=p,p=h;break e}n(p,j);break}else t(p,j);j=j.sibling}m.type===xn?(h=an(m.props.children,p.mode,x,m.key),h.return=p,p=h):(x=Gi(m.type,m.key,m.props,null,p.mode,x),x.ref=sr(p,h,m),x.return=p,p=x)}return s(p);case vn:e:{for(j=m.key;h!==null;){if(h.key===j)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Rs(m,p.mode,x),h.return=p,p=h}return s(p);case wt:return j=m._init,S(p,h,j(m._payload),x)}if(dr(m))return v(p,h,m,x);if(er(m))return w(p,h,m,x);Pi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=Vs(m,p.mode,x),h.return=p,p=h),s(p)):n(p,h)}return S}var Hn=ah(!0),lh=ah(!1),ri={},tt=Ht(ri),zr=Ht(ri),Br=Ht(ri);function tn(e){if(e===ri)throw Error(k(174));return e}function Rl(e,t){switch(B(Br,t),B(zr,e),B(tt,ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ea(t,e)}$(tt),B(tt,t)}function Wn(){$(tt),$(zr),$(Br)}function uh(e){tn(Br.current);var t=tn(tt.current),n=ea(t,e.type);t!==n&&(B(zr,e),B(tt,n))}function Ll(e){zr.current===e&&($(tt),$(zr))}var K=Ht(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ps=[];function Ml(){for(var e=0;en?n:4,e(!0);var r=Ue.transition;Ue.transition={};try{e(!1),t()}finally{I=n,Ue.transition=r}}function Ph(){return it().memoizedState}function O0(e,t,n){var r=Dt(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eh(e)?kh(t,n):(Th(e,t,n),n=ge(),e=He(e,r,n),e!==null&&jh(e,t,r))}function F0(e,t,n){var r=Dt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eh(e))kh(t,i);else{Th(e,t,i);var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,rt(a,s))return}catch{}finally{}n=ge(),e=He(e,r,n),e!==null&&jh(e,t,r)}}function Eh(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function kh(e,t){Cr=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Th(e,t,n){ne!==null&&e.mode&1&&!(_&2)?(e=t.interleaved,e===null?(n.next=n,Je===null?Je=[t]:Je.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function jh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pl(e,n)}}var fo={readContext:We,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},_0={readContext:We,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:ks,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$i(4194308,4,xh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();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=O0.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Es,useDebugValue:Ol,useDeferredValue:function(e){var t=Es(e),n=t[0],r=t[1];return ks(function(){var i=Ue.transition;Ue.transition={};try{r(e)}finally{Ue.transition=i}},[e]),n},useTransition:function(){var e=Es(!1),t=e[0];return e=A0.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,i=ot();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));Gn&30||dh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ks(ph.bind(null,r,o,e),[e]),r.flags|=2048,$r(9,hh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ot(),t=ne.identifierPrefix;if(H){var n=ut,r=lt;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[be]=t,e[Ir]=r,Lh(e,t,!1,!1),t.stateNode=e;e:{switch(s=na(n,r),n){case"dialog":U("cancel",e),U("close",e),i=r;break;case"iframe":case"object":case"embed":U("load",e),i=r;break;case"video":case"audio":for(i=0;iqn&&(t.flags|=128,r=!0,ar(o,!1),t.lanes=4194304)}else{if(!r)if(e=uo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ar(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!H)return fe(t),null}else 2*J()-o.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,ar(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=J(),t.sibling=null,n=K.current,B(K,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return Ul(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}var $0=vt.ReactCurrentOwner,Re=!1;function me(e,t,n,r){t.child=e===null?lh(t,null,n,r):Hn(t,e.child,n,r)}function fc(e,t,n,r,i){n=n.render;var o=t.ref;return _n(t,i),r=Dl(e,t,n,r,o,i),n=Al(),e!==null&&!Re?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gt(e,t,i)):(H&&n&&Tl(t),t.flags|=1,me(e,t,r,i),t.child)}function dc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Dh(e,t,o,r,i)):(e=Gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(s,r)&&e.ref===t.ref)return gt(e,t,i)}return t.flags|=1,e=zt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Dh(e,t,n,r,i){if(e!==null&&Or(e.memoizedProps,r)&&e.ref===t.ref)if(Re=!1,(e.lanes&i)!==0)e.flags&131072&&(Re=!0);else return t.lanes=e.lanes,gt(e,t,i);return Ea(e,t,n,r,i)}function Ah(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},B(Vn,Ve),Ve|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null},r=o!==null?o.baseLanes:n,B(Vn,Ve),Ve|=r;else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,B(Vn,Ve),Ve|=e,null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(Vn,Ve),Ve|=r;return me(e,t,i,n),t.child}function Oh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ea(e,t,n,r,i){var o=Ee(n)?ln:he.current;return o=Un(t,o),_n(t,i),n=Dl(e,t,n,r,o,i),r=Al(),e!==null&&!Re?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gt(e,t,i)):(H&&r&&Tl(t),t.flags|=1,me(e,t,n,i),t.child)}function hc(e,t,n,r,i){if(Ee(n)){var o=!0;ro(t)}else o=!1;if(_n(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),ih(t,n,r),xa(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=We(u):(u=Ee(n)?ln:he.current,u=Un(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&ic(t,s,r,u),Ct=!1;var d=t.memoizedState;s.state=d,so(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Pe.current||Ct?(typeof c=="function"&&(va(t,n,c,r),l=t.memoizedState),(a=Ct||rc(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,nh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ge(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=We(l):(l=Ee(n)?ln:he.current,l=Un(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&ic(t,s,r,l),Ct=!1,d=t.memoizedState,s.state=d,so(t,r,s,i);var v=t.memoizedState;a!==f||d!==v||Pe.current||Ct?(typeof g=="function"&&(va(t,n,g,r),v=t.memoizedState),(u=Ct||rc(t,n,u,r,d,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ka(e,t,n,r,o,i)}function ka(e,t,n,r,i,o){Oh(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ec(t,n,!1),gt(e,t,o);r=t.stateNode,$0.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Hn(t,e.child,null,o),t.child=Hn(t,null,a,o)):me(e,t,a,o),t.memoizedState=r.state,i&&ec(t,n,!0),t.child}function Fh(e){var t=e.stateNode;t.pendingContext?Ju(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ju(e,t.context,!1),Rl(e,t.containerInfo)}function pc(e,t,n,r,i){return $n(),Vl(i),t.flags|=256,me(e,t,n,r),t.child}var Ti={dehydrated:null,treeContext:null,retryLane:0};function ji(e){return{baseLanes:e,cachePool:null}}function _h(e,t,n){var r=t.pendingProps,i=K.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),B(K,i&1),e===null)return Ca(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=vo(i,r,0,null),e=an(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ji(n),t.memoizedState=Ti,e):Ta(t,i));if(i=e.memoizedState,i!==null){if(a=i.dehydrated,a!==null){if(s)return t.flags&256?(t.flags&=-257,Vi(e,t,n,Error(k(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=vo({mode:"visible",children:r.children},i,0,null),o=an(o,i,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Hn(t,e.child,null,n),t.child.memoizedState=ji(n),t.memoizedState=Ti,o);if(!(t.mode&1))t=Vi(e,t,n,null);else if(a.data==="$!")t=Vi(e,t,n,Error(k(419)));else if(r=(n&e.childLanes)!==0,Re||r){if(r=ne,r!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}r=o&(r.suspendedLanes|n)?0:o,r!==0&&r!==i.retryLane&&(i.retryLane=r,He(e,r,-1))}$l(),t=Vi(e,t,n,Error(k(421)))}else a.data==="$?"?(t.flags|=128,t.child=e.child,t=tg.bind(null,e),a._reactRetry=t,t=null):(n=i.treeContext,Ce=at(a.nextSibling),Le=t,H=!0,qe=null,n!==null&&(Ie[ze++]=lt,Ie[ze++]=ut,Ie[ze++]=un,lt=n.id,ut=n.overflow,un=t),t=Ta(t,t.pendingProps.children),t.flags|=4096);return t}return o?(r=gc(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?ji(n):{baseLanes:i.baseLanes|n,cachePool:null},o.childLanes=e.childLanes&~n,t.memoizedState=Ti,r):(n=mc(e,t,r.children,n),t.memoizedState=null,n)}return o?(r=gc(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?ji(n):{baseLanes:i.baseLanes|n,cachePool:null},o.childLanes=e.childLanes&~n,t.memoizedState=Ti,r):(n=mc(e,t,r.children,n),t.memoizedState=null,n)}function Ta(e,t){return t=vo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function mc(e,t,n,r){var i=e.child;return e=i.sibling,n=zt(i,{mode:"visible",children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function gc(e,t,n,r,i){var o=t.mode;e=e.child;var s=e.sibling,a={mode:"hidden",children:n};return!(o&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=a,t.deletions=null):(n=zt(e,a),n.subtreeFlags=e.subtreeFlags&14680064),s!==null?r=zt(s,r):(r=an(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Vi(e,t,n,r){return r!==null&&Vl(r),Hn(t,e.child,null,n),e=Ta(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ya(e.return,t,n)}function Ts(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ih(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(me(e,t,r.children,n),r=K.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yc(e,n,t);else if(e.tag===19)yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(K,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ts(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ts(t,!0,n,null,o);break;case"together":Ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function H0(e,t,n){switch(t.tag){case 3:Fh(t),$n();break;case 5:uh(t);break;case 1:Ee(t.type)&&ro(t);break;case 4:Rl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;B(io,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?_h(e,t,n):(B(K,K.current&1),e=gt(e,t,n),e!==null?e.sibling:null);B(K,K.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ih(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,Ah(e,t,n)}return gt(e,t,n)}function W0(e,t){switch(jl(t),t.tag){case 1:return Ee(t.type)&&no(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(),$(Pe),$(he),Ml(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ll(t),null;case 13:if($(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(K),null;case 4:return Wn(),null;case 10:return El(t.type._context),null;case 22:case 23:return Ul(),null;case 24:return null;default:return null}}var Ri=!1,nn=!1,G0=typeof WeakSet=="function"?WeakSet:Set,V=null;function ho(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 ja(e,t,n){try{n()}catch(r){Se(e,t,r)}}var vc=!1;function K0(e,t){if(e=Gd(),Cl(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,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(da={focusedElem:e,selectionRange:n},V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,S=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ge(t.type,w),S);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;if(m.nodeType===1)m.textContent="";else if(m.nodeType===9){var x=m.body;x!=null&&(x.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(C){Se(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return v=vc,vc=!1,v}function Wr(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&&ja(t,n,o)}i=i.next}while(i!==r)}}function Uo(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 Va(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 xc(e,t,n){if(et&&typeof et.onCommitFiberUnmount=="function")try{et.onCommitFiberUnmount(Do,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var i=r,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ja(t,n,o),r=r.next}while(r!==e)}break;case 1:if(ho(t,n),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(s){Se(t,n,s)}break;case 5:ho(t,n);break;case 4:Uh(e,t,n)}}function zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[be],delete t[Ir],delete t[ma],delete t[R0],delete t[L0])),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 Bh(e){return e.tag===5||e.tag===3||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bh(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 Cc(e){e:{for(var t=e.return;t!==null;){if(Bh(t))break e;t=t.return}throw Error(k(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,n.flags&32&&(Rr(t,""),n.flags&=-33),n=wc(e),La(e,n,t);break;case 3:case 4:t=n.stateNode.containerInfo,n=wc(e),Ra(e,n,t);break;default:throw Error(k(161))}}function Ra(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=to));else if(r!==4&&(e=e.child,e!==null))for(Ra(e,t,n),e=e.sibling;e!==null;)Ra(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}function Uh(e,t,n){for(var r=t,i=!1,o,s;;){if(!i){i=r.return;e:for(;;){if(i===null)throw Error(k(160));switch(o=i.stateNode,i.tag){case 5:s=!1;break e;case 3:o=o.containerInfo,s=!0;break e;case 4:o=o.containerInfo,s=!0;break e}i=i.return}i=!0}if(r.tag===5||r.tag===6){e:for(var a=e,l=r,u=n,c=l;;)if(xc(a,c,u),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}s?(a=o,l=r.stateNode,a.nodeType===8?a.parentNode.removeChild(l):a.removeChild(l)):o.removeChild(r.stateNode)}else if(r.tag===18)s?(a=o,l=r.stateNode,a.nodeType===8?Cs(a.parentNode,l):a.nodeType===1&&Cs(a,l),Dr(a)):Cs(o,r.stateNode);else if(r.tag===4){if(r.child!==null){o=r.stateNode.containerInfo,s=!0,r.child.return=r,r=r.child;continue}}else if(xc(e,r,n),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(i=!1)}r.sibling.return=r.return,r=r.sibling}}function js(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Wr(3,t,t.return),Uo(3,t),Wr(5,t,t.return);return;case 1:return;case 5:var n=t.stateNode;if(n!=null){var r=t.memoizedProps,i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(e==="input"&&r.type==="radio"&&r.name!=null&&hd(n,r),na(e,i),t=na(e,r),i=0;ii&&(i=s),r&=~o}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Y0(r/1960))-r,10e?16:e,Tt===null)var r=!1;else{if(e=Tt,Tt=null,go=0,_&6)throw Error(k(331));var i=_;for(_|=4,V=e.current;V!==null;){var o=V,s=o.child;if(V.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lJ()-zl?sn(e,0):Il|=n),ke(e,t)}function Qh(e,t){t===0&&(e.mode&1?(t=yi,yi<<=1,!(yi&130023424)&&(yi=4194304)):t=1);var n=ge();e=Ho(e,t),e!==null&&(ei(e,t,n),ke(e,n))}function tg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qh(e,n)}function ng(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(k(314))}r!==null&&r.delete(t),Qh(e,n)}var Yh;Yh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Re=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Re=!1,H0(e,t,n);Re=!!(e.flags&131072)}else Re=!1,H&&t.flags&1048576&&oh(t,lo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Un(t,he.current);_n(t,n),i=Dl(null,t,r,e,i,n);var o=Al();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,Ee(r)?(o=!0,ro(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kl(t),i.updater=zo,t.stateNode=i,i._reactInternals=t,xa(t,r,e,n),t=ka(null,t,r,!0,o,n)):(t.tag=0,H&&o&&Tl(t),me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ig(r),e=Ge(r,e),i){case 0:t=Ea(null,t,r,e,n);break e;case 1:t=hc(null,t,r,e,n);break e;case 11:t=fc(null,t,r,e,n);break e;case 14:t=dc(null,t,r,Ge(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),Ea(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),hc(e,t,r,i,n);case 3:e:{if(Fh(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,i=o.element,nh(e,t),so(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Error(k(423)),t=pc(e,t,r,n,i);break e}else if(r!==i){i=Error(k(424)),t=pc(e,t,r,n,i);break e}else for(Ce=at(t.stateNode.containerInfo.firstChild),Le=t,H=!0,qe=null,n=lh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===i){t=gt(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return uh(t),e===null&&Ca(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ha(r,i)?s=null:o!==null&&ha(r,o)&&(t.flags|=32),Oh(e,t),me(e,t,s,n),t.child;case 6:return e===null&&Ca(t),null;case 13:return _h(e,t,n);case 4:return Rl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),fc(e,t,r,i,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(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,B(io,r._currentValue),r._currentValue=s,o!==null)if(rt(o.value,s)){if(o.children===i.children&&!Pe.current){t=gt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ft(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ya(o.return,n,t),a.lanes|=n;break}l=l.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(k(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ya(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}me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_n(t,n),i=We(i),r=r(i),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,i=Ge(r,t.pendingProps),i=Ge(r.type,i),dc(e,t,r,i,n);case 15:return Dh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ee(r)?(e=!0,ro(t)):e=!1,_n(t,n),ih(t,r,i),xa(t,r,i,n),ka(null,t,r,!0,e,n);case 19:return Ih(e,t,n);case 22:return Ah(e,t,n)}throw Error(k(156,t.tag))};function Zh(e,t){return jd(e,t)}function rg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Be(e,t,n,r){return new rg(e,t,n,r)}function Hl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ig(e){if(typeof e=="function")return Hl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cl)return 11;if(e===fl)return 14}return 2}function zt(e,t){var n=e.alternate;return n===null?(n=Be(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Hl(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xn:return an(n.children,i,o,t);case ul:s=8,i|=8;break;case Ks:return e=Be(12,n,t,i|2),e.elementType=Ks,e.lanes=o,e;case qs:return e=Be(13,n,t,i),e.elementType=qs,e.lanes=o,e;case Qs:return e=Be(19,n,t,i),e.elementType=Qs,e.lanes=o,e;case cd:return vo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ld:s=10;break e;case ud:s=9;break e;case cl:s=11;break e;case fl:s=14;break e;case wt:s=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Be(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=Be(7,e,r,t),e.lanes=n,e}function vo(e,t,n,r){return e=Be(22,e,r,t),e.elementType=cd,e.lanes=n,e.stateNode={},e}function Vs(e,t,n){return e=Be(6,e,null,t),e.lanes=n,e}function Rs(e,t,n){return t=Be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function og(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=cs(0),this.expirationTimes=cs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wl(e,t,n,r,i,o,s,a,l){return e=new og(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Be(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},kl(o),e}function sg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ep)}catch(e){console.error(e)}}ep(),rd.exports=De;var fg=rd.exports,Lc=fg;Ws.createRoot=Lc.createRoot,Ws.hydrateRoot=Lc.hydrateRoot;/** * @remix-run/router v1.6.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ql(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hg(){return Math.random().toString(36).substr(2,8)}function Nc(e,t){return{usr:e.state,key:e.key,idx:t}}function Oa(e,t,n,r){return n===void 0&&(n=null),Kr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bn(t):t,{state:n,key:t&&t.key||r||hg()})}function wo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function bn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pg(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=jt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Kr({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=jt.Pop;let S=c(),p=S==null?null:S-u;u=S,l&&l({action:a,location:w.location,delta:p})}function d(S,p){a=jt.Push;let h=Oa(w.location,S,p);n&&n(h,S),u=c()+1;let m=Nc(h,u),x=w.createHref(h);try{s.pushState(m,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(x)}o&&l&&l({action:a,location:w.location,delta:1})}function g(S,p){a=jt.Replace;let h=Oa(w.location,S,p);n&&n(h,S),u=c();let m=Nc(h,u),x=w.createHref(h);s.replaceState(m,"",x),o&&l&&l({action:a,location:w.location,delta:0})}function v(S){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof S=="string"?S:wo(S);return re(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let w={get action(){return a},get location(){return e(i,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Mc,f),l=S,()=>{i.removeEventListener(Mc,f),l=null}},createHref(S){return t(i,S)},createURL:v,encodeLocation(S){let p=v(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:g,go(S){return s.go(S)}};return w}var Dc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Dc||(Dc={}));function mg(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?bn(t):t,i=Yl(r.pathname||"/",n);if(i==null)return null;let o=tp(e);gg(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(re(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=At([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),tp(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Pg(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of np(o.path))i(o,s,l)}),t}function np(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=np(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function gg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Eg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yg=/^:\w+$/,vg=3,xg=2,wg=1,Cg=10,Sg=-2,Ac=e=>e==="*";function Pg(e,t){let n=e.split("/"),r=n.length;return n.some(Ac)&&(r+=Sg),t&&(r+=xg),n.filter(i=>!Ac(i)).reduce((i,o)=>i+(yg.test(o)?vg:o===""?wg:Cg),r)}function Eg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function kg(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(c==="*"){let d=a[f]||"";s=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=Rg(a[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function jg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ql(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Vg(e){try{return decodeURI(e)}catch(t){return Ql(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Rg(e,t){try{return decodeURIComponent(e)}catch(n){return Ql(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Yl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Lg(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bn(e):e;return{pathname:n?n.startsWith("/")?n:Mg(n,t):t,search:Dg(r),hash:Ag(i)}}function Mg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ls(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function rp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ip(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=bn(e):(i=Kr({},e),re(!i.pathname||!i.pathname.includes("?"),Ls("?","pathname","search",i)),re(!i.pathname||!i.pathname.includes("#"),Ls("#","pathname","hash",i)),re(!i.search||!i.search.includes("#"),Ls("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let f=t.length-1;if(s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=Lg(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const At=e=>e.join("/").replace(/\/\/+/g,"/"),Ng=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ag=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Og(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const op=["post","put","patch","delete"];new Set(op);const Fg=["get",...op];new Set(Fg);/** * React Router v6.13.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),s=P.useRef(!1);return ap(()=>{s.current=!0}),P.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=ip(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:At([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}function lp(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=P.useContext(hn),{pathname:i}=Yo(),o=JSON.stringify(rp(r).map(s=>s.pathnameBase));return P.useMemo(()=>ip(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function $g(e,t){return Hg(e,t)}function Hg(e,t,n){ii()||re(!1);let{navigator:r}=P.useContext(Jn),{matches:i}=P.useContext(hn),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Yo(),u;if(t){var c;let w=typeof t=="string"?bn(t):t;a==="/"||(c=w.pathname)!=null&&c.startsWith(a)||re(!1),u=w}else u=l;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",g=mg(e,{pathname:d}),v=Qg(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:At([a,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:At([a,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n);return t&&v?P.createElement(Qo.Provider,{value:{location:Co({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:jt.Pop}},v):v}function Wg(){let e=bg(),t=Og(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,o)}const Gg=P.createElement(Wg,null);class Kg extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?P.createElement(hn.Provider,{value:this.props.routeContext},P.createElement(sp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qg(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Zl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(hn.Provider,{value:t},r)}function Qg(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let a=o.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id]));a>=0||re(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,l,u)=>{let c=l.route.id?s==null?void 0:s[l.route.id]:null,f=null;n&&(f=l.route.errorElement||Gg);let d=t.concat(o.slice(0,u+1)),g=()=>{let v;return c?v=f:l.route.Component?v=P.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=a,P.createElement(qg,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?P.createElement(Kg,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:g(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):g()},null)}var Fa;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Fa||(Fa={}));var qr;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(qr||(qr={}));function Yg(e){let t=P.useContext(Zl);return t||re(!1),t}function Zg(e){let t=P.useContext(Ig);return t||re(!1),t}function Xg(e){let t=P.useContext(hn);return t||re(!1),t}function up(e){let t=Xg(),n=t.matches[t.matches.length-1];return n.route.id||re(!1),n.route.id}function bg(){var e;let t=P.useContext(sp),n=Zg(qr.UseRouteError),r=up(qr.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Jg(){let{router:e}=Yg(Fa.UseNavigateStable),t=up(qr.UseNavigateStable),n=P.useRef(!1);return ap(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Co({fromRouteId:t},o)))},[e,t])}function cp(e){re(!1)}function e2(e){let{basename:t="/",children:n=null,location:r,navigationType:i=jt.Pop,navigator:o,static:s=!1}=e;ii()&&re(!1);let a=t.replace(/^\/*/,"/"),l=P.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=bn(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:g="default"}=r,v=P.useMemo(()=>{let w=Yl(u,a);return w==null?null:{location:{pathname:w,search:c,hash:f,state:d,key:g},navigationType:i}},[a,u,c,f,d,g,i]);return v==null?null:P.createElement(Jn.Provider,{value:l},P.createElement(Qo.Provider,{children:n,value:v}))}function t2(e){let{children:t,location:n}=e;return $g(_a(t),n)}var Fc;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Fc||(Fc={}));new Promise(()=>{});function _a(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,_a(r.props.children,o));return}r.type!==cp&&re(!1),!r.props.index||!r.props.children||re(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=_a(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.13.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function r2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i2(e,t){return e.button===0&&(!t||t==="_self")&&!r2(e)}const o2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function s2(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=dg({window:i,v5Compat:!0}));let s=o.current,[a,l]=P.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=P.useCallback(f=>{u&&Oc?Oc(()=>l(f)):l(f)},[l,u]);return P.useLayoutEffect(()=>s.listen(c),[s,c]),P.createElement(e2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s})}const a2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,u2=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,f=n2(t,o2),{basename:d}=P.useContext(Jn),g,v=!1;if(typeof u=="string"&&l2.test(u)&&(g=u,a2))try{let h=new URL(window.location.href),m=u.startsWith("//")?new URL(h.protocol+u):new URL(u),x=Yl(m.pathname,d);m.origin===h.origin&&x!=null?u=x+m.search+m.hash:v=!0}catch{}let w=zg(u,{relative:i}),S=c2(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i});function p(h){r&&r(h),h.defaultPrevented||S(h)}return P.createElement("a",Ia({},f,{href:g||w,onClick:v||o?r:p,ref:n,target:l}))});var _c;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(_c||(_c={}));var Ic;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ic||(Ic={}));function c2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Bg(),l=Yo(),u=lp(e,{relative:s});return P.useCallback(c=>{if(i2(c,n)){c.preventDefault();let f=r!==void 0?r:wo(l)===wo(u);a(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[l,a,u,r,i,n,e,o,s])}const f2=()=>y.jsxs("svg",{width:"128",height:"38",viewBox:"0 0 128 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsxs("g",{clipPath:"url(#clip0_130_3)",children:[y.jsx("path",{d:"M37.3679 32.8247H26.6918C26.8841 31.2743 27.7818 22.2063 22.2995 17.6603C22.2995 17.6603 21.7049 19.8972 16.0448 23.4075C11.5563 26.1833 10.4371 30.916 10.2243 32.8247H0.00288019C-0.0408386 30.7354 0.151525 22.977 5.09758 18.4701C10.8452 13.2347 18.4581 10.218 20.1456 0C20.1456 0 39.959 7.4031 37.3679 32.8247Z",fill:"var(--azap-red)"}),y.jsx("path",{d:"M58.691 12.3375C59.0175 11.6029 59.5188 11.2988 60.2882 11.2988H62.6257C63.366 11.2988 63.8965 11.6029 64.2229 12.3375L73.5117 32.8398H69.3701C68.5423 32.8398 67.9507 32.4725 67.6854 31.8011L66.0882 28.0138C66.0008 27.8 65.8813 27.7398 65.6744 27.7398H57.2454C57.0384 27.7398 56.919 27.8 56.8315 28.0138L55.2052 31.8011C54.9399 32.4725 54.3483 32.8398 53.5205 32.8398H49.3789L58.6968 12.3375H58.691ZM64.1617 23.9795C64.3395 23.9795 64.3978 23.8561 64.3395 23.7056L62.3867 19.0933L61.5298 16.5584H61.352L60.5243 19.0933L58.5424 23.7056C58.4841 23.8591 58.5424 23.9795 58.7202 23.9795H64.1617Z",fill:"white"}),y.jsx("path",{d:"M90.0141 32.8368H78.656C76.2893 32.8368 75.0186 31.6747 75.0186 29.5974V28.6821C75.0186 26.942 75.7589 25.9003 77.8282 24.8316L84.4239 21.3182C84.7183 21.1345 84.8087 21.0442 84.8087 20.8304V20.7401C84.8087 20.4963 84.6892 20.3427 84.4531 20.3427H77.4726C76.6157 20.3427 76.2019 19.9754 76.0824 19.1204L75.7268 16.462H86.2281C88.6239 16.462 89.9558 17.6241 89.9558 19.6714V20.5866C89.9558 22.3598 89.1864 23.4286 87.1462 24.4673L80.5213 27.9807C80.2269 28.1643 80.1366 28.2546 80.1366 28.4684V28.5587C80.1366 28.8026 80.2561 28.9561 80.4922 28.9561H88.2712C89.1281 28.9561 89.5419 29.3234 89.6323 30.1784L90.017 32.8368H90.0141Z",fill:"white"}),y.jsx("path",{d:"M92.853 27.3695C92.853 24.3137 94.5376 22.7873 97.8515 22.7873H103.176V21.9022C103.206 20.7732 102.704 20.3427 101.638 20.3427H95.4557C94.5988 20.3427 94.2141 19.9754 94.0946 19.1204L93.7099 16.462H101.253C106.371 16.462 107.849 18.5996 107.849 22.2966V32.8368H105.155C104.415 32.8368 104.15 32.6531 103.943 32.042L103.646 31.0635H103.526C102.815 32.3762 101.337 33.1107 99.3554 33.1107H97.8457C94.7387 33.1107 92.8472 31.765 92.8472 28.5888V27.3665L92.853 27.3695ZM100.099 29.3565C102.229 29.3565 103.174 28.6219 103.174 27.0654V26.1171H98.7667C97.8807 26.1171 97.5251 26.4212 97.5251 27.2792V28.1643C97.5251 29.0193 97.8807 29.3565 98.7667 29.3565H100.099Z",fill:"white"}),y.jsx("path",{d:"M111.261 16.4621H113.954C114.695 16.4621 114.96 16.6457 115.167 17.2569L115.464 18.2353H115.584C116.295 16.9227 117.772 16.1881 119.783 16.1881H121.885C125.849 16.1881 128.008 18.5394 128.008 22.4833V26.8216C127.979 30.7625 125.849 33.1168 121.885 33.1168H119.845C118.011 33.1168 116.679 32.4755 116.059 31.3737H115.939V35.8956C115.939 36.6904 115.525 37.1781 114.756 37.3317L111.264 38.003V16.4621H111.261ZM115.933 26.6048C115.933 28.4383 116.703 29.2331 118.656 29.2331H120.579C122.532 29.2331 123.331 28.4383 123.331 26.6048V22.7242C123.331 20.8907 122.532 20.0959 120.579 20.0959H118.656C116.703 20.0959 115.933 20.8907 115.933 22.7242V26.6048Z",fill:"white"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_130_3",children:y.jsx("rect",{width:"128",height:"38",fill:"white"})})})]}),d2=()=>y.jsx("svg",{width:"44",height:"40",viewBox:"0 0 44 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M44 0.407331L43.0019 8.07841C40.5621 7.91344 38.6768 8.35336 37.3459 9.39816C36.0151 10.443 35.1279 11.9002 34.6843 13.7699C34.2407 15.6395 34.1575 17.7566 34.4348 20.1212H44V40H25.6181V18.4715C25.6181 11.9827 27.1708 7.08859 30.276 3.78921C33.4367 0.434828 38.0113 -0.692464 44 0.407331ZM18.3819 0.407331L17.3837 8.07841C14.9439 7.91344 13.0586 8.35336 11.7278 9.39816C10.397 10.443 9.50977 11.9002 9.06616 13.7699C8.62256 15.6395 8.53938 17.7566 8.81663 20.1212H18.3819V40H0V18.4715C0 11.9827 1.55262 7.08859 4.65784 3.78921C7.81852 0.434828 12.3932 -0.692464 18.3819 0.407331Z",fill:"#ED1C24"})}),h2=()=>y.jsx("svg",{width:"30",height:"25",viewBox:"0 0 30 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M0.0196737 24.9929C0.0196737 24.9929 -0.521188 17.766 4.06883 13.8369C8.65154 9.9078 14.7253 7.65248 16.0701 0C16.0701 0 31.9671 5.58156 29.7963 24.766H21.2668C21.2668 24.766 22.5824 16.9645 17.795 13.234C17.795 13.234 17.32 14.9078 12.803 17.539C8.81965 19.8582 8.16915 23.9858 8.1326 25H0.0269828L0.0196737 24.9929Z",fill:"white"})}),p2=()=>y.jsx("svg",{width:"30",height:"26",viewBox:"0 0 30 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M0.0196731 25.9928C0.0196731 25.9928 -0.521183 18.7081 4.06884 14.7476C8.65155 10.7871 14.7253 8.51369 16.0701 0.799988C16.0701 0.799988 31.9671 6.4262 29.7963 25.7641H21.2668C21.2668 25.7641 22.5824 17.9002 17.795 14.1399C17.795 14.1399 17.32 15.8271 12.803 18.4793C8.81965 20.817 8.16915 24.9777 8.13261 26H0.0269892L0.0196731 25.9928Z",fill:"#ED1C24"})}),m2=()=>y.jsx("svg",{width:"30",height:"25",viewBox:"0 0 30 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.39398 14.2167L4.39428 14.2165C5.46714 13.2966 6.62513 12.4685 7.80488 11.6247C7.86293 11.5832 7.92104 11.5417 7.97919 11.5001C9.21224 10.6178 10.4639 9.71405 11.6162 8.68816C13.8158 6.72984 15.6653 4.31606 16.4448 0.690024C16.4775 0.704189 16.5116 0.719071 16.547 0.734687C16.9642 0.918949 17.5618 1.20467 18.2741 1.60718C19.6996 2.41274 21.5783 3.68269 23.3895 5.53809C26.9422 9.17774 30.2599 15.0924 29.3467 24.266H21.8349C21.8563 24.0623 21.8787 23.8106 21.8966 23.5194C21.9464 22.709 21.9618 21.5875 21.8231 20.3435C21.5473 17.8708 20.6514 14.8259 18.1024 12.8396L17.5168 12.3833L17.3167 13.0883C17.3158 13.0906 17.3144 13.0943 17.3124 13.0994C17.3107 13.1034 17.3087 13.1084 17.3062 13.1142C17.2927 13.1458 17.2657 13.2033 17.218 13.2854C17.1226 13.4495 16.944 13.7124 16.6239 14.0624C15.9828 14.7634 14.7781 15.8098 12.5513 17.107C8.82467 19.2767 7.86915 22.9406 7.67435 24.5H0.501698C0.498874 24.3185 0.498968 24.0877 0.506681 23.8165C0.527123 23.0977 0.600974 22.0989 0.814131 20.982C1.24244 18.7378 2.2212 16.0766 4.39398 14.2167Z",stroke:"white"})}),g2=()=>y.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{d:"M11.6665 28.8334L28.3332 12.1667",stroke:"#29317D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:"M11.6665 12.1667H28.3332V28.8334",stroke:"#29317D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),y2=()=>y.jsxs("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("g",{clipPath:"url(#clip0_166_125)",children:y.jsx("path",{d:"M13 22.0544C13.2554 21.5054 13.5143 21.3927 14.1073 21.5718C14.2911 21.6269 14.4755 21.6792 14.6669 21.735C14.5348 21.3463 14.3821 20.9876 14.2911 20.6136C13.9629 19.2626 14.1232 17.9774 14.8894 16.7966C15.3227 16.1279 15.9168 16.1461 16.3067 16.8372C17.013 18.0895 17.9025 19.1863 19.0269 20.0863C20.5188 21.2805 22.215 21.9992 24.1096 22.2464C24.21 22.2593 24.3098 22.274 24.4273 22.2904C24.4472 21.9029 24.4507 21.5236 24.4895 21.1478C24.7103 18.986 26.0959 16.8935 28.3005 16.2095C29.5611 15.8185 30.797 15.8942 31.9947 16.4573C32.138 16.5248 32.246 16.523 32.3864 16.4532C33.2941 16.0005 34.2053 15.556 35.1177 15.1122C35.4964 14.9278 35.8393 14.9724 36.0594 15.2331C36.2884 15.5044 36.2866 15.7974 36.1322 16.1056C35.804 16.7614 35.4805 17.4196 35.1552 18.0772C35.1218 18.1453 35.0918 18.2157 35.0419 18.3238C35.4171 18.2932 35.7571 18.2739 36.0952 18.2363C36.4252 18.1993 36.7064 18.275 36.8902 18.5651C37.0699 18.8481 37.0147 19.1299 36.8438 19.4023C36.5203 19.9184 36.1945 20.4327 35.8839 20.9564C35.8228 21.0592 35.7899 21.2071 35.8075 21.3246C36.1862 23.7911 35.9479 26.1819 34.9415 28.4781C34.3791 29.7616 33.5994 30.9047 32.6834 31.9621C30.7547 34.1891 28.2618 35.3164 25.3943 35.6969C22.1439 36.1278 18.9799 35.7333 15.9022 34.6201C15.2328 34.3782 14.5917 34.0729 14.0204 33.6384C13.9335 33.5726 13.8525 33.4981 13.7721 33.4247C13.522 33.1975 13.4351 32.9221 13.5507 32.5992C13.6552 32.3068 13.9106 32.1436 14.2705 32.1395C14.8095 32.1342 15.3491 32.1524 15.8875 32.1336C17.0864 32.0913 18.2448 31.8741 19.2964 31.2552C19.53 31.1173 19.7514 30.9582 19.9921 30.8002C19.442 30.6141 18.913 30.4544 18.398 30.2571C17.279 29.8279 16.2638 29.2273 15.409 28.3736C15.19 28.1546 15.0526 27.9163 15.1377 27.6004C15.2217 27.288 15.4454 27.1289 15.7519 27.0596C15.9638 27.0121 16.1711 26.9457 16.4165 26.8776C16.1194 26.695 15.8505 26.543 15.5951 26.3709C14.4261 25.5824 13.6317 24.5127 13.2161 23.1646C13.135 22.9069 13.071 22.6438 13 22.3826C13 22.2734 13 22.1636 13 22.0544ZM14.7579 23.231C14.9528 23.6936 15.1994 24.0764 15.5106 24.4205C16.2116 25.1961 17.0935 25.674 18.0781 25.9834C18.1896 26.0187 18.3029 26.0486 18.4133 26.0862C18.7051 26.1854 18.8883 26.3821 18.9218 26.6944C18.9546 27.0062 18.8225 27.2452 18.556 27.399C18.1479 27.6344 17.7334 27.8587 17.3113 28.0936C17.9342 28.5275 18.6059 28.8621 19.3239 29.0752C20.0397 29.2878 20.7736 29.441 21.5034 29.6013C21.8198 29.6706 22.0881 29.778 22.2009 30.1086C22.2989 30.3963 22.2173 30.6458 22.0177 30.863C20.7706 32.2252 19.2693 33.1288 17.4228 33.41C17.306 33.4276 17.1903 33.4576 17.0465 33.4875C17.0935 33.5192 17.1052 33.531 17.1193 33.5356C20.0467 34.4469 23.0211 34.7099 26.0448 34.138C27.6453 33.8351 29.1307 33.2344 30.3983 32.1841C31.6777 31.1243 32.6764 29.8315 33.4209 28.3484C34.0068 27.18 34.3568 25.9406 34.4912 24.6377C34.6069 23.5169 34.5188 22.4072 34.3544 21.3005C34.3051 20.967 34.3468 20.6682 34.5429 20.3881C34.6709 20.2055 34.7783 20.0094 34.9169 19.7828C34.5552 19.8104 34.2387 19.8438 33.9217 19.8568C33.2712 19.8832 32.93 19.3642 33.2107 18.7747C33.415 18.3449 33.6328 17.9216 33.843 17.4953C33.8677 17.4448 33.8829 17.3896 33.9182 17.2957C33.4778 17.51 33.0704 17.6873 32.684 17.9028C32.3089 18.1118 31.9777 18.0936 31.609 17.874C30.8234 17.4073 29.9674 17.301 29.0773 17.4848C27.3517 17.8406 26.1969 19.3759 25.9362 21.0774C25.8469 21.661 25.8698 22.2423 25.9732 22.8247C26.0759 23.4024 25.7524 23.8222 25.2187 23.7723C24.4278 23.6983 23.6282 23.6367 22.8561 23.4635C20.1354 22.8535 17.9242 21.4138 16.1934 19.2321C16.0249 19.0195 15.864 18.8011 15.6885 18.5715C15.6656 18.6203 15.6462 18.6461 15.6415 18.6743C15.6192 18.8128 15.591 18.9514 15.5828 19.0906C15.517 20.182 15.854 21.1343 16.5803 21.9493C16.7923 22.1877 16.9026 22.4501 16.7799 22.7636C16.6619 23.0642 16.4212 23.2175 16.1083 23.228C15.6744 23.2427 15.2393 23.2316 14.759 23.2316L14.7579 23.231Z",fill:"white"})}),y.jsx("rect",{x:"0.5",y:"0.5",width:"49",height:"49",rx:"4.5",stroke:"white"}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_166_125",children:y.jsx("rect",{width:"24",height:"20.8671",fill:"white",transform:"translate(13 15)"})})})]}),v2=()=>y.jsxs("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.4702 13.0156C19.9986 13.0419 19.5348 13.072 18.8699 13.1842C17.8309 13.3594 17.045 13.6279 16.2575 14.0766C15.782 14.3476 15.4616 14.5983 14.9829 15.074C14.627 15.4278 14.4609 15.6229 14.2689 15.9135C13.791 16.6366 13.4529 17.481 13.2607 18.4318C13.0429 19.5095 13.009 20.3302 13.0006 24.7195C12.9951 27.6031 13.03 29.7505 13.0933 30.431C13.1936 31.5078 13.4902 32.6084 13.9005 33.4267C14.3899 34.4026 15.2697 35.3614 16.1762 35.9067C16.7827 36.2715 17.6174 36.5808 18.447 36.7483C19.5919 36.9793 20.5432 37.0115 25.7822 36.9971C29.917 36.9857 30.4908 36.962 31.4436 36.7633C32.6581 36.5102 33.5689 36.1136 34.4328 35.4618C34.7908 35.1917 35.4142 34.5597 35.645 34.2328C36.4222 33.1322 36.8484 31.7424 36.9523 29.9702C37.0377 28.5119 37.0004 20.3995 36.9039 19.4853C36.7569 18.0913 36.3598 16.9051 35.7149 15.9333C34.4957 14.0962 32.7175 13.2151 29.8966 13.0504C29.1415 13.0063 23.3314 12.9823 21.4702 13.0156ZM28.7777 15.1723C29.8519 15.2266 31.0737 15.3554 31.4923 15.4584C32.2016 15.6329 32.9222 16.0124 33.3793 16.4522C33.7146 16.7747 34.1599 17.4445 34.357 17.9223C34.4067 18.0429 34.4854 18.2958 34.5318 18.4842C34.8483 19.7677 34.8972 20.7445 34.8741 25.312C34.8569 28.7231 34.8388 29.2714 34.7049 30.431C34.584 31.4773 34.4958 31.8287 34.206 32.4163C33.8834 33.0704 33.5193 33.4883 32.9285 33.8826C32.1699 34.3889 31.8586 34.4977 30.5055 34.73C29.9556 34.8244 28.9751 34.8504 25.4201 34.8652C21.2969 34.8823 20.7916 34.8656 19.199 34.6588C18.6942 34.5933 18.5352 34.5607 18.2116 34.4566C17.2938 34.1612 16.6067 33.6559 16.1172 32.9165C15.6978 32.2829 15.5977 32.0302 15.4001 31.1059C15.1753 30.0539 15.1628 29.7949 15.1429 25.7565C15.125 22.1074 15.1513 20.9962 15.2849 19.7651C15.4157 18.5607 15.5012 18.205 15.8112 17.5759C16.2 16.7869 16.701 16.2914 17.6026 15.8045C18.2895 15.4334 19.2231 15.2552 20.9765 15.1601C21.9033 15.1098 27.7242 15.1189 28.7777 15.1723ZM30.9819 17.1587C30.6016 17.3001 30.2484 17.619 30.0692 17.9831C29.9692 18.1861 29.9624 18.2221 29.9624 18.5469C29.9624 18.8743 29.9687 18.9066 30.0733 19.1192C30.2128 19.4028 30.5143 19.7114 30.8018 19.8649C31.0103 19.9762 31.0253 19.9791 31.3943 19.9791C31.7493 19.9791 31.785 19.9729 31.9692 19.8803C32.5571 19.5846 32.9063 18.98 32.8392 18.3738C32.7916 17.9431 32.4149 17.4448 31.9736 17.2288C31.7751 17.1316 31.7089 17.1164 31.447 17.1074C31.2163 17.0995 31.1093 17.1113 30.9819 17.1587ZM24.087 18.8791C23.7774 18.9189 23.4259 18.9979 23.0502 19.1123C20.9672 19.7462 19.2927 21.6373 18.8847 23.8165C18.7459 24.5575 18.7608 25.6004 18.9213 26.3792C19.3369 28.3959 20.9397 30.1749 22.9532 30.8542C23.6848 31.101 24.2006 31.1697 25.1495 31.1467C26.2036 31.1211 26.8367 30.9715 27.6913 30.5459C29.4936 29.6482 30.7205 27.9776 31.0515 25.9704C31.1209 25.55 31.1302 24.5725 31.0691 24.1434C30.9259 23.1388 30.5547 22.1909 30.0081 21.4342C29.7722 21.1076 29.6969 21.021 29.2762 20.5935C28.3126 19.614 27.2308 19.0684 25.9039 18.8926C25.5023 18.8394 24.4569 18.8317 24.087 18.8791ZM25.6037 21.0165C27.0206 21.2213 28.3029 22.3016 28.7596 23.6752C29.3309 25.3934 28.7744 27.1448 27.3149 28.2227C26.2673 28.9964 24.8051 29.1941 23.5274 28.7348C23.0048 28.5469 22.5797 28.2666 22.0867 27.7848C21.4531 27.1656 21.1169 26.542 20.9736 25.7203C20.8998 25.297 20.9253 24.4105 21.0224 24.0218C21.2631 23.0586 21.8659 22.2073 22.7177 21.6276C23.5234 21.0792 24.5433 20.8632 25.6037 21.0165Z",fill:"white"}),y.jsx("rect",{x:"0.5",y:"0.5",width:"49",height:"49",rx:"4.5",stroke:"white"})]}),x2=()=>y.jsxs("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("g",{clipPath:"url(#clip0_166_131)",children:y.jsx("path",{d:"M21.4089 27.1524C20.6623 27.1524 19.9532 27.1565 19.2435 27.1512C18.6276 27.1471 18.1854 26.8233 18.0417 26.2702C18.0071 26.1365 18.003 25.9928 18.0024 25.8532C17.9994 24.6978 17.9989 23.5423 18.0012 22.3875C18.003 21.5628 18.4646 21.1053 19.2957 21.1024C19.9045 21.1 20.5133 21.1024 21.1221 21.1024C21.206 21.1024 21.2904 21.1024 21.4083 21.1024C21.4083 20.981 21.4054 20.8818 21.4083 20.7833C21.4441 19.8255 21.3978 18.8554 21.5356 17.9123C21.8042 16.0677 22.7368 14.6189 24.4043 13.7081C25.2166 13.2647 26.0894 13.0142 27.0214 13.0107C28.1921 13.006 29.3634 13.0283 30.5335 13.0007C31.008 12.9896 31.486 13.3878 31.5886 13.8312C31.6203 13.9667 31.635 14.1092 31.6356 14.2483C31.6391 15.3175 31.6391 16.3873 31.6373 17.4565C31.6361 18.2742 31.1634 18.7481 30.3434 18.7557C29.6414 18.7621 28.9387 18.7575 28.2366 18.7721C27.7141 18.7833 27.6167 18.8759 27.6032 19.3915C27.5885 19.951 27.5997 20.5112 27.5997 21.1024C27.697 21.1024 27.7797 21.1024 27.8624 21.1024C28.6349 21.1024 29.4079 21.1006 30.1804 21.1024C31.032 21.1047 31.4989 21.5716 31.4995 22.4191C31.5007 23.5511 31.4995 24.6831 31.4995 25.8151C31.4989 26.6796 31.0314 27.1512 30.1722 27.1524C29.3223 27.1536 28.4724 27.1524 27.5874 27.1524C27.5874 27.2668 27.5874 27.3647 27.5874 27.4632C27.5874 30.1876 27.5897 32.9121 27.5833 35.6365C27.5833 35.8511 27.5657 36.0816 27.4865 36.2769C27.2994 36.7385 26.9269 36.9878 26.429 36.9919C25.1416 37.0025 23.8535 37.0036 22.5655 36.9919C21.9303 36.9861 21.4699 36.5274 21.4189 35.8916C21.4107 35.7907 21.4101 35.6887 21.4101 35.5878C21.4101 32.8868 21.4101 30.1859 21.4101 27.4849V27.1524H21.4089ZM22.8189 35.5749H26.1744C26.1744 35.4611 26.1744 35.3614 26.1744 35.2611C26.1744 32.3959 26.1738 29.5307 26.175 26.6656C26.175 26.0362 26.4659 25.7453 27.0894 25.7447C28.0026 25.7436 28.9158 25.7447 29.8291 25.7447H30.0772V22.5106C29.9792 22.5106 29.8947 22.5106 29.8109 22.5106C28.89 22.5106 27.9686 22.5136 27.0478 22.5095C26.5345 22.5071 26.195 22.2332 26.1867 21.7493C26.1715 20.8601 26.158 19.9675 26.2213 19.0818C26.2917 18.0982 26.8343 17.5334 27.8114 17.4184C28.5053 17.3369 29.212 17.3656 29.9129 17.3457C30.0121 17.3428 30.1112 17.3457 30.2168 17.3457V14.3972C30.1833 14.3873 30.1616 14.3749 30.1405 14.3749C29.1334 14.3779 28.1258 14.3538 27.1205 14.3937C26.0829 14.4354 25.1269 14.755 24.3321 15.4536C23.3257 16.338 22.9022 17.4982 22.8418 18.7979C22.799 19.7176 22.8242 20.6396 22.8195 21.561C22.8166 22.2115 22.5227 22.5095 21.8781 22.5106C21.1989 22.5118 20.5197 22.5106 19.8411 22.5106C19.7033 22.5106 19.5661 22.5106 19.4306 22.5106V25.7447C19.5367 25.7447 19.6218 25.7447 19.7068 25.7447C20.4716 25.7447 21.2365 25.7412 22.0019 25.7465C22.4764 25.75 22.7755 26.0345 22.8148 26.5043C22.8218 26.5899 22.8195 26.6761 22.8195 26.7618C22.8195 29.5958 22.8195 32.4299 22.8195 35.2634V35.5749H22.8189Z",fill:"white"})}),y.jsx("rect",{x:"0.5",y:"0.5",width:"49",height:"49",rx:"4.5",stroke:"white"}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_166_131",children:y.jsx("rect",{width:"13.6379",height:"24",fill:"white",transform:"translate(18 13)"})})})]}),w2=[{title:"Who we are",path:"#about"},{title:"Projects",path:"#portfolio"},{title:"Services",path:"#services"},{title:"Contacts",path:"#contact"}],fp=P.createContext(),C2=({children:e})=>{const[t,n]=P.useState(""),r=()=>n("textEnter"),i=()=>n("buttonEnter"),o=()=>n("default");return y.jsx(fp.Provider,{value:{cursorVariant:t,textEnter:r,buttonEnter:i,leave:o},children:e})},oi=()=>P.useContext(fp),dp=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Zo=P.createContext({}),Xl=P.createContext(null),Xo=typeof document<"u",zc=Xo?P.useLayoutEffect:P.useEffect,hp=P.createContext({strict:!1});function S2(e,t,n,r){const{visualElement:i}=P.useContext(Zo),o=P.useContext(hp),s=P.useContext(Xl),a=P.useContext(dp).reducedMotion,l=P.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;return P.useInsertionEffect(()=>{u&&u.update(n,s)}),zc(()=>{u&&u.render()}),P.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?zc:P.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function Rn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P2(e,t,n){return P.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Rn(n)&&(n.current=r))},[t])}function Qr(e){return typeof e=="string"||Array.isArray(e)}function bo(e){return typeof e=="object"&&typeof e.start=="function"}const bl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jl=["initial",...bl];function Jo(e){return bo(e.animate)||Jl.some(t=>Qr(e[t]))}function pp(e){return!!(Jo(e)||e.variants)}function E2(e,t){if(Jo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qr(n)?n:void 0,animate:Qr(r)?r:void 0}}return e.inherit!==!1?t:{}}function k2(e){const{initial:t,animate:n}=E2(e,P.useContext(Zo));return P.useMemo(()=>({initial:t,animate:n}),[Bc(t),Bc(n)])}function Bc(e){return Array.isArray(e)?e.join(" "):e}const Uc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Yr={};for(const e in Uc)Yr[e]={isEnabled:t=>Uc[e].some(n=>!!t[n])};function T2(e){for(const t in e)Yr[t]={...Yr[t],...e[t]}}const mp=P.createContext({}),gp=P.createContext({}),j2=Symbol.for("motionComponentSymbol");function V2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&T2(e);function o(a,l){let u;const c={...P.useContext(dp),...a,layoutId:R2(a)},{isStatic:f}=c,d=k2(a),g=r(a,f);if(!f&&Xo){d.visualElement=S2(i,g,c,t);const v=P.useContext(gp),w=P.useContext(hp).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,w,e,v))}return P.createElement(Zo.Provider,{value:d},u&&d.visualElement?P.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,a,P2(g,d.visualElement,l),g,f,d.visualElement))}const s=P.forwardRef(o);return s[j2]=i,s}function R2({layoutId:e}){const t=P.useContext(mp).id;return t&&e!==void 0?t+"-"+e:e}function L2(e){function t(r,i={}){return V2(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 M2=["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 eu(e){return typeof e!="string"||e.includes("-")?!1:!!(M2.indexOf(e)>-1||/[A-Z]/.test(e))}const So={};function N2(e){Object.assign(So,e)}const si=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pn=new Set(si);function yp(e,{layout:t,layoutId:n}){return pn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!So[e]||e==="opacity")}const Te=e=>!!(e&&e.getVelocity),D2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A2=si.length;function O2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),xp=vp("--"),za=vp("var(--"),F2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,_2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Bt=(e,t,n)=>Math.min(Math.max(n,e),t),mn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Er={...mn,transform:e=>Bt(0,1,e)},Ni={...mn,default:1},kr=e=>Math.round(e*1e5)/1e5,es=/(-)?([\d]*\.?[\d])+/g,wp=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,I2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ai(e){return typeof e=="string"}const li=e=>({test:t=>ai(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xt=li("deg"),nt=li("%"),N=li("px"),z2=li("vh"),B2=li("vw"),$c={...nt,parse:e=>nt.parse(e)/100,transform:e=>nt.transform(e*100)},Hc={...mn,transform:Math.round},Cp={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,radius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,size:N,top:N,right:N,bottom:N,left:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Ni,scaleX:Ni,scaleY:Ni,scaleZ:Ni,skew:xt,skewX:xt,skewY:xt,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:Er,originX:$c,originY:$c,originZ:N,zIndex:Hc,fillOpacity:Er,strokeOpacity:Er,numOctaves:Hc};function tu(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(xp(f)){o[f]=d;continue}const g=Cp[f],v=_2(d,g);if(pn.has(f)){if(l=!0,s[f]=v,!c)continue;d!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=v):i[f]=v}if(t.transform||(l||r?i.transform=O2(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:g=0}=a;i.transformOrigin=`${f} ${d} ${g}`}}const nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sp(e,t,n){for(const r in t)!Te(t[r])&&!yp(r,n)&&(e[r]=t[r])}function U2({transformTemplate:e},t,n){return P.useMemo(()=>{const r=nu();return tu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function $2(e,t,n){const r=e.style||{},i={};return Sp(i,r,e),Object.assign(i,U2(e,t,n)),e.transformValues?e.transformValues(i):i}function H2(e,t,n){const r={},i=$2(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 W2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Po(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||W2.has(e)}let Pp=e=>!Po(e);function G2(e){e&&(Pp=t=>t.startsWith("on")?!Po(t):e(t))}try{G2(require("@emotion/is-prop-valid").default)}catch{}function K2(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Pp(i)||n===!0&&Po(i)||!t&&!Po(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Wc(e,t,n){return typeof e=="string"?e:N.transform(t+n*e)}function q2(e,t,n){const r=Wc(t,e.x,e.width),i=Wc(n,e.y,e.height);return`${r} ${i}`}const Q2={offset:"stroke-dashoffset",array:"stroke-dasharray"},Y2={offset:"strokeDashoffset",array:"strokeDasharray"};function Z2(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Q2:Y2;e[o.offset]=N.transform(-r);const s=N.transform(t),a=N.transform(n);e[o.array]=`${s} ${a}`}function ru(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(tu(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:v,dimensions:w}=e;g.transform&&(w&&(v.transform=g.transform),delete g.transform),w&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=q2(w,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&Z2(g,s,a,l,!1)}const Ep=()=>({...nu(),attrs:{}}),iu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function X2(e,t,n,r){const i=P.useMemo(()=>{const o=Ep();return ru(o,t,{enableHardwareAcceleration:!1},iu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Sp(o,e.style,e),i.style={...o,...i.style}}return i}function b2(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(eu(n)?X2:H2)(r,o,s,n),c={...K2(r,typeof n=="string",e),...l,ref:i},{children:f}=r,d=P.useMemo(()=>Te(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}const ou=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function kp(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 Tp=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 jp(e,t,n,r){kp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Tp.has(i)?i:ou(i),t.attrs[i])}function su(e,t){const{style:n}=e,r={};for(const i in n)(Te(n[i])||t.style&&Te(t.style[i])||yp(i,e))&&(r[i]=n[i]);return r}function Vp(e,t){const n=su(e,t);for(const r in e)if(Te(e[r])||Te(t[r])){const i=si.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function au(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 J2(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Eo=e=>Array.isArray(e),ey=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ty=e=>Eo(e)?e[e.length-1]||0:e;function Ki(e){const t=Te(e)?e.get():e;return ey(t)?t.toValue():t}function ny({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:ry(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Rp=e=>(t,n)=>{const r=P.useContext(Zo),i=P.useContext(Xl),o=()=>ny(e,t,r,i);return n?o():J2(o)};function ry(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ki(o[d]);let{initial:s,animate:a}=e;const l=Jo(e),u=pp(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;return f&&typeof f!="boolean"&&!bo(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const v=au(e,g);if(!v)return;const{transitionEnd:w,transition:S,...p}=v;for(const h in p){let m=p[h];if(Array.isArray(m)){const x=c?m.length-1:0;m=m[x]}m!==null&&(i[h]=m)}for(const h in w)i[h]=w[h]}),i}const iy={useVisualState:Rp({scrapeMotionValuesFromProps:Vp,createRenderState:Ep,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}ru(n,r,{enableHardwareAcceleration:!1},iu(t.tagName),e.transformTemplate),jp(t,n)}})},oy={useVisualState:Rp({scrapeMotionValuesFromProps:su,createRenderState:nu})};function sy(e,{forwardMotionProps:t=!1},n,r){return{...eu(e)?iy:oy,preloadedFeatures:n,useRender:b2(t),createVisualElement:r,Component:e}}function ct(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Lp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ts(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ay=e=>t=>Lp(t)&&e(t,ts(t));function dt(e,t,n,r){return ct(e,t,ay(n),r)}const ly=(e,t)=>n=>t(e(n)),Ot=(...e)=>e.reduce(ly);function Mp(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gc=Mp("dragHorizontal"),Kc=Mp("dragVertical");function Np(e){let t=!1;if(e==="y")t=Kc();else if(e==="x")t=Gc();else{const n=Gc(),r=Kc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Dp(){const e=Np(!0);return e?(e(),!1):!0}class Gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function uy(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.add(l),d.indexOf(l)===-1&&(d.push(l),f&&i&&(r=t.length)),l},cancel:l=>{const u=n.indexOf(l);u!==-1&&n.splice(u,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let u=0;u(e[t]=uy(()=>Zr=!0),e),{}),fy=e=>zn[e].process(G),Ap=e=>{Zr=!1,G.delta=Ba?1e3/60:Math.max(Math.min(e-G.timestamp,cy),1),G.timestamp=e,G.isProcessing=!0,ns.forEach(fy),G.isProcessing=!1,Zr&&(Ba=!1,requestAnimationFrame(Ap))},dy=()=>{Zr=!0,Ba=!0,G.isProcessing||requestAnimationFrame(Ap)},Q=ns.reduce((e,t)=>{const n=zn[t];return e[t]=(r,i=!1,o=!1)=>(Zr||dy(),n.schedule(r,i,o)),e},{});function yt(e){ns.forEach(t=>zn[t].cancel(e))}function qc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||Dp())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Q.update(()=>a[r](o,s))};return dt(e.current,n,i,{passive:!e.getProps()[r]})}class hy extends Gt{mount(){this.unmount=Ot(qc(this.node,!0),qc(this.node,!1))}unmount(){}}class py extends Gt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ot(ct(this.node.current,"focus",()=>this.onFocus()),ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Op=(e,t)=>t?e===t?!0:Op(e,t.parentElement):!1,ie=e=>e;function Ms(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ts(n))}class my extends Gt{constructor(){super(...arguments),this.removeStartListeners=ie,this.removeEndListeners=ie,this.removeAccessibleListeners=ie,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=dt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Q.update(()=>{Op(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=dt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ot(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ms("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Q.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",s),Ms("down",(a,l)=>{this.startPress(a,l)})},n=ct(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ms("cancel",(o,s)=>this.cancelPress(o,s))},i=ct(this.node.current,"blur",r);this.removeAccessibleListeners=Ot(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&&Q.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Dp()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Q.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=dt(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ot(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ua=new WeakMap,Ns=new WeakMap,gy=e=>{const t=Ua.get(e.target);t&&t(e)},yy=e=>{e.forEach(gy)};function vy({root:e,...t}){const n=e||document;Ns.has(n)||Ns.set(n,{});const r=Ns.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(yy,{root:e,...t})),r[i]}function xy(e,t,n){const r=vy(t);return Ua.set(e,n),r.observe(e),()=>{Ua.delete(e),r.unobserve(e)}}const wy={some:0,all:1};class Cy extends Gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:wy[i]},a=l=>{const{isIntersecting:u}=l;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(l)};return xy(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Sy(t,n))&&this.startObserver()}unmount(){}}function Sy({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Py={inView:{Feature:Cy},tap:{Feature:my},focus:{Feature:py},hover:{Feature:hy}};function Fp(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 ky(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function rs(e,t,n){const r=e.getProps();return au(r,t,n!==void 0?n:r.custom,Ey(e),ky(e))}const Ty="framerAppearId",jy="data-"+ou(Ty);let Vy=ie,lu=ie;const Ft=e=>e*1e3,ht=e=>e/1e3,Ry={current:!1},_p=e=>Array.isArray(e)&&typeof e[0]=="number";function Ip(e){return!!(!e||typeof e=="string"&&zp[e]||_p(e)||Array.isArray(e)&&e.every(Ip))}const mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function Bp(e){if(e)return _p(e)?mr(e):Array.isArray(e)?e.map(Bp):zp[e]}function Ly(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Bp(a);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"})}const Qc={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ds={},Up={};for(const e in Qc)Up[e]=()=>(Ds[e]===void 0&&(Ds[e]=Qc[e]()),Ds[e]);function My(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const $p=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ny=1e-7,Dy=12;function Ay(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=$p(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Ny&&++aAy(o,0,1,e,n);return o=>o===0||o===1?o:$p(i(o),t,r)}const Oy=ui(.42,0,1,1),Fy=ui(0,0,.58,1),Hp=ui(.42,0,.58,1),_y=e=>Array.isArray(e)&&typeof e[0]!="number",Wp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gp=e=>t=>1-e(1-t),Kp=e=>1-Math.sin(Math.acos(e)),uu=Gp(Kp),Iy=Wp(uu),qp=ui(.33,1.53,.69,.99),cu=Gp(qp),zy=Wp(cu),By=e=>(e*=2)<1?.5*cu(e):.5*(2-Math.pow(2,-10*(e-1))),Uy={linear:ie,easeIn:Oy,easeInOut:Hp,easeOut:Fy,circIn:Kp,circInOut:Iy,circOut:uu,backIn:cu,backInOut:zy,backOut:qp,anticipate:By},Yc=e=>{if(Array.isArray(e)){lu(e.length===4);const[t,n,r,i]=e;return ui(t,n,r,i)}else if(typeof e=="string")return Uy[e];return e},fu=(e,t)=>n=>!!(ai(n)&&I2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Qp=(e,t,n)=>r=>{if(!ai(r))return r;const[i,o,s,a]=r.match(es);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},$y=e=>Bt(0,255,e),As={...mn,transform:e=>Math.round($y(e))},rn={test:fu("rgb","red"),parse:Qp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+As.transform(e)+", "+As.transform(t)+", "+As.transform(n)+", "+kr(Er.transform(r))+")"};function Hy(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 $a={test:fu("#"),parse:Hy,transform:rn.transform},Ln={test:fu("hsl","hue"),parse:Qp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nt.transform(kr(t))+", "+nt.transform(kr(n))+", "+kr(Er.transform(r))+")"},pe={test:e=>rn.test(e)||$a.test(e)||Ln.test(e),parse:e=>rn.test(e)?rn.parse(e):Ln.test(e)?Ln.parse(e):$a.parse(e),transform:e=>ai(e)?e:e.hasOwnProperty("red")?rn.transform(e):Ln.transform(e)},q=(e,t,n)=>-n*e+n*t+e;function Os(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 Wy({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 a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Os(l,a,e+1/3),o=Os(l,a,e),s=Os(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Fs=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Gy=[$a,rn,Ln],Ky=e=>Gy.find(t=>t.test(e));function Zc(e){const t=Ky(e);let n=t.parse(e);return t===Ln&&(n=Wy(n)),n}const Yp=(e,t)=>{const n=Zc(e),r=Zc(t),i={...n};return o=>(i.red=Fs(n.red,r.red,o),i.green=Fs(n.green,r.green,o),i.blue=Fs(n.blue,r.blue,o),i.alpha=q(n.alpha,r.alpha,o),rn.transform(i))};function qy(e){var t,n;return isNaN(e)&&ai(e)&&(((t=e.match(es))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(wp))===null||n===void 0?void 0:n.length)||0)>0}const Zp={regex:F2,countKey:"Vars",token:"${v}",parse:ie},Xp={regex:wp,countKey:"Colors",token:"${c}",parse:pe.parse},bp={regex:es,countKey:"Numbers",token:"${n}",parse:mn.parse};function _s(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 ko(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&_s(n,Zp),_s(n,Xp),_s(n,bp),n}function Jp(e){return ko(e).values}function em(e){const{values:t,numColors:n,numVars:r,tokenised:i}=ko(e),o=t.length;return s=>{let a=i;for(let l=0;ltypeof e=="number"?0:e;function Yy(e){const t=Jp(e);return em(e)(t.map(Qy))}const Ut={test:qy,parse:Jp,createTransformer:em,getAnimatableNone:Yy},tm=(e,t)=>n=>`${n>0?t:e}`;function nm(e,t){return typeof e=="number"?n=>q(e,t,n):pe.test(e)?Yp(e,t):e.startsWith("var(")?tm(e,t):im(e,t)}const rm=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>nm(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]=nm(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},im=(e,t)=>{const n=Ut.createTransformer(t),r=ko(e),i=ko(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ot(rm(r.values,i.values),n):tm(e,t)},Xr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Xc=(e,t)=>n=>q(e,t,n);function Xy(e){return typeof e=="number"?Xc:typeof e=="string"?pe.test(e)?Yp:im:Array.isArray(e)?rm:typeof e=="object"?Zy:Xc}function by(e,t,n){const r=[],i=n||Xy(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=by(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Bt(e[0],e[o-1],u)):l}function Jy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xr(0,t,r);e.push(q(n,1,i))}}function ev(e){const t=[0];return Jy(t,e.length-1),t}function tv(e,t){return e.map(n=>n*t)}function nv(e,t){return e.map(()=>t||Hp).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_y(r)?r.map(Yc):Yc(r),o={done:!1,value:t[0]},s=tv(n&&n.length===t.length?n:ev(t),e),a=om(s,t,{ease:Array.isArray(i)?i:nv(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function sm(e,t){return t?e*(1e3/t):0}const rv=5;function am(e,t,n){const r=Math.max(t-rv,0);return sm(n-e(r),t-r)}const Is=.001,iv=.01,bc=10,ov=.05,sv=1;function av({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Vy(e<=Ft(bc));let s=1-t;s=Bt(ov,sv,s),e=Bt(iv,bc,ht(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,g=Ha(u,s),v=Math.exp(-f);return Is-d/g*v},o=u=>{const f=u*s*e,d=f*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-f),w=Ha(Math.pow(u,2),s);return(-i(u)+Is>0?-1:1)*((d-g)*v)/w}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Is+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=uv(i,o,a);if(e=Ft(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lv=12;function uv(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function dv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jc(e,fv)&&Jc(e,cv)){const n=av(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function lm({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=dv(r),g=c?-ht(c):0,v=l/(2*Math.sqrt(a*u)),w=o-i,S=ht(Math.sqrt(a/u)),p=Math.abs(w)<5;n||(n=p?.01:2),t||(t=p?.005:.5);let h;if(v<1){const m=Ha(S,v);h=x=>{const C=Math.exp(-v*S*x);return o-C*((g+v*S*w)/m*Math.sin(m*x)+w*Math.cos(m*x))}}else if(v===1)h=m=>o-Math.exp(-S*m)*(w+(g+S*w)*m);else{const m=S*Math.sqrt(v*v-1);h=x=>{const C=Math.exp(-v*S*x),j=Math.min(m*x,300);return o-C*((g+v*S*w)*Math.sinh(j)+m*w*Math.cosh(j))/m}}return{calculatedDuration:d&&f||null,next:m=>{const x=h(m);if(d)s.done=m>=f;else{let C=g;m!==0&&(v<1?C=am(h,m,x):C=0);const j=Math.abs(C)<=n,T=Math.abs(o-x)<=t;s.done=j&&T}return s.value=s.done?o:x,s}}}function ef({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=E=>a!==void 0&&El,v=E=>a===void 0?l:l===void 0||Math.abs(a-E)-w*Math.exp(-E/r),m=E=>p+h(E),x=E=>{const L=h(E),M=m(E);d.done=Math.abs(L)<=u,d.value=d.done?p:M};let C,j;const T=E=>{g(d.value)&&(C=E,j=lm({keyframes:[d.value,v(d.value)],velocity:am(m,E,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:E=>{let L=!1;return!j&&C===void 0&&(L=!0,x(E),T(E)),C!==void 0&&E>C?j.next(E-C):(!L&&x(E),d)}}}const hv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>yt(t),now:()=>G.isProcessing?G.timestamp:performance.now()}},tf=2e4;function nf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=tf?1/0:t}const pv={decay:ef,inertia:ef,tween:To,keyframes:To,spring:lm};function jo({autoplay:e=!0,delay:t=0,driver:n=hv,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:f,...d}){let g=1,v=!1,w,S;const p=()=>{w&&w(),S=new Promise(A=>{w=A})};p();let h;const m=pv[i]||To;let x;m!==To&&typeof r[0]!="number"&&(x=om([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...d,keyframes:r});let j;a==="mirror"&&(j=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",E=null,L=null,M=null;C.calculatedDuration===null&&o&&(C.calculatedDuration=nf(C));const{calculatedDuration:z}=C;let xe=1/0,Oe=1/0;z!==null&&(xe=z+s,Oe=xe*(o+1)-s);let X=0;const b=A=>{if(L===null)return;g>0&&(L=Math.min(L,A)),E!==null?X=E:X=(A-L)*g;const W=X-t,Kt=W<0;X=Math.max(W,0),T==="finished"&&E===null&&(X=Oe);let Ze=X,gn=C;if(o){const is=X/xe;let fi=Math.floor(is),Qt=is%1;!Qt&&is>=1&&(Qt=1),Qt===1&&fi--,fi=Math.min(fi,o+1);const vu=!!(fi%2);vu&&(a==="reverse"?(Qt=1-Qt,s&&(Qt-=s/xe)):a==="mirror"&&(gn=j));let xu=Bt(0,1,Qt);X>Oe&&(xu=a==="reverse"&&vu?1:0),Ze=xu*xe}const je=Kt?{done:!1,value:r[0]}:gn.next(Ze);x&&(je.value=x(je.value));let{done:qt}=je;!Kt&&z!==null&&(qt=X>=Oe);const Fm=E===null&&(T==="finished"||T==="running"&&qt||g<0&&X<=0);return f&&f(je.value),Fm&&R(),je},Fe=()=>{h&&h.stop(),h=void 0},Ye=()=>{T="idle",Fe(),p(),L=M=null},R=()=>{T="finished",c&&c(),Fe(),p()},D=()=>{if(v)return;h||(h=n(b));const A=h.now();l&&l(),E!==null?L=A-E:(!L||T==="finished")&&(L=A),M=L,E=null,T="running",h.start()};e&&D();const O={then(A,W){return S.then(A,W)},get time(){return ht(X)},set time(A){A=Ft(A),X=A,E!==null||!h||g===0?E=A:L=h.now()-A/g},get duration(){const A=C.calculatedDuration===null?nf(C):C.calculatedDuration;return ht(A)},get speed(){return g},set speed(A){A===g||!h||(g=A,O.time=ht(X))},get state(){return T},play:D,pause:()=>{T="paused",E=X},stop:()=>{v=!0,T!=="idle"&&(T="idle",u&&u(),Ye())},cancel:()=>{M!==null&&b(M),Ye()},complete:()=>{T="finished"},sample:A=>(L=0,b(A))};return O}const mv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Di=10,gv=2e4,yv=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Ip(t.ease);function vv(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Up.waapi()&&mv.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(p=>{a=p})};u();let{keyframes:c,duration:f=300,ease:d,times:g}=i;if(yv(t,i)){const p=jo({...i,repeat:0,delay:0});let h={done:!1,value:c[0]};const m=[];let x=0;for(;!h.done&&xv.cancel(),S=()=>{Q.update(w),a(),u()};return v.onfinish=()=>{e.set(My(c,i)),r&&r(),S()},{then(p,h){return l.then(p,h)},get time(){return ht(v.currentTime||0)},set time(p){v.currentTime=Ft(p)},get speed(){return v.playbackRate},set speed(p){v.playbackRate=p},get duration(){return ht(f)},play:()=>{s||(v.play(),yt(w))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:p}=v;if(p){const h=jo({...i,autoplay:!1});e.setWithVelocity(h.sample(p-Di).value,h.sample(p).value,Di)}S()},complete:()=>v.finish(),cancel:S}}function xv({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:ie,pause:ie,stop:ie,then:o=>(o(),Promise.resolve()),cancel:ie,complete:ie});return t?jo({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const wv={type:"spring",stiffness:500,damping:25,restSpeed:10},Cv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sv={type:"keyframes",duration:.8},Pv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ev=(e,{keyframes:t})=>t.length>2?Sv:pn.has(e)?e.startsWith("scale")?Cv(t[1]):wv:Pv,Wa=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ut.test(t)||t==="0")&&!t.startsWith("url(")),kv=new Set(["brightness","contrast","saturate","opacity"]);function Tv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(es)||[];if(!r)return e;const i=n.replace(r,"");let o=kv.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const jv=/([a-z-]*)\(.*?\)/g,Ga={...Ut,getAnimatableNone:e=>{const t=e.match(jv);return t?t.map(Tv).join(" "):e}},Vv={...Cp,color:pe,backgroundColor:pe,outlineColor:pe,fill:pe,stroke:pe,borderColor:pe,borderTopColor:pe,borderRightColor:pe,borderBottomColor:pe,borderLeftColor:pe,filter:Ga,WebkitFilter:Ga},du=e=>Vv[e];function um(e,t){let n=du(e);return n!==Ga&&(n=Ut),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cm=e=>/^0[^.\s]+$/.test(e);function Rv(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||cm(e)}function Lv(e,t,n,r){const i=Wa(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;ui=>{const o=fm(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Ft(s);const l=Lv(t,e,n,o),u=l[0],c=l[l.length-1],f=Wa(e,u),d=Wa(e,c);let g={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:v=>{t.set(v),o.onUpdate&&o.onUpdate(v)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Mv(o)||(g={...g,...Ev(e,g)}),g.duration&&(g.duration=Ft(g.duration)),g.repeatDelay&&(g.repeatDelay=Ft(g.repeatDelay)),!f||!d||Ry.current||o.type===!1)return xv(g);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=vv(t,e,g);if(v)return v}return jo(g)};function Vo(e){return!!(Te(e)&&e.add)}const Nv=e=>/^\-?\d*\.?\d+$/.test(e);function pu(e,t){e.indexOf(t)===-1&&e.push(t)}function mu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gu{constructor(){this.subscriptions=[]}add(t){return pu(this.subscriptions,t),()=>mu(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 Av{constructor(t,n={}){this.version="10.12.16",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}=G;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Q.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=()=>Q.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=Dv(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.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?sm(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 Qn(e,t){return new Av(e,t)}const dm=e=>t=>t.test(e),Ov={test:e=>e==="auto",parse:e=>e},hm=[mn,N,nt,xt,B2,z2,Ov],ur=e=>hm.find(dm(e)),Fv=[...hm,pe,Ut],_v=e=>Fv.find(dm(e));function Iv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qn(n))}function zv(e,t){const n=rs(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=ty(o[s]);Iv(e,s,a)}}function Bv(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;al.remove(f))),u.push(w)}return s&&Promise.all(u).then(()=>{s&&zv(e,s)}),u}function Ka(e,t,n={}){const r=rs(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(pm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Wv(e,t,u+l,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function Wv(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(Gv).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Ka(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Gv(e,t){return e.sortNodePosition(t)}function Kv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ka(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ka(e,t,n);else{const i=typeof t=="function"?rs(e,t,n.custom):t;r=Promise.all(pm(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const qv=[...bl].reverse(),Qv=bl.length;function Yv(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Kv(e,n,r)))}function Zv(e){let t=Yv(e);const n=bv();let r=!0;const i=(l,u)=>{const c=rs(e,u);if(c){const{transition:f,transitionEnd:d,...g}=c;l={...l,...g,...d}}return l};function o(l){t=l(e)}function s(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],g=new Set;let v={},w=1/0;for(let p=0;pw&&C;const M=Array.isArray(x)?x:[x];let z=M.reduce(i,{});j===!1&&(z={});const{prevResolvedValues:xe={}}=m,Oe={...xe,...z},X=b=>{L=!0,g.delete(b),m.needsAnimating[b]=!0};for(const b in Oe){const Fe=z[b],Ye=xe[b];v.hasOwnProperty(b)||(Fe!==Ye?Eo(Fe)&&Eo(Ye)?!Fp(Fe,Ye)||E?X(b):m.protectedKeys[b]=!0:Fe!==void 0?X(b):g.add(b):Fe!==void 0&&g.has(b)?X(b):m.protectedKeys[b]=!0)}m.prevProp=x,m.prevResolvedValues=z,m.isActive&&(v={...v,...z}),r&&e.blockInitialAnimation&&(L=!1),L&&!T&&d.push(...M.map(b=>({animation:b,options:{type:h,...l}})))}if(g.size){const p={};g.forEach(h=>{const m=e.getBaseTarget(h);m!==void 0&&(p[h]=m)}),d.push({animation:p})}let S=!!d.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function a(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(g=>{var v;return(v=g.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=s(c,l);for(const g in n)n[g].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Xv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fp(t,e):!1}function Yt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bv(){return{animate:Yt(!0),whileInView:Yt(),whileHover:Yt(),whileTap:Yt(),whileDrag:Yt(),whileFocus:Yt(),exit:Yt()}}class Jv extends Gt{constructor(t){super(t),t.animationState||(t.animationState=Zv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),bo(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 e3=0;class t3 extends Gt{constructor(){super(...arguments),this.id=e3++}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 n3={animation:{Feature:Jv},exit:{Feature:t3}},rf=(e,t)=>Math.abs(e-t);function r3(e,t){const n=rf(e.x,t.x),r=rf(e.y,t.y);return Math.sqrt(n**2+r**2)}class mm{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Bs(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=r3(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:g}=G;this.history.push({...d,timestamp:g});const{onStart:v,onMove:w}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=zs(c,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,g=Bs(u.type==="pointercancel"?this.lastMoveEventInfo:zs(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,g),d&&d(u,g)},!Lp(t))return;this.handlers=n,this.transformPagePoint=r;const i=ts(t),o=zs(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=G;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Bs(o,this.history)),this.removeListeners=Ot(dt(window,"pointermove",this.handlePointerMove),dt(window,"pointerup",this.handlePointerUp),dt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yt(this.updatePoint)}}function zs(e,t){return t?{point:t(e.point)}:e}function of(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bs({point:e},t){return{point:e,delta:of(e,gm(t)),offset:of(e,i3(t)),velocity:o3(t,.1)}}function i3(e){return e[0]}function gm(e){return e[e.length-1]}function o3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=gm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ft(t)));)n--;if(!r)return{x:0,y:0};const o=ht(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ne(e){return e.max-e.min}function qa(e,t=0,n=.01){return Math.abs(e-t)<=n}function sf(e,t,n,r=.5){e.origin=r,e.originPoint=q(t.min,t.max,e.origin),e.scale=Ne(n)/Ne(t),(qa(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(qa(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Tr(e,t,n,r){sf(e.x,t.x,n.x,r?r.originX:void 0),sf(e.y,t.y,n.y,r?r.originY:void 0)}function af(e,t,n){e.min=n.min+t.min,e.max=e.min+Ne(t)}function s3(e,t,n){af(e.x,t.x,n.x),af(e.y,t.y,n.y)}function lf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ne(t)}function jr(e,t,n){lf(e.x,t.x,n.x),lf(e.y,t.y,n.y)}function a3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?q(n,e,r.max):Math.min(e,n)),e}function uf(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 l3(e,{top:t,left:n,bottom:r,right:i}){return{x:uf(e.x,n,i),y:uf(e.y,t,r)}}function cf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Xr(t.min,t.max-r,e.min):r>i&&(n=Xr(e.min,e.max-i,t.min)),Bt(0,1,n)}function f3(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 Qa=.35;function d3(e=Qa){return e===!1?e=0:e===!0&&(e=Qa),{x:ff(e,"left","right"),y:ff(e,"top","bottom")}}function ff(e,t,n){return{min:df(e,t),max:df(e,n)}}function df(e,t){return typeof e=="number"?e:e[t]||0}const hf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mn=()=>({x:hf(),y:hf()}),pf=()=>({min:0,max:0}),ee=()=>({x:pf(),y:pf()});function Xe(e){return[e("x"),e("y")]}function ym({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function h3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function p3(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 Us(e){return e===void 0||e===1}function Ya({scale:e,scaleX:t,scaleY:n}){return!Us(e)||!Us(t)||!Us(n)}function bt(e){return Ya(e)||vm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function vm(e){return mf(e.x)||mf(e.y)}function mf(e){return e&&e!=="0%"}function Ro(e,t,n){const r=e-n,i=t*r;return n+i}function gf(e,t,n,r,i){return i!==void 0&&(e=Ro(e,i,r)),Ro(e,n,r)+t}function Za(e,t=0,n=1,r,i){e.min=gf(e.min,t,n,r,i),e.max=gf(e.max,t,n,r,i)}function xm(e,{x:t,y:n}){Za(e.x,t.translate,t.scale,t.originPoint),Za(e.y,n.translate,n.scale,n.originPoint)}function m3(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function St(e,t){e.min=e.min+t,e.max=e.max+t}function vf(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=q(e.min,e.max,o);Za(e,t[n],t[r],s,t.scale)}const g3=["x","scaleX","originX"],y3=["y","scaleY","originY"];function Nn(e,t){vf(e.x,t,g3),vf(e.y,t,y3)}function wm(e,t){return ym(p3(e.getBoundingClientRect(),t))}function v3(e,t,n){const r=wm(e,n),{scroll:i}=t;return i&&(St(r.x,i.offset.x),St(r.y,i.offset.y)),r}const x3=new WeakMap;class w3{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=ee(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(ts(l,"page").point)},o=(l,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Np(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(v=>{let w=this.getAxisMotionValue(v).get()||0;if(nt.test(w)){const{projection:S}=this.visualElement;if(S&&S.layout){const p=S.layout.layoutBox[v];p&&(w=Ne(p)*(parseFloat(w)/100))}}this.originPoint[v]=w}),d&&Q.update(()=>d(l,u),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:g}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:v}=u;if(f&&this.currentDirection===null){this.currentDirection=C3(v),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),g&&g(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new mm(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Q.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||!Ai(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=a3(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Rn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=l3(r.layoutBox,t):this.constraints=!1,this.elastic=d3(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xe(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=f3(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=v3(r,i.root,this.visualElement.getTransformPagePoint());let s=u3(i.layout.layoutBox,o);if(n){const a=n(h3(s));this.hasMutatedConstraints=!!a,a&&(s=ym(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Xe(c=>{if(!Ai(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(hu(t,r,0,n))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xe(n=>{const{drag:r}=this.getProps();if(!Ai(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-q(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Rn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xe(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=c3({min:l,max:l},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(!Ai(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(q(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;x3.set(this.visualElement,this);const t=this.visualElement.current,n=dt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Rn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Xe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Qa,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ai(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class S3 extends Gt{constructor(t){super(t),this.removeGroupControls=ie,this.removeListeners=ie,this.controls=new w3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const xf=e=>(t,n)=>{e&&Q.update(()=>e(t,n))};class P3 extends Gt{constructor(){super(...arguments),this.removePointerDownListener=ie}onPointerDown(t){this.session=new mm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:xf(t),onStart:xf(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Q.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=dt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function E3(){const e=P.useContext(Xl);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=P.useId();return P.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(N.test(e))e=parseFloat(e);else return e;const n=wf(e,t.target.x),r=wf(e,t.target.y);return`${n}% ${r}%`}},k3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ut.parse(e);if(i.length>5)return r;const o=Ut.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=q(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class T3 extends ol.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;N2(j3),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()})),qi.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()||Q.postRender(()=>{const a=s.getStack();(!a||!a.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 Cm(e){const[t,n]=E3(),r=P.useContext(mp);return ol.createElement(T3,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(gp),isPresent:t,safeToRemove:n})}const j3={borderRadius:{...cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cr,borderTopRightRadius:cr,borderBottomLeftRadius:cr,borderBottomRightRadius:cr,boxShadow:k3},Sm=["TopLeft","TopRight","BottomLeft","BottomRight"],V3=Sm.length,Cf=e=>typeof e=="string"?parseFloat(e):e,Sf=e=>typeof e=="number"||N.test(e);function R3(e,t,n,r,i,o){i?(e.opacity=q(0,n.opacity!==void 0?n.opacity:1,L3(r)),e.opacityExit=q(t.opacity!==void 0?t.opacity:1,0,M3(r))):o&&(e.opacity=q(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Xr(e,t,r))}function Ef(e,t){e.min=t.min,e.max=t.max}function _e(e,t){Ef(e.x,t.x),Ef(e.y,t.y)}function kf(e,t,n,r,i){return e-=t,e=Ro(e,1/n,r),i!==void 0&&(e=Ro(e,1/i,r)),e}function N3(e,t=0,n=1,r=.5,i,o=e,s=e){if(nt.test(t)&&(t=parseFloat(t),t=q(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=q(o.min,o.max,r);e===o&&(a-=t),e.min=kf(e.min,t,n,a,i),e.max=kf(e.max,t,n,a,i)}function Tf(e,t,[n,r,i],o,s){N3(e,t[n],t[r],t[i],t.scale,o,s)}const D3=["x","scaleX","originX"],A3=["y","scaleY","originY"];function jf(e,t,n,r){Tf(e.x,t,D3,n?n.x:void 0,r?r.x:void 0),Tf(e.y,t,A3,n?n.y:void 0,r?r.y:void 0)}function Vf(e){return e.translate===0&&e.scale===1}function Em(e){return Vf(e.x)&&Vf(e.y)}function Xa(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 Rf(e){return Ne(e.x)/Ne(e.y)}class O3{constructor(){this.members=[]}add(t){pu(this.members,t),t.scheduleRender()}remove(t){if(mu(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 Lf(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:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const F3=(e,t)=>e.depth-t.depth;class _3{constructor(){this.children=[],this.isDirty=!1}add(t){pu(this.children,t),this.isDirty=!0}remove(t){mu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F3),this.isDirty=!1,this.children.forEach(t)}}function I3(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(yt(r),e(o-t))};return Q.read(r,!0),()=>yt(r)}function z3(e){window.MotionDebug&&window.MotionDebug.record(e)}function B3(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U3(e,t,n){const r=Te(e)?e:Qn(e);return r.start(hu("",r,t,n)),r.animation}const Mf=["","X","Y","Z"],Nf=1e3;let $3=0;const Jt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function km({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=$3++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Jt.totalNodes=Jt.resolvedTargetDeltas=Jt.recalculatedProjection=0,this.nodes.forEach(G3),this.nodes.forEach(Z3),this.nodes.forEach(X3),this.nodes.forEach(K3),z3(Jt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=I3(d,250),qi.hasAnimatedSinceResize&&(qi.hasAnimatedSinceResize=!1,this.nodes.forEach(Af))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||n4,{onLayoutAnimationStart:S,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Xa(this.targetLayout,v)||g,m=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const x={...fm(w,"layout"),onPlay:S,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||Af(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,yt(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(b3),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(q3),this.sharedNodes.forEach(J3)}scheduleUpdateProjection(){Q.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Q.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 l=0;l{const C=x/1e3;Of(f.x,s.x,C),Of(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),e4(this.relativeTarget,this.relativeTargetOrigin,d,C),m&&Xa(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ee()),_e(m,this.relativeTarget)),w&&(this.animationValues=c,R3(c,u,this.latestValues,C,h,p)),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&&(yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{qi.hasAnimatedSinceResize=!0,this.currentAnimation=U3(0,Nf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(Nf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Tm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ee();const f=Ne(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Ne(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}_e(a,l),Nn(a,c),Tr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new O3),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(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:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Df),this.root.sharedNodes.clear()}}}function H3(e){e.updateLayout()}function W3(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],g=Ne(d);d.min=r[f].min,d.max=d.min+g}):Tm(o,n.layoutBox,r)&&Xe(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],g=Ne(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=Mn();Tr(a,r,n.layoutBox);const l=Mn();s?Tr(l,e.applyTransform(i,!0),n.measuredBox):Tr(l,r,n.layoutBox);const u=!Em(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const v=ee();jr(v,n.layoutBox,d.layoutBox);const w=ee();jr(w,r,g.layoutBox),Xa(v,w)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function G3(e){Jt.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 K3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function q3(e){e.clearSnapshot()}function Df(e){e.clearMeasurements()}function Q3(e){e.isLayoutDirty=!1}function Y3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Af(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Z3(e){e.resolveTargetDelta()}function X3(e){e.calcProjection()}function b3(e){e.resetRotation()}function J3(e){e.removeLeadSnapshot()}function Of(e,t,n){e.translate=q(t.translate,0,n),e.scale=q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ff(e,t,n,r){e.min=q(t.min,n.min,r),e.max=q(t.max,n.max,r)}function e4(e,t,n,r){Ff(e.x,t.x,n.x,r),Ff(e.y,t.y,n.y,r)}function t4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const n4={duration:.45,ease:[.4,0,.1,1]};function _f(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function r4(e){_f(e.x),_f(e.y)}function Tm(e,t,n){return e==="position"||e==="preserve-aspect"&&!qa(Rf(t),Rf(n),.2)}const i4=km({attachResizeListener:(e,t)=>ct(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$s={current:void 0},jm=km({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$s.current){const e=new i4({});e.mount(window),e.setOptions({layoutScroll:!0}),$s.current=e}return $s.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),o4={pan:{Feature:P3},drag:{Feature:S3,ProjectionNode:jm,MeasureLayout:Cm}},s4=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a4(e){const t=s4.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function ba(e,t,n=1){const[r,i]=a4(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():za(i)?ba(i,t,n+1):i}function l4(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(!za(o))return;const s=ba(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!za(o))continue;const s=ba(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const u4=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Vm=e=>u4.has(e),c4=e=>Object.keys(e).some(Vm),If=e=>e===mn||e===N,zf=(e,t)=>parseFloat(e.split(", ")[t]),Bf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return zf(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?zf(o[1],e):0}},f4=new Set(["x","y","z"]),d4=si.filter(e=>!f4.has(e));function h4(e){const t=[];return d4.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 Uf={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:Bf(4,13),y:Bf(5,14)},p4=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Uf[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Uf[u](l,o)}),e},m4=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Vm);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=ur(c);const d=t[l];let g;if(Eo(d)){const v=d.length,w=d[0]===null?1:0;c=d[w],f=ur(c);for(let S=w;S=0?window.pageYOffset:null,u=p4(t,e,a);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Xo&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function g4(e,t,n,r){return c4(t)?m4(e,t,n,r):{target:t,transitionEnd:r}}const y4=(e,t,n,r)=>{const i=l4(e,t,r);return t=i.target,r=i.transitionEnd,g4(e,t,n,r)},Ja={current:null},Rm={current:!1};function v4(){if(Rm.current=!0,!!Xo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ja.current=e.matches;e.addListener(t),t()}else Ja.current=!1}function x4(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Te(o))e.addValue(i,o),Vo(r)&&r.add(i);else if(Te(s))e.addValue(i,Qn(o,{owner:e})),Vo(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Qn(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const $f=new WeakMap,Lm=Object.keys(Yr),w4=Lm.length,Hf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],C4=Jl.length;class S4{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=()=>Q.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jo(n),this.isVariantNode=pp(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];a[f]!==void 0&&Te(d)&&(d.set(a[f],!1),Vo(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,$f.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)),Rm.current||v4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ja.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$f.delete(this.current),this.projection&&this.projection.unmount(),yt(this.notifyUpdate),yt(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=pn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.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,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:g})}return a}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):ee()}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=Qn(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]: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=au(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&&!Te(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 gu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Mm extends S4{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=$v(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){Bv(this,r,s);const a=y4(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function P4(e){return window.getComputedStyle(e)}class E4 extends Mm{readValueFromInstance(t,n){if(pn.has(n)){const r=du(n);return r&&r.default||0}else{const r=P4(t),i=(xp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wm(t,n)}build(t,n,r,i){tu(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return su(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){kp(t,n,r,i)}}class k4 extends Mm{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(pn.has(n)){const r=du(n);return r&&r.default||0}return n=Tp.has(n)?n:ou(n),t.getAttribute(n)}measureInstanceViewportBox(){return ee()}scrapeMotionValuesFromProps(t,n){return Vp(t,n)}build(t,n,r,i){ru(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){jp(t,n,r,i)}mount(t){this.isSVGTag=iu(t.tagName),super.mount(t)}}const T4=(e,t)=>eu(e)?new k4(t,{enableHardwareAcceleration:!1}):new E4(t,{enableHardwareAcceleration:!0}),j4={layout:{ProjectionNode:jm,MeasureLayout:Cm}},V4={...n3,...Py,...o4,...j4},br=L2((e,t)=>sy(e,t,V4,T4)),R4=()=>{const[e,t]=P.useState({x:0,y:0}),{cursorVariant:n}=oi();P.useEffect(()=>{const i=o=>{t({x:o.clientX-16,y:o.clientY-16})};return window.addEventListener("mousemove",i),()=>{window.removeEventListener("mousemove",i)}},[]);const r={default:{translateX:e.x+5,translateY:e.y+5,background:"rgba(237, 28, 36, 1)",transition:"ease"},textEnter:{width:150,height:150,translateX:e.x-75,translateY:e.y-75,background:"rgba(237, 28, 36, 1)",mixBlendMode:"darken",transition:"ease"},buttonEnter:{width:40,height:40,border:"4px solid var(--azap-blue)",background:"rgba(237, 28, 36, 0)",translateX:e.x-5,translateY:e.y-5,transition:"ease"}};return y.jsx(br.div,{variants:r,className:"cursor",animate:n,transition:{type:"spring",stiffness:100,duration:.4}})};const L4=()=>(P.useEffect(()=>{const e=document.getElementById("topblur"),t=document.getElementById("trigger"),n={};new IntersectionObserver((i,o)=>{i.forEach(s=>{s.isIntersecting?e.style.opacity=0:e.style.opacity=1})},n).observe(t)},[]),y.jsx("div",{id:"topblur"})),ci=({title:e})=>y.jsx("div",{className:"heading",children:y.jsx("p",{children:e})}),M4=({project:e})=>{const{company:t,projects:n,image:r}=e,i={offscreen:{y:300,opacity:0},onscreen:{y:50,opacity:1,transition:{type:"spring",bounce:.4,duration:.8}}};return y.jsxs("div",{className:"project",children:[y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"clientName",children:y.jsxs("span",{children:["Client: ",t]})}),y.jsx("ul",{className:"projectList",children:n.map((o,s)=>{const{title:a,duration:l}=o;return y.jsx(br.div,{initial:"offscreen",whileInView:"onscreen",viewport:{once:!0,amount:.2},children:y.jsxs(br.li,{className:"projectItem",variants:i,children:[y.jsx("h2",{children:a}),(o==null?void 0:o.duration)&&y.jsxs("p",{children:["Project duration: ",l]})]})},s)})})]}),y.jsx("div",{className:"row",children:(e==null?void 0:e.image)&&y.jsx("div",{className:"companyImg",children:y.jsx("img",{src:r,alt:"logo"})})})]})};const N4=()=>y.jsx("div",{className:"map_info",children:y.jsxs("ul",{children:[y.jsxs("li",{children:[y.jsx(h2,{}),"Headquarters"]}),y.jsxs("li",{children:[y.jsx(p2,{}),"Other offices"]}),y.jsxs("li",{children:[y.jsx(m2,{}),"Project places"]})]})}),D4=()=>{const{buttonEnter:e,leave:t}=oi(),[n,r]=P.useState({firstName:"",lastName:"",email:"",message:""});return y.jsxs("form",{children:[y.jsxs("div",{className:"formGroup",children:[y.jsxs("div",{className:"formInput",children:[y.jsx("input",{value:n.firstName,onChange:i=>r({...n,firstName:i.target.value}),type:"text",name:"name",placeholder:" ",className:"input",autoComplete:"off"}),y.jsx("label",{htmlFor:"name",className:"legend",children:"Name"})]}),y.jsxs("div",{className:"formInput",children:[y.jsx("input",{value:n.lastName,onChange:i=>r({...n,lastName:i.target.value}),type:"text",name:"name",placeholder:" ",className:"input",autoComplete:"off"}),y.jsx("label",{htmlFor:"name",className:"legend",children:"Last Name"})]})]}),y.jsxs("div",{className:"formInput",children:[y.jsx("input",{value:n.email,onChange:i=>r({...n,email:i.target.value}),type:"email",name:"email",placeholder:" ",className:"input",autoComplete:"off"}),y.jsx("label",{htmlFor:"email",className:"legend",children:"Email"})]}),y.jsxs("div",{className:"formInput",children:[y.jsx("textarea",{defaultValue:n.message,onChange:i=>r({...n,message:i.target.value}),name:"message",placeholder:" ",className:"input",cols:30,rows:10}),y.jsx("label",{htmlFor:"message",className:"legend",children:"Message"})]}),y.jsx("div",{className:"formBtn",children:y.jsxs("button",{onMouseEnter:e,onMouseLeave:t,children:["Send ",y.jsx(g2,{})]})})]})};const A4=()=>{const[e,t]=P.useState(!1);return{show:e,toggle:()=>{t(!e)}}},O4=()=>{const{buttonEnter:e,leave:t}=oi(),{show:n,toggle:r}=A4();return P.useEffect(()=>{const i=document.getElementById("marker"),o=document.querySelectorAll("section"),s=document.querySelectorAll(".navitem"),a={threshold:"0.1"},l=c=>{i.style.left=c.offsetLeft+"px",i.style.width=c.offsetWidth+"px"};s.forEach(c=>{c.addEventListener("click",f=>{l(f.target)})});const u=new IntersectionObserver(c=>{c.forEach(f=>{f.isIntersecting&&s.forEach(d=>{f.target.id===d.dataset.nav&&l(d)})})},a);o.forEach(c=>{u.observe(c)})},[]),P.useEffect(()=>{const i=window.innerWidth,o=document.getElementById("navlist");i<=768&&(n?(document.querySelector("body").style.overflow="hidden",o.style.right="0%"):(document.querySelector("body").style.overflow="auto",o.style.right="-100%"))},[n]),y.jsx("nav",{children:y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx(u2,{to:"/",className:"logo",onMouseEnter:e,onMouseLeave:t,children:y.jsx(f2,{})})}),y.jsx("div",{id:"navlist",className:"row",children:y.jsxs("ul",{className:"navlist",children:[y.jsx("div",{id:"marker"}),w2.map((i,o)=>{const{title:s,path:a}=i,l=a.replace("#","");return y.jsx("li",{className:"navitem",onMouseEnter:e,onMouseLeave:t,"data-nav":l,children:y.jsx("a",{className:"navlink",href:a,onClick:()=>r(),children:s})},o)})]})}),y.jsx("div",{className:"row",children:y.jsxs("a",{className:"tel",href:"tel:+99361626262",onMouseEnter:e,onMouseLeave:t,children:["+993 222 69222",y.jsx("span",{}),y.jsx("span",{}),y.jsx("span",{}),y.jsx("span",{})]})})]})})};const F4="/assets/petroleum-cdb2a99d.mp4",Wf="/assets/hse-b927c71f.jpg",_4=()=>{const{textEnter:e,buttonEnter:t,leave:n}=oi();return P.useEffect(()=>{const r=document.getElementById("video"),i=document.getElementById("trigger"),o={};new IntersectionObserver((a,l)=>{a.forEach(u=>{u.isIntersecting?r.style.display="block":r.style.display="none"})},o).observe(i)},[]),y.jsxs("header",{children:[y.jsxs("div",{className:"header",children:[y.jsx("video",{id:"video",src:F4,muted:!0,autoPlay:!0,loop:!0,preload:"none",poster:Wf,controls:!1}),y.jsx("img",{id:"bgImg",src:Wf,alt:"hse"})]}),y.jsx("section",{id:"trigger"}),y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx("h1",{className:"heading",onMouseEnter:e,onMouseLeave:n,children:"welcome to ie azap"})}),y.jsxs("div",{className:"row",children:[y.jsx("p",{className:"paragraph",children:"AZAP IE provides innovative energy services that combine proven technologies with advanced digitalization to create sustainable offerings that maximize value and return on investment."}),y.jsx("a",{href:"#portfolio",className:"btn",onMouseEnter:t,onMouseLeave:n,children:"Our projects"})]})]})]})};var yu={},Lo=function(){return Lo=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=a?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),s1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var d=3,g=0,v=0,w=a.length;vwindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const z4=Object.freeze(Object.defineProperty({__proto__:null,CountUp:I4},Symbol.toStringTag,{value:"Module"})),B4=zm(z4);Object.defineProperty(yu,"__esModule",{value:!0});var ae=P,U4=B4;function $4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Nm(e,t){if(e==null)return{};var n=W4(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G4(e,t){return K4(e)||$4(e,t)||q4(e,t)||Q4()}function K4(e){if(Array.isArray(e))return e}function q4(e,t){if(e){if(typeof e=="string")return Kf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kf(e,t)}}function Kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?w.current=setTimeout(L,a*1e3):L(),u==null||u({pauseResume:x,reset:C,update:j})}),x=Ke(function(){h().pauseResume(),c==null||c({reset:C,start:T,update:j})}),C=Ke(function(){h().el&&(w.current&&clearTimeout(w.current),h().reset(),f==null||f({pauseResume:x,start:T,update:j}))}),j=Ke(function(L){h().update(L),d==null||d({pauseResume:x,reset:C,start:T})}),T=Ke(function(){C(),m()}),E=Ke(function(L){o&&(L&&C(),m())});return ae.useEffect(function(){S.current?s&&E(!0):(S.current=!0,E())},[s,S,E,a,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),ae.useEffect(function(){return function(){C()}},[C]),{start:T,pauseResume:x,reset:C,update:j,getCountUp:h}},t5=["className","redraw","containerProps","children","style"],n5=function(t){var n=t.className,r=t.redraw,i=t.containerProps,o=t.children,s=t.style,a=Nm(t,t5),l=ae.useRef(null),u=ae.useRef(!1),c=Dm(Mo(Mo({},a),{},{ref:l,startOnMount:typeof o!="function"||t.delay===0,enableReinitialize:!1})),f=c.start,d=c.reset,g=c.update,v=c.pauseResume,w=c.getCountUp,S=Ke(function(){f()}),p=Ke(function(x){t.preserveValue||d(),g(x)}),h=Ke(function(){if(typeof t.children=="function"&&!(l.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. .`);return}w()});ae.useEffect(function(){h()},[h]),ae.useEffect(function(){u.current&&p(t.end)},[t.end,p]);var m=r&&t;return ae.useEffect(function(){r&&u.current&&S()},[S,r,m]),ae.useEffect(function(){!r&&u.current&&S()},[S,r,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),ae.useEffect(function(){u.current=!0},[]),typeof o=="function"?o({countUpRef:l,start:f,reset:d,update:g,pauseResume:v,getCountUp:w}):ae.createElement("span",el({className:n,ref:l,style:s},i),typeof t.start<"u"?w().formattingFn(t.start):"")},r5=yu.default=n5;yu.useCountUp=Dm;const i5="/assets/employee-6c487e67.png",Am="/assets/redline-0f892780.svg",Om="/assets/outline-d9eff1d7.svg",o5="/assets/map-bbc65dd1.svg",s5=()=>y.jsxs("section",{id:"about",children:[y.jsx("div",{className:"line",children:y.jsx("img",{src:Am,alt:"line"})}),y.jsx("div",{className:"outline",children:y.jsx("img",{src:Om,alt:"outline"})}),y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx(ci,{title:"Who we are"})}),y.jsxs("div",{className:"row",children:[y.jsxs("div",{className:"counter",children:[y.jsxs("h1",{children:[y.jsx(r5,{end:1e3,enableScrollSpy:!0,scrollSpyOnce:!0,scrollSpyDelay:1,duration:5,separator:" "}),"+"]}),y.jsx("p",{children:"Trusted clients"})]}),y.jsxs("div",{className:"content",children:[y.jsx("p",{className:"text",children:"AZAP IE understands the challenges facing the energy industry today. Therefore, we strive to provide innovative solutions that help our customers stay ahead of the competition. We use the latest technologies and finest practices to provide safe, efficient and convenient services."}),y.jsxs("div",{className:"quote",children:[y.jsx("span",{className:"quote_mark",children:y.jsx(d2,{})}),y.jsx("p",{className:"text",children:"Our team of experienced professionals strives to provide quality services that meet the unique needs of our clients. We offer a variety of services such as logging, drilling, realization and maintenance as well as regulatory and environmental compliance."})]})]})]}),y.jsxs("div",{className:"row",children:[y.jsx("p",{className:"description",children:"We are a leading provider of EPCIC and civil engineering projects, total solutions for the energy industry with a focus on safety, efficiency and sustainability in Turkmenistan since 1998. It is our honor to cooperate with well-established companies at home and abroad that have solid foundations and meet customers' needs. Our 25 years of experience make us confident and professional in the eyes of our customers."}),y.jsx("div",{className:"image",children:y.jsx("img",{src:i5,alt:"about"})}),y.jsx("p",{className:"description",children:"Our head office is located in the western province of Turkmenistan, in the city of Balkanabat, we also have an office in the country's capital - Ashgabat. Recognizing the region's oil and gas potential, we have opened offices in the cities of Hazar and Turkmenbashy."}),y.jsx(N4,{})]})]}),y.jsx("div",{className:"row",children:y.jsx("div",{className:"map",children:y.jsx("img",{src:o5,alt:"map"})})})]}),a5="/assets/tngizt-15b893fc.png",l5="/assets/hyundai-730ce9fc.png",u5="/assets/dragonoil-5254fb21.png",c5="/assets/eni-25050b3b.png",f5="/assets/airlines-b9f2b79f.png",d5="/assets/petrofac-149e418c.png",h5="/assets/saipem-d578e1cc.png",p5="/assets/changwon-9d2c15ab.png",Hs=[{company:"Dragon Oil Turkmenistan Ltd.",image:u5,projects:[{title:"Installation and testing overhead line for Drilling Dacha",duration:"January 10, 2017 - February 2, 2017"},{title:"Design Procurement and Installation of Fire Detection and Alarm System at Security Dacha",duration:"July 30, 2018 - June 07, 2019"},{title:"Installation of F&G Detectors and System at GOSP Area",duration:"January 09, 2019 - March 01, 2020"},{title:"Installation of F&G Detectors and System at Aladja Jetty Area",duration:"February 25, 2019 - June 01, 2020"},{title:"E&I work for Offshore Platforms",duration:"March 04, 2019 - Ongoing Project"},{title:"Replacement FASP an Indoor Detectors at GOSP Area",duration:"April 01, 2020 - November, 2020"},{title:"E&I work at Offshore and Onshore",duration:"April 21, 2020 - Ongoing Project"},{title:"Preparation of Design Docs and Approval for Harbour Facilities",duration:"May 16, 2020 - February, 2021"},{title:"EPIC for upgrade of F&G Detection and alarm system at Hazar Camp",duration:"2020 - 2022"},{title:"Obtaining of permit to run Electrical Facilities",duration:"2021 - 2022"},{title:"Services For Preventive, corrective and Routine Planned Maintenance Work Frame Agreement",duration:"2023 - Ongoing Project"}]},{company:"Turkmenbashi Oil Processing Complex",image:a5,projects:[{title:'Reconstruction of main step-down substations (GPP) "Zawodskaya" No. 1&2 of Turkmenbashi Oil processing complex',duration:"September, 2023 - May, 2023"},{title:"The repair of platforming furnaces 300-H1/H2/H3/H4 installations CCR TOPC",duration:"March, 2023 - Ongoing project"}]},{company:"ENI Turkmenistan Limited",image:c5,projects:[{title:"Maintenance of Fire Alarm System",duration:"November, 2021 - Ongoing Project"}]},{company:"Hyundai Engineering Co. Ltd.",image:l5,projects:[{title:"Anti acid and epoxy coating",duration:"September 01, 2015 - February 01, 2016"},{title:"Repair works for the neutralization pool and anti-acid coating",duration:"October 01, 2017 - May 31, 2018"}]},{company:"Turkmenbashi International Airport",image:f5,projects:[{title:"Repair work of cable lines 10 kV"},{title:"Repair works of fire alarm systems in airport and in ticket office city of Turkmenbashi"},{title:"Repair works of fire alarm system in airport and in ticket office city of Balkanabat"},{title:"Repair works of fire alarm system in airport and in ticket office city of Hazar",duration:"January 10, 2016 - 2018"}]},{company:"Petrofac International (UAE) LLC.",image:d5,projects:[{title:"Testing of Electrical Installations",duration:"August 30, 2014 - June 30, 2016"}]},{company:"Saipem Co. Ltd.",image:h5,projects:[{title:"Testing of Electrical Installations and Repair of Electric Motors",duration:"June 22, 2015 - August 30, 2015"}]},{company:"ChangWon Corporation Turkmenistan",image:p5,projects:[{title:"Testing of Electrical Installations",duration:"July 01, 2017 - August 30, 2017"}]},{company:"Department of Capital Construction of Balkan region",image:"",projects:[{title:"Improvement of electric power Supply for the population of Balkanabat city, living blocks #106/108/143/144/189/200",duration:"January 28, 2015 - December 31, 2015"}]}];const m5=()=>{const e=P.useMemo(()=>Hs&&Hs.map((t,n)=>y.jsx(M4,{project:t},n)),[Hs]);return y.jsx("section",{id:"portfolio",children:y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx(ci,{title:"Our projects"})}),y.jsx("div",{className:"row",children:y.jsx("div",{className:"projects",children:e})})]})})};const g5=()=>y.jsxs("section",{id:"contact",children:[y.jsx("div",{className:"line",children:y.jsx("img",{src:Am,alt:"line"})}),y.jsx("div",{className:"outline",children:y.jsx("img",{src:Om,alt:"outline"})}),y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx(ci,{title:"Contacts"})}),y.jsxs("div",{className:"row",children:[y.jsx(D4,{}),y.jsxs("div",{className:"contact_info_wrapper",children:[y.jsxs("div",{className:"contact_info",children:[y.jsx("p",{children:'Ashgabat office - Ashgabat city, Hero of Turkmenistan Atamyrat Niyazov Avenue, building 178, 1st floor, block "B"'}),y.jsx("p",{children:'Turkmenbashi office/camp — Balkan Velayat, Turkmenbashi city, Ashgabat street No 25 "Ç" residensial building'})]}),y.jsxs("div",{className:"contact_info",children:[y.jsx("p",{children:"Balkanabat Office - Balkan Velayat, Balkanabat city., 160th Residential Building Complex No 17."}),y.jsx("p",{children:"Hazar camp and base - Hazar city, Magtymguly residential complex"})]}),y.jsxs("div",{className:"contact_socials",children:[y.jsxs("p",{children:["Tel: +993 222 69222",y.jsx("br",{}),"Fax: +993 222 69444"]}),y.jsx(y2,{}),y.jsx(v2,{}),y.jsx(x2,{})]})]})]}),y.jsx("div",{className:"row",children:y.jsx("div",{className:"embedMap",children:y.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m17!1m12!1m3!1d2404.140379577972!2d58.365022060584174!3d37.932003459106795!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m2!1m1!2zMzfCsDU1JzU1LjMiTiA1OMKwMjInMDEuMiJF!5e0!3m2!1sru!2s!4v1707733979094!5m2!1sru!2s",width:"600",height:"450",allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})})]})]});const y5=()=>{const e={offscreen:{y:300,opacity:0},onscreen:{y:50,opacity:1,transition:{type:"spring",bounce:.4,duration:1}}};return y.jsx("section",{id:"hse",children:y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row"}),y.jsx("div",{className:"row",children:y.jsxs(br.div,{initial:"offscreen",whileInView:"onscreen",viewport:{once:!0,amount:.2},children:[y.jsx(br.h1,{variants:e,children:"HEALTH, SAFETY, ENVIRONMENT (HSE)"}),y.jsxs("p",{children:["IE AZAP's main values ​​focus on meeting or exceeding the expectations of customers, regulators and our own internal standards for Health, Safety, Environment (HSE) and Quality of Service. We go beyond compliance and drive continuous improvement through management commitment, a robust management system and the efforts of our people.",y.jsx("br",{}),y.jsx("br",{}),"Health and safety values ​​are not violated. No task is so important and no task so urgent that it is impossible to take the necessary steps and preparations to complete it safely. We encourage everyone to recognize risks and opportunities. We strive to provide the resources needed to achieve our goals and to support the continuous improvement initiatives of the AZAP Management System."]})]})})]})})};const v5=[{title:"Electrical Installation & testing",description:"Our company aware that inspections of electrical installations are primarily aimed at ensuring the safety of people and property and protecting them in the event of a malfunction, and in this sense they offer the safest service."},{title:"Construction",description:"IE AZAP works with all stakeholders to develop a robust design and effective program tailored to each well construction project."},{title:"Installation of F&G detection and alarm system",description:"With an accurate fire detection system, you can significantly reduce damage and maximize your firefighting efforts. Our experienced staff in this area do everything to ensure your safety."},{title:"Network configuration and programming",description:"Our experts understand the principles, processes and controls of network configuration and programming, giving you the confidence to take care of your needs."},{title:"Mud loggin service",description:"Our advanced mud logging hardware and software has built-in capabilities for comprehensive collection, monitoring and logging of geological and drilling data."}],x5=()=>y.jsx("section",{id:"services",children:y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx(ci,{title:"Services"})}),y.jsx("div",{className:"row",children:y.jsx("ul",{className:"services",children:v5.map((e,t)=>{const{title:n,description:r}=e;return y.jsxs("li",{className:"service",children:[y.jsx("h1",{children:t+1}),y.jsx("h2",{children:n}),y.jsx("p",{children:r})]},t)})})})]})});const w5=()=>y.jsx("section",{id:"epcic",children:y.jsxs("div",{className:"container",children:[y.jsx("div",{className:"row",children:y.jsx(ci,{title:"EPCIC Projects"})}),y.jsxs("div",{className:"epcic",children:[y.jsxs("div",{className:"epcic_project",children:[y.jsx("h1",{children:"Engineering"}),y.jsx("p",{children:"A team of experienced managers offers services where quality, efficiency and value are the cornerstones."})]}),y.jsxs("div",{className:"epcic_project",children:[y.jsx("h1",{children:"Construction"}),y.jsx("p",{children:"We are responsible for commissioning and overseeing the installation of systems, plants and equipment on client’s site."})]})]}),y.jsxs("div",{className:"epcic",children:[y.jsxs("div",{className:"epcic_project",children:[y.jsx("h1",{children:"Procurement"}),y.jsx("p",{children:"We offer the best service and supply the highest quality and highest quality products at the most competitive prices and time."})]}),y.jsxs("div",{className:"epcic_project",children:[y.jsx("h1",{children:"Installation"}),y.jsx("p",{children:"Installation, repair, modernization and maintenance of mechanical and electrical equipment for our customers."})]}),y.jsxs("div",{className:"epcic_project",children:[y.jsx("h1",{children:"Commissioning"}),y.jsx("p",{children:"We are responsible for the commissioning and supervision and installation of systems, equipment and devices at the customer's site."})]})]})]})}),C5=()=>{const e=new Date().getFullYear();return y.jsx("footer",{children:y.jsxs("p",{children:["Copyright All Rights Reserved ",e]})})},S5=()=>{const{leave:e}=oi();return y.jsxs("main",{onMouseEnter:e,children:[y.jsx(_4,{}),y.jsx(s5,{}),y.jsx(m5,{}),y.jsx(y5,{}),y.jsx(x5,{}),y.jsx(w5,{}),y.jsx(g5,{}),y.jsx(C5,{})]})},P5=()=>{const e=/constructor/i.test(window.HTMLElement)||function(t){return t.toString()==="[object SafariRemoteNotification]"}(!window.safari||typeof safari<"u"&&window.safari.pushNotification);return y.jsxs(s2,{children:[e?null:y.jsx(R4,{}),y.jsx(L4,{}),y.jsx(O4,{}),y.jsx(t2,{children:y.jsx(cp,{path:"/",element:y.jsx(S5,{})})})]})};Ws.createRoot(document.getElementById("root")).render(y.jsx(C2,{children:y.jsx(P5,{})}));