(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&a(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(u){if(u.ep)return;u.ep=!0;const d=s(u);fetch(u.href,d)}})();var Vl={exports:{}},Lr={},Hl={exports:{}},J={};/** * @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 Qu;function Pd(){if(Qu)return J;Qu=1;var f=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),E=Symbol.iterator;function z(v){return v===null||typeof v!="object"?null:(v=E&&v[E]||v["@@iterator"],typeof v=="function"?v:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,V={};function Q(v,N,q){this.props=v,this.context=N,this.refs=V,this.updater=q||F}Q.prototype.isReactComponent={},Q.prototype.setState=function(v,N){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,N,"setState")},Q.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ye(){}ye.prototype=Q.prototype;function se(v,N,q){this.props=v,this.context=N,this.refs=V,this.updater=q||F}var fe=se.prototype=new ye;fe.constructor=se,j(fe,Q.prototype),fe.isPureReactComponent=!0;var ee=Array.isArray,ve=Object.prototype.hasOwnProperty,ke={current:null},ce={key:!0,ref:!0,__self:!0,__source:!0};function ne(v,N,q){var X,b={},oe=null,de=null;if(N!=null)for(X in N.ref!==void 0&&(de=N.ref),N.key!==void 0&&(oe=""+N.key),N)ve.call(N,X)&&!ce.hasOwnProperty(X)&&(b[X]=N[X]);var ae=arguments.length-2;if(ae===1)b.children=q;else if(1>>1,N=T[v];if(0>>1;vu(b,D))oeu(de,b)?(T[v]=de,T[oe]=D,v=oe):(T[v]=b,T[X]=D,v=X);else if(oeu(de,D))T[v]=de,T[oe]=D,v=oe;else break e}}return H}function u(T,H){var D=T.sortIndex-H.sortIndex;return D!==0?D:T.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;f.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();f.unstable_now=function(){return h.now()-m}}var S=[],x=[],L=1,E=null,z=3,F=!1,j=!1,V=!1,Q=typeof setTimeout=="function"?setTimeout:null,ye=typeof clearTimeout=="function"?clearTimeout:null,se=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function fe(T){for(var H=s(x);H!==null;){if(H.callback===null)a(x);else if(H.startTime<=T)a(x),H.sortIndex=H.expirationTime,o(S,H);else break;H=s(x)}}function ee(T){if(V=!1,fe(T),!j)if(s(S)!==null)j=!0,he(ve);else{var H=s(x);H!==null&&ie(ee,H.startTime-T)}}function ve(T,H){j=!1,V&&(V=!1,ye(ne),ne=-1),F=!0;var D=z;try{for(fe(H),E=s(S);E!==null&&(!(E.expirationTime>H)||T&&!Re());){var v=E.callback;if(typeof v=="function"){E.callback=null,z=E.priorityLevel;var N=v(E.expirationTime<=H);H=f.unstable_now(),typeof N=="function"?E.callback=N:E===s(S)&&a(S),fe(H)}else a(S);E=s(S)}if(E!==null)var q=!0;else{var X=s(x);X!==null&&ie(ee,X.startTime-H),q=!1}return q}finally{E=null,z=D,F=!1}}var ke=!1,ce=null,ne=-1,re=5,Z=-1;function Re(){return!(f.unstable_now()-ZT||125v?(T.sortIndex=D,o(x,T),s(S)===null&&T===s(x)&&(V?(ye(ne),ne=-1):V=!0,ie(ee,D-v))):(T.sortIndex=N,o(S,T),j||F||(j=!0,he(ve))),T},f.unstable_shouldYield=Re,f.unstable_wrapCallback=function(T){var H=z;return function(){var D=z;z=H;try{return T.apply(this,arguments)}finally{z=D}}}}(Wl)),Wl}var Ju;function Td(){return Ju||(Ju=1,Kl.exports=Rd()),Kl.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 Zu;function zd(){if(Zu)return Xe;Zu=1;var f=Jl(),o=Td();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S=Object.prototype.hasOwnProperty,x=/^[: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]*$/,L={},E={};function z(e){return S.call(E,e)?!0:S.call(L,e)?!1:x.test(e)?E[e]=!0:(L[e]=!0,!1)}function F(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 j(e,t,n,r){if(t===null||typeof t>"u"||F(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 V(e,t,n,r,i,l,c){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=l,this.removeEmptyString=c}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new V(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){Q[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var ye=/[\-:]([a-z])/g;function se(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(ye,se);Q[t]=new V(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(ye,se);Q[t]=new V(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(ye,se);Q[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function fe(e,t,n,r){var i=Q.hasOwnProperty(t)?Q[t]:null;(i!==null?i.type!==0:r||!(2p||i[c]!==l[p]){var g=` `+i[c].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),g}while(1<=c&&0<=p);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function b(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=X(e.type,!1),e;case 11:return e=X(e.type.render,!1),e;case 1:return e=X(e.type,!0),e;default:return""}}function oe(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 ce:return"Fragment";case ke:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case we:return"Suspense";case Ce:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Re:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case rt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Je:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case he:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}function de(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 oe(t);case 8:return t===ne?"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 ae(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Se(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Se(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){r=""+c,l.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tr(e){e._valueTracker||(e._valueTracker=Ze(e))}function Zl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Se(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zr(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 Yi(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ae(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 es(e,t){t=t.checked,t!=null&&fe(e,"checked",t,!1)}function Gi(e,t){es(e,t);var n=ae(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")?qi(e,t.type,n):t.hasOwnProperty("defaultValue")&&qi(e,t.type,ae(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ts(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 qi(e,t,n){(t!=="number"||zr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vn=Array.isArray;function dn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={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},Rc=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){Rc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function ss(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function as(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ss(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Tc=D({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 Zi(e,t){if(t){if(Tc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function bi(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 eo=null;function to(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var no=null,pn=null,hn=null;function us(e){if(e=fr(e)){if(typeof no!="function")throw Error(s(280));var t=e.stateNode;t&&(t=ni(t),no(e.stateNode,e.type,t))}}function cs(e){pn?hn?hn.push(e):hn=[e]:pn=e}function fs(){if(pn){var e=pn,t=hn;if(hn=pn=null,us(e),t)for(e=0;e>>=0,e===0?32:31-(Hc(e)/Bc|0)|0}var Mr=64,Ur=4194304;function Yn(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 Ar(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,c=n&268435455;if(c!==0){var p=c&~i;p!==0?r=Yn(p):(l&=c,l!==0&&(r=Yn(l)))}else c=n&~i,c!==0?r=Yn(c):l!==0&&(r=Yn(l));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function Yc(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=nr),Us=" ",As=!1;function Vs(e,t){switch(e){case"keyup":return kf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yn=!1;function Ef(e,t){switch(e){case"compositionend":return Hs(t);case"keypress":return t.which!==32?null:(As=!0,Us);case"textInput":return e=t.data,e===Us&&As?null:e;default:return null}}function Nf(e,t){if(yn)return e==="compositionend"||!xo&&Vs(e,t)?(e=js(),Wr=go=Dt=null,yn=!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=qs(n)}}function Js(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Js(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zs(){for(var e=window,t=zr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zr(e.document)}return t}function Eo(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 If(e){var t=Zs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Js(n.ownerDocument.documentElement,n)){if(r!==null&&Eo(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,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Xs(n,l);var c=Xs(n,r);i&&c&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.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,vn=null,No=null,lr=null,Lo=!1;function bs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||vn==null||vn!==zr(r)||(r=vn,"selectionStart"in r&&Eo(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}),lr&&or(lr,r)||(lr=r,r=br(No,"onSelect"),0Cn||(e.current=Mo[Cn],Mo[Cn]=null,Cn--)}function pe(e,t){Cn++,Mo[Cn]=e.current,e.current=t}var At={},Me=Ut(At),We=Ut(!1),bt=At;function En(e,t){var n=e.type.contextTypes;if(!n)return At;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qe(e){return e=e.childContextTypes,e!=null}function ri(){me(We),me(Me)}function ha(e,t,n){if(Me.current!==At)throw Error(s(168));pe(Me,t),pe(We,n)}function ga(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(s(108,de(e)||"Unknown",i));return D({},n,r)}function ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||At,bt=Me.current,pe(Me,e),pe(We,We.current),!0}function ma(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=ga(e,t,bt),r.__reactInternalMemoizedMergedChildContext=e,me(We),me(Me),pe(Me,e)):me(We),pe(We,n)}var Nt=null,oi=!1,Uo=!1;function ya(e){Nt===null?Nt=[e]:Nt.push(e)}function Qf(e){oi=!0,ya(e)}function Vt(){if(!Uo&&Nt!==null){Uo=!0;var e=0,t=ue;try{var n=Nt;for(ue=1;e>=c,i-=c,Lt=1<<32-ct(t)+i|n<Y?(Fe=W,W=null):Fe=W.sibling;var le=P(w,W,k[Y],R);if(le===null){W===null&&(W=Fe);break}e&&W&&le.alternate===null&&t(w,W),y=l(le,y,Y),K===null?A=le:K.sibling=le,K=le,W=Fe}if(Y===k.length)return n(w,W),xe&&tn(w,Y),A;if(W===null){for(;YY?(Fe=W,W=null):Fe=W.sibling;var Xt=P(w,W,le.value,R);if(Xt===null){W===null&&(W=Fe);break}e&&W&&Xt.alternate===null&&t(w,W),y=l(Xt,y,Y),K===null?A=Xt:K.sibling=Xt,K=Xt,W=Fe}if(le.done)return n(w,W),xe&&tn(w,Y),A;if(W===null){for(;!le.done;Y++,le=k.next())le=O(w,le.value,R),le!==null&&(y=l(le,y,Y),K===null?A=le:K.sibling=le,K=le);return xe&&tn(w,Y),A}for(W=r(w,W);!le.done;Y++,le=k.next())le=I(W,w,Y,le.value,R),le!==null&&(e&&le.alternate!==null&&W.delete(le.key===null?Y:le.key),y=l(le,y,Y),K===null?A=le:K.sibling=le,K=le);return e&&W.forEach(function(Ld){return t(w,Ld)}),xe&&tn(w,Y),A}function _e(w,y,k,R){if(typeof k=="object"&&k!==null&&k.type===ce&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case ve:e:{for(var A=k.key,K=y;K!==null;){if(K.key===A){if(A=k.type,A===ce){if(K.tag===7){n(w,K.sibling),y=i(K,k.props.children),y.return=w,w=y;break e}}else if(K.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===he&&Ca(A)===K.type){n(w,K.sibling),y=i(K,k.props),y.ref=dr(w,K,k),y.return=w,w=y;break e}n(w,K);break}else t(w,K);K=K.sibling}k.type===ce?(y=cn(k.props.children,w.mode,R,k.key),y.return=w,w=y):(R=ji(k.type,k.key,k.props,null,w.mode,R),R.ref=dr(w,y,k),R.return=w,w=R)}return c(w);case ke:e:{for(K=k.key;y!==null;){if(y.key===K)if(y.tag===4&&y.stateNode.containerInfo===k.containerInfo&&y.stateNode.implementation===k.implementation){n(w,y.sibling),y=i(y,k.children||[]),y.return=w,w=y;break e}else{n(w,y);break}else t(w,y);y=y.sibling}y=Dl(k,w.mode,R),y.return=w,w=y}return c(w);case he:return K=k._init,_e(w,y,K(k._payload),R)}if(Vn(k))return M(w,y,k,R);if(H(k))return U(w,y,k,R);ui(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,y!==null&&y.tag===6?(n(w,y.sibling),y=i(y,k),y.return=w,w=y):(n(w,y),y=Fl(k,w.mode,R),y.return=w,w=y),c(w)):n(w,y)}return _e}var _n=Ea(!0),Na=Ea(!1),ci=Ut(null),fi=null,On=null,Wo=null;function Qo(){Wo=On=fi=null}function Yo(e){var t=ci.current;me(ci),e._currentValue=t}function Go(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rn(e,t){fi=e,Wo=On=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Wo!==e)if(e={context:e,memoizedValue:t,next:null},On===null){if(fi===null)throw Error(s(308));On=e,fi.dependencies={lanes:0,firstContext:e}}else On=On.next=e;return t}var nn=null;function qo(e){nn===null?nn=[e]:nn.push(e)}function La(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qo(t)):(n.next=i.next,i.next=n),t.interleaved=n,_t(e,r)}function _t(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ht=!1;function Xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(te&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_t(e,n)}return i=r.interleaved,i===null?(t.next=t,qo(r)):(t.next=i.next,i.next=t),r.interleaved=t,_t(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uo(e,n)}}function _a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=c:l=l.next=c,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(e,t,n,r){var i=e.updateQueue;Ht=!1;var l=i.firstBaseUpdate,c=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var g=p,C=g.next;g.next=null,c===null?l=C:c.next=C,c=g;var _=e.alternate;_!==null&&(_=_.updateQueue,p=_.lastBaseUpdate,p!==c&&(p===null?_.firstBaseUpdate=C:p.next=C,_.lastBaseUpdate=g))}if(l!==null){var O=i.baseState;c=0,_=C=g=null,p=l;do{var P=p.lane,I=p.eventTime;if((r&P)===P){_!==null&&(_=_.next={eventTime:I,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var M=e,U=p;switch(P=t,I=n,U.tag){case 1:if(M=U.payload,typeof M=="function"){O=M.call(I,O,P);break e}O=M;break e;case 3:M.flags=M.flags&-65537|128;case 0:if(M=U.payload,P=typeof M=="function"?M.call(I,O,P):M,P==null)break e;O=D({},O,P);break e;case 2:Ht=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,P=i.effects,P===null?i.effects=[p]:P.push(p))}else I={eventTime:I,lane:P,tag:p.tag,payload:p.payload,callback:p.callback,next:null},_===null?(C=_=I,g=O):_=_.next=I,c|=P;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;P=p,p=P.next,P.next=null,i.lastBaseUpdate=P,i.shared.pending=null}}while(!0);if(_===null&&(g=O),i.baseState=g,i.firstBaseUpdate=C,i.lastBaseUpdate=_,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);ln|=c,e.lanes=c,e.memoizedState=O}}function Oa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=tl.transition;tl.transition={};try{e(!1),t()}finally{ue=n,tl.transition=r}}function Ga(){return st().memoizedState}function Xf(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Xa(t,n);else if(n=La(e,t,n,r),n!==null){var i=Ke();mt(n,e,r,i),Ja(n,t,r)}}function Jf(e,t,n){var r=Yt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Xa(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var c=t.lastRenderedState,p=l(c,n);if(i.hasEagerState=!0,i.eagerState=p,ft(p,c)){var g=t.interleaved;g===null?(i.next=i,qo(t)):(i.next=g.next,g.next=i),t.interleaved=i;return}}catch{}finally{}n=La(e,t,i,r),n!==null&&(i=Ke(),mt(n,e,r,i),Ja(n,t,r))}}function qa(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function Xa(e,t){mr=mi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uo(e,n)}}var wi={readContext:lt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Zf={readContext:lt,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yi(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();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=Xf.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:Ma,useDebugValue:al,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=qf.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,i=St();if(xe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ie===null)throw Error(s(349));(on&30)!==0||ja(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Aa(Fa.bind(null,r,l,e),[e]),r.flags|=2048,wr(9,Ia.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=St(),t=Ie.identifierPrefix;if(xe){var n=Pt,r=Lt;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[vt]=t,e[cr]=r,yu(e,t,!1,!1),t.stateNode=e;e:{switch(c=bi(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;iFn&&(t.flags|=128,r=!0,Sr(l,!1),t.lanes=4194304)}else{if(!r)if(e=hi(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!xe)return Ae(t),null}else 2*Pe()-l.renderingStartTime>Fn&&n!==1073741824&&(t.flags|=128,r=!0,Sr(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(n=l.last,n!==null?n.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Pe(),t.sibling=null,n=Ee.current,pe(Ee,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return zl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(nt&1073741824)!==0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function ld(e,t){switch(Vo(t),t.tag){case 1:return Qe(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(),me(We),me(Me),el(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Zo(t),null;case 13:if(me(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Ee),null;case 4:return Tn(),null;case 10:return Yo(t.type._context),null;case 22:case 23:return zl(),null;case 24:return null;default:return null}}var Ci=!1,Ve=!1,sd=typeof WeakSet=="function"?WeakSet:Set,$=null;function jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function Sl(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Su=!1;function ad(e,t){if(zo=Br,e=Zs(),Eo(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var c=0,p=-1,g=-1,C=0,_=0,O=e,P=null;t:for(;;){for(var I;O!==n||i!==0&&O.nodeType!==3||(p=c+i),O!==l||r!==0&&O.nodeType!==3||(g=c+r),O.nodeType===3&&(c+=O.nodeValue.length),(I=O.firstChild)!==null;)P=O,O=I;for(;;){if(O===e)break t;if(P===n&&++C===i&&(p=c),P===l&&++_===r&&(g=c),(I=O.nextSibling)!==null)break;O=P,P=O.parentNode}O=I}n=p===-1||g===-1?null:{start:p,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},Br=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var M=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var U=M.memoizedProps,_e=M.memoizedState,w=t.stateNode,y=w.getSnapshotBeforeUpdate(t.elementType===t.type?U:pt(t.type,U),_e);w.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(R){Le(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return M=Su,Su=!1,M}function xr(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 l=i.destroy;i.destroy=void 0,l!==void 0&&Sl(t,n,l)}i=i.next}while(i!==r)}}function Ei(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 xl(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 xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vt],delete t[cr],delete t[$o],delete t[Kf],delete t[Wf])),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 ku(e){return e.tag===5||e.tag===3||e.tag===4}function Cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ku(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 kl(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=ti));else if(r!==4&&(e=e.child,e!==null))for(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}function Cl(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(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}var De=null,ht=!1;function Kt(e,t,n){for(n=n.child;n!==null;)Eu(e,t,n),n=n.sibling}function Eu(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount($r,n)}catch{}switch(n.tag){case 5:Ve||jn(n,t);case 6:var r=De,i=ht;De=null,Kt(e,t,n),De=r,ht=i,De!==null&&(ht?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(ht?(e=De,n=n.stateNode,e.nodeType===8?Do(e.parentNode,n):e.nodeType===1&&Do(e,n),bn(e)):Do(De,n.stateNode));break;case 4:r=De,i=ht,De=n.stateNode.containerInfo,ht=!0,Kt(e,t,n),De=r,ht=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,c=l.destroy;l=l.tag,c!==void 0&&((l&2)!==0||(l&4)!==0)&&Sl(n,t,c),i=i.next}while(i!==r)}Kt(e,t,n);break;case 1:if(!Ve&&(jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(p){Le(n,t,p)}Kt(e,t,n);break;case 21:Kt(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,Kt(e,t,n),Ve=r):Kt(e,t,n);break;default:Kt(e,t,n)}}function Nu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sd),t.forEach(function(r){var i=yd.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=c),r&=~l}if(r=i,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cd(r/1960))-r,10e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Oi=0,(te&6)!==0)throw Error(s(331));var i=te;for(te|=4,$=e.current;$!==null;){var l=$,c=l.child;if(($.flags&16)!==0){var p=l.deletions;if(p!==null){for(var g=0;gPe()-Ll?an(e,0):Nl|=n),qe(e,t)}function Mu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ur,Ur<<=1,(Ur&130023424)===0&&(Ur=4194304)));var n=Ke();e=_t(e,t),e!==null&&(Gn(e,t,n),qe(e,n))}function md(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mu(e,n)}function yd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Mu(e,n)}var Uu;Uu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ye=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ye=!1,id(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,xe&&(t.flags&1048576)!==0&&va(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ki(e,t),e=t.pendingProps;var i=En(t,Me.current);Rn(t,n),i=rl(null,t,r,e,i,n);var l=il();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,Qe(r)?(l=!0,ii(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xo(t),i.updater=Si,t.stateNode=i,i._reactInternals=t,cl(t,r,e,n),t=hl(null,t,r,!0,l,n)):(t.tag=0,xe&&l&&Ao(t),Be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ki(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=wd(r),e=pt(r,e),i){case 0:t=pl(null,t,r,e,n);break e;case 1:t=fu(null,t,r,e,n);break e;case 11:t=lu(null,t,r,e,n);break e;case 14:t=su(null,t,r,pt(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),pl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),fu(e,t,r,i,n);case 3:e:{if(du(t),e===null)throw Error(s(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Pa(e,t),pi(t,r,null,n);var c=t.memoizedState;if(r=c.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=zn(Error(s(423)),t),t=pu(e,t,r,n,i);break e}else if(r!==i){i=zn(Error(s(424)),t),t=pu(e,t,r,n,i);break e}else for(tt=Mt(t.stateNode.containerInfo.firstChild),et=t,xe=!0,dt=null,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pn(),r===i){t=Rt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return Ra(t),e===null&&Bo(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,c=i.children,Io(r,i)?c=null:l!==null&&Io(r,l)&&(t.flags|=32),cu(e,t),Be(e,t,c,n),t.child;case 6:return e===null&&Bo(t),null;case 13:return hu(e,t,n);case 4:return Jo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_n(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),lu(e,t,r,i,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,c=i.value,pe(ci,r._currentValue),r._currentValue=c,l!==null)if(ft(l.value,c)){if(l.children===i.children&&!We.current){t=Rt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var p=l.dependencies;if(p!==null){c=l.child;for(var g=p.firstContext;g!==null;){if(g.context===r){if(l.tag===1){g=Ot(-1,n&-n),g.tag=2;var C=l.updateQueue;if(C!==null){C=C.shared;var _=C.pending;_===null?g.next=g:(g.next=_.next,_.next=g),C.pending=g}}l.lanes|=n,g=l.alternate,g!==null&&(g.lanes|=n),Go(l.return,n,t),p.lanes|=n;break}g=g.next}}else if(l.tag===10)c=l.type===t.type?null:l.child;else if(l.tag===18){if(c=l.return,c===null)throw Error(s(341));c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),Go(c,n,t),c=l.sibling}else c=l.child;if(c!==null)c.return=l;else for(c=l;c!==null;){if(c===t){c=null;break}if(l=c.sibling,l!==null){l.return=c.return,c=l;break}c=c.return}l=c}Be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Rn(t,n),i=lt(i),r=r(i),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,i=pt(r,t.pendingProps),i=pt(r.type,i),su(e,t,r,i,n);case 15:return au(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),ki(e,t),t.tag=1,Qe(r)?(e=!0,ii(t)):e=!1,Rn(t,n),ba(t,r,i),cl(t,r,i,n),hl(null,t,r,!0,e,n);case 19:return mu(e,t,n);case 22:return uu(e,t,n)}throw Error(s(156,t.tag))};function Au(e,t){return ws(e,t)}function vd(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 ut(e,t,n,r){return new vd(e,t,n,r)}function Il(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wd(e){if(typeof e=="function")return Il(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rt)return 11;if(e===Je)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=ut(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 ji(e,t,n,r,i,l){var c=2;if(r=e,typeof e=="function")Il(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case ce:return cn(n.children,i,l,t);case ne:c=8,i|=8;break;case re:return e=ut(12,n,t,i|2),e.elementType=re,e.lanes=l,e;case we:return e=ut(13,n,t,i),e.elementType=we,e.lanes=l,e;case Ce:return e=ut(19,n,t,i),e.elementType=Ce,e.lanes=l,e;case ie:return Ii(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:c=10;break e;case Re:c=9;break e;case rt:c=11;break e;case Je:c=14;break e;case he:c=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=ut(c,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function cn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Ii(e,t,n,r){return e=ut(22,e,r,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Dl(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sd(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=ao(0),this.expirationTimes=ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $l(e,t,n,r,i,l,c,p,g){return e=new Sd(e,t,n,p,g),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ut(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xo(l),e}function xd(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(o){console.error(o)}}return f(),Bl.exports=zd(),Bl.exports}var ec;function Id(){if(ec)return Vi;ec=1;var f=jd();return Vi.createRoot=f.createRoot,Vi.hydrateRoot=f.hydrateRoot,Vi}var Fd=Id();const Dd=(f,o,s,a)=>{var d,h,m,S;const u=[s,{code:o,...a||{}}];if((h=(d=f==null?void 0:f.services)==null?void 0:d.logger)!=null&&h.forward)return f.services.logger.forward(u,"warn","react-i18next::",!0);fn(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),(S=(m=f==null?void 0:f.services)==null?void 0:m.logger)!=null&&S.warn?f.services.logger.warn(...u):console!=null&&console.warn&&console.warn(...u)},tc={},Yl=(f,o,s,a)=>{fn(s)&&tc[s]||(fn(s)&&(tc[s]=new Date),Dd(f,o,s,a))},xc=(f,o)=>()=>{if(f.isInitialized)o();else{const s=()=>{setTimeout(()=>{f.off("initialized",s)},0),o()};f.on("initialized",s)}},Gl=(f,o,s)=>{f.loadNamespaces(o,xc(f,s))},nc=(f,o,s,a)=>{if(fn(s)&&(s=[s]),f.options.preload&&f.options.preload.indexOf(o)>-1)return Gl(f,s,a);s.forEach(u=>{f.options.ns.indexOf(u)<0&&f.options.ns.push(u)}),f.loadLanguages(o,xc(f,a))},$d=(f,o,s={})=>!o.languages||!o.languages.length?(Yl(o,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:o.languages}),!0):o.hasLoadedNamespace(f,{lng:s.lng,precheck:(a,u)=>{var d;if(((d=s.bindI18n)==null?void 0:d.indexOf("languageChanging"))>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!u(a.isLanguageChangingTo,f))return!1}}),fn=f=>typeof f=="string",Md=f=>typeof f=="object"&&f!==null,Ud=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ad={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Vd=f=>Ad[f],Hd=f=>f.replace(Ud,Vd);let ql={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Hd};const Bd=(f={})=>{ql={...ql,...f}},Kd=()=>ql;let kc;const Wd=f=>{kc=f},Qd=()=>kc,Yd={type:"3rdParty",init(f){Bd(f.options.react),Wd(f)}},Gd=kt.createContext();class qd{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Xd=(f,o)=>{const s=kt.useRef();return kt.useEffect(()=>{s.current=f},[f,o]),s.current},Cc=(f,o,s,a)=>f.getFixedT(o,s,a),Jd=(f,o,s,a)=>kt.useCallback(Cc(f,o,s,a),[f,o,s,a]),Ec=(f,o={})=>{var ee,ve,ke,ce;const{i18n:s}=o,{i18n:a,defaultNS:u}=kt.useContext(Gd)||{},d=s||a||Qd();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new qd),!d){Yl(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ne=(Z,Re)=>fn(Re)?Re:Md(Re)&&fn(Re.defaultValue)?Re.defaultValue:Array.isArray(Z)?Z[Z.length-1]:Z,re=[ne,{},!1];return re.t=ne,re.i18n={},re.ready=!1,re}(ee=d.options.react)!=null&&ee.wait&&Yl(d,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h={...Kd(),...d.options.react,...o},{useSuspense:m,keyPrefix:S}=h;let x=u||((ve=d.options)==null?void 0:ve.defaultNS);x=fn(x)?[x]:x||["translation"],(ce=(ke=d.reportNamespaces).addUsedNamespaces)==null||ce.call(ke,x);const L=(d.isInitialized||d.initializedStoreOnce)&&x.every(ne=>$d(ne,d,h)),E=Jd(d,o.lng||null,h.nsMode==="fallback"?x:x[0],S),z=()=>E,F=()=>Cc(d,o.lng||null,h.nsMode==="fallback"?x:x[0],S),[j,V]=kt.useState(z);let Q=x.join();o.lng&&(Q=`${o.lng}${Q}`);const ye=Xd(Q),se=kt.useRef(!0);kt.useEffect(()=>{const{bindI18n:ne,bindI18nStore:re}=h;se.current=!0,!L&&!m&&(o.lng?nc(d,o.lng,x,()=>{se.current&&V(F)}):Gl(d,x,()=>{se.current&&V(F)})),L&&ye&&ye!==Q&&se.current&&V(F);const Z=()=>{se.current&&V(F)};return ne&&(d==null||d.on(ne,Z)),re&&(d==null||d.store.on(re,Z)),()=>{se.current=!1,d&&(ne==null||ne.split(" ").forEach(Re=>d.off(Re,Z))),re&&d&&re.split(" ").forEach(Re=>d.store.off(Re,Z))}},[d,Q]),kt.useEffect(()=>{se.current&&L&&V(z)},[d,S,L]);const fe=[j,d,L];if(fe.t=j,fe.i18n=d,fe.ready=L,L||!L&&!m)return fe;throw new Promise(ne=>{o.lng?nc(d,o.lng,x,()=>ne()):Gl(d,x,()=>ne())})},Zd=()=>{const{i18n:f,t:o}=Ec(),s=a=>{f.changeLanguage(a)};return B.jsxs("div",{className:"language-selector",children:[B.jsx("button",{onClick:()=>s("en"),className:f.language==="en"?"active":"",children:o("languageSelector.en")}),B.jsx("button",{onClick:()=>s("es"),className:f.language==="es"?"active":"",children:o("languageSelector.es")})]})},bd="/assets/what_is_criptocracia.png",ep="/assets/what_for_criptocracia.png",tp="/assets/why_important_criptocracia.png",np="/assets/project_goals_criptocracia.png",rp="/assets/technology_criptocracia.png",ip="/assets/fundamental_requirements_criptocracia.png",$n=({id:f,title:o,content:s,imageName:a,reverseLayout:u=!1,customContent:d})=>B.jsxs("section",{id:f,className:`section ${u?"reverse":""}`,children:[B.jsxs("div",{className:"section-content",children:[B.jsx("h2",{children:o}),d||B.jsx("div",{dangerouslySetInnerHTML:{__html:s}})]}),B.jsx("div",{className:"section-image",children:B.jsx("img",{src:a,alt:o})})]});function op(){const{t:f}=Ec();return B.jsxs("div",{className:"App",children:[B.jsx(Zd,{}),B.jsxs("header",{className:"header",children:[B.jsx("div",{className:"gradient-bg"}),B.jsx("h1",{children:"Criptocracia"}),B.jsx("p",{children:f("subtitle")})]}),B.jsxs("main",{className:"main-content",children:[B.jsx($n,{id:"what-is",title:f("whatIs.title"),content:f("whatIs.content"),imageName:bd}),B.jsx($n,{id:"what-for",title:f("whatFor.title"),content:f("whatFor.content"),imageName:ep,reverseLayout:!0,customContent:B.jsxs(B.Fragment,{children:[B.jsx("p",{children:f("whatFor.content")}),B.jsx("p",{children:f("whatFor.bullets_title")}),(()=>{const o=f("whatFor.bullets",{returnObjects:!0});return B.jsx("ol",{className:"goals-list",children:o.map((s,a)=>B.jsx("li",{children:s},a))})})(),B.jsx("p",{children:f("whatFor.conclusion")})]})}),B.jsx($n,{id:"why-important",title:f("whyImportant.title"),content:f("whyImportant.content"),imageName:tp}),B.jsx($n,{id:"goals",title:f("goals.title"),content:f("goals.content"),imageName:np,reverseLayout:!0,customContent:B.jsxs(B.Fragment,{children:[B.jsx("p",{children:f("goals.content")}),B.jsx("h3",{children:f("goals.bullets_title")}),(()=>{const o=f("goals.bullets",{returnObjects:!0});return B.jsx("ol",{className:"goals-list",children:o.map((s,a)=>B.jsx("li",{children:s},a))})})(),B.jsx("p",{children:f("goals.conclusion")})]})}),B.jsx($n,{id:"technology",title:f("technology.title"),content:f("technology.content"),imageName:rp,customContent:B.jsxs(B.Fragment,{children:[B.jsx("p",{children:f("technology.content")}),B.jsx("h3",{children:f("technology.blindSignatures")}),B.jsx("p",{children:f("technology.blindSignaturesContent")}),B.jsx("h3",{children:f("technology.nostr")}),B.jsx("p",{children:f("technology.nostrContent")})]})}),B.jsx($n,{id:"requirements",title:f("requirements.title"),content:f("requirements.content"),imageName:ip,reverseLayout:!0,customContent:B.jsxs(B.Fragment,{children:[B.jsx("p",{children:f("requirements.content")}),(()=>{const o=f("requirements.bullets",{returnObjects:!0});return B.jsx("ul",{className:"requirements-list",children:o.map((s,a)=>B.jsx("li",{children:s},a))})})()]})})]}),B.jsx("footer",{className:"footer",children:B.jsxs("div",{className:"container",children:[B.jsx("p",{children:f("footer.copyright")}),B.jsx("a",{href:"https://github.com/grunch/criptocracia/",target:"_blank",rel:"noopener noreferrer",className:"github-link",children:f("footer.viewOnGithub")})]})})]})}const G=f=>typeof f=="string",Pr=()=>{let f,o;const s=new Promise((a,u)=>{f=a,o=u});return s.resolve=f,s.reject=o,s},rc=f=>f==null?"":""+f,lp=(f,o,s)=>{f.forEach(a=>{o[a]&&(s[a]=o[a])})},sp=/###/g,ic=f=>f&&f.indexOf("###")>-1?f.replace(sp,"."):f,oc=f=>!f||G(f),_r=(f,o,s)=>{const a=G(o)?o.split("."):o;let u=0;for(;u{const{obj:a,k:u}=_r(f,o,Object);if(a!==void 0||o.length===1){a[u]=s;return}let d=o[o.length-1],h=o.slice(0,o.length-1),m=_r(f,h,Object);for(;m.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),m=_r(f,h,Object),m!=null&&m.obj&&typeof m.obj[`${m.k}.${d}`]<"u"&&(m.obj=void 0);m.obj[`${m.k}.${d}`]=s},ap=(f,o,s,a)=>{const{obj:u,k:d}=_r(f,o,Object);u[d]=u[d]||[],u[d].push(s)},Bi=(f,o)=>{const{obj:s,k:a}=_r(f,o);if(s&&Object.prototype.hasOwnProperty.call(s,a))return s[a]},up=(f,o,s)=>{const a=Bi(f,s);return a!==void 0?a:Bi(o,s)},Nc=(f,o,s)=>{for(const a in o)a!=="__proto__"&&a!=="constructor"&&(a in f?G(f[a])||f[a]instanceof String||G(o[a])||o[a]instanceof String?s&&(f[a]=o[a]):Nc(f[a],o[a],s):f[a]=o[a]);return f},Mn=f=>f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const fp=f=>G(f)?f.replace(/[&<>"'\/]/g,o=>cp[o]):f;class dp{constructor(o){this.capacity=o,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(o){const s=this.regExpMap.get(o);if(s!==void 0)return s;const a=new RegExp(o);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(o,a),this.regExpQueue.push(o),a}}const pp=[" ",",","?","!",";"],hp=new dp(20),gp=(f,o,s)=>{o=o||"",s=s||"";const a=pp.filter(h=>o.indexOf(h)<0&&s.indexOf(h)<0);if(a.length===0)return!0;const u=hp.getRegExp(`(${a.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!u.test(f);if(!d){const h=f.indexOf(s);h>0&&!u.test(f.substring(0,h))&&(d=!0)}return d},Xl=(f,o,s=".")=>{if(!f)return;if(f[o])return Object.prototype.hasOwnProperty.call(f,o)?f[o]:void 0;const a=o.split(s);let u=f;for(let d=0;d-1&&Sf==null?void 0:f.replace("_","-"),mp={type:"logger",log(f){this.output("log",f)},warn(f){this.output("warn",f)},error(f){this.output("error",f)},output(f,o){var s,a;(a=(s=console==null?void 0:console[f])==null?void 0:s.apply)==null||a.call(s,console,o)}};class Ki{constructor(o,s={}){this.init(o,s)}init(o,s={}){this.prefix=s.prefix||"i18next:",this.logger=o||mp,this.options=s,this.debug=s.debug}log(...o){return this.forward(o,"log","",!0)}warn(...o){return this.forward(o,"warn","",!0)}error(...o){return this.forward(o,"error","")}deprecate(...o){return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(o,s,a,u){return u&&!this.debug?null:(G(o[0])&&(o[0]=`${a}${this.prefix} ${o[0]}`),this.logger[s](o))}create(o){return new Ki(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new Ki(this.logger,o)}}var Ct=new Ki;class Qi{constructor(){this.observers={}}on(o,s){return o.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const u=this.observers[a].get(s)||0;this.observers[a].set(s,u+1)}),this}off(o,s){if(this.observers[o]){if(!s){delete this.observers[o];return}this.observers[o].delete(s)}}emit(o,...s){this.observers[o]&&Array.from(this.observers[o].entries()).forEach(([u,d])=>{for(let h=0;h{for(let h=0;h-1&&this.options.ns.splice(s,1)}getResource(o,s,a,u={}){var x,L;const d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,h=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;o.indexOf(".")>-1?m=o.split("."):(m=[o,s],a&&(Array.isArray(a)?m.push(...a):G(a)&&d?m.push(...a.split(d)):m.push(a)));const S=Bi(this.data,m);return!S&&!s&&!a&&o.indexOf(".")>-1&&(o=m[0],s=m[1],a=m.slice(2).join(".")),S||!h||!G(a)?S:Xl((L=(x=this.data)==null?void 0:x[o])==null?void 0:L[s],a,d)}addResource(o,s,a,u,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let m=[o,s];a&&(m=m.concat(h?a.split(h):a)),o.indexOf(".")>-1&&(m=o.split("."),u=s,s=m[1]),this.addNamespaces(s),lc(this.data,m,u),d.silent||this.emit("added",o,s,a,u)}addResources(o,s,a,u={silent:!1}){for(const d in a)(G(a[d])||Array.isArray(a[d]))&&this.addResource(o,s,d,a[d],{silent:!0});u.silent||this.emit("added",o,s,a)}addResourceBundle(o,s,a,u,d,h={silent:!1,skipCopy:!1}){let m=[o,s];o.indexOf(".")>-1&&(m=o.split("."),u=a,a=s,s=m[1]),this.addNamespaces(s);let S=Bi(this.data,m)||{};h.skipCopy||(a=JSON.parse(JSON.stringify(a))),u?Nc(S,a,d):S={...S,...a},lc(this.data,m,S),h.silent||this.emit("added",o,s,a)}removeResourceBundle(o,s){this.hasResourceBundle(o,s)&&delete this.data[o][s],this.removeNamespaces(s),this.emit("removed",o,s)}hasResourceBundle(o,s){return this.getResource(o,s)!==void 0}getResourceBundle(o,s){return s||(s=this.options.defaultNS),this.getResource(o,s)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const s=this.getDataByLanguage(o);return!!(s&&Object.keys(s)||[]).find(u=>s[u]&&Object.keys(s[u]).length>0)}toJSON(){return this.data}}var Lc={processors:{},addPostProcessor(f){this.processors[f.name]=f},handle(f,o,s,a,u){return f.forEach(d=>{var h;o=((h=this.processors[d])==null?void 0:h.process(o,s,a,u))??o}),o}};const ac={},uc=f=>!G(f)&&typeof f!="boolean"&&typeof f!="number";class Wi extends Qi{constructor(o,s={}){super(),lp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ct.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o,s={interpolation:{}}){const a={...s};if(o==null)return!1;const u=this.resolve(o,a);return(u==null?void 0:u.res)!==void 0}extractFromKey(o,s){let a=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let d=s.ns||this.options.defaultNS||[];const h=a&&o.indexOf(a)>-1,m=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!gp(o,a,u);if(h&&!m){const S=o.match(this.interpolator.nestingRegexp);if(S&&S.length>0)return{key:o,namespaces:G(d)?[d]:d};const x=o.split(a);(a!==u||a===u&&this.options.ns.indexOf(x[0])>-1)&&(d=x.shift()),o=x.join(u)}return{key:o,namespaces:G(d)?[d]:d}}translate(o,s,a){let u=typeof s=="object"?{...s}:s;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(u={...u}),u||(u={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);const d=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:m,namespaces:S}=this.extractFromKey(o[o.length-1],u),x=S[S.length-1];let L=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;L===void 0&&(L=":");const E=u.lng||this.language,z=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((E==null?void 0:E.toLowerCase())==="cimode")return z?d?{res:`${x}${L}${m}`,usedKey:m,exactUsedKey:m,usedLng:E,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:`${x}${L}${m}`:d?{res:m,usedKey:m,exactUsedKey:m,usedLng:E,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:m;const F=this.resolve(o,u);let j=F==null?void 0:F.res;const V=(F==null?void 0:F.usedKey)||m,Q=(F==null?void 0:F.exactUsedKey)||m,ye=["[object Number]","[object Function]","[object RegExp]"],se=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,fe=!this.i18nFormat||this.i18nFormat.handleAsObject,ee=u.count!==void 0&&!G(u.count),ve=Wi.hasDefaultValue(u),ke=ee?this.pluralResolver.getSuffix(E,u.count,u):"",ce=u.ordinal&&ee?this.pluralResolver.getSuffix(E,u.count,{ordinal:!1}):"",ne=ee&&!u.ordinal&&u.count===0,re=ne&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${ke}`]||u[`defaultValue${ce}`]||u.defaultValue;let Z=j;fe&&!j&&ve&&(Z=re);const Re=uc(Z),rt=Object.prototype.toString.apply(Z);if(fe&&Z&&Re&&ye.indexOf(rt)<0&&!(G(se)&&Array.isArray(Z))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const we=this.options.returnedObjectHandler?this.options.returnedObjectHandler(V,Z,{...u,ns:S}):`key '${m} (${this.language})' returned an object instead of string.`;return d?(F.res=we,F.usedParams=this.getUsedParamsDetails(u),F):we}if(h){const we=Array.isArray(Z),Ce=we?[]:{},Je=we?Q:V;for(const he in Z)if(Object.prototype.hasOwnProperty.call(Z,he)){const ie=`${Je}${h}${he}`;ve&&!j?Ce[he]=this.translate(ie,{...u,defaultValue:uc(re)?re[he]:void 0,joinArrays:!1,ns:S}):Ce[he]=this.translate(ie,{...u,joinArrays:!1,ns:S}),Ce[he]===ie&&(Ce[he]=Z[he])}j=Ce}}else if(fe&&G(se)&&Array.isArray(j))j=j.join(se),j&&(j=this.extendTranslation(j,o,u,a));else{let we=!1,Ce=!1;!this.isValidLookup(j)&&ve&&(we=!0,j=re),this.isValidLookup(j)||(Ce=!0,j=m);const he=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ce?void 0:j,ie=ve&&re!==j&&this.options.updateMissing;if(Ce||we||ie){if(this.logger.log(ie?"updateKey":"missingKey",E,x,m,ie?re:j),h){const v=this.resolve(m,{...u,keySeparator:!1});v&&v.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.")}let T=[];const H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&H&&H[0])for(let v=0;v{var b;const X=ve&&q!==j?q:he;this.options.missingKeyHandler?this.options.missingKeyHandler(v,x,N,X,ie,u):(b=this.backendConnector)!=null&&b.saveMissing&&this.backendConnector.saveMissing(v,x,N,X,ie,u),this.emit("missingKey",v,x,N,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ee?T.forEach(v=>{const N=this.pluralResolver.getSuffixes(v,u);ne&&u[`defaultValue${this.options.pluralSeparator}zero`]&&N.indexOf(`${this.options.pluralSeparator}zero`)<0&&N.push(`${this.options.pluralSeparator}zero`),N.forEach(q=>{D([v],m+q,u[`defaultValue${q}`]||re)})}):D(T,m,re))}j=this.extendTranslation(j,o,u,F,a),Ce&&j===m&&this.options.appendNamespaceToMissingKey&&(j=`${x}${L}${m}`),(Ce||we)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${L}${m}`:m,we?j:void 0,u))}return d?(F.res=j,F.usedParams=this.getUsedParamsDetails(u),F):j}extendTranslation(o,s,a,u,d){var S,x;if((S=this.i18nFormat)!=null&&S.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const L=G(o)&&(((x=a==null?void 0:a.interpolation)==null?void 0:x.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let E;if(L){const F=o.match(this.interpolator.nestingRegexp);E=F&&F.length}let z=a.replace&&!G(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(z={...this.options.interpolation.defaultVariables,...z}),o=this.interpolator.interpolate(o,z,a.lng||this.language||u.usedLng,a),L){const F=o.match(this.interpolator.nestingRegexp),j=F&&F.length;E(d==null?void 0:d[0])===F[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${F[0]} in key: ${s[0]}`),null):this.translate(...F,s),a)),a.interpolation&&this.interpolator.reset()}const h=a.postProcess||this.options.postProcess,m=G(h)?[h]:h;return o!=null&&(m!=null&&m.length)&&a.applyPostProcessor!==!1&&(o=Lc.handle(m,o,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),o}resolve(o,s={}){let a,u,d,h,m;return G(o)&&(o=[o]),o.forEach(S=>{if(this.isValidLookup(a))return;const x=this.extractFromKey(S,s),L=x.key;u=L;let E=x.namespaces;this.options.fallbackNS&&(E=E.concat(this.options.fallbackNS));const z=s.count!==void 0&&!G(s.count),F=z&&!s.ordinal&&s.count===0,j=s.context!==void 0&&(G(s.context)||typeof s.context=="number")&&s.context!=="",V=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);E.forEach(Q=>{var ye,se;this.isValidLookup(a)||(m=Q,!ac[`${V[0]}-${Q}`]&&((ye=this.utils)!=null&&ye.hasLoadedNamespace)&&!((se=this.utils)!=null&&se.hasLoadedNamespace(m))&&(ac[`${V[0]}-${Q}`]=!0,this.logger.warn(`key "${u}" for languages "${V.join(", ")}" won't get resolved as namespace "${m}" 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!!!")),V.forEach(fe=>{var ke;if(this.isValidLookup(a))return;h=fe;const ee=[L];if((ke=this.i18nFormat)!=null&&ke.addLookupKeys)this.i18nFormat.addLookupKeys(ee,L,fe,Q,s);else{let ce;z&&(ce=this.pluralResolver.getSuffix(fe,s.count,s));const ne=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(z&&(ee.push(L+ce),s.ordinal&&ce.indexOf(re)===0&&ee.push(L+ce.replace(re,this.options.pluralSeparator)),F&&ee.push(L+ne)),j){const Z=`${L}${this.options.contextSeparator}${s.context}`;ee.push(Z),z&&(ee.push(Z+ce),s.ordinal&&ce.indexOf(re)===0&&ee.push(Z+ce.replace(re,this.options.pluralSeparator)),F&&ee.push(Z+ne))}}let ve;for(;ve=ee.pop();)this.isValidLookup(a)||(d=ve,a=this.getResource(fe,Q,ve,s))}))})}),{res:a,usedKey:u,exactUsedKey:d,usedLng:h,usedNS:m}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,s,a,u={}){var d;return(d=this.i18nFormat)!=null&&d.getResource?this.i18nFormat.getResource(o,s,a,u):this.resourceStore.getResource(o,s,a,u)}getUsedParamsDetails(o={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=o.replace&&!G(o.replace);let u=a?o.replace:o;if(a&&typeof o.count<"u"&&(u.count=o.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!a){u={...u};for(const d of s)delete u[d]}return u}static hasDefaultValue(o){const s="defaultValue";for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&s===a.substring(0,s.length)&&o[a]!==void 0)return!0;return!1}}class cc{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ct.create("languageUtils")}getScriptPartFromCode(o){if(o=Or(o),!o||o.indexOf("-")<0)return null;const s=o.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(o){if(o=Or(o),!o||o.indexOf("-")<0)return o;const s=o.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(o){if(G(o)&&o.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(o)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?o.toLowerCase():o)}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let s;return o.forEach(a=>{if(s)return;const u=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(u))&&(s=u)}),!s&&this.options.supportedLngs&&o.forEach(a=>{if(s)return;const u=this.getScriptPartFromCode(a);if(this.isSupportedCode(u))return s=u;const d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return s=d;s=this.options.supportedLngs.find(h=>{if(h===d)return h;if(!(h.indexOf("-")<0&&d.indexOf("-")<0)&&(h.indexOf("-")>0&&d.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===d||h.indexOf(d)===0&&d.length>1))return h})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(o,s){if(!o)return[];if(typeof o=="function"&&(o=o(s)),G(o)&&(o=[o]),Array.isArray(o))return o;if(!s)return o.default||[];let a=o[s];return a||(a=o[this.getScriptPartFromCode(s)]),a||(a=o[this.formatLanguageCode(s)]),a||(a=o[this.getLanguagePartFromCode(s)]),a||(a=o.default),a||[]}toResolveHierarchy(o,s){const a=this.getFallbackCodes(s||this.options.fallbackLng||[],o),u=[],d=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return G(o)&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(o))):G(o)&&d(this.formatLanguageCode(o)),a.forEach(h=>{u.indexOf(h)<0&&d(this.formatLanguageCode(h))}),u}}const fc={zero:0,one:1,two:2,few:3,many:4,other:5},dc={select:f=>f===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class yp{constructor(o,s={}){this.languageUtils=o,this.options=s,this.logger=Ct.create("pluralResolver"),this.pluralRulesCache={}}addRule(o,s){this.rules[o]=s}clearCache(){this.pluralRulesCache={}}getRule(o,s={}){const a=Or(o==="dev"?"en":o),u=s.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:a,type:u});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(a,{type:u})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),dc;if(!o.match(/-|_/))return dc;const S=this.languageUtils.getLanguagePartFromCode(o);h=this.getRule(S,s)}return this.pluralRulesCache[d]=h,h}needsPlural(o,s={}){let a=this.getRule(o,s);return a||(a=this.getRule("dev",s)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(o,s,a={}){return this.getSuffixes(o,a).map(u=>`${s}${u}`)}getSuffixes(o,s={}){let a=this.getRule(o,s);return a||(a=this.getRule("dev",s)),a?a.resolvedOptions().pluralCategories.sort((u,d)=>fc[u]-fc[d]).map(u=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(o,s,a={}){const u=this.getRule(o,a);return u?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${u.select(s)}`:(this.logger.warn(`no plural rule found for: ${o}`),this.getSuffix("dev",s,a))}}const pc=(f,o,s,a=".",u=!0)=>{let d=up(f,o,s);return!d&&u&&G(s)&&(d=Xl(f,s,a),d===void 0&&(d=Xl(o,s,a))),d},Ql=f=>f.replace(/\$/g,"$$$$");class vp{constructor(o={}){var s;this.logger=Ct.create("interpolator"),this.options=o,this.format=((s=o==null?void 0:o.interpolation)==null?void 0:s.format)||(a=>a),this.init(o)}init(o={}){o.interpolation||(o.interpolation={escapeValue:!0});const{escape:s,escapeValue:a,useRawValueToEscape:u,prefix:d,prefixEscaped:h,suffix:m,suffixEscaped:S,formatSeparator:x,unescapeSuffix:L,unescapePrefix:E,nestingPrefix:z,nestingPrefixEscaped:F,nestingSuffix:j,nestingSuffixEscaped:V,nestingOptionsSeparator:Q,maxReplaces:ye,alwaysFormat:se}=o.interpolation;this.escape=s!==void 0?s:fp,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=d?Mn(d):h||"{{",this.suffix=m?Mn(m):S||"}}",this.formatSeparator=x||",",this.unescapePrefix=L?"":E||"-",this.unescapeSuffix=this.unescapePrefix?"":L||"",this.nestingPrefix=z?Mn(z):F||Mn("$t("),this.nestingSuffix=j?Mn(j):V||Mn(")"),this.nestingOptionsSeparator=Q||",",this.maxReplaces=ye||1e3,this.alwaysFormat=se!==void 0?se:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=(s,a)=>(s==null?void 0:s.source)===a?(s.lastIndex=0,s):new RegExp(a,"g");this.regexp=o(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=o(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=o(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(o,s,a,u){var F;let d,h,m;const S=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=j=>{if(j.indexOf(this.formatSeparator)<0){const se=pc(s,S,j,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(se,void 0,a,{...u,...s,interpolationkey:j}):se}const V=j.split(this.formatSeparator),Q=V.shift().trim(),ye=V.join(this.formatSeparator).trim();return this.format(pc(s,S,Q,this.options.keySeparator,this.options.ignoreJSONStructure),ye,a,{...u,...s,interpolationkey:Q})};this.resetRegExp();const L=(u==null?void 0:u.missingInterpolationHandler)||this.options.missingInterpolationHandler,E=((F=u==null?void 0:u.interpolation)==null?void 0:F.skipOnVariables)!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:j=>Ql(j)},{regex:this.regexp,safeValue:j=>this.escapeValue?Ql(this.escape(j)):Ql(j)}].forEach(j=>{for(m=0;d=j.regex.exec(o);){const V=d[1].trim();if(h=x(V),h===void 0)if(typeof L=="function"){const ye=L(o,d,u);h=G(ye)?ye:""}else if(u&&Object.prototype.hasOwnProperty.call(u,V))h="";else if(E){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${V} for interpolating ${o}`),h="";else!G(h)&&!this.useRawValueToEscape&&(h=rc(h));const Q=j.safeValue(h);if(o=o.replace(d[0],Q),E?(j.regex.lastIndex+=h.length,j.regex.lastIndex-=d[0].length):j.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),o}nest(o,s,a={}){let u,d,h;const m=(S,x)=>{const L=this.nestingOptionsSeparator;if(S.indexOf(L)<0)return S;const E=S.split(new RegExp(`${L}[ ]*{`));let z=`{${E[1]}`;S=E[0],z=this.interpolate(z,h);const F=z.match(/'/g),j=z.match(/"/g);(((F==null?void 0:F.length)??0)%2===0&&!j||j.length%2!==0)&&(z=z.replace(/'/g,'"'));try{h=JSON.parse(z),x&&(h={...x,...h})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${S}`,V),`${S}${L}${z}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,S};for(;u=this.nestingRegexp.exec(o);){let S=[];h={...a},h=h.replace&&!G(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;let x=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){const L=u[1].split(this.formatSeparator).map(E=>E.trim());u[1]=L.shift(),S=L,x=!0}if(d=s(m.call(this,u[1].trim(),h),h),d&&u[0]===o&&!G(d))return d;G(d)||(d=rc(d)),d||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),d=""),x&&(d=S.reduce((L,E)=>this.format(L,E,a.lng,{...a,interpolationkey:u[1].trim()}),d.trim())),o=o.replace(u[0],d),this.regexp.lastIndex=0}return o}}const wp=f=>{let o=f.toLowerCase().trim();const s={};if(f.indexOf("(")>-1){const a=f.split("(");o=a[0].toLowerCase().trim();const u=a[1].substring(0,a[1].length-1);o==="currency"&&u.indexOf(":")<0?s.currency||(s.currency=u.trim()):o==="relativetime"&&u.indexOf(":")<0?s.range||(s.range=u.trim()):u.split(";").forEach(h=>{if(h){const[m,...S]=h.split(":"),x=S.join(":").trim().replace(/^'+|'+$/g,""),L=m.trim();s[L]||(s[L]=x),x==="false"&&(s[L]=!1),x==="true"&&(s[L]=!0),isNaN(x)||(s[L]=parseInt(x,10))}})}return{formatName:o,formatOptions:s}},hc=f=>{const o={};return(s,a,u)=>{let d=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(d={...d,[u.interpolationkey]:void 0});const h=a+JSON.stringify(d);let m=o[h];return m||(m=f(Or(a),u),o[h]=m),m(s)}},Sp=f=>(o,s,a)=>f(Or(s),a)(o);class xp{constructor(o={}){this.logger=Ct.create("formatter"),this.options=o,this.init(o)}init(o,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const a=s.cacheInBuiltFormats?hc:Sp;this.formats={number:a((u,d)=>{const h=new Intl.NumberFormat(u,{...d});return m=>h.format(m)}),currency:a((u,d)=>{const h=new Intl.NumberFormat(u,{...d,style:"currency"});return m=>h.format(m)}),datetime:a((u,d)=>{const h=new Intl.DateTimeFormat(u,{...d});return m=>h.format(m)}),relativetime:a((u,d)=>{const h=new Intl.RelativeTimeFormat(u,{...d});return m=>h.format(m,d.range||"day")}),list:a((u,d)=>{const h=new Intl.ListFormat(u,{...d});return m=>h.format(m)})}}add(o,s){this.formats[o.toLowerCase().trim()]=s}addCached(o,s){this.formats[o.toLowerCase().trim()]=hc(s)}format(o,s,a,u={}){const d=s.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(m=>m.indexOf(")")>-1)){const m=d.findIndex(S=>S.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,m)].join(this.formatSeparator)}return d.reduce((m,S)=>{var E;const{formatName:x,formatOptions:L}=wp(S);if(this.formats[x]){let z=m;try{const F=((E=u==null?void 0:u.formatParams)==null?void 0:E[u.interpolationkey])||{},j=F.locale||F.lng||u.locale||u.lng||a;z=this.formats[x](m,j,{...L,...u,...F})}catch(F){this.logger.warn(F)}return z}else this.logger.warn(`there was no format function for ${x}`);return m},o)}}const kp=(f,o)=>{f.pending[o]!==void 0&&(delete f.pending[o],f.pendingCount--)};class Cp extends Qi{constructor(o,s,a,u={}){var d,h;super(),this.backend=o,this.store=s,this.services=a,this.languageUtils=a.languageUtils,this.options=u,this.logger=Ct.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],(h=(d=this.backend)==null?void 0:d.init)==null||h.call(d,a,u.backend,u)}queueLoad(o,s,a,u){const d={},h={},m={},S={};return o.forEach(x=>{let L=!0;s.forEach(E=>{const z=`${x}|${E}`;!a.reload&&this.store.hasResourceBundle(x,E)?this.state[z]=2:this.state[z]<0||(this.state[z]===1?h[z]===void 0&&(h[z]=!0):(this.state[z]=1,L=!1,h[z]===void 0&&(h[z]=!0),d[z]===void 0&&(d[z]=!0),S[E]===void 0&&(S[E]=!0)))}),L||(m[x]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(S)}}loaded(o,s,a){const u=o.split("|"),d=u[0],h=u[1];s&&this.emit("failedLoading",d,h,s),!s&&a&&this.store.addResourceBundle(d,h,a,void 0,void 0,{skipCopy:!0}),this.state[o]=s?-1:2,s&&a&&(this.state[o]=0);const m={};this.queue.forEach(S=>{ap(S.loaded,[d],h),kp(S,o),s&&S.errors.push(s),S.pendingCount===0&&!S.done&&(Object.keys(S.loaded).forEach(x=>{m[x]||(m[x]={});const L=S.loaded[x];L.length&&L.forEach(E=>{m[x][E]===void 0&&(m[x][E]=!0)})}),S.done=!0,S.errors.length?S.callback(S.errors):S.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(S=>!S.done)}read(o,s,a,u=0,d=this.retryTimeout,h){if(!o.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:s,fcName:a,tried:u,wait:d,callback:h});return}this.readingCalls++;const m=(x,L)=>{if(this.readingCalls--,this.waitingReads.length>0){const E=this.waitingReads.shift();this.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}if(x&&L&&u{this.read.call(this,o,s,a,u+1,d*2,h)},d);return}h(x,L)},S=this.backend[a].bind(this.backend);if(S.length===2){try{const x=S(o,s);x&&typeof x.then=="function"?x.then(L=>m(null,L)).catch(m):m(null,x)}catch(x){m(x)}return}return S(o,s,m)}prepareLoading(o,s,a={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();G(o)&&(o=this.languageUtils.toResolveHierarchy(o)),G(s)&&(s=[s]);const d=this.queueLoad(o,s,a,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(o,s,a){this.prepareLoading(o,s,{},a)}reload(o,s,a){this.prepareLoading(o,s,{reload:!0},a)}loadOne(o,s=""){const a=o.split("|"),u=a[0],d=a[1];this.read(u,d,"read",void 0,void 0,(h,m)=>{h&&this.logger.warn(`${s}loading namespace ${d} for language ${u} failed`,h),!h&&m&&this.logger.log(`${s}loaded namespace ${d} for language ${u}`,m),this.loaded(o,h,m)})}saveMissing(o,s,a,u,d,h={},m=()=>{}){var S,x,L,E,z;if((x=(S=this.services)==null?void 0:S.utils)!=null&&x.hasLoadedNamespace&&!((E=(L=this.services)==null?void 0:L.utils)!=null&&E.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${a}" as the namespace "${s}" 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(!(a==null||a==="")){if((z=this.backend)!=null&&z.create){const F={...h,isUpdate:d},j=this.backend.create.bind(this.backend);if(j.length<6)try{let V;j.length===5?V=j(o,s,a,u,F):V=j(o,s,a,u),V&&typeof V.then=="function"?V.then(Q=>m(null,Q)).catch(m):m(null,V)}catch(V){m(V)}else j(o,s,a,u,m,F)}!o||!o[0]||this.store.addResource(o[0],s,a,u)}}}const gc=()=>({debug:!1,initAsync:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:f=>{let o={};if(typeof f[1]=="object"&&(o=f[1]),G(f[1])&&(o.defaultValue=f[1]),G(f[2])&&(o.tDescription=f[2]),typeof f[2]=="object"||typeof f[3]=="object"){const s=f[3]||f[2];Object.keys(s).forEach(a=>{o[a]=s[a]})}return o},interpolation:{escapeValue:!0,format:f=>f,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),mc=f=>{var o,s;return G(f.ns)&&(f.ns=[f.ns]),G(f.fallbackLng)&&(f.fallbackLng=[f.fallbackLng]),G(f.fallbackNS)&&(f.fallbackNS=[f.fallbackNS]),((s=(o=f.supportedLngs)==null?void 0:o.indexOf)==null?void 0:s.call(o,"cimode"))<0&&(f.supportedLngs=f.supportedLngs.concat(["cimode"])),typeof f.initImmediate=="boolean"&&(f.initAsync=f.initImmediate),f},Hi=()=>{},Ep=f=>{Object.getOwnPropertyNames(Object.getPrototypeOf(f)).forEach(s=>{typeof f[s]=="function"&&(f[s]=f[s].bind(f))})};class Rr extends Qi{constructor(o={},s){if(super(),this.options=mc(o),this.services={},this.logger=Ct,this.modules={external:[]},Ep(this),s&&!this.isInitialized&&!o.isClone){if(!this.options.initAsync)return this.init(o,s),this;setTimeout(()=>{this.init(o,s)},0)}}init(o={},s){this.isInitializing=!0,typeof o=="function"&&(s=o,o={}),o.defaultNS==null&&o.ns&&(G(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const a=gc();this.options={...a,...this.options,...mc(o)},this.options.interpolation={...a.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);const u=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?Ct.init(u(this.modules.logger),this.options):Ct.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=xp;const L=new cc(this.options);this.store=new sc(this.options.resources,this.options);const E=this.services;E.logger=Ct,E.resourceStore=this.store,E.languageUtils=L,E.pluralResolver=new yp(L,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),x&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(E.formatter=u(x),E.formatter.init(E,this.options),this.options.interpolation.format=E.formatter.format.bind(E.formatter)),E.interpolator=new vp(this.options),E.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},E.backendConnector=new Cp(u(this.modules.backend),E.resourceStore,E,this.options),E.backendConnector.on("*",(z,...F)=>{this.emit(z,...F)}),this.modules.languageDetector&&(E.languageDetector=u(this.modules.languageDetector),E.languageDetector.init&&E.languageDetector.init(E,this.options.detection,this.options)),this.modules.i18nFormat&&(E.i18nFormat=u(this.modules.i18nFormat),E.i18nFormat.init&&E.i18nFormat.init(this)),this.translator=new Wi(this.services,this.options),this.translator.on("*",(z,...F)=>{this.emit(z,...F)}),this.modules.external.forEach(z=>{z.init&&z.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Hi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(x=>{this[x]=(...L)=>this.store[x](...L)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...L)=>(this.store[x](...L),this)});const m=Pr(),S=()=>{const x=(L,E)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),m.resolve(E),s(L,E)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?S():setTimeout(S,0),m}loadResources(o,s=Hi){var d,h;let a=s;const u=G(o)?o:this.language;if(typeof o=="function"&&(a=o),!this.options.resources||this.options.partialBundledLanguages){if((u==null?void 0:u.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const m=[],S=x=>{if(!x||x==="cimode")return;this.services.languageUtils.toResolveHierarchy(x).forEach(E=>{E!=="cimode"&&m.indexOf(E)<0&&m.push(E)})};u?S(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(L=>S(L)),(h=(d=this.options.preload)==null?void 0:d.forEach)==null||h.call(d,x=>S(x)),this.services.backendConnector.load(m,this.options.ns,x=>{!x&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(x)})}else a(null)}reloadResources(o,s,a){const u=Pr();return typeof o=="function"&&(a=o,o=void 0),typeof s=="function"&&(a=s,s=void 0),o||(o=this.languages),s||(s=this.options.ns),a||(a=Hi),this.services.backendConnector.reload(o,s,d=>{u.resolve(),a(d)}),u}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&Lc.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1)){for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(o)<0&&this.store.hasLanguageSomeTranslations(o)&&(this.resolvedLanguage=o,this.languages.unshift(o))}}changeLanguage(o,s){this.isLanguageChangingTo=o;const a=Pr();this.emit("languageChanging",o);const u=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},d=(m,S)=>{S?this.isLanguageChangingTo===o&&(u(S),this.translator.changeLanguage(S),this.isLanguageChangingTo=void 0,this.emit("languageChanged",S),this.logger.log("languageChanged",S)):this.isLanguageChangingTo=void 0,a.resolve((...x)=>this.t(...x)),s&&s(m,(...x)=>this.t(...x))},h=m=>{var L,E;!o&&!m&&this.services.languageDetector&&(m=[]);const S=G(m)?m:m&&m[0],x=this.store.hasLanguageSomeTranslations(S)?S:this.services.languageUtils.getBestMatchFromCodes(G(m)?[m]:m);x&&(this.language||u(x),this.translator.language||this.translator.changeLanguage(x),(E=(L=this.services.languageDetector)==null?void 0:L.cacheUserLanguage)==null||E.call(L,x)),this.loadResources(x,z=>{d(z,x)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(o),a}getFixedT(o,s,a){const u=(d,h,...m)=>{let S;typeof h!="object"?S=this.options.overloadTranslationOptionHandler([d,h].concat(m)):S={...h},S.lng=S.lng||u.lng,S.lngs=S.lngs||u.lngs,S.ns=S.ns||u.ns,S.keyPrefix!==""&&(S.keyPrefix=S.keyPrefix||a||u.keyPrefix);const x=this.options.keySeparator||".";let L;return S.keyPrefix&&Array.isArray(d)?L=d.map(E=>`${S.keyPrefix}${x}${E}`):L=S.keyPrefix?`${S.keyPrefix}${x}${d}`:d,this.t(L,S)};return G(o)?u.lng=o:u.lngs=o,u.ns=s,u.keyPrefix=a,u}t(...o){var s;return(s=this.translator)==null?void 0:s.translate(...o)}exists(...o){var s;return(s=this.translator)==null?void 0:s.exists(...o)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o,s={}){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;const a=s.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const h=(m,S)=>{const x=this.services.backendConnector.state[`${m}|${S}`];return x===-1||x===0||x===2};if(s.precheck){const m=s.precheck(this,h);if(m!==void 0)return m}return!!(this.hasResourceBundle(a,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(a,o)&&(!u||h(d,o)))}loadNamespaces(o,s){const a=Pr();return this.options.ns?(G(o)&&(o=[o]),o.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{a.resolve(),s&&s(u)}),a):(s&&s(),Promise.resolve())}loadLanguages(o,s){const a=Pr();G(o)&&(o=[o]);const u=this.options.preload||[],d=o.filter(h=>u.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=u.concat(d),this.loadResources(h=>{a.resolve(),s&&s(h)}),a):(s&&s(),Promise.resolve())}dir(o){var u,d;if(o||(o=this.resolvedLanguage||(((u=this.languages)==null?void 0:u.length)>0?this.languages[0]:this.language)),!o)return"rtl";const s=["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"],a=((d=this.services)==null?void 0:d.languageUtils)||new cc(gc());return s.indexOf(a.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(o={},s){return new Rr(o,s)}cloneInstance(o={},s=Hi){const a=o.forkResourceStore;a&&delete o.forkResourceStore;const u={...this.options,...o,isClone:!0},d=new Rr(u);if((o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o)),["store","services","language"].forEach(m=>{d[m]=this[m]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},a){const m=Object.keys(this.store.data).reduce((S,x)=>(S[x]={...this.store.data[x]},S[x]=Object.keys(S[x]).reduce((L,E)=>(L[E]={...S[x][E]},L),S[x]),S),{});d.store=new sc(m,u),d.services.resourceStore=d.store}return d.translator=new Wi(d.services,u),d.translator.on("*",(m,...S)=>{d.emit(m,...S)}),d.init(u,s),d.translator.options=u,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const He=Rr.createInstance();He.createInstance=Rr.createInstance;He.createInstance;He.dir;He.init;He.loadResources;He.reloadResources;He.use;He.changeLanguage;He.getFixedT;He.t;He.exists;He.setDefaultNamespace;He.hasLoadedNamespace;He.loadNamespaces;He.loadLanguages;const{slice:Np,forEach:Lp}=[];function Pp(f){return Lp.call(Np.call(arguments,1),o=>{if(o)for(const s in o)f[s]===void 0&&(f[s]=o[s])}),f}function _p(f){return typeof f!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(f))}const yc=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Op=function(f,o){const a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(o);let d=`${f}=${u}`;if(a.maxAge>0){const h=a.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(h)}`}if(a.domain){if(!yc.test(a.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${a.domain}`}if(a.path){if(!yc.test(a.path))throw new TypeError("option path is invalid");d+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");d+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(d+="; HttpOnly"),a.secure&&(d+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(d+="; Partitioned"),d},vc={create(f,o,s,a){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+s*60*1e3)),a&&(u.domain=a),document.cookie=Op(f,encodeURIComponent(o),u)},read(f){const o=`${f}=`,s=document.cookie.split(";");for(let a=0;a-1&&(u=window.location.hash.substring(window.location.hash.indexOf("?")));const h=u.substring(1).split("&");for(let m=0;m0&&h[m].substring(0,S)===o&&(s=h[m].substring(S+1))}}return s}};let Un=null;const wc=()=>{if(Un!==null)return Un;try{if(Un=typeof window<"u"&&window.localStorage!==null,!Un)return!1;const f="i18next.translate.boo";window.localStorage.setItem(f,"foo"),window.localStorage.removeItem(f)}catch{Un=!1}return Un};var zp={name:"localStorage",lookup(f){let{lookupLocalStorage:o}=f;if(o&&wc())return window.localStorage.getItem(o)||void 0},cacheUserLanguage(f,o){let{lookupLocalStorage:s}=o;s&&wc()&&window.localStorage.setItem(s,f)}};let An=null;const Sc=()=>{if(An!==null)return An;try{if(An=typeof window<"u"&&window.sessionStorage!==null,!An)return!1;const f="i18next.translate.boo";window.sessionStorage.setItem(f,"foo"),window.sessionStorage.removeItem(f)}catch{An=!1}return An};var jp={name:"sessionStorage",lookup(f){let{lookupSessionStorage:o}=f;if(o&&Sc())return window.sessionStorage.getItem(o)||void 0},cacheUserLanguage(f,o){let{lookupSessionStorage:s}=o;s&&Sc()&&window.sessionStorage.setItem(s,f)}},Ip={name:"navigator",lookup(f){const o=[];if(typeof navigator<"u"){const{languages:s,userLanguage:a,language:u}=navigator;if(s)for(let d=0;d0?o:void 0}},Fp={name:"htmlTag",lookup(f){let{htmlTag:o}=f,s;const a=o||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(s=a.getAttribute("lang")),s}},Dp={name:"path",lookup(f){var u;let{lookupFromPathIndex:o}=f;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?(u=s[typeof o=="number"?o:0])==null?void 0:u.replace("/",""):void 0}},$p={name:"subdomain",lookup(f){var u,d;let{lookupFromSubdomainIndex:o}=f;const s=typeof o=="number"?o+1:1,a=typeof window<"u"&&((d=(u=window.location)==null?void 0:u.hostname)==null?void 0:d.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(a)return a[s]}};let Pc=!1;try{document.cookie,Pc=!0}catch{}const _c=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Pc||_c.splice(1,1);const Mp=()=>({order:_c,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:f=>f});class Oc{constructor(o){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(o,s)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=o,this.options=Pp(s,this.options||{},Mp()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Rp),this.addDetector(Tp),this.addDetector(zp),this.addDetector(jp),this.addDetector(Ip),this.addDetector(Fp),this.addDetector(Dp),this.addDetector($p)}addDetector(o){return this.detectors[o.name]=o,this}detect(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return o.forEach(a=>{if(this.detectors[a]){let u=this.detectors[a].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(s=s.concat(u))}}),s=s.filter(a=>a!=null&&!_p(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(o){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(o)>-1||s.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(o,this.options)}))}}Oc.type="languageDetector";const Up="An Experimental, Trustless Open-Source Electronic Voting System",Ap={title:"What is Criptocracia?",content:"Criptocracia is an innovative and experimental open-source electronic voting system, meticulously engineered in Rust. It stands at the forefront of secure digital democracy, designed to operate on a trustless basis. This means it aims to minimize the reliance on central authorities for the integrity of the voting process. At its core, Criptocracia employs advanced cryptographic techniques, specifically blind RSA signatures, to uphold the paramount principles of vote secrecy and voter anonymity. Furthermore, it integrates the Nostr protocol, a decentralized and censorship-resistant network, to ensure the secure and private transmission of encrypted voting data. The project, while still in its experimental phase and not yet ready for production deployment, represents a significant step towards building more resilient, transparent, and auditable e-voting solutions for the future."},Vp={title:"What is Criptocracia for?",content:"Criptocracia is designed to address the critical and growing need for secure, transparent, and anonymous electronic voting systems. Its primary purpose is to provide a robust platform for conducting elections, particularly in environments where trust in central authorities or existing electoral systems may be compromised or limited. This is especially relevant in contexts where there are concerns about authoritarian regimes potentially manipulating electoral processes to maintain power.",bullets_title:"Specifically, Criptocracia aims to:",bullets:["Enhance Electoral Integrity.","Protect Voter Anonymity and Secrecy.","Promote Transparency and Auditability.","Explore Modern Cryptographic Solutions.","Empower Voters in Trust-Limited Settings."],conclusion:"In essence, Criptocracia is for creating a more trustworthy and secure foundation for democratic elections in the digital age, fostering greater confidence in electoral outcomes and protecting the fundamental rights of voters."},Hp={title:"Why is Criptocracia important?",content:"The importance of Criptocracia lies in its potential to address fundamental challenges to democratic processes in an increasingly digital world. Traditional voting systems, whether paper-based or electronic, often face issues of trust, security, and accessibility. Criptocracia offers a forward-looking approach that leverages cutting-edge technology to mitigate these concerns."},Bp={title:"Project Goals",content:"The overarching goal of Criptocracia is to harness the power of open technologies and modern cryptography to develop a voting system that is both fraud-resistant and publicly auditable. This initiative recognizes the pressing need for electoral systems that can inspire confidence and withstand manipulation, especially in environments where trust in central authorities may be limited.",bullets_title:"Key objectives of the Criptocracia project include:",bullets:["Develop a Fraud-Resistant Voting System.","Ensure Public Auditability.","Leverage Open Technologies.","Implement Advanced Cryptographic Techniques.","Enhance Voter Privacy and Anonymity","Provide a Model for Secure E-Voting","Address Challenges in Trust-Limited Environments"],conclusion:"Ultimately, Criptocracia strives to contribute to the evolution of democratic processes by providing a technological framework that upholds the highest standards of security, transparency, and voter protection."},Kp={title:"Technology behind Criptocracia",content:"Criptocracia leverages cutting-edge cryptographic techniques and decentralized communication protocols to achieve its security and privacy goals. The two key technological pillars of the system are Blind RSA Signatures and the Nostr protocol.",blindSignatures:"Blind Signatures",blindSignaturesContent:"Blind signatures are a cryptographic primitive that forms the cornerstone of Criptocracia's approach to ensuring vote secrecy and voter anonymity",nostr:"Nostr Protocol for Data Transmission and Voter Authenticity",nostrContent:"Nostr (Notes and Other Stuff Transmitted by Relays) is a decentralized protocol that enables censorship-resistant and privacy-focused communication"},Wp={title:"Fundamental Requirements",content:"Criptocracia is built upon a set of core security properties, derived from initial consultations, to ensure a trustworthy and robust electronic voting system. These fundamental requirements are critical to the project's mission:",bullets:["Vote Secrecy/Anonymity","Voter Authentication","Vote Uniqueness","Verifiability/Auditability","Nostr's Role"]},Qp={copyright:"© 2025 Criptocracia. All rights reserved.",viewOnGithub:"View on GitHub"},Yp={en:"English",es:"Español"},Gp={subtitle:Up,whatIs:Ap,whatFor:Vp,whyImportant:Hp,goals:Bp,technology:Kp,requirements:Wp,footer:Qp,languageSelector:Yp},qp="Un sistema de votación electrónica experimental, sin confianza y de código abierto",Xp={title:"¿Qué es Criptocracia?",content:"Criptocracia es un innovador y experimental sistema de votación electrónica de código abierto, meticulosamente diseñado en Rust. Está a la vanguardia de la democracia digital segura y está concebido para operar sobre una base sin necesidad de confiar en autoridades centrales. Esto significa que busca minimizar la dependencia de instancias externas para garantizar la integridad del proceso de votación. En su núcleo, Criptocracia emplea técnicas criptográficas avanzadas, específicamente firmas RSA ciegas, para defender los principios fundamentales de secreto del voto y anonimato del votante. Además, integra el protocolo Nostr, una red descentralizada y resistente a la censura, para asegurar la transmisión segura y privada de los datos de votación cifrados. El proyecto, aunque aún se encuentra en fase experimental y no está listo para su implementación en producción, representa un paso significativo hacia la construcción de soluciones de voto electrónico más resistentes, transparentes y auditables para el futuro."},Jp={title:"¿Para qué sirve Criptocracia?",content:"Criptocracia está diseñado para abordar la necesidad crítica y creciente de sistemas de votación electrónica seguros, transparentes y anónimos. Su propósito principal es proporcionar una plataforma robusta para la realización de elecciones, especialmente en entornos donde la confianza en las autoridades centrales o en los sistemas electorales existentes puede estar comprometida o ser limitada. Esto es particularmente relevante en contextos donde existen preocupaciones sobre manipulaciones de los procesos electorales por parte de regímenes autoritarios.",bullets_title:"Específicamente, Criptocracia pretende:",bullets:["Mejorar la integridad electoral.","Proteger el anonimato y secreto del votante.","Promover la transparencia y auditabilidad.","Explorar soluciones criptográficas modernas.","Empoderar a los votantes en entornos con confianza limitada."],conclusion:"En esencia, Criptocracia busca crear una base más confiable y segura para las elecciones democráticas en la era digital, fomentando una mayor confianza en los resultados y protegiendo los derechos fundamentales de los votantes."},Zp={title:"¿Por qué es importante Criptocracia?",content:"La importancia de Criptocracia radica en su potencial para resolver desafíos fundamentales de los procesos democráticos en un mundo cada vez más digital. Los sistemas de votación tradicionales, ya sean en papel o electrónicos, suelen enfrentarse a problemas de confianza, seguridad y accesibilidad. Criptocracia ofrece un enfoque de vanguardia que aprovecha tecnología de última generación para mitigar estas preocupaciones."},bp={title:"Objetivos del proyecto",content:"El objetivo general de Criptocracia es aprovechar el poder de las tecnologías abiertas y la criptografía moderna para desarrollar un sistema de votación resistente al fraude y públicamente auditable. Esta iniciativa reconoce la imperiosa necesidad de sistemas electorales que inspiren confianza y resistan manipulaciones, especialmente en entornos con baja confianza en las autoridades centrales.",bullets_title:"Los objetivos clave del proyecto Criptocracia incluyen:",bullets:["Desarrollar un sistema de votación resistente al fraude.","Garantizar la auditabilidad pública.","Aprovechar tecnologías abiertas.","Implementar técnicas criptográficas avanzadas.","Mejorar la privacidad y anonimato del votante.","Proporcionar un modelo para el voto electrónico seguro.","Abordar desafíos en entornos con confianza limitada."],conclusion:"En última instancia, Criptocracia busca contribuir a la evolución de los procesos democráticos proporcionando un marco tecnológico que cumpla con los más altos estándares de seguridad, transparencia y protección del votante."},eh={title:"Tecnología detrás de Criptocracia",content:"Criptocracia emplea técnicas criptográficas de vanguardia y protocolos de comunicación descentralizados para alcanzar sus metas de seguridad y privacidad. Los dos pilares tecnológicos clave del sistema son las firmas RSA ciegas y el protocolo Nostr.",blindSignatures:"Firmas ciegas",blindSignaturesContent:"Las firmas ciegas son un primitivo criptográfico que constituye la piedra angular del enfoque de Criptocracia para garantizar el secreto del voto y el anonimato del votante.",nostr:"Protocolo Nostr para transmisión de datos y autenticidad del votante",nostrContent:"Nostr (Notes and Other Stuff Transmitted by Relays) es un protocolo descentralizado que permite una comunicación resistente a la censura y centrada en la privacidad."},th={title:"Requisitos fundamentales",content:"Criptocracia se construye sobre un conjunto de propiedades de seguridad esenciales, definidas a partir de consultas iniciales, para garantizar un sistema de votación electrónica confiable y robusto. Estos requisitos son críticos para la misión del proyecto:",bullets:["Secreto y anonimato del voto","Autenticación del votante","Unicidad del voto","Verificabilidad y auditabilidad","Papel de Nostr"]},nh={copyright:"© 2025 Criptocracia. Todos los derechos reservados.",viewOnGithub:"Ver en GitHub"},rh={en:"Inglés",es:"Español"},ih={subtitle:qp,whatIs:Xp,whatFor:Jp,whyImportant:Zp,goals:bp,technology:eh,requirements:th,footer:nh,languageSelector:rh};He.use(Oc).use(Yd).init({resources:{en:{translation:Gp},es:{translation:ih}},fallbackLng:"en",interpolation:{escapeValue:!1}});Fd.createRoot(document.getElementById("root")).render(B.jsx(kt.StrictMode,{children:B.jsx(op,{})}));