diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-45bc7c9e.js b/assets/index-45bc7c9e.js new file mode 100644 index 0000000..d0c977c --- /dev/null +++ b/assets/index-45bc7c9e.js @@ -0,0 +1,91 @@ +function O0(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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function id(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ad={exports:{}},fo={},od={exports:{}},Y={};/** + * @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 Ai=Symbol.for("react.element"),P0=Symbol.for("react.portal"),T0=Symbol.for("react.fragment"),L0=Symbol.for("react.strict_mode"),_0=Symbol.for("react.profiler"),M0=Symbol.for("react.provider"),D0=Symbol.for("react.context"),R0=Symbol.for("react.forward_ref"),z0=Symbol.for("react.suspense"),$0=Symbol.for("react.memo"),I0=Symbol.for("react.lazy"),$u=Symbol.iterator;function A0(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var sd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ld=Object.assign,ud={};function zr(e,t,n){this.props=e,this.context=t,this.refs=ud,this.updater=n||sd}zr.prototype.isReactComponent={};zr.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")};zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cd(){}cd.prototype=zr.prototype;function Nl(e,t,n){this.props=e,this.context=t,this.refs=ud,this.updater=n||sd}var jl=Nl.prototype=new cd;jl.constructor=Nl;ld(jl,zr.prototype);jl.isPureReactComponent=!0;var Iu=Array.isArray,fd=Object.prototype.hasOwnProperty,Ol={current:null},dd={key:!0,ref:!0,__self:!0,__source:!0};function pd(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)fd.call(t,r)&&!dd.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,Z=M[Q];if(0>>1;Qi(st,F))Dei(gt,st)?(M[Q]=gt,M[De]=F,Q=De):(M[Q]=st,M[J]=F,Q=J);else if(Dei(gt,F))M[Q]=gt,M[De]=F,Q=De;else break e}}return z}function i(M,z){var F=M.sortIndex-z.sortIndex;return F!==0?F:M.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],f=1,c=null,d=3,y=!1,S=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function g(M){if(v=!1,m(M),!S)if(n(s)!==null)S=!0,ce(x);else{var z=n(u);z!==null&&ne(g,z.startTime-M)}}function x(M,z){S=!1,v&&(v=!1,p(E),E=-1),y=!0;var F=d;try{for(m(z),c=n(s);c!==null&&(!(c.expirationTime>z)||M&&!_());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,d=c.priorityLevel;var Z=Q(c.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?c.callback=Z:c===n(s)&&r(s),m(z)}else r(s);c=n(s)}if(c!==null)var Ue=!0;else{var J=n(u);J!==null&&ne(g,J.startTime-z),Ue=!1}return Ue}finally{c=null,d=F,y=!1}}var C=!1,k=null,E=-1,D=5,O=-1;function _(){return!(e.unstable_now()-OM||125Q?(M.sortIndex=F,t(u,M),n(s)===null&&M===n(u)&&(v?(p(E),E=-1):v=!0,ne(g,F-Q))):(M.sortIndex=Z,t(s,M),S||y||(S=!0,ce(x))),M},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(M){var z=d;return function(){var F=d;d=z;try{return M.apply(this,arguments)}finally{d=F}}}})(vd);gd.exports=vd;var X0=gd.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var yd=j,rt=X0;function L(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"),ks=Object.prototype.hasOwnProperty,J0=/^[: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]*$/,Bu={},Uu={};function q0(e){return ks.call(Uu,e)?!0:ks.call(Bu,e)?!1:J0.test(e)?Uu[e]=!0:(Bu[e]=!0,!1)}function Z0(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 em(e,t,n,r){if(t===null||typeof t>"u"||Z0(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 Ke(e,t,n,r,i,a,o){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=a,this.removeEmptyString=o}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new Ke(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){Me[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Me[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Me[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Me[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tl=/[\-:]([a-z])/g;function Ll(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(Tl,Ll);Me[t]=new Ke(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(Tl,Ll);Me[t]=new Ke(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(Tl,Ll);Me[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});Me.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Me[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function _l(e,t,n,r){var i=Me.hasOwnProperty(t)?Me[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==a[l]){var s=` +`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Vo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ni(e):""}function tm(e){switch(e.tag){case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 2:case 15:return e=Wo(e.type,!1),e;case 11:return e=Wo(e.type.render,!1),e;case 1:return e=Wo(e.type,!0),e;default:return""}}function Os(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 lr:return"Fragment";case sr:return"Portal";case Es:return"Profiler";case Ml:return"StrictMode";case Ns:return"Suspense";case js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xd:return(e.displayName||"Context")+".Consumer";case Sd:return(e._context.displayName||"Context")+".Provider";case Dl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rl:return t=e.displayName||null,t!==null?t:Os(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return Os(e(t))}catch{}}return null}function nm(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 Os(t);case 8:return t===Ml?"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 Nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rm(e){var t=Cd(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ra(e){e._valueTracker||(e._valueTracker=rm(e))}function kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function za(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 Ps(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nn(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 Ed(e,t){t=t.checked,t!=null&&_l(e,"checked",t,!1)}function Ts(e,t){Ed(e,t);var n=Nn(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")?Ls(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ls(e,t.type,Nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wu(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 Ls(e,t,n){(t!=="number"||za(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ri=Array.isArray;function xr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var si={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},im=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(e){im.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),si[t]=si[e]})});function Pd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||si.hasOwnProperty(e)&&si[e]?(""+t).trim():t+"px"}function Td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Pd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var am=he({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 Ds(e,t){if(t){if(am[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Rs(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 zs=null;function zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $s=null,br=null,Cr=null;function Yu(e){if(e=Ui(e)){if(typeof $s!="function")throw Error(L(280));var t=e.stateNode;t&&(t=vo(t),$s(e.stateNode,e.type,t))}}function Ld(e){br?Cr?Cr.push(e):Cr=[e]:br=e}function _d(){if(br){var e=br,t=Cr;if(Cr=br=null,Yu(e),t)for(e=0;e>>=0,e===0?32:31-(gm(e)/vm|0)|0}var aa=64,oa=4194304;function ii(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 Fa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=ii(l):(a&=o,a!==0&&(r=ii(a)))}else o=n&~i,o!==0?r=ii(o):a!==0&&(r=ii(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&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 Fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function xm(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=ui),rc=String.fromCharCode(32),ic=!1;function qd(e,t){switch(e){case"keyup":return Qm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ur=!1;function Jm(e,t){switch(e){case"compositionend":return Zd(t);case"keypress":return t.which!==32?null:(ic=!0,rc);case"textInput":return e=t.data,e===rc&&ic?null:e;default:return null}}function qm(e,t){if(ur)return e==="compositionend"||!Vl&&qd(e,t)?(e=Xd(),Ea=Bl=dn=null,ur=!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=lc(n)}}function rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ip(){for(var e=window,t=za();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=za(e.document)}return t}function Wl(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 sg(e){var t=ip(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rp(n.ownerDocument.documentElement,n)){if(r!==null&&Wl(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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=uc(n,a);var o=uc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,cr=null,Hs=null,fi=null,Vs=!1;function cc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vs||cr==null||cr!==za(r)||(r=cr,"selectionStart"in r&&Wl(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}),fi&&Ei(fi,r)||(fi=r,r=Ha(Hs,"onSelect"),0pr||(e.current=Xs[pr],Xs[pr]=null,pr--)}function oe(e,t){pr++,Xs[pr]=e.current,e.current=t}var jn={},Fe=Tn(jn),Qe=Tn(!1),Bn=jn;function Pr(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={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xe(e){return e=e.childContextTypes,e!=null}function Wa(){le(Qe),le(Fe)}function vc(e,t,n){if(Fe.current!==jn)throw Error(L(168));oe(Fe,t),oe(Qe,n)}function pp(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(L(108,nm(e)||"Unknown",i));return he({},n,r)}function Ka(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,Bn=Fe.current,oe(Fe,e),oe(Qe,Qe.current),!0}function yc(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=pp(e,t,Bn),r.__reactInternalMemoizedMergedChildContext=e,le(Qe),le(Fe),oe(Fe,e)):le(Qe),oe(Qe,n)}var Xt=null,yo=!1,as=!1;function hp(e){Xt===null?Xt=[e]:Xt.push(e)}function wg(e){yo=!0,hp(e)}function Ln(){if(!as&&Xt!==null){as=!0;var e=0,t=re;try{var n=Xt;for(re=1;e>=o,i-=o,Jt=1<<32-Et(t)+i|n<E?(D=k,k=null):D=k.sibling;var O=d(p,k,m[E],g);if(O===null){k===null&&(k=D);break}e&&k&&O.alternate===null&&t(p,k),h=a(O,h,E),C===null?x=O:C.sibling=O,C=O,k=D}if(E===m.length)return n(p,k),ue&&Mn(p,E),x;if(k===null){for(;EE?(D=k,k=null):D=k.sibling;var _=d(p,k,O.value,g);if(_===null){k===null&&(k=D);break}e&&k&&_.alternate===null&&t(p,k),h=a(_,h,E),C===null?x=_:C.sibling=_,C=_,k=D}if(O.done)return n(p,k),ue&&Mn(p,E),x;if(k===null){for(;!O.done;E++,O=m.next())O=c(p,O.value,g),O!==null&&(h=a(O,h,E),C===null?x=O:C.sibling=O,C=O);return ue&&Mn(p,E),x}for(k=r(p,k);!O.done;E++,O=m.next())O=y(k,p,E,O.value,g),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?E:O.key),h=a(O,h,E),C===null?x=O:C.sibling=O,C=O);return e&&k.forEach(function(R){return t(p,R)}),ue&&Mn(p,E),x}function w(p,h,m,g){if(typeof m=="object"&&m!==null&&m.type===lr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case na:e:{for(var x=m.key,C=h;C!==null;){if(C.key===x){if(x=m.type,x===lr){if(C.tag===7){n(p,C.sibling),h=i(C,m.props.children),h.return=p,p=h;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ln&&Ec(x)===C.type){n(p,C.sibling),h=i(C,m.props),h.ref=Xr(p,C,m),h.return=p,p=h;break e}n(p,C);break}else t(p,C);C=C.sibling}m.type===lr?(h=Fn(m.props.children,p.mode,g,m.key),h.return=p,p=h):(g=Ma(m.type,m.key,m.props,null,p.mode,g),g.ref=Xr(p,h,m),g.return=p,p=g)}return o(p);case sr:e:{for(C=m.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ps(m,p.mode,g),h.return=p,p=h}return o(p);case ln:return C=m._init,w(p,h,C(m._payload),g)}if(ri(m))return S(p,h,m,g);if(Wr(m))return v(p,h,m,g);pa(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=ds(m,p.mode,g),h.return=p,p=h),o(p)):n(p,h)}return w}var Lr=bp(!0),Cp=bp(!1),Hi={},It=Tn(Hi),Pi=Tn(Hi),Ti=Tn(Hi);function $n(e){if(e===Hi)throw Error(L(174));return e}function eu(e,t){switch(oe(Ti,t),oe(Pi,e),oe(It,Hi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ms(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ms(t,e)}le(It),oe(It,t)}function _r(){le(It),le(Pi),le(Ti)}function kp(e){$n(Ti.current);var t=$n(It.current),n=Ms(t,e.type);t!==n&&(oe(Pi,e),oe(It,n))}function tu(e){Pi.current===e&&(le(It),le(Pi))}var de=Tn(0);function qa(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 os=[];function nu(){for(var e=0;en?n:4,e(!0);var r=ss.transition;ss.transition={};try{e(!1),t()}finally{re=n,ss.transition=r}}function Fp(){return mt().memoizedState}function Cg(e,t,n){var r=bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bp(e))Up(t,n);else if(n=yp(e,t,n,r),n!==null){var i=Ve();Nt(n,e,r,i),Hp(n,t,r)}}function kg(e,t,n){var r=bn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Up(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,jt(l,o)){var s=t.interleaved;s===null?(i.next=i,ql(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=yp(e,t,i,r),n!==null&&(i=Ve(),Nt(n,e,r,i),Hp(n,t,r))}}function Bp(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Up(e,t){di=Za=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Il(e,n)}}var eo={readContext:ht,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},Eg={readContext:ht,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:jc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pa(4194308,4,Rp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pa(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();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=Cg.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:Nc,useDebugValue:su,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=Nc(!1),t=e[0];return e=bg.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=Dt();if(ue){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ee===null)throw Error(L(349));Hn&30||jp(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,jc(Pp.bind(null,r,a,e),[e]),r.flags|=2048,Mi(9,Op.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Dt(),t=Ee.identifierPrefix;if(ue){var n=qt,r=Jt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Li++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[Oi]=r,qp(e,t,!1,!1),t.stateNode=e;e:{switch(o=Rs(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;iDr&&(t.flags|=128,r=!0,Jr(a,!1),t.lanes=4194304)}else{if(!r)if(e=qa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ue)return $e(t),null}else 2*ve()-a.renderingStartTime>Dr&&n!==1073741824&&(t.flags|=128,r=!0,Jr(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ve(),t.sibling=null,n=de.current,oe(de,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function Mg(e,t){switch(Gl(t),t.tag){case 1:return Xe(t.type)&&Wa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _r(),le(Qe),le(Fe),nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tu(t),null;case 13:if(le(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(de),null;case 4:return _r(),null;case 10:return Jl(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var ma=!1,Ae=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,I=null;function vr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function ll(e,t,n){try{n()}catch(r){ge(e,t,r)}}var zc=!1;function Rg(e,t){if(Ws=Ba,e=ip(),Wl(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var y;c!==n||i!==0&&c.nodeType!==3||(l=o+i),c!==a||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(y=c.firstChild)!==null;)d=c,c=y;for(;;){if(c===e)break t;if(d===n&&++u===i&&(l=o),d===a&&++f===r&&(s=o),(y=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=y}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ks={focusedElem:e,selectionRange:n},Ba=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var v=S.memoizedProps,w=S.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:St(t.type,v),w);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(g){ge(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return S=zc,zc=!1,S}function pi(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 a=i.destroy;i.destroy=void 0,a!==void 0&&ll(t,n,a)}i=i.next}while(i!==r)}}function xo(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 ul(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 th(e){var t=e.alternate;t!==null&&(e.alternate=null,th(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Oi],delete t[Qs],delete t[vg],delete t[yg])),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 nh(e){return e.tag===5||e.tag===3||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nh(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 cl(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=Va));else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}function fl(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(fl(e,t,n),e=e.sibling;e!==null;)fl(e,t,n),e=e.sibling}var Te=null,Ct=!1;function sn(e,t,n){for(n=n.child;n!==null;)rh(e,t,n),n=n.sibling}function rh(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(po,n)}catch{}switch(n.tag){case 5:Ae||vr(n,t);case 6:var r=Te,i=Ct;Te=null,sn(e,t,n),Te=r,Ct=i,Te!==null&&(Ct?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(Ct?(e=Te,n=n.stateNode,e.nodeType===8?is(e.parentNode,n):e.nodeType===1&&is(e,n),Ci(e)):is(Te,n.stateNode));break;case 4:r=Te,i=Ct,Te=n.stateNode.containerInfo,Ct=!0,sn(e,t,n),Te=r,Ct=i;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ll(n,t,o),i=i.next}while(i!==r)}sn(e,t,n);break;case 1:if(!Ae&&(vr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ge(n,t,l)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,sn(e,t,n),Ae=r):sn(e,t,n);break;default:sn(e,t,n)}}function Ic(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dg),t.forEach(function(r){var i=Vg.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=o),r&=~a}if(r=i,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$g(r/1960))-r,10e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,ro=0,q&6)throw Error(L(331));var i=q;for(q|=4,I=e.current;I!==null;){var a=I,o=a.child;if(I.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sve()-fu?An(e,0):cu|=n),Je(e,t)}function fh(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=Ve();e=rn(e,t),e!==null&&(Fi(e,t,n),Je(e,n))}function Hg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fh(e,n)}function Vg(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(L(314))}r!==null&&r.delete(t),fh(e,n)}var dh;dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,Lg(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,ue&&t.flags&1048576&&mp(t,Ya,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ta(e,t),e=t.pendingProps;var i=Pr(t,Fe.current);Er(t,n),i=iu(null,t,r,e,i,n);var a=au();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,Xe(r)?(a=!0,Ka(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zl(t),i.updater=wo,t.stateNode=i,i._reactInternals=t,tl(t,r,e,n),t=il(null,t,r,!0,a,n)):(t.tag=0,ue&&a&&Kl(t),He(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ta(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Kg(r),e=St(r,e),i){case 0:t=rl(null,t,r,e,n);break e;case 1:t=Mc(null,t,r,e,n);break e;case 11:t=Lc(null,t,r,e,n);break e;case 14:t=_c(null,t,r,St(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),rl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Mc(e,t,r,i,n);case 3:e:{if(Qp(t),e===null)throw Error(L(387));r=t.pendingProps,a=t.memoizedState,i=a.element,wp(e,t),Ja(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Mr(Error(L(423)),t),t=Dc(e,t,r,n,i);break e}else if(r!==i){i=Mr(Error(L(424)),t),t=Dc(e,t,r,n,i);break e}else for(et=wn(t.stateNode.containerInfo.firstChild),tt=t,ue=!0,kt=null,n=Cp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tr(),r===i){t=an(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return kp(t),e===null&&qs(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Gs(r,i)?o=null:a!==null&&Gs(r,a)&&(t.flags|=32),Yp(e,t),He(e,t,o,n),t.child;case 6:return e===null&&qs(t),null;case 13:return Xp(e,t,n);case 4:return eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Lr(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Lc(e,t,r,i,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,oe(Qa,r._currentValue),r._currentValue=o,a!==null)if(jt(a.value,o)){if(a.children===i.children&&!Qe.current){t=an(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=Zt(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Zs(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(L(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Zs(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}He(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Er(t,n),i=ht(i),r=r(i),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),_c(e,t,r,i,n);case 15:return Kp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Ta(e,t),t.tag=1,Xe(r)?(e=!0,Ka(t)):e=!1,Er(t,n),xp(t,r,i),tl(t,r,i,n),il(null,t,r,!0,e,n);case 19:return Jp(e,t,n);case 22:return Gp(e,t,n)}throw Error(L(156,t.tag))};function ph(e,t){return Ad(e,t)}function Wg(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 dt(e,t,n,r){return new Wg(e,t,n,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kg(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dl)return 11;if(e===Rl)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=dt(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 Ma(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")mu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case lr:return Fn(n.children,i,a,t);case Ml:o=8,i|=8;break;case Es:return e=dt(12,n,t,i|2),e.elementType=Es,e.lanes=a,e;case Ns:return e=dt(13,n,t,i),e.elementType=Ns,e.lanes=a,e;case js:return e=dt(19,n,t,i),e.elementType=js,e.lanes=a,e;case bd:return Co(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sd:o=10;break e;case xd:o=9;break e;case Dl:o=11;break e;case Rl:o=14;break e;case ln:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=dt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Fn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function Co(e,t,n,r){return e=dt(22,e,r,t),e.elementType=bd,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function ps(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gg(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=Go(0),this.expirationTimes=Go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Go(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,i,a,o,l,s){return e=new Gg(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zl(a),e}function Yg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vh)}catch(e){console.error(e)}}vh(),md.exports=it;var Zg=md.exports,Kc=Zg;Cs.createRoot=Kc.createRoot,Cs.hydrateRoot=Kc.hydrateRoot;/** + * @remix-run/router v1.6.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Kn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function t1(){return Math.random().toString(36).substr(2,8)}function Yc(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(e,t,n,r){return n===void 0&&(n=null),te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ut(t):t,{state:n,key:t&&t.key||r||t1()})}function Gn(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 Ut(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 n1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l=ye.Pop,s=null,u=f();u==null&&(u=0,o.replaceState(te({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){l=ye.Pop;let w=f(),p=w==null?null:w-u;u=w,s&&s({action:l,location:v.location,delta:p})}function d(w,p){l=ye.Push;let h=Ri(v.location,w,p);n&&n(h,w),u=f()+1;let m=Yc(h,u),g=v.createHref(h);try{o.pushState(m,"",g)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(g)}a&&s&&s({action:l,location:v.location,delta:1})}function y(w,p){l=ye.Replace;let h=Ri(v.location,w,p);n&&n(h,w),u=f();let m=Yc(h,u),g=v.createHref(h);o.replaceState(m,"",g),a&&s&&s({action:l,location:v.location,delta:0})}function S(w){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof w=="string"?w:Gn(w);return G(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return l},get location(){return e(i,o)},listen(w){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Gc,c),s=w,()=>{i.removeEventListener(Gc,c),s=null}},createHref(w){return t(i,w)},createURL:S,encodeLocation(w){let p=S(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:y,go(w){return o.go(w)}};return v}var Se;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Se||(Se={}));const r1=new Set(["lazy","caseSensitive","path","id","index","children"]);function i1(e){return e.index===!0}function gl(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],l=typeof i.id=="string"?i.id:o.join("-");if(G(i.index!==!0||!i.children,"Cannot specify children on an index route"),G(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),i1(i)){let s=te({},i,t(i),{id:l});return r[l]=s,s}else{let s=te({},i,t(i),{id:l,children:void 0});return r[l]=s,i.children&&(s.children=gl(i.children,t,o,r)),s}})}function wr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ut(t):t,i=Ar(r.pathname||"/",n);if(i==null)return null;let a=yh(e);a1(a);let o=null;for(let l=0;o==null&&l{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};s.relativePath.startsWith("/")&&(G(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=en([r,s.relativePath]),f=n.concat(s);a.children&&a.children.length>0&&(G(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yh(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:d1(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let s of wh(a.path))i(a,o,s)}),t}function wh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=wh(r.join("/")),l=[];return l.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function a1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:p1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const o1=/^:\w+$/,s1=3,l1=2,u1=1,c1=10,f1=-2,Qc=e=>e==="*";function d1(e,t){let n=e.split("/"),r=n.length;return n.some(Qc)&&(r+=f1),t&&(r+=l1),n.filter(i=>!Qc(i)).reduce((i,a)=>i+(o1.test(a)?s1:a===""?u1:c1),r)}function p1(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 h1(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(f==="*"){let d=l[c]||"";o=a.slice(0,a.length-d.length).replace(/(.)\/+$/,"$1")}return u[f]=y1(l[c]||"",f),u},{}),pathname:a,pathnameBase:o,pattern:e}}function g1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Kn(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,(o,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function v1(e){try{return decodeURI(e)}catch(t){return Kn(!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 y1(e,t){try{return decodeURIComponent(e)}catch(n){return Kn(!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 Ar(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 w1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ut(e):e;return{pathname:n?n.startsWith("/")?n:S1(n,t):t,search:b1(r),hash:C1(i)}}function S1(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 hs(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 Oo(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Su(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ut(e):(i=te({},e),G(!i.pathname||!i.pathname.includes("?"),hs("?","pathname","search",i)),G(!i.pathname||!i.pathname.includes("#"),hs("#","pathname","hash",i)),G(!i.search||!i.search.includes("#"),hs("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(r||o==null)l=n;else{let c=t.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=w1(i,l),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const en=e=>e.join("/").replace(/\/\/+/g,"/"),x1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),b1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,C1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class xu{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 Sh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xh=["post","put","patch","delete"],k1=new Set(xh),E1=["get",...xh],N1=new Set(E1),j1=new Set([301,302,303,307,308]),O1=new Set([307,308]),ms={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},P1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Xc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T1=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function L1(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;G(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;i=P=>({hasErrorBoundary:N(P)})}else i=T1;let a={},o=gl(e.routes,i,void 0,a),l,s=e.basename||"/",u=te({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),f=null,c=new Set,d=null,y=null,S=null,v=e.hydrationData!=null,w=wr(o,e.history.location,s),p=null;if(w==null){let N=xt(404,{pathname:e.history.location.pathname}),{matches:P,route:T}=rf(o);w=P,p={[T.id]:N}}let h=!w.some(N=>N.route.lazy)&&(!w.some(N=>N.route.loader)||e.hydrationData!=null),m,g={historyAction:e.history.action,location:e.history.location,matches:w,initialized:h,navigation:ms,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},x=ye.Pop,C=!1,k,E=!1,D=!1,O=[],_=[],R=new Map,K=0,ae=-1,me=new Map,ce=new Set,ne=new Map,M=new Map,z=new Map,F=!1;function Q(){return f=e.history.listen(N=>{let{action:P,location:T,delta:$}=N;if(F){F=!1;return}Kn(z.size===0||$!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let U=Du({currentLocation:g.location,nextLocation:T,historyAction:P});if(U&&$!=null){F=!0,e.history.go($*-1),Ji(U,{state:"blocked",location:T,proceed(){Ji(U,{state:"proceeding",proceed:void 0,reset:void 0,location:T}),e.history.go($)},reset(){Hr(U),J({blockers:new Map(m.state.blockers)})}});return}return lt(P,T)}),g.initialized||lt(ye.Pop,g.location),m}function Z(){f&&f(),c.clear(),k&&k.abort(),g.fetchers.forEach((N,P)=>Ro(P)),g.blockers.forEach((N,P)=>Hr(P))}function Ue(N){return c.add(N),()=>c.delete(N)}function J(N){g=te({},g,N),c.forEach(P=>P(g))}function st(N,P){var T,$;let U=g.actionData!=null&&g.navigation.formMethod!=null&&Qt(g.navigation.formMethod)&&g.navigation.state==="loading"&&((T=N.state)==null?void 0:T._isRedirect)!==!0,H;P.actionData?Object.keys(P.actionData).length>0?H=P.actionData:H=null:U?H=g.actionData:H=null;let V=P.loaderData?nf(g.loaderData,P.loaderData,P.matches||[],P.errors):g.loaderData;for(let[B]of z)Hr(B);let W=C===!0||g.navigation.formMethod!=null&&Qt(g.navigation.formMethod)&&(($=N.state)==null?void 0:$._isRedirect)!==!0;l&&(o=l,l=void 0),J(te({},P,{actionData:H,loaderData:V,historyAction:x,location:N,initialized:!0,navigation:ms,revalidation:"idle",restoreScrollPosition:Ru(N,P.matches||g.matches),preventScrollReset:W,blockers:new Map(g.blockers)})),E||x===ye.Pop||(x===ye.Push?e.history.push(N,N.state):x===ye.Replace&&e.history.replace(N,N.state)),x=ye.Pop,C=!1,E=!1,D=!1,O=[],_=[]}async function De(N,P){if(typeof N=="number"){e.history.go(N);return}let T=vl(g.location,g.matches,s,u.v7_prependBasename,N,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:$,submission:U,error:H}=Jc(u.v7_normalizeFormMethod,!1,T,P),V=g.location,W=Ri(g.location,$,P&&P.state);W=te({},W,e.history.encodeLocation(W));let B=P&&P.replace!=null?P.replace:void 0,ee=ye.Push;B===!0?ee=ye.Replace:B===!1||U!=null&&Qt(U.formMethod)&&U.formAction===g.location.pathname+g.location.search&&(ee=ye.Replace);let ie=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Re=Du({currentLocation:V,nextLocation:W,historyAction:ee});if(Re){Ji(Re,{state:"blocked",location:W,proceed(){Ji(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),De(N,P)},reset(){Hr(Re),J({blockers:new Map(g.blockers)})}});return}return await lt(ee,W,{submission:U,pendingError:H,preventScrollReset:ie,replace:P&&P.replace})}function gt(){if(Mo(),J({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){lt(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}lt(x||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function lt(N,P,T){k&&k.abort(),k=null,x=N,E=(T&&T.startUninterruptedRevalidation)===!0,E0(g.location,g.matches),C=(T&&T.preventScrollReset)===!0;let $=l||o,U=T&&T.overrideNavigation,H=wr($,P,s);if(!H){let Ce=xt(404,{pathname:P.pathname}),{matches:Oe,route:Tt}=rf($);zo(),st(P,{matches:Oe,loaderData:{},errors:{[Tt.id]:Ce}});return}if(g.initialized&&!D&&z1(g.location,P)&&!(T&&T.submission&&Qt(T.submission.formMethod))){st(P,{matches:H});return}k=new AbortController;let V=ei(e.history,P,k.signal,T&&T.submission),W,B;if(T&&T.pendingError)B={[Sr(H).route.id]:T.pendingError};else if(T&&T.submission&&Qt(T.submission.formMethod)){let Ce=await Yi(V,P,T.submission,H,{replace:T.replace});if(Ce.shortCircuited)return;W=Ce.pendingActionData,B=Ce.pendingActionError,U=te({state:"loading",location:P},T.submission),V=new Request(V.url,{signal:V.signal})}let{shortCircuited:ee,loaderData:ie,errors:Re}=await Fr(V,P,H,U,T&&T.submission,T&&T.fetcherSubmission,T&&T.replace,W,B);ee||(k=null,st(P,te({matches:H},W?{actionData:W}:{},{loaderData:ie,errors:Re})))}async function Yi(N,P,T,$,U){Mo();let H=te({state:"submitting",location:P},T);J({navigation:H});let V,W=yl($,P);if(!W.route.action&&!W.route.lazy)V={type:Se.error,error:xt(405,{method:N.method,pathname:P.pathname,routeId:W.route.id})};else if(V=await Zr("action",N,W,$,a,i,s),N.signal.aborted)return{shortCircuited:!0};if(jr(V)){let B;return U&&U.replace!=null?B=U.replace:B=V.location===g.location.pathname+g.location.search,await Ur(g,V,{submission:T,replace:B}),{shortCircuited:!0}}if(gi(V)){let B=Sr($,W.route.id);return(U&&U.replace)!==!0&&(x=ye.Push),{pendingActionData:{},pendingActionError:{[B.route.id]:V.error}}}if(In(V))throw xt(400,{type:"defer-action"});return{pendingActionData:{[W.route.id]:V.data}}}async function Fr(N,P,T,$,U,H,V,W,B){let ee=$;ee||(ee=te({state:"loading",location:P,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},U));let ie=U||H?U||H:ee.formMethod&&ee.formAction&&ee.formData&&ee.formEncType?{formMethod:ee.formMethod,formAction:ee.formAction,formData:ee.formData,formEncType:ee.formEncType}:void 0,Re=l||o,[Ce,Oe]=qc(e.history,g,T,ie,P,D,O,_,ne,Re,s,W,B);if(zo(fe=>!(T&&T.some(ut=>ut.route.id===fe))||Ce&&Ce.some(ut=>ut.route.id===fe)),Ce.length===0&&Oe.length===0){let fe=_u();return st(P,te({matches:T,loaderData:{},errors:B||null},W?{actionData:W}:{},fe?{fetchers:new Map(g.fetchers)}:{})),{shortCircuited:!0}}if(!E){Oe.forEach(ut=>{let nr=g.fetchers.get(ut.key),Pe={state:"loading",data:nr&&nr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(ut.key,Pe)});let fe=W||g.actionData;J(te({navigation:ee},fe?Object.keys(fe).length===0?{actionData:null}:{actionData:fe}:{},Oe.length>0?{fetchers:new Map(g.fetchers)}:{}))}ae=++K,Oe.forEach(fe=>{fe.controller&&R.set(fe.key,fe.controller)});let Tt=()=>Oe.forEach(fe=>tr(fe.key));k&&k.signal.addEventListener("abort",Tt);let{results:Vr,loaderResults:$o,fetcherResults:qi}=await Tu(g.matches,T,Ce,Oe,N);if(N.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Tt),Oe.forEach(fe=>R.delete(fe.key));let Wt=af(Vr);if(Wt)return await Ur(g,Wt,{replace:V}),{shortCircuited:!0};let{loaderData:Zi,errors:Io}=tf(g,T,Ce,$o,B,Oe,qi,M);M.forEach((fe,ut)=>{fe.subscribe(nr=>{(nr||fe.done)&&M.delete(ut)})});let Ao=_u(),Fo=Mu(ae),ea=Ao||Fo||Oe.length>0;return te({loaderData:Zi,errors:Io},ea?{fetchers:new Map(g.fetchers)}:{})}function Vt(N){return g.fetchers.get(N)||P1}function Br(N,P,T,$){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(N)&&tr(N);let U=l||o,H=vl(g.location,g.matches,s,u.v7_prependBasename,T,P,$==null?void 0:$.relative),V=wr(U,H,s);if(!V){Do(N,P,xt(404,{pathname:H}));return}let{path:W,submission:B}=Jc(u.v7_normalizeFormMethod,!0,H,$),ee=yl(V,W);if(C=($&&$.preventScrollReset)===!0,B&&Qt(B.formMethod)){Qi(N,P,W,ee,V,B);return}ne.set(N,{routeId:P,path:W}),Xi(N,P,W,ee,V,B)}async function Qi(N,P,T,$,U,H){if(Mo(),ne.delete(N),!$.route.action&&!$.route.lazy){let Pe=xt(405,{method:H.formMethod,pathname:T,routeId:P});Do(N,P,Pe);return}let V=g.fetchers.get(N),W=te({state:"submitting"},H,{data:V&&V.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(N,W),J({fetchers:new Map(g.fetchers)});let B=new AbortController,ee=ei(e.history,T,B.signal,H);R.set(N,B);let ie=await Zr("action",ee,$,U,a,i,s);if(ee.signal.aborted){R.get(N)===B&&R.delete(N);return}if(jr(ie)){R.delete(N),ce.add(N);let Pe=te({state:"loading"},H,{data:void 0," _hasFetcherDoneAnything ":!0});return g.fetchers.set(N,Pe),J({fetchers:new Map(g.fetchers)}),Ur(g,ie,{submission:H,isFetchActionRedirect:!0})}if(gi(ie)){Do(N,P,ie.error);return}if(In(ie))throw xt(400,{type:"defer-action"});let Re=g.navigation.location||g.location,Ce=ei(e.history,Re,B.signal),Oe=l||o,Tt=g.navigation.state!=="idle"?wr(Oe,g.navigation.location,s):g.matches;G(Tt,"Didn't find any matches after fetcher action");let Vr=++K;me.set(N,Vr);let $o=te({state:"loading",data:ie.data},H,{" _hasFetcherDoneAnything ":!0});g.fetchers.set(N,$o);let[qi,Wt]=qc(e.history,g,Tt,H,Re,D,O,_,ne,Oe,s,{[$.route.id]:ie.data},void 0);Wt.filter(Pe=>Pe.key!==N).forEach(Pe=>{let Bo=Pe.key,zu=g.fetchers.get(Bo),j0={state:"loading",data:zu&&zu.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(Bo,j0),Pe.controller&&R.set(Bo,Pe.controller)}),J({fetchers:new Map(g.fetchers)});let Zi=()=>Wt.forEach(Pe=>tr(Pe.key));B.signal.addEventListener("abort",Zi);let{results:Io,loaderResults:Ao,fetcherResults:Fo}=await Tu(g.matches,Tt,qi,Wt,Ce);if(B.signal.aborted)return;B.signal.removeEventListener("abort",Zi),me.delete(N),R.delete(N),Wt.forEach(Pe=>R.delete(Pe.key));let ea=af(Io);if(ea)return Ur(g,ea);let{loaderData:fe,errors:ut}=tf(g,g.matches,qi,Ao,void 0,Wt,Fo,M);if(g.fetchers.has(N)){let Pe={state:"idle",data:ie.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(N,Pe)}let nr=Mu(Vr);g.navigation.state==="loading"&&Vr>ae?(G(x,"Expected pending action"),k&&k.abort(),st(g.navigation.location,{matches:Tt,loaderData:fe,errors:ut,fetchers:new Map(g.fetchers)})):(J(te({errors:ut,loaderData:nf(g.loaderData,fe,Tt,ut)},nr||Wt.length>0?{fetchers:new Map(g.fetchers)}:{})),D=!1)}async function Xi(N,P,T,$,U,H){let V=g.fetchers.get(N),W=te({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},H,{data:V&&V.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(N,W),J({fetchers:new Map(g.fetchers)});let B=new AbortController,ee=ei(e.history,T,B.signal);R.set(N,B);let ie=await Zr("loader",ee,$,U,a,i,s);if(In(ie)&&(ie=await Nh(ie,ee.signal,!0)||ie),R.get(N)===B&&R.delete(N),ee.signal.aborted)return;if(jr(ie)){ce.add(N),await Ur(g,ie);return}if(gi(ie)){let Ce=Sr(g.matches,P);g.fetchers.delete(N),J({fetchers:new Map(g.fetchers),errors:{[Ce.route.id]:ie.error}});return}G(!In(ie),"Unhandled fetcher deferred data");let Re={state:"idle",data:ie.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(N,Re),J({fetchers:new Map(g.fetchers)})}async function Ur(N,P,T){let{submission:$,replace:U,isFetchActionRedirect:H}=T===void 0?{}:T;P.revalidate&&(D=!0);let V=Ri(N.location,P.location,te({_isRedirect:!0},H?{_isFetchActionRedirect:!0}:{}));if(G(V,"Expected a location on the redirect navigation"),bh.test(P.location)&&n){let Ce=e.history.createURL(P.location),Oe=Ar(Ce.pathname,s)==null;if(t.location.origin!==Ce.origin||Oe){U?t.location.replace(P.location):t.location.assign(P.location);return}}k=null;let W=U===!0?ye.Replace:ye.Push,{formMethod:B,formAction:ee,formEncType:ie,formData:Re}=N.navigation;!$&&B&&ee&&Re&&ie&&($={formMethod:B,formAction:ee,formEncType:ie,formData:Re}),O1.has(P.status)&&$&&Qt($.formMethod)?await lt(W,V,{submission:te({},$,{formAction:P.location}),preventScrollReset:C}):H?await lt(W,V,{overrideNavigation:{state:"loading",location:V,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:$,preventScrollReset:C}):await lt(W,V,{overrideNavigation:{state:"loading",location:V,formMethod:$?$.formMethod:void 0,formAction:$?$.formAction:void 0,formEncType:$?$.formEncType:void 0,formData:$?$.formData:void 0},preventScrollReset:C})}async function Tu(N,P,T,$,U){let H=await Promise.all([...T.map(B=>Zr("loader",U,B,P,a,i,s)),...$.map(B=>B.matches&&B.match&&B.controller?Zr("loader",ei(e.history,B.path,B.controller.signal),B.match,B.matches,a,i,s):{type:Se.error,error:xt(404,{pathname:B.path})})]),V=H.slice(0,T.length),W=H.slice(T.length);return await Promise.all([of(N,T,V,V.map(()=>U.signal),!1,g.loaderData),of(N,$.map(B=>B.match),W,$.map(B=>B.controller?B.controller.signal:null),!0)]),{results:H,loaderResults:V,fetcherResults:W}}function Mo(){D=!0,O.push(...zo()),ne.forEach((N,P)=>{R.has(P)&&(_.push(P),tr(P))})}function Do(N,P,T){let $=Sr(g.matches,P);Ro(N),J({errors:{[$.route.id]:T},fetchers:new Map(g.fetchers)})}function Ro(N){let P=g.fetchers.get(N);R.has(N)&&!(P&&P.state==="loading"&&me.has(N))&&tr(N),ne.delete(N),me.delete(N),ce.delete(N),g.fetchers.delete(N)}function tr(N){let P=R.get(N);G(P,"Expected fetch controller: "+N),P.abort(),R.delete(N)}function Lu(N){for(let P of N){let $={state:"idle",data:Vt(P).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(P,$)}}function _u(){let N=[],P=!1;for(let T of ce){let $=g.fetchers.get(T);G($,"Expected fetcher: "+T),$.state==="loading"&&(ce.delete(T),N.push(T),P=!0)}return Lu(N),P}function Mu(N){let P=[];for(let[T,$]of me)if($0}function C0(N,P){let T=g.blockers.get(N)||Xc;return z.get(N)!==P&&z.set(N,P),T}function Hr(N){g.blockers.delete(N),z.delete(N)}function Ji(N,P){let T=g.blockers.get(N)||Xc;G(T.state==="unblocked"&&P.state==="blocked"||T.state==="blocked"&&P.state==="blocked"||T.state==="blocked"&&P.state==="proceeding"||T.state==="blocked"&&P.state==="unblocked"||T.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+T.state+" -> "+P.state),g.blockers.set(N,P),J({blockers:new Map(g.blockers)})}function Du(N){let{currentLocation:P,nextLocation:T,historyAction:$}=N;if(z.size===0)return;z.size>1&&Kn(!1,"A router only supports one blocker at a time");let U=Array.from(z.entries()),[H,V]=U[U.length-1],W=g.blockers.get(H);if(!(W&&W.state==="proceeding")&&V({currentLocation:P,nextLocation:T,historyAction:$}))return H}function zo(N){let P=[];return M.forEach((T,$)=>{(!N||N($))&&(T.cancel(),P.push($),M.delete($))}),P}function k0(N,P,T){if(d=N,S=P,y=T||($=>$.key),!v&&g.navigation===ms){v=!0;let $=Ru(g.location,g.matches);$!=null&&J({restoreScrollPosition:$})}return()=>{d=null,S=null,y=null}}function E0(N,P){if(d&&y&&S){let T=P.map(U=>sf(U,g.loaderData)),$=y(N,T)||N.key;d[$]=S()}}function Ru(N,P){if(d&&y&&S){let T=P.map(H=>sf(H,g.loaderData)),$=y(N,T)||N.key,U=d[$];if(typeof U=="number")return U}return null}function N0(N){a={},l=gl(N,i,void 0,a)}return m={get basename(){return s},get state(){return g},get routes(){return o},initialize:Q,subscribe:Ue,enableScrollRestoration:k0,navigate:De,fetch:Br,revalidate:gt,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Vt,deleteFetcher:Ro,dispose:Z,getBlocker:C0,deleteBlocker:Hr,_internalFetchControllers:R,_internalActiveDeferreds:M,_internalSetRoutes:N0},m}function _1(e){return e!=null&&"formData"in e}function vl(e,t,n,r,i,a,o){let l,s;if(a!=null&&o!=="path"){l=[];for(let f of t)if(l.push(f),f.route.id===a){s=f;break}}else l=t,s=t[t.length-1];let u=Su(i||".",Oo(l).map(f=>f.pathnameBase),Ar(e.pathname,n)||e.pathname,o==="path");return i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&s&&s.route.index&&!bu(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:en([n,u.pathname])),Gn(u)}function Jc(e,t,n,r){if(!r||!_1(r))return{path:n};if(r.formMethod&&!A1(r.formMethod))return{path:n,error:xt(405,{method:r.formMethod})};let i;if(r.formData){let l=r.formMethod||"get";if(i={formMethod:e?l.toUpperCase():l.toLowerCase(),formAction:Eh(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},Qt(i.formMethod))return{path:n,submission:i}}let a=Ut(n),o=kh(r.formData);return t&&a.search&&bu(a.search)&&o.append("index",""),a.search="?"+o,{path:Gn(a),submission:i}}function M1(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function qc(e,t,n,r,i,a,o,l,s,u,f,c,d){let y=d?Object.values(d)[0]:c?Object.values(c)[0]:void 0,S=e.createURL(t.location),v=e.createURL(i),w=d?Object.keys(d)[0]:void 0,h=M1(n,w).filter((g,x)=>{if(g.route.lazy)return!0;if(g.route.loader==null)return!1;if(D1(t.loaderData,t.matches[x],g)||o.some(E=>E===g.route.id))return!0;let C=t.matches[x],k=g;return Zc(g,te({currentUrl:S,currentParams:C.params,nextUrl:v,nextParams:k.params},r,{actionResult:y,defaultShouldRevalidate:a||S.pathname+S.search===v.pathname+v.search||S.search!==v.search||Ch(C,k)}))}),m=[];return s.forEach((g,x)=>{if(!n.some(D=>D.route.id===g.routeId))return;let C=wr(u,g.path,f);if(!C){m.push({key:x,routeId:g.routeId,path:g.path,matches:null,match:null,controller:null});return}let k=yl(C,g.path);if(l.includes(x)){m.push({key:x,routeId:g.routeId,path:g.path,matches:C,match:k,controller:new AbortController});return}Zc(k,te({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:a}))&&m.push({key:x,routeId:g.routeId,path:g.path,matches:C,match:k,controller:new AbortController})}),[h,m]}function D1(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Ch(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Zc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function ef(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];G(i,"No route found in manifest");let a={};for(let o in r){let s=i[o]!==void 0&&o!=="hasErrorBoundary";Kn(!s,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!r1.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,te({},t(i),{lazy:void 0}))}async function Zr(e,t,n,r,i,a,o,l,s,u){l===void 0&&(l=!1),s===void 0&&(s=!1);let f,c,d,y=w=>{let p,h=new Promise((m,g)=>p=g);return d=()=>p(),t.signal.addEventListener("abort",d),Promise.race([w({request:t,params:n.params,context:u}),h])};try{let w=n.route[e];if(n.route.lazy)if(w)c=(await Promise.all([y(w),ef(n.route,a,i)]))[0];else if(await ef(n.route,a,i),w=n.route[e],w)c=await y(w);else if(e==="action"){let p=new URL(t.url),h=p.pathname+p.search;throw xt(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:Se.data,data:void 0};else if(w)c=await y(w);else{let p=new URL(t.url),h=p.pathname+p.search;throw xt(404,{pathname:h})}G(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){f=Se.error,c=w}finally{d&&t.signal.removeEventListener("abort",d)}if(I1(c)){let w=c.status;if(j1.has(w)){let m=c.headers.get("Location");if(G(m,"Redirects returned/thrown from loaders/actions must have a Location header"),!bh.test(m))m=vl(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,m);else if(!l){let g=new URL(t.url),x=m.startsWith("//")?new URL(g.protocol+m):new URL(m),C=Ar(x.pathname,o)!=null;x.origin===g.origin&&C&&(m=x.pathname+x.search+x.hash)}if(l)throw c.headers.set("Location",m),c;return{type:Se.redirect,status:w,location:m,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s)throw{type:f||Se.data,response:c};let p,h=c.headers.get("Content-Type");return h&&/\bapplication\/json\b/.test(h)?p=await c.json():p=await c.text(),f===Se.error?{type:f,error:new xu(w,c.statusText,p),headers:c.headers}:{type:Se.data,data:p,statusCode:c.status,headers:c.headers}}if(f===Se.error)return{type:f,error:c};if($1(c)){var S,v;return{type:Se.deferred,deferredData:c,statusCode:(S=c.init)==null?void 0:S.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:Se.data,data:c}}function ei(e,t,n,r){let i=e.createURL(Eh(t)).toString(),a={signal:n};if(r&&Qt(r.formMethod)){let{formMethod:o,formEncType:l,formData:s}=r;a.method=o.toUpperCase(),a.body=l==="application/x-www-form-urlencoded"?kh(s):s}return new Request(i,a)}function kh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function R1(e,t,n,r,i){let a={},o=null,l,s=!1,u={};return n.forEach((f,c)=>{let d=t[c].route.id;if(G(!jr(f),"Cannot handle redirect results in processLoaderData"),gi(f)){let y=Sr(e,d),S=f.error;r&&(S=Object.values(r)[0],r=void 0),o=o||{},o[y.route.id]==null&&(o[y.route.id]=S),a[d]=void 0,s||(s=!0,l=Sh(f.error)?f.error.status:500),f.headers&&(u[d]=f.headers)}else In(f)?(i.set(d,f.deferredData),a[d]=f.deferredData.data):a[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(u[d]=f.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:l||200,loaderHeaders:u}}function tf(e,t,n,r,i,a,o,l){let{loaderData:s,errors:u}=R1(t,n,r,i,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function rf(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function xt(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(l="defer() is not supported in actions")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new xu(e||500,o,new Error(l),!0)}function af(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(jr(n))return n}}function Eh(e){let t=typeof e=="string"?Ut(e):e;return Gn(te({},t,{hash:""}))}function z1(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function In(e){return e.type===Se.deferred}function gi(e){return e.type===Se.error}function jr(e){return(e&&e.type)===Se.redirect}function $1(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function I1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function A1(e){return N1.has(e.toLowerCase())}function Qt(e){return k1.has(e.toLowerCase())}async function of(e,t,n,r,i,a){for(let o=0;oc.route.id===s.route.id),f=u!=null&&!Ch(u,s)&&(a&&a[s.route.id])!==void 0;if(In(l)&&(i||f)){let c=r[o];G(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await Nh(l,c,i).then(d=>{d&&(n[o]=d||n[o])})}}}async function Nh(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Se.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Se.error,error:i}}return{type:Se.data,data:e.deferredData.data}}}function bu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sf(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function yl(e,t){let n=typeof t=="string"?Ut(t).search:t.search;if(e[e.length-1].route.index&&bu(n||""))return e[e.length-1];let r=Oo(e);return r[r.length-1]}/** + * React Router v6.12.1 + * + * 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 oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),o=j.useRef(!1);return Oh(()=>{o.current=!0}),j.useCallback(function(s,u){if(u===void 0&&(u={}),!o.current)return;if(typeof s=="number"){n.go(s);return}let f=Su(s,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:en([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,a,i,e])}const U1=j.createContext(null);function H1(e){let t=j.useContext(_n).outlet;return t&&j.createElement(U1.Provider,{value:e},t)}function ku(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=j.useContext(_n),{pathname:i}=Wi(),a=JSON.stringify(Oo(r).map(o=>o.pathnameBase));return j.useMemo(()=>Su(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function V1(e,t,n){Vi()||G(!1);let{navigator:r}=j.useContext(Zn),{matches:i}=j.useContext(_n),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let s=Wi(),u;if(t){var f;let v=typeof t=="string"?Ut(t):t;l==="/"||(f=v.pathname)!=null&&f.startsWith(l)||G(!1),u=v}else u=s;let c=u.pathname||"/",d=l==="/"?c:c.slice(l.length)||"/",y=wr(e,{pathname:d}),S=Q1(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:en([l,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:en([l,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n);return t&&S?j.createElement(To.Provider,{value:{location:oo({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ye.Pop}},S):S}function W1(){let e=Lh(),t=Sh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:i},n):null,a)}const K1=j.createElement(W1,null);class G1 extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?j.createElement(_n.Provider,{value:this.props.routeContext},j.createElement(jh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Y1(e){let{routeContext:t,match:n,children:r}=e,i=j.useContext(Po);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(_n.Provider,{value:t},r)}function Q1(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let l=a.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));l>=0||G(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((l,s,u)=>{let f=s.route.id?o==null?void 0:o[s.route.id]:null,c=null;n&&(c=s.route.errorElement||K1);let d=t.concat(a.slice(0,u+1)),y=()=>{let S;return f?S=c:s.route.Component?S=j.createElement(s.route.Component,null):s.route.element?S=s.route.element:S=l,j.createElement(Y1,{match:s,routeContext:{outlet:l,matches:d,isDataRoute:n!=null},children:S})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?j.createElement(G1,{location:n.location,revalidation:n.revalidation,component:c,error:f,children:y(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):y()},null)}var wl;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(wl||(wl={}));var zi;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(zi||(zi={}));function X1(e){let t=j.useContext(Po);return t||G(!1),t}function J1(e){let t=j.useContext(Cu);return t||G(!1),t}function q1(e){let t=j.useContext(_n);return t||G(!1),t}function Th(e){let t=q1(),n=t.matches[t.matches.length-1];return n.route.id||G(!1),n.route.id}function Lh(){var e;let t=j.useContext(jh),n=J1(zi.UseRouteError),r=Th(zi.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Z1(){let{router:e}=X1(wl.UseNavigateStable),t=Th(zi.UseNavigateStable),n=j.useRef(!1);return Oh(()=>{n.current=!0}),j.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,oo({fromRouteId:t},a)))},[e,t])}const lf="startTransition";function ev(e){let{fallbackElement:t,router:n}=e,[r,i]=j.useState(n.state),a=j.useCallback(u=>{lf in Fu?Fu[lf](()=>i(u)):i(u)},[i]);j.useLayoutEffect(()=>n.subscribe(a),[n,a]);let o=j.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:u=>n.navigate(u),push:(u,f,c)=>n.navigate(u,{state:f,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(u,f,c)=>n.navigate(u,{replace:!0,state:f,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[n]),l=n.basename||"/",s=j.useMemo(()=>({router:n,navigator:o,static:!1,basename:l}),[n,o,l]);return j.createElement(j.Fragment,null,j.createElement(Po.Provider,{value:s},j.createElement(Cu.Provider,{value:r},j.createElement(rv,{basename:l,location:r.location,navigationType:r.historyAction,navigator:o},r.initialized?j.createElement(tv,{routes:n.routes,state:r}):t))),null)}function tv(e){let{routes:t,state:n}=e;return V1(t,void 0,n)}function nv(e){return H1(e.context)}function rv(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ye.Pop,navigator:a,static:o=!1}=e;Vi()&&G(!1);let l=t.replace(/^\/*/,"/"),s=j.useMemo(()=>({basename:l,navigator:a,static:o}),[l,a,o]);typeof r=="string"&&(r=Ut(r));let{pathname:u="/",search:f="",hash:c="",state:d=null,key:y="default"}=r,S=j.useMemo(()=>{let v=Ar(u,l);return v==null?null:{location:{pathname:v,search:f,hash:c,state:d,key:y},navigationType:i}},[l,u,f,c,d,y,i]);return S==null?null:j.createElement(Zn.Provider,{value:s},j.createElement(To.Provider,{children:n,value:S}))}var uf;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(uf||(uf={}));new Promise(()=>{});function iv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:j.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:j.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.12.1 + * + * 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 Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function av(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ov(e,t){return e.button===0&&(!t||t==="_self")&&!av(e)}const sv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],lv=["aria-current","caseSensitive","className","end","style","to","children"];function uv(e,t){return L1({basename:t==null?void 0:t.basename,future:Rr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:e1({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||cv(),routes:e,mapRouteProperties:iv}).initialize()}function cv(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Rr({},t,{errors:fv(t.errors)})),t}function fv(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new xu(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",n[r]=a}else n[r]=i;return n}const dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hv=j.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:l,target:s,to:u,preventScrollReset:f}=t,c=_h(t,sv),{basename:d}=j.useContext(Zn),y,S=!1;if(typeof u=="string"&&pv.test(u)&&(y=u,dv))try{let h=new URL(window.location.href),m=u.startsWith("//")?new URL(h.protocol+u):new URL(u),g=Ar(m.pathname,d);m.origin===h.origin&&g!=null?u=g+m.search+m.hash:S=!0}catch{}let v=F1(u,{relative:i}),w=mv(u,{replace:o,state:l,target:s,preventScrollReset:f,relative:i});function p(h){r&&r(h),h.defaultPrevented||w(h)}return j.createElement("a",Rr({},c,{href:y||v,onClick:S||a?r:p,ref:n,target:s}))}),Eu=j.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:o=!1,style:l,to:s,children:u}=t,f=_h(t,lv),c=ku(s,{relative:f.relative}),d=Wi(),y=j.useContext(Cu),{navigator:S}=j.useContext(Zn),v=S.encodeLocation?S.encodeLocation(c).pathname:c.pathname,w=d.pathname,p=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(w=w.toLowerCase(),p=p?p.toLowerCase():null,v=v.toLowerCase());let h=w===v||!o&&w.startsWith(v)&&w.charAt(v.length)==="/",m=p!=null&&(p===v||!o&&p.startsWith(v)&&p.charAt(v.length)==="/"),g=h?r:void 0,x;typeof a=="function"?x=a({isActive:h,isPending:m}):x=[a,h?"active":null,m?"pending":null].filter(Boolean).join(" ");let C=typeof l=="function"?l({isActive:h,isPending:m}):l;return j.createElement(hv,Rr({},f,{"aria-current":g,className:x,ref:n,style:C,to:s}),typeof u=="function"?u({isActive:h,isPending:m}):u)});var cf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(cf||(cf={}));var ff;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ff||(ff={}));function mv(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,l=Ph(),s=Wi(),u=ku(e,{relative:o});return j.useCallback(f=>{if(ov(f,n)){f.preventDefault();let c=r!==void 0?r:Gn(s)===Gn(u);l(e,{replace:c,state:i,preventScrollReset:a,relative:o})}},[s,l,u,r,i,n,e,a,o])}var Mh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},df=X.createContext&&X.createContext(Mh),kn=globalThis&&globalThis.__assign||function(){return kn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(s,u){var f=t.services.backendConnector.state["".concat(s,"|").concat(u)];return f===-1||f===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function Lv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Sl("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):Tv(e,t,n)}var _v=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Mv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Dv=function(t){return Mv[t]},Rv=function(t){return t.replace(_v,Dv)};function yf(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 wf(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};xl=wf(wf({},xl),e)}function $v(){return xl}var Uh;function Iv(e){Uh=e}function Av(){return Uh}function Ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sf(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=j.useContext(Bv)||{},i=r.i18n,a=r.defaultNS,o=n||i||Av();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Uv),!o){Sl("You will need to pass in an i18next instance by using initReactI18next");var l=function(D,O){return typeof O=="string"?O:O&&nt(O)==="object"&&typeof O.defaultValue=="string"?O.defaultValue:Array.isArray(D)?D[D.length-1]:D},s=[l,{},!1];return s.t=l,s.i18n={},s.ready=!1,s}o.options.react&&o.options.react.wait!==void 0&&Sl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=gs(gs(gs({},$v()),o.options.react),t),f=u.useSuspense,c=u.keyPrefix,d=e||a||o.options&&o.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(d);var y=(o.isInitialized||o.initializedStoreOnce)&&d.every(function(E){return Lv(E,o,u)});function S(){return o.getFixedT(t.lng||null,u.nsMode==="fallback"?d:d[0],c)}var v=j.useState(S),w=Vv(v,2),p=w[0],h=w[1],m=d.join();t.lng&&(m="".concat(t.lng).concat(m));var g=Wv(m),x=j.useRef(!0);j.useEffect(function(){var E=u.bindI18n,D=u.bindI18nStore;x.current=!0,!y&&!f&&(t.lng?vf(o,t.lng,d,function(){x.current&&h(S)}):gf(o,d,function(){x.current&&h(S)})),y&&g&&g!==m&&x.current&&h(S);function O(){x.current&&h(S)}return E&&o&&o.on(E,O),D&&o&&o.store.on(D,O),function(){x.current=!1,E&&o&&E.split(" ").forEach(function(_){return o.off(_,O)}),D&&o&&D.split(" ").forEach(function(_){return o.store.off(_,O)})}},[o,m]);var C=j.useRef(!0);j.useEffect(function(){x.current&&!C.current&&h(S),C.current=!1},[o,c]);var k=[p,o,y];if(k.t=p,k.i18n=o,k.ready=y,y||!y&&!f)return k;throw new Promise(function(E){t.lng?vf(o,t.lng,d,function(){return E()}):gf(o,d,function(){return E()})})}function En(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bl(e,t){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bl(e,t)}function Lo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bl(e,t)}function Ki(e,t){if(t&&(nt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return En(e)}function Ft(e){return Ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ft(e)}function Gv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yv(e){return Hh(e)||Gv(e)||Vh(e)||Wh()}function Cf(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 kf(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Ot(this,e),this.init(t,n)}return Pt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||Qv,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),a=1;a-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function Nf(e,t,n){var r=Nu(e,t,Object),i=r.obj,a=r.k;i[a]=n}function qv(e,t,n,r){var i=Nu(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function so(e,t){var n=Nu(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Zv(e,t,n){var r=so(e,n);return r!==void 0?r:so(t,n)}function Kh(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Kh(e[r],t[r],n):e[r]=t[r]);return e}function ir(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ey={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ty(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return ey[t]}):e}var _o=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ny=[" ",",","?","!",";"];function ry(e,t,n){t=t||"",n=n||"";var r=ny.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function lo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;aa+o;)o++,l=r.slice(a,a+o).join(n),s=i[l];if(s===void 0)return;if(s===null)return null;if(t.endsWith(l)){if(typeof s=="string")return s;if(l&&typeof s[l]=="string")return s[l]}var u=r.slice(a+o).join(n);return u?lo(s,u,n):void 0}i=i[r[a]]}return i}}function jf(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 ya(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}}var oy=function(e){Lo(n,e);var t=iy(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ot(this,n),i=t.call(this),_o&&On.call(En(i)),i.data=r||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Pt(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,u=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,f=[i,a];o&&typeof o!="string"&&(f=f.concat(o)),o&&typeof o=="string"&&(f=f.concat(s?o.split(s):o)),i.indexOf(".")>-1&&(f=i.split("."));var c=so(this.data,f);return c||!u||typeof o!="string"?c:lo(this.data&&this.data[i]&&this.data[i][a],o,s)}},{key:"addResource",value:function(i,a,o,l){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=[i,a];o&&(f=f.concat(u?o.split(u):o)),i.indexOf(".")>-1&&(f=i.split("."),l=a,a=f[1]),this.addNamespaces(a),Nf(this.data,f,l),s.silent||this.emit("added",i,a,o,l)}},{key:"addResources",value:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var s in o)(typeof o[s]=="string"||Object.prototype.toString.apply(o[s])==="[object Array]")&&this.addResource(i,a,s,o[s],{silent:!0});l.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,l,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},f=[i,a];i.indexOf(".")>-1&&(f=i.split("."),l=o,o=a,a=f[1]),this.addNamespaces(a);var c=so(this.data,f)||{};l?Kh(c,o,s):c=ya(ya({},c),o),Nf(this.data,f,c),u.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ya(ya({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(l){return a[l]&&Object.keys(a[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(On),Gh={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,a){var o=this;return t.forEach(function(l){o.processors[l]&&(n=o.processors[l].process(n,r,i,a))}),n}};function Of(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 Ie(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}}var Pf={},Tf=function(e){Lo(n,e);var t=sy(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ot(this,n),i=t.call(this),_o&&On.call(En(i)),Jv(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,En(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=zt.create("translator"),i}return Pt(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ns||this.options.defaultNS||[],u=o&&i.indexOf(o)>-1,f=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!ry(i,o,l);if(u&&!f){var c=i.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:i,namespaces:s};var d=i.split(o);(o!==l||o===l&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),i=d.join(l)}return typeof s=="string"&&(s=[s]),{key:i,namespaces:s}}},{key:"translate",value:function(i,a,o){var l=this;if(nt(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),nt(a)==="object"&&(a=Ie({},a)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var s=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,f=this.extractFromKey(i[i.length-1],a),c=f.key,d=f.namespaces,y=d[d.length-1],S=a.lng||this.language,v=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S&&S.toLowerCase()==="cimode"){if(v){var w=a.nsSeparator||this.options.nsSeparator;return s?{res:"".concat(y).concat(w).concat(c),usedKey:c,exactUsedKey:c,usedLng:S,usedNS:y}:"".concat(y).concat(w).concat(c)}return s?{res:c,usedKey:c,exactUsedKey:c,usedLng:S,usedNS:y}:c}var p=this.resolve(i,a),h=p&&p.res,m=p&&p.usedKey||c,g=p&&p.exactUsedKey||c,x=Object.prototype.toString.apply(h),C=["[object Number]","[object Function]","[object RegExp]"],k=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(E&&h&&D&&C.indexOf(x)<0&&!(typeof k=="string"&&x==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,Ie(Ie({},a),{},{ns:d})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return s?(p.res=O,p):O}if(u){var _=x==="[object Array]",R=_?[]:{},K=_?g:m;for(var ae in h)if(Object.prototype.hasOwnProperty.call(h,ae)){var me="".concat(K).concat(u).concat(ae);R[ae]=this.translate(me,Ie(Ie({},a),{joinArrays:!1,ns:d})),R[ae]===me&&(R[ae]=h[ae])}h=R}}else if(E&&typeof k=="string"&&x==="[object Array]")h=h.join(k),h&&(h=this.extendTranslation(h,i,a,o));else{var ce=!1,ne=!1,M=a.count!==void 0&&typeof a.count!="string",z=n.hasDefaultValue(a),F=M?this.pluralResolver.getSuffix(S,a.count,a):"",Q=a["defaultValue".concat(F)]||a.defaultValue;!this.isValidLookup(h)&&z&&(ce=!0,h=Q),this.isValidLookup(h)||(ne=!0,h=c);var Z=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ue=Z&&ne?void 0:h,J=z&&Q!==h&&this.options.updateMissing;if(ne||ce||J){if(this.logger.log(J?"updateKey":"missingKey",S,y,c,J?Q:h),u){var st=this.resolve(c,Ie(Ie({},a),{},{keySeparator:!1}));st&&st.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var De=[],gt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&>&>[0])for(var lt=0;lt1&&arguments[1]!==void 0?arguments[1]:{},l,s,u,f,c;return typeof i=="string"&&(i=[i]),i.forEach(function(d){if(!a.isValidLookup(l)){var y=a.extractFromKey(d,o),S=y.key;s=S;var v=y.namespaces;a.options.fallbackNS&&(v=v.concat(a.options.fallbackNS));var w=o.count!==void 0&&typeof o.count!="string",p=w&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),h=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",m=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);v.forEach(function(g){a.isValidLookup(l)||(c=g,!Pf["".concat(m[0],"-").concat(g)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(c)&&(Pf["".concat(m[0],"-").concat(g)]=!0,a.logger.warn('key "'.concat(s,'" for languages "').concat(m.join(", "),`" won't get resolved as namespace "`).concat(c,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(x){if(!a.isValidLookup(l)){f=x;var C=[S];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(C,S,x,g,o);else{var k;w&&(k=a.pluralResolver.getSuffix(x,o.count,o));var E="".concat(a.options.pluralSeparator,"zero");if(w&&(C.push(S+k),p&&C.push(S+E)),h){var D="".concat(S).concat(a.options.contextSeparator).concat(o.context);C.push(D),w&&(C.push(D+k),p&&C.push(D+E))}}for(var O;O=C.pop();)a.isValidLookup(l)||(u=O,l=a.getResource(x,g,O,o))}}))})}}),{res:l,usedKey:s,exactUsedKey:u,usedLng:f,usedNS:c}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,l):this.resourceStore.getResource(i,a,o,l)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),n}(On);function vs(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Lf=function(){function e(t){Ot(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zt.create("languageUtils")}return Pt(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=vs(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=vs(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=vs(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(a){if(!i){var o=r.formatLanguageCode(a);(!r.options.supportedLngs||r.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&n.forEach(function(a){if(!i){var o=r.getLanguagePartFromCode(a);if(r.isSupportedCode(o))return i=o;i=r.options.supportedLngs.find(function(l){if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&l.indexOf(o)===0)return l})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],n),o=[],l=function(u){u&&(i.isSupportedCode(u)?o.push(u):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),a.forEach(function(s){o.indexOf(s)<0&&l(i.formatLanguageCode(s))}),o}}]),e}(),uy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],cy={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},fy=["v1","v2","v3"],_f={zero:0,one:1,two:2,few:3,many:4,other:5};function dy(){var e={};return uy.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:cy[t.fc]}})}),e}var py=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ot(this,e),this.languageUtils=t,this.options=n,this.logger=zt.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=dy()}return Pt(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(a){return"".concat(r).concat(a)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,l){return _f[o]-_f[l]}).map(function(o){return"".concat(r.options.prepend).concat(o)}):a.numbers.map(function(o){return r.getSuffix(n,o,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,a=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var l=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!fy.includes(this.options.compatibilityJSON)}}]),e}();function Mf(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 yt(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Zv(e,t,n);return!a&&i&&typeof n=="string"&&(a=lo(e,n,r),a===void 0&&(a=lo(t,n,r))),a}var hy=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ot(this,e),this.logger=zt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Pt(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:ty,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?ir(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?ir(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?ir(r.nestingPrefix):r.nestingPrefixEscaped||ir("$t("),this.nestingSuffix=r.nestingSuffix?ir(r.nestingSuffix):r.nestingSuffixEscaped||ir(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,a){var o=this,l,s,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(w){return w.replace(/\$/g,"$$$$")}var d=function(p){if(p.indexOf(o.formatSeparator)<0){var h=Df(r,f,p,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(h,void 0,i,yt(yt(yt({},a),r),{},{interpolationkey:p})):h}var m=p.split(o.formatSeparator),g=m.shift().trim(),x=m.join(o.formatSeparator).trim();return o.format(Df(r,f,g,o.options.keySeparator,o.options.ignoreJSONStructure),x,i,yt(yt(yt({},a),r),{},{interpolationkey:g}))};this.resetRegExp();var y=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,S=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(p){return c(p)}},{regex:this.regexp,safeValue:function(p){return o.escapeValue?c(o.escape(p)):c(p)}}];return v.forEach(function(w){for(u=0;l=w.regex.exec(n);){var p=l[1].trim();if(s=d(p),s===void 0)if(typeof y=="function"){var h=y(n,l,a);s=typeof h=="string"?h:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))s="";else if(S){s=l[0];continue}else o.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(n)),s="";else typeof s!="string"&&!o.useRawValueToEscape&&(s=Ef(s));var m=w.safeValue(s);if(n=n.replace(l[0],m),S?(w.regex.lastIndex+=s.length,w.regex.lastIndex-=l[0].length):w.regex.lastIndex=0,u++,u>=o.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,s;function u(y,S){var v=this.nestingOptionsSeparator;if(y.indexOf(v)<0)return y;var w=y.split(new RegExp("".concat(v,"[ ]*{"))),p="{".concat(w[1]);y=w[0],p=this.interpolate(p,s);var h=p.match(/'/g),m=p.match(/"/g);(h&&h.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),S&&(s=yt(yt({},S),s))}catch(g){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),g),"".concat(y).concat(v).concat(p)}return delete s.defaultValue,y}for(;o=this.nestingRegexp.exec(n);){var f=[];s=yt({},a),s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;var c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(y){return y.trim()});o[1]=d.shift(),f=d,c=!0}if(l=r(u.call(this,o[1].trim(),s),s),l&&o[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=Ef(l)),l||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),l=""),c&&(l=f.reduce(function(y,S){return i.format(y,S,a.lng,yt(yt({},a),{},{interpolationkey:o[1].trim()}))},l.trim())),n=n.replace(o[0],l),this.regexp.lastIndex=0}return n}}]),e}();function Rf(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 Kt(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(o){var l=o.split(":"),s=Yv(l),u=s[0],f=s.slice(1),c=f.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=c),c==="false"&&(n[u.trim()]=!1),c==="true"&&(n[u.trim()]=!0),isNaN(c)||(n[u.trim()]=parseInt(c,10))}})}}return{formatName:t,formatOptions:n}}function ar(e){var t={};return function(r,i,a){var o=i+JSON.stringify(a),l=t[o];return l||(l=e(i,a),t[o]=l),l(r)}}var gy=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ot(this,e),this.logger=zt.create("formatter"),this.options=t,this.formats={number:ar(function(n,r){var i=new Intl.NumberFormat(n,Kt({},r));return function(a){return i.format(a)}}),currency:ar(function(n,r){var i=new Intl.NumberFormat(n,Kt(Kt({},r),{},{style:"currency"}));return function(a){return i.format(a)}}),datetime:ar(function(n,r){var i=new Intl.DateTimeFormat(n,Kt({},r));return function(a){return i.format(a)}}),relativetime:ar(function(n,r){var i=new Intl.RelativeTimeFormat(n,Kt({},r));return function(a){return i.format(a,r.range||"day")}}),list:ar(function(n,r){var i=new Intl.ListFormat(n,Kt({},r));return function(a){return i.format(a)}})},this.init(t)}return Pt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=ar(r)}},{key:"format",value:function(n,r,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r.split(this.formatSeparator),s=l.reduce(function(u,f){var c=my(f),d=c.formatName,y=c.formatOptions;if(a.formats[d]){var S=u;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||i;S=a.formats[d](u,w,Kt(Kt(Kt({},y),o),v))}catch(p){a.logger.warn(p)}return S}else a.logger.warn("there was no format function for ".concat(d));return u},n);return s}}]),e}();function zf(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 $f(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 wy(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var Sy=function(e){Lo(n,e);var t=vy(n);function n(r,i,a){var o,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ot(this,n),o=t.call(this),_o&&On.call(En(o)),o.backend=r,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=l,o.logger=zt.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=l.maxParallelReads||10,o.readingCalls=0,o.maxRetries=l.maxRetries>=0?l.maxRetries:5,o.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,l.backend,l),o}return Pt(n,[{key:"queueLoad",value:function(i,a,o,l){var s=this,u={},f={},c={},d={};return i.forEach(function(y){var S=!0;a.forEach(function(v){var w="".concat(y,"|").concat(v);!o.reload&&s.store.hasResourceBundle(y,v)?s.state[w]=2:s.state[w]<0||(s.state[w]===1?f[w]===void 0&&(f[w]=!0):(s.state[w]=1,S=!1,f[w]===void 0&&(f[w]=!0),u[w]===void 0&&(u[w]=!0),d[v]===void 0&&(d[v]=!0)))}),S||(c[y]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(i,a,o){var l=i.split("|"),s=l[0],u=l[1];a&&this.emit("failedLoading",s,u,a),o&&this.store.addResourceBundle(s,u,o),this.state[i]=a?-1:2;var f={};this.queue.forEach(function(c){qv(c.loaded,[s],u),wy(c,i),a&&c.errors.push(a),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(function(d){f[d]||(f[d]={});var y=c.loaded[d];y.length&&y.forEach(function(S){f[d][S]===void 0&&(f[d][S]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(i,a,o){var l=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,f=arguments.length>5?arguments[5]:void 0;if(!i.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:s,wait:u,callback:f});return}this.readingCalls++;var c=function(v,w){if(l.readingCalls--,l.waitingReads.length>0){var p=l.waitingReads.shift();l.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(v&&w&&s2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var u=this.queueLoad(i,a,l,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(function(f){o.loadOne(f)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),s=l[0],u=l[1];this.read(s,u,"read",void 0,void 0,function(f,c){f&&a.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(s," failed"),f),!f&&c&&a.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(s),c),a.loaded(i,f,c)})}},{key:"saveMissing",value:function(i,a,o,l,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var c=$f($f({},u),{},{isUpdate:s}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var y;d.length===5?y=d(i,a,o,l,c):y=d(i,a,o,l),y&&typeof y.then=="function"?y.then(function(S){return f(null,S)}).catch(f):f(null,y)}catch(S){f(S)}else d(i,a,o,l,f,c)}!i||!i[0]||this.store.addResource(i[0],a,o,l)}}}]),n}(On);function If(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(nt(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),nt(t[2])==="object"||nt(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Af(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ff(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 _t(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 wa(){}function Cy(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var uo=function(e){Lo(n,e);var t=xy(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Ot(this,n),r=t.call(this),_o&&On.call(En(r)),r.options=Af(i),r.services={},r.logger=zt,r.modules={external:[]},Cy(En(r)),a&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,a),Ki(r,En(r));setTimeout(function(){r.init(i,a)},0)}return r}return Pt(n,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var l=If();this.options=_t(_t(_t({},l),this.options),Af(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=_t(_t({},l.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?zt.init(s(this.modules.logger),this.options):zt.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=gy);var f=new Lf(this.options);this.store=new oy(this.options.resources,this.options);var c=this.services;c.logger=zt,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new py(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(c.formatter=s(u),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new hy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Sy(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var h=arguments.length,m=new Array(h>1?h-1:0),g=1;g1?h-1:0),g=1;g0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var y=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];y.forEach(function(p){i[p]=function(){var h;return(h=i.store)[p].apply(h,arguments)}});var S=["addResource","addResources","addResourceBundle","removeResourceBundle"];S.forEach(function(p){i[p]=function(){var h;return(h=i.store)[p].apply(h,arguments),i}});var v=ti(),w=function(){var h=function(g,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),v.resolve(x),o(g,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return h(null,i.t.bind(i));i.changeLanguage(i.options.lng,h)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),v}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wa,l=o,s=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return l();var u=[],f=function(y){if(y){var S=a.services.languageUtils.toResolveHierarchy(y);S.forEach(function(v){u.indexOf(v)<0&&u.push(v)})}};if(s)f(s);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(d){return f(d)})}this.options.preload&&this.options.preload.forEach(function(d){return f(d)}),this.services.backendConnector.load(u,this.options.ns,function(d){!d&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),l(d)})}else l(null)}},{key:"reloadResources",value:function(i,a,o){var l=ti();return i||(i=this.languages),a||(a=this.options.ns),o||(o=wa),this.services.backendConnector.reload(i,a,function(s){l.resolve(),o(s)}),l}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Gh.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var l=ti();this.emit("languageChanging",i);var s=function(d){o.language=d,o.languages=o.services.languageUtils.toResolveHierarchy(d),o.resolvedLanguage=void 0,o.setResolvedLanguage(d)},u=function(d,y){y?(s(y),o.translator.changeLanguage(y),o.isLanguageChangingTo=void 0,o.emit("languageChanged",y),o.logger.log("languageChanged",y)):o.isLanguageChangingTo=void 0,l.resolve(function(){return o.t.apply(o,arguments)}),a&&a(d,function(){return o.t.apply(o,arguments)})},f=function(d){!i&&!d&&o.services.languageDetector&&(d=[]);var y=typeof d=="string"?d:o.services.languageUtils.getBestMatchFromCodes(d);y&&(o.language||s(y),o.translator.language||o.translator.changeLanguage(y),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(y)),o.loadResources(y,function(S){u(S,y)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(i),l}},{key:"getFixedT",value:function(i,a,o){var l=this,s=function u(f,c){var d;if(nt(c)!=="object"){for(var y=arguments.length,S=new Array(y>2?y-2:0),v=2;v1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var l=o.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var f=function(y,S){var v=a.services.backendConnector.state["".concat(y,"|").concat(S)];return v===-1||v===2};if(o.precheck){var c=o.precheck(this,f);if(c!==void 0)return c}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(l,i)&&(!s||f(u,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,l=ti();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(s){o.options.ns.indexOf(s)<0&&o.options.ns.push(s)}),this.loadResources(function(s){l.resolve(),a&&a(s)}),l):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=ti();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],s=i.filter(function(u){return l.indexOf(u)<0});return s.length?(this.options.preload=l.concat(s),this.loadResources(function(u){o.resolve(),a&&a(u)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Lf(If());return a.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wa,l=_t(_t(_t({},this.options),a),{isClone:!0}),s=new n(l);(a.debug!==void 0||a.prefix!==void 0)&&(s.logger=s.logger.clone(a));var u=["store","services","language"];return u.forEach(function(f){s[f]=i[f]}),s.services=_t({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new Tf(s.services,s.options),s.translator.on("*",function(f){for(var c=arguments.length,d=new Array(c>1?c-1:0),y=1;y0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new uo(e,t)});var Be=uo.createInstance();Be.createInstance=uo.createInstance;Be.createInstance;Be.dir;Be.init;Be.loadResources;Be.reloadResources;Be.use;Be.changeLanguage;Be.getFixedT;Be.t;Be.exists;Be.setDefaultNamespace;Be.hasLoadedNamespace;Be.loadNamespaces;Be.loadLanguages;const ky="Home",Ey="About",Ny="Service",jy="Portfolio",Oy="Contact",Py="Follow Me",Ty="I am Mehdi Keramati",Ly="I'm a ",_y="FrontEnd Developer",My="Designer",Dy="Web Developer",Ry="Download CV",zy="Welcome",$y="ABOUT",Iy="Hello there , i'm Mehdi Keramati",Ay="i'm FrontEnd web Developer and photoshop designer , 18 years old from northwest of Persia.",Fy="Frontend developer",By="A front-end developer builds the front-end portion of websites and web applications—that is, the part that users actually see and interact with.",Uy="Web Development",Hy="Web developers create and maintain websites. They are also responsible for the site's technical aspects.",Vy="Wordpress CMS",Wy="WordPress is an open-source content management system (CMS) software used to build, modify, and maintain websites",Ky="Graphic Designer.",Gy="Photoshop artists are called graphic designers. They use Photoshop to create graphics for websites, logos, and illustrations.",Yy="SKILLS",Qy="Let's See My Skills",Xy="HTML",Jy="HTML stands for Hyper Text Markup Language. HTML is the standard markup language for creating Web pages",qy="Css",Zy="CSS (Cascading Style Sheets) is used to style and layout web pages ",e2="Sass",t2=" SCSS (or Sass) offers a way to write styles for websites with more enhanced CSS syntax",n2="JS",r2="JavaScript is a dynamic programming language that's used for web development, in web applications, for game development etc",i2="React",a2="The React. js framework is an open-source JavaScript framework and library developed by Facebook",o2="Tailwind",s2="Tailwind CSS is a low-level framework. Meaning, unlike other CSS frameworks like Bootstrap and Materialize",l2="Bootstrap",u2="Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development",c2="Photoshop",f2="Photoshop is software that offers a virtually limitless opportunity to create digital art etc...",d2="PROJECTS",p2="Let's See My Project",h2="All",m2="Dashboard",g2="Weather Forecast",v2="Music Player",y2="Alan News",w2="Crypto Currency",S2="Digital Repair",x2="legends-landingpage",b2="GPT3",C2="business",k2="Covid-19",E2="LittleProject",N2="Simpsons",j2="videograph Portfolio",O2="eCommerce Template",P2="Flappy Bird",T2="Dino",L2="Word Hunt",_2="Memeory Game",M2="Quiz App",D2="TikTokToe",R2="Sportwebsite UI/UX",z2="Dashboard UI/UX",$2="Some Games",I2="App",A2="Games",F2="Templates",B2="GraphicDesign",U2="VanillaJS",H2="ReactJS",V2="View Github",W2="Live Demo",K2="CONTACT ME",G2="Get in touch with me today",Y2="Need to contact me? fill the form and send , or send a message to one of the social networks.",Q2="Your Name",X2="Your Email",J2="Your Message",q2="Send Message",Z2="Settings",ew="Theme Options",tw="Light",nw="Dark",rw="Change Language",iw="English",aw="Persian",ow="Theme Colors",sw="Message Sended!!",lw="LOADING",uw={navItem1:ky,navItem2:Ey,navItem3:Ny,navItem4:jy,navItem5:Oy,followMe:Py,myName:Ty,im:Ly,frontEnd:_y,designer:My,webdev:Dy,readMore:Ry,welcome:zy,about:$y,helloName:Iy,AboutDescreption:Ay,aboutSkills1:Fy,aboutSkills1Description1:By,aboutSkills2:Uy,aboutSkills1Description2:Hy,aboutSkills3:Vy,aboutSkills1Description3:Wy,aboutSkills5:Ky,aboutSkills1Description5:Gy,skills:Yy,seeSkills:Qy,html:Xy,htmlDescription:Jy,css:qy,cssDescription:Zy,sass:e2,sassDescription:t2,js:n2,jsDescription:r2,react:i2,reactDescription:a2,tailwind:o2,tailwindDescription:s2,bootstrap:l2,bootstrapDescription:u2,photoshop:c2,photoshopDescription:f2,projects:d2,seeProjects:p2,all:h2,projectName1:m2,projectName2:g2,projectName3:v2,projectName4:y2,projectName5:w2,projectName0:S2,projectName6:x2,projectName7:b2,projectName8:C2,projectName9:k2,projectName10:E2,projectName11:N2,projectName12:j2,projectName13:O2,projectName14:P2,projectName15:T2,projectName16:L2,projectName17:_2,projectName18:M2,projectName19:D2,projectName20:R2,projectName21:z2,projectName22:$2,app:I2,games:A2,templates:F2,graphicDesign:B2,vanillajs:U2,reactjs:H2,viewGithub:V2,liveDemo:W2,contact:K2,getInTouch:G2,contactDescription:Y2,yourName:Q2,yourEmail:X2,yourMessage:J2,sendMessage:q2,settings:Z2,themeOptions:ew,light:tw,dark:nw,changeLang:rw,en:iw,fa:aw,themeColors:ow,messageSended:sw,loading:lw},cw="خانه",fw="درباره من",dw="مهارت ها",pw="پروژه ها",hw="ارتباط با ما",mw="راه های ارتباطی",gw="من مهدی کرامتی هستم",vw="من ",yw="برنامه نویس فرانت اند هستم",ww="گرافیست هستم",Sw="برنامه نویس وب هستم",xw="دانلود رزومه",bw="خوش آمدید",Cw="درباره من",kw="سلام من مهدی کرامتی هستم",Ew="برنامه نویس فرانت اند و گرافیست 18 ساله از شمال غرب ایران",Nw="برنامه نویس فرانت اند",jw="توسعه و برنامه نویسی ظاهر سایت که کاربر آن را مشاهده میکند را فرانت اند سایت میگویند",Ow="برنامه نویس وب",Pw="برنامه نویسی وب (Web Development) برنامه نویسی برای یک وبسایت را میگویند",Tw="ورد پرس",Lw="وردپرس عبارت است از یک سیستم مدیریت محتوای سایت ساز که با استفاده از آن قادر خواهید بود تا به راه اندازی انواع گوناگونی از وبسایت و وبلاگ بپردازید.",_w="گرافیست (فتوشاپ)",Mw="کار کردن با ابزار های فتوشاپ ساخت تصاویردیجیتال ادیت عکس طراحی ظاهر سایت و...",Dw="مهارت ها",Rw="به صفحه مهارت ها خوش آمدید",zw="HTML",$w="عبارت HTML مخفف (Hyper Text Markup Language) می باشد به معنی «زبان نشانه‌ گذاری ابر متنی»است. زبانی استاندارد برای ساخت صفحات وب",Iw="Css",Aw="مخفف عبارت (Cascading Sheet Style) و به معنی برگه های به سبک آبشاری میباشد وظیفه طراحی ظاهر سایت‌ها را برعهده دارد",Fw="Sass",Bw="Sass را می توان به عنوان یک افزونه برای css در نظر گرفت که کار با استایل ها را برای ما بسیار ساده می کند",Uw="JS",Hw="جاوا اسکریپت یک زبان پویای سطح بالا است که برای برنامه نویسی وب , اپلیکیشن ویندروز , ساخت بازی , هوش مصنوعی و ... استفاده میشود.",Vw="React",Ww="یک کتابخانه جاوا اسکریپت ساخته شده توسط فیسبوک که برای ساخت صفحات تک صفحه ایی و... استفاده میشود.",Kw="Tailwind",Gw="تیلویند (TailwindCSS) یک فریمورک برای توسعه رابط کاربری (فرانت اند) است",Yw="Bootstrap",Qw="بوت استرپ (Bootstrap) یک فریم ورک CSS رایگان و متن باز است که برای توسعه وب واکنش‌گرا (Responsive) و Mobile-First ایجاد شده است",Xw="Photoshop",Jw="یک ویرایشگر گرافیک شطرنجی است که توسط شرکت ادوبی برای سیستم عامل‌ های ویندوز و مک‌اواس گسترش می‌یابد.",qw="پروژه ها",Zw="به صفحه پروژه ها خوش آمدید",eS="همه",tS="تعمیرات کامپوتر",nS="ادمین داشبورد",rS="هوا شناسی",iS="موزیک پلیر",aS="خبر هوش مصنوعی",oS="صرافی دیجیتال",sS="صفحه فرود قهرمانان",lS="GPT3",uS="بیزنس",cS="Covid-19",fS="پروژه های کوچک",dS="سیمپسون ها",pS="پورتفولیو فیلمبردار",hS="تجارت الکترونیک",mS="بازی پرش پرنده",gS="بازی دایناسور",vS="حدس کلمه",yS="بازی حافظه",wS="برنامه آزمون",SS="دوز",xS="UI/UX قالب سابت ورزشی ",bS="UI/UX ادمین داشبورد",CS="برخی بازی ها",kS="اپلیکیشن",ES="بازی",NS="قالب",jS="طراحی",OS="جاوااسکریپت",PS="ری اکت",TS="دیدن گیتهاب",LS="مشاهده آنلاین",_S="تماس با من",MS="با من در تماس باشید",DS="نیاز به تماس با من دارید؟ فرم زیر را پر کنید و ارسال کنید یا به یکی از شبکه های اجتماعی پیام دهید.",RS="اسم",zS="ایمیل",$S="پیام",IS="ارسال پیام",AS="تنظیمات",FS="انتخاب تم",BS="روشن",US="تیره",HS="تغییر زبان",VS="انگلیسی",WS="فارسی",KS="انتخاب رنگ",GS="پیام ارسال شد !",YS="در حال بارگزاری",QS={navItem1:cw,navItem2:fw,navItem3:dw,navItem4:pw,navItem5:hw,followMe:mw,myName:gw,im:vw,frontEnd:yw,designer:ww,webdev:Sw,readMore:xw,welcome:bw,about:Cw,helloName:kw,AboutDescreption:Ew,aboutSkills1:Nw,aboutSkills1Description1:jw,aboutSkills2:Ow,aboutSkills1Description2:Pw,aboutSkills3:Tw,aboutSkills1Description3:Lw,aboutSkills5:_w,aboutSkills1Description5:Mw,skills:Dw,seeSkills:Rw,html:zw,htmlDescription:$w,css:Iw,cssDescription:Aw,sass:Fw,sassDescription:Bw,js:Uw,jsDescription:Hw,react:Vw,reactDescription:Ww,tailwind:Kw,tailwindDescription:Gw,bootstrap:Yw,bootstrapDescription:Qw,photoshop:Xw,photoshopDescription:Jw,projects:qw,seeProjects:Zw,all:eS,projectName0:tS,projectName1:nS,projectName2:rS,projectName3:iS,projectName4:aS,projectName5:oS,projectName6:sS,projectName7:lS,projectName8:uS,projectName9:cS,projectName10:fS,projectName11:dS,projectName12:pS,projectName13:hS,projectName14:mS,projectName15:gS,projectName16:vS,projectName17:yS,projectName18:wS,projectName19:SS,projectName20:xS,projectName21:bS,projectName22:CS,app:kS,games:ES,templates:NS,graphicDesign:jS,vanillajs:OS,reactjs:PS,viewGithub:TS,liveDemo:LS,contact:_S,getInTouch:MS,contactDescription:DS,yourName:RS,yourEmail:zS,yourMessage:$S,sendMessage:IS,settings:AS,themeOptions:FS,light:BS,dark:US,changeLang:HS,en:VS,fa:WS,themeColors:KS,messageSended:GS,loading:YS},XS={en:{translation:uw},fa:{translation:QS}};Be.use(Fv).init({resources:XS,lng:"en",keySeparator:!1,interpolation:{escapeValue:!1}});const Yh=j.createContext(),JS=({children:e})=>{const[t,n]=j.useState(!0),[r,i]=j.useState(!1),[a,o]=j.useState("#F55050"),[l,s]=j.useState("dark"),[u,f]=j.useState("en"),{t:c,i18n:d}=Kv(),y=C=>{s(C.target.value),localStorage.setItem("ThemeMode",C.target.value),i(!1)},S=C=>{o(C),localStorage.setItem("colorMode",C),i(!1)},v=C=>{d.changeLanguage(C.target.value),f(C.target.value),localStorage.setItem("currentLang",C.target.value),i(!1)},w=[{name:c("navItem1"),href:"home"},{name:c("navItem2"),href:"about"},{name:c("navItem3"),href:"service"},{name:c("navItem4"),href:"portfolio"},{name:c("navItem5"),href:"contact"}],p=[{name:"blue-theme",color:"#1A97F5"},{name:"green-theme",color:"#03C9D7"},{name:"purple-theme",color:"#7352FF"},{name:"red-theme",color:"#F55050"},{name:"indigo-theme",color:"#3F72AF"},{color:"#F55302",name:"orange-theme"}],h=[{skill:c("aboutSkills1"),description:c("aboutSkills1Description1"),icon:b.jsx(hf,{})},{skill:c("aboutSkills2"),description:c("aboutSkills1Description2"),icon:b.jsx(hf,{})},{skill:c("aboutSkills3"),description:c("aboutSkills1Description3"),icon:b.jsx(bv,{})},{skill:c("aboutSkills5"),description:c("aboutSkills1Description5"),icon:b.jsx(pf,{})}],m=[{skill:c("html"),description:c("htmlDescription"),icon:b.jsx(Cv,{})},{skill:c("css"),description:c("cssDescription"),icon:b.jsx(kv,{})},{skill:c("js"),description:c("jsDescription"),icon:b.jsx(jv,{})},{skill:c("react"),description:c("reactDescription"),icon:b.jsx(yv,{})},{skill:c("sass"),description:c("sassDescription"),icon:b.jsx(Sv,{})},{skill:c("tailwind"),description:c("tailwindDescription"),icon:b.jsx(Nv,{})},{skill:c("bootstrap"),description:c("bootstrapDescription"),icon:b.jsx(Ev,{})},{skill:c("photoshop"),description:c("photoshopDescription"),icon:b.jsx(pf,{})}],g=[{name:c("all"),activetab:[!0,!1,!1,!1,!1]},{name:c("app"),activetab:[!1,!0,!1,!1,!1]},{name:c("templates"),activetab:[!1,!1,!0,!1,!1]},{name:c("games"),activetab:[!1,!1,!1,!0,!1]},{name:c("graphicDesign"),activetab:[!1,!1,!1,!1,!0]}],x=[{all:[{title:c("reactjs"),projectName:c("projectName0"),pic:"bg-DigitalRepair",githubLink:"https://github.com/Mehdi0-0Keramati/RepairDigitalFactory",viewOnline:"https://mehdi0-0keramati.github.io/RepairDigitalFactory/"},{title:c("app"),projectName:c("projectName1"),pic:"bg-dashboard",githubLink:"https://github.com/Mehdi0-0Keramati/AdminDashboard",viewOnline:"https://Mehdi0-0Keramati.github.io/AdminDashboard"},{title:c("app"),projectName:c("projectName2"),pic:"bg-weatherforecast",githubLink:"https://github.com/Mehdi0-0Keramati/weather_forecast",viewOnline:"https://mehdi0-0keramati.github.io/weather_forecast"},{title:c("app"),projectName:c("projectName3"),pic:"bg-musicPlayer",githubLink:"https://github.com/Mehdi0-0Keramati/MUSICPLAYER",viewOnline:"https://mehdi0-0keramati.github.io/MUSICPLAYER"},{title:c("app"),projectName:c("projectName4"),pic:"bg-alannews",githubLink:"https://github.com/Mehdi0-0Keramati/AlanNews",viewOnline:"https://mehdi0-0keramati.github.io/AlanNews"},{title:c("app"),projectName:c("projectName5"),pic:"bg-cryptocurrency",githubLink:"https://github.com/Mehdi0-0Keramati/crypto-currency",viewOnline:"https://mehdi0-0keramati.github.io/crypto-currency"},{title:c("reactjs"),projectName:c("projectName6"),pic:"bg-legends_landingpage",githubLink:"https://github.com/Mehdi0-0Keramati/legends-landingpage",viewOnline:"https://Mehdi0-0Keramati.github.io/legends-landingpage"},{title:c("reactjs"),projectName:c("projectName7"),pic:"bg-GPT3",githubLink:"https://github.com/Mehdi0-0Keramati/GPT-3",viewOnline:"https://Mehdi0-0Keramati.github.io/GPT-3"},{title:c("reactjs"),projectName:c("projectName8"),pic:"bg-business",githubLink:"https://github.com/Mehdi0-0Keramati/business",viewOnline:"https://Mehdi0-0Keramati.github.io/business"},{title:c("reactjs"),projectName:c("projectName9"),pic:"bg-covid19",githubLink:"https://github.com/Mehdi0-0Keramati/covid19",viewOnline:"https://Mehdi0-0Keramati.github.io/covid19"},{title:c("reactjs"),projectName:c("projectName10"),pic:"bg-littleProject",githubLink:"https://github.com/Mehdi0-0Keramati/LittlePorject-ReactJs",viewOnline:"https://littleproject-reactjs.netlify.app"},{title:c("vanillajs"),projectName:c("projectName11"),pic:"bg-bootstrapTemplate",githubLink:"https://github.com/Mehdi0-0Keramati/modern_bootstrap_template",viewOnline:"https://mehdi0-0keramati.github.io/modern_bootstrap_template"},{title:c("vanillajs"),projectName:c("projectName12"),pic:"bg-videograph",githubLink:"https://github.com/Mehdi0-0Keramati/videograph_portfolio",viewOnline:"https://mehdi0-0keramati.github.io/videograph_portfolio"},{title:c("vanillajs"),projectName:c("projectName13"),pic:"bg-eCommerceTemplate",githubLink:"https://github.com/Mehdi0-0Keramati/eCommerce_tailwind_template",viewOnline:"https://mehdi0-0keramati.github.io/eCommerce_tailwind_template"},{title:c("games"),projectName:c("projectName22"),pic:"bg-SomeGames",githubLink:"https://github.com/Mehdi0-0Keramati/somegames",viewOnline:"https://Mehdi0-0Keramati.github.io/somegames"},{title:c("games"),projectName:c("projectName18"),pic:"bg-quizapp",githubLink:"https://github.com/Mehdi0-0Keramati/QuizApp",viewOnline:"https://Mehdi0-0Keramati.github.io/QuizApp"},{title:c("graphicDesign"),projectName:c("projectName20"),pic:"bg-SportWebsiteUI",githubLink:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX",viewOnline:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX"},{title:c("graphicDesign"),projectName:c("projectName21"),pic:"bg-dashboardUI",githubLink:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX",viewOnline:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX"}],app:[{title:c("app"),projectName:c("projectName1"),pic:"bg-dashboard",githubLink:"https://github.com/Mehdi0-0Keramati/AdminDashboard",viewOnline:"https://Mehdi0-0Keramati.github.io/AdminDashboard"},{title:c("app"),projectName:c("projectName2"),pic:"bg-weatherforecast",githubLink:"https://github.com/Mehdi0-0Keramati/weather_forecast",viewOnline:"https://mehdi0-0keramati.github.io/weather_forecast"},{title:c("app"),projectName:c("projectName3"),pic:"bg-musicPlayer",githubLink:"https://github.com/Mehdi0-0Keramati/MUSICPLAYER",viewOnline:"https://mehdi0-0keramati.github.io/MUSICPLAYER"},{title:c("app"),projectName:c("projectName4"),pic:"bg-alannews",githubLink:"https://github.com/Mehdi0-0Keramati/AlanNews",viewOnline:"https://mehdi0-0keramati.github.io/AlanNews"},{title:c("app"),projectName:c("projectName5"),pic:"bg-cryptocurrency",githubLink:"https://github.com/Mehdi0-0Keramati/crypto-currency",viewOnline:"https://mehdi0-0keramati.github.io/crypto-currency"}],templates:[{react:[{title:c("reactjs"),projectName:c("projectName0"),pic:"bg-DigitalRepair",githubLink:"https://github.com/Mehdi0-0Keramati/RepairDigitalFactory",viewOnline:"https://mehdi0-0keramati.github.io/RepairDigitalFactory/"},{title:c("reactjs"),projectName:c("projectName6"),pic:"bg-legends_landingpage",githubLink:"https://github.com/Mehdi0-0Keramati/legends-landingpage",viewOnline:" https://Mehdi0-0Keramati.github.io/legends-landingpage"},{title:c("reactjs"),projectName:c("projectName7"),pic:"bg-GPT3",githubLink:"https://github.com/Mehdi0-0Keramati/GPT-3",viewOnline:"https://Mehdi0-0Keramati.github.io/GPT-3"},{title:c("reactjs"),projectName:c("projectName8"),pic:"bg-business",githubLink:"https://github.com/Mehdi0-0Keramati/business",viewOnline:" https://Mehdi0-0Keramati.github.io/business"},{title:c("reactjs"),projectName:c("projectName9"),pic:"bg-covid19",githubLink:"https://github.com/Mehdi0-0Keramati/covid19",viewOnline:"https://Mehdi0-0Keramati.github.io/covid19"},{title:c("reactjs"),projectName:c("projectName10"),pic:"bg-littleProject",githubLink:"https://github.com/Mehdi0-0Keramati/LittlePorject-ReactJs",viewOnline:"https://littleproject-reactjs.netlify.app"}],vanillaJS:[{title:c("vanillajs"),projectName:c("projectName11"),pic:"bg-bootstrapTemplate",githubLink:"https://github.com/Mehdi0-0Keramati/modern_bootstrap_template",viewOnline:"https://mehdi0-0keramati.github.io/modern_bootstrap_template"},{title:c("vanillajs"),projectName:c("projectName12"),pic:"bg-videograph",githubLink:"https://github.com/Mehdi0-0Keramati/videograph_portfolio",viewOnline:"https://mehdi0-0keramati.github.io/videograph_portfolio"},{title:c("vanillajs"),projectName:c("projectName13"),pic:"bg-eCommerceTemplate",githubLink:"https://github.com/Mehdi0-0Keramati/eCommerce_tailwind_template",viewOnline:"https://mehdi0-0keramati.github.io/eCommerce_tailwind_template"}]}],games:[{title:c("games"),projectName:c("projectName18"),pic:"bg-quizapp",githubLink:"https://github.com/Mehdi0-0Keramati/QuizApp",viewOnline:"https://Mehdi0-0Keramati.github.io/QuizApp"},{title:c("games"),projectName:c("projectName22"),pic:"bg-SomeGames",githubLink:"https://github.com/Mehdi0-0Keramati/somegames",viewOnline:"https://Mehdi0-0Keramati.github.io/somegames"}],graphicDesign:[{title:c("graphicDesign"),projectName:c("projectName20"),pic:"bg-SportWebsiteUI",githubLink:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX",viewOnline:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX"},{title:c("graphicDesign"),projectName:c("projectName21"),pic:"bg-dashboardUI",githubLink:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX",viewOnline:"https://github.com/Mehdi0-0Keramati/webdesign_UIUX"}]}];return b.jsx(Yh.Provider,{value:{loading:t,setLoading:n,settings:r,setSettings:i,currentMode:l,setCurrentMode:s,currentColor:a,setCurrentColor:o,currentLang:u,setCurrentLang:f,t:c,i18n:d,setMode:y,setColor:S,setLang:v,navItems:w,themeColors:p,aboutData:h,serviceData:m,portfolioTitle:g,portfolioData:x},children:e})},ot=()=>j.useContext(Yh);function qS(){const{currentColor:e}=ot(),t=Lh();return console.error(t),b.jsxs("div",{style:{color:e},id:"error-page",className:"h-screen w-screen bg-main-dark-bg flex items-center justify-center flex-col gap-4",children:[b.jsx("h1",{className:"text-4xl font-semibold text-red-500",children:"Oops!"}),b.jsx("p",{children:"Sorry, an unexpected error has occurred."}),b.jsx("p",{className:"mt-10 text-xl",children:b.jsx("i",{children:t.statusText||t.message})})]})}function ZS(e){return Ne({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Settings"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.6,20.936H11.3a.883.883,0,0,1-.852-.654l-.774-2.833-2.5,1.435a.886.886,0,0,1-1.06-.138l-.925-.919a.884.884,0,0,1-.143-1.066l1.469-2.545L6.509,14.2l-2.787-.747a.882.882,0,0,1-.654-.851V11.3a.882.882,0,0,1,.652-.85l2.839-.777L5.12,7.171a.885.885,0,0,1,.141-1.062l.918-.918A.885.885,0,0,1,7.24,5.049L9.792,6.514l.012,0,.745-2.79a.881.881,0,0,1,.851-.655h1.3a.883.883,0,0,1,.852.655l.762,2.838,2.509-1.441a.885.885,0,0,1,1.059.138l.926.919a.882.882,0,0,1,.141,1.067L17.483,9.777l.008.022,2.786.746a.883.883,0,0,1,.653.851v1.3a.883.883,0,0,1-.654.852l-2.837.774,1.439,2.505a.881.881,0,0,1-.141,1.063l-.917.917a.888.888,0,0,1-1.063.141l-2.539-1.462L14.2,17.5l-.745,2.785A.885.885,0,0,1,12.6,20.936Zm-1.21-1h1.119l.738-2.756a.888.888,0,0,1,.528-.592l.134-.052a.873.873,0,0,1,.76.057l2.51,1.445.789-.789-1.423-2.478a.881.881,0,0,1-.048-.78l.052-.125a.875.875,0,0,1,.584-.51l2.8-.749v-1.12l-2.755-.737a.885.885,0,0,1-.592-.529l-.052-.132a.882.882,0,0,1,.057-.763L18.04,6.818l-.8-.79-2.48,1.425a.878.878,0,0,1-.772.052l-.115-.047a.888.888,0,0,1-.518-.588l-.748-2.806H11.492l-.738,2.762a.883.883,0,0,1-.539.6l-.12.045a.874.874,0,0,1-.751-.058L6.822,5.962l-.789.789L7.455,9.227a.886.886,0,0,1,.046.785l-.051.12a.876.876,0,0,1-.579.5l-2.8.758v1.121l2.757.738a.889.889,0,0,1,.591.525l.048.121a.874.874,0,0,1-.055.77L5.958,17.181l.8.791,2.47-1.419a.878.878,0,0,1,.787-.045l.106.044a.874.874,0,0,1,.526.591ZM9.75,17.482l.008,0ZM9.6,17.421l.007,0ZM6.487,14.147h0Zm.044-4.411h0Zm7.724-3.2Z"}},{tag:"path",attr:{d:"M12,15a3,3,0,1,1,3-3A3,3,0,0,1,12,15Zm0-5a2,2,0,1,0,2,2A2,2,0,0,0,12,10Z"}}]}]}]})(e)}const Qh=()=>{const{settings:e,setSettings:t,currentColor:n,currentMode:r,setMode:i,setColor:a,setLang:o,currentLang:l,themeColors:s,t:u}=ot();return b.jsxs(b.Fragment,{children:[b.jsx("button",{type:"button",onClick:()=>{t(!0)},className:"fixed z-10 text-2xl font-semibold text-gray-400 dark:text-gray-800 md:dark:text-gray-100 md:text-gray-800 md:bottom-20 right-6 bottom-2 md:right-8 md:text-3xl ",children:b.jsx(ZS,{})}),b.jsxs("section",{className:`${e?"visible":"invisible"} fixed z-30 h-full w-full `,children:[b.jsx("div",{onClick:()=>t(!1),className:"absolute top-0 left-0 -z-10 w-full h-full overlay bg-half-transparent-dark"}),b.jsxs("div",{className:`${e?"translate-x-0":"translate-x-full"} transition-all fixed right-0 h-full p-5 bg-white w-96 dark:bg-secondary-dark-bg dark:text-white`,children:[b.jsxs("div",{className:"flex justify-between w-full py-3 text-xl font-semibold",children:[b.jsx("h3",{children:u("settings")}),b.jsx("button",{type:"button",onClick:()=>t(!1),children:b.jsx(Ih,{})})]}),b.jsxs("div",{className:"w-full py-3 border-gray-400 border-t-1",children:[b.jsx("h3",{className:"mb-4",children:u("changeLang")}),b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("input",{type:"radio",checked:l==="fa",className:"cursor-pointer",id:"fa",value:"fa",onChange:o}),b.jsx("label",{className:"text-sm",htmlFor:"fa",children:u("fa")})]}),b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("input",{type:"radio",checked:l==="en",className:"cursor-pointer",id:"en",value:"en",onChange:o}),b.jsx("label",{className:"text-sm",htmlFor:"en",children:u("en")})]})]}),b.jsxs("div",{className:"w-full py-3 border-gray-400 border-t-1",children:[b.jsx("h3",{className:"mb-4",children:u("themeOptions")}),b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("input",{type:"radio",checked:r==="light",className:"cursor-pointer",id:"light",value:"light",onChange:i}),b.jsx("label",{className:"text-sm",htmlFor:"light",children:u("light")})]}),b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("input",{type:"radio",checked:r==="dark",className:"cursor-pointer",id:"dark",value:"dark",onChange:i}),b.jsx("label",{className:"text-sm",htmlFor:"dark",children:u("dark")})]})]}),b.jsxs("div",{className:"w-full py-3 border-gray-400 border-t-1",children:[b.jsx("h3",{children:u("themeColors")}),b.jsx("div",{className:"flex items-center mt-5 justify-evenly",children:s.map(({color:f,name:c})=>b.jsx("button",{onClick:()=>a(f),type:"button",className:"flex items-center justify-center w-8 h-8 rounded-full",style:{backgroundColor:f},children:f===n&&b.jsx(xv,{})},c))})]})]})]})]})},ex=()=>{const{currentColor:e,navItems:t}=ot();return b.jsx("nav",{className:"bg-main-dark-bg dark:bg-gray-200 fixed bottom-0 w-full z-10",children:b.jsxs("ul",{style:{borderTop:`2px solid ${e}`},className:"flex items-center justify-center p-2",children:[t.map(({name:n,href:r},i)=>b.jsx("li",{className:"mx-2 md:mx-4 font-semibold",children:b.jsx(Eu,{className:"text-xs md:text-sm text-gray-300 dark:text-gray-800",style:({isActive:a})=>({color:a?e:""}),to:r,children:n})},i)),b.jsx("li",{className:"z-30 md:hidden relative text-gray-300 dark:text-gray-800",children:b.jsx(Qh,{})})]})})},tx="_activeNavLink_1n98w_1",nx="_dot_1n98w_1",Bf={activeNavLink:tx,dot:nx},rx=()=>{const[e,t]=j.useState(!1),{currentColor:n,navItems:r,t:i}=ot();return b.jsxs(b.Fragment,{children:[b.jsx("button",{className:"absolute z-20 text-3xl font-semibold md:fixed right-8 top-6",onClick:()=>t(!0),children:b.jsx(wv,{})}),b.jsxs("div",{className:`${e?"visible":"invisible"} fixed z-20 h-full w-full`,children:[b.jsx("div",{onClick:()=>t(!1),className:"absolute top-0 left-0 z-0 w-full h-full text-gray-200 overlay bg-half-transparent-light dark:bg-half-transparent-dark dark:text-gray-800 "}),b.jsx("nav",{className:`${e?"-translate-x-0":"-translate-x-full"} transition-all fixed left-0 h-full w-96`,style:{background:n},children:b.jsxs("ul",{className:"flex flex-col justify-between w-full h-full px-5 py-10 direction",children:[b.jsxs("div",{className:"flex items-center justify-between w-full mb-10 text-2xl font-semibold text-gray-200 dark:text-gray-800",children:[b.jsx("h1",{className:"font-normal font-summer",children:"Miro"}),b.jsx("button",{onClick:()=>t(!1),children:b.jsx(Ih,{})})]}),r.map(({name:a,href:o},l)=>b.jsx("li",{className:"flex items-center gap-2 text-2xl font-semibold md:text-3xl",children:b.jsx(Eu,{onClick:()=>{t(!1)},className:({isActive:s})=>s?Bf.activeNavLink:"",style:({isActive:s})=>({color:s?"black":""}),to:o,children:b.jsxs("div",{className:"flex items-center justify-center gap-2",children:[b.jsx("span",{className:`${Bf.dot} w-3 h-3 border-black rounded-full border-1`}),a]})})},l)),b.jsxs("div",{className:"flex items-center justify-between mt-10 font-semibold text-gray-200 dark:text-gray-800 rtl:font-casablanca ltr:font-summer",children:[b.jsx("h3",{className:"ltr:font-thin dark:text-gray-800",children:i("followMe")}),b.jsxs("div",{className:"flex gap-3 contact",children:[b.jsx("a",{target:"_blank",rel:"noreferrer",className:"hover:scale-150",href:"https://www.instagram.com/mehdi0_0keramati",children:b.jsx(Ah,{})}),b.jsx("a",{target:"_blank",rel:"noreferrer",className:"hover:scale-150",href:"https://www.github.com/mehdi0-0keramati",children:b.jsx(Rh,{})}),b.jsx("a",{target:"_blank",rel:"noreferrer",className:"hover:scale-150",href:"https://www.linkedin.com/in/mehdi-keramati-503533267",children:b.jsx(zh,{})}),b.jsx("a",{target:"_blank",rel:"noreferrer",className:"hover:scale-150",href:"https://t.me/Mehdi0_0wa",children:b.jsx($h,{})})]})]})]})})]})]})},ix=()=>{const{currentColor:e,navItems:t}=ot();return b.jsx("div",{className:"fixed z-10 flex-col items-center justify-center hidden h-screen gap-3 right-8 md:flex",children:t.map(({href:n},r)=>b.jsx(Eu,{className:"w-3 h-3 border-black rounded-full border-1 dark:border-gray-500",style:({isActive:i})=>({backgroundColor:i?e:"transparent"}),to:n},r))})},ax=()=>{const{currentColor:e,t}=ot();return b.jsxs("div",{className:"fixed z-10 flex-col items-center justify-center hidden gap-3 ltr:font-summer top-52 -left-2 md:flex rtl:font-casablanca",children:[b.jsx("a",{target:"_blank",rel:"noreferrer",className:"contactlink hover:scale-150",href:"https://www.instagram.com/mehdi0_0keramati",children:b.jsx(Ah,{})}),b.jsx("a",{target:"_blank",rel:"noreferrer",className:"contactlink hover:scale-150",href:"https://www.github.com/mehdi0-0keramati",children:b.jsx(Rh,{})}),b.jsx("a",{target:"_blank",rel:"noreferrer",className:"contactlink hover:scale-150",href:"https://www.linkedin.com/in/mehdi-keramati-503533267",children:b.jsx(zh,{})}),b.jsx("a",{target:"_blank",rel:"noreferrer",className:"contactlink hover:scale-150",href:"https://t.me/Mehdi0_0wa",children:b.jsx($h,{})}),b.jsx("style",{children:`.contactlink:hover{ + color:${e}!important; + }`}),b.jsx("h4",{className:"w-1 mx-3 border-black h-14 border-r-1 dark:border-white "}),b.jsx("h4",{className:"m-5 mt-8 -rotate-90 rtl:font-bold",children:t("followMe")})]})};const ox="_loading_ry3o5_3",sx="_dot_ry3o5_1",lx="_finger_ry3o5_21",ux="_finger5_ry3o5_1",wt={loading:ox,dot:sx,finger:lx,"finger-five":"_finger-five_ry3o5_47",finger5:ux},cx=()=>{const{currentColor:e,t}=ot();return b.jsxs("div",{style:{direction:"ltr"},className:"flex flex-col items-center justify-center w-screen h-screen ",children:[b.jsxs("h1",{style:{color:e},className:`${wt.loading} relative mb-12 text-4xl ltr:mr-10 rtl:font-soltan rtl:text-3xl`,children:[t("loading"),b.jsx("span",{className:"absolute -right-4 rtl:-left-4",style:{"--j":"1"},children:"."}),b.jsx("span",{className:"absolute -right-8 rtl:-left-8",style:{"--j":"2"},children:"."}),b.jsx("span",{className:"absolute -right-12 rtl:-left-12",style:{"--j":"3"},children:"."})]}),b.jsxs("div",{className:"flex items-center justify-center gap-2 hand",children:[b.jsxs("div",{style:{"--i":"1"},className:`${wt.finger} ${wt["finger-one"]} relative flex flex-col items-center justify-between w-10 dark:bg-main-bg bg-main-dark-bg h-28 rounded-2xl`,children:[b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-3"}),b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-5"}),b.jsx("span",{style:{background:e},className:"absolute w-8 h-8 bottom-2 rounded-t-3xl rounded-b-xl "})]}),b.jsxs("div",{style:{"--i":"2"},className:`${wt.finger} ${wt["finger-two"]} relative flex flex-col items-center justify-between w-10 h-32 dark:bg-main-bg bg-main-dark-bg rounded-2xl`,children:[b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-3"}),b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-5"}),b.jsx("span",{style:{background:e},className:"absolute w-8 h-8 bottom-2 rounded-t-3xl rounded-b-xl "})]}),b.jsxs("div",{style:{"--i":"3"},className:`${wt.finger} ${wt["finger-three"]} relative flex flex-col items-center justify-between w-10 h-40 dark:bg-main-bg bg-main-dark-bg rounded-2xl`,children:[b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-3"}),b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-5"}),b.jsx("span",{style:{background:e},className:"absolute w-8 h-8 bottom-2 rounded-t-3xl rounded-b-xl "})]}),b.jsxs("div",{style:{"--i":"4"},className:`${wt.finger} ${wt["finger-four"]} relative flex flex-col items-center justify-between w-10 h-32 dark:bg-main-bg bg-main-dark-bg rounded-2xl`,children:[b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-3"}),b.jsx("span",{style:{background:e},className:"absolute w-3/4 h-1 top-5"}),b.jsx("span",{style:{background:e},className:"absolute w-8 h-8 bottom-2 rounded-t-3xl rounded-b-xl "})]}),b.jsx("div",{style:{"--i":"4"},className:`${wt.finger} ${wt["finger-five"]} relative flex flex-col items-center justify-between w-12 h-10 dark:bg-main-bg bg-main-dark-bg rounded-tr-xl rounded-br-3xl `,children:b.jsx("span",{className:"absolute left-0 w-10 h-5 dark:bg-main-bg bg-main-dark-bg -top-4"})})]})]})},fx=()=>{const e=Ph(),{loading:t,setLoading:n,currentMode:r,setCurrentMode:i,currentColor:a,setCurrentColor:o,currentLang:l,setCurrentLang:s,i18n:u}=ot();return j.useEffect(()=>{const f=localStorage.getItem("ThemeMode"),c=localStorage.getItem("colorMode"),d=localStorage.getItem("currentLang");(f||d||c)&&(i(f||"dark"),o(c||"#F55050"),s(d||"en"),u.changeLanguage(d)),d==="fa"?document.body.setAttribute("dir","rtl"):document.body.setAttribute("dir","ltr")},[l,a,r]),j.useEffect(()=>{(window.location.pathname==="/"||window.location.pathname===""||window.location.pathname==="/portfolio")&&e("./home"),n(!0),setTimeout(()=>{n(!1)},1500)},[]),j.useEffect(()=>{setTimeout(()=>{var f=!1,c=document.querySelector("title").innerHTML;setInterval(d,2600);function d(){document.querySelector("title").innerHTML=f?c:"😎",f=!f}},3e3)},[document.title]),b.jsx("section",{className:`${r==="dark"?"dark":""} rtl:font-soltan font-robotoBold `,children:b.jsxs("div",{className:"text-gray-800 bg-main-bg dark:bg-main-dark-bg dark:text-gray-200",children:[b.jsxs("style",{children:[`::-webkit-scrollbar{ + width: 0.5rem !important; + background: gray !important; + }`,`::-webkit-scrollbar-thumb{ + background: ${a} !important; + }`]}),t?b.jsx(cx,{}):b.jsxs(b.Fragment,{children:[b.jsx(ex,{}),b.jsx(rx,{}),b.jsx(Qh,{}),b.jsx(ix,{}),b.jsx(ax,{}),b.jsx(nv,{})]})]})})};var Xh={},Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.targetFrameTime=Yn.snowfallBaseStyle=void 0;var dx={pointerEvents:"none",backgroundColor:"transparent",position:"absolute",top:0,left:0,width:"100%",height:"100%"};Yn.snowfallBaseStyle=dx;var px=1e3/60;Yn.targetFrameTime=px;var Bt={},hx=typeof Element<"u",mx=typeof Map=="function",gx=typeof Set=="function",vx=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Da(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Da(e[r],t[r]))return!1;return!0}var a;if(mx&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Da(r.value[1],t.get(r.value[0])))return!1;return!0}if(gx&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(vx&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(hx&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Da(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Jh=function(t,n){try{return Da(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},ju={},er={};Object.defineProperty(er,"__esModule",{value:!0});er.getSize=Sx;er.lerp=wx;er.random=yx;er.randomElement=xx;function yx(e,t){var n=Math.random()*(t-e+1)+e;return!Number.isInteger(e)||!Number.isInteger(t)?n:Math.floor(n)}function wx(e,t,n){return(1-n)*e+n*t}function Sx(e){return e?{height:e.offsetHeight,width:e.offsetWidth}:{height:0,width:0}}function xx(e){var t=Math.floor(Math.random()*e.length);return e[t]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultConfig=e.default=void 0;var t=r(Jh),n=er;function r(m){return m&&m.__esModule?m:{default:m}}function i(m,g){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(m);g&&(C=C.filter(function(k){return Object.getOwnPropertyDescriptor(m,k).enumerable})),x.push.apply(x,C)}return x}function a(m){for(var g=1;gm.length)&&(g=m.length);for(var x=0,C=new Array(g);x1&&arguments[1]!==void 0?arguments[1]:{};d(this,m),v(this,"config",void 0),v(this,"params",void 0),v(this,"framesSinceLastUpdate",void 0),v(this,"image",void 0),this.updateConfig(x);var C=this.config,k=C.radius,E=C.wind,D=C.speed,O=C.rotationSpeed;this.params={x:(0,n.random)(0,g.offsetWidth),y:(0,n.random)(-g.offsetHeight,0),rotation:(0,n.random)(0,360),radius:n.random.apply(void 0,o(k)),speed:n.random.apply(void 0,o(D)),wind:n.random.apply(void 0,o(E)),rotationSpeed:n.random.apply(void 0,o(O)),nextSpeed:n.random.apply(void 0,o(E)),nextWind:n.random.apply(void 0,o(D)),nextRotationSpeed:n.random.apply(void 0,o(O))},this.framesSinceLastUpdate=0}return S(m,[{key:"selectImage",value:function(){this.config.images&&this.config.images.length>0?this.image=(0,n.randomElement)(this.config.images):this.image=void 0}},{key:"updateConfig",value:function(x){var C=this.config;this.config=a(a({},w),x),this.config.changeFrequency=(0,n.random)(this.config.changeFrequency,this.config.changeFrequency*1.5),this.params&&!(0,t.default)(this.config.radius,C==null?void 0:C.radius)&&(this.params.radius=n.random.apply(void 0,o(this.config.radius))),(0,t.default)(this.config.images,C==null?void 0:C.images)||this.selectImage()}},{key:"updateTargetParams",value:function(){this.params.nextSpeed=n.random.apply(void 0,o(this.config.speed)),this.params.nextWind=n.random.apply(void 0,o(this.config.wind)),this.image&&(this.params.nextRotationSpeed=n.random.apply(void 0,o(this.config.rotationSpeed)))}},{key:"update",value:function(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.params,E=k.x,D=k.y,O=k.rotation,_=k.rotationSpeed,R=k.nextRotationSpeed,K=k.wind,ae=k.speed,me=k.nextWind,ce=k.nextSpeed,ne=k.radius;this.params.x=(E+K*C)%(x.offsetWidth+ne*2),this.params.x>x.offsetWidth+ne&&(this.params.x=-ne),this.params.y=(D+ae*C)%(x.offsetHeight+ne*2),this.params.y>x.offsetHeight+ne&&(this.params.y=-ne),this.image&&(this.params.rotation=(O+_)%360),this.params.speed=(0,n.lerp)(ae,ce,.01),this.params.wind=(0,n.lerp)(K,me,.01),this.params.rotationSpeed=(0,n.lerp)(_,R,.01),this.framesSinceLastUpdate++>this.config.changeFrequency&&(this.updateTargetParams(),this.framesSinceLastUpdate=0)}},{key:"getImageOffscreenCanvas",value:function(x,C){var k;if(x instanceof HTMLImageElement&&x.loading)return x;var E=m.offscreenCanvases.get(x);if(E||(E={},m.offscreenCanvases.set(x,E)),!(C in E)){var D,O=document.createElement("canvas");O.width=C,O.height=C,(D=O.getContext("2d"))===null||D===void 0||D.drawImage(x,0,0,C,C),E[C]=O}return(k=E[C])!==null&&k!==void 0?k:x}},{key:"draw",value:function(x){if(this.image){x.setTransform(1,0,0,1,this.params.x,this.params.y);var C=Math.ceil(this.params.radius);x.rotate(this.params.rotation*Math.PI/180),x.drawImage(this.getImageOffscreenCanvas(this.image,C),-Math.ceil(C/2),-Math.ceil(C/2),C,C)}else x.beginPath(),x.arc(this.params.x,this.params.y,this.params.radius,0,2*Math.PI),x.fillStyle=this.config.color,x.closePath(),x.fill()}}]),m}();v(p,"offscreenCanvases",new WeakMap);var h=p;e.default=h})(ju);Object.defineProperty(Bt,"__esModule",{value:!0});Bt.useComponentSize=void 0;Bt.useDeepCompareEffect=e0;Bt.useDeepMemo=zx;Bt.useSnowflakes=Bt.useSnowfallStyle=void 0;var At=j,bx=qh(Jh),Cx=qh(ju),kx=Yn,Uf=er;function qh(e){return e&&e.__esModule?e:{default:e}}function Hf(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 Vf(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?[].concat(Wf(s),Wf(_x(t,u,r))):u<0?s.slice(0,n):s})},[n,t,r]),(0,At.useEffect)(function(){l(function(s){return s.map(function(u){return u.updateConfig(r),u})})},[r]),o};Bt.useSnowflakes=Mx;var Dx=function(t){var n=(0,At.useState)((0,Uf.getSize)(t.current)),r=Ou(n,2),i=r[0],a=r[1],o=(0,At.useCallback)(function(){t.current&&a((0,Uf.getSize)(t.current))},[t]);return(0,At.useLayoutEffect)(function(){var l=window,s=l.ResizeObserver;if(t.current)if(o(),typeof s=="function"){var u=new s(o);return u.observe(t.current),function(){return u.disconnect()}}else return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[t,o]),i};Bt.useComponentSize=Dx;var Rx=function(t){var n=(0,At.useMemo)(function(){return Vf(Vf({},kx.snowfallBaseStyle),t||{})},[t]);return n};Bt.useSnowfallStyle=Rx;function e0(e,t){var n=(0,At.useRef)(t);return(0,bx.default)(t,n.current)||(n.current=t),(0,At.useEffect)(e,n.current)}function zx(e){var t=(0,At.useState)(e),n=Ou(t,2),r=n[0],i=n[1];return e0(function(){return i(e)},[e]),r}(function(e){function t(f){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(j),r=Yn,i=Bt,a=ju;function o(f){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(o=function(S){return S?d:c})(f)}function l(f,c){if(!c&&f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var d=o(c);if(d&&d.has(f))return d.get(f);var y={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in f)if(v!=="default"&&Object.prototype.hasOwnProperty.call(f,v)){var w=S?Object.getOwnPropertyDescriptor(f,v):null;w&&(w.get||w.set)?Object.defineProperty(y,v,w):y[v]=f[v]}return y.default=f,d&&d.set(f,y),y}var s=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.color,y=d===void 0?a.defaultConfig.color:d,S=c.changeFrequency,v=S===void 0?a.defaultConfig.changeFrequency:S,w=c.radius,p=w===void 0?a.defaultConfig.radius:w,h=c.speed,m=h===void 0?a.defaultConfig.speed:h,g=c.wind,x=g===void 0?a.defaultConfig.wind:g,C=c.rotationSpeed,k=C===void 0?a.defaultConfig.rotationSpeed:C,E=c.snowflakeCount,D=E===void 0?150:E,O=c.images,_=c.style,R=(0,i.useSnowfallStyle)(_),K=(0,n.useRef)(null),ae=(0,i.useComponentSize)(K),me=(0,n.useRef)(0),ce=(0,n.useRef)(Date.now()),ne=(0,i.useDeepMemo)({color:y,changeFrequency:v,radius:p,speed:m,wind:x,rotationSpeed:k,images:O}),M=(0,i.useSnowflakes)(K,D,ne),z=(0,n.useCallback)(function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Z=K.current;if(Z){M.forEach(function(J){return J.update(Z,Q)});var Ue=Z.getContext("2d");Ue&&(Ue.setTransform(1,0,0,1,0,0),Ue.clearRect(0,0,Z.offsetWidth,Z.offsetHeight),M.forEach(function(J){return J.draw(Ue)}))}},[M]),F=(0,n.useCallback)(function(){var Q=Date.now(),Z=Date.now()-ce.current;ce.current=Q;var Ue=Z/r.targetFrameTime;z(Ue),me.current=requestAnimationFrame(F)},[z]);return(0,n.useEffect)(function(){return F(),function(){return cancelAnimationFrame(me.current)}},[F]),n.default.createElement("canvas",{ref:K,height:ae.height,width:ae.width,style:R,"data-testid":"SnowfallCanvas"})},u=s;e.default=u})(Xh);const $x=id(Xh);var Ra={},t0,n0;Object.defineProperty(Ra,"__esModule",{value:!0});var oi=b,Mt=j,bt=function(){return bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(x.current+=1,x.current/n.length===i&&(D.current=!1,C.current=!0)))),E.current&&d&&d(x.current),k.current&&y&&y(),D.current&&S&&S()},[m,f,s,i,o,n,h,d,y,S]);return Mt.useEffect(function(){var _=setTimeout(O,p);return C.current&&clearTimeout(_),function(){return clearTimeout(_)}},[O,p]),Mt.useEffect(function(){c&&C.current&&c()},[c]),[h,{isType:E.current,isDelay:D.current,isDelete:k.current,isDone:C.current}]},Ax="styles-module_blinkingCursor__yugAC",Fx="styles-module_blinking__9VXRT";(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(".styles-module_blinkingCursor__yugAC{color:inherit;font:inherit;left:3px;line-height:inherit;opacity:1;position:relative;top:0}.styles-module_blinking__9VXRT{animation-duration:.8s;animation-iteration-count:infinite;animation-name:styles-module_blink__rqfaf}@keyframes styles-module_blink__rqfaf{0%{opacity:1}to{opacity:0}}");var Gf=Mt.memo(function(e){var t=e.cursorBlinking,n=t===void 0||t,r=e.cursorStyle,i=r===void 0?"|":r,a=e.cursorColor,o=a===void 0?"inherit":a;return oi.jsx("span",bt({style:{color:o},className:"".concat(Ax," ").concat(n?Fx:"")},{children:i}))});n0=Ra.Cursor=Gf,t0=Ra.Typewriter=function(e){var t=e.words,n=t===void 0?["Hello World!","This is","a simple Typewriter"]:t,r=e.loop,i=r===void 0?1:r,a=e.typeSpeed,o=a===void 0?80:a,l=e.deleteSpeed,s=l===void 0?50:l,u=e.delaySpeed,f=u===void 0?1500:u,c=e.cursor,d=c!==void 0&&c,y=e.cursorStyle,S=y===void 0?"|":y,v=e.cursorColor,w=v===void 0?"inherit":v,p=e.cursorBlinking,h=p===void 0||p,m=e.onLoopDone,g=e.onType,x=e.onDelay,C=e.onDelete,k=Kf({words:n,loop:i,typeSpeed:o,deleteSpeed:s,delaySpeed:f,onLoopDone:m,onType:g,onDelay:x,onDelete:C})[0];return oi.jsxs(oi.Fragment,{children:[oi.jsx("span",{children:k}),d&&oi.jsx(Gf,{cursorStyle:S,cursorColor:w,cursorBlinking:h})]})},Ra.useTypewriter=Kf;const Bx="/assets/me-7c62dde8.png",Ux="/assets/me2-1743e5ca.png",Hx="/assets/contact-372e9d85.png",Vx="_me_1rz7f_5",Wx="_clipPath_1rz7f_1",Yf={me:Vx,"clip-path":"_clip-path_1rz7f_17",clipPath:Wx},Kx="/assets/cv-33434397.pdf",Gx=()=>{const{currentColor:e,currentLang:t,t:n}=ot();return b.jsx(b.Fragment,{children:b.jsxs("div",{className:`${t==="fa"?"pr-16 md:pr-40":""} activeSection h-screen w-full flex flex-col items-start justify-center md:pl-48 p-10 gap-14 overflow-hidden`,children:[b.jsx($x,{style:{opacity:"0.5"},color:e,snowflakeCount:80,speed:[.5,2]}),b.jsxs("div",{className:"relative w-52",children:[b.jsx("h2",{className:"absolute z-10 text-xl font-semibold rtl:font-casablanca ",children:n("myName")}),b.jsx("span",{style:{background:e},className:"rtl:-right-3 rtl:-top-3 absolute -left-4 -top-2 w-10 h-10 rounded-full"})]}),b.jsxs("h1",{className:"p-2 text-3xl font-semibold md:text-4xl lg:text-5xl ltr:font-summer",children:[n("im"),b.jsx("span",{className:"titleSkills",children:b.jsx(t0,{words:[n("webdev"),n("frontEnd"),n("designer")],loop:5,typeSpeed:200,delaySpeed:2e3,deleteSpeed:150})}),b.jsx(n0,{})]}),b.jsxs("div",{className:"flex items-center justify-center font-semibold gap-x-5",children:[b.jsxs("button",{type:"button",className:"relative w-32 px-4 py-6 md:w-36 dark:text-gray-800 cursor-grab",style:{background:e},id:"buttonAnime",children:[b.jsx("h5",{className:"w-full h-full absolute left-0 top-3.5 z-10",children:n("welcome")}),b.jsx("span",{className:`${Yf["clip-path"]} absolute top-0 left-0 z-0 w-full h-full`})]}),b.jsx("a",{href:Kx,download:"cv.pdf",children:b.jsx("button",{type:"button",className:"w-32 px-4 py-6 md:w-36",children:n("readMore")})})]}),b.jsx("div",{className:` + ${Yf.me} w-2/5 absolute hidden lg:bottom-10 ltr:right-32 rtl:left-32 + `,children:b.jsx("img",{src:Bx,alt:"me"})})]})})},Yx=()=>{const{currentColor:e,aboutData:t,t:n}=ot();return b.jsxs("div",{className:"flex items-start justify-center min-h-screen py-20 mx-auto activeSection lg:w-4/5 p-14 md:p-32 lg:p-10 md:gap-x-16 ",children:[b.jsxs("div",{className:"relative hidden h-92 lg:block lg:basis-1/3",children:[b.jsx("div",{style:{background:e,zIndex:"-1"},className:"absolute rounded-full w-72 h-72 top-36 left-2"}),b.jsx("img",{className:"w-full h-full",src:Ux,alt:""})]}),b.jsxs("div",{className:"basis-full lg:basis-2/3",children:[b.jsxs("div",{className:"relative",children:[b.jsx("h2",{className:"absolute z-10 text-xl rtl:font-TitrPlus ltr:font-summer",children:n("about")}),b.jsx("span",{style:{background:e},className:"absolute w-10 h-10 rounded-full rtl:-right-3 rtl:-top-3 -left-4 -top-2"})]}),b.jsx("h1",{className:"mt-10 mb-5 text-4xl font-semibold rtl:font-casablanca ",children:n("helloName")}),b.jsx("div",{style:{background:e},className:"w-20 h-1 m-2 mb-4"}),b.jsx("p",{className:"text-sm text-gray-400 text-md",children:n("AboutDescreption")}),b.jsx("div",{className:"grid gap-8 mt-12 md:grid-cols-2 gap-y-12",children:t.map(({skill:r,description:i,icon:a})=>b.jsxs("div",{className:"flex items-center gap-8 md:justify-between ",children:[b.jsxs("div",{className:"relative",children:[b.jsx("h2",{className:"absolute z-10 text-xl font-semibold -left-2 -top-1",children:a}),b.jsx("span",{style:{background:e},className:"absolute w-8 h-8 rounded-full -left-6 -top-4"})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-lg font-TitrPlus ltr:font-summer",children:r}),b.jsx("p",{className:"mt-2 text-xs text-gray-400",children:i})]})]},r))})]})]})},Qx="modulepreload",Xx=function(e){return"/"+e},Qf={},Jx=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=Xx(a),a in Qf)return;Qf[a]=!0;const o=a.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let f=i.length-1;f>=0;f--){const c=i[f];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Qx,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())},qx=X.createContext({}),r0=!0;function Zx({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:i,circle:a,direction:o,duration:l,enableAnimation:s=r0}){const u={};return o==="rtl"&&(u["--animation-direction"]="reverse"),typeof l=="number"&&(u["--animation-duration"]=`${l}s`),s||(u["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(u.width=n),(typeof r=="string"||typeof r=="number")&&(u.height=r),(typeof i=="string"||typeof i=="number")&&(u.borderRadius=i),a&&(u.borderRadius="50%"),typeof e<"u"&&(u["--base-color"]=e),typeof t<"u"&&(u["--highlight-color"]=t),u}function e3({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:i,circle:a=!1,style:o,...l}){var s,u,f;const c=X.useContext(qx),d={...l};for(const[m,g]of Object.entries(l))typeof g>"u"&&delete d[m];const y={...c,...d,circle:a},S={...o,...Zx(y)};let v="react-loading-skeleton";n&&(v+=` ${n}`);const w=(s=y.inline)!==null&&s!==void 0?s:!1,p=[],h=Math.ceil(e);for(let m=0;me&&m===h-1){const C=(u=g.width)!==null&&u!==void 0?u:"100%",k=e%1,E=typeof C=="number"?C*k:`calc(${C} * ${k})`;g={...g,width:E}}const x=X.createElement("span",{className:v,style:g,key:m},"‌");w?p.push(x):p.push(X.createElement(X.Fragment,{key:m},x,X.createElement("br",null)))}return X.createElement("span",{className:r,"data-testid":i,"aria-live":"polite","aria-busy":(f=y.enableAnimation)!==null&&f!==void 0?f:r0},t?p.map((m,g)=>X.createElement(t,{key:g},m)):p)}const Xf=j.lazy(()=>Jx(()=>import("./Project-caccc2bb.js"),["assets/Project-caccc2bb.js","assets/Project-58b71f0a.css"])),t3=()=>{const{currentColor:e,currentLang:t,portfolioTitle:n,portfolioData:r,t:i}=ot(),[a,o]=j.useState(!1),[l,s]=j.useState(),[u,f]=j.useState(!1),[c,d]=j.useState("ReactJS"),[y,S]=j.useState([!0,!1]),[v,w]=j.useState("All"),[p,h]=j.useState([!0,!1,!1,!1,!1]);return j.useEffect(()=>{var m;v==="All"||v==="همه"?s((m=r[0])==null?void 0:m.all):v==="App"||v==="اپلیکیشن"?s(r[0].app):v==="Templates"||v==="قالب"?(f(!0),c==="ReactJS"||v==="ری اکت"?s(r[0].templates[0].react):(c==="VanillaJS"||v==="جاوااسکریپت")&&s(r[0].templates[0].vanillaJS)):v==="Games"||v==="بازی"?s(r[0].games):(v==="GraphicDesign"||v==="طراحی")&&s(r[0].graphicDesign)},[v,c,t]),j.useEffect(()=>{o(!!r)},[r]),b.jsx(b.Fragment,{children:b.jsxs("div",{className:"flex flex-col w-screen min-h-screen pt-10 mx-auto activeSection md:w-4/5",children:[a&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{style:{animationDelay:"1s"},children:[b.jsxs("div",{className:"relative mb-10",children:[b.jsx("h3",{className:"rtl:font-TitrPlus absolute z-10 text-xl -translate-x-1/2 left-1/2",children:i("projects")}),b.jsx("span",{style:{background:e},className:"left-1/2 -top-1.5 -translate-x-1/2 rounded-full absolute w-8 h-8"})]}),b.jsx("h1",{className:"my-5 text-2xl text-center md:text-4xl rlt:font-casablanca ltr:font-summer",children:i("seeProjects")}),b.jsx("div",{style:{background:e},className:"w-3/5 h-1 mx-auto md:w-2/5",children:b.jsxs("div",{className:"relative w-10 h-1 bg-main-bg dark:bg-main-dark-bg left-2/4 -translate-x-2/4 rtl:translate-x-2/4 rtl:-left-2/4",children:[b.jsx("span",{className:"absolute w-2 h-1 bg-black rounded-full left-2 dark:bg-white"}),b.jsx("span",{className:"absolute w-2 h-1 bg-black rounded-full left-6 dark:bg-white"})]})})]}),b.jsx("div",{style:{animationDelay:"1s"},className:"flex items-center justify-center w-3/4 h-20 gap-2 mx-auto mt-10 text-xs text-center md:gap-4 md:text-md",children:n.map(({name:m,activetab:g},x)=>b.jsx("button",{type:"button",style:{background:p[x]?e:""},className:"p-2 py-1 mb-10 font-semibold text-gray-800 dark:text-gray-100 md:p-4 md:py-2 rounded-2xl",onClick:()=>h(g)||w(m)||m==="templates"?f(!0):f(!1),children:m},x))})]}),b.jsx("div",{className:"grid grid-cols-1 gap-5 pb-20 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 place-items-center",children:u?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"col-span-1 m-5 -mt-5 text-xs text-center sm:col-span-2 md:col-span-3 lg:col-span-4 md:text-md",children:[b.jsx("button",{className:"p-2 py-1 md:p-4 md:py-2 rounded-2xl",style:{background:y[0]?e:""},type:"button",onClick:()=>d("ReactJS")||S([!0,!1]),children:i("reactjs")}),b.jsx("button",{className:"p-2 py-1 md:p-4 md:py-2 rounded-2xl",style:{background:y[1]?e:""},type:"button",onClick:()=>d("VanillaJS")||S([!1,!0]),children:i("vanillajs")})]}),l==null?void 0:l.map(({pic:m,title:g,projectName:x,githubLink:C,viewOnline:k},E)=>b.jsx(Xf,{pic:m,title:g,projectName:x,githubLink:C,viewOnline:k},E))]}):l==null?void 0:l.map(({pic:m,title:g,projectName:x,githubLink:C,viewOnline:k},E)=>b.jsx(b.Fragment,{children:b.jsx(j.Suspense,{fallback:b.jsx(e3,{className:"w-3/4 md:w-full h-64"}),children:b.jsx(Xf,{pic:m,title:g,projectName:x,githubLink:C,viewOnline:k},E)})}))})]})})};function Jf(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Pu(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Jf(t[n])&&Jf(e[n])&&Object.keys(t[n]).length>0&&Pu(e[n],t[n])})}const i0={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 _e(){const e=typeof document<"u"?document:{};return Pu(e,i0),e}const n3={document:i0,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 je(){const e=typeof window<"u"?window:{};return Pu(e,n3),e}function r3(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(n){t.__proto__=n}})}class hn extends Array{constructor(t){typeof t=="number"?super(t):(super(...t||[]),r3(this))}}function Gi(e=[]){const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...Gi(n)):t.push(n)}),t}function a0(e,t){return Array.prototype.filter.call(e,t)}function i3(e){const t=[];for(let n=0;n=0&&a.indexOf(">")>=0){let o="div";a.indexOf("n.split(" ")));return this.forEach(n=>{n.classList.add(...t)}),this}function s3(...e){const t=Gi(e.map(n=>n.split(" ")));return this.forEach(n=>{n.classList.remove(...t)}),this}function l3(...e){const t=Gi(e.map(n=>n.split(" ")));this.forEach(n=>{t.forEach(r=>{n.classList.toggle(r)})})}function u3(...e){const t=Gi(e.map(n=>n.split(" ")));return a0(this,n=>t.filter(r=>n.classList.contains(r)).length>0).length>0}function c3(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n=0;c-=1){const d=f[c];r&&d.listener===r||r&&d.listener&&d.listener.dom7proxy&&d.listener.dom7proxy===r?(u.removeEventListener(l,d.proxyListener,i),f.splice(c,1)):r||(u.removeEventListener(l,d.proxyListener,i),f.splice(c,1))}}}return this}function g3(...e){const t=je(),n=e[0].split(" "),r=e[1];for(let i=0;if>0),l.dispatchEvent(s),l.dom7EventData=[],delete l.dom7EventData}}}return this}function v3(e){const t=this;function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))}return e&&t.on("transitionend",n),this}function y3(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function w3(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function S3(){if(this.length>0){const e=je(),t=_e(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,l=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+l-a,left:r.left+s-o}}return null}function x3(){const e=je();return this[0]?e.getComputedStyle(this[0],null):{}}function b3(e,t){const n=je();let r;if(arguments.length===1)if(typeof e=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r{e.apply(t,[t,n])}),this):this}function k3(e){const t=a0(this,e);return A(t)}function E3(e){if(typeof e>"u")return this[0]?this[0].innerHTML:null;for(let t=0;t"u")return this[0]?this[0].textContent.trim():null;for(let t=0;t"u")return!1;if(typeof e=="string"){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(i=A(e),a=0;a"u")return this;const t=this.length;if(e>t-1)return A([]);if(e<0){const n=t+e;return n<0?A([]):A([this[n]])}return A([this[e]])}function T3(...e){let t;const n=_e();for(let r=0;r=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof hn)for(r=0;r0?e?this[0].nextElementSibling&&A(this[0].nextElementSibling).is(e)?A([this[0].nextElementSibling]):A([]):this[0].nextElementSibling?A([this[0].nextElementSibling]):A([]):A([])}function M3(e){const t=[];let n=this[0];if(!n)return A([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;e?A(r).is(e)&&t.push(r):t.push(r),n=r}return A(t)}function D3(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&A(t.previousElementSibling).is(e)?A([t.previousElementSibling]):A([]):t.previousElementSibling?A([t.previousElementSibling]):A([])}return A([])}function R3(e){const t=[];let n=this[0];if(!n)return A([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;e?A(r).is(e)&&t.push(r):t.push(r),n=r}return A(t)}function z3(e){const t=[];for(let n=0;n"u"?A([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function A3(e){const t=[];for(let n=0;n{Object.defineProperty(A.fn,e,{value:qf[e],writable:!0})});function U3(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function co(e,t=0){return setTimeout(e,t)}function $i(){return Date.now()}function H3(e){const t=je();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function V3(e,t="x"){const n=je();let r,i,a;const o=H3(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(l=>l.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix(i==="none"?"":i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=a.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=a.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function Sa(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function W3(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ze(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;rn.indexOf(o)<0);for(let o=0,l=a.length;oi?"next":"prev",u=(c,d)=>s==="next"&&c>=d||s==="prev"&&c<=d,f=()=>{o=new Date().getTime(),a===null&&(a=o);const c=Math.max(Math.min((o-a)/l,1),0),d=.5-Math.cos(c*Math.PI)/2;let y=i+d*(t-i);if(u(y,t)&&(y=t),e.wrapperEl.scrollTo({[n]:y}),u(y,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(f)};f()}let ys;function K3(){const e=je(),t=_e();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let r=!1;try{const i=Object.defineProperty({},"passive",{get(){r=!0}});e.addEventListener("testPassiveListener",null,i)}catch{}return r}(),gestures:function(){return"ongesturestart"in e}()}}function s0(){return ys||(ys=K3()),ys}let ws;function G3({userAgent:e}={}){const t=s0(),n=je(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,s=i.match(/(Android);?[\s\/]+([\d.]+)?/);let u=i.match(/(iPad).*OS\s([\d_]+)/);const f=i.match(/(iPod)(.*OS\s([\d_]+))?/),c=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=r==="Win32";let y=r==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&y&&t.touch&&S.indexOf(`${o}x${l}`)>=0&&(u=i.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),y=!1),s&&!d&&(a.os="android",a.android=!0),(u||c||f)&&(a.os="ios",a.ios=!0),a}function Y3(e={}){return ws||(ws=G3(e)),ws}let Ss;function Q3(){const e=je();function t(){const n=e.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function X3(){return Ss||(Ss=Q3()),Ss}function J3({swiper:e,on:t,emit:n}){const r=je();let i=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(f=>{a=r.requestAnimationFrame(()=>{const{width:c,height:d}=e;let y=c,S=d;f.forEach(({contentBoxSize:v,contentRect:w,target:p})=>{p&&p!==e.el||(y=w?w.width:(v[0]||v).inlineSize,S=w?w.height:(v[0]||v).blockSize)}),(y!==c||S!==d)&&o()})}),i.observe(e.el))},s=()=>{a&&r.cancelAnimationFrame(a),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"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",u)}),t("destroy",()=>{s(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",u)})}function q3({swiper:e,extendParams:t,on:n,emit:r}){const i=[],a=je(),o=(u,f={})=>{const c=a.MutationObserver||a.WebkitMutationObserver,d=new c(y=>{if(y.length===1){r("observerUpdate",y[0]);return}const S=function(){r("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(S):a.setTimeout(S,0)});d.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),i.push(d)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=e.$el.parents();for(let f=0;f{i.forEach(u=>{u.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",s)}const Z3={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(a=>{r.eventsListeners[a]||(r.eventsListeners[a]=[]),r.eventsListeners[a][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...a){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,a)}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,a)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(a,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(o=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(i,[o,...r])}),t.eventsListeners&&t.eventsListeners[o]&&t.eventsListeners[o].forEach(l=>{l.apply(i,r)})}),t}};function e4(){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[0].clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r[0].clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),n=n-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("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 t4(){const e=this;function t(O){return e.isHorizontal()?O:{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"}[O]}function n(O,_){return parseFloat(O.getPropertyValue(t(_))||0)}const r=e.params,{$wrapperEl:i,size:a,rtlTranslate:o,wrongRTL:l}=e,s=e.virtual&&r.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,f=i.children(`.${e.params.slideClass}`),c=s?e.virtual.slides.length:f.length;let d=[];const y=[],S=[];let v=r.slidesOffsetBefore;typeof v=="function"&&(v=r.slidesOffsetBefore.call(e));let w=r.slidesOffsetAfter;typeof w=="function"&&(w=r.slidesOffsetAfter.call(e));const p=e.snapGrid.length,h=e.slidesGrid.length;let m=r.spaceBetween,g=-v,x=0,C=0;if(typeof a>"u")return;typeof m=="string"&&m.indexOf("%")>=0&&(m=parseFloat(m.replace("%",""))/100*a),e.virtualSize=-m,o?f.css({marginLeft:"",marginBottom:"",marginTop:""}):f.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(xa(e.wrapperEl,"--swiper-centered-offset-before",""),xa(e.wrapperEl,"--swiper-centered-offset-after",""));const k=r.grid&&r.grid.rows>1&&e.grid;k&&e.grid.initSlides(c);let E;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(O=>typeof r.breakpoints[O].slidesPerView<"u").length>0;for(let O=0;O1&&d.push(e.virtualSize-a)}if(d.length===0&&(d=[0]),r.spaceBetween!==0){const O=e.isHorizontal()&&o?"marginLeft":t("marginRight");f.filter((_,R)=>r.cssMode?R!==f.length-1:!0).css({[O]:`${m}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let O=0;S.forEach(R=>{O+=R+(r.spaceBetween?r.spaceBetween:0)}),O-=r.spaceBetween;const _=O-a;d=d.map(R=>R<0?-v:R>_?_+w:R)}if(r.centerInsufficientSlides){let O=0;if(S.forEach(_=>{O+=_+(r.spaceBetween?r.spaceBetween:0)}),O-=r.spaceBetween,O{d[K]=R-_}),y.forEach((R,K)=>{y[K]=R+_})}}if(Object.assign(e,{slides:f,snapGrid:d,slidesGrid:y,slidesSizesGrid:S}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){xa(e.wrapperEl,"--swiper-centered-offset-before",`${-d[0]}px`),xa(e.wrapperEl,"--swiper-centered-offset-after",`${e.size/2-S[S.length-1]/2}px`);const O=-e.snapGrid[0],_=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(R=>R+O),e.slidesGrid=e.slidesGrid.map(R=>R+_)}if(c!==u&&e.emit("slidesLengthChange"),d.length!==p&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),y.length!==h&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!s&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const O=`${r.containerModifierClass}backface-hidden`,_=e.$el.hasClass(O);c<=r.maxBackfaceHiddenSlides?_||e.$el.addClass(O):_&&e.$el.removeClass(O)}}function n4(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,a;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=l=>r?t.slides.filter(s=>parseInt(s.getAttribute("data-swiper-slide-index"),10)===l)[0]:t.slides.eq(l)[0];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||A([])).each(l=>{n.push(l)});else for(a=0;at.slides.length&&!r)break;n.push(o(l))}else n.push(o(t.activeIndex));for(a=0;ai?l:i}(i||i===0)&&t.$wrapperEl.css("height",`${i}px`)}function r4(){const e=this,t=e.slides;for(let n=0;n"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let l=0;l=0&&d1&&y<=t.size||d<=0&&y>=t.size)&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(l),r.eq(l).addClass(n.slideVisibleClass)),s.progress=i?-f:f,s.originalProgress=i?-c:c}t.visibleSlides=A(t.visibleSlides)}function a4(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:a,isEnd:o}=t;const l=a,s=o;r===0?(i=0,a=!0,o=!0):(i=(e-t.minTranslate())/r,a=i<=0,o=i>=1),Object.assign(t,{progress:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!s&&t.emit("reachEnd toEdge"),(l&&!a||s&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}function o4(){const e=this,{slides:t,params:n,$wrapperEl:r,activeIndex:i,realIndex:a}=e,o=e.virtual&&n.virtual.enabled;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let l;o?l=e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):l=t.eq(i),l.addClass(n.slideActiveClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${a}"]`).addClass(n.slideDuplicateActiveClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${a}"]`).addClass(n.slideDuplicateActiveClass));let s=l.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&s.length===0&&(s=t.eq(0),s.addClass(n.slideNextClass));let u=l.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&u.length===0&&(u=t.eq(-1),u.addClass(n.slidePrevClass)),n.loop&&(s.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),u.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()}function s4(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:r,snapGrid:i,params:a,activeIndex:o,realIndex:l,snapIndex:s}=t;let u=e,f;if(typeof u>"u"){for(let d=0;d=r[d]&&n=r[d]&&n=r[d]&&(u=d);a.normalizeSlideIndex&&(u<0||typeof u>"u")&&(u=0)}if(i.indexOf(n)>=0)f=i.indexOf(n);else{const d=Math.min(a.slidesPerGroupSkip,u);f=d+Math.floor((u-d)/a.slidesPerGroup)}if(f>=i.length&&(f=i.length-1),u===o){f!==s&&(t.snapIndex=f,t.emit("snapIndexChange"));return}const c=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(t,{snapIndex:f,realIndex:c,previousIndex:o,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==c&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function l4(e){const t=this,n=t.params,r=A(e).closest(`.${n.slideClass}`)[0];let i=!1,a;if(r){for(let o=0;os?f=s:r&&ea?o="next":i=s.length&&(w=s.length-1);const p=-s[w];if(l.normalizeSlideIndex)for(let m=0;m=x&&g=x&&g=x&&(o=m)}if(a.initialized&&o!==c&&(!a.allowSlideNext&&pa.translate&&p>a.maxTranslate()&&(c||0)!==o))return!1;o!==(f||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(p);let h;if(o>c?h="next":o{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1})}else{if(!a.support.smoothScroll)return o0({swiper:a,targetPosition:g,side:m?"left":"top"}),!0;y.scrollTo({[m?"left":"top"]:g,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(p),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,h),t===0?a.transitionEnd(n,h):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(g){!a||a.destroyed||g.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,h))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0}function x4(e=0,t=this.params.speed,n=!0,r){if(typeof e=="string"){const o=parseInt(e,10);if(!isFinite(o))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=o}const i=this;let a=e;return i.params.loop&&(a+=i.loopedSlides),i.slideTo(a,t,n,r)}function b4(e=this.params.speed,t=!0,n){const r=this,{animating:i,enabled:a,params:o}=r;if(!a)return r;let l=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const s=r.activeIndexc(w));let S=o[y.indexOf(d)-1];if(typeof S>"u"&&i.cssMode){let w;o.forEach((p,h)=>{d>=p&&(w=h)}),typeof w<"u"&&(S=o[w>0?w-1:w])}let v=0;if(typeof S<"u"&&(v=l.indexOf(S),v<0&&(v=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const w=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(w,e,t,n)}return r.slideTo(v,e,t,n)}function k4(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function E4(e=this.params.speed,t=!0,n,r=.5){const i=this;let a=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,a),l=o+Math.floor((a-o)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[l]){const u=i.snapGrid[l],f=i.snapGrid[l+1];s-u>(f-u)*r&&(a+=i.params.slidesPerGroup)}else{const u=i.snapGrid[l-1],f=i.snapGrid[l];s-u<=(f-u)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function N4(){const e=this,{params:t,$wrapperEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,a;if(t.loop){if(e.animating)return;a=parseInt(A(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=n.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),co(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=n.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),co(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const j4={slideTo:S4,slideToLoop:x4,slideNext:b4,slidePrev:C4,slideReset:k4,slideToClosest:E4,slideToClickedSlide:N4};function O4(){const e=this,t=_e(),{params:n,$wrapperEl:r}=e,i=r.children().length>0?A(r.children()[0].parentNode):r;i.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let a=i.children(`.${n.slideClass}`);if(n.loopFillGroupWithBlank){const s=n.slidesPerGroup-a.length%n.slidesPerGroup;if(s!==n.slidesPerGroup){for(let u=0;ua.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=a.length);const o=[],l=[];a.each((s,u)=>{A(s).attr("data-swiper-slide-index",u)});for(let s=0;s=0;s-=1)i.prepend(A(o[s].cloneNode(!0)).addClass(n.slideDuplicateClass))}function P4(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:r,allowSlidePrev:i,allowSlideNext:a,snapGrid:o,rtlTranslate:l}=e;let s;e.allowSlidePrev=!0,e.allowSlideNext=!0;const f=-o[t]-e.getTranslate();t=n.length-r&&(s=-n.length+t+r,s+=r,e.slideTo(s,0,!1,!0)&&f!==0&&e.setTranslate((l?-e.translate:e.translate)-f)),e.allowSlidePrev=i,e.allowSlideNext=a,e.emit("loopFix")}function T4(){const e=this,{$wrapperEl:t,params:n,slides:r}=e;t.children(`.${n.slideClass}.${n.slideDuplicateClass},.${n.slideClass}.${n.slideBlankClass}`).remove(),r.removeAttr("data-swiper-slide-index")}const L4={loopCreate:O4,loopFix:P4,loopDestroy:T4};function _4(e){const t=this;if(t.support.touch||!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 M4(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const D4={setGrabCursor:_4,unsetGrabCursor:M4};function R4(e,t=this){function n(r){if(!r||r===_e()||r===je())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 z4(e){const t=this,n=_e(),r=je(),i=t.touchEventsData,{params:a,touches:o,enabled:l}=t;if(!l||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let s=e;s.originalEvent&&(s=s.originalEvent);let u=A(s.target);if(a.touchEventsTarget==="wrapper"&&!u.closest(t.wrapperEl).length||(i.isTouchEvent=s.type==="touchstart",!i.isTouchEvent&&"which"in s&&s.which===3)||!i.isTouchEvent&&"button"in s&&s.button>0||i.isTouched&&i.isMoved)return;const f=!!a.noSwipingClass&&a.noSwipingClass!=="",c=e.composedPath?e.composedPath():e.path;f&&s.target&&s.target.shadowRoot&&c&&(u=A(c[0]));const d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,y=!!(s.target&&s.target.shadowRoot);if(a.noSwiping&&(y?R4(d,u[0]):u.closest(d)[0])){t.allowClick=!0;return}if(a.swipeHandler&&!u.closest(a.swipeHandler)[0])return;o.currentX=s.type==="touchstart"?s.targetTouches[0].pageX:s.pageX,o.currentY=s.type==="touchstart"?s.targetTouches[0].pageY:s.pageY;const S=o.currentX,v=o.currentY,w=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,p=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(w&&(S<=p||S>=r.innerWidth-p))if(w==="prevent")e.preventDefault();else return;if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=S,o.startY=v,i.touchStartTime=$i(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1),s.type!=="touchstart"){let h=!0;u.is(i.focusableElements)&&(h=!1,u[0].nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&A(n.activeElement).is(i.focusableElements)&&n.activeElement!==u[0]&&n.activeElement.blur();const m=h&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||m)&&!u[0].isContentEditable&&s.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function $4(e){const t=_e(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:l}=n;if(!l)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",s);return}if(r.isTouchEvent&&s.type!=="touchmove")return;const u=s.type==="touchmove"&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),f=s.type==="touchmove"?u.pageX:s.pageX,c=s.type==="touchmove"?u.pageY:s.pageY;if(s.preventedByNestedSwiper){a.startX=f,a.startY=c;return}if(!n.allowTouchMove){A(s.target).is(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:f,startY:c,currentX:f,currentY:c}),r.touchStartTime=$i());return}if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(ca.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(fa.startX&&n.translate>=n.minTranslate())return}if(r.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&A(s.target).is(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;a.currentX=f,a.currentY=c;const d=a.currentX-a.startX,y=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(d**2+y**2)"u"){let p;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:d*d+y*y>=25&&(p=Math.atan2(Math.abs(y),Math.abs(d))*180/Math.PI,r.isScrolling=n.isHorizontal()?p>i.touchAngle:90-p>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",s),typeof r.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",s)),n.emit("sliderMove",s),r.isMoved=!0;let S=n.isHorizontal()?d:y;a.diff=S,S*=i.touchRatio,o&&(S=-S),n.swipeDirection=S>0?"prev":"next",r.currentTranslate=S+r.startTranslate;let v=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),S>0&&r.currentTranslate>n.minTranslate()?(v=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+S)**w)):S<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(S)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.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 I4(e){const t=this,n=t.touchEventsData,{params:r,touches:i,rtlTranslate:a,slidesGrid:o,enabled:l}=t;if(!l)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=$i(),f=u-n.touchStartTime;if(t.allowClick){const h=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(h&&h[0]||s.target),t.emit("tap click",s),f<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=$i(),co(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.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 c;if(r.followFinger?c=a?t.translate:-t.translate:c=-n.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:c});return}let d=0,y=t.slidesSizesGrid[0];for(let h=0;h=o[h]&&c=o[h]&&(d=h,y=o[o.length-1]-o[o.length-2])}let S=null,v=null;r.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(S=0));const w=(c-o[d])/y,p=dr.longSwipesMs){if(!r.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(w>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?S:d+p):t.slideTo(d)),t.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?t.slideTo(d+p):v!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?t.slideTo(v):t.slideTo(d))}else{if(!r.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(s.target===t.navigation.nextEl||s.target===t.navigation.prevEl)?s.target===t.navigation.nextEl?t.slideTo(d+p):t.slideTo(d):(t.swipeDirection==="next"&&t.slideTo(S!==null?S:d+p),t.swipeDirection==="prev"&&t.slideTo(v!==null?v:d))}}function Zf(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function A4(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function F4(){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 a=e.maxTranslate()-e.minTranslate();a===0?i=0:i=(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let ed=!1;function B4(){}const u0=(e,t)=>{const n=_e(),{params:r,touchEvents:i,el:a,wrapperEl:o,device:l,support:s}=e,u=!!r.nested,f=t==="on"?"addEventListener":"removeEventListener",c=t;if(!s.touch)a[f](i.start,e.onTouchStart,!1),n[f](i.move,e.onTouchMove,u),n[f](i.end,e.onTouchEnd,!1);else{const d=i.start==="touchstart"&&s.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;a[f](i.start,e.onTouchStart,d),a[f](i.move,e.onTouchMove,s.passiveListener?{passive:!1,capture:u}:u),a[f](i.end,e.onTouchEnd,d),i.cancel&&a[f](i.cancel,e.onTouchEnd,d)}(r.preventClicks||r.preventClicksPropagation)&&a[f]("click",e.onClick,!0),r.cssMode&&o[f]("scroll",e.onScroll),r.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Zf,!0):e[c]("observerUpdate",Zf,!0)};function U4(){const e=this,t=_e(),{params:n,support:r}=e;e.onTouchStart=z4.bind(e),e.onTouchMove=$4.bind(e),e.onTouchEnd=I4.bind(e),n.cssMode&&(e.onScroll=F4.bind(e)),e.onClick=A4.bind(e),r.touch&&!ed&&(t.addEventListener("touchstart",B4),ed=!0),u0(e,"on")}function H4(){u0(this,"off")}const V4={attachEvents:U4,detachEvents:H4},td=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function W4(){const e=this,{activeIndex:t,initialized:n,loopedSlides:r=0,params:i,$el:a}=e,o=i.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const l=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const u=(l in o?o[l]:void 0)||e.originalParams,f=td(e,i),c=td(e,u),d=i.enabled;f&&!c?(a.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&c&&(a.addClass(`${i.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&i.grid.fill==="column")&&a.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{const p=i[w]&&i[w].enabled,h=u[w]&&u[w].enabled;p&&!h&&e[w].disable(),!p&&h&&e[w].enable()});const y=u.direction&&u.direction!==i.direction,S=i.loop&&(u.slidesPerView!==i.slidesPerView||y);y&&n&&e.changeDirection(),Ze(e.params,u);const v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!v?e.disable():!d&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),S&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}function K4(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=je(),a=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const s=parseFloat(l.substr(1));return{value:a*s,point:l}}return{value:l,point:l}});o.sort((l,s)=>parseInt(l.value,10)-parseInt(s.value,10));for(let l=0;l{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function Q4(){const e=this,{classNames:t,params:n,rtl:r,$el:i,device:a,support:o}=e,l=Y4(["initialized",n.direction,{"pointer-events":!o.touch},{"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:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...l),i.addClass([...t].join(" ")),e.emitContainerClasses()}function X4(){const e=this,{$el:t,classNames:n}=e;t.removeClass(n.join(" ")),e.emitContainerClasses()}const J4={addClasses:Q4,removeClasses:X4};function q4(e,t,n,r,i,a){const o=je();let l;function s(){a&&a()}!A(e).parent("picture")[0]&&(!e.complete||!i)&&t?(l=new o.Image,l.onload=s,l.onerror=s,r&&(l.sizes=r),n&&(l.srcset=n),t&&(l.src=t)):s()}function Z4(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){typeof e>"u"||e===null||!e||e.destroyed||(e.imagesLoaded!==void 0&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}for(let n=0;na}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 n8={checkOverflow:t8},nd={init:!0,direction:"horizontal",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:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!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",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function r8(e,t){return function(r={}){const i=Object.keys(r)[0],a=r[i];if(typeof a!="object"||a===null){Ze(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in a)){Ze(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}),Ze(t,r)}}const xs={eventsEmitter:Z3,update:u4,translate:m4,transition:w4,slide:j4,loop:L4,grabCursor:D4,events:V4,breakpoints:G4,checkOverflow:n8,classes:J4,images:e8},bs={};let Qn=class Gt{constructor(...t){let n,r;if(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=Ze({},r),n&&!r.el&&(r.el=n),r.el&&A(r.el).length>1){const l=[];return A(r.el).each(s=>{const u=Ze({},r,{el:s});l.push(new Gt(u))}),l}const i=this;i.__swiper__=!0,i.support=s0(),i.device=Y3({userAgent:r.userAgent}),i.browser=X3(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const a={};i.modules.forEach(l=>{l({swiper:i,extendParams:r8(r,a),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=Ze({},nd,a);return i.params=Ze({},o,bs,r),i.originalParams=Ze({},i.params),i.passedParams=Ze({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(l=>{i.on(l,i.params.on[l])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),i.$=A,Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:A(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const s=["touchstart","touchmove","touchend","touchcancel"],u=["pointerdown","pointermove","pointerup"];return i.touchEventsTouch={start:s[0],move:s[1],end:s[2],cancel:s[3]},i.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),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:i.params.focusableElements,lastClickTime:$i(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}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(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,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.each(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:a,slidesGrid:o,slidesSizesGrid:l,size:s,activeIndex:u}=r;let f=1;if(i.centeredSlides){let c=a[u].swiperSlideSize,d;for(let y=u+1;ys&&(d=!0));for(let y=u-1;y>=0;y-=1)a[y]&&!d&&(c+=a[y].swiperSlideSize,f+=1,c>s&&(d=!0))}else if(t==="current")for(let c=u+1;c=0;c-=1)o[u]-o[c]1)&&t.isEnd&&!t.params.centeredSlides?a=t.slideTo(t.slides.length-1,0,!1,!0):a=t.slideTo(t.activeIndex,0,!1,!0),a||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.removeClass(`${r.params.containerModifierClass}${i}`).addClass(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.each(a=>{t==="vertical"?a.style.width="":a.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.addClass(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.$el.removeClass(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;const r=A(t||n.params.el);if(t=r[0],!t)return!1;t.swiper=n;const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const l=A(t.shadowRoot.querySelector(i()));return l.children=s=>r.children(s),l}return r.children?r.children(i()):A(r).children(i())})();if(o.length===0&&n.params.createElements){const s=_e().createElement("div");o=A(s),s.className=n.params.wrapperClass,r.append(s),r.children(`.${n.params.slideClass}`).each(u=>{o.append(u)})}return Object.assign(n,{$el:r,el:t,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:t.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(t.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl"),wrongRTL:o.css("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.params.loop&&n.loopCreate(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.preloadImages&&n.preloadImages(),n.params.loop?n.slideTo(n.params.initialSlide+n.loopedSlides,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.attachEvents(),n.initialized=!0,n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,$el:a,$wrapperEl:o,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),a.removeAttr("style"),o.removeAttr("style"),l&&l.length&&l.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(s=>{r.off(s)}),t!==!1&&(r.$el[0].swiper=null,U3(r)),r.destroyed=!0),null}static extendDefaults(t){Ze(bs,t)}static get extendedDefaults(){return bs}static get defaults(){return nd}static installModule(t){Gt.prototype.__modules__||(Gt.prototype.__modules__=[]);const n=Gt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Gt.installModule(n)),Gt):(Gt.installModule(t),Gt)}};Object.keys(xs).forEach(e=>{Object.keys(xs[e]).forEach(t=>{Qn.prototype[t]=xs[e][t]})});Qn.use([J3,q3]);function i8(e,t,n,r){const i=_e();return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let o=e.$el.children(`.${r[a]}`)[0];o||(o=i.createElement("div"),o.className=r[a],e.$el.append(o)),n[a]=o,t[a]=o}}),n}function or(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function c0({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:v=>v,formatFractionTotal:v=>v,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,$el:null,bullets:[]};let a,o=0;function l(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0}function s(v,w){const{bulletActiveClass:p}=e.params.pagination;v[w]().addClass(`${p}-${w}`)[w]().addClass(`${p}-${w}-${w}`)}function u(){const v=e.rtl,w=e.params.pagination;if(l())return;const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,h=e.pagination.$el;let m;const g=e.params.loop?Math.ceil((p-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(m=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),m>p-1-e.loopedSlides*2&&(m-=p-e.loopedSlides*2),m>g-1&&(m-=g),m<0&&e.params.paginationType!=="bullets"&&(m=g+m)):typeof e.snapIndex<"u"?m=e.snapIndex:m=e.activeIndex||0,w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const x=e.pagination.bullets;let C,k,E;if(w.dynamicBullets&&(a=x.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),h.css(e.isHorizontal()?"width":"height",`${a*(w.dynamicMainBullets+4)}px`),w.dynamicMainBullets>1&&e.previousIndex!==void 0&&(o+=m-(e.previousIndex-e.loopedSlides||0),o>w.dynamicMainBullets-1?o=w.dynamicMainBullets-1:o<0&&(o=0)),C=Math.max(m-o,0),k=C+(Math.min(x.length,w.dynamicMainBullets)-1),E=(k+C)/2),x.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(D=>`${w.bulletActiveClass}${D}`).join(" ")),h.length>1)x.each(D=>{const O=A(D),_=O.index();_===m&&O.addClass(w.bulletActiveClass),w.dynamicBullets&&(_>=C&&_<=k&&O.addClass(`${w.bulletActiveClass}-main`),_===C&&s(O,"prev"),_===k&&s(O,"next"))});else{const D=x.eq(m),O=D.index();if(D.addClass(w.bulletActiveClass),w.dynamicBullets){const _=x.eq(C),R=x.eq(k);for(let K=C;K<=k;K+=1)x.eq(K).addClass(`${w.bulletActiveClass}-main`);if(e.params.loop)if(O>=x.length){for(let K=w.dynamicMainBullets;K>=0;K-=1)x.eq(x.length-K).addClass(`${w.bulletActiveClass}-main`);x.eq(x.length-w.dynamicMainBullets-1).addClass(`${w.bulletActiveClass}-prev`)}else s(_,"prev"),s(R,"next");else s(_,"prev"),s(R,"next")}}if(w.dynamicBullets){const D=Math.min(x.length,w.dynamicMainBullets+4),O=(a*D-a)/2-E*a,_=v?"right":"left";x.css(e.isHorizontal()?_:"top",`${O}px`)}}if(w.type==="fraction"&&(h.find(or(w.currentClass)).text(w.formatFractionCurrent(m+1)),h.find(or(w.totalClass)).text(w.formatFractionTotal(g))),w.type==="progressbar"){let x;w.progressbarOpposite?x=e.isHorizontal()?"vertical":"horizontal":x=e.isHorizontal()?"horizontal":"vertical";const C=(m+1)/g;let k=1,E=1;x==="horizontal"?k=C:E=C,h.find(or(w.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${k}) scaleY(${E})`).transition(e.params.speed)}w.type==="custom"&&w.renderCustom?(h.html(w.renderCustom(e,m+1,g)),r("paginationRender",h[0])):r("paginationUpdate",h[0]),e.params.watchOverflow&&e.enabled&&h[e.isLocked?"addClass":"removeClass"](w.lockClass)}function f(){const v=e.params.pagination;if(l())return;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.pagination.$el;let h="";if(v.type==="bullets"){let m=e.params.loop?Math.ceil((w-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&m>w&&(m=w);for(let g=0;g`;p.html(h),e.pagination.bullets=p.find(or(v.bulletClass))}v.type==="fraction"&&(v.renderFraction?h=v.renderFraction.call(e,v.currentClass,v.totalClass):h=` / `,p.html(h)),v.type==="progressbar"&&(v.renderProgressbar?h=v.renderProgressbar.call(e,v.progressbarFillClass):h=``,p.html(h)),v.type!=="custom"&&r("paginationRender",e.pagination.$el[0])}function c(){e.params.pagination=i8(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let w=A(v.el);w.length!==0&&(e.params.uniqueNavElements&&typeof v.el=="string"&&w.length>1&&(w=e.$el.find(v.el),w.length>1&&(w=w.filter(p=>A(p).parents(".swiper")[0]===e.el))),v.type==="bullets"&&v.clickable&&w.addClass(v.clickableClass),w.addClass(v.modifierClass+v.type),w.addClass(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(w.addClass(`${v.modifierClass}${v.type}-dynamic`),o=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&w.addClass(v.progressbarOppositeClass),v.clickable&&w.on("click",or(v.bulletClass),function(h){h.preventDefault();let m=A(this).index()*e.params.slidesPerGroup;e.params.loop&&(m+=e.loopedSlides),e.slideTo(m)}),Object.assign(e.pagination,{$el:w,el:w[0]}),e.enabled||w.addClass(v.lockClass))}function d(){const v=e.params.pagination;if(l())return;const w=e.pagination.$el;w.removeClass(v.hiddenClass),w.removeClass(v.modifierClass+v.type),w.removeClass(e.isHorizontal()?v.horizontalClass:v.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(v.bulletActiveClass),v.clickable&&w.off("click",or(v.bulletClass))}n("init",()=>{e.params.pagination.enabled===!1?S():(c(),f(),u())}),n("activeIndexChange",()=>{(e.params.loop||typeof e.snapIndex>"u")&&u()}),n("snapIndexChange",()=>{e.params.loop||u()}),n("slidesLengthChange",()=>{e.params.loop&&(f(),u())}),n("snapGridLengthChange",()=>{e.params.loop||(f(),u())}),n("destroy",()=>{d()}),n("enable disable",()=>{const{$el:v}=e.pagination;v&&v[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),n("lock unlock",()=>{u()}),n("click",(v,w)=>{const p=w.target,{$el:h}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&h&&h.length>0&&!A(p).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&p===e.navigation.nextEl||e.navigation.prevEl&&p===e.navigation.prevEl))return;const m=h.hasClass(e.params.pagination.hiddenClass);r(m===!0?"paginationShow":"paginationHide"),h.toggleClass(e.params.pagination.hiddenClass)}});const y=()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),c(),f(),u()},S=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),d()};Object.assign(e.pagination,{enable:y,disable:S,render:f,update:u,init:c,destroy:d})}function a8({swiper:e,extendParams:t,on:n,emit:r}){let i;e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function a(){if(!e.size){e.autoplay.running=!1,e.autoplay.paused=!1;return}const v=e.slides.eq(e.activeIndex);let w=e.params.autoplay.delay;v.attr("data-swiper-autoplay")&&(w=v.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(i),i=co(()=>{let p;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),p=e.slidePrev(e.params.speed,!0,!0),r("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?l():(p=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),r("autoplay")):(p=e.slidePrev(e.params.speed,!0,!0),r("autoplay")):e.params.loop?(e.loopFix(),p=e.slideNext(e.params.speed,!0,!0),r("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?l():(p=e.slideTo(0,e.params.speed,!0,!0),r("autoplay")):(p=e.slideNext(e.params.speed,!0,!0),r("autoplay")),(e.params.cssMode&&e.autoplay.running||p===!1)&&a()},w)}function o(){return typeof i<"u"||e.autoplay.running?!1:(e.autoplay.running=!0,r("autoplayStart"),a(),!0)}function l(){return!e.autoplay.running||typeof i>"u"?!1:(i&&(clearTimeout(i),i=void 0),e.autoplay.running=!1,r("autoplayStop"),!0)}function s(v){e.autoplay.running&&(e.autoplay.paused||(i&&clearTimeout(i),e.autoplay.paused=!0,v===0||!e.params.autoplay.waitForTransition?(e.autoplay.paused=!1,a()):["transitionend","webkitTransitionEnd"].forEach(w=>{e.$wrapperEl[0].addEventListener(w,f)})))}function u(){const v=_e();v.visibilityState==="hidden"&&e.autoplay.running&&s(),v.visibilityState==="visible"&&e.autoplay.paused&&(a(),e.autoplay.paused=!1)}function f(v){!e||e.destroyed||!e.$wrapperEl||v.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(w=>{e.$wrapperEl[0].removeEventListener(w,f)}),e.autoplay.paused=!1,e.autoplay.running?a():l())}function c(){e.params.autoplay.disableOnInteraction?l():(r("autoplayPause"),s()),["transitionend","webkitTransitionEnd"].forEach(v=>{e.$wrapperEl[0].removeEventListener(v,f)})}function d(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,r("autoplayResume"),a())}function y(){e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",c),e.$el.on("mouseleave",d))}function S(){e.$el.off("mouseenter",c),e.$el.off("mouseleave",d)}n("init",()=>{e.params.autoplay.enabled&&(o(),_e().addEventListener("visibilitychange",u),y())}),n("beforeTransitionStart",(v,w,p)=>{e.autoplay.running&&(p||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(w):l())}),n("sliderFirstMove",()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?l():s())}),n("touchEnd",()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&a()}),n("destroy",()=>{S(),e.autoplay.running&&l(),_e().removeEventListener("visibilitychange",u)}),Object.assign(e.autoplay,{pause:s,run:a,start:o,stop:l})}function Xn(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function mn(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]:Xn(t[r])&&Xn(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:mn(e[r],t[r]):e[r]=t[r]})}function f0(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function d0(e={}){return e.pagination&&typeof e.pagination.el>"u"}function p0(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function h0(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(" ")}const m0=["modules","init","_direction","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","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function o8(e={},t=!0){const n={on:{}},r={},i={};mn(n,Qn.defaults),mn(n,Qn.extendedDefaults),n._emitClasses=!0,n.init=!1;const a={},o=m0.map(s=>s.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(s=>{typeof e[s]>"u"||(o.indexOf(s)>=0?Xn(e[s])?(n[s]={},i[s]={},mn(n[s],e[s]),mn(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]=="function"?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(s=>{n[s]===!0&&(n[s]={}),n[s]===!1&&delete n[s]}),{params:n,passedParams:i,rest:a,events:r}}function s8({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:a},o){f0(o)&&t&&n&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),d0(o)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),p0(o)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(e)}const g0=(e,t)=>{let n=t.slidesPerView;if(t.breakpoints){const i=Qn.prototype.getBreakpoint(t.breakpoints),a=i in t.breakpoints?t.breakpoints[i]:void 0;a&&a.slidesPerView&&(n=a.slidesPerView)}let r=Math.ceil(parseFloat(t.loopedSlides||n,10));return r+=t.loopAdditionalSlides,r>e.length&&t.loopedSlidesLimit&&(r=e.length),r};function l8(e,t,n){const r=t.map((s,u)=>X.cloneElement(s,{swiper:e,"data-swiper-slide-index":u}));function i(s,u,f){return X.cloneElement(s,{key:`${s.key}-duplicate-${u}-${f}`,className:`${s.props.className||""} ${n.slideDuplicateClass}`})}if(n.loopFillGroupWithBlank){const s=n.slidesPerGroup-r.length%n.slidesPerGroup;if(s!==n.slidesPerGroup)for(let u=0;u{a.indexOf(s)<0&&a.push(s)};if(n&&r){const s=r.map(i),u=n.map(i);s.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return m0.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Xn(e[s])&&Xn(t[s])){const u=Object.keys(e[s]),f=Object.keys(t[s]);u.length!==f.length?o(s):(u.forEach(c=>{e[s][c]!==t[s][c]&&o(s)}),f.forEach(c=>{e[s][c]!==t[s][c]&&o(s)}))}else e[s]!==t[s]&&o(s)}),a}function v0(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function y0(e){const t=[];return X.Children.toArray(e).forEach(n=>{v0(n)?t.push(n):n.props&&n.props.children&&y0(n.props.children).forEach(r=>t.push(r))}),t}function c8(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return X.Children.toArray(e).forEach(r=>{if(v0(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=y0(r.props.children);i.length>0?i.forEach(a=>t.push(a)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function f8({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:l}){const s=r.filter(x=>x!=="children"&&x!=="direction"),{params:u,pagination:f,navigation:c,scrollbar:d,virtual:y,thumbs:S}=e;let v,w,p,h,m;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(v=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(w=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(u.pagination||u.pagination===!1)&&f&&!f.el&&(p=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(u.scrollbar||u.scrollbar===!1)&&d&&!d.el&&(h=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(u.navigation||u.navigation===!1)&&c&&!c.prevEl&&!c.nextEl&&(m=!0);const g=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(u[x].prevEl=void 0,u[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(u[x].el=void 0,e[x].el=void 0))};s.forEach(x=>{if(Xn(u[x])&&Xn(n[x]))mn(u[x],n[x]);else{const C=n[x];(C===!0||C===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?C===!1&&g(x):u[x]=n[x]}}),s.includes("controller")&&!w&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&y&&u.virtual.enabled?(y.slides=t,y.update(!0)):r.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),v&&S.init()&&S.update(!0),w&&(e.controller.control=u.controller.control),p&&(l&&(u.pagination.el=l),f.init(),f.render(),f.update()),h&&(o&&(u.scrollbar.el=o),d.init(),d.updateSize(),d.setTranslate()),m&&(i&&(u.navigation.nextEl=i),a&&(u.navigation.prevEl=a),c.init(),c.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),e.update()}function d8(e,t,n){if(!n)return null;const r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`};return t.filter((i,a)=>a>=n.from&&a<=n.to).map(i=>X.cloneElement(i,{swiper:e,style:r}))}const p8=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function vi(e,t){return typeof window>"u"?j.useEffect(e,t):j.useLayoutEffect(e,t)}const h8=j.createContext(null),m8=j.createContext(null);function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{S(!y)};Object.assign(E.on,{_containerClasses(z,F){f(F)}});const me=()=>{if(Object.assign(E.on,_),s=!0,p.current=new Qn(E),p.current.loopCreate=()=>{},p.current.loopDestroy=()=>{},E.loop&&(p.current.loopedSlides=g0(R,E)),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=R;const z={cache:!1,slides:R,renderExternal:d,renderExternalUpdate:!1};mn(p.current.params.virtual,z),mn(p.current.originalParams.virtual,z)}};w.current||me(),p.current&&p.current.on("_beforeBreakpoint",ae);const ce=()=>{s||!_||!p.current||Object.keys(_).forEach(z=>{p.current.on(z,_[z])})},ne=()=>{!_||!p.current||Object.keys(_).forEach(z=>{p.current.off(z,_[z])})};j.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",ae)}),j.useEffect(()=>{!v.current&&p.current&&(p.current.emitSlidesClasses(),v.current=!0)}),vi(()=>{if(t&&(t.current=w.current),!!w.current)return p.current.destroyed&&me(),s8({el:w.current,nextEl:g.current,prevEl:x.current,paginationEl:C.current,scrollbarEl:k.current,swiper:p.current},E),o&&o(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),vi(()=>{ce();const z=u8(D,h.current,R,m.current,F=>F.key);return h.current=D,m.current=R,z.length&&p.current&&!p.current.destroyed&&f8({swiper:p.current,slides:R,passedParams:D,changedParams:z,nextEl:g.current,prevEl:x.current,scrollbarEl:k.current,paginationEl:C.current}),()=>{ne()}}),vi(()=>{p8(p.current)},[c]);function M(){return E.virtual?d8(p.current,R,c):!E.loop||p.current&&p.current.destroyed?R.map(z=>X.cloneElement(z,{swiper:p.current})):l8(p.current,R,E)}return X.createElement(r,kl({ref:w,className:h0(`${u}${n?` ${n}`:""}`)},O),X.createElement(m8.Provider,{value:p.current},K["container-start"],X.createElement(i,{className:"swiper-wrapper"},K["wrapper-start"],M(),K["wrapper-end"]),f0(E)&&X.createElement(X.Fragment,null,X.createElement("div",{ref:x,className:"swiper-button-prev"}),X.createElement("div",{ref:g,className:"swiper-button-next"})),p0(E)&&X.createElement("div",{ref:k,className:"swiper-scrollbar"}),d0(E)&&X.createElement("div",{ref:C,className:"swiper-pagination"}),K["container-end"]))});w0.displayName="Swiper";function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(t&&(t.current=u.current),!(!u.current||!a)){if(a.destroyed){f!=="swiper-slide"&&c("swiper-slide");return}return a.on("_slideClass",d),()=>{a&&a.off("_slideClass",d)}}}),vi(()=>{a&&u.current&&!a.destroyed&&c(a.getSlideClasses(u.current))},[a]);const y={isActive:f.indexOf("swiper-slide-active")>=0||f.indexOf("swiper-slide-duplicate-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isDuplicate:f.indexOf("swiper-slide-duplicate")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0||f.indexOf("swiper-slide-duplicate-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0||f.indexOf("swiper-slide-duplicate-next")>=0},S=()=>typeof r=="function"?r(y):r;return X.createElement(n,El({ref:u,className:h0(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l},s),X.createElement(h8.Provider,{value:y},o?X.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},S()):S()))});S0.displayName="SwiperSlide";Qn.use([c0,a8]);const g8=()=>{const{currentColor:e,serviceData:t,t:n}=ot();return b.jsxs("div",{className:"activeSection w-screen min-h-screen mx-auto md:w-4/5 flex flex-col pt-10",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"relative mb-10",children:[b.jsx("h3",{className:"text-xl absolute left-1/2 -translate-x-1/2 z-10 rtl:font-TitrPlus",children:n("skills")}),b.jsx("span",{style:{background:e},className:"left-1/2 -top-1.5 -translate-x-1/2 rounded-full absolute w-8 h-8"})]}),b.jsx("h1",{className:"text-2xl md:text-4xl my-5 text-center rlt:font-casablanca ltr:font-summer",children:n("seeSkills")}),b.jsx("div",{style:{background:e},className:"w-3/5 md:w-2/5 mx-auto h-1",children:b.jsxs("div",{className:"relative bg-main-bg dark:bg-main-dark-bg w-10 h-1 left-2/4 -translate-x-2/4 rtl:-left-2/4 rtl:translate-x-2/4",children:[b.jsx("span",{className:"absolute rounded-full rtl:mx-0 rtl:left-2 w-2 h-1 mx-2 bg-black dark:bg-white"}),b.jsx("span",{className:"absolute rounded-full rtl:mx-0 rtl:left-6 left-4 w-2 h-1 mx-2 bg-black dark:bg-white"})]})})]}),b.jsx(w0,{modules:[c0],pagination:{clickable:!0},style:{direction:"ltr"},className:"mt-20 h-72 w-4/5 md:w-full",spaceBetween:20,slidesPerView:4,autoplay:{delay:1500,disableOnInteraction:!1},breakpoints:{360:{width:360,slidesPerView:1},768:{width:768,slidesPerView:2},900:{width:900,slidesPerView:3},1100:{width:1100,slidesPerView:4}},children:t.map(({icon:r,skill:i,description:a})=>b.jsx(S0,{children:b.jsxs("div",{className:"item border-black dark:border-white border-2 p-3 w-10/12 md:w-60 h-4/5 flex flex-col gap-y-4",children:[b.jsxs("style",{children:[`.item:hover { + background: ${e} !important;}`,`.swiper-pagination-bullet { + background-color: transparent; + border:${localStorage.getItem("ThemeMode")=="dark"?"1px solid white":"1px solid black"} ; + opacity:1; + padding:.3rem; + }`,`.swiper-pagination-bullet-active { + background-color: ${e} !important; + box-shadow:0 0 .5rem ${e} , 0 0 1rem ${e}; + }`,`.item:hover .description { + color:lightgray; + }`]}),b.jsx("h2",{className:"text-xl",children:r}),b.jsx("h3",{className:"text-xl font-summer",children:i}),b.jsx("p",{style:{direction:localStorage.getItem("currentLang")==="fa"?"rtl":"ltr"},className:"description text-sm text-gray-400",children:a})]})},i))})]})},Ii={_origin:"https://api.emailjs.com"},v8=(e,t="https://api.emailjs.com")=>{Ii._userID=e,Ii._origin=t},x0=(e,t,n)=>{if(!e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0};class rd{constructor(t){this.status=t?t.status:0,this.text=t?t.responseText:"Network Error"}}const b0=(e,t,n={})=>new Promise((r,i)=>{const a=new XMLHttpRequest;a.addEventListener("load",({target:o})=>{const l=new rd(o);l.status===200||l.text==="OK"?r(l):i(l)}),a.addEventListener("error",({target:o})=>{i(new rd(o))}),a.open("POST",Ii._origin+e,!0),Object.keys(n).forEach(o=>{a.setRequestHeader(o,n[o])}),a.send(t)}),y8=(e,t,n,r)=>{const i=r||Ii._userID;return x0(i,e,t),b0("/api/v1.0/email/send",JSON.stringify({lib_version:"3.11.0",user_id:i,service_id:e,template_id:t,template_params:n}),{"Content-type":"application/json"})},w8=e=>{let t;if(typeof e=="string"?t=document.querySelector(e):t=e,!t||t.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return t},S8=(e,t,n,r)=>{const i=r||Ii._userID,a=w8(n);x0(i,e,t);const o=new FormData(a);return o.append("lib_version","3.11.0"),o.append("service_id",e),o.append("template_id",t),o.append("user_id",i),b0("/api/v1.0/email/send-form",o)},x8={init:v8,send:y8,sendForm:S8};const b8=()=>{const{currentColor:e,t}=ot(),[n,r]=j.useState(""),[i,a]=j.useState(""),o=j.useRef(),l=s=>{s.preventDefault(),a("activeLoading"),x8.sendForm("service_13d7qmo","template_gluyl7m",o.current,"srOSEOrJ89xFliQby").then(u=>{console.log(u.text),r("activeAlert"),a("")},u=>{console.log(u.text)}),r("")};return b.jsxs("div",{className:"flex items-start justify-center min-h-screen p-10 py-20 mx-auto activeSection lg:w-4/5 md:p-20 lg:p-10 md:gap-x-16 ",children:[b.jsxs("div",{className:"relative hidden lg:block lg:basis-1/3 h-92",children:[b.jsx("div",{style:{background:e,zIndex:"-1"},className:"absolute bottom-0 left-0 w-full h-full rounded-lg opacity-20"}),b.jsx("img",{className:"w-full h-full",src:Hx,alt:""})]}),b.jsxs("div",{className:"basis-full lg:basis-2/3",children:[b.jsxs("div",{className:"relative",children:[b.jsx("h2",{className:"absolute z-10 text-xl rtl:font-semibold rtl:font-TitrPlus ltr:font-summer",children:t("contact")}),b.jsx("span",{style:{background:e},className:"absolute w-10 h-10 rounded-full rtl:-right-4 -left-4 -top-2"})]}),b.jsx("h1",{className:"mt-10 mb-5 text-4xl font-semibold ltr:font-robotoBold rtl:font-casablanca ",children:t("getInTouch")}),b.jsx("div",{style:{background:e},className:"w-20 h-1 m-2 mb-4"}),b.jsx("p",{className:"text-sm text-gray-400",children:t("contactDescription")}),b.jsxs("div",{style:{background:e,left:localStorage.getItem("currentLang")==="fa"?"2rem":"80%"},className:`${n} alert text-md rtl:font-soltan rtl:font-semibold`,children:[t("messageSended"),b.jsx("span",{})]}),b.jsxs("form",{ref:o,onSubmit:l,children:[b.jsxs("div",{className:"flex flex-col w-full gap-4 my-10 md:flex-row",children:[b.jsxs("div",{className:"relative h-10 border-black md:basis-2/4 border-1 dark:border-white ",children:[b.jsx("label",{className:"px-6 flex items-center justify-center ltr:font-summer rtl:right-10 rtl:w-4 absolute left-4 -top-2.5 bg-main-bg dark:bg-main-dark-bg rtl:font-semibold text-sm",htmlFor:"name",children:t("yourName")}),b.jsx("input",{name:"user_name",style:{outlineColor:e},className:"w-full h-full p-4 text-red-400 bg-transparent valid:text-green-400",id:"name",type:"text",required:!0})]}),b.jsxs("div",{className:"relative h-10 border-black md:basis-2/4 border-1 dark:border-white ",children:[b.jsx("label",{className:"px-6 flex items-center justify-center ltr:font-summer rtl:right-10 rtl:w-4 absolute left-4 -top-2.5 bg-main-bg dark:bg-main-dark-bg rtl:font-semibold text-sm",htmlFor:"email",children:t("yourEmail")}),b.jsx("input",{name:"user_email",style:{outlineColor:e},className:"w-full h-full p-4 text-red-400 bg-transparent valid:text-green-400",type:"email",required:!0})]})]}),b.jsxs("div",{className:"relative",children:[b.jsx("label",{className:"px-6 flex items-center justify-center ltr:font-summer rtl:right-10 rtl:w-4 absolute left-4 -top-2.5 bg-main-bg dark:bg-main-dark-bg rtl:font-semibold text-sm",htmlFor:"textarea",children:t("yourMessage")}),b.jsx("textarea",{name:"message",style:{outlineColor:e},className:"w-full p-4 bg-transparent border-black resize-y h-36 border-1 dark:border-white",id:"textarea",cols:"30",rows:"10"})]}),b.jsx("input",{type:"submit",style:{background:e},className:`${i} loading px-6 py-3 mt-4 mb-16 font-semibold cursor-pointer hover:shadow-md dark:shadow-white/25 shadow-black`,value:t("sendMessage")})]})]})]})};const C8=Cs.createRoot(document.getElementById("root")),k8=uv([{path:"/",element:b.jsx(fx,{}),errorElement:b.jsx(qS,{}),children:[{path:"/home",element:b.jsx(Gx,{})},{path:"/about",element:b.jsx(Yx,{})},{path:"/service",element:b.jsx(g8,{})},{path:"/portfolio",element:b.jsx(t3,{})},{path:"/contact",element:b.jsx(b8,{})}]}]);C8.render(b.jsx(JS,{children:b.jsx(ev,{router:k8})}));export{b as j,ot as u};