diff --git a/dist/assets/index-14c8607e.js b/dist/assets/index-14c8607e.js deleted file mode 100644 index e87d066..0000000 --- a/dist/assets/index-14c8607e.js +++ /dev/null @@ -1,115 +0,0 @@ -var jx=Object.defineProperty;var Ix=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ia=(e,t,n)=>(Ix(e,typeof t!="symbol"?t+"":t,n),n);function Vx(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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)}})();var Va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var No={},Fx={get exports(){return No},set exports(e){No=e}},Ol={},b={},zx={get exports(){return b},set exports(e){b=e}},re={};/** - * @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 pa=Symbol.for("react.element"),Bx=Symbol.for("react.portal"),Ux=Symbol.for("react.fragment"),Wx=Symbol.for("react.strict_mode"),Hx=Symbol.for("react.profiler"),Gx=Symbol.for("react.provider"),Yx=Symbol.for("react.context"),Kx=Symbol.for("react.forward_ref"),qx=Symbol.for("react.suspense"),Xx=Symbol.for("react.memo"),Qx=Symbol.for("react.lazy"),sm=Symbol.iterator;function Zx(e){return e===null||typeof e!="object"?null:(e=sm&&e[sm]||e["@@iterator"],typeof e=="function"?e:null)}var Gy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yy=Object.assign,Ky={};function Fi(e,t,n){this.props=e,this.context=t,this.refs=Ky,this.updater=n||Gy}Fi.prototype.isReactComponent={};Fi.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")};Fi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qy(){}qy.prototype=Fi.prototype;function Hd(e,t,n){this.props=e,this.context=t,this.refs=Ky,this.updater=n||Gy}var Gd=Hd.prototype=new qy;Gd.constructor=Hd;Yy(Gd,Fi.prototype);Gd.isPureReactComponent=!0;var lm=Array.isArray,Xy=Object.prototype.hasOwnProperty,Yd={current:null},Qy={key:!0,ref:!0,__self:!0,__source:!0};function Zy(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Xy.call(t,r)&&!Qy.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,te=R[ee];if(0>>1;eei(je,W))_ei(yt,je)?(R[ee]=yt,R[_e]=W,ee=_e):(R[ee]=je,R[ie]=W,ee=ie);else if(_ei(yt,W))R[ee]=yt,R[_e]=W,ee=_e;else break e}}return $}function i(R,$){var W=R.sortIndex-$.sortIndex;return W!==0?W:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=R)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function w(R){if(g=!1,y(R),!v)if(n(l)!==null)v=!0,H(C);else{var $=n(u);$!==null&&J(w,$.startTime-R)}}function C(R,$){v=!1,g&&(g=!1,p(E),E=-1),h=!0;var W=d;try{for(y($),f=n(l);f!==null&&(!(f.expirationTime>$)||R&&!k());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,d=f.priorityLevel;var te=ee(f.expirationTime<=$);$=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&r(l),y($)}else r(l);f=n(l)}if(f!==null)var Me=!0;else{var ie=n(u);ie!==null&&J(w,ie.startTime-$),Me=!1}return Me}finally{f=null,d=W,h=!1}}var O=!1,P=null,E=-1,N=5,I=-1;function k(){return!(e.unstable_now()-IR||125ee?(R.sortIndex=W,t(u,R),n(l)===null&&R===n(u)&&(g?(p(E),E=-1):g=!0,J(w,W-ee))):(R.sortIndex=te,t(l,R),v||h||(v=!0,H(C))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var $=d;return function(){var W=d;d=$;try{return R.apply(this,arguments)}finally{d=W}}}})(e0);(function(e){e.exports=e0})(c2);/** - * @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 t0=b,Ct=Yc;function V(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"),Kc=Object.prototype.hasOwnProperty,f2=/^[: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]*$/,cm={},fm={};function d2(e){return Kc.call(fm,e)?!0:Kc.call(cm,e)?!1:f2.test(e)?fm[e]=!0:(cm[e]=!0,!1)}function p2(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 h2(e,t,n,r){if(t===null||typeof t>"u"||p2(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 ct(e,t,n,r,i,o,a){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=a}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new ct(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){Qe[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xd=/[\-:]([a-z])/g;function Qd(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(Xd,Qd);Qe[t]=new ct(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(Xd,Qd);Qe[t]=new ct(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(Xd,Qd);Qe[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zd(e,t,n,r){var i=Qe.hasOwnProperty(t)?Qe[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ju=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?co(e):""}function m2(e){switch(e.tag){case 5:return co(e.type);case 16:return co("Lazy");case 13:return co("Suspense");case 19:return co("SuspenseList");case 0:case 2:case 15:return e=Iu(e.type,!1),e;case 11:return e=Iu(e.type.render,!1),e;case 1:return e=Iu(e.type,!0),e;default:return""}}function Zc(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 ti:return"Fragment";case ei:return"Portal";case qc:return"Profiler";case Jd:return"StrictMode";case Xc:return"Suspense";case Qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case i0:return(e.displayName||"Context")+".Consumer";case r0:return(e._context.displayName||"Context")+".Provider";case ep:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tp:return t=e.displayName||null,t!==null?t:Zc(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return Zc(e(t))}catch{}}return null}function v2(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 Zc(t);case 8:return t===Jd?"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 Zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function a0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g2(e){var t=a0(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function za(e){e._valueTracker||(e._valueTracker=g2(e))}function s0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=a0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ks(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 Jc(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zn(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 l0(e,t){t=t.checked,t!=null&&Zd(e,"checked",t,!1)}function ef(e,t){l0(e,t);var n=Zn(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")?tf(e,t.type,n):t.hasOwnProperty("defaultValue")&&tf(e,t.type,Zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hm(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 tf(e,t,n){(t!=="number"||ks(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fo=Array.isArray;function vi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ba.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var go={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},y2=["Webkit","ms","Moz","O"];Object.keys(go).forEach(function(e){y2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),go[t]=go[e]})});function d0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||go.hasOwnProperty(e)&&go[e]?(""+t).trim():t+"px"}function p0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=d0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var w2=Ee({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 of(e,t){if(t){if(w2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function af(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 sf=null;function np(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lf=null,gi=null,yi=null;function gm(e){if(e=va(e)){if(typeof lf!="function")throw Error(V(280));var t=e.stateNode;t&&(t=_l(t),lf(e.stateNode,e.type,t))}}function h0(e){gi?yi?yi.push(e):yi=[e]:gi=e}function m0(){if(gi){var e=gi,t=yi;if(yi=gi=null,gm(e),t)for(e=0;e>>=0,e===0?32:31-(D2(e)/L2|0)|0}var Ua=64,Wa=4194304;function po(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 Ns(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=po(s):(o&=a,o!==0&&(r=po(o)))}else a=n&~i,a!==0?r=po(a):o!==0&&(r=po(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 ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function M2(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=wo),Pm=String.fromCharCode(32),Tm=!1;function M0(e,t){switch(e){case"keyup":return uO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ni=!1;function fO(e,t){switch(e){case"compositionend":return j0(t);case"keypress":return t.which!==32?null:(Tm=!0,Pm);case"textInput":return e=t.data,e===Pm&&Tm?null:e;default:return null}}function dO(e,t){if(ni)return e==="compositionend"||!cp&&M0(e,t)?(e=N0(),ps=sp=In=null,ni=!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=Lm(n)}}function F0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?F0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function z0(){for(var e=window,t=ks();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ks(e.document)}return t}function fp(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 bO(e){var t=z0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&F0(n.ownerDocument.documentElement,n)){if(r!==null&&fp(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=Am(n,o);var a=Am(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,ri=null,hf=null,bo=null,mf=!1;function Nm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mf||ri==null||ri!==ks(r)||(r=ri,"selectionStart"in r&&fp(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}),bo&&Bo(bo,r)||(bo=r,r=js(hf,"onSelect"),0ai||(e.current=bf[ai],bf[ai]=null,ai--)}function pe(e,t){ai++,bf[ai]=e.current,e.current=t}var Jn={},ot=or(Jn),ht=or(!1),Er=Jn;function ki(e,t){var n=e.type.contextTypes;if(!n)return Jn;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 mt(e){return e=e.childContextTypes,e!=null}function Vs(){ve(ht),ve(ot)}function Fm(e,t,n){if(ot.current!==Jn)throw Error(V(168));pe(ot,t),pe(ht,n)}function X0(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(V(108,v2(e)||"Unknown",i));return Ee({},n,r)}function $s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,Er=ot.current,pe(ot,e),pe(ht,ht.current),!0}function zm(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=X0(e,t,Er),r.__reactInternalMemoizedMergedChildContext=e,ve(ht),ve(ot),pe(ot,e)):ve(ht),pe(ht,n)}var dn=null,kl=!1,Qu=!1;function Q0(e){dn===null?dn=[e]:dn.push(e)}function NO(e){kl=!0,Q0(e)}function ar(){if(!Qu&&dn!==null){Qu=!0;var e=0,t=se;try{var n=dn;for(se=1;e>=a,i-=a,pn=1<<32-Wt(t)+i|n<E?(N=P,P=null):N=P.sibling;var I=d(p,P,y[E],w);if(I===null){P===null&&(P=N);break}e&&P&&I.alternate===null&&t(p,P),m=o(I,m,E),O===null?C=I:O.sibling=I,O=I,P=N}if(E===y.length)return n(p,P),ye&&dr(p,E),C;if(P===null){for(;EE?(N=P,P=null):N=P.sibling;var k=d(p,P,I.value,w);if(k===null){P===null&&(P=N);break}e&&P&&k.alternate===null&&t(p,P),m=o(k,m,E),O===null?C=k:O.sibling=k,O=k,P=N}if(I.done)return n(p,P),ye&&dr(p,E),C;if(P===null){for(;!I.done;E++,I=y.next())I=f(p,I.value,w),I!==null&&(m=o(I,m,E),O===null?C=I:O.sibling=I,O=I);return ye&&dr(p,E),C}for(P=r(p,P);!I.done;E++,I=y.next())I=h(P,p,E,I.value,w),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?E:I.key),m=o(I,m,E),O===null?C=I:O.sibling=I,O=I);return e&&P.forEach(function(L){return t(p,L)}),ye&&dr(p,E),C}function S(p,m,y,w){if(typeof y=="object"&&y!==null&&y.type===ti&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fa:e:{for(var C=y.key,O=m;O!==null;){if(O.key===C){if(C=y.type,C===ti){if(O.tag===7){n(p,O.sibling),m=i(O,y.props.children),m.return=p,p=m;break e}}else if(O.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ln&&Km(C)===O.type){n(p,O.sibling),m=i(O,y.props),m.ref=eo(p,O,y),m.return=p,p=m;break e}n(p,O);break}else t(p,O);O=O.sibling}y.type===ti?(m=xr(y.props.children,p.mode,w,y.key),m.return=p,p=m):(w=bs(y.type,y.key,y.props,null,p.mode,w),w.ref=eo(p,m,y),w.return=p,p=w)}return a(p);case ei:e:{for(O=y.key;m!==null;){if(m.key===O)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=oc(y,p.mode,w),m.return=p,p=m}return a(p);case Ln:return O=y._init,S(p,m,O(y._payload),w)}if(fo(y))return v(p,m,y,w);if(qi(y))return g(p,m,y,w);Qa(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,y),m.return=p,p=m):(n(p,m),m=ic(y,p.mode,w),m.return=p,p=m),a(p)):n(p,m)}return S}var Li=o1(!0),a1=o1(!1),ga={},nn=or(ga),Go=or(ga),Yo=or(ga);function wr(e){if(e===ga)throw Error(V(174));return e}function Sp(e,t){switch(pe(Yo,t),pe(Go,e),pe(nn,ga),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rf(t,e)}ve(nn),pe(nn,t)}function Ai(){ve(nn),ve(Go),ve(Yo)}function s1(e){wr(Yo.current);var t=wr(nn.current),n=rf(t,e.type);t!==n&&(pe(Go,e),pe(nn,n))}function bp(e){Go.current===e&&(ve(nn),ve(Go))}var Oe=or(0);function Hs(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 Zu=[];function xp(){for(var e=0;en?n:4,e(!0);var r=Ju.transition;Ju.transition={};try{e(!1),t()}finally{se=n,Ju.transition=r}}function O1(){return jt().memoizedState}function IO(e,t,n){var r=qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},C1(e))E1(t,n);else if(n=t1(e,t,n,r),n!==null){var i=lt();Ht(n,e,r,i),P1(n,t,r)}}function VO(e,t,n){var r=qn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(C1(e))E1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Gt(s,a)){var l=t.interleaved;l===null?(i.next=i,yp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=t1(e,t,i,r),n!==null&&(i=lt(),Ht(n,e,r,i),P1(n,t,r))}}function C1(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function E1(e,t){xo=Gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ip(e,n)}}var Ys={readContext:Mt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},$O={readContext:Mt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Xm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gs(4194308,4,y1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){return gs(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();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=IO.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:qm,useDebugValue:Tp,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=qm(!1),t=e[0];return e=jO.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,i=Qt();if(ye){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),He===null)throw Error(V(349));Tr&30||c1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Xm(d1.bind(null,r,o,e),[e]),r.flags|=2048,Xo(9,f1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qt(),t=He.identifierPrefix;if(ye){var n=hn,r=pn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[Ho]=r,M1(e,t,!1,!1),t.stateNode=e;e:{switch(a=af(n,r),n){case"dialog":me("cancel",e),me("close",e),i=r;break;case"iframe":case"object":case"embed":me("load",e),i=r;break;case"video":case"audio":for(i=0;iRi&&(t.flags|=128,r=!0,to(o,!1),t.lanes=4194304)}else{if(!r)if(e=Hs(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),to(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ye)return et(t),null}else 2*ke()-o.renderingStartTime>Ri&&n!==1073741824&&(t.flags|=128,r=!0,to(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ke(),t.sibling=null,n=Oe.current,pe(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Np(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function YO(e,t){switch(pp(t),t.tag){case 1:return mt(t.type)&&Vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ai(),ve(ht),ve(ot),xp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bp(t),null;case 13:if(ve(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Oe),null;case 4:return Ai(),null;case 10:return gp(t.type._context),null;case 22:case 23:return Np(),null;case 24:return null;default:return null}}var Ja=!1,rt=!1,KO=typeof WeakSet=="function"?WeakSet:Set,G=null;function ci(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Nf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var ov=!1;function qO(e,t){if(vf=Rs,e=z0(),fp(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 a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++c===r&&(l=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(gf={focusedElem:e,selectionRange:n},Rs=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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 g=v.memoizedProps,S=v.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),S);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return v=ov,ov=!1,v}function Oo(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&&Nf(t,n,o)}i=i.next}while(i!==r)}}function Al(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 Rf(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 V1(e){var t=e.alternate;t!==null&&(e.alternate=null,V1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Ho],delete t[Sf],delete t[LO],delete t[AO])),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 $1(e){return e.tag===5||e.tag===3||e.tag===4}function av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$1(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 Mf(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=Is));else if(r!==4&&(e=e.child,e!==null))for(Mf(e,t,n),e=e.sibling;e!==null;)Mf(e,t,n),e=e.sibling}function jf(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(jf(e,t,n),e=e.sibling;e!==null;)jf(e,t,n),e=e.sibling}var qe=null,zt=!1;function _n(e,t,n){for(n=n.child;n!==null;)F1(e,t,n),n=n.sibling}function F1(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 5:rt||ci(n,t);case 6:var r=qe,i=zt;qe=null,_n(e,t,n),qe=r,zt=i,qe!==null&&(zt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(zt?(e=qe,n=n.stateNode,e.nodeType===8?Xu(e.parentNode,n):e.nodeType===1&&Xu(e,n),Fo(e)):Xu(qe,n.stateNode));break;case 4:r=qe,i=zt,qe=n.stateNode.containerInfo,zt=!0,_n(e,t,n),qe=r,zt=i;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Nf(n,t,a),i=i.next}while(i!==r)}_n(e,t,n);break;case 1:if(!rt&&(ci(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,_n(e,t,n),rt=r):_n(e,t,n);break;default:_n(e,t,n)}}function sv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KO),t.forEach(function(r){var i=iC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*QO(r/1960))-r,10e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,Xs=0,ae&6)throw Error(V(331));var i=ae;for(ae|=4,G=e.current;G!==null;){var o=G,a=o.child;if(G.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lke()-Lp?br(e,0):Dp|=n),vt(e,t)}function K1(e,t){t===0&&(e.mode&1?(t=Wa,Wa<<=1,!(Wa&130023424)&&(Wa=4194304)):t=1);var n=lt();e=bn(e,t),e!==null&&(ha(e,t,n),vt(e,n))}function rC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K1(e,n)}function iC(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(V(314))}r!==null&&r.delete(t),K1(e,n)}var q1;q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,HO(e,t,n);pt=!!(e.flags&131072)}else pt=!1,ye&&t.flags&1048576&&Z0(t,zs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ys(e,t),e=t.pendingProps;var i=ki(t,ot.current);Si(t,n),i=Cp(null,t,r,e,i,n);var o=Ep();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,mt(r)?(o=!0,$s(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wp(t),i.updater=Dl,t.stateNode=i,i._reactInternals=t,Pf(t,r,e,n),t=kf(null,t,r,!0,o,n)):(t.tag=0,ye&&o&&dp(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ys(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=aC(r),e=Ft(r,e),i){case 0:t=_f(null,t,r,e,n);break e;case 1:t=nv(null,t,r,e,n);break e;case 11:t=ev(null,t,r,e,n);break e;case 14:t=tv(null,t,r,Ft(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),_f(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),nv(e,t,r,i,n);case 3:e:{if(A1(t),e===null)throw Error(V(387));r=t.pendingProps,o=t.memoizedState,i=o.element,n1(e,t),Ws(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ni(Error(V(423)),t),t=rv(e,t,r,n,i);break e}else if(r!==i){i=Ni(Error(V(424)),t),t=rv(e,t,r,n,i);break e}else for(xt=Gn(t.stateNode.containerInfo.firstChild),Ot=t,ye=!0,Bt=null,n=a1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Di(),r===i){t=xn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return s1(t),e===null&&Of(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,yf(r,i)?a=null:o!==null&&yf(r,o)&&(t.flags|=32),L1(e,t),st(e,t,a,n),t.child;case 6:return e===null&&Of(t),null;case 13:return N1(e,t,n);case 4:return Sp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Li(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),ev(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,pe(Bs,r._currentValue),r._currentValue=a,o!==null)if(Gt(o.value,a)){if(o.children===i.children&&!ht.current){t=xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=mn(-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),Cf(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Cf(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Si(t,n),i=Mt(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),tv(e,t,r,i,n);case 15:return k1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),ys(e,t),t.tag=1,mt(r)?(e=!0,$s(t)):e=!1,Si(t,n),i1(t,r,i),Pf(t,r,i,n),kf(null,t,r,!0,e,n);case 19:return R1(e,t,n);case 22:return D1(e,t,n)}throw Error(V(156,t.tag))};function X1(e,t){return x0(e,t)}function oC(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 Nt(e,t,n,r){return new oC(e,t,n,r)}function Mp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aC(e){if(typeof e=="function")return Mp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ep)return 11;if(e===tp)return 14}return 2}function Xn(e,t){var n=e.alternate;return n===null?(n=Nt(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 bs(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Mp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ti:return xr(n.children,i,o,t);case Jd:a=8,i|=8;break;case qc:return e=Nt(12,n,t,i|2),e.elementType=qc,e.lanes=o,e;case Xc:return e=Nt(13,n,t,i),e.elementType=Xc,e.lanes=o,e;case Qc:return e=Nt(19,n,t,i),e.elementType=Qc,e.lanes=o,e;case o0:return Rl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case r0:a=10;break e;case i0:a=9;break e;case ep:a=11;break e;case tp:a=14;break e;case Ln:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Nt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=o0,e.lanes=n,e.stateNode={isHidden:!1},e}function ic(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function oc(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sC(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=$u(0),this.expirationTimes=$u(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jp(e,t,n,r,i,o,a,s,l){return e=new sC(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Nt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wp(o),e}function lC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Tt})(u2);var mv=Ro;Gc.createRoot=mv.createRoot,Gc.hydrateRoot=mv.hydrateRoot;/** - * @remix-run/router v1.3.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 Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function hC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mC(){return Math.random().toString(36).substr(2,8)}function gv(e,t){return{usr:e.state,key:e.key,idx:t}}function zf(e,t,n,r){return n===void 0&&(n=null),Zo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ui(t):t,{state:n,key:t&&t.key||r||mC()})}function Js(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 Ui(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 vC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=$n.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Zo({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){let S=$n.Pop,p=c();if(p!=null){let m=p-u;s=S,u=p,l&&l({action:s,location:g.location,delta:m})}else hC(!1,"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation.")}function d(S,p){s=$n.Push;let m=zf(g.location,S,p);n&&n(m,S),u=c()+1;let y=gv(m,u),w=g.createHref(m);try{a.pushState(y,"",w)}catch{i.location.assign(w)}o&&l&&l({action:s,location:g.location,delta:1})}function h(S,p){s=$n.Replace;let m=zf(g.location,S,p);n&&n(m,S),u=c();let y=gv(m,u),w=g.createHref(m);a.replaceState(y,"",w),o&&l&&l({action:s,location:g.location,delta:0})}function v(S){let p=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof S=="string"?S:Js(S);return Fe(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let g={get action(){return s},get location(){return e(i,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(vv,f),l=S,()=>{i.removeEventListener(vv,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:h,go(S){return a.go(S)}};return g}var yv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yv||(yv={}));function gC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ui(t):t,i=nw(r.pathname||"/",n);if(i==null)return null;let o=ew(e);yC(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Fe(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=Qn([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Fe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ew(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:EC(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of tw(o.path))i(o,a,l)}),t}function tw(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 a=tw(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function yC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:PC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const wC=/^:\w+$/,SC=3,bC=2,xC=1,OC=10,CC=-2,wv=e=>e==="*";function EC(e,t){let n=e.split("/"),r=n.length;return n.some(wv)&&(r+=CC),t&&(r+=bC),n.filter(i=>!wv(i)).reduce((i,o)=>i+(wC.test(o)?SC:o===""?xC:OC),r)}function PC(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 TC(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(c==="*"){let d=s[f]||"";a=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=LC(s[f]||"",c),u},{}),pathname:o,pathnameBase:a,pattern:e}}function kC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fp(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,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function DC(e){try{return decodeURI(e)}catch(t){return Fp(!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 LC(e,t){try{return decodeURIComponent(e)}catch(n){return Fp(!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 nw(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 Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function AC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ui(e):e;return{pathname:n?n.startsWith("/")?n:NC(n,t):t,search:MC(r),hash:jC(i)}}function NC(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 ac(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 rw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function iw(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ui(e):(i=Zo({},e),Fe(!i.pathname||!i.pathname.includes("?"),ac("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),ac("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),ac("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=AC(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Qn=e=>e.join("/").replace(/\/\/+/g,"/"),RC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class IC{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function VC(e){return e instanceof IC}const $C=["post","put","patch","delete"];[...$C];/** - * React Router v6.7.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 Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,sc(i)&&o({inst:i})},[e,r,t]),UC(()=>(sc(i)&&o({inst:i}),e(()=>{sc(i)&&o({inst:i})})),[e]),HC(r),r}function sc(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!zC(n,r)}catch{return!0}}function YC(e,t,n){return t()}const KC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qC=!KC,XC=qC?YC:GC;"useSyncExternalStore"in Hc&&(e=>e.useSyncExternalStore)(Hc);const ow=b.createContext(null),aw=b.createContext(null),$l=b.createContext(null),Fl=b.createContext(null),$r=b.createContext({outlet:null,matches:[]}),sw=b.createContext(null);function QC(e,t){let{relative:n}=t===void 0?{}:t;ya()||Fe(!1);let{basename:r,navigator:i}=b.useContext($l),{hash:o,pathname:a,search:s}=uw(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Qn([r,a])),i.createHref({pathname:l,search:s,hash:o})}function ya(){return b.useContext(Fl)!=null}function Fr(){return ya()||Fe(!1),b.useContext(Fl).location}function lw(){ya()||Fe(!1);let{basename:e,navigator:t}=b.useContext($l),{matches:n}=b.useContext($r),{pathname:r}=Fr(),i=JSON.stringify(rw(n).map(s=>s.pathnameBase)),o=b.useRef(!1);return b.useEffect(()=>{o.current=!0}),b.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let u=iw(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Qn([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function zl(){let{matches:e}=b.useContext($r),t=e[e.length-1];return t?t.params:{}}function uw(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=b.useContext($r),{pathname:i}=Fr(),o=JSON.stringify(rw(r).map(a=>a.pathnameBase));return b.useMemo(()=>iw(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function ZC(e,t){ya()||Fe(!1);let{navigator:n}=b.useContext($l),r=b.useContext(aw),{matches:i}=b.useContext($r),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=Fr(),u;if(t){var c;let g=typeof t=="string"?Ui(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||Fe(!1),u=g}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=gC(e,{pathname:d}),v=nE(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Qn([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Qn([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r||void 0);return t&&v?b.createElement(Fl.Provider,{value:{location:Bf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:$n.Pop}},v):v}function JC(){let e=aE(),t=VC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unhandled Thrown Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"errorElement")," props on ",b.createElement("code",{style:o},"")))}class eE extends b.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?b.createElement($r.Provider,{value:this.props.routeContext},b.createElement(sw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tE(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(ow);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement($r.Provider,{value:t},r)}function nE(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||Fe(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||b.createElement(JC,null):null,c=t.concat(r.slice(0,s+1)),f=()=>b.createElement(tE,{match:a,routeContext:{outlet:o,matches:c}},l?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?b.createElement(eE,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var Sv;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(Sv||(Sv={}));var el;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(el||(el={}));function rE(e){let t=b.useContext(aw);return t||Fe(!1),t}function iE(e){let t=b.useContext($r);return t||Fe(!1),t}function oE(e){let t=iE(),n=t.matches[t.matches.length-1];return n.route.id||Fe(!1),n.route.id}function aE(){var e;let t=b.useContext(sw),n=rE(el.UseRouteError),r=oE(el.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function hr(e){Fe(!1)}function sE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=$n.Pop,navigator:o,static:a=!1}=e;ya()&&Fe(!1);let s=t.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Ui(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,v=b.useMemo(()=>{let g=nw(u,s);return g==null?null:{pathname:g,search:c,hash:f,state:d,key:h}},[s,u,c,f,d,h]);return v==null?null:b.createElement($l.Provider,{value:l},b.createElement(Fl.Provider,{children:n,value:{location:v,navigationType:i}}))}function lE(e){let{children:t,location:n}=e,r=b.useContext(ow),i=r&&!t?r.router.routes:Uf(t);return ZC(i,n)}var bv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(bv||(bv={}));new Promise(()=>{});function Uf(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;if(r.type===b.Fragment){n.push.apply(n,Uf(r.props.children,t));return}r.type!==hr&&Fe(!1),!r.props.index||!r.props.children||Fe(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=Uf(r.props.children,o)),n.push(a)}),n}/** - * React Router DOM v6.7.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 Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function cE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fE(e,t){return e.button===0&&(!t||t==="_self")&&!cE(e)}const dE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function pE(e){let{basename:t,children:n,window:r}=e,i=b.useRef();i.current==null&&(i.current=pC({window:r,v5Compat:!0}));let o=i.current,[a,s]=b.useState({action:o.action,location:o.location});return b.useLayoutEffect(()=>o.listen(s),[o]),b.createElement(sE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const xe=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=uE(t,dE),d=QC(u,{relative:i}),h=hE(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function v(g){r&&r(g),g.defaultPrevented||h(g)}return b.createElement("a",Wf({},f,{href:d,onClick:o?r:v,ref:n,target:l}))});var xv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(xv||(xv={}));var Ov;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ov||(Ov={}));function hE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=lw(),l=Fr(),u=uw(e,{relative:a});return b.useCallback(c=>{if(fE(c,n)){c.preventDefault();let f=r!==void 0?r:Js(l)===Js(u);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}const zp=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Bl=b.createContext({});function mE(){return b.useContext(Bl).visualElement}const wa=b.createContext(null),Ul=typeof document<"u",tl=Ul?b.useLayoutEffect:b.useEffect,cw=b.createContext({strict:!1});function vE(e,t,n,r){const i=mE(),o=b.useContext(cw),a=b.useContext(wa),s=b.useContext(zp).reducedMotion,l=b.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;return tl(()=>{u&&u.render()}),(window.MotionAppearAnimations?tl:b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function di(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gE(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):di(n)&&(n.current=r))},[t])}function Jo(e){return typeof e=="string"||Array.isArray(e)}function Wl(e){return typeof e=="object"&&typeof e.start=="function"}const yE=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Hl(e){return Wl(e.animate)||yE.some(t=>Jo(e[t]))}function fw(e){return Boolean(Hl(e)||e.variants)}function wE(e,t){if(Hl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Jo(n)?n:void 0,animate:Jo(r)?r:void 0}}return e.inherit!==!1?t:{}}function SE(e){const{initial:t,animate:n}=wE(e,b.useContext(Bl));return b.useMemo(()=>({initial:t,animate:n}),[Cv(t),Cv(n)])}function Cv(e){return Array.isArray(e)?e.join(" "):e}const cn=e=>({isEnabled:t=>e.some(n=>!!t[n])}),ea={measureLayout:cn(["layout","layoutId","drag"]),animation:cn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:cn(["exit"]),drag:cn(["drag","dragControls"]),focus:cn(["whileFocus"]),hover:cn(["whileHover","onHoverStart","onHoverEnd"]),tap:cn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:cn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:cn(["whileInView","onViewportEnter","onViewportLeave"])};function bE(e){for(const t in e)t==="projectionNodeConstructor"?ea.projectionNodeConstructor=e[t]:ea[t].Component=e[t]}function Gl(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Po={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let xE=1;function OE(){return Gl(()=>{if(Po.hasEverUpdated)return xE++})}const Bp=b.createContext({});class CE extends B.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const dw=b.createContext({}),EE=Symbol.for("motionComponentSymbol");function PE({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&bE(e);function a(l,u){const c={...b.useContext(zp),...l,layoutId:TE(l)},{isStatic:f}=c;let d=null;const h=SE(l),v=f?void 0:OE(),g=i(l,f);if(!f&&Ul){h.visualElement=vE(o,g,c,t);const S=b.useContext(cw).strict,p=b.useContext(dw);h.visualElement&&(d=h.visualElement.loadFeatures(c,S,e,v,n||ea.projectionNodeConstructor,p))}return b.createElement(CE,{visualElement:h.visualElement,props:c},d,b.createElement(Bl.Provider,{value:h},r(o,l,v,gE(g,h.visualElement,u),g,f,h.visualElement)))}const s=b.forwardRef(a);return s[EE]=o,s}function TE({layoutId:e}){const t=b.useContext(Bp).id;return t&&e!==void 0?t+"-"+e:e}function _E(e){function t(r,i={}){return PE(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 kE=["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 Up(e){return typeof e!="string"||e.includes("-")?!1:!!(kE.indexOf(e)>-1||/[A-Z]/.test(e))}const nl={};function DE(e){Object.assign(nl,e)}const rl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zr=new Set(rl);function pw(e,{layout:t,layoutId:n}){return zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nl[e]||e==="opacity")}const gt=e=>!!(e!=null&&e.getVelocity),LE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},AE=(e,t)=>rl.indexOf(e)-rl.indexOf(t);function NE({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";t.sort(AE);for(const s of t)a+=`${LE[s]||s}(${e[s]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}function hw(e){return e.startsWith("--")}const RE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Mi=(e,t,n)=>Math.min(Math.max(n,e),t),Br={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},To={...Br,transform:e=>Mi(0,1,e)},ns={...Br,default:1},_o=e=>Math.round(e*1e5)/1e5,ta=/(-)?([\d]*\.?[\d])+/g,Hf=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ME=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Sa(e){return typeof e=="string"}const ba=e=>({test:t=>Sa(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dn=ba("deg"),rn=ba("%"),Q=ba("px"),jE=ba("vh"),IE=ba("vw"),Ev={...rn,parse:e=>rn.parse(e)/100,transform:e=>rn.transform(e*100)},Pv={...Br,transform:Math.round},mw={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:Dn,rotateX:Dn,rotateY:Dn,rotateZ:Dn,scale:ns,scaleX:ns,scaleY:ns,scaleZ:ns,skew:Dn,skewX:Dn,skewY:Dn,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:To,originX:Ev,originY:Ev,originZ:Q,zIndex:Pv,fillOpacity:To,strokeOpacity:To,numOctaves:Pv};function Wp(e,t,n,r){const{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,f=!0;for(const d in t){const h=t[d];if(hw(d)){o[d]=h;continue}const v=mw[d],g=RE(h,v);if(zr.has(d)){if(u=!0,a[d]=g,s.push(d),!f)continue;h!==(v.default||0)&&(f=!1)}else d.startsWith("origin")?(c=!0,l[d]=g):i[d]=g}if(t.transform||(u||r?i.transform=NE(e,n,f,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:v=0}=l;i.transformOrigin=`${d} ${h} ${v}`}}const Hp=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function vw(e,t,n){for(const r in t)!gt(t[r])&&!pw(r,n)&&(e[r]=t[r])}function VE({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Hp();return Wp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function $E(e,t,n){const r=e.style||{},i={};return vw(i,r,e),Object.assign(i,VE(e,t,n)),e.transformValues?e.transformValues(i):i}function FE(e,t,n){const r={},i=$E(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"}`),r.style=i,r}const zE=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],BE=["whileTap","onTap","onTapStart","onTapCancel"],UE=["onPan","onPanStart","onPanSessionStart","onPanEnd"],WE=["whileInView","onViewportEnter","onViewportLeave","viewport"],HE=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","layoutScroll","layoutRoot","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd",...WE,...BE,...zE,...UE]);function il(e){return HE.has(e)}let gw=e=>!il(e);function GE(e){e&&(gw=t=>t.startsWith("on")?!il(t):e(t))}try{GE(require("@emotion/is-prop-valid").default)}catch{}function YE(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(gw(i)||n===!0&&il(i)||!t&&!il(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Tv(e,t,n){return typeof e=="string"?e:Q.transform(t+n*e)}function KE(e,t,n){const r=Tv(t,e.x,e.width),i=Tv(n,e.y,e.height);return`${r} ${i}`}const qE={offset:"stroke-dashoffset",array:"stroke-dasharray"},XE={offset:"strokeDashoffset",array:"strokeDasharray"};function QE(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?qE:XE;e[o.offset]=Q.transform(-r);const a=Q.transform(t),s=Q.transform(n);e[o.array]=`${a} ${s}`}function Gp(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c,f){if(Wp(e,l,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:v}=e;d.transform&&(v&&(h.transform=d.transform),delete d.transform),v&&(r!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=KE(v,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),o!==void 0&&QE(d,o,a,s,!1)}const yw=()=>({...Hp(),attrs:{}}),Yp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZE(e,t,n,r){const i=b.useMemo(()=>{const o=yw();return Gp(o,t,{enableHardwareAcceleration:!1},Yp(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};vw(o,e.style,e),i.style={...o,...i.style}}return i}function JE(e=!1){return(n,r,i,o,{latestValues:a},s)=>{const u=(Up(n)?ZE:FE)(r,a,s,n),f={...YE(r,typeof n=="string",e),...u,ref:o},{children:d}=r,h=b.useMemo(()=>gt(d)?d.get():d,[d]);return i&&(f["data-projection-id"]=i),b.createElement(n,{...f,children:h})}}const Kp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ww(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 Sw=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 bw(e,t,n,r){ww(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Sw.has(i)?i:Kp(i),t.attrs[i])}function qp(e,t){const{style:n}=e,r={};for(const i in n)(gt(n[i])||t.style&>(t.style[i])||pw(i,e))&&(r[i]=n[i]);return r}function xw(e,t){const n=qp(e,t);for(const r in e)if(gt(e[r])||gt(t[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[i]=e[r]}return n}function Xp(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}const ol=e=>Array.isArray(e),eP=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),tP=e=>ol(e)?e[e.length-1]||0:e;function xs(e){const t=gt(e)?e.get():e;return eP(t)?t.toValue():t}function nP({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:rP(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const Ow=e=>(t,n)=>{const r=b.useContext(Bl),i=b.useContext(wa),o=()=>nP(e,t,r,i);return n?o():Gl(o)};function rP(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=xs(o[d]);let{initial:a,animate:s}=e;const l=Hl(e),u=fw(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!Wl(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const v=Xp(e,h);if(!v)return;const{transitionEnd:g,transition:S,...p}=v;for(const m in p){let y=p[m];if(Array.isArray(y)){const w=c?y.length-1:0;y=y[w]}y!==null&&(i[m]=y)}for(const m in g)i[m]=g[m]}),i}const iP={useVisualState:Ow({scrapeMotionValuesFromProps:xw,createRenderState:yw,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}}Gp(n,r,{enableHardwareAcceleration:!1},Yp(t.tagName),e.transformTemplate),bw(t,n)}})},oP={useVisualState:Ow({scrapeMotionValuesFromProps:qp,createRenderState:Hp})};function aP(e,{forwardMotionProps:t=!1},n,r,i){return{...Up(e)?iP:oP,preloadedFeatures:n,useRender:JE(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}}var de;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(de||(de={}));function Yl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Gf(e,t,n,r){b.useEffect(()=>{const i=e.current;if(n&&i)return Yl(i,t,n,r)},[e,t,n,r])}function sP({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=b.useCallback(()=>{n&&n.setActive(de.Focus,!0)},[n]),i=b.useCallback(()=>{n&&n.setActive(de.Focus,!1)},[n]);Gf(t,"focus",e?r:void 0),Gf(t,"blur",e?i:void 0)}const Cw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Qp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ew=e=>t=>Cw(t)&&e(t,Qp(t));function xi(e,t,n,r){return Yl(e,t,Ew(n),r)}function al(e,t,n,r){return Gf(e,t,n&&Ew(n),r)}function Pw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const _v=Pw("dragHorizontal"),kv=Pw("dragVertical");function Tw(e){let t=!1;if(e==="y")t=kv();else if(e==="x")t=_v();else{const n=_v(),r=kv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function _w(){const e=Tw(!0);return e?(e(),!1):!0}function Dv(e,t,n,r){return(i,o)=>{i.type==="touch"||_w()||(n&&e.animationState&&e.animationState.setActive(de.Hover,t),r&&r(i,o))}}function lP({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){al(r,"pointerenter",b.useMemo(()=>e||n?Dv(r,!0,Boolean(n),e):void 0,[e,Boolean(n),r]),{passive:!e}),al(r,"pointerleave",b.useMemo(()=>t||n?Dv(r,!1,Boolean(n),t):void 0,[e,Boolean(n),r]),{passive:!t})}const kw=(e,t)=>t?e===t?!0:kw(e,t.parentElement):!1;function Zp(e){return b.useEffect(()=>()=>e(),[])}const uP=(e,t)=>n=>t(e(n)),Kl=(...e)=>e.reduce(uP);function cP({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i,...o}){const a=e||t||n||r,s=b.useRef(!1),l=b.useRef(null),u={passive:!(t||e||n||o.onPointerDown)};function c(){l.current&&l.current(),l.current=null}function f(){return c(),s.current=!1,i.getProps().whileTap&&i.animationState&&i.animationState.setActive(de.Tap,!1),!_w()}function d(g,S){var p,m,y,w;f()&&(kw(i.current,g.target)?(w=(y=i.getProps()).onTap)===null||w===void 0||w.call(y,g,S):(m=(p=i.getProps()).onTapCancel)===null||m===void 0||m.call(p,g,S))}function h(g,S){var p,m;f()&&((m=(p=i.getProps()).onTapCancel)===null||m===void 0||m.call(p,g,S))}const v=b.useCallback((g,S)=>{var p;if(c(),s.current)return;s.current=!0,l.current=Kl(xi(window,"pointerup",d,u),xi(window,"pointercancel",h,u));const m=i.getProps();m.whileTap&&i.animationState&&i.animationState.setActive(de.Tap,!0),(p=m.onTapStart)===null||p===void 0||p.call(m,g,S)},[Boolean(t),i]);al(i,"pointerdown",a?v:void 0,u),Zp(c)}const Yf=new WeakMap,lc=new WeakMap,fP=e=>{const t=Yf.get(e.target);t&&t(e)},dP=e=>{e.forEach(fP)};function pP({root:e,...t}){const n=e||document;lc.has(n)||lc.set(n,{});const r=lc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(dP,{root:e,...t})),r[i]}function hP(e,t,n){const r=pP(t);return Yf.set(e,n),r.observe(e),()=>{Yf.delete(e),r.unobserve(e)}}function mP({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){const o=b.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?yP:gP)(a,o.current,e,i)}const vP={some:0,all:1};function gP(e,t,n,{root:r,margin:i,amount:o="some",once:a}){b.useEffect(()=>{if(!e||!n.current)return;const s={root:r==null?void 0:r.current,rootMargin:i,threshold:typeof o=="number"?o:vP[o]},l=u=>{const{isIntersecting:c}=u;if(t.isInView===c||(t.isInView=c,a&&!c&&t.hasEnteredView))return;c&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(de.InView,c);const f=n.getProps(),d=c?f.onViewportEnter:f.onViewportLeave;d&&d(u)};return hP(n.current,s,l)},[e,r,i,o])}function yP(e,t,n,{fallback:r=!0}){b.useEffect(()=>{!e||!r||requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();i&&i(null),n.animationState&&n.animationState.setActive(de.InView,!0)})},[e])}const Fn=e=>t=>(e(t),null),wP={inView:Fn(mP),tap:Fn(cP),focus:Fn(sP),hover:Fn(lP)};function Dw(){const e=b.useContext(wa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function Lw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(e),bP=e=>/^0[^.\s]+$/.test(e),vn={delta:0,timestamp:0},Aw=1/60*1e3,xP=typeof performance<"u"?()=>performance.now():()=>Date.now(),Nw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(xP()),Aw);function OP(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.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),a.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]=OP(()=>na=!0),e),{}),it=xa.reduce((e,t)=>{const n=ql[t];return e[t]=(r,i=!1,o=!1)=>(na||PP(),n.schedule(r,i,o)),e},{}),er=xa.reduce((e,t)=>(e[t]=ql[t].cancel,e),{}),uc=xa.reduce((e,t)=>(e[t]=()=>ql[t].process(vn),e),{}),EP=e=>ql[e].process(vn),Rw=e=>{na=!1,vn.delta=Kf?Aw:Math.max(Math.min(e-vn.timestamp,CP),1),vn.timestamp=e,qf=!0,xa.forEach(EP),qf=!1,na&&(Kf=!1,Nw(Rw))},PP=()=>{na=!0,Kf=!0,qf||Nw(Rw)};function Jp(e,t){e.indexOf(t)===-1&&e.push(t)}function eh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class th{constructor(){this.subscriptions=[]}add(t){return Jp(this.subscriptions,t),()=>eh(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 _P{constructor(t,n={}){this.version="8.5.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=vn;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,it.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=()=>it.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=TP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new th);const r=this.events[t].add(n);return t==="change"?()=>{r(),it.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?nh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ji(e,t){return new _P(e,t)}const rh=(e,t)=>n=>Boolean(Sa(n)&&ME.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Mw=(e,t,n)=>r=>{if(!Sa(r))return r;const[i,o,a,s]=r.match(ta);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},kP=e=>Mi(0,255,e),cc={...Br,transform:e=>Math.round(kP(e))},Sr={test:rh("rgb","red"),parse:Mw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cc.transform(e)+", "+cc.transform(t)+", "+cc.transform(n)+", "+_o(To.transform(r))+")"};function DP(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 Xf={test:rh("#"),parse:DP,transform:Sr.transform},pi={test:rh("hsl","hue"),parse:Mw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rn.transform(_o(t))+", "+rn.transform(_o(n))+", "+_o(To.transform(r))+")"},at={test:e=>Sr.test(e)||Xf.test(e)||pi.test(e),parse:e=>Sr.test(e)?Sr.parse(e):pi.test(e)?pi.parse(e):Xf.parse(e),transform:e=>Sa(e)?e:e.hasOwnProperty("red")?Sr.transform(e):pi.transform(e)},jw="${c}",Iw="${n}";function LP(e){var t,n;return isNaN(e)&&Sa(e)&&(((t=e.match(ta))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Hf))===null||n===void 0?void 0:n.length)||0)>0}function sl(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const i=e.match(Hf);i&&(n=i.length,e=e.replace(Hf,jw),t.push(...i.map(at.parse)));const o=e.match(ta);return o&&(r=o.length,e=e.replace(ta,Iw),t.push(...o.map(Br.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Vw(e){return sl(e).values}function $w(e){const{values:t,numColors:n,tokenised:r}=sl(e),i=t.length;return o=>{let a=r;for(let s=0;stypeof e=="number"?0:e;function NP(e){const t=Vw(e);return $w(e)(t.map(AP))}const tr={test:LP,parse:Vw,createTransformer:$w,getAnimatableNone:NP},RP=new Set(["brightness","contrast","saturate","opacity"]);function MP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ta)||[];if(!r)return e;const i=n.replace(r,"");let o=RP.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const jP=/([a-z-]*)\(.*?\)/g,Qf={...tr,getAnimatableNone:e=>{const t=e.match(jP);return t?t.map(MP).join(" "):e}},IP={...mw,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:Qf,WebkitFilter:Qf},ih=e=>IP[e];function oh(e,t){var n;let r=ih(e);return r!==Qf&&(r=tr),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const Fw=e=>t=>t.test(e),VP={test:e=>e==="auto",parse:e=>e},zw=[Br,Q,rn,Dn,IE,jE,VP],ro=e=>zw.find(Fw(e)),$P=[...zw,at,tr],FP=e=>$P.find(Fw(e));function zP(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function BP(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Xl(e,t,n){const r=e.getProps();return Xp(r,t,n!==void 0?n:r.custom,zP(e),BP(e))}function UP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ji(n))}function WP(e,t){const n=Xl(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const s=tP(o[a]);UP(e,a,s)}}function HP(e,t,n){var r,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s`${e}: ${t}`;function qP(e,t,n){const{MotionAppearAnimations:r}=window,i=KP(e,zr.has(t)?"transform":t),o=r&&r.get(i);if(o){const a=performance.now();return it.update(()=>{n.animation&&(n.animation.currentTime=performance.now()-a)}),it.render(()=>{r.delete(i);try{o.cancel()}catch{}}),o.currentTime||0}else return 0}const XP="framerAppearId",QP="data-"+Kp(XP);var ZP=function(){},ul=function(){};const Os=e=>e*1e3,JP={current:!1},ah=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sh=e=>t=>1-e(1-t),lh=e=>e*e,eT=sh(lh),uh=ah(lh),Te=(e,t,n)=>-n*e+n*t+e;function fc(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 tT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=fc(l,s,e+1/3),o=fc(l,s,e),a=fc(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const dc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},nT=[Xf,Sr,pi],rT=e=>nT.find(t=>t.test(e));function Lv(e){const t=rT(e);let n=t.parse(e);return t===pi&&(n=tT(n)),n}const Bw=(e,t)=>{const n=Lv(e),r=Lv(t),i={...n};return o=>(i.red=dc(n.red,r.red,o),i.green=dc(n.green,r.green,o),i.blue=dc(n.blue,r.blue,o),i.alpha=Te(n.alpha,r.alpha,o),Sr.transform(i))};function Uw(e,t){return typeof e=="number"?n=>Te(e,t,n):at.test(e)?Bw(e,t):Hw(e,t)}const Ww=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>Uw(o,t[a]));return o=>{for(let a=0;a{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Uw(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Hw=(e,t)=>{const n=tr.createTransformer(t),r=sl(e),i=sl(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Kl(Ww(r.values,i.values),n):a=>`${a>0?t:e}`},cl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Av=(e,t)=>n=>Te(e,t,n);function oT(e){return typeof e=="number"?Av:typeof e=="string"?at.test(e)?Bw:Hw:Array.isArray(e)?Ww:typeof e=="object"?iT:Av}function aT(e,t,n){const r=[],i=n||oT(e[0]),o=e.length-1;for(let a=0;ae[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=aT(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(Mi(e[0],e[o-1],u)):l}const ch=e=>e,Yw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sT=1e-7,lT=12;function uT(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=Yw(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>sT&&++suT(o,0,1,e,n);return o=>o===0||o===1?o:Yw(i(o),t,r)}const qw=e=>1-Math.sin(Math.acos(e)),fh=sh(qw),cT=ah(fh),Xw=Kw(.33,1.53,.69,.99),dh=sh(Xw),fT=ah(dh),dT=e=>(e*=2)<1?.5*dh(e):.5*(2-Math.pow(2,-10*(e-1))),pT={linear:ch,easeIn:lh,easeInOut:uh,easeOut:eT,circIn:qw,circInOut:cT,circOut:fh,backIn:dh,backInOut:fT,backOut:Xw,anticipate:dT},Nv=e=>{if(Array.isArray(e)){ul(e.length===4);const[t,n,r,i]=e;return Kw(t,n,r,i)}else if(typeof e=="string")return pT[e];return e},hT=e=>Array.isArray(e)&&typeof e[0]!="number";function mT(e,t){return e.map(()=>t||uh).splice(0,e.length-1)}function vT(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function gT(e,t){return e.map(n=>n*t)}function Zf({keyframes:e,ease:t=uh,times:n,duration:r=300}){e=[...e];const i=hT(t)?t.map(Nv):Nv(t),o={done:!1,value:e[0]},a=gT(n&&n.length===e.length?n:vT(e),r);function s(){return Gw(a,e,{ease:Array.isArray(i)?i:mT(e,i)})}let l=s();return{next:u=>(o.value=l(u),o.done=u>=r,o),flipTarget:()=>{e.reverse(),l=s()}}}const pc=.001,yT=.01,Rv=10,wT=.05,ST=1;function bT({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ZP(e<=Rv*1e3);let a=1-t;a=Mi(wT,ST,a),e=Mi(yT,Rv,e/1e3),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,h=Jf(u,a),v=Math.exp(-f);return pc-d/h*v},o=u=>{const f=u*a*e,d=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),g=Jf(Math.pow(u,2),a);return(-i(u)+pc>0?-1:1)*((d-h)*v)/g}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-pc+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=OT(i,o,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const xT=12;function OT(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function PT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mv(e,ET)&&Mv(e,CT)){const n=bT(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const TT=5;function Qw({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let i=e[0],o=e[e.length-1];const a={done:!1,value:i},{stiffness:s,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=PT(r);let h=_T,v=c?-(c/1e3):0;const g=l/(2*Math.sqrt(s*u));function S(){const p=o-i,m=Math.sqrt(s/u)/1e3;if(n===void 0&&(n=Math.min(Math.abs(o-i)/100,.4)),g<1){const y=Jf(m,g);h=w=>{const C=Math.exp(-g*m*w);return o-C*((v+g*m*p)/y*Math.sin(y*w)+p*Math.cos(y*w))}}else if(g===1)h=y=>o-Math.exp(-m*y)*(p+(v+m*p)*y);else{const y=m*Math.sqrt(g*g-1);h=w=>{const C=Math.exp(-g*m*w),O=Math.min(y*w,300);return o-C*((v+g*m*p)*Math.sinh(O)+y*p*Math.cosh(O))/y}}}return S(),{next:p=>{const m=h(p);if(d)a.done=p>=f;else{let y=v;if(p!==0)if(g<1){const O=Math.max(0,p-TT);y=nh(m-h(O),p-O)}else y=0;const w=Math.abs(y)<=t,C=Math.abs(o-m)<=n;a.done=w&&C}return a.value=a.done?o:m,a},flipTarget:()=>{v=-v,[i,o]=[o,i],S()}}}Qw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const _T=e=>0;function kT({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a=e[0],s={done:!1,value:a};let l=n*t;const u=a+l,c=o===void 0?u:o(u);return c!==u&&(l=c-a),{next:f=>{const d=-l*Math.exp(-f/r);return s.done=!(d>i||d<-i),s.value=s.done?c:c+d,s},flipTarget:()=>{}}}const DT={decay:kT,keyframes:Zf,tween:Zf,spring:Qw};function Zw(e,t,n=0){return e-t-n}function LT(e,t=0,n=0,r=!0){return r?Zw(t+-e,t,n):t-(e-t)+n}function AT(e,t,n,r){return r?e>=t+n:e<=-n}const NT=e=>{const t=({delta:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>er.update(t)}};function fl({duration:e,driver:t=NT,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:f,onUpdate:d,type:h="keyframes",...v}){var g,S;const p=n;let m,y=0,w=e,C=!1,O=!0,P;const E=DT[a.length>2?"keyframes":h]||Zf,N=a[0],I=a[a.length-1];let k={done:!1,value:N};!((S=(g=E).needsInterpolation)===null||S===void 0)&&S.call(g,N,I)&&(P=Gw([0,100],[N,I],{clamp:!1}),a=[0,100]);const L=E({...v,duration:e,keyframes:a});function U(){y++,i==="reverse"?(O=y%2===0,n=LT(n,w,o,O)):(n=Zw(n,w,o),i==="mirror"&&L.flipTarget()),C=!1,f&&f()}function X(){m&&m.stop(),c&&c()}function Z(J){O||(J=-J),n+=J,C||(k=L.next(Math.max(0,n)),P&&(k.value=P(k.value)),C=O?k.done:n<=0),d&&d(k.value),C&&(y===0&&(w=w!==void 0?w:n),y{u&&u(),m&&m.stop()},set currentTime(J){n=p,Z(J)},sample:J=>{n=p;const R=e&&typeof e=="number"?Math.max(e*.5,50):50;let $=0;for(Z(0);$<=J;){const W=J-$;Z(Math.min(W,R)),$+=R}return k}}}function RT(e){return!e||Array.isArray(e)||typeof e=="string"&&Jw[e]}const mo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mo([0,.65,.55,1]),circOut:mo([.55,0,1,.45]),backIn:mo([.31,.01,.66,-.59]),backOut:mo([.33,1.53,.69,.99])};function MT(e){if(e)return Array.isArray(e)?mo(e):Jw[e]}function jT(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:i,easing:MT(s),fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const jv={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},hc={},eS={};for(const e in jv)eS[e]=()=>(hc[e]===void 0&&(hc[e]=jv[e]()),hc[e]);function IT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const VT=new Set(["opacity"]),rs=10;function $T(e,t,{onUpdate:n,onComplete:r,...i}){if(!(eS.waapi()&&VT.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0))return!1;let{keyframes:a,duration:s=300,elapsed:l=0,ease:u}=i;if(i.type==="spring"||!RT(i.ease)){if(i.repeat===1/0)return;const f=fl({...i,elapsed:0});let d={done:!1,value:a[0]};const h=[];let v=0;for(;!d.done&&v<2e4;)d=f.sample(v),h.push(d.value),v+=rs;a=h,s=v-rs,u="linear"}const c=jT(e.owner.current,t,a,{...i,delay:-l,duration:s,ease:u});return c.onfinish=()=>{e.set(IT(a,i)),r&&r()},{get currentTime(){return c.currentTime||0},set currentTime(f){c.currentTime=f},stop:()=>{const{currentTime:f}=c;if(f){const d=fl({...i,autoplay:!1});e.setWithVelocity(d.sample(f-rs).value,d.sample(f).value,rs)}it.update(()=>c.cancel())}}}function tS(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(er.read(r),e(o-t))};return it.read(r,!0),()=>er.read(r)}function FT({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const i=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:tS(i,-t)}:i()}function zT({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:f,onComplete:d,onStop:h}){const v=e[0];let g;function S(w){return n!==void 0&&wr}function p(w){return n===void 0?r:r===void 0||Math.abs(n-w){var O;f==null||f(C),(O=w.onUpdate)===null||O===void 0||O.call(w,C)},onComplete:d,onStop:h})}function y(w){m({type:"spring",stiffness:a,damping:s,restDelta:l,...w})}if(S(v))y({velocity:t,keyframes:[v,p(v)]});else{let w=i*t+v;typeof u<"u"&&(w=u(w));const C=p(w),O=C===n?-1:1;let P,E;const N=I=>{P=E,E=I,t=nh(I-P,vn.delta),(O===1&&I>C||O===-1&&Ig==null?void 0:g.stop()}}const cr=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),is=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mc=()=>({type:"keyframes",ease:"linear",duration:.3}),BT={type:"keyframes",duration:.8},Iv={x:cr,y:cr,z:cr,rotate:cr,rotateX:cr,rotateY:cr,rotateZ:cr,scaleX:is,scaleY:is,scale:is,opacity:mc,backgroundColor:mc,color:mc,default:is},UT=(e,{keyframes:t})=>t.length>2?BT:(Iv[e]||Iv.default)(t[1]),ed=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&tr.test(t)&&!t.startsWith("url("));function WT({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Vv(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function $v(e){return typeof e=="number"?0:oh("",e)}function nS(e,t){return e[t]||e.default||e}function HT(e,t,n,r){const i=ed(t,n);let o=r.from!==void 0?r.from:e.get();return o==="none"&&i&&typeof n=="string"?o=oh(t,n):Vv(o)&&typeof n=="string"?o=$v(n):!Array.isArray(n)&&Vv(n)&&typeof o=="string"&&(n=$v(o)),Array.isArray(n)?(n[0]===null&&(n[0]=o),n):[o,n]}const ph=(e,t,n,r={})=>i=>{const o=nS(r,e)||{},a=o.delay||r.delay||0;let{elapsed:s=0}=r;s=s-Os(a);const l=HT(t,e,n,o),u=l[0],c=l[l.length-1],f=ed(e,u),d=ed(e,c);let h={keyframes:l,velocity:t.getVelocity(),...o,elapsed:s,onUpdate:S=>{t.set(S),o.onUpdate&&o.onUpdate(S)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!f||!d||JP.current||o.type===!1)return FT(h);if(o.type==="inertia")return zT(h);WT(o)||(h={...h,...UT(e,h)}),h.duration&&(h.duration=Os(h.duration)),h.repeatDelay&&(h.repeatDelay=Os(h.repeatDelay));const v=t.owner,g=v&&v.current;if(v&&g instanceof HTMLElement&&!(v!=null&&v.getProps().onUpdate)){const S=$T(t,e,h);if(S)return S}return fl(h)};function GT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>td(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=td(e,t,n);else{const i=typeof t=="function"?Xl(e,t,n.custom):t;r=rS(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))}function td(e,t,n={}){var r;const i=Xl(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>rS(e,i,n):()=>Promise.resolve(),s=!((r=e.variantChildren)===null||r===void 0)&&r.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return YT(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(c)}else return Promise.all([a(),s(n.delay)])}function rS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(const d in l){const h=e.getValue(d),v=l[d];if(!h||v===void 0||f&&qT(f,d))continue;const g={delay:n,elapsed:0,...a};if(!h.hasAnimated){const p=e.getProps()[QP];p&&(g.elapsed=qP(p,d,h))}let S=h.start(ph(d,h,v,e.shouldReduceMotion&&zr.has(d)?{type:!1}:g));ll(u)&&(u.add(d),S=S.then(()=>u.remove(d))),c.push(S)}return Promise.all(c).then(()=>{s&&WP(e,s)})}function YT(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(KT).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(td(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function KT(e,t){return e.sortNodePosition(t)}function qT({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const hh=[de.Animate,de.InView,de.Focus,de.Hover,de.Tap,de.Drag,de.Exit],XT=[...hh].reverse(),QT=hh.length;function ZT(e){return t=>Promise.all(t.map(({animation:n,options:r})=>GT(e,n,r)))}function JT(e){let t=ZT(e);const n=t9();let r=!0;const i=(l,u)=>{const c=Xl(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;l={...l,...h,...d}}return l};function o(l){t=l(e)}function a(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let v={},g=1/0;for(let p=0;pg&&C;const I=Array.isArray(w)?w:[w];let k=I.reduce(i,{});O===!1&&(k={});const{prevResolvedValues:L={}}=y,U={...L,...k},X=Z=>{N=!0,h.delete(Z),y.needsAnimating[Z]=!0};for(const Z in U){const H=k[Z],J=L[Z];v.hasOwnProperty(Z)||(H!==J?ol(H)&&ol(J)?!Lw(H,J)||E?X(Z):y.protectedKeys[Z]=!0:H!==void 0?X(Z):h.add(Z):H!==void 0&&h.has(Z)?X(Z):y.protectedKeys[Z]=!0)}y.prevProp=w,y.prevResolvedValues=k,y.isActive&&(v={...v,...k}),r&&e.blockInitialAnimation&&(N=!1),N&&!P&&d.push(...I.map(Z=>({animation:Z,options:{type:m,...l}})))}if(h.size){const p={};h.forEach(m=>{const y=e.getBaseTarget(m);y!==void 0&&(p[m]=y)}),d.push({animation:p})}let S=Boolean(d.length);return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function s(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=a(c,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function e9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Lw(t,e):!1}function fr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t9(){return{[de.Animate]:fr(!0),[de.InView]:fr(),[de.Hover]:fr(),[de.Tap]:fr(),[de.Drag]:fr(),[de.Focus]:fr(),[de.Exit]:fr()}}const n9={animation:Fn(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=JT(e)),Wl(t)&&b.useEffect(()=>t.subscribe(e),[t])}),exit:Fn(e=>{const{custom:t,visualElement:n}=e,[r,i]=Dw(),o=b.useContext(wa);b.useEffect(()=>{n.isPresent=r;const a=n.animationState&&n.animationState.setActive(de.Exit,!r,{custom:o&&o.custom||t});a&&!r&&a.then(i)},[r])})},Fv=(e,t)=>Math.abs(e-t);function r9(e,t){const n=Fv(e.x,t.x),r=Fv(e.y,t.y);return Math.sqrt(n**2+r**2)}class iS{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=gc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=r9(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=vn;this.history.push({...d,timestamp:h});const{onStart:v,onMove:g}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=vc(c,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=gc(u.type==="pointercancel"?this.lastMoveEventInfo:vc(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!Cw(t))return;this.handlers=n,this.transformPagePoint=r;const i=Qp(t),o=vc(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=vn;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,gc(o,this.history)),this.removeListeners=Kl(xi(window,"pointermove",this.handlePointerMove),xi(window,"pointerup",this.handlePointerUp),xi(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),er.update(this.updatePoint)}}function vc(e,t){return t?{point:t(e.point)}:e}function zv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gc({point:e},t){return{point:e,delta:zv(e,oS(t)),offset:zv(e,i9(t)),velocity:o9(t,.1)}}function i9(e){return e[0]}function oS(e){return e[e.length-1]}function o9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=oS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Os(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Et(e){return e.max-e.min}function nd(e,t=0,n=.01){return Math.abs(e-t)<=n}function Bv(e,t,n,r=.5){e.origin=r,e.originPoint=Te(t.min,t.max,e.origin),e.scale=Et(n)/Et(t),(nd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Te(n.min,n.max,e.origin)-e.originPoint,(nd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ko(e,t,n,r){Bv(e.x,t.x,n.x,r==null?void 0:r.originX),Bv(e.y,t.y,n.y,r==null?void 0:r.originY)}function Uv(e,t,n){e.min=n.min+t.min,e.max=e.min+Et(t)}function a9(e,t,n){Uv(e.x,t.x,n.x),Uv(e.y,t.y,n.y)}function Wv(e,t,n){e.min=t.min-n.min,e.max=e.min+Et(t)}function Do(e,t,n){Wv(e.x,t.x,n.x),Wv(e.y,t.y,n.y)}function s9(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Te(n,e,r.max):Math.min(e,n)),e}function Hv(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 l9(e,{top:t,left:n,bottom:r,right:i}){return{x:Hv(e.x,n,i),y:Hv(e.y,t,r)}}function Gv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=cl(t.min,t.max-r,e.min):r>i&&(n=cl(e.min,e.max-i,t.min)),Mi(0,1,n)}function f9(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 rd=.35;function d9(e=rd){return e===!1?e=0:e===!0&&(e=rd),{x:Yv(e,"left","right"),y:Yv(e,"top","bottom")}}function Yv(e,t,n){return{min:Kv(e,t),max:Kv(e,n)}}function Kv(e,t){return typeof e=="number"?e:e[t]||0}const qv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lo=()=>({x:qv(),y:qv()}),Xv=()=>({min:0,max:0}),Ie=()=>({x:Xv(),y:Xv()});function Zt(e){return[e("x"),e("y")]}function aS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function p9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function h9(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 yc(e){return e===void 0||e===1}function id({scale:e,scaleX:t,scaleY:n}){return!yc(e)||!yc(t)||!yc(n)}function mr(e){return id(e)||sS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function sS(e){return Qv(e.x)||Qv(e.y)}function Qv(e){return e&&e!=="0%"}function dl(e,t,n){const r=e-n,i=t*r;return n+i}function Zv(e,t,n,r,i){return i!==void 0&&(e=dl(e,i,r)),dl(e,n,r)+t}function od(e,t=0,n=1,r,i){e.min=Zv(e.min,t,n,r,i),e.max=Zv(e.max,t,n,r,i)}function lS(e,{x:t,y:n}){od(e.x,t.translate,t.scale,t.originPoint),od(e.y,n.translate,n.scale,n.originPoint)}function m9(e,t,n,r=!1){var i,o;const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function Nn(e,t){e.min=e.min+t,e.max=e.max+t}function eg(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=Te(e.min,e.max,o);od(e,t[n],t[r],a,t.scale)}const v9=["x","scaleX","originX"],g9=["y","scaleY","originY"];function hi(e,t){eg(e.x,t,v9),eg(e.y,t,g9)}function uS(e,t){return aS(h9(e.getBoundingClientRect(),t))}function y9(e,t,n){const r=uS(e,n),{scroll:i}=t;return i&&(Nn(r.x,i.offset.x),Nn(r.y,i.offset.y)),r}const w9=new WeakMap;class S9{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=Ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=s=>{this.stopAnimation(),n&&this.snapToCursor(Qp(s,"page").point)},i=(s,l)=>{var u;const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Tw(c),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(h=>{var v,g;let S=this.getAxisMotionValue(h).get()||0;if(rn.test(S)){const p=(g=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||g===void 0?void 0:g.layoutBox[h];p&&(S=Et(p)*(parseFloat(S)/100))}this.originPoint[h]=S}),d==null||d(s,l),(u=this.visualElement.animationState)===null||u===void 0||u.setActive(de.Drag,!0))},o=(s,l)=>{const{dragPropagation:u,dragDirectionLock:c,onDirectionLock:f,onDrag:d}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:h}=l;if(c&&this.currentDirection===null){this.currentDirection=b9(h),this.currentDirection!==null&&(f==null||f(this.currentDirection));return}this.updateAxis("x",l.point,h),this.updateAxis("y",l.point,h),this.visualElement.render(),d==null||d(s,l)},a=(s,l)=>this.stop(s,l);this.panSession=new iS(t,{onSessionStart:r,onStart:i,onMove:o,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==null||o(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(de.Drag,!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!os(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=s9(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&di(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=l9(r.layoutBox,t):this.constraints=!1,this.elastic=d9(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zt(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=f9(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!di(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=y9(r,i.root,this.visualElement.getTransformPagePoint());let a=u9(i.layout.layoutBox,o);if(n){const s=n(p9(a));this.hasMutatedConstraints=!!s,s&&(a=aS(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Zt(c=>{if(!os(c,n,this.currentDirection))return;let f=(l==null?void 0:l[c])||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ph(t,r,0,n))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n;const r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,((n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])||0)}snapToCursor(t){Zt(n=>{const{drag:r}=this.getProps();if(!os(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-Te(a,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!di(r)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Zt(s=>{const l=this.getAxisMotionValue(s);if(l){const u=l.get();o[s]=c9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Zt(s=>{if(!os(s,n,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(Te(u,c,o[s]))})}addListeners(){var t;if(!this.visualElement.current)return;w9.set(this.visualElement,this);const n=this.visualElement.current,r=xi(n,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(u)}),i=()=>{const{dragConstraints:u}=this.getProps();di(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();const s=Yl(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Zt(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),l==null||l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=rd,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function os(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function b9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function x9(e){const{dragControls:t,visualElement:n}=e,r=Gl(()=>new S9(n));b.useEffect(()=>t&&t.subscribe(r),[r,t]),b.useEffect(()=>r.addListeners(),[r])}function O9({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){const o=e||t||n||r,a=b.useRef(null),{transformPagePoint:s}=b.useContext(zp),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(c,f)=>{a.current=null,n&&n(c,f)}};b.useEffect(()=>{a.current!==null&&a.current.updateHandlers(l)});function u(c){a.current=new iS(c,l,{transformPagePoint:s})}al(i,"pointerdown",o&&u),Zp(()=>a.current&&a.current.end())}const C9={pan:Fn(O9),drag:Fn(x9)};function ad(e){return typeof e=="string"&&e.startsWith("var(--")}const cS=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function E9(e){const t=cS.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function sd(e,t,n=1){const[r,i]=E9(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():ad(i)?sd(i,t,n+1):i}function P9(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(!ad(o))return;const a=sd(o,r);a&&i.set(a)});for(const i in t){const o=t[i];if(!ad(o))continue;const a=sd(o,r);a&&(t[i]=a,n&&n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const T9=new Set(["width","height","top","left","right","bottom","x","y"]),fS=e=>T9.has(e),_9=e=>Object.keys(e).some(fS),tg=e=>e===Br||e===Q;var ng;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(ng||(ng={}));const rg=(e,t)=>parseFloat(e.split(", ")[t]),ig=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return rg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?rg(o[1],e):0}},k9=new Set(["x","y","z"]),D9=rl.filter(e=>!k9.has(e));function L9(e){const t=[];return D9.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 og={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:ig(4,13),y:ig(5,14)},A9=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=og[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=og[u](l,o)}),e},N9=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(fS);let o=[],a=!1;const s=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=ro(c);const d=t[l];let h;if(ol(d)){const v=d.length,g=d[0]===null?1:0;c=d[g],f=ro(c);for(let S=g;S=0?window.pageYOffset:null,u=A9(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Ul&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function R9(e,t,n,r){return _9(t)?N9(e,t,n,r):{target:t,transitionEnd:r}}const M9=(e,t,n,r)=>{const i=P9(e,t,r);return t=i.target,r=i.transitionEnd,R9(e,t,n,r)},ld={current:null},dS={current:!1};function j9(){if(dS.current=!0,!!Ul)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ld.current=e.matches;e.addListener(t),t()}else ld.current=!1}function I9(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(gt(o))e.addValue(i,o),ll(r)&&r.add(i);else if(gt(a))e.addValue(i,ji(o,{owner:e})),ll(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,ji(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const pS=Object.keys(ea),V9=pS.length,ag=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $9{constructor({parent:t,props:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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=()=>it.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Hl(n),this.isVariantNode=fw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(n,{});for(const c in u){const f=u[c];a[c]!==void 0&>(f)&&(f.set(a[c],!1),ll(l)&&l.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){var n;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(n=this.parent)===null||n===void 0?void 0:n.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),dS.current||j9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ld.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,n,r;(t=this.projection)===null||t===void 0||t.unmount(),er.update(this.notifyUpdate),er.render(this.render),this.valueSubscriptions.forEach(i=>i()),(n=this.removeFromVariantTree)===null||n===void 0||n.call(this),(r=this.parent)===null||r===void 0||r.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,n){const r=zr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&it.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,a,s){const l=[];for(let u=0;uthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:v})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const n=this.props;this.props=t;for(let r=0;rr.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){var n;this.values.delete(t),(n=this.valueSubscriptions.get(t))===null||n===void 0||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=ji(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=Xp(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&&!gt(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 th),this.events[t].add(n)}notify(t,...n){var r;(r=this.events[t])===null||r===void 0||r.notify(...n)}}const hS=["initial",...hh],F9=hS.length;class mS extends $9{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){var r;return(r=t.style)===null||r===void 0?void 0:r[n]}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let a=YP(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){HP(this,r,a);const s=M9(this,r,a,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function z9(e){return window.getComputedStyle(e)}class B9 extends mS{readValueFromInstance(t,n){if(zr.has(n)){const r=ih(n);return r&&r.default||0}else{const r=z9(t),i=(hw(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return uS(t,n)}build(t,n,r,i){Wp(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return qp(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){ww(t,n,r,i)}}class U9 extends mS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){var r;return zr.has(n)?((r=ih(n))===null||r===void 0?void 0:r.default)||0:(n=Sw.has(n)?n:Kp(n),t.getAttribute(n))}measureInstanceViewportBox(){return Ie()}scrapeMotionValuesFromProps(t,n){return xw(t,n)}build(t,n,r,i){Gp(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){bw(t,n,r,i)}mount(t){this.isSVGTag=Yp(t.tagName),super.mount(t)}}const W9=(e,t)=>Up(e)?new U9(t,{enableHardwareAcceleration:!1}):new B9(t,{enableHardwareAcceleration:!0});function sg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const io={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=sg(e,t.target.x),r=sg(e,t.target.y);return`${n}% ${r}%`}},lg="_$css",H9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),o=[];i&&(e=e.replace(cS,h=>(o.push(h),lg)));const a=tr.parse(e);if(a.length>5)return r;const s=tr.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;const f=Te(u,c,.5);typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f);let d=s(a);if(i){let h=0;d=d.replace(lg,()=>{const v=o[h];return h++,v})}return d}};class G9 extends B.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;DE(K9),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()})),Po.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||it.postRender(()=>{var s;!((s=a.getStack())===null||s===void 0)&&s.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n!=null&&n.group&&n.group.remove(i),r!=null&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function Y9(e){const[t,n]=Dw(),r=b.useContext(Bp);return B.createElement(G9,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(dw),isPresent:t,safeToRemove:n})}const K9={borderRadius:{...io,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:io,borderTopRightRadius:io,borderBottomLeftRadius:io,borderBottomRightRadius:io,boxShadow:H9},q9={measureLayout:Y9};function X9(e,t,n={}){const r=gt(e)?e:ji(e);return r.start(ph("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const vS=["TopLeft","TopRight","BottomLeft","BottomRight"],Q9=vS.length,ug=e=>typeof e=="string"?parseFloat(e):e,cg=e=>typeof e=="number"||Q.test(e);function Z9(e,t,n,r,i,o){i?(e.opacity=Te(0,n.opacity!==void 0?n.opacity:1,J9(r)),e.opacityExit=Te(t.opacity!==void 0?t.opacity:1,0,e_(r))):o&&(e.opacity=Te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(cl(e,t,r))}function dg(e,t){e.min=t.min,e.max=t.max}function $t(e,t){dg(e.x,t.x),dg(e.y,t.y)}function pg(e,t,n,r,i){return e-=t,e=dl(e,1/n,r),i!==void 0&&(e=dl(e,1/i,r)),e}function t_(e,t=0,n=1,r=.5,i,o=e,a=e){if(rn.test(t)&&(t=parseFloat(t),t=Te(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Te(o.min,o.max,r);e===o&&(s-=t),e.min=pg(e.min,t,n,s,i),e.max=pg(e.max,t,n,s,i)}function hg(e,t,[n,r,i],o,a){t_(e,t[n],t[r],t[i],t.scale,o,a)}const n_=["x","scaleX","originX"],r_=["y","scaleY","originY"];function mg(e,t,n,r){hg(e.x,t,n_,n==null?void 0:n.x,r==null?void 0:r.x),hg(e.y,t,r_,n==null?void 0:n.y,r==null?void 0:r.y)}function vg(e){return e.translate===0&&e.scale===1}function yS(e){return vg(e.x)&&vg(e.y)}function wS(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 gg(e){return Et(e.x)/Et(e.y)}class i_{constructor(){this.members=[]}add(t){Jp(this.members,t),t.scheduleRender()}remove(t){if(eh(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){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function yg(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 a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const o_=(e,t)=>e.depth-t.depth;class a_{constructor(){this.children=[],this.isDirty=!1}add(t){Jp(this.children,t),this.isDirty=!0}remove(t){eh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o_),this.isDirty=!1,this.children.forEach(t)}}const wg=["","X","Y","Z"],Sg=1e3;let s_=0;function SS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a,s={},l=t==null?void 0:t()){this.id=s_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(c_),this.nodes.forEach(p_),this.nodes.forEach(h_)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let u=0;uthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=tS(h,250),Po.hasAnimatedSinceResize&&(Po.hasAnimatedSinceResize=!1,this.nodes.forEach(xg))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:v,layout:g})=>{var S,p,m,y,w;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=(p=(S=this.options.transition)!==null&&S!==void 0?S:f.getDefaultTransition())!==null&&p!==void 0?p:w_,{onLayoutAnimationStart:O,onLayoutAnimationComplete:P}=f.getProps(),E=!this.targetLayout||!wS(this.targetLayout,g)||v,N=!h&&v;if(this.options.layoutRoot||!((m=this.resumeFrom)===null||m===void 0)&&m.instance||N||h&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,N);const I={...nS(C,"layout"),onPlay:O,onComplete:P};(f.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else!h&&this.animationProgress===0&&xg(this),this.isLead()&&((w=(y=this.options).onExitComplete)===null||w===void 0||w.call(y));this.targetLayout=g})}unmount(){var a,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,er.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(m_),this.animationId++)}getTransformTemplate(){var a;return(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate}willUpdate(a=!0){var s,l,u;if(this.root.isUpdateBlocked()){(l=(s=this.options).onExitComplete)===null||l===void 0||l.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{var y;const w=m/1e3;Og(h.x,a.x,w),Og(h.y,a.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((y=this.relativeParent)===null||y===void 0)&&y.layout)&&(Do(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),g_(this.relativeTarget,this.relativeTargetOrigin,v,w)),g&&(this.animationValues=d,Z9(d,f,this.latestValues,w,p,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l;this.notifyListeners("animationStart"),(s=this.currentAnimation)===null||s===void 0||s.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(er.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{Po.hasAnimatedSinceResize=!0,this.currentAnimation=X9(0,Sg,{...a,onUpdate:u=>{var c;this.mixTargetDelta(u),(c=a.onUpdate)===null||c===void 0||c.call(a,u)},onComplete:()=>{var u;(u=a.onComplete)===null||u===void 0||u.call(a),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,Sg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&bS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();const f=Et(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=Et(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}$t(s,l),hi(s,c),ko(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){var l,u,c;this.sharedNodes.has(a)||this.sharedNodes.set(a,new i_),this.sharedNodes.get(a).add(s),s.promote({transition:(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(c=(u=s.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||c===void 0?void 0:c.call(u,s)})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(bg),this.root.sharedNodes.clear()}}}function l_(e){e.updateLayout()}function u_(e){var t,n,r;const i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=e.layout,{animationType:s}=e.options,l=i.source!==e.layout.source;s==="size"?Zt(h=>{const v=l?i.measuredBox[h]:i.layoutBox[h],g=Et(v);v.min=o[h].min,v.max=v.min+g}):bS(s,i.layoutBox,o)&&Zt(h=>{const v=l?i.measuredBox[h]:i.layoutBox[h],g=Et(o[h]);v.max=v.min+g});const u=Lo();ko(u,o,i.layoutBox);const c=Lo();l?ko(c,e.applyTransform(a,!0),i.measuredBox):ko(c,o,i.layoutBox);const f=!yS(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:v,layout:g}=h;if(v&&g){const S=Ie();Do(S,i.layoutBox,v.layoutBox);const p=Ie();Do(p,o,g.layoutBox),wS(S,p)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function c_(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function f_(e){e.clearSnapshot()}function bg(e){e.clearMeasurements()}function d_(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function p_(e){e.resolveTargetDelta()}function h_(e){e.calcProjection()}function m_(e){e.resetRotation()}function v_(e){e.removeLeadSnapshot()}function Og(e,t,n){e.translate=Te(t.translate,0,n),e.scale=Te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cg(e,t,n,r){e.min=Te(t.min,n.min,r),e.max=Te(t.max,n.max,r)}function g_(e,t,n,r){Cg(e.x,t.x,n.x,r),Cg(e.y,t.y,n.y,r)}function y_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const w_={duration:.45,ease:[.4,0,.1,1]};function S_(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function Eg(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function b_(e){Eg(e.x),Eg(e.y)}function bS(e,t,n){return e==="position"||e==="preserve-aspect"&&!nd(gg(t),gg(n),.2)}const x_=SS({attachResizeListener:(e,t)=>Yl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wc={current:void 0},O_=SS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wc.current){const e=new x_(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),wc.current=e}return wc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),C_={...n9,...wP,...C9,...q9},We=_E((e,t)=>aP(e,t,C_,W9,O_));function xS(){const e=b.useRef(!1);return tl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function E_(){const e=xS(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>it.postRender(r),[r]),t]}class P_ extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function T_({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:l}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${o}px !important; - height: ${a}px !important; - top: ${s}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(u)}},[t]),b.createElement(P_,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}const Sc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Gl(__),l=b.useId(),u=b.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return b.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),b.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=b.createElement(T_,{isPresent:n},e)),b.createElement(wa.Provider,{value:u},e)};function __(){return new Map}const Qr=e=>e.key||"";function k_(e,t){e.forEach(n=>{const r=Qr(n);t.set(r,n)})}function D_(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const L_=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait");let[s]=E_();const l=b.useContext(Bp).forceRender;l&&(s=l);const u=xS(),c=D_(e);let f=c;const d=new Set,h=b.useRef(f),v=b.useRef(new Map).current,g=b.useRef(!0);if(tl(()=>{g.current=!1,k_(c,v),h.current=f}),Zp(()=>{g.current=!0,v.clear(),d.clear()}),g.current)return b.createElement(b.Fragment,null,f.map(y=>b.createElement(Sc,{key:Qr(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},y)));f=[...f];const S=h.current.map(Qr),p=c.map(Qr),m=S.length;for(let y=0;y{if(p.indexOf(y)!==-1)return;const w=v.get(y);if(!w)return;const C=S.indexOf(y),O=()=>{v.delete(y),d.delete(y);const P=h.current.findIndex(E=>E.key===y);if(h.current.splice(P,1),!d.size){if(h.current=c,u.current===!1)return;s(),r&&r()}};f.splice(C,0,b.createElement(Sc,{key:Qr(w),isPresent:!1,onExitComplete:O,custom:t,presenceAffectsLayout:o,mode:a},w))}),f=f.map(y=>{const w=y.key;return d.has(w)?y:b.createElement(Sc,{key:Qr(y),isPresent:!0,presenceAffectsLayout:o,mode:a},y)}),b.createElement(b.Fragment,null,d.size?f:f.map(y=>b.cloneElement(y)))},A_=({children:e})=>{const t=Fr();return b.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t.pathname]),e};const mh=({givenClass:e,title:t,linkData:n})=>q("div",{className:`${e?e+"-title":""} section-title`,children:[x("h2",{children:t}),n?x(xe,{to:n.link,children:n.title}):null]});var On={},N_={get exports(){return On},set exports(e){On=e}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,v=d||h||Function("return this")(),g=Object.prototype.toString,S=Math.max,p=Math.min,m=function(){return v.Date.now()};function y(C){var O=typeof C;return!!C&&(O=="object"||O=="function")}function w(C){if(typeof C=="number")return C;if(function(E){return typeof E=="symbol"||function(N){return!!N&&typeof N=="object"}(E)&&g.call(E)=="[object Symbol]"}(C))return NaN;if(y(C)){var O=typeof C.valueOf=="function"?C.valueOf():C;C=y(O)?O+"":O}if(typeof C!="string")return C===0?C:+C;C=C.replace(s,"");var P=u.test(C);return P||c.test(C)?f(C.slice(2),P?2:8):l.test(C)?NaN:+C}i.exports=function(C,O,P){var E,N,I,k,L,U,X=0,Z=!1,H=!1,J=!0;if(typeof C!="function")throw new TypeError("Expected a function");function R(ie){var je=E,_e=N;return E=N=void 0,X=ie,k=C.apply(_e,je)}function $(ie){return X=ie,L=setTimeout(ee,O),Z?R(ie):k}function W(ie){var je=ie-U;return U===void 0||je>=O||je<0||H&&ie-X>=I}function ee(){var ie=m();if(W(ie))return te(ie);L=setTimeout(ee,function(je){var _e=O-(je-U);return H?p(_e,I-(je-X)):_e}(ie))}function te(ie){return L=void 0,J&&E?R(ie):(E=N=void 0,k)}function Me(){var ie=m(),je=W(ie);if(E=arguments,N=this,U=ie,je){if(L===void 0)return $(U);if(H)return L=setTimeout(ee,O),R(U)}return L===void 0&&(L=setTimeout(ee,O)),k}return O=w(O)||0,y(P)&&(Z=!!P.leading,I=(H="maxWait"in P)?S(w(P.maxWait)||0,O):I,J="trailing"in P?!!P.trailing:J),Me.cancel=function(){L!==void 0&&clearTimeout(L),X=0,E=U=N=L=void 0},Me.flush=function(){return L===void 0?k:te(m())},Me}},96:(i,o,a)=>{var s="Expected a function",l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,g=h||v||Function("return this")(),S=Object.prototype.toString,p=Math.max,m=Math.min,y=function(){return g.Date.now()};function w(O){var P=typeof O;return!!O&&(P=="object"||P=="function")}function C(O){if(typeof O=="number")return O;if(function(N){return typeof N=="symbol"||function(I){return!!I&&typeof I=="object"}(N)&&S.call(N)=="[object Symbol]"}(O))return NaN;if(w(O)){var P=typeof O.valueOf=="function"?O.valueOf():O;O=w(P)?P+"":P}if(typeof O!="string")return O===0?O:+O;O=O.replace(l,"");var E=c.test(O);return E||f.test(O)?d(O.slice(2),E?2:8):u.test(O)?NaN:+O}i.exports=function(O,P,E){var N=!0,I=!0;if(typeof O!="function")throw new TypeError(s);return w(E)&&(N="leading"in E?!!E.leading:N,I="trailing"in E?!!E.trailing:I),function(k,L,U){var X,Z,H,J,R,$,W=0,ee=!1,te=!1,Me=!0;if(typeof k!="function")throw new TypeError(s);function ie(Le){var ft=X,un=Z;return X=Z=void 0,W=Le,J=k.apply(un,ft)}function je(Le){return W=Le,R=setTimeout(yt,L),ee?ie(Le):J}function _e(Le){var ft=Le-$;return $===void 0||ft>=L||ft<0||te&&Le-W>=H}function yt(){var Le=y();if(_e(Le))return Yr(Le);R=setTimeout(yt,function(ft){var un=L-(ft-$);return te?m(un,H-(ft-W)):un}(Le))}function Yr(Le){return R=void 0,Me&&X?ie(Le):(X=Z=void 0,J)}function Tn(){var Le=y(),ft=_e(Le);if(X=arguments,Z=this,$=Le,ft){if(R===void 0)return je($);if(te)return R=setTimeout(yt,L),ie($)}return R===void 0&&(R=setTimeout(yt,L)),J}return L=C(L)||0,w(U)&&(ee=!!U.leading,H=(te="maxWait"in U)?p(C(U.maxWait)||0,L):H,Me="trailing"in U?!!U.trailing:Me),Tn.cancel=function(){R!==void 0&&clearTimeout(R),W=0,X=$=Z=R=void 0},Tn.flush=function(){return R===void 0?J:Yr(y())},Tn}(O,P,{leading:N,maxWait:P,trailing:I})}},703:(i,o,a)=>{var s=a(414);function l(){}function u(){}u.resetWarningCache=l,i.exports=function(){function c(h,v,g,S,p,m){if(m!==s){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function f(){return c}c.isRequired=c;var d={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:l};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return n.d(o,{a:o}),o},n.d=(i,o)=>{for(var a in o)n.o(o,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>em,LazyLoadImage:()=>Mx,trackWindowScroll:()=>ee});const i=b;var o=n.n(i),a=n(697);const s=Ro;var l=n.n(s);function u(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(M){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function f(M,_){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);_&&(F=F.filter(function(Be){return Object.getOwnPropertyDescriptor(M,Be).enumerable})),z.push.apply(z,F)}return z}function d(M,_,z){return _ in M?Object.defineProperty(M,_,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[_]=z,M}function h(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function v(M,_){return(v=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function g(M,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function S(M){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var p=function(M){M.forEach(function(_){_.isIntersecting&&_.target.onVisible()})},m={},y=function(M){(function(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&v(A,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=S(F);if(Be){var Y=S(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return g(this,A)});function fe(A){var j;if(function(K,ne){if(!(K instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,fe),(j=Yt.call(this,A)).supportsObserver=!A.scrollPosition&&A.useIntersectionObserver&&u(),j.supportsObserver){var Y=A.threshold;j.observer=function(K){return m[K]=m[K]||new IntersectionObserver(p,{rootMargin:K+"px"}),m[K]}(Y)}return j}return _=fe,(z=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,j=this.placeholder.getBoundingClientRect(),Y=l().findDOMNode(this.placeholder).style,K={left:parseInt(Y.getPropertyValue("margin-left"),10)||0,top:parseInt(Y.getPropertyValue("margin-top"),10)||0};return{bottom:A.y+j.bottom+K.top,left:A.x+j.left+K.left,right:A.x+j.right+K.left,top:A.y+j.top+K.top}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,j=A.scrollPosition,Y=A.threshold,K=this.getPlaceholderBoundingBox(j),ne=j.y+window.innerHeight,ce=j.x,Se=j.x+window.innerWidth,be=j.y;return Boolean(be-Y<=K.bottom&&ne+Y>=K.top&&ce-Y<=K.right&&Se+Y>=K.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,j=this.props,Y=j.className,K=j.height,ne=j.placeholder,ce=j.style,Se=j.width;if(ne&&typeof ne.type!="function")return o().cloneElement(ne,{ref:function(he){return A.placeholder=he}});var be=function(he){for(var Ye=1;Ye"u"?0:window.scrollX||window.pageXOffset},W=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const ee=function(M){var _=function(z){(function(Y,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Y.prototype=Object.create(K&&K.prototype,{constructor:{value:Y,writable:!0,configurable:!0}}),K&&Z(Y,K)})(j,z);var F,Be,Yt,fe,A=(Yt=j,fe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Y,K=R(Yt);if(fe){var ne=R(this).constructor;Y=Reflect.construct(K,arguments,ne)}else Y=K.apply(this,arguments);return H(this,Y)});function j(Y){var K;if(function(ce,Se){if(!(ce instanceof Se))throw new TypeError("Cannot call a class as a function")}(this,j),(K=A.call(this,Y)).useIntersectionObserver=Y.useIntersectionObserver&&u(),K.useIntersectionObserver)return H(K);var ne=K.onChangeScroll.bind(J(K));return Y.delayMethod==="debounce"?K.delayedScroll=O()(ne,Y.delayTime):Y.delayMethod==="throttle"&&(K.delayedScroll=E()(ne,Y.delayTime)),K.state={scrollPosition:{x:$(),y:W()}},K.baseComponentRef=o().createRef(),K}return F=j,(Be=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||I(l().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=I(l().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:$(),y:W()}})}},{key:"render",value:function(){var Y=this.props,K=(Y.delayMethod,Y.delayTime,function(ce,Se){if(ce==null)return{};var be,he,Ye=function(Ze,qr){if(Ze==null)return{};var ur,ja,om={},am=Object.keys(Ze);for(ja=0;ja=0||(om[ur]=Ze[ur]);return om}(ce,Se);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ce);for(he=0;he=0||Object.prototype.propertyIsEnumerable.call(ce,be)&&(Ye[be]=ce[be])}return Ye}(Y,L)),ne=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(M,U({forwardRef:this.baseComponentRef,scrollPosition:ne},K))}}])&&X(F.prototype,Be),j}(o().Component);return _.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},_.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},_};function te(M){return(te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function Me(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function ie(M,_){return(ie=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function je(M,_){if(_&&(te(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function _e(M){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var yt=function(M){(function(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&ie(A,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=_e(F);if(Be){var Y=_e(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return je(this,A)});function fe(A){return function(j,Y){if(!(j instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,fe),Yt.call(this,A)}return _=fe,(z=[{key:"render",value:function(){return o().createElement(w,this.props)}}])&&Me(_.prototype,z),fe}(o().Component);const Yr=ee(yt);function Tn(M){return(Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function Le(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function ft(M,_){return(ft=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function un(M,_){if(_&&(Tn(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ma(M)}function Ma(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Ae(M){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var Kr=function(M){(function(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&ft(A,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=Ae(F);if(Be){var Y=Ae(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return un(this,A)});function fe(A){var j;(function(Se,be){if(!(Se instanceof be))throw new TypeError("Cannot call a class as a function")})(this,fe),j=Yt.call(this,A);var Y=A.afterLoad,K=A.beforeLoad,ne=A.scrollPosition,ce=A.visibleByDefault;return j.state={visible:ce},ce&&(K(),Y()),j.onVisible=j.onVisible.bind(Ma(j)),j.isScrollTracked=Boolean(ne&&Number.isFinite(ne.x)&&ne.x>=0&&Number.isFinite(ne.y)&&ne.y>=0),j}return _=fe,(z=[{key:"componentDidUpdate",value:function(A,j){j.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,j=A.className,Y=A.delayMethod,K=A.delayTime,ne=A.height,ce=A.placeholder,Se=A.scrollPosition,be=A.style,he=A.threshold,Ye=A.useIntersectionObserver,Ne=A.width;return this.isScrollTracked||Ye&&u()?o().createElement(w,{className:j,height:ne,onVisible:this.onVisible,placeholder:ce,scrollPosition:Se,style:be,threshold:he,useIntersectionObserver:Ye,width:Ne}):o().createElement(Yr,{className:j,delayMethod:Y,delayTime:K,height:ne,onVisible:this.onVisible,placeholder:ce,style:be,threshold:he,width:Ne})}}])&&Le(_.prototype,z),fe}(o().Component);Kr.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Kr.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const em=Kr;function tm(M){return(tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}var Lx=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function nm(M,_){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);_&&(F=F.filter(function(Be){return Object.getOwnPropertyDescriptor(M,Be).enumerable})),z.push.apply(z,F)}return z}function rm(M){for(var _=1;_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=Au(F);if(Be){var Y=Au(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return Rx(this,A)});function fe(A){var j;return function(Y,K){if(!(Y instanceof K))throw new TypeError("Cannot call a class as a function")}(this,fe),(j=Yt.call(this,A)).state={loaded:!1},j}return _=fe,(z=[{key:"onImageLoad",value:function(){var A=this;return this.state.loaded?null:function(){A.props.afterLoad(),A.setState({loaded:!0})}}},{key:"getImg",value:function(){var A=this.props,j=(A.afterLoad,A.beforeLoad,A.delayMethod,A.delayTime,A.effect,A.placeholder,A.placeholderSrc,A.scrollPosition,A.threshold,A.useIntersectionObserver,A.visibleByDefault,A.wrapperClassName,A.wrapperProps,function(Y,K){if(Y==null)return{};var ne,ce,Se=function(he,Ye){if(he==null)return{};var Ne,Ze,qr={},ur=Object.keys(he);for(Ze=0;Ze=0||(qr[Ne]=he[Ne]);return qr}(Y,K);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(Y);for(ce=0;ce=0||Object.prototype.propertyIsEnumerable.call(Y,ne)&&(Se[ne]=Y[ne])}return Se}(A,Lx));return o().createElement("img",Lu({onLoad:this.onImageLoad()},j))}},{key:"getLazyLoadImage",value:function(){var A=this.props,j=A.beforeLoad,Y=A.className,K=A.delayMethod,ne=A.delayTime,ce=A.height,Se=A.placeholder,be=A.scrollPosition,he=A.style,Ye=A.threshold,Ne=A.useIntersectionObserver,Ze=A.visibleByDefault,qr=A.width;return o().createElement(em,{beforeLoad:j,className:Y,delayMethod:K,delayTime:ne,height:ce,placeholder:Se,scrollPosition:be,style:he,threshold:Ye,useIntersectionObserver:Ne,visibleByDefault:Ze,width:qr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var j=this.props,Y=j.effect,K=j.height,ne=j.placeholderSrc,ce=j.width,Se=j.wrapperClassName,be=j.wrapperProps,he=this.state.loaded,Ye=he?" lazy-load-image-loaded":"",Ne=he||!ne?{}:{backgroundImage:"url(".concat(ne,")"),backgroundSize:"100% 100%"};return o().createElement("span",Lu({className:Se+" lazy-load-image-background "+Y+Ye,style:rm(rm({},Ne),{},{color:"transparent",display:"inline-block",height:K,width:ce})},be),A)}},{key:"render",value:function(){var A=this.props,j=A.effect,Y=A.placeholderSrc,K=A.visibleByDefault,ne=A.wrapperClassName,ce=A.wrapperProps,Se=this.getLazyLoadImage();return(j||Y)&&!K||ne||ce?this.getWrappedLazyLoadImage(Se):Se}}])&&Nx(_.prototype,z),fe}(o().Component);Nu.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},Nu.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const Mx=Nu})(),N_.exports=r})();const OS=({title:e})=>x("p",{className:"news-category",children:e}),CS=({date:e})=>x("h3",{className:"news-date",children:e}),oo=({title:e,date:t,img:n,category:r,link:i})=>x(xe,{to:i,className:"aside-news",children:q("div",{className:"aside-news-wrapper",children:[x("div",{className:"aside-news-image",children:x(On.LazyLoadImage,{src:n,alt:"image",useIntersectionObserver:!0,effect:"blur"})}),x("div",{className:"aside-news-info",children:q("div",{className:"aside-news-info-inner",children:[q("div",{className:"aside-news-status",children:[x(OS,{title:r}),x(CS,{date:t})]}),x("h2",{className:"aside-news-title",children:e})]})})]})});var T={},R_={get exports(){return T},set exports(e){T=e}},M_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",j_=M_,I_=j_;function ES(){}function PS(){}PS.resetWarningCache=ES;var V_=function(){function e(r,i,o,a,s,l){if(l!==I_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:PS,resetWarningCache:ES};return n.PropTypes=n,n};R_.exports=V_();function TS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t-1}function uk(e,t){var n=this.__data__,r=Zl(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Wi.prototype.clear=ok;Wi.prototype.delete=ak;Wi.prototype.get=sk;Wi.prototype.has=lk;Wi.prototype.set=uk;function Ur(e){var t=-1,n=e?e.length:0;for(this.clear();++t1&&arguments[1]!==void 0?arguments[1]:n,a=e(i)+o;return t(a)}}function Oa(e){return function(n){return new Date(e(n).getTime()-1)}}function Ca(e){return function(n){return e.map(function(r){return r(n)})}}function we(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;var t=parseInt(e,10);if(typeof e=="string"&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function sr(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function eu(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function Ea(e){var t=we(e),n=t+(-t+1)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var Pk=En(we,Ea,-100),IS=En(we,Ea,100),yh=Oa(IS),Tk=En(we,yh,-100),VS=Ca([Ea,yh]);function Wr(e){var t=we(e),n=t+(-t+1)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var $S=En(we,Wr,-10),wh=En(we,Wr,10),tu=Oa(wh),FS=En(we,tu,-10),zS=Ca([Wr,tu]);function Pa(e){var t=we(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var BS=En(we,Pa,-1),Sh=En(we,Pa,1),nu=Oa(Sh),US=En(we,nu,-1),_k=Ca([Pa,nu]);function bh(e,t){return function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=we(r),a=sr(r)+i,s=new Date;return s.setFullYear(o,a,1),s.setHours(0,0,0,0),e(s)}}function Hi(e){var t=we(e),n=sr(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var WS=bh(Hi,-1),xh=bh(Hi,1),Ta=Oa(xh),HS=bh(Ta,-1),kk=Ca([Hi,Ta]);function Dk(e,t){return function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=we(r),a=sr(r),s=eu(r)+i,l=new Date;return l.setFullYear(o,a,s),l.setHours(0,0,0,0),e(l)}}function ru(e){var t=we(e),n=sr(e),r=eu(e),i=new Date;return i.setFullYear(t,n,r),i.setHours(0,0,0,0),i}var Lk=Dk(ru,1),Oh=Oa(Lk),Ak=Ca([ru,Oh]);function GS(e){return eu(Ta(e))}var ao;function Nk(e){return Ik(e)||jk(e)||Mk(e)||Rk()}function Rk(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mk(e,t){if(e){if(typeof e=="string")return ud(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 ud(e,t)}}function jk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ik(e){if(Array.isArray(e))return ud(e)}function ud(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=e.getDay();switch(t){case De.ISO_8601:return(n+6)%7;case De.ARABIC:return(n+1)%7;case De.HEBREW:case De.US:return n;default:throw new Error("Unsupported calendar type.")}}function eD(e){var t=Ea(e);return we(t)}function tD(e){var t=Wr(e);return we(t)}function cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=we(e),r=sr(e),i=e.getDate()-ia(e,t);return new Date(n,r,i)}function nD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=t===De.US?De.US:De.ISO_8601,r=cd(e,t),i=we(e)+1,o,a;do o=new Date(i,0,n===De.ISO_8601?4:1),a=cd(o,t),i-=1;while(e1&&arguments[1]!==void 0?arguments[1]:iu,n=arguments.length>2?arguments[2]:void 0;return n.map(function(r){return t(e,r)}).join(" – ")}function uD(e,t,n){return XS(e,t,VS(n))}function QS(e,t,n){return XS(e,t,zS(n))}function ZS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=e.getDay();switch(t){case De.ARABIC:case De.HEBREW:return n===Jk||n===_g;case De.ISO_8601:case De.US:return n===_g||n===Zk;default:throw new Error("Unsupported calendar type.")}}function Ii(e){return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}var cD=Object.values(De),JS=["century","decade","year","month"],_a=T.oneOf(cD),pl=T.oneOfType([T.string,T.arrayOf(T.string)]),Eh=function(t,n,r){var i=t[n];if(!i)return null;if(!(i instanceof Date))return new Error("Invalid prop `".concat(n,"` of type `").concat(Ii(i),"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=t.maxDate;return o&&i>o?new Error("Invalid prop `".concat(n,"` of type `").concat(Ii(i),"` supplied to `").concat(r,"`, minDate cannot be larger than maxDate.")):null},Ph=function(t,n,r){var i=t[n];if(!i)return null;if(!(i instanceof Date))return new Error("Invalid prop `".concat(n,"` of type `").concat(Ii(i),"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=t.minDate;return o&&i0,$=H!=="century",W=rD(H,t),ee=$&&iD(H,t),te=KS(H,t),Me=$&&oD(H,t),ie=function(){if(W.getFullYear()<0)return!0;var Ae=aD(H,t);return u&&u>=Ae}(),je=$&&function(){if(ee.getFullYear()<0)return!0;var Ae=sD(H,t);return u&&u>=Ae}(),_e=l&&l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Lg(e){return"".concat(e,"%")}function ou(e){var t=e.children,n=e.className,r=e.direction,i=e.count,o=e.offset,a=e.style,s=e.wrap,l=mD(e,pD);return B.createElement("div",fd({className:n,style:Cc({display:"flex",flexDirection:r,flexWrap:s?"wrap":"no-wrap"},a)},l),B.Children.map(t,function(u,c){return B.cloneElement(u,Cc(Cc({},u.props),{},{style:{flexBasis:Lg(100/i),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:o&&c===0?Lg(100*o/i):null}}))}))}ou.propTypes={children:T.node,className:T.string,count:T.number.isRequired,direction:T.string,offset:T.number,style:T.objectOf(T.oneOfType([T.string,T.number])),wrap:T.bool};function Ag(e){return SD(e)||wD(e)||yD(e)||gD()}function gD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yD(e,t){if(e){if(typeof e=="string")return dd(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 dd(e,t)}}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SD(e){if(Array.isArray(e))return dd(e)}function dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?t:n&&n=e}function xD(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function nb(e,t){return aa(e[0],t)||aa(e[1],t)}function Ng(e,t,n){var r=nb(t,e),i=[];if(r){i.push(n);var o=aa(e[0],t),a=aa(e[1],t);o&&i.push("".concat(n,"Start")),a&&i.push("".concat(n,"End")),o&&a&&i.push("".concat(n,"BothEnds"))}return i}function OD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.value,n=e.valueType,r=e.date,i=e.dateType,o=e.hover,a="react-calendar__tile",s=[a];if(!r)return s;if(!Array.isArray(r)&&!i)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var l=new Date,u=Array.isArray(r)?r:kg(i,r);if(aa(l,u)&&s.push("".concat(a,"--now")),!t)return s;if(!Array.isArray(t)&&!n)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var c=Array.isArray(t)?t:kg(n,t);xD(c,u)?s.push("".concat(a,"--active")):nb(c,u)&&s.push("".concat(a,"--hasActive"));var f=Ng(c,u,"".concat(a,"--range"));s.push.apply(s,Ag(f));var d=[].concat(t);if(o&&d.length===1){var h=o>c[0]?[c[0],o]:[o,c[0]],v=Ng(h,u,"".concat(a,"--hover"));s.push.apply(s,Ag(v))}return s}var CD=["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"];function Rg(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 Mg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function La(e){for(var t=e.className,n=e.count,r=n===void 0?3:n,i=e.dateTransform,o=e.dateType,a=e.end,s=e.hover,l=e.offset,u=e.start,c=e.step,f=c===void 0?1:c,d=e.tile,h=e.value,v=e.valueType,g=PD(e,CD),S=[],p=u;p<=a;p+=f){var m=i(p);S.push(B.createElement(d,pd({key:m.getTime(),classes:OD({value:h,valueType:v,date:m,dateType:o,hover:s}),date:m,point:p},g)))}return B.createElement(ou,{className:t,count:r,offset:l,wrap:!0},S)}La.propTypes=Mg(Mg({},ka),{},{activeStartDate:T.instanceOf(Date),count:T.number,dateTransform:T.func.isRequired,dateType:T.string,offset:T.number,step:T.number,tile:T.func.isRequired});function hd(e){return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(e)}function jg(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 Ig(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hl(e){return hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hl(e)}function ib(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $g(e,t){return e&&!t||!e&&t||e&&t&&e.getTime()!==t.getTime()}function Fg(e,t){var n=e.activeStartDate,r=e.date,i=e.view;return typeof t=="function"?t({activeStartDate:n,date:r,view:i}):t}var Aa=function(e){DD(n,e);var t=LD(n);function n(){var r;_D(this,n);for(var i=arguments.length,o=new Array(i),a=0;al||f&&d(f)=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ID(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var VD="react-calendar__century-view__decades__decade";function ob(e){var t=e.classes,n=e.formatYear,r=n===void 0?iu:n,i=jD(e,RD),o=i.date,a=i.locale;return B.createElement(Aa,vd({},i,{classes:[].concat(t,VD),maxDateTransform:tu,minDateTransform:Wr,view:"century"}),QS(a,r,o))}ob.propTypes=Bg(Bg({},Da),{},{formatYear:T.func});function Ug(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 $D(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var GD="react-calendar__decade-view__years__year";function sb(e){var t=e.classes,n=e.formatYear,r=n===void 0?iu:n,i=WD(e,BD),o=i.date,a=i.locale;return B.createElement(Aa,yd({},i,{classes:[].concat(t,GD),maxDateTransform:nu,minDateTransform:Pa,view:"decade"}),r(a,o))}sb.propTypes=Hg(Hg({},Da),{},{formatYear:T.func});function Gg(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 YD(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var e3="react-calendar__year-view__months__month";function ub(e){var t=e.classes,n=e.formatMonth,r=n===void 0?qk:n,i=e.formatMonthYear,o=i===void 0?YS:i,a=ZD(e,XD),s=a.date,l=a.locale;return B.createElement(Aa,Sd({},a,{classes:[].concat(t,e3),formatAbbr:o,maxDateTransform:Ta,minDateTransform:Hi,view:"year"}),r(l,s))}ub.propTypes=Kg(Kg({},Da),{},{formatMonth:T.func,formatMonthYear:T.func});function qg(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 Xg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function a3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ec="react-calendar__month-view__days__day";function fb(e){var t=e.formatDay,n=t===void 0?Yk:t,r=e.formatLongDate,i=r===void 0?Kk:r,o=e.calendarType,a=e.classes,s=e.currentMonthIndex,l=o3(e,r3),u=l.date,c=l.locale;return B.createElement(Aa,xd({},l,{classes:[].concat(a,Ec,ZS(u,o)?"".concat(Ec,"--weekend"):null,u.getMonth()!==s?"".concat(Ec,"--neighboringMonth"):null),formatAbbr:i,maxDateTransform:Oh,minDateTransform:ru,view:"month"}),n(c,u))}fb.propTypes=Zg(Zg({},Da),{},{currentMonthIndex:T.number.isRequired,formatDay:T.func,formatLongDate:T.func});var s3=["showFixedNumberOfWeeks","showNeighboringMonth"];function Jg(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 l3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function db(e){var t=e.activeStartDate,n=e.calendarType,r=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,o=c3(e,s3),a=we(t),s=sr(t),l=r||i,u=ia(t,n),c=l?0:u,f=(l?-u:0)+1,d=function(){if(r)return f+6*7-1;var h=GS(t);if(i){var v=new Date;v.setFullYear(a,s,h),v.setHours(0,0,0,0);var g=7-ia(v,n)-1;return h+g}return h}();return B.createElement(La,Od({},o,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:s,dateTransform:function(v){var g=new Date;return g.setFullYear(a,s,v),g.setHours(0,0,0,0),g},dateType:"day",end:d,offset:c,start:f,tile:fb}))}db.propTypes=l3({calendarType:_a.isRequired,showFixedNumberOfWeeks:T.bool,showNeighboringMonth:T.bool},ka);var pb="react-calendar__month-view__weekdays",ey="".concat(pb,"__weekday");function hb(e){for(var t=e.calendarType,n=e.formatShortWeekday,r=n===void 0?Xk:n,i=e.formatWeekday,o=i===void 0?Qk:i,a=e.locale,s=e.onMouseLeave,l=new Date,u=Hi(l),c=we(u),f=sr(u),d=[],h=1;h<=7;h+=1){var v=new Date(c,f,h-ia(u,t)),g=o(a,v);d.push(B.createElement("div",{key:h,className:Ql(ey,ZS(v,t)&&"".concat(ey,"--weekend"))},B.createElement("abbr",{"aria-label":g,title:g},r(a,v).replace(".",""))))}return B.createElement(ou,{className:pb,count:7,onFocus:s,onMouseOver:s},d)}hb.propTypes={calendarType:_a.isRequired,formatShortWeekday:T.func,formatWeekday:T.func,locale:T.string,onMouseLeave:T.func};var d3=["date","onClickWeekNumber","weekNumber"];function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var g3="react-calendar__tile";function mb(e){var t=e.date,n=e.onClickWeekNumber,r=e.weekNumber,i=m3(e,d3),o=p3({className:g3},i),a=B.createElement("span",null,r);return n?B.createElement("button",Cd({},o,{onClick:function(l){return n(r,t,l)},type:"button"}),a):B.createElement("div",o,a)}mb.propTypes={date:T.instanceOf(Date).isRequired,onClickWeekNumber:T.func,weekNumber:T.node.isRequired};function vb(e){var t=e.activeStartDate,n=e.calendarType,r=e.onClickWeekNumber,i=e.onMouseLeave,o=e.showFixedNumberOfWeeks,a=function(){if(o)return 6;var u=GS(t),c=ia(t,n),f=u-(7-c);return 1+Math.ceil(f/7)}(),s=function(){for(var u=we(t),c=sr(t),f=eu(t),d=[],h=0;h=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function b3(e){return Object.keys(Tg).find(function(t){return Tg[t].includes(e)})||De.ISO_8601}function gb(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,i=e.showFixedNumberOfWeeks,o=e.calendarType,a=o===void 0?b3(n):o,s=e.formatShortWeekday,l=e.formatWeekday,u=e.onClickWeekNumber,c=e.showWeekNumbers,f=w3(e,y3);function d(){return B.createElement(hb,{calendarType:a,formatShortWeekday:s,formatWeekday:l,locale:n,onMouseLeave:r})}function h(){return c?B.createElement(vb,{activeStartDate:t,calendarType:a,onClickWeekNumber:u,onMouseLeave:r,showFixedNumberOfWeeks:i}):null}function v(){return B.createElement(db,Ed({calendarType:a},f))}var g="react-calendar__month-view";return B.createElement("div",{className:Ql(g,c?"".concat(g,"--weekNumbers"):"")},B.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},h(),B.createElement("div",{style:{flexGrow:1,width:"100%"}},d(),v())))}gb.propTypes={activeStartDate:T.instanceOf(Date).isRequired,calendarType:_a,formatShortWeekday:T.func,formatWeekday:T.func,locale:T.string,onClickWeekNumber:T.func,onMouseLeave:T.func,showFixedNumberOfWeeks:T.bool,showWeekNumbers:T.bool};var x3=["activeStartDate","defaultActiveStartDate","defaultValue","defaultView","maxDetail","minDetail","value","view"];function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ml(e){return ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ml(e)}function ry(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 Td(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function D3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function L3(e){return M3(e)||R3(e)||N3(e)||A3()}function A3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N3(e,t){if(e){if(typeof e=="string")return _d(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 _d(e,t)}}function R3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M3(e){if(Array.isArray(e))return _d(e)}function _d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}},{key:"getProcessedValue",value:function(i){var o=this.props,a=o.minDate,s=o.maxDate,l=o.maxDetail,u=o.returnValue,c=function(){switch(u){case"start":return kh;case"end":return bb;case"range":return z3;default:throw new Error("Invalid returnValue.")}}();return c({value:i,minDate:a,maxDate:s,maxDetail:l})}},{key:"renderContent",value:function(i){var o=this.activeStartDate,a=this.onMouseOver,s=this.valueType,l=this.value,u=this.view,c=this.props,f=c.calendarType,d=c.locale,h=c.maxDate,v=c.minDate,g=c.selectRange,S=c.tileClassName,p=c.tileContent,m=c.tileDisabled,y=this.hover,w=i?KS(u,o):Or(u,o),C=this.drillDownAvailable?this.drillDown:this.onChange,O={activeStartDate:w,hover:y,locale:d,maxDate:h,minDate:v,onClick:C,onMouseOver:g?a:null,tileClassName:S,tileContent:p,tileDisabled:m,value:l,valueType:s};switch(u){case"century":{var P=this.props.formatYear;return B.createElement(zD,mi({formatYear:P},O))}case"decade":{var E=this.props.formatYear;return B.createElement(qD,mi({formatYear:E},O))}case"year":{var N=this.props,I=N.formatMonth,k=N.formatMonthYear;return B.createElement(n3,mi({formatMonth:I,formatMonthYear:k},O))}case"month":{var L=this.props,U=L.formatDay,X=L.formatLongDate,Z=L.formatShortWeekday,H=L.formatWeekday,J=L.onClickWeekNumber,R=L.showDoubleView,$=L.showFixedNumberOfWeeks,W=L.showNeighboringMonth,ee=L.showWeekNumbers,te=this.onMouseLeave;return B.createElement(gb,mi({calendarType:f,formatDay:U,formatLongDate:X,formatShortWeekday:Z,formatWeekday:H,onClickWeekNumber:J,onMouseLeave:g?te:null,showFixedNumberOfWeeks:typeof $<"u"?$:R,showNeighboringMonth:W,showWeekNumbers:ee},O))}default:throw new Error("Invalid view: ".concat(u,"."))}}},{key:"renderNavigation",value:function(){var i=this.props.showNavigation;if(!i)return null;var o=this.activeStartDate,a=this.view,s=this.views,l=this.props,u=l.formatMonthYear,c=l.formatYear,f=l.locale,d=l.maxDate,h=l.minDate,v=l.navigationAriaLabel,g=l.navigationAriaLive,S=l.navigationLabel,p=l.next2AriaLabel,m=l.next2Label,y=l.nextAriaLabel,w=l.nextLabel,C=l.prev2AriaLabel,O=l.prev2Label,P=l.prevAriaLabel,E=l.prevLabel,N=l.showDoubleView;return B.createElement(tb,{activeStartDate:o,drillUp:this.drillUp,formatMonthYear:u,formatYear:c,locale:f,maxDate:d,minDate:h,navigationAriaLabel:v,navigationAriaLive:g,navigationLabel:S,next2AriaLabel:p,next2Label:m,nextAriaLabel:y,nextLabel:w,prev2AriaLabel:C,prev2Label:O,prevAriaLabel:P,prevLabel:E,setActiveStartDate:this.setActiveStartDate,showDoubleView:N,view:a,views:s})}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.inputRef,s=i.selectRange,l=i.showDoubleView,u=this.onMouseLeave,c=this.value,f=[].concat(c);return B.createElement("div",{className:Ql(as,s&&f.length===1&&"".concat(as,"--selectRange"),l&&"".concat(as,"--doubleView"),o),ref:a},this.renderNavigation(),B.createElement("div",{className:"".concat(as,"__viewContainer"),onBlur:s?u:null,onMouseLeave:s?u:null},this.renderContent(),l&&this.renderContent(!0)))}}]),n}(b.Component);Dh.defaultProps={goToRangeStartOnSelect:!0,maxDate:j3,maxDetail:"month",minDate:Th,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var iy=T.instanceOf(Date),oy=T.oneOfType([T.string,eb]);Dh.propTypes={activeStartDate:iy,allowPartialRange:T.bool,calendarType:_a,className:pl,defaultActiveStartDate:iy,defaultValue:oy,defaultView:oa,formatDay:T.func,formatLongDate:T.func,formatMonth:T.func,formatMonthYear:T.func,formatShortWeekday:T.func,formatWeekday:T.func,formatYear:T.func,goToRangeStartOnSelect:T.bool,inputRef:fD,locale:T.string,maxDate:Ph,maxDetail:T.oneOf(Cr),minDate:Eh,minDetail:T.oneOf(Cr),navigationAriaLabel:T.string,navigationAriaLive:T.oneOf(["off","polite","assertive"]),navigationLabel:T.func,next2AriaLabel:T.string,next2Label:T.node,nextAriaLabel:T.string,nextLabel:T.node,onActiveStartDateChange:T.func,onChange:T.func,onClickDay:T.func,onClickDecade:T.func,onClickMonth:T.func,onClickWeekNumber:T.func,onClickYear:T.func,onDrillDown:T.func,onDrillUp:T.func,onViewChange:T.func,prev2AriaLabel:T.string,prev2Label:T.node,prevAriaLabel:T.string,prevLabel:T.node,returnValue:T.oneOf(["start","end","range"]),selectRange:T.bool,showDoubleView:T.bool,showFixedNumberOfWeeks:T.bool,showNavigation:T.bool,showNeighboringMonth:T.bool,showWeekNumbers:T.bool,tileClassName:T.oneOfType([T.func,pl]),tileContent:T.oneOfType([T.func,T.node]),tileDisabled:T.func,value:oy,view:oa};const U3=()=>{const[e,t]=b.useState(new Date);return x("div",{className:"calendar",children:x(On.LazyLoadComponent,{useIntersectionObserver:!0,children:x(Dh,{value:e,onChange:t})})})},so="/assets/placeholder2-6f7110c9.png",Lh=()=>q("div",{className:"aside",children:[q("div",{className:"aside-wrapper",children:[x(mh,{title:"Самое читаемое"}),q("div",{className:"aside-inner",children:[x(oo,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:so,link:""}),x(oo,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:so,link:""}),x(oo,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:so,link:""}),x(oo,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:so,link:""}),x(oo,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:so,link:""})]})]}),x("div",{className:"aside-calendar",children:x(U3,{})})]});let ss;const W3=new Uint8Array(16);function H3(){if(!ss&&(ss=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ss))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ss(W3)}const Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).slice(1));function G3(e,t=0){return(Ke[e[t+0]]+Ke[e[t+1]]+Ke[e[t+2]]+Ke[e[t+3]]+"-"+Ke[e[t+4]]+Ke[e[t+5]]+"-"+Ke[e[t+6]]+Ke[e[t+7]]+"-"+Ke[e[t+8]]+Ke[e[t+9]]+"-"+Ke[e[t+10]]+Ke[e[t+11]]+Ke[e[t+12]]+Ke[e[t+13]]+Ke[e[t+14]]+Ke[e[t+15]]).toLowerCase()}const Y3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ay={randomUUID:Y3};function ln(e,t,n){if(ay.randomUUID&&!t&&!e)return ay.randomUUID();e=e||{};const r=e.random||(e.rng||H3)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return G3(r)}var kd={},K3={get exports(){return kd},set exports(e){kd=e}},Ob={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Vi=b;function q3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var X3=typeof Object.is=="function"?Object.is:q3,Q3=Vi.useState,Z3=Vi.useEffect,J3=Vi.useLayoutEffect,e4=Vi.useDebugValue;function t4(e,t){var n=t(),r=Q3({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return J3(function(){i.value=n,i.getSnapshot=t,Tc(i)&&o({inst:i})},[e,n,t]),Z3(function(){return Tc(i)&&o({inst:i}),e(function(){Tc(i)&&o({inst:i})})},[e]),e4(n),n}function Tc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!X3(e,n)}catch{return!0}}function n4(e,t){return t()}var r4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n4:t4;Ob.useSyncExternalStore=Vi.useSyncExternalStore!==void 0?Vi.useSyncExternalStore:r4;(function(e){e.exports=Ob})(K3);var Dd={},i4={get exports(){return Dd},set exports(e){Dd=e}},Cb={};/** - * @license React - * use-sync-external-store-shim/with-selector.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 au=b,o4=kd;function a4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var s4=typeof Object.is=="function"?Object.is:a4,l4=o4.useSyncExternalStore,u4=au.useRef,c4=au.useEffect,f4=au.useMemo,d4=au.useDebugValue;Cb.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=u4(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=f4(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return f=v}return f=h}if(v=f,s4(c,h))return v;var g=r(h);return i!==void 0&&i(v,g)?v:(c=h,f=g)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var s=l4(e,o[0],o[1]);return c4(function(){a.hasValue=!0,a.value=s},[s]),d4(s),s};(function(e){e.exports=Cb})(i4);function p4(e){e()}let Eb=p4;const h4=e=>Eb=e,m4=()=>Eb,nr=b.createContext(null);function Pb(){return b.useContext(nr)}const v4=()=>{throw new Error("uSES not initialized!")};let Tb=v4;const g4=e=>{Tb=e},y4=(e,t)=>e===t;function w4(e=nr){const t=e===nr?Pb:()=>b.useContext(e);return function(r,i=y4){const{store:o,subscription:a,getServerState:s}=t(),l=Tb(a.addNestedSub,o.getState,s||o.getState,r,i);return b.useDebugValue(l),l}}const sn=w4();var Ld={},S4={get exports(){return Ld},set exports(e){Ld=e}},le={};/** @license React v16.13.1 - * react-is.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 Ge=typeof Symbol=="function"&&Symbol.for,Ah=Ge?Symbol.for("react.element"):60103,Nh=Ge?Symbol.for("react.portal"):60106,su=Ge?Symbol.for("react.fragment"):60107,lu=Ge?Symbol.for("react.strict_mode"):60108,uu=Ge?Symbol.for("react.profiler"):60114,cu=Ge?Symbol.for("react.provider"):60109,fu=Ge?Symbol.for("react.context"):60110,Rh=Ge?Symbol.for("react.async_mode"):60111,du=Ge?Symbol.for("react.concurrent_mode"):60111,pu=Ge?Symbol.for("react.forward_ref"):60112,hu=Ge?Symbol.for("react.suspense"):60113,b4=Ge?Symbol.for("react.suspense_list"):60120,mu=Ge?Symbol.for("react.memo"):60115,vu=Ge?Symbol.for("react.lazy"):60116,x4=Ge?Symbol.for("react.block"):60121,O4=Ge?Symbol.for("react.fundamental"):60117,C4=Ge?Symbol.for("react.responder"):60118,E4=Ge?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ah:switch(e=e.type,e){case Rh:case du:case su:case uu:case lu:case hu:return e;default:switch(e=e&&e.$$typeof,e){case fu:case pu:case vu:case mu:case cu:return e;default:return t}}case Nh:return t}}}function _b(e){return kt(e)===du}le.AsyncMode=Rh;le.ConcurrentMode=du;le.ContextConsumer=fu;le.ContextProvider=cu;le.Element=Ah;le.ForwardRef=pu;le.Fragment=su;le.Lazy=vu;le.Memo=mu;le.Portal=Nh;le.Profiler=uu;le.StrictMode=lu;le.Suspense=hu;le.isAsyncMode=function(e){return _b(e)||kt(e)===Rh};le.isConcurrentMode=_b;le.isContextConsumer=function(e){return kt(e)===fu};le.isContextProvider=function(e){return kt(e)===cu};le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ah};le.isForwardRef=function(e){return kt(e)===pu};le.isFragment=function(e){return kt(e)===su};le.isLazy=function(e){return kt(e)===vu};le.isMemo=function(e){return kt(e)===mu};le.isPortal=function(e){return kt(e)===Nh};le.isProfiler=function(e){return kt(e)===uu};le.isStrictMode=function(e){return kt(e)===lu};le.isSuspense=function(e){return kt(e)===hu};le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===du||e===uu||e===lu||e===hu||e===b4||typeof e=="object"&&e!==null&&(e.$$typeof===vu||e.$$typeof===mu||e.$$typeof===cu||e.$$typeof===fu||e.$$typeof===pu||e.$$typeof===O4||e.$$typeof===C4||e.$$typeof===E4||e.$$typeof===x4)};le.typeOf=kt;(function(e){e.exports=le})(S4);var kb=Ld,P4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Db={};Db[kb.ForwardRef]=P4;Db[kb.Memo]=T4;var sy={},_4={get exports(){return sy},set exports(e){sy=e}},ue={};/** - * @license React - * react-is.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 Mh=Symbol.for("react.element"),jh=Symbol.for("react.portal"),gu=Symbol.for("react.fragment"),yu=Symbol.for("react.strict_mode"),wu=Symbol.for("react.profiler"),Su=Symbol.for("react.provider"),bu=Symbol.for("react.context"),k4=Symbol.for("react.server_context"),xu=Symbol.for("react.forward_ref"),Ou=Symbol.for("react.suspense"),Cu=Symbol.for("react.suspense_list"),Eu=Symbol.for("react.memo"),Pu=Symbol.for("react.lazy"),D4=Symbol.for("react.offscreen"),Lb;Lb=Symbol.for("react.module.reference");function It(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mh:switch(e=e.type,e){case gu:case wu:case yu:case Ou:case Cu:return e;default:switch(e=e&&e.$$typeof,e){case k4:case bu:case xu:case Pu:case Eu:case Su:return e;default:return t}}case jh:return t}}}ue.ContextConsumer=bu;ue.ContextProvider=Su;ue.Element=Mh;ue.ForwardRef=xu;ue.Fragment=gu;ue.Lazy=Pu;ue.Memo=Eu;ue.Portal=jh;ue.Profiler=wu;ue.StrictMode=yu;ue.Suspense=Ou;ue.SuspenseList=Cu;ue.isAsyncMode=function(){return!1};ue.isConcurrentMode=function(){return!1};ue.isContextConsumer=function(e){return It(e)===bu};ue.isContextProvider=function(e){return It(e)===Su};ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mh};ue.isForwardRef=function(e){return It(e)===xu};ue.isFragment=function(e){return It(e)===gu};ue.isLazy=function(e){return It(e)===Pu};ue.isMemo=function(e){return It(e)===Eu};ue.isPortal=function(e){return It(e)===jh};ue.isProfiler=function(e){return It(e)===wu};ue.isStrictMode=function(e){return It(e)===yu};ue.isSuspense=function(e){return It(e)===Ou};ue.isSuspenseList=function(e){return It(e)===Cu};ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gu||e===wu||e===yu||e===Ou||e===Cu||e===D4||typeof e=="object"&&e!==null&&(e.$$typeof===Pu||e.$$typeof===Eu||e.$$typeof===Su||e.$$typeof===bu||e.$$typeof===xu||e.$$typeof===Lb||e.getModuleId!==void 0)};ue.typeOf=It;(function(e){e.exports=ue})(_4);function L4(){const e=m4();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const ly={notify(){},get:()=>[]};function A4(e,t){let n,r=ly;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=L4())}function u(){n&&(n(),n=void 0,r.clear(),r=ly)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const N4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R4=N4?b.useLayoutEffect:b.useEffect;function M4({store:e,context:t,children:n,serverState:r}){const i=b.useMemo(()=>{const s=A4(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=b.useMemo(()=>e.getState(),[e]);R4(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||nr;return B.createElement(a.Provider,{value:i},n)}function Ab(e=nr){const t=e===nr?Pb:()=>b.useContext(e);return function(){const{store:r}=t();return r}}const j4=Ab();function I4(e=nr){const t=e===nr?j4:Ab(e);return function(){return t().dispatch}}const Gr=I4();g4(Dd.useSyncExternalStoreWithSelector);h4(Ro.unstable_batchedUpdates);const Nb=({id:e,title:t,text:n,categories:r,date:i,img:o})=>x(xe,{to:`/news/${e}`,children:q("div",{className:"news-wrapper",children:[x("div",{className:"news-image",children:x(On.LazyLoadImage,{src:o,alt:"image",useIntersectionObserver:!0,effect:"blur"})}),x("div",{className:"news-info",children:q("div",{className:"news-info-inner",children:[x("h2",{className:"news-title",children:t}),q("div",{className:"news-status",children:[x("div",{className:"news-status-left",children:r.map(a=>x(OS,{title:a.name},ln()))}),x("div",{className:"news-status-right",children:x(CS,{date:i})})]}),x("div",{className:"news-text",dangerouslySetInnerHTML:{__html:n}})]})})]})});var V4={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function $4(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return V4[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function _c(e){var t=$4(e);return"".concat(t.value).concat(t.unit)}var F4=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a=` - @keyframes `.concat(r,` { - `).concat(t,` - } - `);return o&&o.insertRule(a,0),r},vl=globalThis&&globalThis.__assign||function(){return vl=Object.assign||function(e){for(var t,n=1,r=arguments.length;nx("div",{className:"loader",children:x(U4,{color:"#38a39d",loading:!0,cssOverride:{display:"block",margin:"10 auto",borderColor:"red",height:"100%"},"aria-label":"loader","data-testid":"loader"})}),Gi="https://turkmenistaninfo.gov.tm/app/api/v1";function Rb(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mb}=Object.prototype,{getPrototypeOf:Ih}=Object,Vh=(e=>t=>{const n=Mb.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>Vh(t)===e),Tu=e=>t=>typeof t===e,{isArray:Yi}=Array,la=Tu("undefined");function W4(e){return e!==null&&!la(e)&&e.constructor!==null&&!la(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jb=Pn("ArrayBuffer");function H4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jb(e.buffer),t}const G4=Tu("string"),Ar=Tu("function"),Ib=Tu("number"),$h=e=>e!==null&&typeof e=="object",Y4=e=>e===!0||e===!1,Cs=e=>{if(Vh(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},K4=Pn("Date"),q4=Pn("File"),X4=Pn("Blob"),Q4=Pn("FileList"),Z4=e=>$h(e)&&Ar(e.pipe),J4=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mb.call(e)===t||Ar(e.toString)&&e.toString()===t)},e8=Pn("URLSearchParams"),t8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Na(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Yi(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const $b=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Fb=e=>!la(e)&&e!==$b;function Ad(){const{caseless:e}=Fb(this)&&this||{},t={},n=(r,i)=>{const o=e&&Vb(t,i)||i;Cs(t[o])&&Cs(r)?t[o]=Ad(t[o],r):Cs(r)?t[o]=Ad({},r):Yi(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Na(t,(i,o)=>{n&&Ar(i)?e[o]=Rb(i,n):e[o]=i},{allOwnKeys:r}),e),r8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),i8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},o8=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},a8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},s8=e=>{if(!e)return null;if(Yi(e))return e;let t=e.length;if(!Ib(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},l8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),u8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},c8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},f8=Pn("HTMLFormElement"),d8=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),uy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),p8=Pn("RegExp"),zb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Na(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},h8=e=>{zb(e,(t,n)=>{if(Ar(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ar(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},m8=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Yi(e)?r(e):r(String(e).split(t)),n},v8=()=>{},g8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),y8=e=>{const t=new Array(10),n=(r,i)=>{if($h(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Yi(r)?[]:{};return Na(r,(a,s)=>{const l=n(a,i+1);!la(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},D={isArray:Yi,isArrayBuffer:jb,isBuffer:W4,isFormData:J4,isArrayBufferView:H4,isString:G4,isNumber:Ib,isBoolean:Y4,isObject:$h,isPlainObject:Cs,isUndefined:la,isDate:K4,isFile:q4,isBlob:X4,isRegExp:p8,isFunction:Ar,isStream:Z4,isURLSearchParams:e8,isTypedArray:l8,isFileList:Q4,forEach:Na,merge:Ad,extend:n8,trim:t8,stripBOM:r8,inherits:i8,toFlatObject:o8,kindOf:Vh,kindOfTest:Pn,endsWith:a8,toArray:s8,forEachEntry:u8,matchAll:c8,isHTMLForm:f8,hasOwnProperty:uy,hasOwnProp:uy,reduceDescriptors:zb,freezeMethods:h8,toObjectSet:m8,toCamelCase:d8,noop:v8,toFiniteNumber:g8,findKey:Vb,global:$b,isContextDefined:Fb,toJSONObject:y8};function oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Bb=oe.prototype,Ub={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ub[e]={value:e}});Object.defineProperties(oe,Ub);Object.defineProperty(Bb,"isAxiosError",{value:!0});oe.from=(e,t,n,r,i,o)=>{const a=Object.create(Bb);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),oe.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var w8=typeof self=="object"?self.FormData:window.FormData;const S8=w8;function Nd(e){return D.isPlainObject(e)||D.isArray(e)}function Wb(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function cy(e,t,n){return e?e.concat(t).map(function(i,o){return i=Wb(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function b8(e){return D.isArray(e)&&!e.some(Nd)}const x8=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function O8(e){return e&&D.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function _u(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new(S8||FormData),n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!D.isUndefined(S[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&O8(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(D.isDate(v))return v.toISOString();if(!l&&D.isBlob(v))throw new oe("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(v)||D.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,S){let p=v;if(v&&!S&&typeof v=="object"){if(D.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(D.isArray(v)&&b8(v)||D.isFileList(v)||D.endsWith(g,"[]")&&(p=D.toArray(v)))return g=Wb(g),p.forEach(function(y,w){!(D.isUndefined(y)||y===null)&&t.append(a===!0?cy([g],w,o):a===null?g:g+"[]",u(y))}),!1}return Nd(v)?!0:(t.append(cy(S,g,o),u(v)),!1)}const f=[],d=Object.assign(x8,{defaultVisitor:c,convertValue:u,isVisitable:Nd});function h(v,g){if(!D.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),D.forEach(v,function(p,m){(!(D.isUndefined(p)||p===null)&&i.call(t,p,D.isString(m)?m.trim():m,g,d))===!0&&h(p,g?g.concat(m):[m])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return h(e),t}function fy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fh(e,t){this._pairs=[],e&&_u(e,this,t)}const Hb=Fh.prototype;Hb.append=function(t,n){this._pairs.push([t,n])};Hb.toString=function(t){const n=t?function(r){return t.call(this,r,fy)}:fy;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function C8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gb(e,t,n){if(!t)return e;const r=n&&n.encode||C8,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Fh(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class E8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dy=E8,Yb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P8=typeof URLSearchParams<"u"?URLSearchParams:Fh,T8=FormData,_8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),k8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),en={isBrowser:!0,classes:{URLSearchParams:P8,FormData:T8,Blob},isStandardBrowserEnv:_8,isStandardBrowserWebWorkerEnv:k8,protocols:["http","https","file","blob","url","data"]};function D8(e,t){return _u(e,new en.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return en.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function L8(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function A8(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=A8(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(L8(r),i,n,0)}),n}return null}const N8={"Content-Type":void 0};function R8(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ku={transitional:Yb,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i&&i?JSON.stringify(Kb(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return D8(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _u(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),R8(t)):t}],transformResponse:[function(t){const n=this.transitional||ku.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?oe.from(s,oe.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};D.forEach(["delete","get","head"],function(t){ku.headers[t]={}});D.forEach(["post","put","patch"],function(t){ku.headers[t]=D.merge(N8)});const zh=ku,M8=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),j8=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&M8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},py=Symbol("internals");function lo(e){return e&&String(e).trim().toLowerCase()}function Es(e){return e===!1||e==null?e:D.isArray(e)?e.map(Es):String(e)}function I8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function V8(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function hy(e,t,n,r){if(D.isFunction(r))return r.call(this,t,n);if(D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function $8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function F8(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Du{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=lo(l);if(!c)throw new Error("header name must be a non-empty string");const f=D.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Es(s))}const a=(s,l)=>D.forEach(s,(u,c)=>o(u,c,l));return D.isPlainObject(t)||t instanceof this.constructor?a(t,n):D.isString(t)&&(t=t.trim())&&!V8(t)?a(j8(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=lo(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return I8(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=lo(t),t){const r=D.findKey(this,t);return!!(r&&(!n||hy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=lo(a),a){const s=D.findKey(r,a);s&&(!n||hy(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=Es(i),delete n[o];return}const s=t?$8(o):String(o).trim();s!==o&&delete n[o],n[s]=Es(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[py]=this[py]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=lo(a);r[s]||(F8(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}}Du.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);D.freezeMethods(Du.prototype);D.freezeMethods(Du);const gn=Du;function kc(e,t){const n=this||zh,r=t||n,i=gn.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function qb(e){return!!(e&&e.__CANCEL__)}function Ra(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Ra,oe,{__CANCEL__:!0});const z8=null;function B8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const U8=en.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),D.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),D.isString(o)&&l.push("path="+o),D.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function W8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function H8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xb(e,t){return e&&!W8(t)?H8(e,t):t}const G8=en.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Y8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function K8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const q8=typeof XMLHttpRequest<"u",X8=q8&&function(e){return new Promise(function(n,r){let i=e.data;const o=gn.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}D.isFormData(i)&&(en.isStandardBrowserEnv||en.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+v))}const c=Xb(e.baseURL,e.url);u.open(e.method.toUpperCase(),Gb(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=gn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};B8(function(p){n(p),l()},function(p){r(p),l()},g),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new oe("Request aborted",oe.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new oe("Network Error",oe.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Yb;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new oe(v,g.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,u)),u=null},en.isStandardBrowserEnv){const h=(e.withCredentials||G8(c))&&e.xsrfCookieName&&U8.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&D.forEach(o.toJSON(),function(v,g){u.setRequestHeader(g,v)}),D.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",my(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",my(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{u&&(r(!h||h.type?new Ra(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const d=Y8(c);if(d&&en.protocols.indexOf(d)===-1){r(new oe("Unsupported protocol "+d+":",oe.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Ps={http:z8,xhr:X8};D.forEach(Ps,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Q8={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof gn?e.toJSON():e;function $i(e,t){t=t||{};const n={};function r(u,c,f){return D.isPlainObject(u)&&D.isPlainObject(c)?D.merge.call({caseless:f},u,c):D.isPlainObject(c)?D.merge({},c):D.isArray(c)?c.slice():c}function i(u,c,f){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!D.isUndefined(c))return r(void 0,c)}function a(u,c){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(gy(u),gy(c),!0)};return D.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);D.isUndefined(d)&&f!==s||(n[c]=d)}),n}const Qb="1.2.3",Bh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yy={};Bh.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Qb+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new oe(i(a," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!yy[a]&&(yy[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function Z8(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new oe("option "+o+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+o,oe.ERR_BAD_OPTION)}}const Rd={assertOptions:Z8,validators:Bh},kn=Rd.validators;class gl{constructor(t){this.defaults=t,this.interceptors={request:new dy,response:new dy}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$i(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Rd.assertOptions(r,{silentJSONParsing:kn.transitional(kn.boolean),forcedJSONParsing:kn.transitional(kn.boolean),clarifyTimeoutError:kn.transitional(kn.boolean)},!1),i!==void 0&&Rd.assertOptions(i,{encode:kn.function,serialize:kn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=o&&D.merge(o.common,o[n.method]),a&&D.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=gn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const v=[vy.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Ra(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Uh(function(i){t=i}),cancel:t}}}const J8=Uh;function eL(e){return function(n){return e.apply(null,n)}}function tL(e){return D.isObject(e)&&e.isAxiosError===!0}const Md={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Md).forEach(([e,t])=>{Md[t]=e});const nL=Md;function Zb(e){const t=new Ts(e),n=Rb(Ts.prototype.request,t);return D.extend(n,Ts.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Zb($i(e,i))},n}const ze=Zb(zh);ze.Axios=Ts;ze.CanceledError=Ra;ze.CancelToken=J8;ze.isCancel=qb;ze.VERSION=Qb;ze.toFormData=_u;ze.AxiosError=oe;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=eL;ze.isAxiosError=tL;ze.mergeConfig=$i;ze.AxiosHeaders=gn;ze.formToJSON=e=>Kb(D.isHTMLForm(e)?new FormData(e):e);ze.HttpStatusCode=nL;ze.default=ze;const rL=ze,iL=(e,t,n)=>{if(t=t+`?${e.name}=${e.value.toLowerCase()}`,!n)return t;let r="";return n.forEach(i=>{r=r+`&${i.name}=${i.value}`}),t+r};class lr{constructor(t,n){Ia(this,"url","");Ia(this,"params");Ia(this,"language",sn(t=>t.language.title));this.url=t,this.params=n}get(t,n){const r={name:"locale",value:this.language};rL.get(iL(r,this.url,this.params)).then(i=>{n(i.data)}).catch(i=>{throw new Error(i)})}}const oL=[{name:"count",value:5},{name:"page",value:1}],aL=[{name:"count",value:5},{name:"page",value:1}],sL=[{name:"count",value:5},{name:"page",value:1},{name:"featured",value:"true"}],wy=e=>({type:"SET_NEWS_SCROLL",payload:e}),Sy=e=>({type:"SET_SEARCH_DATA",payload:e}),lL=e=>({type:"SET_POST",payload:e}),uL=e=>({type:"SET_FEATURED",payload:e}),Jb=({title:e,category:t})=>{const n=oL.slice();t&&n.push({name:"category",value:t});const r=new lr(Gi+"/posts",n),i=r.language,[o,a]=b.useState(i),s=sn(f=>f.newsScroll.data),l=Gr();b.useEffect(()=>{r.get(s,f=>l(wy(f))),a(i)},[t]),b.useEffect(()=>{s.length>0&&(s[0].id>-1&&o===i||(r.get(s,f=>l(wy(f))),a(i)))},[i,o]);const[u,c]=b.useState(s);return b.useEffect(()=>{const f=s.filter((d,h)=>{if(h>0)return d});c(f)},[s]),x("div",{className:"news-scroll",children:q("div",{className:"news-scroll-wrapper",children:[e===!0?x(mh,{title:"Лента новостей",linkData:{link:"/all/null",title:"Посмотреть все"}}):null,x("div",{className:"news-scroll-inner",children:u.length>0?u[0].id>-1?u.map((f,d)=>x(Nb,{id:f.id,title:f.title,text:f.excerpt,date:f.published_at,categories:f.categories,img:f.featured_images[0]?f.featured_images[0].path:""},ln())):x(Lr,{}):x("p",{className:"scroll-empty",children:"Нет новостей в этой категории"})})]})})},Zr="/assets/placeholder3-67f7656b.png",Jr=({type:e="small",img:t,title:n,id:r})=>q("div",{className:`main-content-item main-content-item__${e}`,children:[x(On.LazyLoadImage,{src:t,alt:"",effect:"blur",useIntersectionObserver:!0}),x(xe,{to:`/news/${r}`,className:"main-content-item-overlay",children:x("h2",{children:n})})]});function by(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Wh(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:by(t[n])&&by(e[n])&&Object.keys(t[n]).length>0&&Wh(e[n],t[n])})}const ex={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function on(){const e=typeof document<"u"?document:{};return Wh(e,ex),e}const cL={document:ex,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Dt(){const e=typeof window<"u"?window:{};return Wh(e,cL),e}function fL(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function jd(e,t=0){return setTimeout(e,t)}function ua(){return Date.now()}function dL(e){const t=Dt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function pL(e,t="x"){const n=Dt();let r,i,o;const a=dL(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function ls(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function hL(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function bt(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;rn.indexOf(a)<0);for(let a=0,s=o.length;ai?"next":"prev",u=(f,d)=>l==="next"&&f>=d||l==="prev"&&f<=d,c=()=>{a=new Date().getTime(),o===null&&(o=a);const f=Math.max(Math.min((a-o)/s,1),0),d=.5-Math.cos(f*Math.PI)/2;let h=i+d*(t-i);if(u(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),u(h,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function yn(e,t=""){return[...e.children].filter(n=>n.matches(t))}function nx(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function mL(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function vL(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function zn(e,t){return Dt().getComputedStyle(e,null).getPropertyValue(t)}function rr(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function rx(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Id(e,t,n){const r=Dt();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Lc;function gL(){const e=Dt(),t=on();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function ix(){return Lc||(Lc=gL()),Lc}let Ac;function yL({userAgent:e}={}){const t=ix(),n=Dt(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let u=i.match(/(iPad).*OS\s([\d_]+)/);const c=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=r==="Win32";let h=r==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&t.touch&&v.indexOf(`${a}x${s}`)>=0&&(u=i.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),l&&!d&&(o.os="android",o.android=!0),(u||f||c)&&(o.os="ios",o.ios=!0),o}function wL(e={}){return Ac||(Ac=yL(e)),Ac}let Nc;function SL(){const e=Dt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function bL(){return Nc||(Nc=SL()),Nc}function xL({swiper:e,on:t,emit:n}){const r=Dt();let i=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(c=>{o=r.requestAnimationFrame(()=>{const{width:f,height:d}=e;let h=f,v=d;c.forEach(({contentBoxSize:g,contentRect:S,target:p})=>{p&&p!==e.el||(h=S?S.width:(g[0]||g).inlineSize,v=S?S.height:(g[0]||g).blockSize)}),(h!==f||v!==d)&&a()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){s();return}r.addEventListener("resize",a),r.addEventListener("orientationchange",u)}),t("destroy",()=>{l(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",u)})}function OL({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Dt(),a=(u,c={})=>{const f=o.MutationObserver||o.WebkitMutationObserver,d=new f(h=>{if(h.length===1){r("observerUpdate",h[0]);return}const v=function(){r("observerUpdate",h[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});d.observe(u,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),i.push(d)},s=()=>{if(e.params.observer){if(e.params.observeParents){const u=rx(e.el);for(let c=0;c{i.forEach(u=>{u.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",l)}const CL={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(i,[a,...r])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(s=>{s.apply(i,r)})}),t}};function EL(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(zn(r,"padding-left")||0,10)-parseInt(zn(r,"padding-right")||0,10),n=n-parseInt(zn(r,"padding-top")||0,10)-parseInt(zn(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function PL(){const e=this;function t(k){return e.isHorizontal()?k:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[k]}function n(k,L){return parseFloat(k.getPropertyValue(t(L))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:l}=e,u=e.virtual&&r.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,f=yn(o,`.${e.params.slideClass}, swiper-slide`),d=u?e.virtual.slides.length:f.length;let h=[];const v=[],g=[];let S=r.slidesOffsetBefore;typeof S=="function"&&(S=r.slidesOffsetBefore.call(e));let p=r.slidesOffsetAfter;typeof p=="function"&&(p=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,y=e.slidesGrid.length;let w=r.spaceBetween,C=-S,O=0,P=0;if(typeof a>"u")return;typeof w=="string"&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*a),e.virtualSize=-w,f.forEach(k=>{s?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(us(i,"--swiper-centered-offset-before",""),us(i,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(d);let N;const I=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(k=>typeof r.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&h.push(e.virtualSize-a)}if(u&&r.loop){const k=g[0]+w;if(r.slidesPerGroup>1){const L=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=k*r.slidesPerGroup;for(let X=0;X!r.cssMode||r.loop?!0:U!==f.length-1).forEach(L=>{L.style[k]=`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let k=0;g.forEach(U=>{k+=U+(r.spaceBetween?r.spaceBetween:0)}),k-=r.spaceBetween;const L=k-a;h=h.map(U=>U<0?-S:U>L?L+p:U)}if(r.centerInsufficientSlides){let k=0;if(g.forEach(L=>{k+=L+(r.spaceBetween?r.spaceBetween:0)}),k-=r.spaceBetween,k{h[X]=U-L}),v.forEach((U,X)=>{v[X]=U+L})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:v,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){us(i,"--swiper-centered-offset-before",`${-h[0]}px`),us(i,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const k=-e.snapGrid[0],L=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+k),e.slidesGrid=e.slidesGrid.map(U=>U+L)}if(d!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==y&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const k=`${r.containerModifierClass}backface-hidden`,L=e.el.classList.contains(k);d<=r.maxBackfaceHiddenSlides?L||e.el.classList.add(k):L&&e.el.classList.remove(k)}}function TL(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=s=>r?t.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===s)[0]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(o=0;ot.slides.length&&!r)break;n.push(a(s))}else n.push(a(t.activeIndex));for(o=0;oi?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function _L(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.forEach(s=>{s.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s=0&&d1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(s),r[s].classList.add(n.slideVisibleClass)),l.progress=i?-c:c,l.originalProgress=i?-f:f}}function DL(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,u=a;if(r===0)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;o=c||i<=0,a=f||i>=1,c&&(i=0),f&&(i=1)}if(n.loop){const c=rr(t.slides.filter(S=>S.getAttribute("data-swiper-slide-index")==="0")[0]),f=rr(t.slides.filter(S=>S.getAttribute("data-swiper-slide-index")*1===t.slides.length-1)[0]),d=t.slidesGrid[c],h=t.slidesGrid[f],v=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=d?s=(g-d)/v:s=(g+v-h)/v,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}function LL(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=l=>yn(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${l}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(n.slideActiveClass);let l=vL(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let u=mL(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}function AL(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o=t[o]&&r=t[o]&&r=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function NL(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l=e,u;const c=d=>{let h=d-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=AL(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const d=Math.min(i.slidesPerGroupSkip,l);u=d+Math.floor((l-d)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===o){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(l));return}let f;t.virtual&&i.virtual.enabled&&i.loop?f=c(l):t.slides[l]?f=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(t,{snapIndex:u,realIndex:f,previousIndex:o,activeIndex:l}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function RL(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let a=0;al?c=l:r&&eo?a="next":i=l.length&&(S=l.length-1);const p=-l[S];if(s.normalizeSlideIndex)for(let y=0;y=C&&w=C&&w=C&&(a=y)}if(o.initialized&&a!==f&&(!o.allowSlideNext&&po.translate&&p>o.maxTranslate()&&(f||0)!==a))return!1;a!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let m;if(a>f?m="next":a0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[y?"scrollLeft":"scrollTop"]=w})):h[y?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return tx({swiper:o,targetPosition:w,side:y?"left":"top"}),!0;h.scrollTo({[y?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(p),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,m),t===0?o.transitionEnd(n,m):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,m))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function YL(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=rr(i.slides.filter(a=>a.getAttribute("data-swiper-slide-index")*1===o)[0])),i.slideTo(o,t,n,r)}function KL(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndexd(p));let g=o[v.indexOf(h)-1];if(typeof g>"u"&&i.cssMode){let p;o.forEach((m,y)=>{h>=m&&(p=y)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let S=0;if(typeof g<"u"&&(S=a.indexOf(g),S<0&&(S=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),i.rewind&&r.isBeginning){const p=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(p,e,t,n)}return r.slideTo(S,e,t,n)}function XL(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function QL(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const u=i.snapGrid[s],c=i.snapGrid[s+1];l-u>(c-u)*r&&(o+=i.params.slidesPerGroup)}else{const u=i.snapGrid[s-1],c=i.snapGrid[s];l-u<=(c-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function ZL(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=rr(yn(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),jd(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=rr(yn(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),jd(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const JL={slideTo:GL,slideToLoop:YL,slideNext:KL,slidePrev:qL,slideReset:XL,slideToClosest:QL,slideToClickedSlide:ZL};function e5(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;yn(r,`.${n.slideClass}, swiper-slide`).forEach((o,a)=>{o.setAttribute("data-swiper-slide-index",a)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function t5({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:a}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:l,allowSlidePrev:u,allowSlideNext:c,slidesEl:f,params:d}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&d.virtual.enabled){t&&(!d.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):d.centeredSlides&&s.snapIndex"u"?i=rr(s.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]):p=i;const m=n==="next"||!n,y=n==="prev"||!n;let w=0,C=0;if(is.slides.length-v*2){C=i-(s.slides.length-v*2);for(let O=0;O{f.prepend(s.slides[O])}),m&&S.forEach(O=>{f.append(s.slides[O])}),s.recalcSlides(),d.watchSlidesProgress&&s.updateSlidesOffset(),t){if(g.length>0&&y)if(typeof e>"u"){const O=s.slidesGrid[p],E=s.slidesGrid[p+w]-O;a?s.setTranslate(s.translate-E):(s.slideTo(p+w,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=E))}else r&&s.slideToLoop(e,0,!1,!0);else if(S.length>0&&m)if(typeof e>"u"){const O=s.slidesGrid[p],E=s.slidesGrid[p-C]-O;a?s.setTranslate(s.translate-E):(s.slideTo(p-C,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=E))}else s.slideToLoop(e,0,!1,!0)}if(s.allowSlidePrev=u,s.allowSlideNext=c,s.controller&&s.controller.control&&!o){const O={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(P=>{P.params.loop&&P.loopFix(O)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(O)}s.emit("loopFix")}function n5(){const e=this,{slides:t,params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];t.forEach(o=>{const a=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;i[a]=o}),t.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),i.forEach(o=>{r.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const r5={loopCreate:e5,loopFix:t5,loopDestroy:n5};function i5(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"}function o5(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const a5={setGrabCursor:i5,unsetGrabCursor:o5};function s5(e,t=this){function n(r){if(!r||r===on()||r===Dt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function l5(e){const t=this,n=on(),r=Dt(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:a,enabled:s}=t;if(!s||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;c&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(h?s5(d,u):u.closest(d))){t.allowClick=!0;return}if(o.swipeHandler&&!u.closest(o.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const v=a.currentX,g=a.currentY,S=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(S&&(v<=p||v>=r.innerWidth-p))if(S==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=v,a.startY=g,i.touchStartTime=ua(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;u.matches(i.focusableElements)&&(m=!1,u.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const y=m&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!u.isContentEditable&&l.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function u5(e){const t=on(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=r.evCache.findIndex(O=>O.pointerId===l.pointerId);u>=0&&(r.evCache[u]=l);const c=r.evCache.length>1?r.evCache[0]:l,f=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){o.startX=f,o.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:f,startY:d,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:d}),r.touchStartTime=ua());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(do.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(fo.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=f,o.currentY=d;const h=o.currentX-o.startX,v=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(h**2+v**2)"u"){let O;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:h*h+v*v>=25&&(O=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?O>i.touchAngle:90-O>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let g=n.isHorizontal()?h:v,S=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(g=Math.abs(g)*(a?1:-1),S=Math.abs(S)*(a?1:-1)),o.diff=g,g*=i.touchRatio,a&&(g=-g,S=-S);const p=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=S>0?"prev":"next";const m=n.params.loop&&!i.cssMode;if(!r.isMoved){if(m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const O=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(O)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let y;r.isMoved&&p!==n.touchesDirection&&m&&Math.abs(g)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let w=!0,C=i.resistanceRatio;if(i.touchReleaseOnEdges&&(C=0),g>0?(m&&!y&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**C))):g<0&&(m&&!y&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(g)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function c5(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(y=>y.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type))return;const{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=ua(),f=c-n.touchStartTime;if(t.allowClick){const y=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(y&&y[0]||u.target),t.emit("tap click",u),f<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=ua(),jd(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let d;if(i.followFinger?d=a?t.translate:-t.translate:d=-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}let h=0,v=t.slidesSizesGrid[0];for(let y=0;y=s[y]&&d=s[y]&&(h=y,v=s[s.length-1]-s[s.length-2])}let g=null,S=null;i.rewind&&(t.isBeginning?S=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const p=(d-s[h])/v,m=hi.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(p>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?g:h+m):t.slideTo(h)),t.swipeDirection==="prev"&&(p>1-i.longSwipesRatio?t.slideTo(h+m):S!==null&&p<0&&Math.abs(p)>i.longSwipesRatio?t.slideTo(S):t.slideTo(h))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+m):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:h+m),t.swipeDirection==="prev"&&t.slideTo(S!==null?S:h))}}let xy;function Oy(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(xy),xy=setTimeout(()=>{e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function f5(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function d5(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}const _s=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}};function p5(e){const t=this;_s(t,e.target),t.update()}let Cy=!1;function h5(){}const ax=(e,t)=>{const n=on(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Oy,!0):e[u]("observerUpdate",Oy,!0),i[l]("load",e.onLoad,{capture:!0})};function m5(){const e=this,t=on(),{params:n}=e;e.onTouchStart=l5.bind(e),e.onTouchMove=u5.bind(e),e.onTouchEnd=c5.bind(e),n.cssMode&&(e.onScroll=d5.bind(e)),e.onClick=f5.bind(e),e.onLoad=p5.bind(e),Cy||(t.addEventListener("touchstart",h5),Cy=!0),ax(e,"on")}function v5(){ax(this,"off")}const g5={attachEvents:m5,detachEvents:v5},Ey=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function y5(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||e.originalParams,u=Ey(e,r),c=Ey(e,l),f=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const S=r[g]&&r[g].enabled,p=l[g]&&l[g].enabled;S&&!p&&e[g].disable(),!S&&p&&e[g].enable()});const d=l.direction&&l.direction!==r.direction,h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);d&&n&&e.changeDirection(),bt(e.params,l);const v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function w5(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Dt(),o=t==="window"?i.innerHeight:n.clientHeight,a=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:o*l,point:s}}return{value:s,point:s}});a.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function x5(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=b5(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()}function O5(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const C5={addClasses:x5,removeClasses:O5};function E5(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const P5={checkOverflow:E5},Py={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",runCallbacksOnInit:!0,_emitClasses:!1};function T5(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){bt(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){bt(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),bt(t,r)}}const Rc={eventsEmitter:CL,update:ML,translate:zL,transition:HL,slide:JL,loop:r5,grabCursor:a5,events:g5,breakpoints:S5,checkOverflow:P5,classes:C5},Mc={};let St=class{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=bt({},r),n&&!r.el&&(r.el=n);const i=on();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(u=>{const c=bt({},r,{el:u});l.push(new St(c))}),l}const o=this;o.__swiper__=!0,o.support=ix(),o.device=wL({userAgent:r.userAgent}),o.browser=bL(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const a={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:T5(r,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const s=bt({},Py,a);return o.params=bt({},s,Mc,r),o.originalParams=bt({},o.params),o.passedParams=bt({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:ua(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=yn(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*t+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:a,slidesSizesGrid:s,size:l,activeIndex:u}=r;let c=1;if(i.centeredSlides){let f=o[u].swiperSlideSize,d;for(let h=u+1;hl&&(d=!0));for(let h=u-1;h>=0;h-=1)o[h]&&!d&&(f+=o[h].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(t==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&_s(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const a=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let o;t.params.freeMode&&t.params.freeMode.enabled?(i(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?o=t.slideTo(t.slides.length-1,0,!1,!0):o=t.slideTo(t.activeIndex,0,!1,!0),o||i()),r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):yn(r,i())[0])();return!a&&n.params.createElements&&(a=nx("div",n.params.wrapperClass),r.append(a),yn(r,`.${n.params.slideClass}`).forEach(s=>{a.append(s)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement?r:a,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||zn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||zn(r,"direction")==="rtl"),wrongRTL:zn(a,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?_s(n,i):i.addEventListener("load",o=>{_s(n,o.target)})}),n.initialized=!0,n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:a,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),a.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,fL(r)),r.destroyed=!0),null}static extendDefaults(t){bt(Mc,t)}static get extendedDefaults(){return Mc}static get defaults(){return Py}static installModule(t){St.prototype.__modules__||(St.prototype.__modules__=[]);const n=St.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>St.installModule(n)),St):(St.installModule(t),St)}};Object.keys(Rc).forEach(e=>{Object.keys(Rc[e]).forEach(t=>{St.prototype[t]=Rc[e][t]})});St.use([xL,OL]);function sx(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=yn(e.el,`.${r[i]}`)[0];o||(o=nx("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function lx({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=v=>(Array.isArray(v)||(v=[v].filter(g=>!!g)),v);function o(v){let g;return v&&typeof v=="string"&&e.isElement&&(g=e.el.shadowRoot.querySelector(v),g)?g:(v&&(typeof v=="string"&&(g=[...document.querySelectorAll(v)]),e.params.uniqueNavElements&&typeof v=="string"&&g.length>1&&e.el.querySelectorAll(v).length===1&&(g=e.el.querySelector(v))),v&&!g?v:g)}function a(v,g){const S=e.params.navigation;v=i(v),v.forEach(p=>{p&&(p.classList[g?"add":"remove"](...S.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](S.lockClass))})}function s(){const{nextEl:v,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(v,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(v,e.isEnd&&!e.params.rewind)}function l(v){v.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(v){v.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const v=e.params.navigation;if(e.params.navigation=sx(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(v.nextEl||v.prevEl))return;let g=o(v.nextEl),S=o(v.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:S}),g=i(g),S=i(S);const p=(m,y)=>{m&&m.addEventListener("click",y==="next"?u:l),!e.enabled&&m&&m.classList.add(...v.lockClass.split(" "))};g.forEach(m=>p(m,"next")),S.forEach(m=>p(m,"prev"))}function f(){let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g);const S=(p,m)=>{p.removeEventListener("click",m==="next"?u:l),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};v.forEach(p=>S(p,"next")),g.forEach(p=>S(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?h():(c(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g),[...v,...g].filter(S=>!!S).forEach(S=>S.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(v,g)=>{let{nextEl:S,prevEl:p}=e.navigation;S=i(S),p=i(p);const m=g.target;if(e.params.navigation.hideOnClick&&!p.includes(m)&&!S.includes(m)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===m||e.pagination.el.contains(m)))return;let y;S.length?y=S[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(y=p[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...S,...p].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),s()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:d,disable:h,update:s,init:c,destroy:f})}function uo(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function ux({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let o,a=0;const s=p=>(Array.isArray(p)||(p=[p].filter(m=>!!m)),p);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,m){const{bulletActiveClass:y}=e.params.pagination;p&&(p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${y}-${m}`),p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${y}-${m}-${m}`)))}function c(p){if(!p.target.matches(uo(e.params.pagination.bulletClass)))return;p.preventDefault();const y=rr(p.target)*e.params.slidesPerGroup;e.params.loop?e.slideToLoop(y):e.slideTo(y)}function f(){const p=e.rtl,m=e.params.pagination;if(l())return;let y=e.pagination.el;y=s(y);let w;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex:typeof e.snapIndex<"u"?w=e.snapIndex:w=e.activeIndex||0,m.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let E,N,I;if(m.dynamicBullets&&(o=Id(P[0],e.isHorizontal()?"width":"height",!0),y.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${o*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&e.previousIndex!==void 0&&(a+=w-(e.previousIndex||0),a>m.dynamicMainBullets-1?a=m.dynamicMainBullets-1:a<0&&(a=0)),E=Math.max(w-a,0),N=E+(Math.min(P.length,m.dynamicMainBullets)-1),I=(N+E)/2),P.forEach(k=>{k.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${m.bulletActiveClass}${L}`))}),y.length>1)P.forEach(k=>{const L=rr(k);L===w&&k.classList.add(m.bulletActiveClass),m.dynamicBullets&&(L>=E&&L<=N&&k.classList.add(`${m.bulletActiveClass}-main`),L===E&&u(k,"prev"),L===N&&u(k,"next"))});else{const k=P[w];if(k&&k.classList.add(m.bulletActiveClass),m.dynamicBullets){const L=P[E],U=P[N];for(let X=E;X<=N;X+=1)P[X].classList.add(`${m.bulletActiveClass}-main`);u(L,"prev"),u(U,"next")}}if(m.dynamicBullets){const k=Math.min(P.length,m.dynamicMainBullets+4),L=(o*k-o)/2-I*o,U=p?"right":"left";P.forEach(X=>{X.style[e.isHorizontal()?U:"top"]=`${L}px`})}}y.forEach((P,E)=>{if(m.type==="fraction"&&(P.querySelectorAll(uo(m.currentClass)).forEach(N=>{N.textContent=m.formatFractionCurrent(w+1)}),P.querySelectorAll(uo(m.totalClass)).forEach(N=>{N.textContent=m.formatFractionTotal(O)})),m.type==="progressbar"){let N;m.progressbarOpposite?N=e.isHorizontal()?"vertical":"horizontal":N=e.isHorizontal()?"horizontal":"vertical";const I=(w+1)/O;let k=1,L=1;N==="horizontal"?k=I:L=I,P.querySelectorAll(uo(m.progressbarFillClass)).forEach(U=>{U.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${L})`,U.style.transitionDuration=`${e.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(P.innerHTML=m.renderCustom(e,w+1,O),E===0&&r("paginationRender",P)):(E===0&&r("paginationRender",P),r("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](m.lockClass)})}function d(){const p=e.params.pagination;if(l())return;const m=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let y=e.pagination.el;y=s(y);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>m&&(C=m);for(let O=0;O`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=` / `),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=``),y.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&(e.pagination.bullets=[...C.querySelectorAll(uo(p.bulletClass))])}),p.type!=="custom"&&r("paginationRender",y[0])}function h(){e.params.pagination=sx(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let m;typeof p.el=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(p.el)),!m&&typeof p.el=="string"&&(m=[...document.querySelectorAll(p.el)]),m||(m=p.el),!(!m||m.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(m)&&m.length>1&&(m=[...e.el.querySelectorAll(p.el)],m.length>1&&(m=m.filter(y=>rx(y,".swiper")[0]===e.el)[0])),Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(e.pagination,{el:m}),m=s(m),m.forEach(y=>{p.type==="bullets"&&p.clickable&&y.classList.add(p.clickableClass),y.classList.add(p.modifierClass+p.type),y.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(y.classList.add(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&y.classList.add(p.progressbarOppositeClass),p.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(p.lockClass)}))}function v(){const p=e.params.pagination;if(l())return;let m=e.pagination.el;m&&(m=s(m),m.forEach(y=>{y.classList.remove(p.hiddenClass),y.classList.remove(p.modifierClass+p.type),y.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&y.removeEventListener("click",c)})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(p.bulletActiveClass))}n("init",()=>{e.params.pagination.enabled===!1?S():(h(),d(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{d(),f()}),n("destroy",()=>{v()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(p,m)=>{const y=m.target;let{el:w}=e.pagination;if(Array.isArray(w)||(w=[w].filter(C=>!!C)),e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);r(C===!0?"paginationShow":"paginationHide"),w.forEach(O=>O.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList.remove(e.params.pagination.paginationDisabledClass))),h(),d(),f()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:g,disable:S,render:d,update:f,init:h,destroy:v})}function cx({swiper:e,extendParams:t,on:n,emit:r,params:i}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,s=i&&i.autoplay?i.autoplay.delay:3e3,l=i&&i.autoplay?i.autoplay.delay:3e3,u,c=new Date().getTime,f,d,h,v,g,S;function p(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",p),E())}const m=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(l=u,f=!1);const H=e.autoplay.paused?u:c+l-new Date().getTime();e.autoplay.timeLeft=H,r("autoplayTimeLeft",H,H/s),a=requestAnimationFrame(()=>{m()})},y=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(R=>R.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},w=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),m();let J=typeof H>"u"?e.params.autoplay.delay:H;s=e.params.autoplay.delay,l=e.params.autoplay.delay;const R=y();!Number.isNaN(R)&&R>0&&typeof H>"u"&&(J=R,s=R,l=R),u=J;const $=e.params.speed,W=()=>{e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev($,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,$,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext($,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,$,!0,!0),r("autoplay")),e.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{w()}))};return J>0?(clearTimeout(o),o=setTimeout(()=>{W()},J)):requestAnimationFrame(()=>{W()}),J},C=()=>{e.autoplay.running=!0,w(),r("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),r("autoplayStop")},P=(H,J)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),H||(S=!0);const R=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",p):E()};if(e.autoplay.paused=!0,J){g&&(u=e.params.autoplay.delay),g=!1,R();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-c),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),R())},E=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(c=new Date().getTime(),S?(S=!1,w(u)):w(),e.autoplay.paused=!1,r("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const H=on();H.visibilityState==="hidden"&&(S=!0,P(!0)),H.visibilityState==="visible"&&E()},I=H=>{H.pointerType==="mouse"&&(S=!0,P(!0))},k=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&E()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",k))},U=()=>{e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",k)},X=()=>{on().addEventListener("visibilitychange",N)},Z=()=>{on().removeEventListener("visibilitychange",N)};n("init",()=>{e.params.autoplay.enabled&&(L(),X(),c=new Date().getTime(),C())}),n("destroy",()=>{U(),Z(),e.autoplay.running&&O()}),n("beforeTransitionStart",(H,J,R)=>{e.destroyed||!e.autoplay.running||(R||!e.params.autoplay.disableOnInteraction?P(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}d=!0,h=!1,S=!1,v=setTimeout(()=>{S=!0,h=!0,P(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!d)){if(clearTimeout(v),clearTimeout(o),e.params.autoplay.disableOnInteraction){h=!1,d=!1;return}h&&e.params.cssMode&&E(),h=!1,d=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(g=!0)}),Object.assign(e.autoplay,{start:C,stop:O,pause:P,resume:E})}function Nr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Bn(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Nr(t[r])&&Nr(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Bn(e[r],t[r]):e[r]=t[r]})}function fx(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function dx(e={}){return e.pagination&&typeof e.pagination.el>"u"}function px(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function hx(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function _5(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const mx=["modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control","injectStyles","injectStylesUrls"];function k5(e={},t=!0){const n={on:{}},r={},i={};Bn(n,St.defaults),Bn(n,St.extendedDefaults),n._emitClasses=!0,n.init=!1;const o={},a=mx.map(l=>l.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?Nr(e[l])?(n[l]={},i[l]={},Bn(n[l],e[l]),Bn(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function D5({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){fx(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),dx(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),px(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}function L5(e,t,n,r,i){const o=[];if(!t)return o;const a=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&a("children"),r.length!==n.length&&a("children")}return mx.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Nr(e[l])&&Nr(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?a(l):(u.forEach(f=>{e[l][f]!==t[l][f]&&a(l)}),c.forEach(f=>{e[l][f]!==t[l][f]&&a(l)}))}else e[l]!==t[l]&&a(l)}),o}function vx(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function gx(e){const t=[];return B.Children.toArray(e).forEach(n=>{vx(n)?t.push(n):n.props&&n.props.children&&gx(n.props.children).forEach(r=>t.push(r))}),t}function A5(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return B.Children.toArray(e).forEach(r=>{if(vx(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=gx(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function N5({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:u,pagination:c,navigation:f,scrollbar:d,virtual:h,thumbs:v}=e;let g,S,p,m,y,w,C,O;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(g=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(S=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(u.pagination||u.pagination===!1)&&c&&!c.el&&(p=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(u.scrollbar||u.scrollbar===!1)&&d&&!d.el&&(m=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const P=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),u[E].prevEl=void 0,u[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),u[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!n.loop?w=!0:!u.loop&&n.loop?C=!0:O=!0),l.forEach(E=>{if(Nr(u[E])&&Nr(n[E]))Bn(u[E],n[E]);else{const N=n[E];(N===!0||N===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?N===!1&&P(E):u[E]=n[E]}}),l.includes("controller")&&!S&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&h&&u.virtual.enabled&&(h.slides=t,h.update(!0)),r.includes("children")&&t&&u.loop&&(O=!0),g&&v.init()&&v.update(!0),S&&(e.controller.control=u.controller.control),p&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(s)),s&&(u.pagination.el=s),c.init(),c.render(),c.update()),m&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(a)),a&&(u.scrollbar.el=a),d.init(),d.updateSize(),d.setTranslate()),y&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),i&&(u.navigation.nextEl=i),o&&(u.navigation.prevEl=o),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||O)&&e.loopDestroy(),(C||O)&&e.loopCreate(),e.update()}function R5(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,s=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=s;c=o&&c<=a&&u.push(t[r(c)]);return u.map(c=>B.cloneElement(c,{swiper:e,style:i}))}const M5=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Ao(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const Ty=b.createContext(null),j5=b.createContext(null);function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{v(!h)};Object.assign(E.on,{_containerClasses($,W){c(W)}});const Z=()=>{Object.assign(E.on,k),l=!0;const $={...E};if(delete $.wrapperClass,p.current=new St($),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=L;const W={cache:!1,slides:L,renderExternal:d,renderExternalUpdate:!1};Bn(p.current.params.virtual,W),Bn(p.current.originalParams.virtual,W)}};S.current||Z(),p.current&&p.current.on("_beforeBreakpoint",X);const H=()=>{l||!k||!p.current||Object.keys(k).forEach($=>{p.current.on($,k[$])})},J=()=>{!k||!p.current||Object.keys(k).forEach($=>{p.current.off($,k[$])})};b.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",X)}),b.useEffect(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),Ao(()=>{if(t&&(t.current=S.current),!!S.current)return p.current.destroyed&&Z(),D5({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:O.current,scrollbarEl:P.current,swiper:p.current},E),a&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Ao(()=>{H();const $=L5(N,m.current,L,y.current,W=>W.key);return m.current=N,y.current=L,$.length&&p.current&&!p.current.destroyed&&N5({swiper:p.current,slides:L,passedParams:N,changedParams:$,nextEl:w.current,prevEl:C.current,scrollbarEl:P.current,paginationEl:O.current}),()=>{J()}}),Ao(()=>{M5(p.current)},[f]);function R(){return E.virtual?R5(p.current,L,f):L.map(($,W)=>B.cloneElement($,{swiper:p.current,swiperSlideIndex:W}))}return B.createElement(r,Vd({ref:S,className:hx(`${u}${n?` ${n}`:""}`)},I),B.createElement(j5.Provider,{value:p.current},U["container-start"],B.createElement(i,{className:_5(E.wrapperClass)},U["wrapper-start"],R(),U["wrapper-end"]),fx(E)&&B.createElement(B.Fragment,null,B.createElement("div",{ref:C,className:"swiper-button-prev"}),B.createElement("div",{ref:w,className:"swiper-button-next"})),px(E)&&B.createElement("div",{ref:P,className:"swiper-scrollbar"}),dx(E)&&B.createElement("div",{ref:O,className:"swiper-pagination"}),U["container-end"]))});Hh.displayName="Swiper";function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!o)){if(o.destroyed){d!=="swiper-slide"&&h("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),Ao(()=>{o&&f.current&&!o.destroyed&&h(o.getSlideClasses(f.current))},[o]);const p={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(p):r,y=()=>{g(!0)};return B.createElement(n,$d({ref:f,className:hx(`${d}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:y},c),a&&B.createElement(Ty.Provider,{value:p},B.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},m(),s&&!v&&B.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&B.createElement(Ty.Provider,{value:p},m(),s&&!v&&B.createElement("div",{className:"swiper-lazy-preloader"})))});Gh.displayName="SwiperSlide";const I5=({data:e})=>x("div",{className:"main-content-slider",children:x(Hh,{spaceBetween:24,slidesPerView:1,loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1},modules:[lx,ux,cx],pagination:{type:"bullets",clickable:!0},children:e.map(t=>x(Gh,{children:x(Jr,{id:t.id,type:"big",img:t.featured_images?t.featured_images[0].path:Zr,title:t.title})},ln()))})}),V5=()=>{const e=Gr(),t=sn(s=>s.featured.data),n=new lr(Gi+"/posts",sL),r=n.language,[i,o]=b.useState(r),a=()=>{n.get(t,s=>e(uL(s)))};return b.useEffect(()=>{t.length>0&&(t[0].id>-1&&r===i||(a(),o(r)))},[r,i]),x(qd,{children:x(On.LazyLoadComponent,{useIntersectionObserver:!0,children:t[0].id>-1?t.length>=5?q("div",{className:"main-content",children:[x(mh,{title:"Главное"}),x(I5,{data:t}),q("div",{className:"main-content-top",children:[x(Jr,{id:t[0].id,type:"big",img:t[0].featured_images?t[0].featured_images[0].path:Zr,title:t[0].title}),x(Jr,{id:t[1].id,img:t[1].featured_images?t[1].featured_images[0].path:Zr,title:t[1].title})]}),q("div",{className:"main-content-bottom",children:[x(Jr,{id:t[2].id,img:t[2].featured_images?t[2].featured_images[0].path:Zr,title:t[2].title}),x(Jr,{id:t[3].id,img:t[3].featured_images?t[3].featured_images[0].path:Zr,title:t[3].title}),x(Jr,{id:t[4].id,img:t[4].featured_images?t[4].featured_images[0].path:Zr,title:t[4].title})]})]}):x(Lr,{}):x(Lr,{})})})},$5=()=>q(We.main,{className:"main",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:[x("h1",{style:{display:"none"},children:"Туркменистан новостной портал"}),x("div",{className:"news-section",children:x("div",{className:"container",children:q("div",{className:"news-inner",children:[x(V5,{}),q("div",{className:"news-outer-wrapper",children:[x(Jb,{title:!0}),x(Lh,{})]})]})})})]}),F5=({img:e})=>x("div",{className:"news-article-image",children:x(On.LazyLoadImage,{src:e,alt:"",effect:"blur",useIntersectionObserver:!0})}),z5=({images:e})=>{let t=e.length>1;return x("div",{className:"news-article-slider",children:x(Hh,{spaceBetween:24,slidesPerView:1,loop:t,autoplay:{delay:3e3,disableOnInteraction:!1},modules:[lx,ux,cx],pagination:{type:"bullets",clickable:!0},children:e.map(n=>x(Gh,{children:x(F5,{img:n.path})},ln()))})})},B5=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_138_728)"},b.createElement("path",{d:"M17.9995 15.0001C17.2139 15.0008 16.4599 15.3095 15.8995 15.8601L7.99955 12.3401V12.0001V11.6701L15.8995 8.14012C16.3944 8.62513 17.0418 8.92392 17.7319 8.98573C18.4221 9.04753 19.1123 8.86855 19.6854 8.47918C20.2585 8.08981 20.6792 7.51406 20.876 6.8497C21.0728 6.18535 21.0336 5.47337 20.7649 4.83467C20.4963 4.19597 20.0149 3.66994 19.4025 3.34593C18.79 3.02191 18.0843 2.91988 17.4051 3.05716C16.726 3.19445 16.1153 3.56259 15.6768 4.09905C15.2383 4.63552 14.999 5.30723 14.9995 6.00011V6.34011L7.09955 9.86011C6.67791 9.44587 6.14329 9.16541 5.56281 9.05394C4.98233 8.94247 4.38186 9.00497 3.83677 9.23358C3.29169 9.46219 2.82628 9.84673 2.49898 10.3389C2.17168 10.8311 1.99707 11.409 1.99707 12.0001C1.99707 12.5912 2.17168 13.1691 2.49898 13.6613C2.82628 14.1535 3.29169 14.538 3.83677 14.7666C4.38186 14.9953 4.98233 15.0578 5.56281 14.9463C6.14329 14.8348 6.67791 14.5544 7.09955 14.1401L14.9995 17.6701V18.0001C14.9995 18.5935 15.1755 19.1735 15.5051 19.6668C15.8348 20.1602 16.3033 20.5447 16.8515 20.7718C17.3997 20.9988 18.0029 21.0582 18.5848 20.9425C19.1668 20.8267 19.7013 20.541 20.1209 20.1214C20.5404 19.7019 20.8261 19.1673 20.9419 18.5854C21.0577 18.0034 20.9982 17.4002 20.7712 16.8521C20.5441 16.3039 20.1596 15.8354 19.6663 15.5057C19.1729 15.1761 18.5929 15.0001 17.9995 15.0001ZM17.9995 5.00011C18.1973 5.00011 18.3907 5.05876 18.5551 5.16865C18.7196 5.27853 18.8477 5.43471 18.9234 5.61743C18.9991 5.80016 19.0189 6.00122 18.9803 6.1952C18.9417 6.38919 18.8465 6.56737 18.7067 6.70722C18.5668 6.84707 18.3886 6.94231 18.1946 6.9809C18.0007 7.01949 17.7996 6.99968 17.6169 6.92399C17.4341 6.84831 17.278 6.72013 17.1681 6.55568C17.0582 6.39124 16.9995 6.1979 16.9995 6.00011C16.9995 5.7349 17.1049 5.48054 17.2924 5.29301C17.48 5.10547 17.7343 5.00011 17.9995 5.00011ZM4.99955 13.0001C4.80176 13.0001 4.60842 12.9415 4.44397 12.8316C4.27953 12.7217 4.15135 12.5655 4.07567 12.3828C3.99998 12.2001 3.98017 11.999 4.01876 11.805C4.05734 11.611 4.15259 11.4329 4.29244 11.293C4.43229 11.1532 4.61047 11.0579 4.80445 11.0193C4.99844 10.9807 5.1995 11.0005 5.38223 11.0762C5.56495 11.1519 5.72113 11.2801 5.83101 11.4445C5.9409 11.609 5.99955 11.8023 5.99955 12.0001C5.99955 12.2653 5.89419 12.5197 5.70665 12.7072C5.51912 12.8948 5.26476 13.0001 4.99955 13.0001ZM17.9995 19.0001C17.8018 19.0001 17.6084 18.9415 17.444 18.8316C17.2795 18.7217 17.1514 18.5655 17.0757 18.3828C17 18.2001 16.9802 17.999 17.0188 17.805C17.0573 17.611 17.1526 17.4329 17.2924 17.293C17.4323 17.1532 17.6105 17.0579 17.8045 17.0193C17.9984 16.9807 18.1995 17.0005 18.3822 17.0762C18.565 17.1519 18.7211 17.2801 18.831 17.4445C18.9409 17.609 18.9995 17.8023 18.9995 18.0001C18.9995 18.2653 18.8942 18.5197 18.7067 18.7072C18.5191 18.8948 18.2648 19.0001 17.9995 19.0001Z",fill:"white"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_138_728"},b.createElement("rect",{width:24,height:24,fill:"white"})))),U5=()=>{const{id:e}=zl(),t=new lr(`${Gi}/posts/${e}`),n=t.language,[r,i]=b.useState(n),o=sn(s=>s.post.data),a=Gr();return b.useEffect(()=>{o.data.id===parseInt(e)&&r===n||(t.get(o,s=>a(lL(s))),i(n))},[n,r]),x(We.div,{className:"news-article",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:x("div",{className:"container",children:q("div",{className:"news-article-inner",children:[o.data.id>-1?q("div",{className:"news-article-content",children:[q("div",{className:"news-article-info",children:[q("div",{className:"news-article-status",children:[x("div",{className:"news-article-left",children:o.data.categories.map(s=>x(xe,{to:`/category/${s.id}`,className:"news-article-category",children:s.name},ln()))}),x("div",{className:"news-article-right",children:x("h3",{className:"news-article-date",children:o.data.published_at})})]}),x("h2",{className:"news-article-title",children:o.data.title})]}),x("div",{className:"news-article-slider-wrapper",children:x(z5,{images:o.data.featured_images})}),x("p",{className:"news-article-text",dangerouslySetInnerHTML:{__html:o.data.content_html}}),q("button",{className:"share-btn",children:[x(B5,{})," ",x("span",{children:"Поделиться"})]})]}):x(Lr,{}),x(Lh,{})]})})})},W5=()=>{const e=sn(t=>t.newsScroll.data);return x(qd,{children:e.length>0&&e[0].id>-1?q(xe,{to:`/news/${e[0].id}`,className:"main-img",children:[x(On.LazyLoadImage,{src:e[0].featured_images.length>0?e[0].featured_images[0].path:"",alt:e[0].featured_images.length>0?e[0].featured_images[0].file_name:"",useIntersectionObserver:!0,effect:"blur"}),q("div",{className:"main-img-overlay",children:[x("h2",{children:e[0].title}),q("div",{className:"main-img-overlay-wrapper",children:[x("p",{className:"cats",children:e[0].categories.map(t=>x("span",{children:t.name},ln()))}),x("span",{className:"date",children:e[0].published_at})]})]})]}):""})},H5=()=>{let{category:e}=zl();return x(We.main,{className:"category",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:x("div",{className:"container",children:q("div",{className:"category-inner",children:[q("div",{className:"category-left",children:[x(W5,{}),x(Jb,{title:!1,category:parseInt(e)})]}),x("div",{className:"category-right",children:x(Lh,{})})]})})})},G5=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M21.999 22L19.999 20M11.499 21C12.7466 21 13.9819 20.7543 15.1345 20.2769C16.2871 19.7994 17.3344 19.0997 18.2165 18.2175C19.0987 17.3354 19.7985 16.2881 20.2759 15.1355C20.7533 13.9829 20.999 12.7476 20.999 11.5C20.999 10.2524 20.7533 9.0171 20.2759 7.86451C19.7985 6.71191 19.0987 5.66464 18.2165 4.78249C17.3344 3.90033 16.2871 3.20056 15.1345 2.72314C13.9819 2.24572 12.7466 2 11.499 2C8.97947 2 6.56311 3.00089 4.78151 4.78249C2.99991 6.56408 1.99902 8.98044 1.99902 11.5C1.99902 14.0196 2.99991 16.4359 4.78151 18.2175C6.56311 19.9991 8.97947 21 11.499 21V21Z",stroke:"#272727",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),_y=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_136_1482)"},b.createElement("rect",{width:24,height:24,transform:"translate(24 24) rotate(-180)",fill:"#38A39D"}),b.createElement("path",{d:"M10.1703 4.99997C10.3197 4.99946 10.4673 5.03243 10.6023 5.09646C10.7373 5.16049 10.8562 5.25395 10.9503 5.36997L15.7803 11.37C15.9274 11.5489 16.0078 11.7733 16.0078 12.005C16.0078 12.2366 15.9274 12.461 15.7803 12.64L10.7803 18.64C10.6106 18.8442 10.3667 18.9726 10.1022 18.997C9.83782 19.0214 9.57454 18.9397 9.37033 18.77C9.16611 18.6002 9.03768 18.3563 9.0133 18.0919C8.98893 17.8275 9.07059 17.5642 9.24033 17.36L13.7103 12L9.39033 6.63997C9.26804 6.49318 9.19037 6.31444 9.16649 6.12489C9.14261 5.93534 9.17352 5.74292 9.25558 5.57039C9.33764 5.39786 9.4674 5.25245 9.62951 5.15136C9.79162 5.05027 9.97929 4.99773 10.1703 4.99997Z",fill:"white"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_136_1482"},b.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(24 24) rotate(-180)"})))),Y5={rest:{border:"rgba(56,163,157, 0) 0.1rem solid",color:"#272727",background:"#fff",type:"spring"},active:{border:"rgba(56,163,157, 1) 0.1rem solid",color:"#ffffff",background:"#38a39d",type:"spring"}},K5=({pages:e,activePage:t,setActivePage:n})=>{const r=i=>{n(i)};return q("div",{className:"pagination-wrapper",children:[x("button",{disabled:t-1<1,onClick:()=>r(t-1),children:x(_y,{className:"pagination-arr pagination-arr-left"})}),x("div",{className:"pagination-nums",children:Array.from(Array(typeof e=="string"?parseInt(e):e).keys()).map(i=>x(We.div,{className:"pagination-nums-item",onClick:()=>r(i+1),variants:Y5,initial:"rest",animate:t===i+1?"active":"rest",children:x("span",{children:i+1})},ln()))}),x("button",{disabled:t+1>e,onClick:()=>r(t+1),children:x(_y,{className:"pagination-arr pagination-arr-right"})})]})},yx=({data:e,word:t,pagination:n=!1})=>{const[r,i]=b.useState(1),o=b.useMemo(()=>({activePage:r,setActivePage:i}),[r,i]);return x("div",{className:"news-scroll",children:q("div",{className:"news-scroll-wrapper",children:[x("div",{className:"news-scroll-inner",children:e.length>0?e[0].id>-1?e.map(a=>x(Nb,{id:a.id,title:a.title,text:a.excerpt,date:a.published_at,categories:a.categories,img:a.featured_images[0]?a.featured_images[0].path:""},ln())):x(Lr,{}):q("p",{className:"scroll-empty",children:['Нет новостей для "',t||"",'" ']})}),n?x(K5,{pages:3,activePage:o.activePage,setActivePage:o.setActivePage}):null]})})},q5=()=>{const{word:e}=zl(),[t,n]=b.useState([{name:"search",value:e||""},{name:"count",value:10},{name:"page",value:1}]),r=new lr(Gi+"/posts",t),i=r.language,[o,a]=b.useState(i),s=sn(u=>u.searchData.data),l=Gr();return b.useEffect(()=>{r.get(s,u=>l(Sy(u)))},[t]),b.useEffect(()=>{i!==o&&r.get(s,u=>l(Sy(u)))},[i,o]),x("main",{className:"sresult",children:x("div",{className:"container",children:q("div",{className:"sresult-inner",children:[q("div",{className:"sresult-title",children:[x(G5,{}),q("h1",{children:['Результаты по поиску "',e,'"']})]}),x("div",{className:"sresult-content",children:x(yx,{pagination:!1,data:s,word:e})})]})})})},X5=()=>{const{category:e}=zl(),t=e!=="null"?e:"",[n,r]=b.useState(e!=="null"?[{name:"count",value:10},{name:"page",value:1},{name:"category",value:t}]:[{name:"count",value:10},{name:"page",value:1}]),i=new lr(Gi+"/posts",n),o=i.language,[a,s]=b.useState(o),[l,u]=b.useState();return b.useEffect(()=>{i.get(l,u)},[n]),b.useEffect(()=>{o!==a&&(i.get(l,u),s(o))},[o,a]),x("main",{className:"all",children:x("div",{className:"container",children:x("div",{className:"all-inner",children:l?x(yx,{data:l,pagination:!1}):x(Lr,{})})})})},Q5="/assets/404-b9c88abe.svg",Z5=()=>x("main",{className:"not-found",children:x("div",{className:"container",children:q("div",{className:"not-found-inner",children:[q("div",{className:"not-found-left",children:[x("h1",{children:"Page not found!"}),x("h3",{children:"Oops! We coudn't find the page you were looking for"}),x("h4",{children:x(xe,{to:"/",children:"Go to home page"})})]}),x("div",{className:"not-found-right",children:x("img",{src:Q5,alt:"404"})})]})})}),wx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M7.68043 1.44C4.24002 1.44 1.44043 4.23959 1.44043 7.68V16.32C1.44043 19.7604 4.24002 22.56 7.68043 22.56H16.3204C19.7608 22.56 22.5604 19.7604 22.5604 16.32V7.68C22.5604 4.23959 19.7608 1.44 16.3204 1.44H7.68043ZM7.68043 2.4H16.3204C19.2419 2.4 21.6004 4.75849 21.6004 7.68V16.32C21.6004 19.2415 19.2419 21.6 16.3204 21.6H7.68043C4.75892 21.6 2.40043 19.2415 2.40043 16.32V7.68C2.40043 4.75849 4.75892 2.4 7.68043 2.4ZM17.7604 5.28C17.5058 5.28 17.2616 5.38115 17.0816 5.56118C16.9016 5.74122 16.8004 5.98539 16.8004 6.24C16.8004 6.49461 16.9016 6.73879 17.0816 6.91883C17.2616 7.09886 17.5058 7.2 17.7604 7.2C18.015 7.2 18.2592 7.09886 18.4393 6.91883C18.6193 6.73879 18.7204 6.49461 18.7204 6.24C18.7204 5.98539 18.6193 5.74122 18.4393 5.56118C18.2592 5.38115 18.015 5.28 17.7604 5.28ZM12.0004 6.72C9.09005 6.72 6.72043 9.08962 6.72043 12C6.72043 14.9104 9.09005 17.28 12.0004 17.28C14.9108 17.28 17.2804 14.9104 17.2804 12C17.2804 9.08962 14.9108 6.72 12.0004 6.72ZM12.0004 7.68C14.392 7.68 16.3204 9.60845 16.3204 12C16.3204 14.3916 14.392 16.32 12.0004 16.32C9.60887 16.32 7.68043 14.3916 7.68043 12C7.68043 9.60845 9.60887 7.68 12.0004 7.68Z"})),Sx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.31992 1.91998C3.00015 1.91998 1.91992 3.00022 1.91992 4.31998V19.68C1.91992 20.9998 3.00015 22.08 4.31992 22.08H12.3993C12.4511 22.0886 12.504 22.0886 12.5559 22.08H15.2793C15.3311 22.0886 15.384 22.0886 15.4359 22.08H19.6799C20.9997 22.08 22.0799 20.9998 22.0799 19.68V4.31998C22.0799 3.00022 20.9997 1.91998 19.6799 1.91998H4.31992ZM4.31992 2.87998H19.6799C20.4808 2.87998 21.1199 3.51911 21.1199 4.31998V19.68C21.1199 20.4809 20.4808 21.12 19.6799 21.12H15.8399V14.4H17.6737L18.3459 11.04H15.8399V10.08C15.8399 9.81239 15.8654 9.79147 15.9552 9.73311C16.0451 9.67475 16.3227 9.59998 16.7999 9.59998H18.2399V6.89717L17.9662 6.76686C17.9662 6.76686 16.8636 6.23998 15.3599 6.23998C14.2799 6.23998 13.3927 6.67028 12.8249 7.37998C12.2572 8.08969 11.9999 9.03998 11.9999 10.08V11.04H10.5599V14.4H11.9999V21.12H4.31992C3.51905 21.12 2.87992 20.4809 2.87992 19.68V4.31998C2.87992 3.51911 3.51905 2.87998 4.31992 2.87998ZM15.3599 7.19998C16.3579 7.19998 16.9859 7.42004 17.2799 7.53655V8.63998H16.7999C16.2475 8.63998 15.8049 8.68568 15.4321 8.9278C15.0594 9.16991 14.8799 9.6295 14.8799 10.08V12H17.174L16.8862 13.44H14.8799V21.12H12.9599V13.44H11.5199V12H12.9599V10.08C12.9599 9.19998 13.1827 8.47028 13.5749 7.97998C13.9672 7.48969 14.5199 7.19998 15.3599 7.19998Z"})),bx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.31992 1.91998C2.99972 1.91998 1.91992 2.99978 1.91992 4.31998V19.68C1.91992 21.0002 2.99972 22.08 4.31992 22.08H19.6799C21.0001 22.08 22.0799 21.0002 22.0799 19.68V4.31998C22.0799 2.99978 21.0001 1.91998 19.6799 1.91998H4.31992ZM4.31992 2.87998H19.6799C20.4823 2.87998 21.1199 3.51763 21.1199 4.31998V19.68C21.1199 20.4823 20.4823 21.12 19.6799 21.12H4.31992C3.51757 21.12 2.87992 20.4823 2.87992 19.68V4.31998C2.87992 3.51763 3.51757 2.87998 4.31992 2.87998ZM12.5005 4.79998C12.3734 4.8 12.2515 4.85044 12.1615 4.94025C12.0715 5.03007 12.0208 5.15191 12.0205 5.27905C12.0205 5.27905 12.0153 7.61915 12.0102 9.96467C12.0077 11.1374 12.0046 12.3114 12.0027 13.1953C12.0008 14.0792 11.9999 14.6385 11.9999 14.685C11.9999 15.5563 11.2086 16.2684 10.3068 16.2684C9.41218 16.2684 8.69805 15.5534 8.69805 14.6587C8.69805 13.7641 9.41218 13.05 10.3068 13.05C10.3371 13.05 10.3982 13.0599 10.5027 13.0725C10.5702 13.0806 10.6385 13.0743 10.7033 13.054C10.7682 13.0337 10.8279 12.9998 10.8787 12.9547C10.9295 12.9096 10.9701 12.8543 10.9979 12.7923C11.0257 12.7304 11.04 12.6632 11.0399 12.5953V10.5787C11.0399 10.4566 10.9934 10.3391 10.9098 10.2501C10.8262 10.1611 10.7118 10.1073 10.5899 10.0997C10.5151 10.095 10.421 10.0856 10.3068 10.0856C7.78702 10.0856 5.73367 12.139 5.73367 14.6587C5.73367 17.1785 7.78702 19.2319 10.3068 19.2319C12.8265 19.2319 14.8799 17.1785 14.8799 14.6587V10.3153C15.5781 10.8737 16.4483 11.2275 17.4093 11.2275C17.5404 11.2275 17.665 11.2197 17.7843 11.2087C17.9035 11.1977 18.0143 11.1426 18.0949 11.0541C18.1756 10.9657 18.2203 10.8503 18.2202 10.7306V8.48905C18.2203 8.36769 18.1744 8.25082 18.0918 8.16194C18.0092 8.07306 17.896 8.01876 17.7749 8.00998C16.2655 7.90169 15.0622 6.72585 14.9052 5.2303C14.8929 5.11228 14.8374 5.00299 14.7493 4.92353C14.6611 4.84406 14.5467 4.80005 14.428 4.79998H12.5005ZM12.9796 5.75998H14.0746C14.4235 7.34336 15.6608 8.5509 17.2602 8.85373V10.229C16.2336 10.1769 15.3318 9.66476 14.8012 8.85748C14.7444 8.77109 14.6613 8.70533 14.5641 8.66997C14.467 8.63462 14.361 8.63157 14.262 8.66128C14.163 8.69098 14.0762 8.75185 14.0146 8.83484C13.953 8.91782 13.9198 9.01849 13.9199 9.12186V14.6587C13.9199 16.6596 12.3077 18.2719 10.3068 18.2719C8.30593 18.2719 6.69367 16.6596 6.69367 14.6587C6.69367 12.7385 8.19164 11.2143 10.0799 11.0915V12.1359C8.7774 12.2571 7.73805 13.3259 7.73805 14.6587C7.73805 16.072 8.89358 17.2284 10.3068 17.2284C11.7128 17.2284 12.9599 16.1215 12.9599 14.685C12.9599 14.7085 12.9608 14.0811 12.9627 13.1972C12.9646 12.3133 12.9677 11.1393 12.9702 9.96655C12.9747 7.86083 12.9787 6.1676 12.9796 5.75998Z"})),J5={rest:{transform:"translateY(0rem)",opacity:1,type:"spring"},active:{transform:"translateX(6rem)",opacity:0,type:"tween"}},Oi={rest:{width:"5rem",right:"8rem",type:"spring",borderColor:"rgba(166, 166, 166, 0)"},active:{width:"100%",right:"0",type:"spring",borderColor:"rgba(166, 166, 166, 1)"},logoRest:{display:"block",opacity:1,transform:"translateX(0%) translateY(-50%)",type:"spring"},logoActive:{opacity:0,transform:"translateX(-150%) translateY(-50%)",type:"spring"},langRest:{opacity:1,transform:"translateX(0%)",type:"spring"},langActive:{opacity:0,transform:"translateX(150%)",type:"spring"},loopRest:{width:"2rem",height:"2rem",type:"spring"},loopActive:{width:"1.3rem",height:"1.4rem",type:"spring"},placeholderRest:{opacity:0},placeholderActive:{opacity:1},borderRest:{borderColor:"rgba(166, 166, 166, 0)"},borderActive:{borderColor:"rgba(166, 166, 166, 1)"}},e6=e=>({type:"SET_SEARCH",payload:e}),ky=({isSmall:e,isInputFocused:t,setIsInputFocused:n})=>{const r=l=>{i(e6(l))},i=Gr(),o=sn(l=>l.search.value),a=lw(),s=b.useRef(null);return q(We.form,{ref:s,className:"search",onSubmit:l=>{l.preventDefault(),a(`/search/${o}`)},variants:Oi,initial:e?"borderRest":{},animate:e?t?"borderActive":"borderRest":{},children:[x("input",{type:"text",value:o,onChange:l=>r(l.target.value),onFocus:()=>{n(!0)},onBlur:()=>{n(!1),r("")}}),q(We.div,{className:"search-content",initial:"rest",animate:o.length>0?"active":"rest",variants:J5,children:[q(We.svg,{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",variants:Oi,initial:e?"loopRest":"loopActive",animate:e?t?"loopActive":"loopRest":"loopActive",children:[x("g",{clipPath:"url(#clip0_138_523)",children:x("path",{d:"M11.9163 12.8394L10.833 11.7561M6.22884 12.2978C6.9046 12.2978 7.57375 12.1647 8.19807 11.9061C8.82239 11.6475 9.38966 11.2684 9.8675 10.7906C10.3453 10.3128 10.7244 9.74548 10.983 9.12116C11.2416 8.49684 11.3747 7.8277 11.3747 7.15194C11.3747 6.47618 11.2416 5.80703 10.983 5.18271C10.7244 4.55839 10.3453 3.99112 9.8675 3.51328C9.38966 3.03545 8.82239 2.65641 8.19807 2.39781C7.57375 2.1392 6.9046 2.0061 6.22884 2.0061C4.86408 2.0061 3.55522 2.54825 2.59019 3.51328C1.62516 4.47831 1.08301 5.78718 1.08301 7.15194C1.08301 8.5167 1.62516 9.82556 2.59019 10.7906C3.55522 11.7556 4.86408 12.2978 6.22884 12.2978V12.2978Z",stroke:"#A6A6A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),x("defs",{children:x("clipPath",{id:"clip0_138_523",children:x("rect",{width:"13",height:"13",fill:"white",transform:"translate(0 0.922791)"})})})]}),x(We.span,{variants:Oi,initial:e?"placeholderRest":{},animate:e?t?"placeholderActive":"placeholderRest":{},children:"Search"})]})]})},t6=e=>b.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_138_516)"},b.createElement("path",{d:"M12.0003 16.4228C11.7666 16.4232 11.5402 16.3418 11.3603 16.1928L5.36028 11.1928C5.15606 11.023 5.02763 10.7791 5.00325 10.5147C4.97888 10.2503 5.06054 9.98698 5.23028 9.78276C5.40001 9.57854 5.64393 9.45012 5.90835 9.42574C6.17278 9.40136 6.43606 9.48302 6.64028 9.65276L12.0003 14.1328L17.3603 9.81276C17.4626 9.7297 17.5803 9.66766 17.7066 9.63023C17.8329 9.5928 17.9654 9.58071 18.0965 9.59465C18.2275 9.60858 18.3545 9.64828 18.4701 9.71146C18.5857 9.77463 18.6878 9.86003 18.7703 9.96276C18.8619 10.0656 18.9312 10.1862 18.974 10.3171C19.0168 10.448 19.0321 10.5863 19.019 10.7233C19.0058 10.8604 18.9645 10.9933 18.8976 11.1136C18.8307 11.234 18.7397 11.3392 18.6303 11.4228L12.6303 16.2528C12.4452 16.3783 12.2234 16.4381 12.0003 16.4228Z",fill:"#272727"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_138_516"},b.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(0 0.422791)"})))),jc={rest:{maxHeight:"0",pointerEvents:"none",overflow:"hidden",opacity:0},active:{maxHeight:"20rem",pointerEvents:"all",overflow:"visible",opacity:1},arrowRest:{transform:"rotateX(0deg)"},arrowActive:{transform:"rotateX(180deg)"},wrapperRest:{background:"rgba(255, 255, 255, 0)"},wrapperActive:{background:"#f1f1f1"}},n6=e=>(localStorage.setItem("savedLanguage",e),e),r6=e=>({type:"SET_LANGUAGE",payload:n6(e)}),i6=[{title:"RU"},{title:"EN"},{title:"TM"}],Dy=({isSmall:e,isInputFocused:t})=>{const[n,r]=b.useState(!1),i=sn(s=>s.language.title),o=Gr(),a=s=>{o(r6(s))};return x(We.div,{initial:e?"langRest":{},animate:e?t?"langActive":"langRest":{},variants:Oi,children:q(We.div,{className:"language",onClick:()=>r(!n),initial:"wrapperRest",animate:n?"wrapperActive":"wrapperRest",variants:jc,children:[x("span",{children:i}),x(We.div,{className:"icon-wrapper",initial:"arrowRest",animate:n?"arrowActive":"arrowRest",variants:jc,children:x(t6,{})}),x(We.ul,{className:"language-dropdown",variants:jc,initial:"rest",animate:n?"active":"rest",children:i6.map(s=>x("li",{children:x(We.button,{type:"button",initial:{background:"#ffffff",type:"tween"},whileHover:{background:"#f1f1f1",type:"spring"},onClick:()=>a(s.title),children:s.title})},ln()))})]})})},o6=e=>{const[t,n]=b.useState(!1);return b.useEffect(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const i=()=>{n(r.matches)};return r.addListener(i),()=>r.removeListener(i)},[t,e]),t},a6=()=>{const e=o6("(max-width: 850px)"),[t,n]=b.useState(!1),r=new lr("").language;return x("nav",{className:"nav",children:x("div",{className:"container",children:e?q(We.div,{className:"nav-inner mobile",children:[x(We.div,{className:"nav-mid",initial:e?"logoRest":{},animate:e?t?"logoActive":"logoRest":{},variants:Oi,children:x(xe,{to:"/",children:x("h1",{children:r==="TM"?"Türkmenistan Habarlar Portaly":r==="RU"?"Туркменистан новостной портал":r==="EN"?"Turkmenistan news portal":""})})}),x(We.div,{className:"search-wrap",initial:e?"rest":{},animate:e?t?"active":"rest":{},variants:Oi,children:x(ky,{isSmall:e,isInputFocused:t,setIsInputFocused:n})}),x("div",{className:"lang-wrap",children:x(Dy,{isSmall:e,isInputFocused:t})})]}):q("div",{className:"nav-inner",children:[q("div",{className:"nav-left",children:[x(ky,{isSmall:e,isInputFocused:t,setIsInputFocused:n}),x(Dy,{isSmall:e,isInputFocused:t})]}),x("div",{className:"nav-mid",children:x(xe,{to:"/",children:x("h1",{children:r==="TM"?"Türkmenistan Habarlar Portaly":r==="RU"?"Туркменистан новостной портал":r==="EN"?"Turkmenistan news portal":""})})}),x("div",{className:"nav-right",children:q("ul",{children:[x("li",{children:x("a",{href:"#",target:"_blank",children:x(wx,{})})}),x("li",{children:x("a",{href:"#",target:"_blank",children:x(Sx,{})})}),x("li",{children:x("a",{href:"#",target:"_blank",children:x(bx,{})})})]})})]})})})},s6=e=>({type:"SET_ACTIVE_LINK",payload:e}),Ic={rest:{fontWeight:"normal",background:"rgba(241,241, 241, 1)",type:"tween"},active:{fontWeight:"bold",background:"rgba(56,163,157, 1)",color:"#ffffff",type:"spring"}},l6=({activeLink:e,dataEl:t,onClickLink:n,isNotCategory:r})=>x(We.li,{initial:Ic.rest,animate:e===t.id?Ic.active:Ic.rest,children:x(We.div,{children:x(xe,{to:r?"/":`/category/${t.id}`,onClick:()=>n(t.id),className:e===t.id?"active":"",children:t.name})})}),u6=()=>{const e=sn(l=>l.activeLink.active),t=sn(l=>l.language.title),n=Gr(),r=l=>{n(s6(l))},[i,o]=b.useState(),a=new lr(Gi+"/categories",aL);b.useEffect(()=>{a.get(i,o)},[t]);const s=Fr();return b.useEffect(()=>{if(!s.pathname.includes("category")){r(0);return}const l=s.pathname[s.pathname.length-1];r(parseInt(l))},[s]),x("nav",{className:"subnav",children:x("div",{className:"container",children:x("ul",{className:"subnav-inner",children:i?x(qd,{children:i.data.map(l=>x(l6,{dataEl:l,activeLink:e,onClickLink:r},ln()))}):x(Lr,{})})})})},c6=()=>q("header",{className:"header",children:[x(a6,{}),x(u6,{})]}),f6="/assets/phone-a547e55c.svg",d6="/assets/mail-df8b0af1.svg",p6="/assets/location-c549270d.svg",h6=()=>x("footer",{className:"footer",children:x("div",{className:"container",children:q("div",{className:"footer-wrapper",children:[x("nav",{className:"footer-nav",children:q("ul",{className:"footer-nav-list",children:[x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"В Туркменистане"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Политика"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Общество"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Статьи"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Культура"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Новости"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Экономика"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Наука и технологии"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Медиа"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"В мире"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Спорт"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Здоровье и медицина"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Погода"})})]})}),q("div",{className:"footer-info",children:[q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:f6,alt:"phone"})}),x("h3",{className:"footer-info-item-title",children:"+(993) 12 68-07-92, 94-08-01 "})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:d6,alt:"mail"})}),x("h3",{className:"footer-info-item-title",children:"turkmen@info.tm"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:p6,alt:"location"})}),x("h3",{className:"footer-info-item-title",children:"115184, Ашхабад, Битарап шаелы, 25 (Центр телерадиовещания Туркменистана)"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(wx,{})}),x("h3",{className:"footer-info-item-title",children:"hhm@inst.com"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(Sx,{})}),x("h3",{className:"footer-info-item-title",children:"hhm@face.com"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(bx,{})}),x("h3",{className:"footer-info-item-title",children:"@hhm"})]}),x("div",{className:"footer-info-item",children:x("h3",{className:"footer-info-item-title",children:"Реклама на ТВ и радио: (993) 12 78-13-99"})}),x("div",{className:"footer-info-item",children:x("h3",{className:"footer-info-item-title",children:"Реклама на сайте: (993) 12 78-13-99"})})]})]})})}),m6=()=>{const e=Fr();return new lr("").language,x(A_,{children:q("div",{className:"App",children:[x(c6,{}),x(L_,{mode:"wait",initial:!1,children:q(lE,{location:e,children:[x(hr,{path:"/",element:x($5,{})}),x(hr,{path:"/category/:category",element:x(H5,{})}),x(hr,{path:"/news/:id",element:x(U5,{})}),x(hr,{path:"/search/:word",element:x(q5,{})}),x(hr,{path:"/all/:category",element:x(X5,{})}),x(hr,{path:"*",element:x(Z5,{})})]},e.pathname)}),x(h6,{})]})})};function Ut(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Yh(e)?2:Kh(e)?3:0}function Ci(e,t){return Ki(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v6(e,t){return Ki(e)===2?e.get(t):e[t]}function xx(e,t,n){var r=Ki(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Ox(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Yh(e){return x6&&e instanceof Map}function Kh(e){return O6&&e instanceof Set}function vr(e){return e.o||e.t}function qh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ex(e);delete t[ge];for(var n=Ei(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=g6),Object.freeze(e),t&&jr(e,function(n,r){return Xh(r,!0)},!0)),e}function g6(){Ut(2)}function Qh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function an(e){var t=Ud[e];return t||Ut(18,e),t}function y6(e,t){Ud[e]||(Ud[e]=t)}function Fd(){return ca}function Vc(e,t){t&&(an("Patches"),e.u=[],e.s=[],e.v=t)}function yl(e){zd(e),e.p.forEach(w6),e.p=null}function zd(e){e===ca&&(ca=e.l)}function Ly(e){return ca={p:[],l:ca,h:e,m:!0,_:0}}function w6(e){var t=e[ge];t.i===0||t.i===1?t.j():t.O=!0}function $c(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||an("ES5").S(t,e,r),r?(n[ge].P&&(yl(t),Ut(4)),Mr(e)&&(e=wl(t,e),t.l||Sl(t,e)),t.u&&an("Patches").M(n[ge].t,e,t.u,t.s)):e=wl(t,n,[]),yl(t),t.u&&t.v(t.u,t.s),e!==Cx?e:void 0}function wl(e,t,n){if(Qh(t))return t;var r=t[ge];if(!r)return jr(t,function(s,l){return Ay(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Sl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=qh(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),jr(o,function(s,l){return Ay(e,r,i,s,l,n,a)}),Sl(e,i,!1),n&&e.u&&an("Patches").N(r,n,e.u,e.s)}return r.o}function Ay(e,t,n,r,i,o,a){if(Rr(i)){var s=wl(e,i,o&&t&&t.i!==3&&!Ci(t.R,r)?o.concat(r):void 0);if(xx(n,r,s),!Rr(s))return;e.m=!1}else a&&n.add(i);if(Mr(i)&&!Qh(i)){if(!e.h.D&&e._<1)return;wl(e,i),t&&t.A.l||Sl(e,i)}}function Sl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Xh(t,n)}function Fc(e,t){var n=e[ge];return(n?vr(n):e)[t]}function Ny(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function jn(e){e.P||(e.P=!0,e.l&&jn(e.l))}function zc(e){e.o||(e.o=qh(e.t))}function Bd(e,t,n){var r=Yh(t)?an("MapSet").F(t,n):Kh(t)?an("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Fd(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=fa;a&&(l=[s],u=vo);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,n):an("ES5").J(t,n);return(n?n.A:Fd()).p.push(r),r}function S6(e){return Rr(e)||Ut(22,e),function t(n){if(!Mr(n))return n;var r,i=n[ge],o=Ki(n);if(i){if(!i.P&&(i.i<4||!an("ES5").K(i)))return i.t;i.I=!0,r=Ry(n,o),i.I=!1}else r=Ry(n,o);return jr(r,function(a,s){i&&v6(i.t,a)===s||xx(r,a,t(s))}),o===3?new Set(r):r}(e)}function Ry(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qh(e)}function b6(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[ge];return fa.get(l,o)},set:function(l){var u=this[ge];fa.set(u,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ge];if(!s.P)switch(s.i){case 5:r(s)&&jn(s);break;case 4:n(s)&&jn(s)}}}function n(o){for(var a=o.t,s=o.k,l=Ei(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==ge){var f=a[c];if(f===void 0&&!Ci(a,c))return!0;var d=s[c],h=d&&d[ge];if(h?h.t!==f:!Ox(d,f))return!0}}var v=!!a[ge];return l.length!==Ei(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?p-1:0),y=1;y1?c-1:0),d=1;d=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=an("Patches").$;return Rr(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Pt=new E6;Pt.produce;Pt.produceWithPatches.bind(Pt);Pt.setAutoFreeze.bind(Pt);Pt.setUseProxies.bind(Pt);Pt.applyPatches.bind(Pt);Pt.createDraft.bind(Pt);Pt.finishDraft.bind(Pt);function da(e){return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function P6(e,t){if(da(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(da(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T6(e){var t=P6(e,"string");return da(t)==="symbol"?t:String(t)}function _6(e,t,n){return t=T6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vy(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 $y(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(nt(1));return n(Px)(e,t)}if(typeof e!="function")throw new Error(nt(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(nt(3));return o}function f(g){if(typeof g!="function")throw new Error(nt(4));if(l)throw new Error(nt(5));var S=!0;return u(),s.push(g),function(){if(S){if(l)throw new Error(nt(6));S=!1,u();var m=s.indexOf(g);s.splice(m,1),a=null}}}function d(g){if(!k6(g))throw new Error(nt(7));if(typeof g.type>"u")throw new Error(nt(8));if(l)throw new Error(nt(9));try{l=!0,o=i(o,g)}finally{l=!1}for(var S=a=s,p=0;p"u")throw new Error(nt(12));if(typeof n(void 0,{type:bl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function Tx(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(nt(14));f[h]=S,c=c||S!==g}return c=c||o.length!==Object.keys(l).length,c?f:l}}function xl(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{switch(t.type){case"SET_ACTIVE_LINK":return{...e,active:t.payload};default:return e}},nA=()=>localStorage.getItem("savedLanguage")||"TM",rA={title:nA()},iA=(e=rA,t)=>{switch(t.type){case"SET_LANGUAGE":return{...e,title:t.payload};default:return e}},Dx={data:[{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}]},oA=(e=Dx,t)=>{switch(t.type){case"SET_NEWS_SCROLL":return{...e,data:t.payload};default:return e}},aA={data:{data:{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}}},sA=(e=aA,t)=>{switch(t.type){case"SET_POST":return{...e,data:t.payload};default:return e}},lA={data:[{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}]},uA=(e=lA,t)=>{switch(t.type){case"SET_FEATURED":return{...e,data:t.payload};default:return e}},cA=(e=Dx,t)=>{switch(t.type){case"SET_SEARCH_DATA":return{data:t.payload};default:return e}},fA={value:""},dA=(e=fA,t)=>{switch(t.type){case"SET_SEARCH":return{value:t.payload};default:return e}},pA=Tx({activeLink:tA,language:iA,newsScroll:oA,post:sA,search:dA,searchData:cA,featured:uA}),hA=Y6({reducer:pA}),mA=Gc.createRoot(document.getElementById("root"));mA.render(x(B.StrictMode,{children:x(pE,{children:x(M4,{store:hA,children:x(m6,{})})})})); diff --git a/dist/assets/index-7301f677.js b/dist/assets/index-7301f677.js new file mode 100644 index 0000000..b654349 --- /dev/null +++ b/dist/assets/index-7301f677.js @@ -0,0 +1,115 @@ +var Rx=Object.defineProperty;var Mx=(e,t,n)=>t in e?Rx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ma=(e,t,n)=>(Mx(e,typeof t!="symbol"?t+"":t,n),n);function jx(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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)}})();var ja=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lo={},Vx={get exports(){return Lo},set exports(e){Lo=e}},bl={},b={},$x={get exports(){return b},set exports(e){b=e}},re={};/** + * @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 fa=Symbol.for("react.element"),Fx=Symbol.for("react.portal"),zx=Symbol.for("react.fragment"),Bx=Symbol.for("react.strict_mode"),Ux=Symbol.for("react.profiler"),Wx=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),Gx=Symbol.for("react.forward_ref"),Yx=Symbol.for("react.suspense"),Kx=Symbol.for("react.memo"),qx=Symbol.for("react.lazy"),om=Symbol.iterator;function Xx(e){return e===null||typeof e!="object"?null:(e=om&&e[om]||e["@@iterator"],typeof e=="function"?e:null)}var Wy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hy=Object.assign,Gy={};function $i(e,t,n){this.props=e,this.context=t,this.refs=Gy,this.updater=n||Wy}$i.prototype.isReactComponent={};$i.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")};$i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yy(){}Yy.prototype=$i.prototype;function Ud(e,t,n){this.props=e,this.context=t,this.refs=Gy,this.updater=n||Wy}var Wd=Ud.prototype=new Yy;Wd.constructor=Ud;Hy(Wd,$i.prototype);Wd.isPureReactComponent=!0;var am=Array.isArray,Ky=Object.prototype.hasOwnProperty,Hd={current:null},qy={key:!0,ref:!0,__self:!0,__source:!0};function Xy(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Ky.call(t,r)&&!qy.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,te=R[ee];if(0>>1;eei(je,W))_ei(yt,je)?(R[ee]=yt,R[_e]=W,ee=_e):(R[ee]=je,R[ie]=W,ee=ie);else if(_ei(yt,W))R[ee]=yt,R[_e]=W,ee=_e;else break e}}return $}function i(R,$){var W=R.sortIndex-$.sortIndex;return W!==0?W:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=R)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function w(R){if(g=!1,y(R),!v)if(n(l)!==null)v=!0,H(C);else{var $=n(u);$!==null&&J(w,$.startTime-R)}}function C(R,$){v=!1,g&&(g=!1,p(E),E=-1),h=!0;var W=d;try{for(y($),f=n(l);f!==null&&(!(f.expirationTime>$)||R&&!k());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,d=f.priorityLevel;var te=ee(f.expirationTime<=$);$=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&r(l),y($)}else r(l);f=n(l)}if(f!==null)var Me=!0;else{var ie=n(u);ie!==null&&J(w,ie.startTime-$),Me=!1}return Me}finally{f=null,d=W,h=!1}}var O=!1,P=null,E=-1,N=5,I=-1;function k(){return!(e.unstable_now()-IR||125ee?(R.sortIndex=W,t(u,R),n(l)===null&&R===n(u)&&(g?(p(E),E=-1):g=!0,J(w,W-ee))):(R.sortIndex=te,t(l,R),v||h||(v=!0,H(C))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var $=d;return function(){var W=d;d=$;try{return R.apply(this,arguments)}finally{d=W}}}})(Zy);(function(e){e.exports=Zy})(l2);/** + * @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 Jy=b,Ct=Hc;function V(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"),Gc=Object.prototype.hasOwnProperty,u2=/^[: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]*$/,lm={},um={};function c2(e){return Gc.call(um,e)?!0:Gc.call(lm,e)?!1:u2.test(e)?um[e]=!0:(lm[e]=!0,!1)}function f2(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 d2(e,t,n,r){if(t===null||typeof t>"u"||f2(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 ct(e,t,n,r,i,o,a){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=a}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new ct(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){Qe[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kd=/[\-:]([a-z])/g;function qd(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(Kd,qd);Qe[t]=new ct(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(Kd,qd);Qe[t]=new ct(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(Kd,qd);Qe[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xd(e,t,n,r){var i=Qe.hasOwnProperty(t)?Qe[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lo(e):""}function p2(e){switch(e.tag){case 5:return lo(e.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 2:case 15:return e=Mu(e.type,!1),e;case 11:return e=Mu(e.type.render,!1),e;case 1:return e=Mu(e.type,!0),e;default:return""}}function Xc(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 ei:return"Fragment";case Jr:return"Portal";case Yc:return"Profiler";case Qd:return"StrictMode";case Kc:return"Suspense";case qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n0:return(e.displayName||"Context")+".Consumer";case t0:return(e._context.displayName||"Context")+".Provider";case Zd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jd:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function h2(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 Xc(t);case 8:return t===Qd?"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 Zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m2(e){var t=i0(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $a(e){e._valueTracker||(e._valueTracker=m2(e))}function o0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ts(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 Qc(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zn(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 a0(e,t){t=t.checked,t!=null&&Xd(e,"checked",t,!1)}function Zc(e,t){a0(e,t);var n=Zn(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")?Jc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jc(e,t.type,Zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dm(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 Jc(e,t,n){(t!=="number"||Ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var uo=Array.isArray;function mi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Fa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mo={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},v2=["Webkit","ms","Moz","O"];Object.keys(mo).forEach(function(e){v2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mo[t]=mo[e]})});function c0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mo.hasOwnProperty(e)&&mo[e]?(""+t).trim():t+"px"}function f0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=c0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var g2=Ee({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 nf(e,t){if(t){if(g2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function rf(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 of=null;function ep(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var af=null,vi=null,gi=null;function mm(e){if(e=ha(e)){if(typeof af!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Pl(t),af(e.stateNode,e.type,t))}}function d0(e){vi?gi?gi.push(e):gi=[e]:vi=e}function p0(){if(vi){var e=vi,t=gi;if(gi=vi=null,mm(e),t)for(e=0;e>>=0,e===0?32:31-(_2(e)/k2|0)|0}var za=64,Ba=4194304;function co(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 Ls(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=co(s):(o&=a,o!==0&&(r=co(o)))}else a=n&~i,a!==0?r=co(a):o!==0&&(r=co(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 da(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function N2(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=go),Cm=String.fromCharCode(32),Em=!1;function N0(e,t){switch(e){case"keyup":return sO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function uO(e,t){switch(e){case"compositionend":return R0(t);case"keypress":return t.which!==32?null:(Em=!0,Cm);case"textInput":return e=t.data,e===Cm&&Em?null:e;default:return null}}function cO(e,t){if(ti)return e==="compositionend"||!lp&&N0(e,t)?(e=L0(),fs=op=In=null,ti=!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=km(n)}}function V0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ts(e.document)}return t}function up(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 wO(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&V0(n.ownerDocument.documentElement,n)){if(r!==null&&up(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=Dm(n,o);var a=Dm(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,ni=null,df=null,wo=null,pf=!1;function Lm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pf||ni==null||ni!==Ts(r)||(r=ni,"selectionStart"in r&&up(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}),wo&&Fo(wo,r)||(wo=r,r=Rs(df,"onSelect"),0oi||(e.current=wf[oi],wf[oi]=null,oi--)}function pe(e,t){oi++,wf[oi]=e.current,e.current=t}var Jn={},ot=or(Jn),ht=or(!1),Er=Jn;function _i(e,t){var n=e.type.contextTypes;if(!n)return Jn;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 mt(e){return e=e.childContextTypes,e!=null}function js(){ve(ht),ve(ot)}function Vm(e,t,n){if(ot.current!==Jn)throw Error(V(168));pe(ot,t),pe(ht,n)}function K0(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(V(108,h2(e)||"Unknown",i));return Ee({},n,r)}function Is(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,Er=ot.current,pe(ot,e),pe(ht,ht.current),!0}function $m(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=K0(e,t,Er),r.__reactInternalMemoizedMergedChildContext=e,ve(ht),ve(ot),pe(ot,e)):ve(ht),pe(ht,n)}var dn=null,Tl=!1,qu=!1;function q0(e){dn===null?dn=[e]:dn.push(e)}function LO(e){Tl=!0,q0(e)}function ar(){if(!qu&&dn!==null){qu=!0;var e=0,t=se;try{var n=dn;for(se=1;e>=a,i-=a,pn=1<<32-Wt(t)+i|n<E?(N=P,P=null):N=P.sibling;var I=d(p,P,y[E],w);if(I===null){P===null&&(P=N);break}e&&P&&I.alternate===null&&t(p,P),m=o(I,m,E),O===null?C=I:O.sibling=I,O=I,P=N}if(E===y.length)return n(p,P),ye&&dr(p,E),C;if(P===null){for(;EE?(N=P,P=null):N=P.sibling;var k=d(p,P,I.value,w);if(k===null){P===null&&(P=N);break}e&&P&&k.alternate===null&&t(p,P),m=o(k,m,E),O===null?C=k:O.sibling=k,O=k,P=N}if(I.done)return n(p,P),ye&&dr(p,E),C;if(P===null){for(;!I.done;E++,I=y.next())I=f(p,I.value,w),I!==null&&(m=o(I,m,E),O===null?C=I:O.sibling=I,O=I);return ye&&dr(p,E),C}for(P=r(p,P);!I.done;E++,I=y.next())I=h(P,p,E,I.value,w),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?E:I.key),m=o(I,m,E),O===null?C=I:O.sibling=I,O=I);return e&&P.forEach(function(L){return t(p,L)}),ye&&dr(p,E),C}function S(p,m,y,w){if(typeof y=="object"&&y!==null&&y.type===ei&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Va:e:{for(var C=y.key,O=m;O!==null;){if(O.key===C){if(C=y.type,C===ei){if(O.tag===7){n(p,O.sibling),m=i(O,y.props.children),m.return=p,p=m;break e}}else if(O.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ln&&Gm(C)===O.type){n(p,O.sibling),m=i(O,y.props),m.ref=Ji(p,O,y),m.return=p,p=m;break e}n(p,O);break}else t(p,O);O=O.sibling}y.type===ei?(m=xr(y.props.children,p.mode,w,y.key),m.return=p,p=m):(w=ws(y.type,y.key,y.props,null,p.mode,w),w.ref=Ji(p,m,y),w.return=p,p=w)}return a(p);case Jr:e:{for(O=y.key;m!==null;){if(m.key===O)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=rc(y,p.mode,w),m.return=p,p=m}return a(p);case Ln:return O=y._init,S(p,m,O(y._payload),w)}if(uo(y))return v(p,m,y,w);if(Ki(y))return g(p,m,y,w);qa(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,y),m.return=p,p=m):(n(p,m),m=nc(y,p.mode,w),m.return=p,p=m),a(p)):n(p,m)}return S}var Di=r1(!0),i1=r1(!1),ma={},nn=or(ma),Wo=or(ma),Ho=or(ma);function wr(e){if(e===ma)throw Error(V(174));return e}function yp(e,t){switch(pe(Ho,t),pe(Wo,e),pe(nn,ma),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tf(t,e)}ve(nn),pe(nn,t)}function Li(){ve(nn),ve(Wo),ve(Ho)}function o1(e){wr(Ho.current);var t=wr(nn.current),n=tf(t,e.type);t!==n&&(pe(Wo,e),pe(nn,n))}function wp(e){Wo.current===e&&(ve(nn),ve(Wo))}var Oe=or(0);function Us(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 Xu=[];function Sp(){for(var e=0;en?n:4,e(!0);var r=Qu.transition;Qu.transition={};try{e(!1),t()}finally{se=n,Qu.transition=r}}function b1(){return jt().memoizedState}function MO(e,t,n){var r=qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x1(e))O1(t,n);else if(n=J0(e,t,n,r),n!==null){var i=lt();Ht(n,e,r,i),C1(n,t,r)}}function jO(e,t,n){var r=qn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x1(e))O1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Gt(s,a)){var l=t.interleaved;l===null?(i.next=i,vp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=J0(e,t,i,r),n!==null&&(i=lt(),Ht(n,e,r,i),C1(n,t,r))}}function x1(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function O1(e,t){So=Ws=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,np(e,n)}}var Hs={readContext:Mt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},IO={readContext:Mt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Km,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ms(4194308,4,v1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){return ms(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();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=MO.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Ym,useDebugValue:Ep,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Ym(!1),t=e[0];return e=RO.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,i=Qt();if(ye){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),He===null)throw Error(V(349));Tr&30||l1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Km(c1.bind(null,r,o,e),[e]),r.flags|=2048,Ko(9,u1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qt(),t=He.identifierPrefix;if(ye){var n=hn,r=pn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[Uo]=r,N1(e,t,!1,!1),t.stateNode=e;e:{switch(a=rf(n,r),n){case"dialog":me("cancel",e),me("close",e),i=r;break;case"iframe":case"object":case"embed":me("load",e),i=r;break;case"video":case"audio":for(i=0;iNi&&(t.flags|=128,r=!0,eo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Us(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),eo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ye)return et(t),null}else 2*ke()-o.renderingStartTime>Ni&&n!==1073741824&&(t.flags|=128,r=!0,eo(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ke(),t.sibling=null,n=Oe.current,pe(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Lp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function HO(e,t){switch(fp(t),t.tag){case 1:return mt(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Li(),ve(ht),ve(ot),Sp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wp(t),null;case 13:if(ve(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Oe),null;case 4:return Li(),null;case 10:return mp(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var Qa=!1,rt=!1,GO=typeof WeakSet=="function"?WeakSet:Set,G=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Lf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var rv=!1;function YO(e,t){if(hf=As,e=$0(),up(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 a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++c===r&&(l=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mf={focusedElem:e,selectionRange:n},As=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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 g=v.memoizedProps,S=v.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),S);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return v=rv,rv=!1,v}function bo(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&&Lf(t,n,o)}i=i.next}while(i!==r)}}function Dl(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 Af(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 j1(e){var t=e.alternate;t!==null&&(e.alternate=null,j1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Uo],delete t[yf],delete t[kO],delete t[DO])),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 I1(e){return e.tag===5||e.tag===3||e.tag===4}function iv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||I1(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 Nf(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=Ms));else if(r!==4&&(e=e.child,e!==null))for(Nf(e,t,n),e=e.sibling;e!==null;)Nf(e,t,n),e=e.sibling}function Rf(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(Rf(e,t,n),e=e.sibling;e!==null;)Rf(e,t,n),e=e.sibling}var qe=null,zt=!1;function _n(e,t,n){for(n=n.child;n!==null;)V1(e,t,n),n=n.sibling}function V1(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:rt||ui(n,t);case 6:var r=qe,i=zt;qe=null,_n(e,t,n),qe=r,zt=i,qe!==null&&(zt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(zt?(e=qe,n=n.stateNode,e.nodeType===8?Ku(e.parentNode,n):e.nodeType===1&&Ku(e,n),Vo(e)):Ku(qe,n.stateNode));break;case 4:r=qe,i=zt,qe=n.stateNode.containerInfo,zt=!0,_n(e,t,n),qe=r,zt=i;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Lf(n,t,a),i=i.next}while(i!==r)}_n(e,t,n);break;case 1:if(!rt&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,_n(e,t,n),rt=r):_n(e,t,n);break;default:_n(e,t,n)}}function ov(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GO),t.forEach(function(r){var i=nC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qO(r/1960))-r,10e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,Ks=0,ae&6)throw Error(V(331));var i=ae;for(ae|=4,G=e.current;G!==null;){var o=G,a=o.child;if(G.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lke()-kp?br(e,0):_p|=n),vt(e,t)}function G1(e,t){t===0&&(e.mode&1?(t=Ba,Ba<<=1,!(Ba&130023424)&&(Ba=4194304)):t=1);var n=lt();e=bn(e,t),e!==null&&(da(e,t,n),vt(e,n))}function tC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G1(e,n)}function nC(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(V(314))}r!==null&&r.delete(t),G1(e,n)}var Y1;Y1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,UO(e,t,n);pt=!!(e.flags&131072)}else pt=!1,ye&&t.flags&1048576&&X0(t,$s,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vs(e,t),e=t.pendingProps;var i=_i(t,ot.current);wi(t,n),i=xp(null,t,r,e,i,n);var o=Op();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,mt(r)?(o=!0,Is(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gp(t),i.updater=_l,t.stateNode=i,i._reactInternals=t,Cf(t,r,e,n),t=Tf(null,t,r,!0,o,n)):(t.tag=0,ye&&o&&cp(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=iC(r),e=Ft(r,e),i){case 0:t=Pf(null,t,r,e,n);break e;case 1:t=ev(null,t,r,e,n);break e;case 11:t=Zm(null,t,r,e,n);break e;case 14:t=Jm(null,t,r,Ft(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Pf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),ev(e,t,r,i,n);case 3:e:{if(D1(t),e===null)throw Error(V(387));r=t.pendingProps,o=t.memoizedState,i=o.element,e1(e,t),Bs(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ai(Error(V(423)),t),t=tv(e,t,r,n,i);break e}else if(r!==i){i=Ai(Error(V(424)),t),t=tv(e,t,r,n,i);break e}else for(xt=Gn(t.stateNode.containerInfo.firstChild),Ot=t,ye=!0,Bt=null,n=i1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ki(),r===i){t=xn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return o1(t),e===null&&bf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,vf(r,i)?a=null:o!==null&&vf(r,o)&&(t.flags|=32),k1(e,t),st(e,t,a,n),t.child;case 6:return e===null&&bf(t),null;case 13:return L1(e,t,n);case 4:return yp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Di(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Zm(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,pe(Fs,r._currentValue),r._currentValue=a,o!==null)if(Gt(o.value,a)){if(o.children===i.children&&!ht.current){t=xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=mn(-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),xf(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),xf(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wi(t,n),i=Mt(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),Jm(e,t,r,i,n);case 15:return T1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),vs(e,t),t.tag=1,mt(r)?(e=!0,Is(t)):e=!1,wi(t,n),n1(t,r,i),Cf(t,r,i,n),Tf(null,t,r,!0,e,n);case 19:return A1(e,t,n);case 22:return _1(e,t,n)}throw Error(V(156,t.tag))};function K1(e,t){return S0(e,t)}function rC(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 Nt(e,t,n,r){return new rC(e,t,n,r)}function Np(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iC(e){if(typeof e=="function")return Np(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zd)return 11;if(e===Jd)return 14}return 2}function Xn(e,t){var n=e.alternate;return n===null?(n=Nt(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 ws(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Np(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ei:return xr(n.children,i,o,t);case Qd:a=8,i|=8;break;case Yc:return e=Nt(12,n,t,i|2),e.elementType=Yc,e.lanes=o,e;case Kc:return e=Nt(13,n,t,i),e.elementType=Kc,e.lanes=o,e;case qc:return e=Nt(19,n,t,i),e.elementType=qc,e.lanes=o,e;case r0:return Al(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case t0:a=10;break e;case n0:a=9;break e;case Zd:a=11;break e;case Jd:a=14;break e;case Ln:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Nt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function Al(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=r0,e.lanes=n,e.stateNode={isHidden:!1},e}function nc(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function rc(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oC(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=Iu(0),this.expirationTimes=Iu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rp(e,t,n,r,i,o,a,s,l){return e=new oC(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Nt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gp(o),e}function aC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Tt})(s2);var pv=Ao;Wc.createRoot=pv.createRoot,Wc.hydrateRoot=pv.hydrateRoot;/** + * @remix-run/router v1.3.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 Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pC(){return Math.random().toString(36).substr(2,8)}function mv(e,t){return{usr:e.state,key:e.key,idx:t}}function $f(e,t,n,r){return n===void 0&&(n=null),Xo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bi(t):t,{state:n,key:t&&t.key||r||pC()})}function Qs(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 Bi(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 hC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=$n.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Xo({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){let S=$n.Pop,p=c();if(p!=null){let m=p-u;s=S,u=p,l&&l({action:s,location:g.location,delta:m})}else dC(!1,"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation.")}function d(S,p){s=$n.Push;let m=$f(g.location,S,p);n&&n(m,S),u=c()+1;let y=mv(m,u),w=g.createHref(m);try{a.pushState(y,"",w)}catch{i.location.assign(w)}o&&l&&l({action:s,location:g.location,delta:1})}function h(S,p){s=$n.Replace;let m=$f(g.location,S,p);n&&n(m,S),u=c();let y=mv(m,u),w=g.createHref(m);a.replaceState(y,"",w),o&&l&&l({action:s,location:g.location,delta:0})}function v(S){let p=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof S=="string"?S:Qs(S);return Fe(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let g={get action(){return s},get location(){return e(i,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(hv,f),l=S,()=>{i.removeEventListener(hv,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:h,go(S){return a.go(S)}};return g}var vv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vv||(vv={}));function mC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Bi(t):t,i=ew(r.pathname||"/",n);if(i==null)return null;let o=Z1(e);vC(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Fe(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=Qn([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Fe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Z1(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:OC(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of J1(o.path))i(o,a,l)}),t}function J1(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 a=J1(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function vC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:CC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gC=/^:\w+$/,yC=3,wC=2,SC=1,bC=10,xC=-2,gv=e=>e==="*";function OC(e,t){let n=e.split("/"),r=n.length;return n.some(gv)&&(r+=xC),t&&(r+=wC),n.filter(i=>!gv(i)).reduce((i,o)=>i+(gC.test(o)?yC:o===""?SC:bC),r)}function CC(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 EC(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(c==="*"){let d=s[f]||"";a=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=kC(s[f]||"",c),u},{}),pathname:o,pathnameBase:a,pattern:e}}function TC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vp(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,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function _C(e){try{return decodeURI(e)}catch(t){return Vp(!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 kC(e,t){try{return decodeURIComponent(e)}catch(n){return Vp(!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 ew(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 Vp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Bi(e):e;return{pathname:n?n.startsWith("/")?n:LC(n,t):t,search:NC(r),hash:RC(i)}}function LC(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 ic(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 tw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nw(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Bi(e):(i=Xo({},e),Fe(!i.pathname||!i.pathname.includes("?"),ic("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),ic("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),ic("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=DC(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Qn=e=>e.join("/").replace(/\/\/+/g,"/"),AC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class MC{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function jC(e){return e instanceof MC}const IC=["post","put","patch","delete"];[...IC];/** + * React Router v6.7.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 Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,oc(i)&&o({inst:i})},[e,r,t]),zC(()=>(oc(i)&&o({inst:i}),e(()=>{oc(i)&&o({inst:i})})),[e]),UC(r),r}function oc(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!$C(n,r)}catch{return!0}}function HC(e,t,n){return t()}const GC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YC=!GC,KC=YC?HC:WC;"useSyncExternalStore"in Uc&&(e=>e.useSyncExternalStore)(Uc);const rw=b.createContext(null),iw=b.createContext(null),Il=b.createContext(null),Vl=b.createContext(null),$r=b.createContext({outlet:null,matches:[]}),ow=b.createContext(null);function qC(e,t){let{relative:n}=t===void 0?{}:t;va()||Fe(!1);let{basename:r,navigator:i}=b.useContext(Il),{hash:o,pathname:a,search:s}=sw(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Qn([r,a])),i.createHref({pathname:l,search:s,hash:o})}function va(){return b.useContext(Vl)!=null}function Fr(){return va()||Fe(!1),b.useContext(Vl).location}function aw(){va()||Fe(!1);let{basename:e,navigator:t}=b.useContext(Il),{matches:n}=b.useContext($r),{pathname:r}=Fr(),i=JSON.stringify(tw(n).map(s=>s.pathnameBase)),o=b.useRef(!1);return b.useEffect(()=>{o.current=!0}),b.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let u=nw(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Qn([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function $l(){let{matches:e}=b.useContext($r),t=e[e.length-1];return t?t.params:{}}function sw(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=b.useContext($r),{pathname:i}=Fr(),o=JSON.stringify(tw(r).map(a=>a.pathnameBase));return b.useMemo(()=>nw(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function XC(e,t){va()||Fe(!1);let{navigator:n}=b.useContext(Il),r=b.useContext(iw),{matches:i}=b.useContext($r),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=Fr(),u;if(t){var c;let g=typeof t=="string"?Bi(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||Fe(!1),u=g}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=mC(e,{pathname:d}),v=eE(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Qn([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Qn([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r||void 0);return t&&v?b.createElement(Vl.Provider,{value:{location:Ff({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:$n.Pop}},v):v}function QC(){let e=iE(),t=jC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unhandled Thrown Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"errorElement")," props on ",b.createElement("code",{style:o},"")))}class ZC extends b.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?b.createElement($r.Provider,{value:this.props.routeContext},b.createElement(ow.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JC(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(rw);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement($r.Provider,{value:t},r)}function eE(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||Fe(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||b.createElement(QC,null):null,c=t.concat(r.slice(0,s+1)),f=()=>b.createElement(JC,{match:a,routeContext:{outlet:o,matches:c}},l?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?b.createElement(ZC,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var yv;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(yv||(yv={}));var Zs;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Zs||(Zs={}));function tE(e){let t=b.useContext(iw);return t||Fe(!1),t}function nE(e){let t=b.useContext($r);return t||Fe(!1),t}function rE(e){let t=nE(),n=t.matches[t.matches.length-1];return n.route.id||Fe(!1),n.route.id}function iE(){var e;let t=b.useContext(ow),n=tE(Zs.UseRouteError),r=rE(Zs.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function hr(e){Fe(!1)}function oE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=$n.Pop,navigator:o,static:a=!1}=e;va()&&Fe(!1);let s=t.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Bi(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,v=b.useMemo(()=>{let g=ew(u,s);return g==null?null:{pathname:g,search:c,hash:f,state:d,key:h}},[s,u,c,f,d,h]);return v==null?null:b.createElement(Il.Provider,{value:l},b.createElement(Vl.Provider,{children:n,value:{location:v,navigationType:i}}))}function aE(e){let{children:t,location:n}=e,r=b.useContext(rw),i=r&&!t?r.router.routes:zf(t);return XC(i,n)}var wv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(wv||(wv={}));new Promise(()=>{});function zf(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;if(r.type===b.Fragment){n.push.apply(n,zf(r.props.children,t));return}r.type!==hr&&Fe(!1),!r.props.index||!r.props.children||Fe(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=zf(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.7.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 Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function lE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uE(e,t){return e.button===0&&(!t||t==="_self")&&!lE(e)}const cE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function fE(e){let{basename:t,children:n,window:r}=e,i=b.useRef();i.current==null&&(i.current=fC({window:r,v5Compat:!0}));let o=i.current,[a,s]=b.useState({action:o.action,location:o.location});return b.useLayoutEffect(()=>o.listen(s),[o]),b.createElement(oE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const xe=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=sE(t,cE),d=qC(u,{relative:i}),h=dE(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function v(g){r&&r(g),g.defaultPrevented||h(g)}return b.createElement("a",Bf({},f,{href:d,onClick:o?r:v,ref:n,target:l}))});var Sv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Sv||(Sv={}));var bv;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bv||(bv={}));function dE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=aw(),l=Fr(),u=sw(e,{relative:a});return b.useCallback(c=>{if(uE(c,n)){c.preventDefault();let f=r!==void 0?r:Qs(l)===Qs(u);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}const $p=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fl=b.createContext({});function pE(){return b.useContext(Fl).visualElement}const ga=b.createContext(null),zl=typeof document<"u",Js=zl?b.useLayoutEffect:b.useEffect,lw=b.createContext({strict:!1});function hE(e,t,n,r){const i=pE(),o=b.useContext(lw),a=b.useContext(ga),s=b.useContext($p).reducedMotion,l=b.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;return Js(()=>{u&&u.render()}),(window.MotionAppearAnimations?Js:b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function fi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mE(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):fi(n)&&(n.current=r))},[t])}function Qo(e){return typeof e=="string"||Array.isArray(e)}function Bl(e){return typeof e=="object"&&typeof e.start=="function"}const vE=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ul(e){return Bl(e.animate)||vE.some(t=>Qo(e[t]))}function uw(e){return Boolean(Ul(e)||e.variants)}function gE(e,t){if(Ul(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qo(n)?n:void 0,animate:Qo(r)?r:void 0}}return e.inherit!==!1?t:{}}function yE(e){const{initial:t,animate:n}=gE(e,b.useContext(Fl));return b.useMemo(()=>({initial:t,animate:n}),[xv(t),xv(n)])}function xv(e){return Array.isArray(e)?e.join(" "):e}const cn=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Zo={measureLayout:cn(["layout","layoutId","drag"]),animation:cn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:cn(["exit"]),drag:cn(["drag","dragControls"]),focus:cn(["whileFocus"]),hover:cn(["whileHover","onHoverStart","onHoverEnd"]),tap:cn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:cn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:cn(["whileInView","onViewportEnter","onViewportLeave"])};function wE(e){for(const t in e)t==="projectionNodeConstructor"?Zo.projectionNodeConstructor=e[t]:Zo[t].Component=e[t]}function Wl(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Co={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let SE=1;function bE(){return Wl(()=>{if(Co.hasEverUpdated)return SE++})}const Fp=b.createContext({});class xE extends B.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const cw=b.createContext({}),OE=Symbol.for("motionComponentSymbol");function CE({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&wE(e);function a(l,u){const c={...b.useContext($p),...l,layoutId:EE(l)},{isStatic:f}=c;let d=null;const h=yE(l),v=f?void 0:bE(),g=i(l,f);if(!f&&zl){h.visualElement=hE(o,g,c,t);const S=b.useContext(lw).strict,p=b.useContext(cw);h.visualElement&&(d=h.visualElement.loadFeatures(c,S,e,v,n||Zo.projectionNodeConstructor,p))}return b.createElement(xE,{visualElement:h.visualElement,props:c},d,b.createElement(Fl.Provider,{value:h},r(o,l,v,mE(g,h.visualElement,u),g,f,h.visualElement)))}const s=b.forwardRef(a);return s[OE]=o,s}function EE({layoutId:e}){const t=b.useContext(Fp).id;return t&&e!==void 0?t+"-"+e:e}function PE(e){function t(r,i={}){return CE(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 TE=["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 zp(e){return typeof e!="string"||e.includes("-")?!1:!!(TE.indexOf(e)>-1||/[A-Z]/.test(e))}const el={};function _E(e){Object.assign(el,e)}const tl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zr=new Set(tl);function fw(e,{layout:t,layoutId:n}){return zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!el[e]||e==="opacity")}const gt=e=>!!(e!=null&&e.getVelocity),kE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DE=(e,t)=>tl.indexOf(e)-tl.indexOf(t);function LE({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";t.sort(DE);for(const s of t)a+=`${kE[s]||s}(${e[s]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}function dw(e){return e.startsWith("--")}const AE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ri=(e,t,n)=>Math.min(Math.max(n,e),t),Br={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo={...Br,transform:e=>Ri(0,1,e)},es={...Br,default:1},Po=e=>Math.round(e*1e5)/1e5,Jo=/(-)?([\d]*\.?[\d])+/g,Uf=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,NE=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ya(e){return typeof e=="string"}const wa=e=>({test:t=>ya(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dn=wa("deg"),rn=wa("%"),Q=wa("px"),RE=wa("vh"),ME=wa("vw"),Ov={...rn,parse:e=>rn.parse(e)/100,transform:e=>rn.transform(e*100)},Cv={...Br,transform:Math.round},pw={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:Dn,rotateX:Dn,rotateY:Dn,rotateZ:Dn,scale:es,scaleX:es,scaleY:es,scaleZ:es,skew:Dn,skewX:Dn,skewY:Dn,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:Eo,originX:Ov,originY:Ov,originZ:Q,zIndex:Cv,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Cv};function Bp(e,t,n,r){const{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,f=!0;for(const d in t){const h=t[d];if(dw(d)){o[d]=h;continue}const v=pw[d],g=AE(h,v);if(zr.has(d)){if(u=!0,a[d]=g,s.push(d),!f)continue;h!==(v.default||0)&&(f=!1)}else d.startsWith("origin")?(c=!0,l[d]=g):i[d]=g}if(t.transform||(u||r?i.transform=LE(e,n,f,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:v=0}=l;i.transformOrigin=`${d} ${h} ${v}`}}const Up=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function hw(e,t,n){for(const r in t)!gt(t[r])&&!fw(r,n)&&(e[r]=t[r])}function jE({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Up();return Bp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function IE(e,t,n){const r=e.style||{},i={};return hw(i,r,e),Object.assign(i,jE(e,t,n)),e.transformValues?e.transformValues(i):i}function VE(e,t,n){const r={},i=IE(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"}`),r.style=i,r}const $E=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],FE=["whileTap","onTap","onTapStart","onTapCancel"],zE=["onPan","onPanStart","onPanSessionStart","onPanEnd"],BE=["whileInView","onViewportEnter","onViewportLeave","viewport"],UE=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","layoutScroll","layoutRoot","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd",...BE,...FE,...$E,...zE]);function nl(e){return UE.has(e)}let mw=e=>!nl(e);function WE(e){e&&(mw=t=>t.startsWith("on")?!nl(t):e(t))}try{WE(require("@emotion/is-prop-valid").default)}catch{}function HE(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(mw(i)||n===!0&&nl(i)||!t&&!nl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ev(e,t,n){return typeof e=="string"?e:Q.transform(t+n*e)}function GE(e,t,n){const r=Ev(t,e.x,e.width),i=Ev(n,e.y,e.height);return`${r} ${i}`}const YE={offset:"stroke-dashoffset",array:"stroke-dasharray"},KE={offset:"strokeDashoffset",array:"strokeDasharray"};function qE(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?YE:KE;e[o.offset]=Q.transform(-r);const a=Q.transform(t),s=Q.transform(n);e[o.array]=`${a} ${s}`}function Wp(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c,f){if(Bp(e,l,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:v}=e;d.transform&&(v&&(h.transform=d.transform),delete d.transform),v&&(r!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=GE(v,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),o!==void 0&&qE(d,o,a,s,!1)}const vw=()=>({...Up(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XE(e,t,n,r){const i=b.useMemo(()=>{const o=vw();return Wp(o,t,{enableHardwareAcceleration:!1},Hp(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};hw(o,e.style,e),i.style={...o,...i.style}}return i}function QE(e=!1){return(n,r,i,o,{latestValues:a},s)=>{const u=(zp(n)?XE:VE)(r,a,s,n),f={...HE(r,typeof n=="string",e),...u,ref:o},{children:d}=r,h=b.useMemo(()=>gt(d)?d.get():d,[d]);return i&&(f["data-projection-id"]=i),b.createElement(n,{...f,children:h})}}const Gp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function gw(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 yw=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 ww(e,t,n,r){gw(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yw.has(i)?i:Gp(i),t.attrs[i])}function Yp(e,t){const{style:n}=e,r={};for(const i in n)(gt(n[i])||t.style&>(t.style[i])||fw(i,e))&&(r[i]=n[i]);return r}function Sw(e,t){const n=Yp(e,t);for(const r in e)if(gt(e[r])||gt(t[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[i]=e[r]}return n}function Kp(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}const rl=e=>Array.isArray(e),ZE=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),JE=e=>rl(e)?e[e.length-1]||0:e;function Ss(e){const t=gt(e)?e.get():e;return ZE(t)?t.toValue():t}function eP({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:tP(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const bw=e=>(t,n)=>{const r=b.useContext(Fl),i=b.useContext(ga),o=()=>eP(e,t,r,i);return n?o():Wl(o)};function tP(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ss(o[d]);let{initial:a,animate:s}=e;const l=Ul(e),u=uw(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!Bl(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const v=Kp(e,h);if(!v)return;const{transitionEnd:g,transition:S,...p}=v;for(const m in p){let y=p[m];if(Array.isArray(y)){const w=c?y.length-1:0;y=y[w]}y!==null&&(i[m]=y)}for(const m in g)i[m]=g[m]}),i}const nP={useVisualState:bw({scrapeMotionValuesFromProps:Sw,createRenderState:vw,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}}Wp(n,r,{enableHardwareAcceleration:!1},Hp(t.tagName),e.transformTemplate),ww(t,n)}})},rP={useVisualState:bw({scrapeMotionValuesFromProps:Yp,createRenderState:Up})};function iP(e,{forwardMotionProps:t=!1},n,r,i){return{...zp(e)?nP:rP,preloadedFeatures:n,useRender:QE(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}}var de;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(de||(de={}));function Hl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wf(e,t,n,r){b.useEffect(()=>{const i=e.current;if(n&&i)return Hl(i,t,n,r)},[e,t,n,r])}function oP({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=b.useCallback(()=>{n&&n.setActive(de.Focus,!0)},[n]),i=b.useCallback(()=>{n&&n.setActive(de.Focus,!1)},[n]);Wf(t,"focus",e?r:void 0),Wf(t,"blur",e?i:void 0)}const xw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ow=e=>t=>xw(t)&&e(t,qp(t));function bi(e,t,n,r){return Hl(e,t,Ow(n),r)}function il(e,t,n,r){return Wf(e,t,n&&Ow(n),r)}function Cw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Pv=Cw("dragHorizontal"),Tv=Cw("dragVertical");function Ew(e){let t=!1;if(e==="y")t=Tv();else if(e==="x")t=Pv();else{const n=Pv(),r=Tv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Pw(){const e=Ew(!0);return e?(e(),!1):!0}function _v(e,t,n,r){return(i,o)=>{i.type==="touch"||Pw()||(n&&e.animationState&&e.animationState.setActive(de.Hover,t),r&&r(i,o))}}function aP({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){il(r,"pointerenter",b.useMemo(()=>e||n?_v(r,!0,Boolean(n),e):void 0,[e,Boolean(n),r]),{passive:!e}),il(r,"pointerleave",b.useMemo(()=>t||n?_v(r,!1,Boolean(n),t):void 0,[e,Boolean(n),r]),{passive:!t})}const Tw=(e,t)=>t?e===t?!0:Tw(e,t.parentElement):!1;function Xp(e){return b.useEffect(()=>()=>e(),[])}const sP=(e,t)=>n=>t(e(n)),Gl=(...e)=>e.reduce(sP);function lP({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i,...o}){const a=e||t||n||r,s=b.useRef(!1),l=b.useRef(null),u={passive:!(t||e||n||o.onPointerDown)};function c(){l.current&&l.current(),l.current=null}function f(){return c(),s.current=!1,i.getProps().whileTap&&i.animationState&&i.animationState.setActive(de.Tap,!1),!Pw()}function d(g,S){var p,m,y,w;f()&&(Tw(i.current,g.target)?(w=(y=i.getProps()).onTap)===null||w===void 0||w.call(y,g,S):(m=(p=i.getProps()).onTapCancel)===null||m===void 0||m.call(p,g,S))}function h(g,S){var p,m;f()&&((m=(p=i.getProps()).onTapCancel)===null||m===void 0||m.call(p,g,S))}const v=b.useCallback((g,S)=>{var p;if(c(),s.current)return;s.current=!0,l.current=Gl(bi(window,"pointerup",d,u),bi(window,"pointercancel",h,u));const m=i.getProps();m.whileTap&&i.animationState&&i.animationState.setActive(de.Tap,!0),(p=m.onTapStart)===null||p===void 0||p.call(m,g,S)},[Boolean(t),i]);il(i,"pointerdown",a?v:void 0,u),Xp(c)}const Hf=new WeakMap,ac=new WeakMap,uP=e=>{const t=Hf.get(e.target);t&&t(e)},cP=e=>{e.forEach(uP)};function fP({root:e,...t}){const n=e||document;ac.has(n)||ac.set(n,{});const r=ac.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(cP,{root:e,...t})),r[i]}function dP(e,t,n){const r=fP(t);return Hf.set(e,n),r.observe(e),()=>{Hf.delete(e),r.unobserve(e)}}function pP({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){const o=b.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?vP:mP)(a,o.current,e,i)}const hP={some:0,all:1};function mP(e,t,n,{root:r,margin:i,amount:o="some",once:a}){b.useEffect(()=>{if(!e||!n.current)return;const s={root:r==null?void 0:r.current,rootMargin:i,threshold:typeof o=="number"?o:hP[o]},l=u=>{const{isIntersecting:c}=u;if(t.isInView===c||(t.isInView=c,a&&!c&&t.hasEnteredView))return;c&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(de.InView,c);const f=n.getProps(),d=c?f.onViewportEnter:f.onViewportLeave;d&&d(u)};return dP(n.current,s,l)},[e,r,i,o])}function vP(e,t,n,{fallback:r=!0}){b.useEffect(()=>{!e||!r||requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();i&&i(null),n.animationState&&n.animationState.setActive(de.InView,!0)})},[e])}const Fn=e=>t=>(e(t),null),gP={inView:Fn(pP),tap:Fn(lP),focus:Fn(oP),hover:Fn(aP)};function _w(){const e=b.useContext(ga);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function kw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(e),wP=e=>/^0[^.\s]+$/.test(e),vn={delta:0,timestamp:0},Dw=1/60*1e3,SP=typeof performance<"u"?()=>performance.now():()=>Date.now(),Lw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(SP()),Dw);function bP(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.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),a.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]=bP(()=>ea=!0),e),{}),it=Sa.reduce((e,t)=>{const n=Yl[t];return e[t]=(r,i=!1,o=!1)=>(ea||CP(),n.schedule(r,i,o)),e},{}),er=Sa.reduce((e,t)=>(e[t]=Yl[t].cancel,e),{}),sc=Sa.reduce((e,t)=>(e[t]=()=>Yl[t].process(vn),e),{}),OP=e=>Yl[e].process(vn),Aw=e=>{ea=!1,vn.delta=Gf?Dw:Math.max(Math.min(e-vn.timestamp,xP),1),vn.timestamp=e,Yf=!0,Sa.forEach(OP),Yf=!1,ea&&(Gf=!1,Lw(Aw))},CP=()=>{ea=!0,Gf=!0,Yf||Lw(Aw)};function Qp(e,t){e.indexOf(t)===-1&&e.push(t)}function Zp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jp{constructor(){this.subscriptions=[]}add(t){return Qp(this.subscriptions,t),()=>Zp(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 PP{constructor(t,n={}){this.version="8.5.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=vn;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,it.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=()=>it.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=EP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jp);const r=this.events[t].add(n);return t==="change"?()=>{r(),it.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?eh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mi(e,t){return new PP(e,t)}const th=(e,t)=>n=>Boolean(ya(n)&&NE.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Nw=(e,t,n)=>r=>{if(!ya(r))return r;const[i,o,a,s]=r.match(Jo);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},TP=e=>Ri(0,255,e),lc={...Br,transform:e=>Math.round(TP(e))},Sr={test:th("rgb","red"),parse:Nw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lc.transform(e)+", "+lc.transform(t)+", "+lc.transform(n)+", "+Po(Eo.transform(r))+")"};function _P(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 Kf={test:th("#"),parse:_P,transform:Sr.transform},di={test:th("hsl","hue"),parse:Nw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rn.transform(Po(t))+", "+rn.transform(Po(n))+", "+Po(Eo.transform(r))+")"},at={test:e=>Sr.test(e)||Kf.test(e)||di.test(e),parse:e=>Sr.test(e)?Sr.parse(e):di.test(e)?di.parse(e):Kf.parse(e),transform:e=>ya(e)?e:e.hasOwnProperty("red")?Sr.transform(e):di.transform(e)},Rw="${c}",Mw="${n}";function kP(e){var t,n;return isNaN(e)&&ya(e)&&(((t=e.match(Jo))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Uf))===null||n===void 0?void 0:n.length)||0)>0}function ol(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const i=e.match(Uf);i&&(n=i.length,e=e.replace(Uf,Rw),t.push(...i.map(at.parse)));const o=e.match(Jo);return o&&(r=o.length,e=e.replace(Jo,Mw),t.push(...o.map(Br.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function jw(e){return ol(e).values}function Iw(e){const{values:t,numColors:n,tokenised:r}=ol(e),i=t.length;return o=>{let a=r;for(let s=0;stypeof e=="number"?0:e;function LP(e){const t=jw(e);return Iw(e)(t.map(DP))}const tr={test:kP,parse:jw,createTransformer:Iw,getAnimatableNone:LP},AP=new Set(["brightness","contrast","saturate","opacity"]);function NP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Jo)||[];if(!r)return e;const i=n.replace(r,"");let o=AP.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const RP=/([a-z-]*)\(.*?\)/g,qf={...tr,getAnimatableNone:e=>{const t=e.match(RP);return t?t.map(NP).join(" "):e}},MP={...pw,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:qf,WebkitFilter:qf},nh=e=>MP[e];function rh(e,t){var n;let r=nh(e);return r!==qf&&(r=tr),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const Vw=e=>t=>t.test(e),jP={test:e=>e==="auto",parse:e=>e},$w=[Br,Q,rn,Dn,ME,RE,jP],no=e=>$w.find(Vw(e)),IP=[...$w,at,tr],VP=e=>IP.find(Vw(e));function $P(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function FP(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Kl(e,t,n){const r=e.getProps();return Kp(r,t,n!==void 0?n:r.custom,$P(e),FP(e))}function zP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mi(n))}function BP(e,t){const n=Kl(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const s=JE(o[a]);zP(e,a,s)}}function UP(e,t,n){var r,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s`${e}: ${t}`;function YP(e,t,n){const{MotionAppearAnimations:r}=window,i=GP(e,zr.has(t)?"transform":t),o=r&&r.get(i);if(o){const a=performance.now();return it.update(()=>{n.animation&&(n.animation.currentTime=performance.now()-a)}),it.render(()=>{r.delete(i);try{o.cancel()}catch{}}),o.currentTime||0}else return 0}const KP="framerAppearId",qP="data-"+Gp(KP);var XP=function(){},sl=function(){};const bs=e=>e*1e3,QP={current:!1},ih=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oh=e=>t=>1-e(1-t),ah=e=>e*e,ZP=oh(ah),sh=ih(ah),Te=(e,t,n)=>-n*e+n*t+e;function uc(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 JP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=uc(l,s,e+1/3),o=uc(l,s,e),a=uc(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const cc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},eT=[Kf,Sr,di],tT=e=>eT.find(t=>t.test(e));function kv(e){const t=tT(e);let n=t.parse(e);return t===di&&(n=JP(n)),n}const Fw=(e,t)=>{const n=kv(e),r=kv(t),i={...n};return o=>(i.red=cc(n.red,r.red,o),i.green=cc(n.green,r.green,o),i.blue=cc(n.blue,r.blue,o),i.alpha=Te(n.alpha,r.alpha,o),Sr.transform(i))};function zw(e,t){return typeof e=="number"?n=>Te(e,t,n):at.test(e)?Fw(e,t):Uw(e,t)}const Bw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>zw(o,t[a]));return o=>{for(let a=0;a{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zw(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Uw=(e,t)=>{const n=tr.createTransformer(t),r=ol(e),i=ol(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Gl(Bw(r.values,i.values),n):a=>`${a>0?t:e}`},ll=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dv=(e,t)=>n=>Te(e,t,n);function rT(e){return typeof e=="number"?Dv:typeof e=="string"?at.test(e)?Fw:Uw:Array.isArray(e)?Bw:typeof e=="object"?nT:Dv}function iT(e,t,n){const r=[],i=n||rT(e[0]),o=e.length-1;for(let a=0;ae[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iT(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(Ri(e[0],e[o-1],u)):l}const lh=e=>e,Hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oT=1e-7,aT=12;function sT(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=Hw(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>oT&&++ssT(o,0,1,e,n);return o=>o===0||o===1?o:Hw(i(o),t,r)}const Yw=e=>1-Math.sin(Math.acos(e)),uh=oh(Yw),lT=ih(uh),Kw=Gw(.33,1.53,.69,.99),ch=oh(Kw),uT=ih(ch),cT=e=>(e*=2)<1?.5*ch(e):.5*(2-Math.pow(2,-10*(e-1))),fT={linear:lh,easeIn:ah,easeInOut:sh,easeOut:ZP,circIn:Yw,circInOut:lT,circOut:uh,backIn:ch,backInOut:uT,backOut:Kw,anticipate:cT},Lv=e=>{if(Array.isArray(e)){sl(e.length===4);const[t,n,r,i]=e;return Gw(t,n,r,i)}else if(typeof e=="string")return fT[e];return e},dT=e=>Array.isArray(e)&&typeof e[0]!="number";function pT(e,t){return e.map(()=>t||sh).splice(0,e.length-1)}function hT(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function mT(e,t){return e.map(n=>n*t)}function Xf({keyframes:e,ease:t=sh,times:n,duration:r=300}){e=[...e];const i=dT(t)?t.map(Lv):Lv(t),o={done:!1,value:e[0]},a=mT(n&&n.length===e.length?n:hT(e),r);function s(){return Ww(a,e,{ease:Array.isArray(i)?i:pT(e,i)})}let l=s();return{next:u=>(o.value=l(u),o.done=u>=r,o),flipTarget:()=>{e.reverse(),l=s()}}}const fc=.001,vT=.01,Av=10,gT=.05,yT=1;function wT({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;XP(e<=Av*1e3);let a=1-t;a=Ri(gT,yT,a),e=Ri(vT,Av,e/1e3),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,h=Qf(u,a),v=Math.exp(-f);return fc-d/h*v},o=u=>{const f=u*a*e,d=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),g=Qf(Math.pow(u,2),a);return(-i(u)+fc>0?-1:1)*((d-h)*v)/g}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-fc+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=bT(i,o,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const ST=12;function bT(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function CT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Nv(e,OT)&&Nv(e,xT)){const n=wT(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const ET=5;function qw({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let i=e[0],o=e[e.length-1];const a={done:!1,value:i},{stiffness:s,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=CT(r);let h=PT,v=c?-(c/1e3):0;const g=l/(2*Math.sqrt(s*u));function S(){const p=o-i,m=Math.sqrt(s/u)/1e3;if(n===void 0&&(n=Math.min(Math.abs(o-i)/100,.4)),g<1){const y=Qf(m,g);h=w=>{const C=Math.exp(-g*m*w);return o-C*((v+g*m*p)/y*Math.sin(y*w)+p*Math.cos(y*w))}}else if(g===1)h=y=>o-Math.exp(-m*y)*(p+(v+m*p)*y);else{const y=m*Math.sqrt(g*g-1);h=w=>{const C=Math.exp(-g*m*w),O=Math.min(y*w,300);return o-C*((v+g*m*p)*Math.sinh(O)+y*p*Math.cosh(O))/y}}}return S(),{next:p=>{const m=h(p);if(d)a.done=p>=f;else{let y=v;if(p!==0)if(g<1){const O=Math.max(0,p-ET);y=eh(m-h(O),p-O)}else y=0;const w=Math.abs(y)<=t,C=Math.abs(o-m)<=n;a.done=w&&C}return a.value=a.done?o:m,a},flipTarget:()=>{v=-v,[i,o]=[o,i],S()}}}qw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const PT=e=>0;function TT({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a=e[0],s={done:!1,value:a};let l=n*t;const u=a+l,c=o===void 0?u:o(u);return c!==u&&(l=c-a),{next:f=>{const d=-l*Math.exp(-f/r);return s.done=!(d>i||d<-i),s.value=s.done?c:c+d,s},flipTarget:()=>{}}}const _T={decay:TT,keyframes:Xf,tween:Xf,spring:qw};function Xw(e,t,n=0){return e-t-n}function kT(e,t=0,n=0,r=!0){return r?Xw(t+-e,t,n):t-(e-t)+n}function DT(e,t,n,r){return r?e>=t+n:e<=-n}const LT=e=>{const t=({delta:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>er.update(t)}};function ul({duration:e,driver:t=LT,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:f,onUpdate:d,type:h="keyframes",...v}){var g,S;const p=n;let m,y=0,w=e,C=!1,O=!0,P;const E=_T[a.length>2?"keyframes":h]||Xf,N=a[0],I=a[a.length-1];let k={done:!1,value:N};!((S=(g=E).needsInterpolation)===null||S===void 0)&&S.call(g,N,I)&&(P=Ww([0,100],[N,I],{clamp:!1}),a=[0,100]);const L=E({...v,duration:e,keyframes:a});function U(){y++,i==="reverse"?(O=y%2===0,n=kT(n,w,o,O)):(n=Xw(n,w,o),i==="mirror"&&L.flipTarget()),C=!1,f&&f()}function X(){m&&m.stop(),c&&c()}function Z(J){O||(J=-J),n+=J,C||(k=L.next(Math.max(0,n)),P&&(k.value=P(k.value)),C=O?k.done:n<=0),d&&d(k.value),C&&(y===0&&(w=w!==void 0?w:n),y{u&&u(),m&&m.stop()},set currentTime(J){n=p,Z(J)},sample:J=>{n=p;const R=e&&typeof e=="number"?Math.max(e*.5,50):50;let $=0;for(Z(0);$<=J;){const W=J-$;Z(Math.min(W,R)),$+=R}return k}}}function AT(e){return!e||Array.isArray(e)||typeof e=="string"&&Qw[e]}const po=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:po([0,.65,.55,1]),circOut:po([.55,0,1,.45]),backIn:po([.31,.01,.66,-.59]),backOut:po([.33,1.53,.69,.99])};function NT(e){if(e)return Array.isArray(e)?po(e):Qw[e]}function RT(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:i,easing:NT(s),fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Rv={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},dc={},Zw={};for(const e in Rv)Zw[e]=()=>(dc[e]===void 0&&(dc[e]=Rv[e]()),dc[e]);function MT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const jT=new Set(["opacity"]),ts=10;function IT(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Zw.waapi()&&jT.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0))return!1;let{keyframes:a,duration:s=300,elapsed:l=0,ease:u}=i;if(i.type==="spring"||!AT(i.ease)){if(i.repeat===1/0)return;const f=ul({...i,elapsed:0});let d={done:!1,value:a[0]};const h=[];let v=0;for(;!d.done&&v<2e4;)d=f.sample(v),h.push(d.value),v+=ts;a=h,s=v-ts,u="linear"}const c=RT(e.owner.current,t,a,{...i,delay:-l,duration:s,ease:u});return c.onfinish=()=>{e.set(MT(a,i)),r&&r()},{get currentTime(){return c.currentTime||0},set currentTime(f){c.currentTime=f},stop:()=>{const{currentTime:f}=c;if(f){const d=ul({...i,autoplay:!1});e.setWithVelocity(d.sample(f-ts).value,d.sample(f).value,ts)}it.update(()=>c.cancel())}}}function Jw(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(er.read(r),e(o-t))};return it.read(r,!0),()=>er.read(r)}function VT({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const i=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:Jw(i,-t)}:i()}function $T({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:f,onComplete:d,onStop:h}){const v=e[0];let g;function S(w){return n!==void 0&&wr}function p(w){return n===void 0?r:r===void 0||Math.abs(n-w){var O;f==null||f(C),(O=w.onUpdate)===null||O===void 0||O.call(w,C)},onComplete:d,onStop:h})}function y(w){m({type:"spring",stiffness:a,damping:s,restDelta:l,...w})}if(S(v))y({velocity:t,keyframes:[v,p(v)]});else{let w=i*t+v;typeof u<"u"&&(w=u(w));const C=p(w),O=C===n?-1:1;let P,E;const N=I=>{P=E,E=I,t=eh(I-P,vn.delta),(O===1&&I>C||O===-1&&Ig==null?void 0:g.stop()}}const cr=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ns=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pc=()=>({type:"keyframes",ease:"linear",duration:.3}),FT={type:"keyframes",duration:.8},Mv={x:cr,y:cr,z:cr,rotate:cr,rotateX:cr,rotateY:cr,rotateZ:cr,scaleX:ns,scaleY:ns,scale:ns,opacity:pc,backgroundColor:pc,color:pc,default:ns},zT=(e,{keyframes:t})=>t.length>2?FT:(Mv[e]||Mv.default)(t[1]),Zf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&tr.test(t)&&!t.startsWith("url("));function BT({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function jv(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Iv(e){return typeof e=="number"?0:rh("",e)}function eS(e,t){return e[t]||e.default||e}function UT(e,t,n,r){const i=Zf(t,n);let o=r.from!==void 0?r.from:e.get();return o==="none"&&i&&typeof n=="string"?o=rh(t,n):jv(o)&&typeof n=="string"?o=Iv(n):!Array.isArray(n)&&jv(n)&&typeof o=="string"&&(n=Iv(o)),Array.isArray(n)?(n[0]===null&&(n[0]=o),n):[o,n]}const fh=(e,t,n,r={})=>i=>{const o=eS(r,e)||{},a=o.delay||r.delay||0;let{elapsed:s=0}=r;s=s-bs(a);const l=UT(t,e,n,o),u=l[0],c=l[l.length-1],f=Zf(e,u),d=Zf(e,c);let h={keyframes:l,velocity:t.getVelocity(),...o,elapsed:s,onUpdate:S=>{t.set(S),o.onUpdate&&o.onUpdate(S)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!f||!d||QP.current||o.type===!1)return VT(h);if(o.type==="inertia")return $T(h);BT(o)||(h={...h,...zT(e,h)}),h.duration&&(h.duration=bs(h.duration)),h.repeatDelay&&(h.repeatDelay=bs(h.repeatDelay));const v=t.owner,g=v&&v.current;if(v&&g instanceof HTMLElement&&!(v!=null&&v.getProps().onUpdate)){const S=IT(t,e,h);if(S)return S}return ul(h)};function WT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Jf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Jf(e,t,n);else{const i=typeof t=="function"?Kl(e,t,n.custom):t;r=tS(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))}function Jf(e,t,n={}){var r;const i=Kl(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>tS(e,i,n):()=>Promise.resolve(),s=!((r=e.variantChildren)===null||r===void 0)&&r.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return HT(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(c)}else return Promise.all([a(),s(n.delay)])}function tS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(const d in l){const h=e.getValue(d),v=l[d];if(!h||v===void 0||f&&YT(f,d))continue;const g={delay:n,elapsed:0,...a};if(!h.hasAnimated){const p=e.getProps()[qP];p&&(g.elapsed=YP(p,d,h))}let S=h.start(fh(d,h,v,e.shouldReduceMotion&&zr.has(d)?{type:!1}:g));al(u)&&(u.add(d),S=S.then(()=>u.remove(d))),c.push(S)}return Promise.all(c).then(()=>{s&&BP(e,s)})}function HT(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(GT).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Jf(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function GT(e,t){return e.sortNodePosition(t)}function YT({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const dh=[de.Animate,de.InView,de.Focus,de.Hover,de.Tap,de.Drag,de.Exit],KT=[...dh].reverse(),qT=dh.length;function XT(e){return t=>Promise.all(t.map(({animation:n,options:r})=>WT(e,n,r)))}function QT(e){let t=XT(e);const n=JT();let r=!0;const i=(l,u)=>{const c=Kl(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;l={...l,...h,...d}}return l};function o(l){t=l(e)}function a(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let v={},g=1/0;for(let p=0;pg&&C;const I=Array.isArray(w)?w:[w];let k=I.reduce(i,{});O===!1&&(k={});const{prevResolvedValues:L={}}=y,U={...L,...k},X=Z=>{N=!0,h.delete(Z),y.needsAnimating[Z]=!0};for(const Z in U){const H=k[Z],J=L[Z];v.hasOwnProperty(Z)||(H!==J?rl(H)&&rl(J)?!kw(H,J)||E?X(Z):y.protectedKeys[Z]=!0:H!==void 0?X(Z):h.add(Z):H!==void 0&&h.has(Z)?X(Z):y.protectedKeys[Z]=!0)}y.prevProp=w,y.prevResolvedValues=k,y.isActive&&(v={...v,...k}),r&&e.blockInitialAnimation&&(N=!1),N&&!P&&d.push(...I.map(Z=>({animation:Z,options:{type:m,...l}})))}if(h.size){const p={};h.forEach(m=>{const y=e.getBaseTarget(m);y!==void 0&&(p[m]=y)}),d.push({animation:p})}let S=Boolean(d.length);return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function s(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=a(c,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function ZT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kw(t,e):!1}function fr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JT(){return{[de.Animate]:fr(!0),[de.InView]:fr(),[de.Hover]:fr(),[de.Tap]:fr(),[de.Drag]:fr(),[de.Focus]:fr(),[de.Exit]:fr()}}const e9={animation:Fn(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=QT(e)),Bl(t)&&b.useEffect(()=>t.subscribe(e),[t])}),exit:Fn(e=>{const{custom:t,visualElement:n}=e,[r,i]=_w(),o=b.useContext(ga);b.useEffect(()=>{n.isPresent=r;const a=n.animationState&&n.animationState.setActive(de.Exit,!r,{custom:o&&o.custom||t});a&&!r&&a.then(i)},[r])})},Vv=(e,t)=>Math.abs(e-t);function t9(e,t){const n=Vv(e.x,t.x),r=Vv(e.y,t.y);return Math.sqrt(n**2+r**2)}class nS{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=mc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=t9(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=vn;this.history.push({...d,timestamp:h});const{onStart:v,onMove:g}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=hc(c,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=mc(u.type==="pointercancel"?this.lastMoveEventInfo:hc(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!xw(t))return;this.handlers=n,this.transformPagePoint=r;const i=qp(t),o=hc(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=vn;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,mc(o,this.history)),this.removeListeners=Gl(bi(window,"pointermove",this.handlePointerMove),bi(window,"pointerup",this.handlePointerUp),bi(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),er.update(this.updatePoint)}}function hc(e,t){return t?{point:t(e.point)}:e}function $v(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mc({point:e},t){return{point:e,delta:$v(e,rS(t)),offset:$v(e,n9(t)),velocity:r9(t,.1)}}function n9(e){return e[0]}function rS(e){return e[e.length-1]}function r9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>bs(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Et(e){return e.max-e.min}function ed(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fv(e,t,n,r=.5){e.origin=r,e.originPoint=Te(t.min,t.max,e.origin),e.scale=Et(n)/Et(t),(ed(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Te(n.min,n.max,e.origin)-e.originPoint,(ed(e.translate)||isNaN(e.translate))&&(e.translate=0)}function To(e,t,n,r){Fv(e.x,t.x,n.x,r==null?void 0:r.originX),Fv(e.y,t.y,n.y,r==null?void 0:r.originY)}function zv(e,t,n){e.min=n.min+t.min,e.max=e.min+Et(t)}function i9(e,t,n){zv(e.x,t.x,n.x),zv(e.y,t.y,n.y)}function Bv(e,t,n){e.min=t.min-n.min,e.max=e.min+Et(t)}function _o(e,t,n){Bv(e.x,t.x,n.x),Bv(e.y,t.y,n.y)}function o9(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Te(n,e,r.max):Math.min(e,n)),e}function Uv(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 a9(e,{top:t,left:n,bottom:r,right:i}){return{x:Uv(e.x,n,i),y:Uv(e.y,t,r)}}function Wv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ll(t.min,t.max-r,e.min):r>i&&(n=ll(e.min,e.max-i,t.min)),Ri(0,1,n)}function u9(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 td=.35;function c9(e=td){return e===!1?e=0:e===!0&&(e=td),{x:Hv(e,"left","right"),y:Hv(e,"top","bottom")}}function Hv(e,t,n){return{min:Gv(e,t),max:Gv(e,n)}}function Gv(e,t){return typeof e=="number"?e:e[t]||0}const Yv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ko=()=>({x:Yv(),y:Yv()}),Kv=()=>({min:0,max:0}),Ie=()=>({x:Kv(),y:Kv()});function Zt(e){return[e("x"),e("y")]}function iS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function f9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d9(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 vc(e){return e===void 0||e===1}function nd({scale:e,scaleX:t,scaleY:n}){return!vc(e)||!vc(t)||!vc(n)}function mr(e){return nd(e)||oS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function oS(e){return qv(e.x)||qv(e.y)}function qv(e){return e&&e!=="0%"}function cl(e,t,n){const r=e-n,i=t*r;return n+i}function Xv(e,t,n,r,i){return i!==void 0&&(e=cl(e,i,r)),cl(e,n,r)+t}function rd(e,t=0,n=1,r,i){e.min=Xv(e.min,t,n,r,i),e.max=Xv(e.max,t,n,r,i)}function aS(e,{x:t,y:n}){rd(e.x,t.translate,t.scale,t.originPoint),rd(e.y,n.translate,n.scale,n.originPoint)}function p9(e,t,n,r=!1){var i,o;const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function Nn(e,t){e.min=e.min+t,e.max=e.max+t}function Zv(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=Te(e.min,e.max,o);rd(e,t[n],t[r],a,t.scale)}const h9=["x","scaleX","originX"],m9=["y","scaleY","originY"];function pi(e,t){Zv(e.x,t,h9),Zv(e.y,t,m9)}function sS(e,t){return iS(d9(e.getBoundingClientRect(),t))}function v9(e,t,n){const r=sS(e,n),{scroll:i}=t;return i&&(Nn(r.x,i.offset.x),Nn(r.y,i.offset.y)),r}const g9=new WeakMap;class y9{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=Ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=s=>{this.stopAnimation(),n&&this.snapToCursor(qp(s,"page").point)},i=(s,l)=>{var u;const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ew(c),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(h=>{var v,g;let S=this.getAxisMotionValue(h).get()||0;if(rn.test(S)){const p=(g=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||g===void 0?void 0:g.layoutBox[h];p&&(S=Et(p)*(parseFloat(S)/100))}this.originPoint[h]=S}),d==null||d(s,l),(u=this.visualElement.animationState)===null||u===void 0||u.setActive(de.Drag,!0))},o=(s,l)=>{const{dragPropagation:u,dragDirectionLock:c,onDirectionLock:f,onDrag:d}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:h}=l;if(c&&this.currentDirection===null){this.currentDirection=w9(h),this.currentDirection!==null&&(f==null||f(this.currentDirection));return}this.updateAxis("x",l.point,h),this.updateAxis("y",l.point,h),this.visualElement.render(),d==null||d(s,l)},a=(s,l)=>this.stop(s,l);this.panSession=new nS(t,{onSessionStart:r,onStart:i,onMove:o,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==null||o(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(de.Drag,!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!rs(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=o9(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=a9(r.layoutBox,t):this.constraints=!1,this.elastic=c9(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zt(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=u9(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=v9(r,i.root,this.visualElement.getTransformPagePoint());let a=s9(i.layout.layoutBox,o);if(n){const s=n(f9(a));this.hasMutatedConstraints=!!s,s&&(a=iS(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Zt(c=>{if(!rs(c,n,this.currentDirection))return;let f=(l==null?void 0:l[c])||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(fh(t,r,0,n))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n;const r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,((n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])||0)}snapToCursor(t){Zt(n=>{const{drag:r}=this.getProps();if(!rs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-Te(a,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!fi(r)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Zt(s=>{const l=this.getAxisMotionValue(s);if(l){const u=l.get();o[s]=l9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Zt(s=>{if(!rs(s,n,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(Te(u,c,o[s]))})}addListeners(){var t;if(!this.visualElement.current)return;g9.set(this.visualElement,this);const n=this.visualElement.current,r=bi(n,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(u)}),i=()=>{const{dragConstraints:u}=this.getProps();fi(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();const s=Hl(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Zt(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),l==null||l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=td,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function rs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function w9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function S9(e){const{dragControls:t,visualElement:n}=e,r=Wl(()=>new y9(n));b.useEffect(()=>t&&t.subscribe(r),[r,t]),b.useEffect(()=>r.addListeners(),[r])}function b9({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){const o=e||t||n||r,a=b.useRef(null),{transformPagePoint:s}=b.useContext($p),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(c,f)=>{a.current=null,n&&n(c,f)}};b.useEffect(()=>{a.current!==null&&a.current.updateHandlers(l)});function u(c){a.current=new nS(c,l,{transformPagePoint:s})}il(i,"pointerdown",o&&u),Xp(()=>a.current&&a.current.end())}const x9={pan:Fn(b9),drag:Fn(S9)};function id(e){return typeof e=="string"&&e.startsWith("var(--")}const lS=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function O9(e){const t=lS.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function od(e,t,n=1){const[r,i]=O9(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():id(i)?od(i,t,n+1):i}function C9(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(!id(o))return;const a=od(o,r);a&&i.set(a)});for(const i in t){const o=t[i];if(!id(o))continue;const a=od(o,r);a&&(t[i]=a,n&&n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const E9=new Set(["width","height","top","left","right","bottom","x","y"]),uS=e=>E9.has(e),P9=e=>Object.keys(e).some(uS),Jv=e=>e===Br||e===Q;var eg;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(eg||(eg={}));const tg=(e,t)=>parseFloat(e.split(", ")[t]),ng=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return tg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?tg(o[1],e):0}},T9=new Set(["x","y","z"]),_9=tl.filter(e=>!T9.has(e));function k9(e){const t=[];return _9.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 rg={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:ng(4,13),y:ng(5,14)},D9=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=rg[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=rg[u](l,o)}),e},L9=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(uS);let o=[],a=!1;const s=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=no(c);const d=t[l];let h;if(rl(d)){const v=d.length,g=d[0]===null?1:0;c=d[g],f=no(c);for(let S=g;S=0?window.pageYOffset:null,u=D9(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),zl&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function A9(e,t,n,r){return P9(t)?L9(e,t,n,r):{target:t,transitionEnd:r}}const N9=(e,t,n,r)=>{const i=C9(e,t,r);return t=i.target,r=i.transitionEnd,A9(e,t,n,r)},ad={current:null},cS={current:!1};function R9(){if(cS.current=!0,!!zl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ad.current=e.matches;e.addListener(t),t()}else ad.current=!1}function M9(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(gt(o))e.addValue(i,o),al(r)&&r.add(i);else if(gt(a))e.addValue(i,Mi(o,{owner:e})),al(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Mi(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const fS=Object.keys(Zo),j9=fS.length,ig=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class I9{constructor({parent:t,props:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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=()=>it.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ul(n),this.isVariantNode=uw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(n,{});for(const c in u){const f=u[c];a[c]!==void 0&>(f)&&(f.set(a[c],!1),al(l)&&l.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){var n;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(n=this.parent)===null||n===void 0?void 0:n.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),cS.current||R9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ad.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,n,r;(t=this.projection)===null||t===void 0||t.unmount(),er.update(this.notifyUpdate),er.render(this.render),this.valueSubscriptions.forEach(i=>i()),(n=this.removeFromVariantTree)===null||n===void 0||n.call(this),(r=this.parent)===null||r===void 0||r.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,n){const r=zr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&it.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,a,s){const l=[];for(let u=0;uthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:v})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const n=this.props;this.props=t;for(let r=0;rr.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){var n;this.values.delete(t),(n=this.valueSubscriptions.get(t))===null||n===void 0||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=Mi(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=Kp(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&&!gt(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 Jp),this.events[t].add(n)}notify(t,...n){var r;(r=this.events[t])===null||r===void 0||r.notify(...n)}}const dS=["initial",...dh],V9=dS.length;class pS extends I9{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){var r;return(r=t.style)===null||r===void 0?void 0:r[n]}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let a=HP(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){UP(this,r,a);const s=N9(this,r,a,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function $9(e){return window.getComputedStyle(e)}class F9 extends pS{readValueFromInstance(t,n){if(zr.has(n)){const r=nh(n);return r&&r.default||0}else{const r=$9(t),i=(dw(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return sS(t,n)}build(t,n,r,i){Bp(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Yp(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){gw(t,n,r,i)}}class z9 extends pS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){var r;return zr.has(n)?((r=nh(n))===null||r===void 0?void 0:r.default)||0:(n=yw.has(n)?n:Gp(n),t.getAttribute(n))}measureInstanceViewportBox(){return Ie()}scrapeMotionValuesFromProps(t,n){return Sw(t,n)}build(t,n,r,i){Wp(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){ww(t,n,r,i)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const B9=(e,t)=>zp(e)?new z9(t,{enableHardwareAcceleration:!1}):new F9(t,{enableHardwareAcceleration:!0});function og(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ro={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=og(e,t.target.x),r=og(e,t.target.y);return`${n}% ${r}%`}},ag="_$css",U9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),o=[];i&&(e=e.replace(lS,h=>(o.push(h),ag)));const a=tr.parse(e);if(a.length>5)return r;const s=tr.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;const f=Te(u,c,.5);typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f);let d=s(a);if(i){let h=0;d=d.replace(ag,()=>{const v=o[h];return h++,v})}return d}};class W9 extends B.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_E(G9),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()})),Co.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||it.postRender(()=>{var s;!((s=a.getStack())===null||s===void 0)&&s.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n!=null&&n.group&&n.group.remove(i),r!=null&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function H9(e){const[t,n]=_w(),r=b.useContext(Fp);return B.createElement(W9,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(cw),isPresent:t,safeToRemove:n})}const G9={borderRadius:{...ro,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:U9},Y9={measureLayout:H9};function K9(e,t,n={}){const r=gt(e)?e:Mi(e);return r.start(fh("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const hS=["TopLeft","TopRight","BottomLeft","BottomRight"],q9=hS.length,sg=e=>typeof e=="string"?parseFloat(e):e,lg=e=>typeof e=="number"||Q.test(e);function X9(e,t,n,r,i,o){i?(e.opacity=Te(0,n.opacity!==void 0?n.opacity:1,Q9(r)),e.opacityExit=Te(t.opacity!==void 0?t.opacity:1,0,Z9(r))):o&&(e.opacity=Te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(ll(e,t,r))}function cg(e,t){e.min=t.min,e.max=t.max}function $t(e,t){cg(e.x,t.x),cg(e.y,t.y)}function fg(e,t,n,r,i){return e-=t,e=cl(e,1/n,r),i!==void 0&&(e=cl(e,1/i,r)),e}function J9(e,t=0,n=1,r=.5,i,o=e,a=e){if(rn.test(t)&&(t=parseFloat(t),t=Te(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Te(o.min,o.max,r);e===o&&(s-=t),e.min=fg(e.min,t,n,s,i),e.max=fg(e.max,t,n,s,i)}function dg(e,t,[n,r,i],o,a){J9(e,t[n],t[r],t[i],t.scale,o,a)}const e_=["x","scaleX","originX"],t_=["y","scaleY","originY"];function pg(e,t,n,r){dg(e.x,t,e_,n==null?void 0:n.x,r==null?void 0:r.x),dg(e.y,t,t_,n==null?void 0:n.y,r==null?void 0:r.y)}function hg(e){return e.translate===0&&e.scale===1}function vS(e){return hg(e.x)&&hg(e.y)}function gS(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 mg(e){return Et(e.x)/Et(e.y)}class n_{constructor(){this.members=[]}add(t){Qp(this.members,t),t.scheduleRender()}remove(t){if(Zp(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){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function vg(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 a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const r_=(e,t)=>e.depth-t.depth;class i_{constructor(){this.children=[],this.isDirty=!1}add(t){Qp(this.children,t),this.isDirty=!0}remove(t){Zp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(r_),this.isDirty=!1,this.children.forEach(t)}}const gg=["","X","Y","Z"],yg=1e3;let o_=0;function yS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a,s={},l=t==null?void 0:t()){this.id=o_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(l_),this.nodes.forEach(f_),this.nodes.forEach(d_)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let u=0;uthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Jw(h,250),Co.hasAnimatedSinceResize&&(Co.hasAnimatedSinceResize=!1,this.nodes.forEach(Sg))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:v,layout:g})=>{var S,p,m,y,w;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=(p=(S=this.options.transition)!==null&&S!==void 0?S:f.getDefaultTransition())!==null&&p!==void 0?p:g_,{onLayoutAnimationStart:O,onLayoutAnimationComplete:P}=f.getProps(),E=!this.targetLayout||!gS(this.targetLayout,g)||v,N=!h&&v;if(this.options.layoutRoot||!((m=this.resumeFrom)===null||m===void 0)&&m.instance||N||h&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,N);const I={...eS(C,"layout"),onPlay:O,onComplete:P};(f.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else!h&&this.animationProgress===0&&Sg(this),this.isLead()&&((w=(y=this.options).onExitComplete)===null||w===void 0||w.call(y));this.targetLayout=g})}unmount(){var a,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,er.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(p_),this.animationId++)}getTransformTemplate(){var a;return(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate}willUpdate(a=!0){var s,l,u;if(this.root.isUpdateBlocked()){(l=(s=this.options).onExitComplete)===null||l===void 0||l.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{var y;const w=m/1e3;bg(h.x,a.x,w),bg(h.y,a.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((y=this.relativeParent)===null||y===void 0)&&y.layout)&&(_o(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m_(this.relativeTarget,this.relativeTargetOrigin,v,w)),g&&(this.animationValues=d,X9(d,f,this.latestValues,w,p,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l;this.notifyListeners("animationStart"),(s=this.currentAnimation)===null||s===void 0||s.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(er.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{Co.hasAnimatedSinceResize=!0,this.currentAnimation=K9(0,yg,{...a,onUpdate:u=>{var c;this.mixTargetDelta(u),(c=a.onUpdate)===null||c===void 0||c.call(a,u)},onComplete:()=>{var u;(u=a.onComplete)===null||u===void 0||u.call(a),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,yg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&wS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();const f=Et(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=Et(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}$t(s,l),pi(s,c),To(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){var l,u,c;this.sharedNodes.has(a)||this.sharedNodes.set(a,new n_),this.sharedNodes.get(a).add(s),s.promote({transition:(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(c=(u=s.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||c===void 0?void 0:c.call(u,s)})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(wg),this.root.sharedNodes.clear()}}}function a_(e){e.updateLayout()}function s_(e){var t,n,r;const i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=e.layout,{animationType:s}=e.options,l=i.source!==e.layout.source;s==="size"?Zt(h=>{const v=l?i.measuredBox[h]:i.layoutBox[h],g=Et(v);v.min=o[h].min,v.max=v.min+g}):wS(s,i.layoutBox,o)&&Zt(h=>{const v=l?i.measuredBox[h]:i.layoutBox[h],g=Et(o[h]);v.max=v.min+g});const u=ko();To(u,o,i.layoutBox);const c=ko();l?To(c,e.applyTransform(a,!0),i.measuredBox):To(c,o,i.layoutBox);const f=!vS(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:v,layout:g}=h;if(v&&g){const S=Ie();_o(S,i.layoutBox,v.layoutBox);const p=Ie();_o(p,o,g.layoutBox),gS(S,p)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function l_(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function u_(e){e.clearSnapshot()}function wg(e){e.clearMeasurements()}function c_(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function f_(e){e.resolveTargetDelta()}function d_(e){e.calcProjection()}function p_(e){e.resetRotation()}function h_(e){e.removeLeadSnapshot()}function bg(e,t,n){e.translate=Te(t.translate,0,n),e.scale=Te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xg(e,t,n,r){e.min=Te(t.min,n.min,r),e.max=Te(t.max,n.max,r)}function m_(e,t,n,r){xg(e.x,t.x,n.x,r),xg(e.y,t.y,n.y,r)}function v_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const g_={duration:.45,ease:[.4,0,.1,1]};function y_(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function Og(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function w_(e){Og(e.x),Og(e.y)}function wS(e,t,n){return e==="position"||e==="preserve-aspect"&&!ed(mg(t),mg(n),.2)}const S_=yS({attachResizeListener:(e,t)=>Hl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gc={current:void 0},b_=yS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gc.current){const e=new S_(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),gc.current=e}return gc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),x_={...e9,...gP,...x9,...Y9},We=PE((e,t)=>iP(e,t,x_,B9,b_));function SS(){const e=b.useRef(!1);return Js(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function O_(){const e=SS(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>it.postRender(r),[r]),t]}class C_ extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function E_({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:l}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${o}px !important; + height: ${a}px !important; + top: ${s}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),b.createElement(C_,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}const yc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Wl(P_),l=b.useId(),u=b.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return b.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),b.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=b.createElement(E_,{isPresent:n},e)),b.createElement(ga.Provider,{value:u},e)};function P_(){return new Map}const Qr=e=>e.key||"";function T_(e,t){e.forEach(n=>{const r=Qr(n);t.set(r,n)})}function __(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const k_=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait");let[s]=O_();const l=b.useContext(Fp).forceRender;l&&(s=l);const u=SS(),c=__(e);let f=c;const d=new Set,h=b.useRef(f),v=b.useRef(new Map).current,g=b.useRef(!0);if(Js(()=>{g.current=!1,T_(c,v),h.current=f}),Xp(()=>{g.current=!0,v.clear(),d.clear()}),g.current)return b.createElement(b.Fragment,null,f.map(y=>b.createElement(yc,{key:Qr(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},y)));f=[...f];const S=h.current.map(Qr),p=c.map(Qr),m=S.length;for(let y=0;y{if(p.indexOf(y)!==-1)return;const w=v.get(y);if(!w)return;const C=S.indexOf(y),O=()=>{v.delete(y),d.delete(y);const P=h.current.findIndex(E=>E.key===y);if(h.current.splice(P,1),!d.size){if(h.current=c,u.current===!1)return;s(),r&&r()}};f.splice(C,0,b.createElement(yc,{key:Qr(w),isPresent:!1,onExitComplete:O,custom:t,presenceAffectsLayout:o,mode:a},w))}),f=f.map(y=>{const w=y.key;return d.has(w)?y:b.createElement(yc,{key:Qr(y),isPresent:!0,presenceAffectsLayout:o,mode:a},y)}),b.createElement(b.Fragment,null,d.size?f:f.map(y=>b.cloneElement(y)))},D_=({children:e})=>{const t=Fr();return b.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t.pathname]),e};const ph=({givenClass:e,title:t,linkData:n})=>q("div",{className:`${e?e+"-title":""} section-title`,children:[x("h2",{children:t}),n?x(xe,{to:n.link,children:n.title}):null]});var On={},L_={get exports(){return On},set exports(e){On=e}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,v=d||h||Function("return this")(),g=Object.prototype.toString,S=Math.max,p=Math.min,m=function(){return v.Date.now()};function y(C){var O=typeof C;return!!C&&(O=="object"||O=="function")}function w(C){if(typeof C=="number")return C;if(function(E){return typeof E=="symbol"||function(N){return!!N&&typeof N=="object"}(E)&&g.call(E)=="[object Symbol]"}(C))return NaN;if(y(C)){var O=typeof C.valueOf=="function"?C.valueOf():C;C=y(O)?O+"":O}if(typeof C!="string")return C===0?C:+C;C=C.replace(s,"");var P=u.test(C);return P||c.test(C)?f(C.slice(2),P?2:8):l.test(C)?NaN:+C}i.exports=function(C,O,P){var E,N,I,k,L,U,X=0,Z=!1,H=!1,J=!0;if(typeof C!="function")throw new TypeError("Expected a function");function R(ie){var je=E,_e=N;return E=N=void 0,X=ie,k=C.apply(_e,je)}function $(ie){return X=ie,L=setTimeout(ee,O),Z?R(ie):k}function W(ie){var je=ie-U;return U===void 0||je>=O||je<0||H&&ie-X>=I}function ee(){var ie=m();if(W(ie))return te(ie);L=setTimeout(ee,function(je){var _e=O-(je-U);return H?p(_e,I-(je-X)):_e}(ie))}function te(ie){return L=void 0,J&&E?R(ie):(E=N=void 0,k)}function Me(){var ie=m(),je=W(ie);if(E=arguments,N=this,U=ie,je){if(L===void 0)return $(U);if(H)return L=setTimeout(ee,O),R(U)}return L===void 0&&(L=setTimeout(ee,O)),k}return O=w(O)||0,y(P)&&(Z=!!P.leading,I=(H="maxWait"in P)?S(w(P.maxWait)||0,O):I,J="trailing"in P?!!P.trailing:J),Me.cancel=function(){L!==void 0&&clearTimeout(L),X=0,E=U=N=L=void 0},Me.flush=function(){return L===void 0?k:te(m())},Me}},96:(i,o,a)=>{var s="Expected a function",l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,g=h||v||Function("return this")(),S=Object.prototype.toString,p=Math.max,m=Math.min,y=function(){return g.Date.now()};function w(O){var P=typeof O;return!!O&&(P=="object"||P=="function")}function C(O){if(typeof O=="number")return O;if(function(N){return typeof N=="symbol"||function(I){return!!I&&typeof I=="object"}(N)&&S.call(N)=="[object Symbol]"}(O))return NaN;if(w(O)){var P=typeof O.valueOf=="function"?O.valueOf():O;O=w(P)?P+"":P}if(typeof O!="string")return O===0?O:+O;O=O.replace(l,"");var E=c.test(O);return E||f.test(O)?d(O.slice(2),E?2:8):u.test(O)?NaN:+O}i.exports=function(O,P,E){var N=!0,I=!0;if(typeof O!="function")throw new TypeError(s);return w(E)&&(N="leading"in E?!!E.leading:N,I="trailing"in E?!!E.trailing:I),function(k,L,U){var X,Z,H,J,R,$,W=0,ee=!1,te=!1,Me=!0;if(typeof k!="function")throw new TypeError(s);function ie(Le){var ft=X,un=Z;return X=Z=void 0,W=Le,J=k.apply(un,ft)}function je(Le){return W=Le,R=setTimeout(yt,L),ee?ie(Le):J}function _e(Le){var ft=Le-$;return $===void 0||ft>=L||ft<0||te&&Le-W>=H}function yt(){var Le=y();if(_e(Le))return Yr(Le);R=setTimeout(yt,function(ft){var un=L-(ft-$);return te?m(un,H-(ft-W)):un}(Le))}function Yr(Le){return R=void 0,Me&&X?ie(Le):(X=Z=void 0,J)}function Tn(){var Le=y(),ft=_e(Le);if(X=arguments,Z=this,$=Le,ft){if(R===void 0)return je($);if(te)return R=setTimeout(yt,L),ie($)}return R===void 0&&(R=setTimeout(yt,L)),J}return L=C(L)||0,w(U)&&(ee=!!U.leading,H=(te="maxWait"in U)?p(C(U.maxWait)||0,L):H,Me="trailing"in U?!!U.trailing:Me),Tn.cancel=function(){R!==void 0&&clearTimeout(R),W=0,X=$=Z=R=void 0},Tn.flush=function(){return R===void 0?J:Yr(y())},Tn}(O,P,{leading:N,maxWait:P,trailing:I})}},703:(i,o,a)=>{var s=a(414);function l(){}function u(){}u.resetWarningCache=l,i.exports=function(){function c(h,v,g,S,p,m){if(m!==s){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function f(){return c}c.isRequired=c;var d={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:l};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return n.d(o,{a:o}),o},n.d=(i,o)=>{for(var a in o)n.o(o,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>Zh,LazyLoadImage:()=>Nx,trackWindowScroll:()=>ee});const i=b;var o=n.n(i),a=n(697);const s=Ao;var l=n.n(s);function u(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(M){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function f(M,_){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);_&&(F=F.filter(function(Be){return Object.getOwnPropertyDescriptor(M,Be).enumerable})),z.push.apply(z,F)}return z}function d(M,_,z){return _ in M?Object.defineProperty(M,_,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[_]=z,M}function h(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function v(M,_){return(v=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function g(M,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function S(M){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var p=function(M){M.forEach(function(_){_.isIntersecting&&_.target.onVisible()})},m={},y=function(M){(function(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&v(A,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=S(F);if(Be){var Y=S(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return g(this,A)});function fe(A){var j;if(function(K,ne){if(!(K instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,fe),(j=Yt.call(this,A)).supportsObserver=!A.scrollPosition&&A.useIntersectionObserver&&u(),j.supportsObserver){var Y=A.threshold;j.observer=function(K){return m[K]=m[K]||new IntersectionObserver(p,{rootMargin:K+"px"}),m[K]}(Y)}return j}return _=fe,(z=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,j=this.placeholder.getBoundingClientRect(),Y=l().findDOMNode(this.placeholder).style,K={left:parseInt(Y.getPropertyValue("margin-left"),10)||0,top:parseInt(Y.getPropertyValue("margin-top"),10)||0};return{bottom:A.y+j.bottom+K.top,left:A.x+j.left+K.left,right:A.x+j.right+K.left,top:A.y+j.top+K.top}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,j=A.scrollPosition,Y=A.threshold,K=this.getPlaceholderBoundingBox(j),ne=j.y+window.innerHeight,ce=j.x,Se=j.x+window.innerWidth,be=j.y;return Boolean(be-Y<=K.bottom&&ne+Y>=K.top&&ce-Y<=K.right&&Se+Y>=K.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,j=this.props,Y=j.className,K=j.height,ne=j.placeholder,ce=j.style,Se=j.width;if(ne&&typeof ne.type!="function")return o().cloneElement(ne,{ref:function(he){return A.placeholder=he}});var be=function(he){for(var Ye=1;Ye"u"?0:window.scrollX||window.pageXOffset},W=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const ee=function(M){var _=function(z){(function(Y,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Y.prototype=Object.create(K&&K.prototype,{constructor:{value:Y,writable:!0,configurable:!0}}),K&&Z(Y,K)})(j,z);var F,Be,Yt,fe,A=(Yt=j,fe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Y,K=R(Yt);if(fe){var ne=R(this).constructor;Y=Reflect.construct(K,arguments,ne)}else Y=K.apply(this,arguments);return H(this,Y)});function j(Y){var K;if(function(ce,Se){if(!(ce instanceof Se))throw new TypeError("Cannot call a class as a function")}(this,j),(K=A.call(this,Y)).useIntersectionObserver=Y.useIntersectionObserver&&u(),K.useIntersectionObserver)return H(K);var ne=K.onChangeScroll.bind(J(K));return Y.delayMethod==="debounce"?K.delayedScroll=O()(ne,Y.delayTime):Y.delayMethod==="throttle"&&(K.delayedScroll=E()(ne,Y.delayTime)),K.state={scrollPosition:{x:$(),y:W()}},K.baseComponentRef=o().createRef(),K}return F=j,(Be=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||I(l().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=I(l().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:$(),y:W()}})}},{key:"render",value:function(){var Y=this.props,K=(Y.delayMethod,Y.delayTime,function(ce,Se){if(ce==null)return{};var be,he,Ye=function(Ze,qr){if(Ze==null)return{};var ur,Ra,rm={},im=Object.keys(Ze);for(Ra=0;Ra=0||(rm[ur]=Ze[ur]);return rm}(ce,Se);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ce);for(he=0;he=0||Object.prototype.propertyIsEnumerable.call(ce,be)&&(Ye[be]=ce[be])}return Ye}(Y,L)),ne=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(M,U({forwardRef:this.baseComponentRef,scrollPosition:ne},K))}}])&&X(F.prototype,Be),j}(o().Component);return _.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},_.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},_};function te(M){return(te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function Me(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function ie(M,_){return(ie=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function je(M,_){if(_&&(te(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function _e(M){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var yt=function(M){(function(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&ie(A,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=_e(F);if(Be){var Y=_e(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return je(this,A)});function fe(A){return function(j,Y){if(!(j instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,fe),Yt.call(this,A)}return _=fe,(z=[{key:"render",value:function(){return o().createElement(w,this.props)}}])&&Me(_.prototype,z),fe}(o().Component);const Yr=ee(yt);function Tn(M){return(Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function Le(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function ft(M,_){return(ft=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function un(M,_){if(_&&(Tn(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Na(M)}function Na(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Ae(M){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var Kr=function(M){(function(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&ft(A,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=Ae(F);if(Be){var Y=Ae(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return un(this,A)});function fe(A){var j;(function(Se,be){if(!(Se instanceof be))throw new TypeError("Cannot call a class as a function")})(this,fe),j=Yt.call(this,A);var Y=A.afterLoad,K=A.beforeLoad,ne=A.scrollPosition,ce=A.visibleByDefault;return j.state={visible:ce},ce&&(K(),Y()),j.onVisible=j.onVisible.bind(Na(j)),j.isScrollTracked=Boolean(ne&&Number.isFinite(ne.x)&&ne.x>=0&&Number.isFinite(ne.y)&&ne.y>=0),j}return _=fe,(z=[{key:"componentDidUpdate",value:function(A,j){j.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,j=A.className,Y=A.delayMethod,K=A.delayTime,ne=A.height,ce=A.placeholder,Se=A.scrollPosition,be=A.style,he=A.threshold,Ye=A.useIntersectionObserver,Ne=A.width;return this.isScrollTracked||Ye&&u()?o().createElement(w,{className:j,height:ne,onVisible:this.onVisible,placeholder:ce,scrollPosition:Se,style:be,threshold:he,useIntersectionObserver:Ye,width:Ne}):o().createElement(Yr,{className:j,delayMethod:Y,delayTime:K,height:ne,onVisible:this.onVisible,placeholder:ce,style:be,threshold:he,width:Ne})}}])&&Le(_.prototype,z),fe}(o().Component);Kr.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Kr.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const Zh=Kr;function Jh(M){return(Jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}var kx=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function em(M,_){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);_&&(F=F.filter(function(Be){return Object.getOwnPropertyDescriptor(M,Be).enumerable})),z.push.apply(z,F)}return z}function tm(M){for(var _=1;_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,j=Du(F);if(Be){var Y=Du(this).constructor;A=Reflect.construct(j,arguments,Y)}else A=j.apply(this,arguments);return Ax(this,A)});function fe(A){var j;return function(Y,K){if(!(Y instanceof K))throw new TypeError("Cannot call a class as a function")}(this,fe),(j=Yt.call(this,A)).state={loaded:!1},j}return _=fe,(z=[{key:"onImageLoad",value:function(){var A=this;return this.state.loaded?null:function(){A.props.afterLoad(),A.setState({loaded:!0})}}},{key:"getImg",value:function(){var A=this.props,j=(A.afterLoad,A.beforeLoad,A.delayMethod,A.delayTime,A.effect,A.placeholder,A.placeholderSrc,A.scrollPosition,A.threshold,A.useIntersectionObserver,A.visibleByDefault,A.wrapperClassName,A.wrapperProps,function(Y,K){if(Y==null)return{};var ne,ce,Se=function(he,Ye){if(he==null)return{};var Ne,Ze,qr={},ur=Object.keys(he);for(Ze=0;Ze=0||(qr[Ne]=he[Ne]);return qr}(Y,K);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(Y);for(ce=0;ce=0||Object.prototype.propertyIsEnumerable.call(Y,ne)&&(Se[ne]=Y[ne])}return Se}(A,kx));return o().createElement("img",ku({onLoad:this.onImageLoad()},j))}},{key:"getLazyLoadImage",value:function(){var A=this.props,j=A.beforeLoad,Y=A.className,K=A.delayMethod,ne=A.delayTime,ce=A.height,Se=A.placeholder,be=A.scrollPosition,he=A.style,Ye=A.threshold,Ne=A.useIntersectionObserver,Ze=A.visibleByDefault,qr=A.width;return o().createElement(Zh,{beforeLoad:j,className:Y,delayMethod:K,delayTime:ne,height:ce,placeholder:Se,scrollPosition:be,style:he,threshold:Ye,useIntersectionObserver:Ne,visibleByDefault:Ze,width:qr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var j=this.props,Y=j.effect,K=j.height,ne=j.placeholderSrc,ce=j.width,Se=j.wrapperClassName,be=j.wrapperProps,he=this.state.loaded,Ye=he?" lazy-load-image-loaded":"",Ne=he||!ne?{}:{backgroundImage:"url(".concat(ne,")"),backgroundSize:"100% 100%"};return o().createElement("span",ku({className:Se+" lazy-load-image-background "+Y+Ye,style:tm(tm({},Ne),{},{color:"transparent",display:"inline-block",height:K,width:ce})},be),A)}},{key:"render",value:function(){var A=this.props,j=A.effect,Y=A.placeholderSrc,K=A.visibleByDefault,ne=A.wrapperClassName,ce=A.wrapperProps,Se=this.getLazyLoadImage();return(j||Y)&&!K||ne||ce?this.getWrappedLazyLoadImage(Se):Se}}])&&Lx(_.prototype,z),fe}(o().Component);Lu.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},Lu.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const Nx=Lu})(),L_.exports=r})();const bS=({title:e})=>x("p",{className:"news-category",children:e}),xS=({date:e})=>x("h3",{className:"news-date",children:e}),io=({title:e,date:t,img:n,category:r,link:i})=>x(xe,{to:i,className:"aside-news",children:q("div",{className:"aside-news-wrapper",children:[x("div",{className:"aside-news-image",children:x(On.LazyLoadImage,{src:n,alt:"image",useIntersectionObserver:!0,effect:"blur"})}),x("div",{className:"aside-news-info",children:q("div",{className:"aside-news-info-inner",children:[q("div",{className:"aside-news-status",children:[x(bS,{title:r}),x(xS,{date:t})]}),x("h2",{className:"aside-news-title",children:e})]})})]})});var T={},A_={get exports(){return T},set exports(e){T=e}},N_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",R_=N_,M_=R_;function OS(){}function CS(){}CS.resetWarningCache=OS;var j_=function(){function e(r,i,o,a,s,l){if(l!==M_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:CS,resetWarningCache:OS};return n.PropTypes=n,n};A_.exports=j_();function ES(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t-1}function sk(e,t){var n=this.__data__,r=Xl(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ui.prototype.clear=rk;Ui.prototype.delete=ik;Ui.prototype.get=ok;Ui.prototype.has=ak;Ui.prototype.set=sk;function Ur(e){var t=-1,n=e?e.length:0;for(this.clear();++t1&&arguments[1]!==void 0?arguments[1]:n,a=e(i)+o;return t(a)}}function ba(e){return function(n){return new Date(e(n).getTime()-1)}}function xa(e){return function(n){return e.map(function(r){return r(n)})}}function we(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;var t=parseInt(e,10);if(typeof e=="string"&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function sr(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function Zl(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function Oa(e){var t=we(e),n=t+(-t+1)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var Ck=En(we,Oa,-100),MS=En(we,Oa,100),vh=ba(MS),Ek=En(we,vh,-100),jS=xa([Oa,vh]);function Wr(e){var t=we(e),n=t+(-t+1)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var IS=En(we,Wr,-10),gh=En(we,Wr,10),Jl=ba(gh),VS=En(we,Jl,-10),$S=xa([Wr,Jl]);function Ca(e){var t=we(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var FS=En(we,Ca,-1),yh=En(we,Ca,1),eu=ba(yh),zS=En(we,eu,-1),Pk=xa([Ca,eu]);function wh(e,t){return function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=we(r),a=sr(r)+i,s=new Date;return s.setFullYear(o,a,1),s.setHours(0,0,0,0),e(s)}}function Wi(e){var t=we(e),n=sr(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var BS=wh(Wi,-1),Sh=wh(Wi,1),Ea=ba(Sh),US=wh(Ea,-1),Tk=xa([Wi,Ea]);function _k(e,t){return function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=we(r),a=sr(r),s=Zl(r)+i,l=new Date;return l.setFullYear(o,a,s),l.setHours(0,0,0,0),e(l)}}function tu(e){var t=we(e),n=sr(e),r=Zl(e),i=new Date;return i.setFullYear(t,n,r),i.setHours(0,0,0,0),i}var kk=_k(tu,1),bh=ba(kk),Dk=xa([tu,bh]);function WS(e){return Zl(Ea(e))}var oo;function Lk(e){return Mk(e)||Rk(e)||Nk(e)||Ak()}function Ak(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nk(e,t){if(e){if(typeof e=="string")return sd(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 sd(e,t)}}function Rk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mk(e){if(Array.isArray(e))return sd(e)}function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=e.getDay();switch(t){case De.ISO_8601:return(n+6)%7;case De.ARABIC:return(n+1)%7;case De.HEBREW:case De.US:return n;default:throw new Error("Unsupported calendar type.")}}function Zk(e){var t=Oa(e);return we(t)}function Jk(e){var t=Wr(e);return we(t)}function ld(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=we(e),r=sr(e),i=e.getDate()-na(e,t);return new Date(n,r,i)}function eD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=t===De.US?De.US:De.ISO_8601,r=ld(e,t),i=we(e)+1,o,a;do o=new Date(i,0,n===De.ISO_8601?4:1),a=ld(o,t),i-=1;while(e1&&arguments[1]!==void 0?arguments[1]:nu,n=arguments.length>2?arguments[2]:void 0;return n.map(function(r){return t(e,r)}).join(" – ")}function sD(e,t,n){return KS(e,t,jS(n))}function qS(e,t,n){return KS(e,t,$S(n))}function XS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=e.getDay();switch(t){case De.ARABIC:case De.HEBREW:return n===Qk||n===Pg;case De.ISO_8601:case De.US:return n===Pg||n===Xk;default:throw new Error("Unsupported calendar type.")}}function ji(e){return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}var lD=Object.values(De),QS=["century","decade","year","month"],Pa=T.oneOf(lD),fl=T.oneOfType([T.string,T.arrayOf(T.string)]),Oh=function(t,n,r){var i=t[n];if(!i)return null;if(!(i instanceof Date))return new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=t.maxDate;return o&&i>o?new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, minDate cannot be larger than maxDate.")):null},Ch=function(t,n,r){var i=t[n];if(!i)return null;if(!(i instanceof Date))return new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=t.minDate;return o&&i0,$=H!=="century",W=tD(H,t),ee=$&&nD(H,t),te=GS(H,t),Me=$&&rD(H,t),ie=function(){if(W.getFullYear()<0)return!0;var Ae=iD(H,t);return u&&u>=Ae}(),je=$&&function(){if(ee.getFullYear()<0)return!0;var Ae=oD(H,t);return u&&u>=Ae}(),_e=l&&l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function kg(e){return"".concat(e,"%")}function ru(e){var t=e.children,n=e.className,r=e.direction,i=e.count,o=e.offset,a=e.style,s=e.wrap,l=pD(e,fD);return B.createElement("div",ud({className:n,style:xc({display:"flex",flexDirection:r,flexWrap:s?"wrap":"no-wrap"},a)},l),B.Children.map(t,function(u,c){return B.cloneElement(u,xc(xc({},u.props),{},{style:{flexBasis:kg(100/i),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:o&&c===0?kg(100*o/i):null}}))}))}ru.propTypes={children:T.node,className:T.string,count:T.number.isRequired,direction:T.string,offset:T.number,style:T.objectOf(T.oneOfType([T.string,T.number])),wrap:T.bool};function Dg(e){return yD(e)||gD(e)||vD(e)||mD()}function mD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e,t){if(e){if(typeof e=="string")return cd(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 cd(e,t)}}function gD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yD(e){if(Array.isArray(e))return cd(e)}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?t:n&&n=e}function SD(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function eb(e,t){return ia(e[0],t)||ia(e[1],t)}function Lg(e,t,n){var r=eb(t,e),i=[];if(r){i.push(n);var o=ia(e[0],t),a=ia(e[1],t);o&&i.push("".concat(n,"Start")),a&&i.push("".concat(n,"End")),o&&a&&i.push("".concat(n,"BothEnds"))}return i}function bD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.value,n=e.valueType,r=e.date,i=e.dateType,o=e.hover,a="react-calendar__tile",s=[a];if(!r)return s;if(!Array.isArray(r)&&!i)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var l=new Date,u=Array.isArray(r)?r:Tg(i,r);if(ia(l,u)&&s.push("".concat(a,"--now")),!t)return s;if(!Array.isArray(t)&&!n)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var c=Array.isArray(t)?t:Tg(n,t);SD(c,u)?s.push("".concat(a,"--active")):eb(c,u)&&s.push("".concat(a,"--hasActive"));var f=Lg(c,u,"".concat(a,"--range"));s.push.apply(s,Dg(f));var d=[].concat(t);if(o&&d.length===1){var h=o>c[0]?[c[0],o]:[o,c[0]],v=Lg(h,u,"".concat(a,"--hover"));s.push.apply(s,Dg(v))}return s}var xD=["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"];function Ag(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 Ng(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ED(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function ka(e){for(var t=e.className,n=e.count,r=n===void 0?3:n,i=e.dateTransform,o=e.dateType,a=e.end,s=e.hover,l=e.offset,u=e.start,c=e.step,f=c===void 0?1:c,d=e.tile,h=e.value,v=e.valueType,g=CD(e,xD),S=[],p=u;p<=a;p+=f){var m=i(p);S.push(B.createElement(d,fd({key:m.getTime(),classes:bD({value:h,valueType:v,date:m,dateType:o,hover:s}),date:m,point:p},g)))}return B.createElement(ru,{className:t,count:r,offset:l,wrap:!0},S)}ka.propTypes=Ng(Ng({},Ta),{},{activeStartDate:T.instanceOf(Date),count:T.number,dateTransform:T.func.isRequired,dateType:T.string,offset:T.number,step:T.number,tile:T.func.isRequired});function dd(e){return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function Rg(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 Mg(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dl(e)}function nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ig(e,t){return e&&!t||!e&&t||e&&t&&e.getTime()!==t.getTime()}function Vg(e,t){var n=e.activeStartDate,r=e.date,i=e.view;return typeof t=="function"?t({activeStartDate:n,date:r,view:i}):t}var Da=function(e){_D(n,e);var t=kD(n);function n(){var r;PD(this,n);for(var i=arguments.length,o=new Array(i),a=0;al||f&&d(f)=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var jD="react-calendar__century-view__decades__decade";function rb(e){var t=e.classes,n=e.formatYear,r=n===void 0?nu:n,i=RD(e,AD),o=i.date,a=i.locale;return B.createElement(Da,hd({},i,{classes:[].concat(t,jD),maxDateTransform:Jl,minDateTransform:Wr,view:"century"}),qS(a,r,o))}rb.propTypes=Fg(Fg({},_a),{},{formatYear:T.func});function zg(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 ID(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var WD="react-calendar__decade-view__years__year";function ob(e){var t=e.classes,n=e.formatYear,r=n===void 0?nu:n,i=BD(e,FD),o=i.date,a=i.locale;return B.createElement(Da,vd({},i,{classes:[].concat(t,WD),maxDateTransform:eu,minDateTransform:Ca,view:"decade"}),r(a,o))}ob.propTypes=Ug(Ug({},_a),{},{formatYear:T.func});function Wg(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 HD(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var ZD="react-calendar__year-view__months__month";function sb(e){var t=e.classes,n=e.formatMonth,r=n===void 0?Yk:n,i=e.formatMonthYear,o=i===void 0?HS:i,a=XD(e,KD),s=a.date,l=a.locale;return B.createElement(Da,yd({},a,{classes:[].concat(t,ZD),formatAbbr:o,maxDateTransform:Ea,minDateTransform:Wi,view:"year"}),r(l,s))}sb.propTypes=Gg(Gg({},_a),{},{formatMonth:T.func,formatMonthYear:T.func});function Yg(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 Kg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Oc="react-calendar__month-view__days__day";function ub(e){var t=e.formatDay,n=t===void 0?Hk:t,r=e.formatLongDate,i=r===void 0?Gk:r,o=e.calendarType,a=e.classes,s=e.currentMonthIndex,l=r3(e,t3),u=l.date,c=l.locale;return B.createElement(Da,Sd({},l,{classes:[].concat(a,Oc,XS(u,o)?"".concat(Oc,"--weekend"):null,u.getMonth()!==s?"".concat(Oc,"--neighboringMonth"):null),formatAbbr:i,maxDateTransform:bh,minDateTransform:tu,view:"month"}),n(c,u))}ub.propTypes=Xg(Xg({},_a),{},{currentMonthIndex:T.number.isRequired,formatDay:T.func,formatLongDate:T.func});var o3=["showFixedNumberOfWeeks","showNeighboringMonth"];function Qg(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 a3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function cb(e){var t=e.activeStartDate,n=e.calendarType,r=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,o=l3(e,o3),a=we(t),s=sr(t),l=r||i,u=na(t,n),c=l?0:u,f=(l?-u:0)+1,d=function(){if(r)return f+6*7-1;var h=WS(t);if(i){var v=new Date;v.setFullYear(a,s,h),v.setHours(0,0,0,0);var g=7-na(v,n)-1;return h+g}return h}();return B.createElement(ka,bd({},o,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:s,dateTransform:function(v){var g=new Date;return g.setFullYear(a,s,v),g.setHours(0,0,0,0),g},dateType:"day",end:d,offset:c,start:f,tile:ub}))}cb.propTypes=a3({calendarType:Pa.isRequired,showFixedNumberOfWeeks:T.bool,showNeighboringMonth:T.bool},Ta);var fb="react-calendar__month-view__weekdays",Zg="".concat(fb,"__weekday");function db(e){for(var t=e.calendarType,n=e.formatShortWeekday,r=n===void 0?Kk:n,i=e.formatWeekday,o=i===void 0?qk:i,a=e.locale,s=e.onMouseLeave,l=new Date,u=Wi(l),c=we(u),f=sr(u),d=[],h=1;h<=7;h+=1){var v=new Date(c,f,h-na(u,t)),g=o(a,v);d.push(B.createElement("div",{key:h,className:ql(Zg,XS(v,t)&&"".concat(Zg,"--weekend"))},B.createElement("abbr",{"aria-label":g,title:g},r(a,v).replace(".",""))))}return B.createElement(ru,{className:fb,count:7,onFocus:s,onMouseOver:s},d)}db.propTypes={calendarType:Pa.isRequired,formatShortWeekday:T.func,formatWeekday:T.func,locale:T.string,onMouseLeave:T.func};var c3=["date","onClickWeekNumber","weekNumber"];function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var m3="react-calendar__tile";function pb(e){var t=e.date,n=e.onClickWeekNumber,r=e.weekNumber,i=p3(e,c3),o=f3({className:m3},i),a=B.createElement("span",null,r);return n?B.createElement("button",xd({},o,{onClick:function(l){return n(r,t,l)},type:"button"}),a):B.createElement("div",o,a)}pb.propTypes={date:T.instanceOf(Date).isRequired,onClickWeekNumber:T.func,weekNumber:T.node.isRequired};function hb(e){var t=e.activeStartDate,n=e.calendarType,r=e.onClickWeekNumber,i=e.onMouseLeave,o=e.showFixedNumberOfWeeks,a=function(){if(o)return 6;var u=WS(t),c=na(t,n),f=u-(7-c);return 1+Math.ceil(f/7)}(),s=function(){for(var u=we(t),c=sr(t),f=Zl(t),d=[],h=0;h=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function w3(e){return Object.keys(Eg).find(function(t){return Eg[t].includes(e)})||De.ISO_8601}function mb(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,i=e.showFixedNumberOfWeeks,o=e.calendarType,a=o===void 0?w3(n):o,s=e.formatShortWeekday,l=e.formatWeekday,u=e.onClickWeekNumber,c=e.showWeekNumbers,f=g3(e,v3);function d(){return B.createElement(db,{calendarType:a,formatShortWeekday:s,formatWeekday:l,locale:n,onMouseLeave:r})}function h(){return c?B.createElement(hb,{activeStartDate:t,calendarType:a,onClickWeekNumber:u,onMouseLeave:r,showFixedNumberOfWeeks:i}):null}function v(){return B.createElement(cb,Od({calendarType:a},f))}var g="react-calendar__month-view";return B.createElement("div",{className:ql(g,c?"".concat(g,"--weekNumbers"):"")},B.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},h(),B.createElement("div",{style:{flexGrow:1,width:"100%"}},d(),v())))}mb.propTypes={activeStartDate:T.instanceOf(Date).isRequired,calendarType:Pa,formatShortWeekday:T.func,formatWeekday:T.func,locale:T.string,onClickWeekNumber:T.func,onMouseLeave:T.func,showFixedNumberOfWeeks:T.bool,showWeekNumbers:T.bool};var S3=["activeStartDate","defaultActiveStartDate","defaultValue","defaultView","maxDetail","minDetail","value","view"];function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pl(e){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pl(e)}function ty(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 Ed(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function k3(e){return N3(e)||A3(e)||L3(e)||D3()}function D3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L3(e,t){if(e){if(typeof e=="string")return Pd(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 Pd(e,t)}}function A3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N3(e){if(Array.isArray(e))return Pd(e)}function Pd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}},{key:"getProcessedValue",value:function(i){var o=this.props,a=o.minDate,s=o.maxDate,l=o.maxDetail,u=o.returnValue,c=function(){switch(u){case"start":return Th;case"end":return wb;case"range":return $3;default:throw new Error("Invalid returnValue.")}}();return c({value:i,minDate:a,maxDate:s,maxDetail:l})}},{key:"renderContent",value:function(i){var o=this.activeStartDate,a=this.onMouseOver,s=this.valueType,l=this.value,u=this.view,c=this.props,f=c.calendarType,d=c.locale,h=c.maxDate,v=c.minDate,g=c.selectRange,S=c.tileClassName,p=c.tileContent,m=c.tileDisabled,y=this.hover,w=i?GS(u,o):Or(u,o),C=this.drillDownAvailable?this.drillDown:this.onChange,O={activeStartDate:w,hover:y,locale:d,maxDate:h,minDate:v,onClick:C,onMouseOver:g?a:null,tileClassName:S,tileContent:p,tileDisabled:m,value:l,valueType:s};switch(u){case"century":{var P=this.props.formatYear;return B.createElement($D,hi({formatYear:P},O))}case"decade":{var E=this.props.formatYear;return B.createElement(YD,hi({formatYear:E},O))}case"year":{var N=this.props,I=N.formatMonth,k=N.formatMonthYear;return B.createElement(e3,hi({formatMonth:I,formatMonthYear:k},O))}case"month":{var L=this.props,U=L.formatDay,X=L.formatLongDate,Z=L.formatShortWeekday,H=L.formatWeekday,J=L.onClickWeekNumber,R=L.showDoubleView,$=L.showFixedNumberOfWeeks,W=L.showNeighboringMonth,ee=L.showWeekNumbers,te=this.onMouseLeave;return B.createElement(mb,hi({calendarType:f,formatDay:U,formatLongDate:X,formatShortWeekday:Z,formatWeekday:H,onClickWeekNumber:J,onMouseLeave:g?te:null,showFixedNumberOfWeeks:typeof $<"u"?$:R,showNeighboringMonth:W,showWeekNumbers:ee},O))}default:throw new Error("Invalid view: ".concat(u,"."))}}},{key:"renderNavigation",value:function(){var i=this.props.showNavigation;if(!i)return null;var o=this.activeStartDate,a=this.view,s=this.views,l=this.props,u=l.formatMonthYear,c=l.formatYear,f=l.locale,d=l.maxDate,h=l.minDate,v=l.navigationAriaLabel,g=l.navigationAriaLive,S=l.navigationLabel,p=l.next2AriaLabel,m=l.next2Label,y=l.nextAriaLabel,w=l.nextLabel,C=l.prev2AriaLabel,O=l.prev2Label,P=l.prevAriaLabel,E=l.prevLabel,N=l.showDoubleView;return B.createElement(JS,{activeStartDate:o,drillUp:this.drillUp,formatMonthYear:u,formatYear:c,locale:f,maxDate:d,minDate:h,navigationAriaLabel:v,navigationAriaLive:g,navigationLabel:S,next2AriaLabel:p,next2Label:m,nextAriaLabel:y,nextLabel:w,prev2AriaLabel:C,prev2Label:O,prevAriaLabel:P,prevLabel:E,setActiveStartDate:this.setActiveStartDate,showDoubleView:N,view:a,views:s})}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.inputRef,s=i.selectRange,l=i.showDoubleView,u=this.onMouseLeave,c=this.value,f=[].concat(c);return B.createElement("div",{className:ql(is,s&&f.length===1&&"".concat(is,"--selectRange"),l&&"".concat(is,"--doubleView"),o),ref:a},this.renderNavigation(),B.createElement("div",{className:"".concat(is,"__viewContainer"),onBlur:s?u:null,onMouseLeave:s?u:null},this.renderContent(),l&&this.renderContent(!0)))}}]),n}(b.Component);_h.defaultProps={goToRangeStartOnSelect:!0,maxDate:R3,maxDetail:"month",minDate:Eh,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var ny=T.instanceOf(Date),ry=T.oneOfType([T.string,ZS]);_h.propTypes={activeStartDate:ny,allowPartialRange:T.bool,calendarType:Pa,className:fl,defaultActiveStartDate:ny,defaultValue:ry,defaultView:ra,formatDay:T.func,formatLongDate:T.func,formatMonth:T.func,formatMonthYear:T.func,formatShortWeekday:T.func,formatWeekday:T.func,formatYear:T.func,goToRangeStartOnSelect:T.bool,inputRef:uD,locale:T.string,maxDate:Ch,maxDetail:T.oneOf(Cr),minDate:Oh,minDetail:T.oneOf(Cr),navigationAriaLabel:T.string,navigationAriaLive:T.oneOf(["off","polite","assertive"]),navigationLabel:T.func,next2AriaLabel:T.string,next2Label:T.node,nextAriaLabel:T.string,nextLabel:T.node,onActiveStartDateChange:T.func,onChange:T.func,onClickDay:T.func,onClickDecade:T.func,onClickMonth:T.func,onClickWeekNumber:T.func,onClickYear:T.func,onDrillDown:T.func,onDrillUp:T.func,onViewChange:T.func,prev2AriaLabel:T.string,prev2Label:T.node,prevAriaLabel:T.string,prevLabel:T.node,returnValue:T.oneOf(["start","end","range"]),selectRange:T.bool,showDoubleView:T.bool,showFixedNumberOfWeeks:T.bool,showNavigation:T.bool,showNeighboringMonth:T.bool,showWeekNumbers:T.bool,tileClassName:T.oneOfType([T.func,fl]),tileContent:T.oneOfType([T.func,T.node]),tileDisabled:T.func,value:ry,view:ra};const z3=()=>{const[e,t]=b.useState(new Date);return x("div",{className:"calendar",children:x(On.LazyLoadComponent,{useIntersectionObserver:!0,children:x(_h,{value:e,onChange:t})})})},kh=()=>q("div",{className:"aside",children:[q("div",{className:"aside-wrapper",children:[x(ph,{title:"Самое читаемое"}),q("div",{className:"aside-inner",children:[x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""})]})]}),x("div",{className:"aside-calendar",children:x(z3,{})})]});let os;const B3=new Uint8Array(16);function U3(){if(!os&&(os=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!os))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return os(B3)}const Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).slice(1));function W3(e,t=0){return(Ke[e[t+0]]+Ke[e[t+1]]+Ke[e[t+2]]+Ke[e[t+3]]+"-"+Ke[e[t+4]]+Ke[e[t+5]]+"-"+Ke[e[t+6]]+Ke[e[t+7]]+"-"+Ke[e[t+8]]+Ke[e[t+9]]+"-"+Ke[e[t+10]]+Ke[e[t+11]]+Ke[e[t+12]]+Ke[e[t+13]]+Ke[e[t+14]]+Ke[e[t+15]]).toLowerCase()}const H3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iy={randomUUID:H3};function ln(e,t,n){if(iy.randomUUID&&!t&&!e)return iy.randomUUID();e=e||{};const r=e.random||(e.rng||U3)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return W3(r)}var Td={},G3={get exports(){return Td},set exports(e){Td=e}},bb={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ii=b;function Y3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var K3=typeof Object.is=="function"?Object.is:Y3,q3=Ii.useState,X3=Ii.useEffect,Q3=Ii.useLayoutEffect,Z3=Ii.useDebugValue;function J3(e,t){var n=t(),r=q3({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Q3(function(){i.value=n,i.getSnapshot=t,Ec(i)&&o({inst:i})},[e,n,t]),X3(function(){return Ec(i)&&o({inst:i}),e(function(){Ec(i)&&o({inst:i})})},[e]),Z3(n),n}function Ec(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!K3(e,n)}catch{return!0}}function e4(e,t){return t()}var t4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?e4:J3;bb.useSyncExternalStore=Ii.useSyncExternalStore!==void 0?Ii.useSyncExternalStore:t4;(function(e){e.exports=bb})(G3);var _d={},n4={get exports(){return _d},set exports(e){_d=e}},xb={};/** + * @license React + * use-sync-external-store-shim/with-selector.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 iu=b,r4=Td;function i4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var o4=typeof Object.is=="function"?Object.is:i4,a4=r4.useSyncExternalStore,s4=iu.useRef,l4=iu.useEffect,u4=iu.useMemo,c4=iu.useDebugValue;xb.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=s4(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=u4(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return f=v}return f=h}if(v=f,o4(c,h))return v;var g=r(h);return i!==void 0&&i(v,g)?v:(c=h,f=g)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var s=a4(e,o[0],o[1]);return l4(function(){a.hasValue=!0,a.value=s},[s]),c4(s),s};(function(e){e.exports=xb})(n4);function f4(e){e()}let Ob=f4;const d4=e=>Ob=e,p4=()=>Ob,nr=b.createContext(null);function Cb(){return b.useContext(nr)}const h4=()=>{throw new Error("uSES not initialized!")};let Eb=h4;const m4=e=>{Eb=e},v4=(e,t)=>e===t;function g4(e=nr){const t=e===nr?Cb:()=>b.useContext(e);return function(r,i=v4){const{store:o,subscription:a,getServerState:s}=t(),l=Eb(a.addNestedSub,o.getState,s||o.getState,r,i);return b.useDebugValue(l),l}}const sn=g4();var kd={},y4={get exports(){return kd},set exports(e){kd=e}},le={};/** @license React v16.13.1 + * react-is.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 Ge=typeof Symbol=="function"&&Symbol.for,Dh=Ge?Symbol.for("react.element"):60103,Lh=Ge?Symbol.for("react.portal"):60106,ou=Ge?Symbol.for("react.fragment"):60107,au=Ge?Symbol.for("react.strict_mode"):60108,su=Ge?Symbol.for("react.profiler"):60114,lu=Ge?Symbol.for("react.provider"):60109,uu=Ge?Symbol.for("react.context"):60110,Ah=Ge?Symbol.for("react.async_mode"):60111,cu=Ge?Symbol.for("react.concurrent_mode"):60111,fu=Ge?Symbol.for("react.forward_ref"):60112,du=Ge?Symbol.for("react.suspense"):60113,w4=Ge?Symbol.for("react.suspense_list"):60120,pu=Ge?Symbol.for("react.memo"):60115,hu=Ge?Symbol.for("react.lazy"):60116,S4=Ge?Symbol.for("react.block"):60121,b4=Ge?Symbol.for("react.fundamental"):60117,x4=Ge?Symbol.for("react.responder"):60118,O4=Ge?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dh:switch(e=e.type,e){case Ah:case cu:case ou:case su:case au:case du:return e;default:switch(e=e&&e.$$typeof,e){case uu:case fu:case hu:case pu:case lu:return e;default:return t}}case Lh:return t}}}function Pb(e){return kt(e)===cu}le.AsyncMode=Ah;le.ConcurrentMode=cu;le.ContextConsumer=uu;le.ContextProvider=lu;le.Element=Dh;le.ForwardRef=fu;le.Fragment=ou;le.Lazy=hu;le.Memo=pu;le.Portal=Lh;le.Profiler=su;le.StrictMode=au;le.Suspense=du;le.isAsyncMode=function(e){return Pb(e)||kt(e)===Ah};le.isConcurrentMode=Pb;le.isContextConsumer=function(e){return kt(e)===uu};le.isContextProvider=function(e){return kt(e)===lu};le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dh};le.isForwardRef=function(e){return kt(e)===fu};le.isFragment=function(e){return kt(e)===ou};le.isLazy=function(e){return kt(e)===hu};le.isMemo=function(e){return kt(e)===pu};le.isPortal=function(e){return kt(e)===Lh};le.isProfiler=function(e){return kt(e)===su};le.isStrictMode=function(e){return kt(e)===au};le.isSuspense=function(e){return kt(e)===du};le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ou||e===cu||e===su||e===au||e===du||e===w4||typeof e=="object"&&e!==null&&(e.$$typeof===hu||e.$$typeof===pu||e.$$typeof===lu||e.$$typeof===uu||e.$$typeof===fu||e.$$typeof===b4||e.$$typeof===x4||e.$$typeof===O4||e.$$typeof===S4)};le.typeOf=kt;(function(e){e.exports=le})(y4);var Tb=kd,C4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_b={};_b[Tb.ForwardRef]=C4;_b[Tb.Memo]=E4;var oy={},P4={get exports(){return oy},set exports(e){oy=e}},ue={};/** + * @license React + * react-is.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 Nh=Symbol.for("react.element"),Rh=Symbol.for("react.portal"),mu=Symbol.for("react.fragment"),vu=Symbol.for("react.strict_mode"),gu=Symbol.for("react.profiler"),yu=Symbol.for("react.provider"),wu=Symbol.for("react.context"),T4=Symbol.for("react.server_context"),Su=Symbol.for("react.forward_ref"),bu=Symbol.for("react.suspense"),xu=Symbol.for("react.suspense_list"),Ou=Symbol.for("react.memo"),Cu=Symbol.for("react.lazy"),_4=Symbol.for("react.offscreen"),kb;kb=Symbol.for("react.module.reference");function It(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nh:switch(e=e.type,e){case mu:case gu:case vu:case bu:case xu:return e;default:switch(e=e&&e.$$typeof,e){case T4:case wu:case Su:case Cu:case Ou:case yu:return e;default:return t}}case Rh:return t}}}ue.ContextConsumer=wu;ue.ContextProvider=yu;ue.Element=Nh;ue.ForwardRef=Su;ue.Fragment=mu;ue.Lazy=Cu;ue.Memo=Ou;ue.Portal=Rh;ue.Profiler=gu;ue.StrictMode=vu;ue.Suspense=bu;ue.SuspenseList=xu;ue.isAsyncMode=function(){return!1};ue.isConcurrentMode=function(){return!1};ue.isContextConsumer=function(e){return It(e)===wu};ue.isContextProvider=function(e){return It(e)===yu};ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nh};ue.isForwardRef=function(e){return It(e)===Su};ue.isFragment=function(e){return It(e)===mu};ue.isLazy=function(e){return It(e)===Cu};ue.isMemo=function(e){return It(e)===Ou};ue.isPortal=function(e){return It(e)===Rh};ue.isProfiler=function(e){return It(e)===gu};ue.isStrictMode=function(e){return It(e)===vu};ue.isSuspense=function(e){return It(e)===bu};ue.isSuspenseList=function(e){return It(e)===xu};ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mu||e===gu||e===vu||e===bu||e===xu||e===_4||typeof e=="object"&&e!==null&&(e.$$typeof===Cu||e.$$typeof===Ou||e.$$typeof===yu||e.$$typeof===wu||e.$$typeof===Su||e.$$typeof===kb||e.getModuleId!==void 0)};ue.typeOf=It;(function(e){e.exports=ue})(P4);function k4(){const e=p4();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const ay={notify(){},get:()=>[]};function D4(e,t){let n,r=ay;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=k4())}function u(){n&&(n(),n=void 0,r.clear(),r=ay)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const L4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A4=L4?b.useLayoutEffect:b.useEffect;function N4({store:e,context:t,children:n,serverState:r}){const i=b.useMemo(()=>{const s=D4(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=b.useMemo(()=>e.getState(),[e]);A4(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||nr;return B.createElement(a.Provider,{value:i},n)}function Db(e=nr){const t=e===nr?Cb:()=>b.useContext(e);return function(){const{store:r}=t();return r}}const R4=Db();function M4(e=nr){const t=e===nr?R4:Db(e);return function(){return t().dispatch}}const Gr=M4();m4(_d.useSyncExternalStoreWithSelector);d4(Ao.unstable_batchedUpdates);const Lb=({id:e,title:t,text:n,categories:r,date:i,img:o})=>x(xe,{to:`/news/${e}`,children:q("div",{className:"news-wrapper",children:[x("div",{className:"news-image",children:x(On.LazyLoadImage,{src:o,alt:"image",useIntersectionObserver:!0,effect:"blur"})}),x("div",{className:"news-info",children:q("div",{className:"news-info-inner",children:[x("h2",{className:"news-title",children:t}),q("div",{className:"news-status",children:[x("div",{className:"news-status-left",children:r.map(a=>x(bS,{title:a.name},ln()))}),x("div",{className:"news-status-right",children:x(xS,{date:i})})]}),x("div",{className:"news-text",dangerouslySetInnerHTML:{__html:n}})]})})]})});var j4={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function I4(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return j4[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Pc(e){var t=I4(e);return"".concat(t.value).concat(t.unit)}var V4=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a=` + @keyframes `.concat(r,` { + `).concat(t,` + } + `);return o&&o.insertRule(a,0),r},hl=globalThis&&globalThis.__assign||function(){return hl=Object.assign||function(e){for(var t,n=1,r=arguments.length;nx("div",{className:"loader",children:x(z4,{color:"#38a39d",loading:!0,cssOverride:{display:"block",margin:"10 auto",borderColor:"red",height:"100%"},"aria-label":"loader","data-testid":"loader"})}),Hi="https://turkmenistaninfo.gov.tm/app/api/v1";function Ab(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nb}=Object.prototype,{getPrototypeOf:Mh}=Object,jh=(e=>t=>{const n=Nb.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>jh(t)===e),Eu=e=>t=>typeof t===e,{isArray:Gi}=Array,aa=Eu("undefined");function B4(e){return e!==null&&!aa(e)&&e.constructor!==null&&!aa(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rb=Pn("ArrayBuffer");function U4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rb(e.buffer),t}const W4=Eu("string"),Ar=Eu("function"),Mb=Eu("number"),Ih=e=>e!==null&&typeof e=="object",H4=e=>e===!0||e===!1,xs=e=>{if(jh(e)!=="object")return!1;const t=Mh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},G4=Pn("Date"),Y4=Pn("File"),K4=Pn("Blob"),q4=Pn("FileList"),X4=e=>Ih(e)&&Ar(e.pipe),Q4=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Nb.call(e)===t||Ar(e.toString)&&e.toString()===t)},Z4=Pn("URLSearchParams"),J4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function La(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Gi(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ib=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vb=e=>!aa(e)&&e!==Ib;function Dd(){const{caseless:e}=Vb(this)&&this||{},t={},n=(r,i)=>{const o=e&&jb(t,i)||i;xs(t[o])&&xs(r)?t[o]=Dd(t[o],r):xs(r)?t[o]=Dd({},r):Gi(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(La(t,(i,o)=>{n&&Ar(i)?e[o]=Ab(i,n):e[o]=i},{allOwnKeys:r}),e),t8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),n8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},r8=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Mh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},o8=e=>{if(!e)return null;if(Gi(e))return e;let t=e.length;if(!Mb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},a8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mh(Uint8Array)),s8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},l8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},u8=Pn("HTMLFormElement"),c8=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),sy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),f8=Pn("RegExp"),$b=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};La(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},d8=e=>{$b(e,(t,n)=>{if(Ar(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ar(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},p8=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Gi(e)?r(e):r(String(e).split(t)),n},h8=()=>{},m8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),v8=e=>{const t=new Array(10),n=(r,i)=>{if(Ih(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Gi(r)?[]:{};return La(r,(a,s)=>{const l=n(a,i+1);!aa(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},D={isArray:Gi,isArrayBuffer:Rb,isBuffer:B4,isFormData:Q4,isArrayBufferView:U4,isString:W4,isNumber:Mb,isBoolean:H4,isObject:Ih,isPlainObject:xs,isUndefined:aa,isDate:G4,isFile:Y4,isBlob:K4,isRegExp:f8,isFunction:Ar,isStream:X4,isURLSearchParams:Z4,isTypedArray:a8,isFileList:q4,forEach:La,merge:Dd,extend:e8,trim:J4,stripBOM:t8,inherits:n8,toFlatObject:r8,kindOf:jh,kindOfTest:Pn,endsWith:i8,toArray:o8,forEachEntry:s8,matchAll:l8,isHTMLForm:u8,hasOwnProperty:sy,hasOwnProp:sy,reduceDescriptors:$b,freezeMethods:d8,toObjectSet:p8,toCamelCase:c8,noop:h8,toFiniteNumber:m8,findKey:jb,global:Ib,isContextDefined:Vb,toJSONObject:v8};function oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fb=oe.prototype,zb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zb[e]={value:e}});Object.defineProperties(oe,zb);Object.defineProperty(Fb,"isAxiosError",{value:!0});oe.from=(e,t,n,r,i,o)=>{const a=Object.create(Fb);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),oe.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var g8=typeof self=="object"?self.FormData:window.FormData;const y8=g8;function Ld(e){return D.isPlainObject(e)||D.isArray(e)}function Bb(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function ly(e,t,n){return e?e.concat(t).map(function(i,o){return i=Bb(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function w8(e){return D.isArray(e)&&!e.some(Ld)}const S8=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function b8(e){return e&&D.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Pu(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new(y8||FormData),n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!D.isUndefined(S[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b8(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(D.isDate(v))return v.toISOString();if(!l&&D.isBlob(v))throw new oe("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(v)||D.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,S){let p=v;if(v&&!S&&typeof v=="object"){if(D.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(D.isArray(v)&&w8(v)||D.isFileList(v)||D.endsWith(g,"[]")&&(p=D.toArray(v)))return g=Bb(g),p.forEach(function(y,w){!(D.isUndefined(y)||y===null)&&t.append(a===!0?ly([g],w,o):a===null?g:g+"[]",u(y))}),!1}return Ld(v)?!0:(t.append(ly(S,g,o),u(v)),!1)}const f=[],d=Object.assign(S8,{defaultVisitor:c,convertValue:u,isVisitable:Ld});function h(v,g){if(!D.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),D.forEach(v,function(p,m){(!(D.isUndefined(p)||p===null)&&i.call(t,p,D.isString(m)?m.trim():m,g,d))===!0&&h(p,g?g.concat(m):[m])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return h(e),t}function uy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vh(e,t){this._pairs=[],e&&Pu(e,this,t)}const Ub=Vh.prototype;Ub.append=function(t,n){this._pairs.push([t,n])};Ub.toString=function(t){const n=t?function(r){return t.call(this,r,uy)}:uy;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function x8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wb(e,t,n){if(!t)return e;const r=n&&n.encode||x8,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Vh(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class O8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cy=O8,Hb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C8=typeof URLSearchParams<"u"?URLSearchParams:Vh,E8=FormData,P8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),T8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),en={isBrowser:!0,classes:{URLSearchParams:C8,FormData:E8,Blob},isStandardBrowserEnv:P8,isStandardBrowserWebWorkerEnv:T8,protocols:["http","https","file","blob","url","data"]};function _8(e,t){return Pu(e,new en.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return en.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function k8(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function D8(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=D8(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(k8(r),i,n,0)}),n}return null}const L8={"Content-Type":void 0};function A8(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tu={transitional:Hb,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i&&i?JSON.stringify(Gb(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _8(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Pu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),A8(t)):t}],transformResponse:[function(t){const n=this.transitional||Tu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?oe.from(s,oe.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};D.forEach(["delete","get","head"],function(t){Tu.headers[t]={}});D.forEach(["post","put","patch"],function(t){Tu.headers[t]=D.merge(L8)});const $h=Tu,N8=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R8=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&N8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fy=Symbol("internals");function ao(e){return e&&String(e).trim().toLowerCase()}function Os(e){return e===!1||e==null?e:D.isArray(e)?e.map(Os):String(e)}function M8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function j8(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function dy(e,t,n,r){if(D.isFunction(r))return r.call(this,t,n);if(D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function I8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function V8(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class _u{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=ao(l);if(!c)throw new Error("header name must be a non-empty string");const f=D.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Os(s))}const a=(s,l)=>D.forEach(s,(u,c)=>o(u,c,l));return D.isPlainObject(t)||t instanceof this.constructor?a(t,n):D.isString(t)&&(t=t.trim())&&!j8(t)?a(R8(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=ao(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return M8(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ao(t),t){const r=D.findKey(this,t);return!!(r&&(!n||dy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=ao(a),a){const s=D.findKey(r,a);s&&(!n||dy(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=Os(i),delete n[o];return}const s=t?I8(o):String(o).trim();s!==o&&delete n[o],n[s]=Os(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fy]=this[fy]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=ao(a);r[s]||(V8(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}}_u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);D.freezeMethods(_u.prototype);D.freezeMethods(_u);const gn=_u;function Tc(e,t){const n=this||$h,r=t||n,i=gn.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Yb(e){return!!(e&&e.__CANCEL__)}function Aa(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Aa,oe,{__CANCEL__:!0});const $8=null;function F8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const z8=en.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),D.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),D.isString(o)&&l.push("path="+o),D.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function B8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function U8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Kb(e,t){return e&&!B8(t)?U8(e,t):t}const W8=en.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function H8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function G8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Y8=typeof XMLHttpRequest<"u",K8=Y8&&function(e){return new Promise(function(n,r){let i=e.data;const o=gn.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}D.isFormData(i)&&(en.isStandardBrowserEnv||en.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+v))}const c=Kb(e.baseURL,e.url);u.open(e.method.toUpperCase(),Wb(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=gn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};F8(function(p){n(p),l()},function(p){r(p),l()},g),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new oe("Request aborted",oe.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new oe("Network Error",oe.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Hb;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new oe(v,g.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,u)),u=null},en.isStandardBrowserEnv){const h=(e.withCredentials||W8(c))&&e.xsrfCookieName&&z8.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&D.forEach(o.toJSON(),function(v,g){u.setRequestHeader(g,v)}),D.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",py(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",py(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{u&&(r(!h||h.type?new Aa(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const d=H8(c);if(d&&en.protocols.indexOf(d)===-1){r(new oe("Unsupported protocol "+d+":",oe.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Cs={http:$8,xhr:K8};D.forEach(Cs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const q8={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof gn?e.toJSON():e;function Vi(e,t){t=t||{};const n={};function r(u,c,f){return D.isPlainObject(u)&&D.isPlainObject(c)?D.merge.call({caseless:f},u,c):D.isPlainObject(c)?D.merge({},c):D.isArray(c)?c.slice():c}function i(u,c,f){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!D.isUndefined(c))return r(void 0,c)}function a(u,c){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(my(u),my(c),!0)};return D.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);D.isUndefined(d)&&f!==s||(n[c]=d)}),n}const qb="1.2.3",Fh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vy={};Fh.transitional=function(t,n,r){function i(o,a){return"[Axios v"+qb+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new oe(i(a," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!vy[a]&&(vy[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function X8(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new oe("option "+o+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+o,oe.ERR_BAD_OPTION)}}const Ad={assertOptions:X8,validators:Fh},kn=Ad.validators;class ml{constructor(t){this.defaults=t,this.interceptors={request:new cy,response:new cy}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Ad.assertOptions(r,{silentJSONParsing:kn.transitional(kn.boolean),forcedJSONParsing:kn.transitional(kn.boolean),clarifyTimeoutError:kn.transitional(kn.boolean)},!1),i!==void 0&&Ad.assertOptions(i,{encode:kn.function,serialize:kn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=o&&D.merge(o.common,o[n.method]),a&&D.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=gn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const v=[hy.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Aa(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new zh(function(i){t=i}),cancel:t}}}const Q8=zh;function Z8(e){return function(n){return e.apply(null,n)}}function J8(e){return D.isObject(e)&&e.isAxiosError===!0}const Nd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nd).forEach(([e,t])=>{Nd[t]=e});const eL=Nd;function Xb(e){const t=new Es(e),n=Ab(Es.prototype.request,t);return D.extend(n,Es.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Xb(Vi(e,i))},n}const ze=Xb($h);ze.Axios=Es;ze.CanceledError=Aa;ze.CancelToken=Q8;ze.isCancel=Yb;ze.VERSION=qb;ze.toFormData=Pu;ze.AxiosError=oe;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=Z8;ze.isAxiosError=J8;ze.mergeConfig=Vi;ze.AxiosHeaders=gn;ze.formToJSON=e=>Gb(D.isHTMLForm(e)?new FormData(e):e);ze.HttpStatusCode=eL;ze.default=ze;const tL=ze,nL=(e,t,n)=>{if(t=t+`?${e.name}=${e.value.toLowerCase()}`,!n)return t;let r="";return n.forEach(i=>{r=r+`&${i.name}=${i.value}`}),t+r};class lr{constructor(t,n){Ma(this,"url","");Ma(this,"params");Ma(this,"language",sn(t=>t.language.title));this.url=t,this.params=n}get(t,n){const r={name:"locale",value:this.language};tL.get(nL(r,this.url,this.params)).then(i=>{n(i.data)}).catch(i=>{throw new Error(i)})}}const rL=[{name:"count",value:5},{name:"page",value:1}],iL=[{name:"count",value:5},{name:"page",value:1}],oL=[{name:"count",value:5},{name:"page",value:1},{name:"featured",value:"true"}],gy=e=>({type:"SET_NEWS_SCROLL",payload:e}),yy=e=>({type:"SET_SEARCH_DATA",payload:e}),aL=e=>({type:"SET_POST",payload:e}),sL=e=>({type:"SET_FEATURED",payload:e}),Qb=({title:e,category:t})=>{const n=rL.slice();t&&n.push({name:"category",value:t});const r=new lr(Hi+"/posts",n),i=r.language,[o,a]=b.useState(i),s=sn(f=>f.newsScroll.data),l=Gr();b.useEffect(()=>{r.get(s,f=>l(gy(f))),a(i)},[t]),b.useEffect(()=>{s.length>0&&(s[0].id>-1&&o===i||(r.get(s,f=>l(gy(f))),a(i)))},[i,o]);const[u,c]=b.useState(s);return b.useEffect(()=>{const f=s.filter((d,h)=>{if(h>0)return d});c(f)},[s]),x("div",{className:"news-scroll",children:q("div",{className:"news-scroll-wrapper",children:[e===!0?x(ph,{title:"Лента новостей",linkData:{link:"/all/null",title:"Посмотреть все"}}):null,x("div",{className:"news-scroll-inner",children:u.length>0?u[0].id>-1?u.map((f,d)=>x(Lb,{id:f.id,title:f.title,text:f.excerpt,date:f.published_at,categories:f.categories,img:f.featured_images[0]?f.featured_images[0].path:""},ln())):x(Lr,{}):x("p",{className:"scroll-empty",children:"Нет новостей в этой категории"})})]})})},Zr=({type:e="small",img:t,title:n,id:r})=>q("div",{className:`main-content-item main-content-item__${e}`,children:[x(On.LazyLoadImage,{src:t,alt:"",effect:"blur",useIntersectionObserver:!0}),x(xe,{to:`/news/${r}`,className:"main-content-item-overlay",children:x("h2",{children:n})})]});function wy(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Bh(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:wy(t[n])&&wy(e[n])&&Object.keys(t[n]).length>0&&Bh(e[n],t[n])})}const Zb={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function on(){const e=typeof document<"u"?document:{};return Bh(e,Zb),e}const lL={document:Zb,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Dt(){const e=typeof window<"u"?window:{};return Bh(e,lL),e}function uL(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Rd(e,t=0){return setTimeout(e,t)}function sa(){return Date.now()}function cL(e){const t=Dt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function fL(e,t="x"){const n=Dt();let r,i,o;const a=cL(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function as(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function dL(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function bt(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;rn.indexOf(a)<0);for(let a=0,s=o.length;ai?"next":"prev",u=(f,d)=>l==="next"&&f>=d||l==="prev"&&f<=d,c=()=>{a=new Date().getTime(),o===null&&(o=a);const f=Math.max(Math.min((a-o)/s,1),0),d=.5-Math.cos(f*Math.PI)/2;let h=i+d*(t-i);if(u(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),u(h,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function yn(e,t=""){return[...e.children].filter(n=>n.matches(t))}function ex(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function pL(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function hL(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function zn(e,t){return Dt().getComputedStyle(e,null).getPropertyValue(t)}function rr(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function tx(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Md(e,t,n){const r=Dt();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let kc;function mL(){const e=Dt(),t=on();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function nx(){return kc||(kc=mL()),kc}let Dc;function vL({userAgent:e}={}){const t=nx(),n=Dt(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let u=i.match(/(iPad).*OS\s([\d_]+)/);const c=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=r==="Win32";let h=r==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&t.touch&&v.indexOf(`${a}x${s}`)>=0&&(u=i.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),l&&!d&&(o.os="android",o.android=!0),(u||f||c)&&(o.os="ios",o.ios=!0),o}function gL(e={}){return Dc||(Dc=vL(e)),Dc}let Lc;function yL(){const e=Dt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function wL(){return Lc||(Lc=yL()),Lc}function SL({swiper:e,on:t,emit:n}){const r=Dt();let i=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(c=>{o=r.requestAnimationFrame(()=>{const{width:f,height:d}=e;let h=f,v=d;c.forEach(({contentBoxSize:g,contentRect:S,target:p})=>{p&&p!==e.el||(h=S?S.width:(g[0]||g).inlineSize,v=S?S.height:(g[0]||g).blockSize)}),(h!==f||v!==d)&&a()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){s();return}r.addEventListener("resize",a),r.addEventListener("orientationchange",u)}),t("destroy",()=>{l(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",u)})}function bL({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Dt(),a=(u,c={})=>{const f=o.MutationObserver||o.WebkitMutationObserver,d=new f(h=>{if(h.length===1){r("observerUpdate",h[0]);return}const v=function(){r("observerUpdate",h[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});d.observe(u,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),i.push(d)},s=()=>{if(e.params.observer){if(e.params.observeParents){const u=tx(e.el);for(let c=0;c{i.forEach(u=>{u.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",l)}const xL={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(i,[a,...r])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(s=>{s.apply(i,r)})}),t}};function OL(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(zn(r,"padding-left")||0,10)-parseInt(zn(r,"padding-right")||0,10),n=n-parseInt(zn(r,"padding-top")||0,10)-parseInt(zn(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function CL(){const e=this;function t(k){return e.isHorizontal()?k:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[k]}function n(k,L){return parseFloat(k.getPropertyValue(t(L))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:l}=e,u=e.virtual&&r.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,f=yn(o,`.${e.params.slideClass}, swiper-slide`),d=u?e.virtual.slides.length:f.length;let h=[];const v=[],g=[];let S=r.slidesOffsetBefore;typeof S=="function"&&(S=r.slidesOffsetBefore.call(e));let p=r.slidesOffsetAfter;typeof p=="function"&&(p=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,y=e.slidesGrid.length;let w=r.spaceBetween,C=-S,O=0,P=0;if(typeof a>"u")return;typeof w=="string"&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*a),e.virtualSize=-w,f.forEach(k=>{s?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(ss(i,"--swiper-centered-offset-before",""),ss(i,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(d);let N;const I=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(k=>typeof r.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&h.push(e.virtualSize-a)}if(u&&r.loop){const k=g[0]+w;if(r.slidesPerGroup>1){const L=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=k*r.slidesPerGroup;for(let X=0;X!r.cssMode||r.loop?!0:U!==f.length-1).forEach(L=>{L.style[k]=`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let k=0;g.forEach(U=>{k+=U+(r.spaceBetween?r.spaceBetween:0)}),k-=r.spaceBetween;const L=k-a;h=h.map(U=>U<0?-S:U>L?L+p:U)}if(r.centerInsufficientSlides){let k=0;if(g.forEach(L=>{k+=L+(r.spaceBetween?r.spaceBetween:0)}),k-=r.spaceBetween,k{h[X]=U-L}),v.forEach((U,X)=>{v[X]=U+L})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:v,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){ss(i,"--swiper-centered-offset-before",`${-h[0]}px`),ss(i,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const k=-e.snapGrid[0],L=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+k),e.slidesGrid=e.slidesGrid.map(U=>U+L)}if(d!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==y&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const k=`${r.containerModifierClass}backface-hidden`,L=e.el.classList.contains(k);d<=r.maxBackfaceHiddenSlides?L||e.el.classList.add(k):L&&e.el.classList.remove(k)}}function EL(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=s=>r?t.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===s)[0]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(o=0;ot.slides.length&&!r)break;n.push(a(s))}else n.push(a(t.activeIndex));for(o=0;oi?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function PL(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.forEach(s=>{s.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s=0&&d1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(s),r[s].classList.add(n.slideVisibleClass)),l.progress=i?-c:c,l.originalProgress=i?-f:f}}function _L(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,u=a;if(r===0)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;o=c||i<=0,a=f||i>=1,c&&(i=0),f&&(i=1)}if(n.loop){const c=rr(t.slides.filter(S=>S.getAttribute("data-swiper-slide-index")==="0")[0]),f=rr(t.slides.filter(S=>S.getAttribute("data-swiper-slide-index")*1===t.slides.length-1)[0]),d=t.slidesGrid[c],h=t.slidesGrid[f],v=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=d?s=(g-d)/v:s=(g+v-h)/v,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}function kL(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=l=>yn(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${l}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(n.slideActiveClass);let l=hL(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let u=pL(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}function DL(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o=t[o]&&r=t[o]&&r=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function LL(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l=e,u;const c=d=>{let h=d-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=DL(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const d=Math.min(i.slidesPerGroupSkip,l);u=d+Math.floor((l-d)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===o){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(l));return}let f;t.virtual&&i.virtual.enabled&&i.loop?f=c(l):t.slides[l]?f=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(t,{snapIndex:u,realIndex:f,previousIndex:o,activeIndex:l}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function AL(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let a=0;al?c=l:r&&eo?a="next":i=l.length&&(S=l.length-1);const p=-l[S];if(s.normalizeSlideIndex)for(let y=0;y=C&&w=C&&w=C&&(a=y)}if(o.initialized&&a!==f&&(!o.allowSlideNext&&po.translate&&p>o.maxTranslate()&&(f||0)!==a))return!1;a!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let m;if(a>f?m="next":a0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[y?"scrollLeft":"scrollTop"]=w})):h[y?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Jb({swiper:o,targetPosition:w,side:y?"left":"top"}),!0;h.scrollTo({[y?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(p),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,m),t===0?o.transitionEnd(n,m):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,m))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function HL(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=rr(i.slides.filter(a=>a.getAttribute("data-swiper-slide-index")*1===o)[0])),i.slideTo(o,t,n,r)}function GL(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndexd(p));let g=o[v.indexOf(h)-1];if(typeof g>"u"&&i.cssMode){let p;o.forEach((m,y)=>{h>=m&&(p=y)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let S=0;if(typeof g<"u"&&(S=a.indexOf(g),S<0&&(S=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),i.rewind&&r.isBeginning){const p=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(p,e,t,n)}return r.slideTo(S,e,t,n)}function KL(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function qL(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const u=i.snapGrid[s],c=i.snapGrid[s+1];l-u>(c-u)*r&&(o+=i.params.slidesPerGroup)}else{const u=i.snapGrid[s-1],c=i.snapGrid[s];l-u<=(c-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function XL(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=rr(yn(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),Rd(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=rr(yn(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),Rd(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const QL={slideTo:WL,slideToLoop:HL,slideNext:GL,slidePrev:YL,slideReset:KL,slideToClosest:qL,slideToClickedSlide:XL};function ZL(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;yn(r,`.${n.slideClass}, swiper-slide`).forEach((o,a)=>{o.setAttribute("data-swiper-slide-index",a)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function JL({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:a}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:l,allowSlidePrev:u,allowSlideNext:c,slidesEl:f,params:d}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&d.virtual.enabled){t&&(!d.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):d.centeredSlides&&s.snapIndex"u"?i=rr(s.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]):p=i;const m=n==="next"||!n,y=n==="prev"||!n;let w=0,C=0;if(is.slides.length-v*2){C=i-(s.slides.length-v*2);for(let O=0;O{f.prepend(s.slides[O])}),m&&S.forEach(O=>{f.append(s.slides[O])}),s.recalcSlides(),d.watchSlidesProgress&&s.updateSlidesOffset(),t){if(g.length>0&&y)if(typeof e>"u"){const O=s.slidesGrid[p],E=s.slidesGrid[p+w]-O;a?s.setTranslate(s.translate-E):(s.slideTo(p+w,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=E))}else r&&s.slideToLoop(e,0,!1,!0);else if(S.length>0&&m)if(typeof e>"u"){const O=s.slidesGrid[p],E=s.slidesGrid[p-C]-O;a?s.setTranslate(s.translate-E):(s.slideTo(p-C,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=E))}else s.slideToLoop(e,0,!1,!0)}if(s.allowSlidePrev=u,s.allowSlideNext=c,s.controller&&s.controller.control&&!o){const O={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(P=>{P.params.loop&&P.loopFix(O)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(O)}s.emit("loopFix")}function e5(){const e=this,{slides:t,params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];t.forEach(o=>{const a=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;i[a]=o}),t.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),i.forEach(o=>{r.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const t5={loopCreate:ZL,loopFix:JL,loopDestroy:e5};function n5(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"}function r5(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const i5={setGrabCursor:n5,unsetGrabCursor:r5};function o5(e,t=this){function n(r){if(!r||r===on()||r===Dt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function a5(e){const t=this,n=on(),r=Dt(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:a,enabled:s}=t;if(!s||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;c&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(h?o5(d,u):u.closest(d))){t.allowClick=!0;return}if(o.swipeHandler&&!u.closest(o.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const v=a.currentX,g=a.currentY,S=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(S&&(v<=p||v>=r.innerWidth-p))if(S==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=v,a.startY=g,i.touchStartTime=sa(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;u.matches(i.focusableElements)&&(m=!1,u.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const y=m&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!u.isContentEditable&&l.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function s5(e){const t=on(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=r.evCache.findIndex(O=>O.pointerId===l.pointerId);u>=0&&(r.evCache[u]=l);const c=r.evCache.length>1?r.evCache[0]:l,f=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){o.startX=f,o.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:f,startY:d,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:d}),r.touchStartTime=sa());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(do.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(fo.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=f,o.currentY=d;const h=o.currentX-o.startX,v=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(h**2+v**2)"u"){let O;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:h*h+v*v>=25&&(O=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?O>i.touchAngle:90-O>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let g=n.isHorizontal()?h:v,S=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(g=Math.abs(g)*(a?1:-1),S=Math.abs(S)*(a?1:-1)),o.diff=g,g*=i.touchRatio,a&&(g=-g,S=-S);const p=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=S>0?"prev":"next";const m=n.params.loop&&!i.cssMode;if(!r.isMoved){if(m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const O=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(O)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let y;r.isMoved&&p!==n.touchesDirection&&m&&Math.abs(g)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let w=!0,C=i.resistanceRatio;if(i.touchReleaseOnEdges&&(C=0),g>0?(m&&!y&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**C))):g<0&&(m&&!y&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(g)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function l5(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(y=>y.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type))return;const{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=sa(),f=c-n.touchStartTime;if(t.allowClick){const y=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(y&&y[0]||u.target),t.emit("tap click",u),f<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=sa(),Rd(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let d;if(i.followFinger?d=a?t.translate:-t.translate:d=-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}let h=0,v=t.slidesSizesGrid[0];for(let y=0;y=s[y]&&d=s[y]&&(h=y,v=s[s.length-1]-s[s.length-2])}let g=null,S=null;i.rewind&&(t.isBeginning?S=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const p=(d-s[h])/v,m=hi.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(p>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?g:h+m):t.slideTo(h)),t.swipeDirection==="prev"&&(p>1-i.longSwipesRatio?t.slideTo(h+m):S!==null&&p<0&&Math.abs(p)>i.longSwipesRatio?t.slideTo(S):t.slideTo(h))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+m):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:h+m),t.swipeDirection==="prev"&&t.slideTo(S!==null?S:h))}}let Sy;function by(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(Sy),Sy=setTimeout(()=>{e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function u5(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function c5(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}const Ps=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}};function f5(e){const t=this;Ps(t,e.target),t.update()}let xy=!1;function d5(){}const ix=(e,t)=>{const n=on(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",by,!0):e[u]("observerUpdate",by,!0),i[l]("load",e.onLoad,{capture:!0})};function p5(){const e=this,t=on(),{params:n}=e;e.onTouchStart=a5.bind(e),e.onTouchMove=s5.bind(e),e.onTouchEnd=l5.bind(e),n.cssMode&&(e.onScroll=c5.bind(e)),e.onClick=u5.bind(e),e.onLoad=f5.bind(e),xy||(t.addEventListener("touchstart",d5),xy=!0),ix(e,"on")}function h5(){ix(this,"off")}const m5={attachEvents:p5,detachEvents:h5},Oy=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function v5(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||e.originalParams,u=Oy(e,r),c=Oy(e,l),f=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const S=r[g]&&r[g].enabled,p=l[g]&&l[g].enabled;S&&!p&&e[g].disable(),!S&&p&&e[g].enable()});const d=l.direction&&l.direction!==r.direction,h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);d&&n&&e.changeDirection(),bt(e.params,l);const v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function g5(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Dt(),o=t==="window"?i.innerHeight:n.clientHeight,a=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:o*l,point:s}}return{value:s,point:s}});a.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function S5(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=w5(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()}function b5(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const x5={addClasses:S5,removeClasses:b5};function O5(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const C5={checkOverflow:O5},Cy={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",runCallbacksOnInit:!0,_emitClasses:!1};function E5(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){bt(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){bt(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),bt(t,r)}}const Ac={eventsEmitter:xL,update:NL,translate:$L,transition:UL,slide:QL,loop:t5,grabCursor:i5,events:m5,breakpoints:y5,checkOverflow:C5,classes:x5},Nc={};let St=class{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=bt({},r),n&&!r.el&&(r.el=n);const i=on();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(u=>{const c=bt({},r,{el:u});l.push(new St(c))}),l}const o=this;o.__swiper__=!0,o.support=nx(),o.device=gL({userAgent:r.userAgent}),o.browser=wL(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const a={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:E5(r,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const s=bt({},Cy,a);return o.params=bt({},s,Nc,r),o.originalParams=bt({},o.params),o.passedParams=bt({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:sa(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=yn(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*t+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:a,slidesSizesGrid:s,size:l,activeIndex:u}=r;let c=1;if(i.centeredSlides){let f=o[u].swiperSlideSize,d;for(let h=u+1;hl&&(d=!0));for(let h=u-1;h>=0;h-=1)o[h]&&!d&&(f+=o[h].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(t==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&Ps(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const a=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let o;t.params.freeMode&&t.params.freeMode.enabled?(i(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?o=t.slideTo(t.slides.length-1,0,!1,!0):o=t.slideTo(t.activeIndex,0,!1,!0),o||i()),r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):yn(r,i())[0])();return!a&&n.params.createElements&&(a=ex("div",n.params.wrapperClass),r.append(a),yn(r,`.${n.params.slideClass}`).forEach(s=>{a.append(s)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement?r:a,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||zn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||zn(r,"direction")==="rtl"),wrongRTL:zn(a,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?Ps(n,i):i.addEventListener("load",o=>{Ps(n,o.target)})}),n.initialized=!0,n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:a,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),a.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,uL(r)),r.destroyed=!0),null}static extendDefaults(t){bt(Nc,t)}static get extendedDefaults(){return Nc}static get defaults(){return Cy}static installModule(t){St.prototype.__modules__||(St.prototype.__modules__=[]);const n=St.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>St.installModule(n)),St):(St.installModule(t),St)}};Object.keys(Ac).forEach(e=>{Object.keys(Ac[e]).forEach(t=>{St.prototype[t]=Ac[e][t]})});St.use([SL,bL]);function ox(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=yn(e.el,`.${r[i]}`)[0];o||(o=ex("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function ax({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=v=>(Array.isArray(v)||(v=[v].filter(g=>!!g)),v);function o(v){let g;return v&&typeof v=="string"&&e.isElement&&(g=e.el.shadowRoot.querySelector(v),g)?g:(v&&(typeof v=="string"&&(g=[...document.querySelectorAll(v)]),e.params.uniqueNavElements&&typeof v=="string"&&g.length>1&&e.el.querySelectorAll(v).length===1&&(g=e.el.querySelector(v))),v&&!g?v:g)}function a(v,g){const S=e.params.navigation;v=i(v),v.forEach(p=>{p&&(p.classList[g?"add":"remove"](...S.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](S.lockClass))})}function s(){const{nextEl:v,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(v,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(v,e.isEnd&&!e.params.rewind)}function l(v){v.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(v){v.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const v=e.params.navigation;if(e.params.navigation=ox(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(v.nextEl||v.prevEl))return;let g=o(v.nextEl),S=o(v.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:S}),g=i(g),S=i(S);const p=(m,y)=>{m&&m.addEventListener("click",y==="next"?u:l),!e.enabled&&m&&m.classList.add(...v.lockClass.split(" "))};g.forEach(m=>p(m,"next")),S.forEach(m=>p(m,"prev"))}function f(){let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g);const S=(p,m)=>{p.removeEventListener("click",m==="next"?u:l),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};v.forEach(p=>S(p,"next")),g.forEach(p=>S(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?h():(c(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g),[...v,...g].filter(S=>!!S).forEach(S=>S.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(v,g)=>{let{nextEl:S,prevEl:p}=e.navigation;S=i(S),p=i(p);const m=g.target;if(e.params.navigation.hideOnClick&&!p.includes(m)&&!S.includes(m)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===m||e.pagination.el.contains(m)))return;let y;S.length?y=S[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(y=p[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...S,...p].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),s()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:d,disable:h,update:s,init:c,destroy:f})}function so(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function sx({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let o,a=0;const s=p=>(Array.isArray(p)||(p=[p].filter(m=>!!m)),p);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,m){const{bulletActiveClass:y}=e.params.pagination;p&&(p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${y}-${m}`),p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${y}-${m}-${m}`)))}function c(p){if(!p.target.matches(so(e.params.pagination.bulletClass)))return;p.preventDefault();const y=rr(p.target)*e.params.slidesPerGroup;e.params.loop?e.slideToLoop(y):e.slideTo(y)}function f(){const p=e.rtl,m=e.params.pagination;if(l())return;let y=e.pagination.el;y=s(y);let w;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex:typeof e.snapIndex<"u"?w=e.snapIndex:w=e.activeIndex||0,m.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let E,N,I;if(m.dynamicBullets&&(o=Md(P[0],e.isHorizontal()?"width":"height",!0),y.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${o*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&e.previousIndex!==void 0&&(a+=w-(e.previousIndex||0),a>m.dynamicMainBullets-1?a=m.dynamicMainBullets-1:a<0&&(a=0)),E=Math.max(w-a,0),N=E+(Math.min(P.length,m.dynamicMainBullets)-1),I=(N+E)/2),P.forEach(k=>{k.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${m.bulletActiveClass}${L}`))}),y.length>1)P.forEach(k=>{const L=rr(k);L===w&&k.classList.add(m.bulletActiveClass),m.dynamicBullets&&(L>=E&&L<=N&&k.classList.add(`${m.bulletActiveClass}-main`),L===E&&u(k,"prev"),L===N&&u(k,"next"))});else{const k=P[w];if(k&&k.classList.add(m.bulletActiveClass),m.dynamicBullets){const L=P[E],U=P[N];for(let X=E;X<=N;X+=1)P[X].classList.add(`${m.bulletActiveClass}-main`);u(L,"prev"),u(U,"next")}}if(m.dynamicBullets){const k=Math.min(P.length,m.dynamicMainBullets+4),L=(o*k-o)/2-I*o,U=p?"right":"left";P.forEach(X=>{X.style[e.isHorizontal()?U:"top"]=`${L}px`})}}y.forEach((P,E)=>{if(m.type==="fraction"&&(P.querySelectorAll(so(m.currentClass)).forEach(N=>{N.textContent=m.formatFractionCurrent(w+1)}),P.querySelectorAll(so(m.totalClass)).forEach(N=>{N.textContent=m.formatFractionTotal(O)})),m.type==="progressbar"){let N;m.progressbarOpposite?N=e.isHorizontal()?"vertical":"horizontal":N=e.isHorizontal()?"horizontal":"vertical";const I=(w+1)/O;let k=1,L=1;N==="horizontal"?k=I:L=I,P.querySelectorAll(so(m.progressbarFillClass)).forEach(U=>{U.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${L})`,U.style.transitionDuration=`${e.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(P.innerHTML=m.renderCustom(e,w+1,O),E===0&&r("paginationRender",P)):(E===0&&r("paginationRender",P),r("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](m.lockClass)})}function d(){const p=e.params.pagination;if(l())return;const m=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let y=e.pagination.el;y=s(y);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>m&&(C=m);for(let O=0;O`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=` / `),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=``),y.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&(e.pagination.bullets=[...C.querySelectorAll(so(p.bulletClass))])}),p.type!=="custom"&&r("paginationRender",y[0])}function h(){e.params.pagination=ox(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let m;typeof p.el=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(p.el)),!m&&typeof p.el=="string"&&(m=[...document.querySelectorAll(p.el)]),m||(m=p.el),!(!m||m.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(m)&&m.length>1&&(m=[...e.el.querySelectorAll(p.el)],m.length>1&&(m=m.filter(y=>tx(y,".swiper")[0]===e.el)[0])),Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(e.pagination,{el:m}),m=s(m),m.forEach(y=>{p.type==="bullets"&&p.clickable&&y.classList.add(p.clickableClass),y.classList.add(p.modifierClass+p.type),y.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(y.classList.add(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&y.classList.add(p.progressbarOppositeClass),p.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(p.lockClass)}))}function v(){const p=e.params.pagination;if(l())return;let m=e.pagination.el;m&&(m=s(m),m.forEach(y=>{y.classList.remove(p.hiddenClass),y.classList.remove(p.modifierClass+p.type),y.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&y.removeEventListener("click",c)})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(p.bulletActiveClass))}n("init",()=>{e.params.pagination.enabled===!1?S():(h(),d(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{d(),f()}),n("destroy",()=>{v()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(p,m)=>{const y=m.target;let{el:w}=e.pagination;if(Array.isArray(w)||(w=[w].filter(C=>!!C)),e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);r(C===!0?"paginationShow":"paginationHide"),w.forEach(O=>O.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList.remove(e.params.pagination.paginationDisabledClass))),h(),d(),f()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:g,disable:S,render:d,update:f,init:h,destroy:v})}function lx({swiper:e,extendParams:t,on:n,emit:r,params:i}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,s=i&&i.autoplay?i.autoplay.delay:3e3,l=i&&i.autoplay?i.autoplay.delay:3e3,u,c=new Date().getTime,f,d,h,v,g,S;function p(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",p),E())}const m=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(l=u,f=!1);const H=e.autoplay.paused?u:c+l-new Date().getTime();e.autoplay.timeLeft=H,r("autoplayTimeLeft",H,H/s),a=requestAnimationFrame(()=>{m()})},y=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(R=>R.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},w=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),m();let J=typeof H>"u"?e.params.autoplay.delay:H;s=e.params.autoplay.delay,l=e.params.autoplay.delay;const R=y();!Number.isNaN(R)&&R>0&&typeof H>"u"&&(J=R,s=R,l=R),u=J;const $=e.params.speed,W=()=>{e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev($,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,$,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext($,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,$,!0,!0),r("autoplay")),e.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{w()}))};return J>0?(clearTimeout(o),o=setTimeout(()=>{W()},J)):requestAnimationFrame(()=>{W()}),J},C=()=>{e.autoplay.running=!0,w(),r("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),r("autoplayStop")},P=(H,J)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),H||(S=!0);const R=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",p):E()};if(e.autoplay.paused=!0,J){g&&(u=e.params.autoplay.delay),g=!1,R();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-c),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),R())},E=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(c=new Date().getTime(),S?(S=!1,w(u)):w(),e.autoplay.paused=!1,r("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const H=on();H.visibilityState==="hidden"&&(S=!0,P(!0)),H.visibilityState==="visible"&&E()},I=H=>{H.pointerType==="mouse"&&(S=!0,P(!0))},k=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&E()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",k))},U=()=>{e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",k)},X=()=>{on().addEventListener("visibilitychange",N)},Z=()=>{on().removeEventListener("visibilitychange",N)};n("init",()=>{e.params.autoplay.enabled&&(L(),X(),c=new Date().getTime(),C())}),n("destroy",()=>{U(),Z(),e.autoplay.running&&O()}),n("beforeTransitionStart",(H,J,R)=>{e.destroyed||!e.autoplay.running||(R||!e.params.autoplay.disableOnInteraction?P(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}d=!0,h=!1,S=!1,v=setTimeout(()=>{S=!0,h=!0,P(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!d)){if(clearTimeout(v),clearTimeout(o),e.params.autoplay.disableOnInteraction){h=!1,d=!1;return}h&&e.params.cssMode&&E(),h=!1,d=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(g=!0)}),Object.assign(e.autoplay,{start:C,stop:O,pause:P,resume:E})}function Nr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Bn(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Nr(t[r])&&Nr(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Bn(e[r],t[r]):e[r]=t[r]})}function ux(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function cx(e={}){return e.pagination&&typeof e.pagination.el>"u"}function fx(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function dx(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function P5(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const px=["modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control","injectStyles","injectStylesUrls"];function T5(e={},t=!0){const n={on:{}},r={},i={};Bn(n,St.defaults),Bn(n,St.extendedDefaults),n._emitClasses=!0,n.init=!1;const o={},a=px.map(l=>l.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?Nr(e[l])?(n[l]={},i[l]={},Bn(n[l],e[l]),Bn(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function _5({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){ux(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),cx(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),fx(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}function k5(e,t,n,r,i){const o=[];if(!t)return o;const a=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&a("children"),r.length!==n.length&&a("children")}return px.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Nr(e[l])&&Nr(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?a(l):(u.forEach(f=>{e[l][f]!==t[l][f]&&a(l)}),c.forEach(f=>{e[l][f]!==t[l][f]&&a(l)}))}else e[l]!==t[l]&&a(l)}),o}function hx(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function mx(e){const t=[];return B.Children.toArray(e).forEach(n=>{hx(n)?t.push(n):n.props&&n.props.children&&mx(n.props.children).forEach(r=>t.push(r))}),t}function D5(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return B.Children.toArray(e).forEach(r=>{if(hx(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=mx(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function L5({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:u,pagination:c,navigation:f,scrollbar:d,virtual:h,thumbs:v}=e;let g,S,p,m,y,w,C,O;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(g=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(S=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(u.pagination||u.pagination===!1)&&c&&!c.el&&(p=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(u.scrollbar||u.scrollbar===!1)&&d&&!d.el&&(m=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const P=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),u[E].prevEl=void 0,u[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),u[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!n.loop?w=!0:!u.loop&&n.loop?C=!0:O=!0),l.forEach(E=>{if(Nr(u[E])&&Nr(n[E]))Bn(u[E],n[E]);else{const N=n[E];(N===!0||N===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?N===!1&&P(E):u[E]=n[E]}}),l.includes("controller")&&!S&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&h&&u.virtual.enabled&&(h.slides=t,h.update(!0)),r.includes("children")&&t&&u.loop&&(O=!0),g&&v.init()&&v.update(!0),S&&(e.controller.control=u.controller.control),p&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(s)),s&&(u.pagination.el=s),c.init(),c.render(),c.update()),m&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(a)),a&&(u.scrollbar.el=a),d.init(),d.updateSize(),d.setTranslate()),y&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),i&&(u.navigation.nextEl=i),o&&(u.navigation.prevEl=o),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||O)&&e.loopDestroy(),(C||O)&&e.loopCreate(),e.update()}function A5(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,s=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=s;c=o&&c<=a&&u.push(t[r(c)]);return u.map(c=>B.cloneElement(c,{swiper:e,style:i}))}const N5=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Do(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const Ey=b.createContext(null),R5=b.createContext(null);function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{v(!h)};Object.assign(E.on,{_containerClasses($,W){c(W)}});const Z=()=>{Object.assign(E.on,k),l=!0;const $={...E};if(delete $.wrapperClass,p.current=new St($),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=L;const W={cache:!1,slides:L,renderExternal:d,renderExternalUpdate:!1};Bn(p.current.params.virtual,W),Bn(p.current.originalParams.virtual,W)}};S.current||Z(),p.current&&p.current.on("_beforeBreakpoint",X);const H=()=>{l||!k||!p.current||Object.keys(k).forEach($=>{p.current.on($,k[$])})},J=()=>{!k||!p.current||Object.keys(k).forEach($=>{p.current.off($,k[$])})};b.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",X)}),b.useEffect(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),Do(()=>{if(t&&(t.current=S.current),!!S.current)return p.current.destroyed&&Z(),_5({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:O.current,scrollbarEl:P.current,swiper:p.current},E),a&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Do(()=>{H();const $=k5(N,m.current,L,y.current,W=>W.key);return m.current=N,y.current=L,$.length&&p.current&&!p.current.destroyed&&L5({swiper:p.current,slides:L,passedParams:N,changedParams:$,nextEl:w.current,prevEl:C.current,scrollbarEl:P.current,paginationEl:O.current}),()=>{J()}}),Do(()=>{N5(p.current)},[f]);function R(){return E.virtual?A5(p.current,L,f):L.map(($,W)=>B.cloneElement($,{swiper:p.current,swiperSlideIndex:W}))}return B.createElement(r,jd({ref:S,className:dx(`${u}${n?` ${n}`:""}`)},I),B.createElement(R5.Provider,{value:p.current},U["container-start"],B.createElement(i,{className:P5(E.wrapperClass)},U["wrapper-start"],R(),U["wrapper-end"]),ux(E)&&B.createElement(B.Fragment,null,B.createElement("div",{ref:C,className:"swiper-button-prev"}),B.createElement("div",{ref:w,className:"swiper-button-next"})),fx(E)&&B.createElement("div",{ref:P,className:"swiper-scrollbar"}),cx(E)&&B.createElement("div",{ref:O,className:"swiper-pagination"}),U["container-end"]))});Uh.displayName="Swiper";function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!o)){if(o.destroyed){d!=="swiper-slide"&&h("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),Do(()=>{o&&f.current&&!o.destroyed&&h(o.getSlideClasses(f.current))},[o]);const p={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(p):r,y=()=>{g(!0)};return B.createElement(n,Id({ref:f,className:dx(`${d}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:y},c),a&&B.createElement(Ey.Provider,{value:p},B.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},m(),s&&!v&&B.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&B.createElement(Ey.Provider,{value:p},m(),s&&!v&&B.createElement("div",{className:"swiper-lazy-preloader"})))});Wh.displayName="SwiperSlide";const M5=({data:e})=>x("div",{className:"main-content-slider",children:x(Uh,{spaceBetween:24,slidesPerView:1,loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1},modules:[ax,sx,lx],pagination:{type:"bullets",clickable:!0},children:e.map(t=>x(Wh,{children:x(Zr,{id:t.id,type:"big",img:t.featured_images?t.featured_images[0].path:"",title:t.title})},ln()))})}),j5=()=>{const e=Gr(),t=sn(s=>s.featured.data),n=new lr(Hi+"/posts",oL),r=n.language,[i,o]=b.useState(r),a=()=>{n.get(t,s=>e(sL(s)))};return b.useEffect(()=>{t.length>0&&(t[0].id>-1&&r===i||(a(),o(r)))},[r,i]),x(Yd,{children:x(On.LazyLoadComponent,{useIntersectionObserver:!0,children:t[0].id>-1?t.length>=5?q("div",{className:"main-content",children:[x(ph,{title:"Главное"}),x(M5,{data:t}),q("div",{className:"main-content-top",children:[x(Zr,{id:t[0].id,type:"big",img:t[0].featured_images?t[0].featured_images[0].path:"",title:t[0].title}),x(Zr,{id:t[1].id,img:t[1].featured_images?t[1].featured_images[0].path:"",title:t[1].title})]}),q("div",{className:"main-content-bottom",children:[x(Zr,{id:t[2].id,img:t[2].featured_images?t[2].featured_images[0].path:"",title:t[2].title}),x(Zr,{id:t[3].id,img:t[3].featured_images?t[3].featured_images[0].path:"",title:t[3].title}),x(Zr,{id:t[4].id,img:t[4].featured_images?t[4].featured_images[0].path:"",title:t[4].title})]})]}):x(Lr,{}):x(Lr,{})})})},I5=()=>q(We.main,{className:"main",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:[x("h1",{style:{display:"none"},children:"Туркменистан новостной портал"}),x("div",{className:"news-section",children:x("div",{className:"container",children:q("div",{className:"news-inner",children:[x(j5,{}),q("div",{className:"news-outer-wrapper",children:[x(Qb,{title:!0}),x(kh,{})]})]})})})]}),V5=({img:e})=>x("div",{className:"news-article-image",children:x(On.LazyLoadImage,{src:e,alt:"",effect:"blur",useIntersectionObserver:!0})}),$5=({images:e})=>{let t=e.length>1;return x("div",{className:"news-article-slider",children:x(Uh,{spaceBetween:24,slidesPerView:1,loop:t,autoplay:{delay:3e3,disableOnInteraction:!1},modules:[ax,sx,lx],pagination:{type:"bullets",clickable:!0},children:e.map(n=>x(Wh,{children:x(V5,{img:n.path})},ln()))})})},F5=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_138_728)"},b.createElement("path",{d:"M17.9995 15.0001C17.2139 15.0008 16.4599 15.3095 15.8995 15.8601L7.99955 12.3401V12.0001V11.6701L15.8995 8.14012C16.3944 8.62513 17.0418 8.92392 17.7319 8.98573C18.4221 9.04753 19.1123 8.86855 19.6854 8.47918C20.2585 8.08981 20.6792 7.51406 20.876 6.8497C21.0728 6.18535 21.0336 5.47337 20.7649 4.83467C20.4963 4.19597 20.0149 3.66994 19.4025 3.34593C18.79 3.02191 18.0843 2.91988 17.4051 3.05716C16.726 3.19445 16.1153 3.56259 15.6768 4.09905C15.2383 4.63552 14.999 5.30723 14.9995 6.00011V6.34011L7.09955 9.86011C6.67791 9.44587 6.14329 9.16541 5.56281 9.05394C4.98233 8.94247 4.38186 9.00497 3.83677 9.23358C3.29169 9.46219 2.82628 9.84673 2.49898 10.3389C2.17168 10.8311 1.99707 11.409 1.99707 12.0001C1.99707 12.5912 2.17168 13.1691 2.49898 13.6613C2.82628 14.1535 3.29169 14.538 3.83677 14.7666C4.38186 14.9953 4.98233 15.0578 5.56281 14.9463C6.14329 14.8348 6.67791 14.5544 7.09955 14.1401L14.9995 17.6701V18.0001C14.9995 18.5935 15.1755 19.1735 15.5051 19.6668C15.8348 20.1602 16.3033 20.5447 16.8515 20.7718C17.3997 20.9988 18.0029 21.0582 18.5848 20.9425C19.1668 20.8267 19.7013 20.541 20.1209 20.1214C20.5404 19.7019 20.8261 19.1673 20.9419 18.5854C21.0577 18.0034 20.9982 17.4002 20.7712 16.8521C20.5441 16.3039 20.1596 15.8354 19.6663 15.5057C19.1729 15.1761 18.5929 15.0001 17.9995 15.0001ZM17.9995 5.00011C18.1973 5.00011 18.3907 5.05876 18.5551 5.16865C18.7196 5.27853 18.8477 5.43471 18.9234 5.61743C18.9991 5.80016 19.0189 6.00122 18.9803 6.1952C18.9417 6.38919 18.8465 6.56737 18.7067 6.70722C18.5668 6.84707 18.3886 6.94231 18.1946 6.9809C18.0007 7.01949 17.7996 6.99968 17.6169 6.92399C17.4341 6.84831 17.278 6.72013 17.1681 6.55568C17.0582 6.39124 16.9995 6.1979 16.9995 6.00011C16.9995 5.7349 17.1049 5.48054 17.2924 5.29301C17.48 5.10547 17.7343 5.00011 17.9995 5.00011ZM4.99955 13.0001C4.80176 13.0001 4.60842 12.9415 4.44397 12.8316C4.27953 12.7217 4.15135 12.5655 4.07567 12.3828C3.99998 12.2001 3.98017 11.999 4.01876 11.805C4.05734 11.611 4.15259 11.4329 4.29244 11.293C4.43229 11.1532 4.61047 11.0579 4.80445 11.0193C4.99844 10.9807 5.1995 11.0005 5.38223 11.0762C5.56495 11.1519 5.72113 11.2801 5.83101 11.4445C5.9409 11.609 5.99955 11.8023 5.99955 12.0001C5.99955 12.2653 5.89419 12.5197 5.70665 12.7072C5.51912 12.8948 5.26476 13.0001 4.99955 13.0001ZM17.9995 19.0001C17.8018 19.0001 17.6084 18.9415 17.444 18.8316C17.2795 18.7217 17.1514 18.5655 17.0757 18.3828C17 18.2001 16.9802 17.999 17.0188 17.805C17.0573 17.611 17.1526 17.4329 17.2924 17.293C17.4323 17.1532 17.6105 17.0579 17.8045 17.0193C17.9984 16.9807 18.1995 17.0005 18.3822 17.0762C18.565 17.1519 18.7211 17.2801 18.831 17.4445C18.9409 17.609 18.9995 17.8023 18.9995 18.0001C18.9995 18.2653 18.8942 18.5197 18.7067 18.7072C18.5191 18.8948 18.2648 19.0001 17.9995 19.0001Z",fill:"white"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_138_728"},b.createElement("rect",{width:24,height:24,fill:"white"})))),z5=()=>{const{id:e}=$l(),t=new lr(`${Hi}/posts/${e}`),n=t.language,[r,i]=b.useState(n),o=sn(s=>s.post.data),a=Gr();return b.useEffect(()=>{o.data.id===parseInt(e)&&r===n||(t.get(o,s=>a(aL(s))),i(n))},[n,r]),x(We.div,{className:"news-article",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:x("div",{className:"container",children:q("div",{className:"news-article-inner",children:[o.data.id>-1?q("div",{className:"news-article-content",children:[q("div",{className:"news-article-info",children:[q("div",{className:"news-article-status",children:[x("div",{className:"news-article-left",children:o.data.categories.map(s=>x(xe,{to:`/category/${s.id}`,className:"news-article-category",children:s.name},ln()))}),x("div",{className:"news-article-right",children:x("h3",{className:"news-article-date",children:o.data.published_at})})]}),x("h2",{className:"news-article-title",children:o.data.title})]}),x("div",{className:"news-article-slider-wrapper",children:x($5,{images:o.data.featured_images})}),x("p",{className:"news-article-text",dangerouslySetInnerHTML:{__html:o.data.content_html}}),q("button",{className:"share-btn",children:[x(F5,{})," ",x("span",{children:"Поделиться"})]})]}):x(Lr,{}),x(kh,{})]})})})},B5=()=>{const e=sn(t=>t.newsScroll.data);return x(Yd,{children:e.length>0&&e[0].id>-1?q(xe,{to:`/news/${e[0].id}`,className:"main-img",children:[x(On.LazyLoadImage,{src:e[0].featured_images.length>0?e[0].featured_images[0].path:"",alt:e[0].featured_images.length>0?e[0].featured_images[0].file_name:"",useIntersectionObserver:!0,effect:"blur"}),q("div",{className:"main-img-overlay",children:[x("h2",{children:e[0].title}),q("div",{className:"main-img-overlay-wrapper",children:[x("p",{className:"cats",children:e[0].categories.map(t=>x("span",{children:t.name},ln()))}),x("span",{className:"date",children:e[0].published_at})]})]})]}):""})},U5=()=>{let{category:e}=$l();return x(We.main,{className:"category",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:x("div",{className:"container",children:q("div",{className:"category-inner",children:[q("div",{className:"category-left",children:[x(B5,{}),x(Qb,{title:!1,category:parseInt(e)})]}),x("div",{className:"category-right",children:x(kh,{})})]})})})},W5=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M21.999 22L19.999 20M11.499 21C12.7466 21 13.9819 20.7543 15.1345 20.2769C16.2871 19.7994 17.3344 19.0997 18.2165 18.2175C19.0987 17.3354 19.7985 16.2881 20.2759 15.1355C20.7533 13.9829 20.999 12.7476 20.999 11.5C20.999 10.2524 20.7533 9.0171 20.2759 7.86451C19.7985 6.71191 19.0987 5.66464 18.2165 4.78249C17.3344 3.90033 16.2871 3.20056 15.1345 2.72314C13.9819 2.24572 12.7466 2 11.499 2C8.97947 2 6.56311 3.00089 4.78151 4.78249C2.99991 6.56408 1.99902 8.98044 1.99902 11.5C1.99902 14.0196 2.99991 16.4359 4.78151 18.2175C6.56311 19.9991 8.97947 21 11.499 21V21Z",stroke:"#272727",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Py=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_136_1482)"},b.createElement("rect",{width:24,height:24,transform:"translate(24 24) rotate(-180)",fill:"#38A39D"}),b.createElement("path",{d:"M10.1703 4.99997C10.3197 4.99946 10.4673 5.03243 10.6023 5.09646C10.7373 5.16049 10.8562 5.25395 10.9503 5.36997L15.7803 11.37C15.9274 11.5489 16.0078 11.7733 16.0078 12.005C16.0078 12.2366 15.9274 12.461 15.7803 12.64L10.7803 18.64C10.6106 18.8442 10.3667 18.9726 10.1022 18.997C9.83782 19.0214 9.57454 18.9397 9.37033 18.77C9.16611 18.6002 9.03768 18.3563 9.0133 18.0919C8.98893 17.8275 9.07059 17.5642 9.24033 17.36L13.7103 12L9.39033 6.63997C9.26804 6.49318 9.19037 6.31444 9.16649 6.12489C9.14261 5.93534 9.17352 5.74292 9.25558 5.57039C9.33764 5.39786 9.4674 5.25245 9.62951 5.15136C9.79162 5.05027 9.97929 4.99773 10.1703 4.99997Z",fill:"white"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_136_1482"},b.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(24 24) rotate(-180)"})))),H5={rest:{border:"rgba(56,163,157, 0) 0.1rem solid",color:"#272727",background:"#fff",type:"spring"},active:{border:"rgba(56,163,157, 1) 0.1rem solid",color:"#ffffff",background:"#38a39d",type:"spring"}},G5=({pages:e,activePage:t,setActivePage:n})=>{const r=i=>{n(i)};return q("div",{className:"pagination-wrapper",children:[x("button",{disabled:t-1<1,onClick:()=>r(t-1),children:x(Py,{className:"pagination-arr pagination-arr-left"})}),x("div",{className:"pagination-nums",children:Array.from(Array(typeof e=="string"?parseInt(e):e).keys()).map(i=>x(We.div,{className:"pagination-nums-item",onClick:()=>r(i+1),variants:H5,initial:"rest",animate:t===i+1?"active":"rest",children:x("span",{children:i+1})},ln()))}),x("button",{disabled:t+1>e,onClick:()=>r(t+1),children:x(Py,{className:"pagination-arr pagination-arr-right"})})]})},vx=({data:e,word:t,pagination:n=!1})=>{const[r,i]=b.useState(1),o=b.useMemo(()=>({activePage:r,setActivePage:i}),[r,i]);return x("div",{className:"news-scroll",children:q("div",{className:"news-scroll-wrapper",children:[x("div",{className:"news-scroll-inner",children:e.length>0?e[0].id>-1?e.map(a=>x(Lb,{id:a.id,title:a.title,text:a.excerpt,date:a.published_at,categories:a.categories,img:a.featured_images[0]?a.featured_images[0].path:""},ln())):x(Lr,{}):q("p",{className:"scroll-empty",children:['Нет новостей для "',t||"",'" ']})}),n?x(G5,{pages:3,activePage:o.activePage,setActivePage:o.setActivePage}):null]})})},Y5=()=>{const{word:e}=$l(),[t,n]=b.useState([{name:"search",value:e||""},{name:"count",value:10},{name:"page",value:1}]),r=new lr(Hi+"/posts",t),i=r.language,[o,a]=b.useState(i),s=sn(u=>u.searchData.data),l=Gr();return b.useEffect(()=>{r.get(s,u=>l(yy(u)))},[t]),b.useEffect(()=>{i!==o&&r.get(s,u=>l(yy(u)))},[i,o]),x("main",{className:"sresult",children:x("div",{className:"container",children:q("div",{className:"sresult-inner",children:[q("div",{className:"sresult-title",children:[x(W5,{}),q("h1",{children:['Результаты по поиску "',e,'"']})]}),x("div",{className:"sresult-content",children:x(vx,{pagination:!1,data:s,word:e})})]})})})},K5=()=>{const{category:e}=$l(),t=e!=="null"?e:"",[n,r]=b.useState(e!=="null"?[{name:"count",value:10},{name:"page",value:1},{name:"category",value:t}]:[{name:"count",value:10},{name:"page",value:1}]),i=new lr(Hi+"/posts",n),o=i.language,[a,s]=b.useState(o),[l,u]=b.useState();return b.useEffect(()=>{i.get(l,u)},[n]),b.useEffect(()=>{o!==a&&(i.get(l,u),s(o))},[o,a]),x("main",{className:"all",children:x("div",{className:"container",children:x("div",{className:"all-inner",children:l?x(vx,{data:l,pagination:!1}):x(Lr,{})})})})},q5="/assets/404-b9c88abe.svg",X5=()=>x("main",{className:"not-found",children:x("div",{className:"container",children:q("div",{className:"not-found-inner",children:[q("div",{className:"not-found-left",children:[x("h1",{children:"Page not found!"}),x("h3",{children:"Oops! We coudn't find the page you were looking for"}),x("h4",{children:x(xe,{to:"/",children:"Go to home page"})})]}),x("div",{className:"not-found-right",children:x("img",{src:q5,alt:"404"})})]})})}),gx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M7.68043 1.44C4.24002 1.44 1.44043 4.23959 1.44043 7.68V16.32C1.44043 19.7604 4.24002 22.56 7.68043 22.56H16.3204C19.7608 22.56 22.5604 19.7604 22.5604 16.32V7.68C22.5604 4.23959 19.7608 1.44 16.3204 1.44H7.68043ZM7.68043 2.4H16.3204C19.2419 2.4 21.6004 4.75849 21.6004 7.68V16.32C21.6004 19.2415 19.2419 21.6 16.3204 21.6H7.68043C4.75892 21.6 2.40043 19.2415 2.40043 16.32V7.68C2.40043 4.75849 4.75892 2.4 7.68043 2.4ZM17.7604 5.28C17.5058 5.28 17.2616 5.38115 17.0816 5.56118C16.9016 5.74122 16.8004 5.98539 16.8004 6.24C16.8004 6.49461 16.9016 6.73879 17.0816 6.91883C17.2616 7.09886 17.5058 7.2 17.7604 7.2C18.015 7.2 18.2592 7.09886 18.4393 6.91883C18.6193 6.73879 18.7204 6.49461 18.7204 6.24C18.7204 5.98539 18.6193 5.74122 18.4393 5.56118C18.2592 5.38115 18.015 5.28 17.7604 5.28ZM12.0004 6.72C9.09005 6.72 6.72043 9.08962 6.72043 12C6.72043 14.9104 9.09005 17.28 12.0004 17.28C14.9108 17.28 17.2804 14.9104 17.2804 12C17.2804 9.08962 14.9108 6.72 12.0004 6.72ZM12.0004 7.68C14.392 7.68 16.3204 9.60845 16.3204 12C16.3204 14.3916 14.392 16.32 12.0004 16.32C9.60887 16.32 7.68043 14.3916 7.68043 12C7.68043 9.60845 9.60887 7.68 12.0004 7.68Z"})),yx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.31992 1.91998C3.00015 1.91998 1.91992 3.00022 1.91992 4.31998V19.68C1.91992 20.9998 3.00015 22.08 4.31992 22.08H12.3993C12.4511 22.0886 12.504 22.0886 12.5559 22.08H15.2793C15.3311 22.0886 15.384 22.0886 15.4359 22.08H19.6799C20.9997 22.08 22.0799 20.9998 22.0799 19.68V4.31998C22.0799 3.00022 20.9997 1.91998 19.6799 1.91998H4.31992ZM4.31992 2.87998H19.6799C20.4808 2.87998 21.1199 3.51911 21.1199 4.31998V19.68C21.1199 20.4809 20.4808 21.12 19.6799 21.12H15.8399V14.4H17.6737L18.3459 11.04H15.8399V10.08C15.8399 9.81239 15.8654 9.79147 15.9552 9.73311C16.0451 9.67475 16.3227 9.59998 16.7999 9.59998H18.2399V6.89717L17.9662 6.76686C17.9662 6.76686 16.8636 6.23998 15.3599 6.23998C14.2799 6.23998 13.3927 6.67028 12.8249 7.37998C12.2572 8.08969 11.9999 9.03998 11.9999 10.08V11.04H10.5599V14.4H11.9999V21.12H4.31992C3.51905 21.12 2.87992 20.4809 2.87992 19.68V4.31998C2.87992 3.51911 3.51905 2.87998 4.31992 2.87998ZM15.3599 7.19998C16.3579 7.19998 16.9859 7.42004 17.2799 7.53655V8.63998H16.7999C16.2475 8.63998 15.8049 8.68568 15.4321 8.9278C15.0594 9.16991 14.8799 9.6295 14.8799 10.08V12H17.174L16.8862 13.44H14.8799V21.12H12.9599V13.44H11.5199V12H12.9599V10.08C12.9599 9.19998 13.1827 8.47028 13.5749 7.97998C13.9672 7.48969 14.5199 7.19998 15.3599 7.19998Z"})),wx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.31992 1.91998C2.99972 1.91998 1.91992 2.99978 1.91992 4.31998V19.68C1.91992 21.0002 2.99972 22.08 4.31992 22.08H19.6799C21.0001 22.08 22.0799 21.0002 22.0799 19.68V4.31998C22.0799 2.99978 21.0001 1.91998 19.6799 1.91998H4.31992ZM4.31992 2.87998H19.6799C20.4823 2.87998 21.1199 3.51763 21.1199 4.31998V19.68C21.1199 20.4823 20.4823 21.12 19.6799 21.12H4.31992C3.51757 21.12 2.87992 20.4823 2.87992 19.68V4.31998C2.87992 3.51763 3.51757 2.87998 4.31992 2.87998ZM12.5005 4.79998C12.3734 4.8 12.2515 4.85044 12.1615 4.94025C12.0715 5.03007 12.0208 5.15191 12.0205 5.27905C12.0205 5.27905 12.0153 7.61915 12.0102 9.96467C12.0077 11.1374 12.0046 12.3114 12.0027 13.1953C12.0008 14.0792 11.9999 14.6385 11.9999 14.685C11.9999 15.5563 11.2086 16.2684 10.3068 16.2684C9.41218 16.2684 8.69805 15.5534 8.69805 14.6587C8.69805 13.7641 9.41218 13.05 10.3068 13.05C10.3371 13.05 10.3982 13.0599 10.5027 13.0725C10.5702 13.0806 10.6385 13.0743 10.7033 13.054C10.7682 13.0337 10.8279 12.9998 10.8787 12.9547C10.9295 12.9096 10.9701 12.8543 10.9979 12.7923C11.0257 12.7304 11.04 12.6632 11.0399 12.5953V10.5787C11.0399 10.4566 10.9934 10.3391 10.9098 10.2501C10.8262 10.1611 10.7118 10.1073 10.5899 10.0997C10.5151 10.095 10.421 10.0856 10.3068 10.0856C7.78702 10.0856 5.73367 12.139 5.73367 14.6587C5.73367 17.1785 7.78702 19.2319 10.3068 19.2319C12.8265 19.2319 14.8799 17.1785 14.8799 14.6587V10.3153C15.5781 10.8737 16.4483 11.2275 17.4093 11.2275C17.5404 11.2275 17.665 11.2197 17.7843 11.2087C17.9035 11.1977 18.0143 11.1426 18.0949 11.0541C18.1756 10.9657 18.2203 10.8503 18.2202 10.7306V8.48905C18.2203 8.36769 18.1744 8.25082 18.0918 8.16194C18.0092 8.07306 17.896 8.01876 17.7749 8.00998C16.2655 7.90169 15.0622 6.72585 14.9052 5.2303C14.8929 5.11228 14.8374 5.00299 14.7493 4.92353C14.6611 4.84406 14.5467 4.80005 14.428 4.79998H12.5005ZM12.9796 5.75998H14.0746C14.4235 7.34336 15.6608 8.5509 17.2602 8.85373V10.229C16.2336 10.1769 15.3318 9.66476 14.8012 8.85748C14.7444 8.77109 14.6613 8.70533 14.5641 8.66997C14.467 8.63462 14.361 8.63157 14.262 8.66128C14.163 8.69098 14.0762 8.75185 14.0146 8.83484C13.953 8.91782 13.9198 9.01849 13.9199 9.12186V14.6587C13.9199 16.6596 12.3077 18.2719 10.3068 18.2719C8.30593 18.2719 6.69367 16.6596 6.69367 14.6587C6.69367 12.7385 8.19164 11.2143 10.0799 11.0915V12.1359C8.7774 12.2571 7.73805 13.3259 7.73805 14.6587C7.73805 16.072 8.89358 17.2284 10.3068 17.2284C11.7128 17.2284 12.9599 16.1215 12.9599 14.685C12.9599 14.7085 12.9608 14.0811 12.9627 13.1972C12.9646 12.3133 12.9677 11.1393 12.9702 9.96655C12.9747 7.86083 12.9787 6.1676 12.9796 5.75998Z"})),Q5={rest:{transform:"translateY(0rem)",opacity:1,type:"spring"},active:{transform:"translateX(6rem)",opacity:0,type:"tween"}},xi={rest:{width:"5rem",right:"8rem",type:"spring",borderColor:"rgba(166, 166, 166, 0)"},active:{width:"100%",right:"0",type:"spring",borderColor:"rgba(166, 166, 166, 1)"},logoRest:{display:"block",opacity:1,transform:"translateX(0%) translateY(-50%)",type:"spring"},logoActive:{opacity:0,transform:"translateX(-150%) translateY(-50%)",type:"spring"},langRest:{opacity:1,transform:"translateX(0%)",type:"spring"},langActive:{opacity:0,transform:"translateX(150%)",type:"spring"},loopRest:{width:"2rem",height:"2rem",type:"spring"},loopActive:{width:"1.3rem",height:"1.4rem",type:"spring"},placeholderRest:{opacity:0},placeholderActive:{opacity:1},borderRest:{borderColor:"rgba(166, 166, 166, 0)"},borderActive:{borderColor:"rgba(166, 166, 166, 1)"}},Z5=e=>({type:"SET_SEARCH",payload:e}),Ty=({isSmall:e,isInputFocused:t,setIsInputFocused:n})=>{const r=l=>{i(Z5(l))},i=Gr(),o=sn(l=>l.search.value),a=aw(),s=b.useRef(null);return q(We.form,{ref:s,className:"search",onSubmit:l=>{l.preventDefault(),a(`/search/${o}`)},variants:xi,initial:e?"borderRest":{},animate:e?t?"borderActive":"borderRest":{},children:[x("input",{type:"text",value:o,onChange:l=>r(l.target.value),onFocus:()=>{n(!0)},onBlur:()=>{n(!1),r("")}}),q(We.div,{className:"search-content",initial:"rest",animate:o.length>0?"active":"rest",variants:Q5,children:[q(We.svg,{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",variants:xi,initial:e?"loopRest":"loopActive",animate:e?t?"loopActive":"loopRest":"loopActive",children:[x("g",{clipPath:"url(#clip0_138_523)",children:x("path",{d:"M11.9163 12.8394L10.833 11.7561M6.22884 12.2978C6.9046 12.2978 7.57375 12.1647 8.19807 11.9061C8.82239 11.6475 9.38966 11.2684 9.8675 10.7906C10.3453 10.3128 10.7244 9.74548 10.983 9.12116C11.2416 8.49684 11.3747 7.8277 11.3747 7.15194C11.3747 6.47618 11.2416 5.80703 10.983 5.18271C10.7244 4.55839 10.3453 3.99112 9.8675 3.51328C9.38966 3.03545 8.82239 2.65641 8.19807 2.39781C7.57375 2.1392 6.9046 2.0061 6.22884 2.0061C4.86408 2.0061 3.55522 2.54825 2.59019 3.51328C1.62516 4.47831 1.08301 5.78718 1.08301 7.15194C1.08301 8.5167 1.62516 9.82556 2.59019 10.7906C3.55522 11.7556 4.86408 12.2978 6.22884 12.2978V12.2978Z",stroke:"#A6A6A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),x("defs",{children:x("clipPath",{id:"clip0_138_523",children:x("rect",{width:"13",height:"13",fill:"white",transform:"translate(0 0.922791)"})})})]}),x(We.span,{variants:xi,initial:e?"placeholderRest":{},animate:e?t?"placeholderActive":"placeholderRest":{},children:"Search"})]})]})},J5=e=>b.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_138_516)"},b.createElement("path",{d:"M12.0003 16.4228C11.7666 16.4232 11.5402 16.3418 11.3603 16.1928L5.36028 11.1928C5.15606 11.023 5.02763 10.7791 5.00325 10.5147C4.97888 10.2503 5.06054 9.98698 5.23028 9.78276C5.40001 9.57854 5.64393 9.45012 5.90835 9.42574C6.17278 9.40136 6.43606 9.48302 6.64028 9.65276L12.0003 14.1328L17.3603 9.81276C17.4626 9.7297 17.5803 9.66766 17.7066 9.63023C17.8329 9.5928 17.9654 9.58071 18.0965 9.59465C18.2275 9.60858 18.3545 9.64828 18.4701 9.71146C18.5857 9.77463 18.6878 9.86003 18.7703 9.96276C18.8619 10.0656 18.9312 10.1862 18.974 10.3171C19.0168 10.448 19.0321 10.5863 19.019 10.7233C19.0058 10.8604 18.9645 10.9933 18.8976 11.1136C18.8307 11.234 18.7397 11.3392 18.6303 11.4228L12.6303 16.2528C12.4452 16.3783 12.2234 16.4381 12.0003 16.4228Z",fill:"#272727"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_138_516"},b.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(0 0.422791)"})))),Rc={rest:{maxHeight:"0",pointerEvents:"none",overflow:"hidden",opacity:0},active:{maxHeight:"20rem",pointerEvents:"all",overflow:"visible",opacity:1},arrowRest:{transform:"rotateX(0deg)"},arrowActive:{transform:"rotateX(180deg)"},wrapperRest:{background:"rgba(255, 255, 255, 0)"},wrapperActive:{background:"#f1f1f1"}},e6=e=>(localStorage.setItem("savedLanguage",e),e),t6=e=>({type:"SET_LANGUAGE",payload:e6(e)}),n6=[{title:"RU"},{title:"EN"},{title:"TM"}],_y=({isSmall:e,isInputFocused:t})=>{const[n,r]=b.useState(!1),i=sn(s=>s.language.title),o=Gr(),a=s=>{o(t6(s))};return x(We.div,{initial:e?"langRest":{},animate:e?t?"langActive":"langRest":{},variants:xi,children:q(We.div,{className:"language",onClick:()=>r(!n),initial:"wrapperRest",animate:n?"wrapperActive":"wrapperRest",variants:Rc,children:[x("span",{children:i}),x(We.div,{className:"icon-wrapper",initial:"arrowRest",animate:n?"arrowActive":"arrowRest",variants:Rc,children:x(J5,{})}),x(We.ul,{className:"language-dropdown",variants:Rc,initial:"rest",animate:n?"active":"rest",children:n6.map(s=>x("li",{children:x(We.button,{type:"button",initial:{background:"#ffffff",type:"tween"},whileHover:{background:"#f1f1f1",type:"spring"},onClick:()=>a(s.title),children:s.title})},ln()))})]})})},r6=e=>{const[t,n]=b.useState(!1);return b.useEffect(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const i=()=>{n(r.matches)};return r.addListener(i),()=>r.removeListener(i)},[t,e]),t},i6=()=>{const e=r6("(max-width: 850px)"),[t,n]=b.useState(!1),r=new lr("").language;return x("nav",{className:"nav",children:x("div",{className:"container",children:e?q(We.div,{className:"nav-inner mobile",children:[x(We.div,{className:"nav-mid",initial:e?"logoRest":{},animate:e?t?"logoActive":"logoRest":{},variants:xi,children:x(xe,{to:"/",children:x("h1",{children:r==="TM"?"Türkmenistan Habarlar Portaly":r==="RU"?"Туркменистан новостной портал":r==="EN"?"Turkmenistan news portal":""})})}),x(We.div,{className:"search-wrap",initial:e?"rest":{},animate:e?t?"active":"rest":{},variants:xi,children:x(Ty,{isSmall:e,isInputFocused:t,setIsInputFocused:n})}),x("div",{className:"lang-wrap",children:x(_y,{isSmall:e,isInputFocused:t})})]}):q("div",{className:"nav-inner",children:[q("div",{className:"nav-left",children:[x(Ty,{isSmall:e,isInputFocused:t,setIsInputFocused:n}),x(_y,{isSmall:e,isInputFocused:t})]}),x("div",{className:"nav-mid",children:x(xe,{to:"/",children:x("h1",{children:r==="TM"?"Türkmenistan Habarlar Portaly":r==="RU"?"Туркменистан новостной портал":r==="EN"?"Turkmenistan news portal":""})})}),x("div",{className:"nav-right",children:q("ul",{children:[x("li",{children:x("a",{href:"#",target:"_blank",children:x(gx,{})})}),x("li",{children:x("a",{href:"#",target:"_blank",children:x(yx,{})})}),x("li",{children:x("a",{href:"#",target:"_blank",children:x(wx,{})})})]})})]})})})},o6=e=>({type:"SET_ACTIVE_LINK",payload:e}),Mc={rest:{fontWeight:"normal",background:"rgba(241,241, 241, 1)",type:"tween"},active:{fontWeight:"bold",background:"rgba(56,163,157, 1)",color:"#ffffff",type:"spring"}},a6=({activeLink:e,dataEl:t,onClickLink:n,isNotCategory:r})=>x(We.li,{initial:Mc.rest,animate:e===t.id?Mc.active:Mc.rest,children:x(We.div,{children:x(xe,{to:r?"/":`/category/${t.id}`,onClick:()=>n(t.id),className:e===t.id?"active":"",children:t.name})})}),s6=()=>{const e=sn(l=>l.activeLink.active),t=sn(l=>l.language.title),n=Gr(),r=l=>{n(o6(l))},[i,o]=b.useState(),a=new lr(Hi+"/categories",iL);b.useEffect(()=>{a.get(i,o)},[t]);const s=Fr();return b.useEffect(()=>{if(!s.pathname.includes("category")){r(0);return}const l=s.pathname[s.pathname.length-1];r(parseInt(l))},[s]),x("nav",{className:"subnav",children:x("div",{className:"container",children:x("ul",{className:"subnav-inner",children:i?x(Yd,{children:i.data.map(l=>x(a6,{dataEl:l,activeLink:e,onClickLink:r},ln()))}):x(Lr,{})})})})},l6=()=>q("header",{className:"header",children:[x(i6,{}),x(s6,{})]}),u6="/assets/phone-a547e55c.svg",c6="/assets/mail-df8b0af1.svg",f6="/assets/location-c549270d.svg",d6=()=>x("footer",{className:"footer",children:x("div",{className:"container",children:q("div",{className:"footer-wrapper",children:[x("nav",{className:"footer-nav",children:q("ul",{className:"footer-nav-list",children:[x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"В Туркменистане"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Политика"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Общество"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Статьи"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Культура"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Новости"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Экономика"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Наука и технологии"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Медиа"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"В мире"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Спорт"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Здоровье и медицина"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Погода"})})]})}),q("div",{className:"footer-info",children:[q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:u6,alt:"phone"})}),x("h3",{className:"footer-info-item-title",children:"+(993) 12 68-07-92, 94-08-01 "})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:c6,alt:"mail"})}),x("h3",{className:"footer-info-item-title",children:"turkmen@info.tm"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:f6,alt:"location"})}),x("h3",{className:"footer-info-item-title",children:"115184, Ашхабад, Битарап шаелы, 25 (Центр телерадиовещания Туркменистана)"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(gx,{})}),x("h3",{className:"footer-info-item-title",children:"hhm@inst.com"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(yx,{})}),x("h3",{className:"footer-info-item-title",children:"hhm@face.com"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(wx,{})}),x("h3",{className:"footer-info-item-title",children:"@hhm"})]}),x("div",{className:"footer-info-item",children:x("h3",{className:"footer-info-item-title",children:"Реклама на ТВ и радио: (993) 12 78-13-99"})}),x("div",{className:"footer-info-item",children:x("h3",{className:"footer-info-item-title",children:"Реклама на сайте: (993) 12 78-13-99"})})]})]})})}),p6=()=>{const e=Fr();return new lr("").language,x(D_,{children:q("div",{className:"App",children:[x(l6,{}),x(k_,{mode:"wait",initial:!1,children:q(aE,{location:e,children:[x(hr,{path:"/",element:x(I5,{})}),x(hr,{path:"/category/:category",element:x(U5,{})}),x(hr,{path:"/news/:id",element:x(z5,{})}),x(hr,{path:"/search/:word",element:x(Y5,{})}),x(hr,{path:"/all/:category",element:x(K5,{})}),x(hr,{path:"*",element:x(X5,{})})]},e.pathname)}),x(d6,{})]})})};function Ut(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Hh(e)?2:Gh(e)?3:0}function Oi(e,t){return Yi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function h6(e,t){return Yi(e)===2?e.get(t):e[t]}function Sx(e,t,n){var r=Yi(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function bx(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Hh(e){return S6&&e instanceof Map}function Gh(e){return b6&&e instanceof Set}function vr(e){return e.o||e.t}function Yh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ox(e);delete t[ge];for(var n=Ci(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=m6),Object.freeze(e),t&&jr(e,function(n,r){return Kh(r,!0)},!0)),e}function m6(){Ut(2)}function qh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function an(e){var t=zd[e];return t||Ut(18,e),t}function v6(e,t){zd[e]||(zd[e]=t)}function Vd(){return la}function jc(e,t){t&&(an("Patches"),e.u=[],e.s=[],e.v=t)}function vl(e){$d(e),e.p.forEach(g6),e.p=null}function $d(e){e===la&&(la=e.l)}function ky(e){return la={p:[],l:la,h:e,m:!0,_:0}}function g6(e){var t=e[ge];t.i===0||t.i===1?t.j():t.O=!0}function Ic(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||an("ES5").S(t,e,r),r?(n[ge].P&&(vl(t),Ut(4)),Mr(e)&&(e=gl(t,e),t.l||yl(t,e)),t.u&&an("Patches").M(n[ge].t,e,t.u,t.s)):e=gl(t,n,[]),vl(t),t.u&&t.v(t.u,t.s),e!==xx?e:void 0}function gl(e,t,n){if(qh(t))return t;var r=t[ge];if(!r)return jr(t,function(s,l){return Dy(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Yh(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),jr(o,function(s,l){return Dy(e,r,i,s,l,n,a)}),yl(e,i,!1),n&&e.u&&an("Patches").N(r,n,e.u,e.s)}return r.o}function Dy(e,t,n,r,i,o,a){if(Rr(i)){var s=gl(e,i,o&&t&&t.i!==3&&!Oi(t.R,r)?o.concat(r):void 0);if(Sx(n,r,s),!Rr(s))return;e.m=!1}else a&&n.add(i);if(Mr(i)&&!qh(i)){if(!e.h.D&&e._<1)return;gl(e,i),t&&t.A.l||yl(e,i)}}function yl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Kh(t,n)}function Vc(e,t){var n=e[ge];return(n?vr(n):e)[t]}function Ly(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function jn(e){e.P||(e.P=!0,e.l&&jn(e.l))}function $c(e){e.o||(e.o=Yh(e.t))}function Fd(e,t,n){var r=Hh(t)?an("MapSet").F(t,n):Gh(t)?an("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Vd(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=ua;a&&(l=[s],u=ho);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,n):an("ES5").J(t,n);return(n?n.A:Vd()).p.push(r),r}function y6(e){return Rr(e)||Ut(22,e),function t(n){if(!Mr(n))return n;var r,i=n[ge],o=Yi(n);if(i){if(!i.P&&(i.i<4||!an("ES5").K(i)))return i.t;i.I=!0,r=Ay(n,o),i.I=!1}else r=Ay(n,o);return jr(r,function(a,s){i&&h6(i.t,a)===s||Sx(r,a,t(s))}),o===3?new Set(r):r}(e)}function Ay(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Yh(e)}function w6(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[ge];return ua.get(l,o)},set:function(l){var u=this[ge];ua.set(u,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ge];if(!s.P)switch(s.i){case 5:r(s)&&jn(s);break;case 4:n(s)&&jn(s)}}}function n(o){for(var a=o.t,s=o.k,l=Ci(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==ge){var f=a[c];if(f===void 0&&!Oi(a,c))return!0;var d=s[c],h=d&&d[ge];if(h?h.t!==f:!bx(d,f))return!0}}var v=!!a[ge];return l.length!==Ci(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?p-1:0),y=1;y1?c-1:0),d=1;d=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=an("Patches").$;return Rr(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Pt=new O6;Pt.produce;Pt.produceWithPatches.bind(Pt);Pt.setAutoFreeze.bind(Pt);Pt.setUseProxies.bind(Pt);Pt.applyPatches.bind(Pt);Pt.createDraft.bind(Pt);Pt.finishDraft.bind(Pt);function ca(e){return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function C6(e,t){if(ca(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ca(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E6(e){var t=C6(e,"string");return ca(t)==="symbol"?t:String(t)}function P6(e,t,n){return t=E6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jy(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 Iy(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(nt(1));return n(Cx)(e,t)}if(typeof e!="function")throw new Error(nt(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(nt(3));return o}function f(g){if(typeof g!="function")throw new Error(nt(4));if(l)throw new Error(nt(5));var S=!0;return u(),s.push(g),function(){if(S){if(l)throw new Error(nt(6));S=!1,u();var m=s.indexOf(g);s.splice(m,1),a=null}}}function d(g){if(!T6(g))throw new Error(nt(7));if(typeof g.type>"u")throw new Error(nt(8));if(l)throw new Error(nt(9));try{l=!0,o=i(o,g)}finally{l=!1}for(var S=a=s,p=0;p"u")throw new Error(nt(12));if(typeof n(void 0,{type:wl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function Ex(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(nt(14));f[h]=S,c=c||S!==g}return c=c||o.length!==Object.keys(l).length,c?f:l}}function Sl(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{switch(t.type){case"SET_ACTIVE_LINK":return{...e,active:t.payload};default:return e}},eA=()=>localStorage.getItem("savedLanguage")||"TM",tA={title:eA()},nA=(e=tA,t)=>{switch(t.type){case"SET_LANGUAGE":return{...e,title:t.payload};default:return e}},_x={data:[{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}]},rA=(e=_x,t)=>{switch(t.type){case"SET_NEWS_SCROLL":return{...e,data:t.payload};default:return e}},iA={data:{data:{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}}},oA=(e=iA,t)=>{switch(t.type){case"SET_POST":return{...e,data:t.payload};default:return e}},aA={data:[{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}]},sA=(e=aA,t)=>{switch(t.type){case"SET_FEATURED":return{...e,data:t.payload};default:return e}},lA=(e=_x,t)=>{switch(t.type){case"SET_SEARCH_DATA":return{data:t.payload};default:return e}},uA={value:""},cA=(e=uA,t)=>{switch(t.type){case"SET_SEARCH":return{value:t.payload};default:return e}},fA=Ex({activeLink:J6,language:nA,newsScroll:rA,post:oA,search:cA,searchData:lA,featured:sA}),dA=H6({reducer:fA}),pA=Wc.createRoot(document.getElementById("root"));pA.render(x(B.StrictMode,{children:x(fE,{children:x(N4,{store:dA,children:x(p6,{})})})})); diff --git a/dist/assets/placeholder2-6f7110c9.png b/dist/assets/placeholder2-6f7110c9.png deleted file mode 100644 index 43c1b82..0000000 Binary files a/dist/assets/placeholder2-6f7110c9.png and /dev/null differ diff --git a/dist/assets/placeholder3-67f7656b.png b/dist/assets/placeholder3-67f7656b.png deleted file mode 100644 index 37bef1b..0000000 Binary files a/dist/assets/placeholder3-67f7656b.png and /dev/null differ diff --git a/dist/index.html b/dist/index.html index 2525a08..123e9d0 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ HHM - + diff --git a/src/components/aside/Aside.tsx b/src/components/aside/Aside.tsx index 6cae7fb..cbdf5c1 100644 --- a/src/components/aside/Aside.tsx +++ b/src/components/aside/Aside.tsx @@ -2,8 +2,6 @@ import SectionTitle from "../global/SectionTitle"; import AsideNews from "./AsideNews"; import Calendar from "./Calendar"; -// Images -import placeholder2 from "../../assets/images/placeholder2.png"; const Aside = () => { return ( @@ -15,35 +13,35 @@ const Aside = () => { title="Президент Туркменистана провёл рабочее совещание по цифровой системе" date="12.01.2023" category="Политика" - img={placeholder2} + img={""} link="" />