function qle(n,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function Mu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function _Z(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var JO={exports:{}},P3={};var rz;function Yle(){if(rz)return P3;rz=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return P3.Fragment=e,P3.jsx=t,P3.jsxs=t,P3}var oz;function Vle(){return oz||(oz=1,JO.exports=Yle()),JO.exports}var le=Vle(),e8={exports:{}},Gr={};var sz;function $le(){if(sz)return Gr;sz=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),E=Symbol.iterator;function I(Ne){return Ne===null||typeof Ne!="object"?null:(Ne=E&&Ne[E]||Ne["@@iterator"],typeof Ne=="function"?Ne:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,W={};function V(Ne,lt,Ke){this.props=Ne,this.context=lt,this.refs=W,this.updater=Ke||U}V.prototype.isReactComponent={},V.prototype.setState=function(Ne,lt){if(typeof Ne!="object"&&typeof Ne!="function"&&Ne!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ne,lt,"setState")},V.prototype.forceUpdate=function(Ne){this.updater.enqueueForceUpdate(this,Ne,"forceUpdate")};function Y(){}Y.prototype=V.prototype;function ee(Ne,lt,Ke){this.props=Ne,this.context=lt,this.refs=W,this.updater=Ke||U}var oe=ee.prototype=new Y;oe.constructor=ee,F(oe,V.prototype),oe.isPureReactComponent=!0;var re=Array.isArray;function ie(){}var X={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function $(Ne,lt,Ke){var Xe=Ke.ref;return{$$typeof:n,type:Ne,key:lt,ref:Xe!==void 0?Xe:null,props:Ke}}function ue(Ne,lt){return $(Ne.type,lt,Ne.props)}function de(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===n}function be(Ne){var lt={"=":"=0",":":"=2"};return"$"+Ne.replace(/[=:]/g,function(Ke){return lt[Ke]})}var me=/\/+/g;function xe(Ne,lt){return typeof Ne=="object"&&Ne!==null&&Ne.key!=null?be(""+Ne.key):lt.toString(36)}function Pe(Ne){switch(Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason;default:switch(typeof Ne.status=="string"?Ne.then(ie,ie):(Ne.status="pending",Ne.then(function(lt){Ne.status==="pending"&&(Ne.status="fulfilled",Ne.value=lt)},function(lt){Ne.status==="pending"&&(Ne.status="rejected",Ne.reason=lt)})),Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason}}throw Ne}function ke(Ne,lt,Ke,Xe,st){var Ct=typeof Ne;(Ct==="undefined"||Ct==="boolean")&&(Ne=null);var It=!1;if(Ne===null)It=!0;else switch(Ct){case"bigint":case"string":case"number":It=!0;break;case"object":switch(Ne.$$typeof){case n:case e:It=!0;break;case g:return It=Ne._init,ke(It(Ne._payload),lt,Ke,Xe,st)}}if(It)return st=st(Ne),It=Xe===""?"."+xe(Ne,0):Xe,re(st)?(Ke="",It!=null&&(Ke=It.replace(me,"$&/")+"/"),ke(st,lt,Ke,"",function(Ce){return Ce})):st!=null&&(de(st)&&(st=ue(st,Ke+(st.key==null||Ne&&Ne.key===st.key?"":(""+st.key).replace(me,"$&/")+"/")+It)),lt.push(st)),1;It=0;var Le=Xe===""?".":Xe+":";if(re(Ne))for(var Ie=0;Iekn.createElement(e.tag,OE({key:t},e.attr),MZ(e.child)))}function _o(n){return e=>kn.createElement(nue,BE({attr:OE({},n.attr)},e),MZ(n.child))}function nue(n){var e=t=>{var{attr:i,size:r,title:o}=n,s=Zle(n,Hle),a=r||t.size||"1em",c;return t.className&&(c=t.className),n.className&&(c=(c?c+" ":"")+n.className),kn.createElement("svg",BE({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:c,style:OE(OE({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&kn.createElement("title",null,o),n.children)};return _x!==void 0?kn.createElement(_x.Consumer,null,t=>e(t)):e(wZ)}var t8={exports:{}},L3={},n8={exports:{}},i8={};var uz;function iue(){return uz||(uz=1,(function(n){function e(ke,Qe){var nt=ke.length;ke.push(Qe);e:for(;0>>1,Re=ke[je];if(0>>1;jer(Ke,nt))Xer(st,Ke)?(ke[je]=st,ke[Xe]=nt,je=Xe):(ke[je]=Ke,ke[lt]=nt,je=lt);else if(Xer(st,nt))ke[je]=st,ke[Xe]=nt,je=Xe;else break e}}return Qe}function r(ke,Qe){var nt=ke.sortIndex-Qe.sortIndex;return nt!==0?nt:ke.id-Qe.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();n.unstable_now=function(){return s.now()-a}}var c=[],d=[],g=1,v=null,E=3,I=!1,U=!1,F=!1,W=!1,V=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function oe(ke){for(var Qe=t(d);Qe!==null;){if(Qe.callback===null)i(d);else if(Qe.startTime<=ke)i(d),Qe.sortIndex=Qe.expirationTime,e(c,Qe);else break;Qe=t(d)}}function re(ke){if(F=!1,oe(ke),!U)if(t(c)!==null)U=!0,ie||(ie=!0,be());else{var Qe=t(d);Qe!==null&&Pe(re,Qe.startTime-ke)}}var ie=!1,X=-1,ce=5,$=-1;function ue(){return W?!0:!(n.unstable_now()-$ke&&ue());){var je=v.callback;if(typeof je=="function"){v.callback=null,E=v.priorityLevel;var Re=je(v.expirationTime<=ke);if(ke=n.unstable_now(),typeof Re=="function"){v.callback=Re,oe(ke),Qe=!0;break t}v===t(c)&&i(c),oe(ke)}else i(c);v=t(c)}if(v!==null)Qe=!0;else{var Ne=t(d);Ne!==null&&Pe(re,Ne.startTime-ke),Qe=!1}}break e}finally{v=null,E=nt,I=!1}Qe=void 0}}finally{Qe?be():ie=!1}}}var be;if(typeof ee=="function")be=function(){ee(de)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,xe=me.port2;me.port1.onmessage=de,be=function(){xe.postMessage(null)}}else be=function(){V(de,0)};function Pe(ke,Qe){X=V(function(){ke(n.unstable_now())},Qe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(ke){ke.callback=null},n.unstable_forceFrameRate=function(ke){0>ke||125je?(ke.sortIndex=nt,e(d,ke),t(c)===null&&ke===t(d)&&(F?(Y(X),X=-1):F=!0,Pe(re,nt-je))):(ke.sortIndex=Re,e(c,ke),U||I||(U=!0,ie||(ie=!0,be()))),ke},n.unstable_shouldYield=ue,n.unstable_wrapCallback=function(ke){var Qe=E;return function(){var nt=E;E=Qe;try{return ke.apply(this,arguments)}finally{E=nt}}}})(i8)),i8}var cz;function rue(){return cz||(cz=1,n8.exports=iue()),n8.exports}var r8={exports:{}},ph={};var Az;function oue(){if(Az)return ph;Az=1;var n=Hl();function e(c){var d="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),r8.exports=oue(),r8.exports}var dz;function sue(){if(dz)return L3;dz=1;var n=rue(),e=Hl(),t=YP();function i(f){var y="https://react.dev/errors/"+f;if(1Re||(f.current=je[Re],je[Re]=null,Re--)}function Ke(f,y){Re++,je[Re]=f.current,f.current=y}var Xe=Ne(null),st=Ne(null),Ct=Ne(null),It=Ne(null);function Le(f,y){switch(Ke(Ct,y),Ke(st,f),Ke(Xe,null),y.nodeType){case 9:case 11:f=(f=y.documentElement)&&(f=f.namespaceURI)?Kb(f):0;break;default:if(f=y.tagName,y=y.namespaceURI)y=Kb(y),f=b1(y,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}lt(Xe),Ke(Xe,f)}function Ie(){lt(Xe),lt(st),lt(Ct)}function Ce(f){f.memoizedState!==null&&Ke(It,f);var y=Xe.current,x=b1(y,f.type);y!==x&&(Ke(st,f),Ke(Xe,x))}function it(f){st.current===f&&(lt(Xe),lt(st)),It.current===f&&(lt(It),fh._currentValue=nt)}var pt,Ve;function St(f){if(pt===void 0)try{throw Error()}catch(x){var y=x.stack.trim().match(/\n( *(at )?)/);pt=y&&y[1]||"",Ve=-1)":-1q||gt[D]!==Gt[q]){var sn=` `+gt[D].replace(" at new "," at ");return f.displayName&&sn.includes("")&&(sn=sn.replace("",f.displayName)),sn}while(1<=D&&0<=q);break}}}finally{Bt=!1,Error.prepareStackTrace=x}return(x=f?f.displayName||f.name:"")?St(x):""}function Jt(f,y){switch(f.tag){case 26:case 27:case 5:return St(f.type);case 16:return St("Lazy");case 13:return f.child!==y&&y!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return _t(f.type,!1);case 11:return _t(f.type.render,!1);case 1:return _t(f.type,!0);case 31:return St("Activity");default:return""}}function un(f){try{var y="",x=null;do y+=Jt(f,x),x=f,f=f.return;while(f);return y}catch(D){return` Error generating stack: `+D.message+` `+D.stack}}var Pn=Object.prototype.hasOwnProperty,Jn=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Sn=n.unstable_shouldYield,Qn=n.unstable_requestPaint,On=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,vt=n.unstable_ImmediatePriority,Se=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,fe=n.unstable_LowPriority,ze=n.unstable_IdlePriority,At=n.log,Ot=n.unstable_setDisableYieldValue,Dt=null,Tn=null;function Gn(f){if(typeof At=="function"&&Ot(f),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(Dt,f)}catch{}}var yt=Math.clz32?Math.clz32:bn,Ft=Math.log,C=Math.LN2;function bn(f){return f>>>=0,f===0?32:31-(Ft(f)/C|0)|0}var pi=256,Yn=262144,Vn=4194304;function Mi(f){var y=f&42;if(y!==0)return y;switch(f&-f){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function or(f,y,x){var D=f.pendingLanes;if(D===0)return 0;var q=0,ne=f.suspendedLanes,we=f.pingedLanes;f=f.warmLanes;var We=D&134217727;return We!==0?(D=We&~ne,D!==0?q=Mi(D):(we&=We,we!==0?q=Mi(we):x||(x=We&~f,x!==0&&(q=Mi(x))))):(We=D&~ne,We!==0?q=Mi(We):we!==0?q=Mi(we):x||(x=D&~f,x!==0&&(q=Mi(x)))),q===0?0:y!==0&&y!==q&&(y&ne)===0&&(ne=q&-q,x=y&-y,ne>=x||ne===32&&(x&4194048)!==0)?y:q}function Ut(f,y){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&y)===0}function fo(f,y){switch(f){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32: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 y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var f=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),f}function Bi(f){for(var y=[],x=0;31>x;x++)y.push(f);return y}function Qr(f,y){f.pendingLanes|=y,y!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Fi(f,y,x,D,q,ne){var we=f.pendingLanes;f.pendingLanes=x,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=x,f.entangledLanes&=x,f.errorRecoveryDisabledLanes&=x,f.shellSuspendCounter=0;var We=f.entanglements,gt=f.expirationTimes,Gt=f.hiddenUpdates;for(x=we&~x;0"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var Bh=/[\n"\\]/g;function Ua(f){return f.replace(Bh,function(y){return"\\"+y.charCodeAt(0).toString(16)+" "})}function fA(f,y,x,D,q,ne,we,We){f.name="",we!=null&&typeof we!="function"&&typeof we!="symbol"&&typeof we!="boolean"?f.type=we:f.removeAttribute("type"),y!=null?we==="number"?(y===0&&f.value===""||f.value!=y)&&(f.value=""+wo(y)):f.value!==""+wo(y)&&(f.value=""+wo(y)):we!=="submit"&&we!=="reset"||f.removeAttribute("value"),y!=null?rc(f,we,wo(y)):x!=null?rc(f,we,wo(x)):D!=null&&f.removeAttribute("value"),q==null&&ne!=null&&(f.defaultChecked=!!ne),q!=null&&(f.checked=q&&typeof q!="function"&&typeof q!="symbol"),We!=null&&typeof We!="function"&&typeof We!="symbol"&&typeof We!="boolean"?f.name=""+wo(We):f.removeAttribute("name")}function Xl(f,y,x,D,q,ne,we,We){if(ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"&&(f.type=ne),y!=null||x!=null){if(!(ne!=="submit"&&ne!=="reset"||y!=null)){Rc(f);return}x=x!=null?""+wo(x):"",y=y!=null?""+wo(y):x,We||y===f.value||(f.value=y),f.defaultValue=y}D=D??q,D=typeof D!="function"&&typeof D!="symbol"&&!!D,f.checked=We?f.checked:!!D,f.defaultChecked=!!D,we!=null&&typeof we!="function"&&typeof we!="symbol"&&typeof we!="boolean"&&(f.name=we),Rc(f)}function rc(f,y,x){y==="number"&&pl(f.ownerDocument)===f||f.defaultValue===""+x||(f.defaultValue=""+x)}function Ou(f,y,x,D){if(f=f.options,y){y={};for(var q=0;q"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xa=!1;if(dr)try{var Zr={};Object.defineProperty(Zr,"passive",{get:function(){Xa=!0}}),window.addEventListener("test",Zr,Zr),window.removeEventListener("test",Zr,Zr)}catch{Xa=!1}var Ho=null,fs=null,Jl=null;function jr(){if(Jl)return Jl;var f,y=fs,x=y.length,D,q="value"in Ho?Ho.value:Ho.textContent,ne=q.length;for(f=0;f=el),im=" ",yd=!1;function vd(f,y){switch(f){case"keyup":return ff.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g0(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Th=!1;function _y(f,y){switch(f){case"compositionend":return g0(y);case"keypress":return y.which!==32?null:(yd=!0,im);case"textInput":return f=y.data,f===im&&yd?null:f;default:return null}}function ua(f,y){if(Th)return f==="compositionend"||!Ih&&vd(f,y)?(f=jr(),Jl=fs=Ho=null,Th=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=y)return{node:x,offset:y-f};f=D}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=C0(x)}}function mA(f,y){return f&&y?f===y?!0:f&&f.nodeType===3?!1:y&&y.nodeType===3?mA(f,y.parentNode):"contains"in f?f.contains(y):f.compareDocumentPosition?!!(f.compareDocumentPosition(y)&16):!1:!1}function _0(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var y=pl(f.document);y instanceof f.HTMLIFrameElement;){try{var x=typeof y.contentWindow.location.href=="string"}catch{x=!1}if(x)f=y.contentWindow;else break;y=pl(f.document)}return y}function am(f){var y=f&&f.nodeName&&f.nodeName.toLowerCase();return y&&(y==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||y==="textarea"||f.contentEditable==="true")}var x0=dr&&"documentMode"in document&&11>=document.documentMode,lc=null,Tt=null,an=null,Xt=!1;function yi(f,y,x){var D=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;Xt||lc==null||lc!==pl(D)||(D=lc,"selectionStart"in D&&am(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),an&&gl(an,D)||(an=D,D=Nu(Tt,"onSelect"),0>=we,q-=we,Pl=1<<32-yt(y)+q|x<_r?(co=Di,Di=null):co=Di.sibling;var Oo=qt(Rt,Di,Wt[_r],fn);if(Oo===null){Di===null&&(Di=co);break}f&&Di&&Oo.alternate===null&&y(Rt,Di),Et=ne(Oo,Et,_r),Bo===null?qi=Oo:Bo.sibling=Oo,Bo=Oo,Di=co}if(_r===Wt.length)return x(Rt,Di),Sr&&yA(Rt,_r),qi;if(Di===null){for(;_r_r?(co=Di,Di=null):co=Di.sibling;var Ff=qt(Rt,Di,Oo.value,fn);if(Ff===null){Di===null&&(Di=co);break}f&&Di&&Ff.alternate===null&&y(Rt,Di),Et=ne(Ff,Et,_r),Bo===null?qi=Ff:Bo.sibling=Ff,Bo=Ff,Di=co}if(Oo.done)return x(Rt,Di),Sr&&yA(Rt,_r),qi;if(Di===null){for(;!Oo.done;_r++,Oo=Wt.next())Oo=hn(Rt,Oo.value,fn),Oo!==null&&(Et=ne(Oo,Et,_r),Bo===null?qi=Oo:Bo.sibling=Oo,Bo=Oo);return Sr&&yA(Rt,_r),qi}for(Di=D(Di);!Oo.done;_r++,Oo=Wt.next())Oo=nn(Di,Rt,_r,Oo.value,fn),Oo!==null&&(f&&Oo.alternate!==null&&Di.delete(Oo.key===null?_r:Oo.key),Et=ne(Oo,Et,_r),Bo===null?qi=Oo:Bo.sibling=Oo,Bo=Oo);return f&&Di.forEach(function(W_){return y(Rt,W_)}),Sr&&yA(Rt,_r),qi}function is(Rt,Et,Wt,fn){if(typeof Wt=="object"&&Wt!==null&&Wt.type===F&&Wt.key===null&&(Wt=Wt.props.children),typeof Wt=="object"&&Wt!==null){switch(Wt.$$typeof){case I:e:{for(var qi=Wt.key;Et!==null;){if(Et.key===qi){if(qi=Wt.type,qi===F){if(Et.tag===7){x(Rt,Et.sibling),fn=q(Et,Wt.props.children),fn.return=Rt,Rt=fn;break e}}else if(Et.elementType===qi||typeof qi=="object"&&qi!==null&&qi.$$typeof===ce&&JA(qi)===Et.type){x(Rt,Et.sibling),fn=q(Et,Wt.props),mc(fn,Wt),fn.return=Rt,Rt=fn;break e}x(Rt,Et);break}else y(Rt,Et);Et=Et.sibling}Wt.type===F?(fn=yf(Wt.props.children,Rt.mode,fn,Wt.key),fn.return=Rt,Rt=fn):(fn=Sd(Wt.type,Wt.key,Wt.props,null,Rt.mode,fn),mc(fn,Wt),fn.return=Rt,Rt=fn)}return we(Rt);case U:e:{for(qi=Wt.key;Et!==null;){if(Et.key===qi)if(Et.tag===4&&Et.stateNode.containerInfo===Wt.containerInfo&&Et.stateNode.implementation===Wt.implementation){x(Rt,Et.sibling),fn=q(Et,Wt.children||[]),fn.return=Rt,Rt=fn;break e}else{x(Rt,Et);break}else y(Rt,Et);Et=Et.sibling}fn=ap(Wt,Rt.mode,fn),fn.return=Rt,Rt=fn}return we(Rt);case ce:return Wt=JA(Wt),is(Rt,Et,Wt,fn)}if(Pe(Wt))return ki(Rt,Et,Wt,fn);if(be(Wt)){if(qi=be(Wt),typeof qi!="function")throw Error(i(150));return Wt=qi.call(Wt),tr(Rt,Et,Wt,fn)}if(typeof Wt.then=="function")return is(Rt,Et,pc(Wt),fn);if(Wt.$$typeof===ee)return is(Rt,Et,lp(Rt,Wt),fn);xA(Rt,Wt)}return typeof Wt=="string"&&Wt!==""||typeof Wt=="number"||typeof Wt=="bigint"?(Wt=""+Wt,Et!==null&&Et.tag===6?(x(Rt,Et.sibling),fn=q(Et,Wt),fn.return=Rt,Rt=fn):(x(Rt,Et),fn=Yg(Wt,Rt.mode,fn),fn.return=Rt,Rt=fn),we(Rt)):x(Rt,Et)}return function(Rt,Et,Wt,fn){try{xf=0;var qi=is(Rt,Et,Wt,fn);return _A=null,qi}catch(Di){if(Di===_f||Di===cp)throw Di;var Bo=Qi(29,Di,null,Rt.mode);return Bo.lanes=fn,Bo.return=Rt,Bo}}}var th=su(!0),S0=su(!1),wA=!1;function nh(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nc(f,y){f=f.updateQueue,y.updateQueue===f&&(y.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function ih(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function rh(f,y,x){var D=f.updateQueue;if(D===null)return null;if(D=D.shared,(qo&2)!==0){var q=D.pending;return q===null?y.next=y:(y.next=q.next,q.next=y),D.pending=y,y=qA(f),QA(f,null,x),y}return eu(f,D,y,x),qA(f)}function Fh(f,y,x){if(y=y.updateQueue,y!==null&&(y=y.shared,(x&4194048)!==0)){var D=y.lanes;D&=f.pendingLanes,x|=D,y.lanes=x,so(f,x)}}function cm(f,y){var x=f.updateQueue,D=f.alternate;if(D!==null&&(D=D.updateQueue,x===D)){var q=null,ne=null;if(x=x.firstBaseUpdate,x!==null){do{var we={lane:x.lane,tag:x.tag,payload:x.payload,callback:null,next:null};ne===null?q=ne=we:ne=ne.next=we,x=x.next}while(x!==null);ne===null?q=ne=y:ne=ne.next=y}else q=ne=y;x={baseState:D.baseState,firstBaseUpdate:q,lastBaseUpdate:ne,shared:D.shared,callbacks:D.callbacks},f.updateQueue=x;return}f=x.lastBaseUpdate,f===null?x.firstBaseUpdate=y:f.next=y,x.lastBaseUpdate=y}var Gc=!1;function ur(){if(Gc){var f=Ll;if(f!==null)throw f}}function Od(f,y,x,D){Gc=!1;var q=f.updateQueue;wA=!1;var ne=q.firstBaseUpdate,we=q.lastBaseUpdate,We=q.shared.pending;if(We!==null){q.shared.pending=null;var gt=We,Gt=gt.next;gt.next=null,we===null?ne=Gt:we.next=Gt,we=gt;var sn=f.alternate;sn!==null&&(sn=sn.updateQueue,We=sn.lastBaseUpdate,We!==we&&(We===null?sn.firstBaseUpdate=Gt:We.next=Gt,sn.lastBaseUpdate=gt))}if(ne!==null){var hn=q.baseState;we=0,sn=Gt=gt=null,We=ne;do{var qt=We.lane&-536870913,nn=qt!==We.lane;if(nn?(Nr&qt)===qt:(D&qt)===qt){qt!==0&&qt===yl&&(Gc=!0),sn!==null&&(sn=sn.next={lane:0,tag:We.tag,payload:We.payload,callback:null,next:null});e:{var ki=f,tr=We;qt=y;var is=x;switch(tr.tag){case 1:if(ki=tr.payload,typeof ki=="function"){hn=ki.call(is,hn,qt);break e}hn=ki;break e;case 3:ki.flags=ki.flags&-65537|128;case 0:if(ki=tr.payload,qt=typeof ki=="function"?ki.call(is,hn,qt):ki,qt==null)break e;hn=v({},hn,qt);break e;case 2:wA=!0}}qt=We.callback,qt!==null&&(f.flags|=64,nn&&(f.flags|=8192),nn=q.callbacks,nn===null?q.callbacks=[qt]:nn.push(qt))}else nn={lane:qt,tag:We.tag,payload:We.payload,callback:We.callback,next:null},sn===null?(Gt=sn=nn,gt=hn):sn=sn.next=nn,we|=qt;if(We=We.next,We===null){if(We=q.shared.pending,We===null)break;nn=We,We=nn.next,nn.next=null,q.lastBaseUpdate=nn,q.shared.pending=null}}while(!0);sn===null&&(gt=hn),q.baseState=gt,q.firstBaseUpdate=Gt,q.lastBaseUpdate=sn,ne===null&&(q.shared.lanes=0),Vh|=we,f.lanes=we,f.memoizedState=hn}}function hp(f,y){if(typeof f!="function")throw Error(i(191,f));f.call(y)}function au(f,y){var x=f.callbacks;if(x!==null)for(f.callbacks=null,f=0;fne?ne:8;var we=ke.T,We={};ke.T=We,ja(f,!1,y,x);try{var gt=q(),Gt=ke.S;if(Gt!==null&&Gt(We,gt),gt!==null&&typeof gt=="object"&&typeof gt.then=="function"){var sn=lb(gt,D);yc(f,y,sn,du(f))}else yc(f,y,D,du(f))}catch(hn){yc(f,y,{then:function(){},status:"rejected",reason:hn},du())}finally{Qe.p=ne,we!==null&&We.types!==null&&(we.types=We.types),ke.T=we}}function da(){}function ys(f,y,x,D){if(f.tag!==5)throw Error(i(476));var q=ta(f).queue;Lo(f,q,y,nt,x===null?da:function(){return vs(f),x(D)})}function ta(f){var y=f.memoizedState;if(y!==null)return y;y={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lu,lastRenderedState:nt},next:null};var x={};return y.next={memoizedState:x,baseState:x,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lu,lastRenderedState:x},next:null},f.memoizedState=y,f=f.alternate,f!==null&&(f.memoizedState=y),y}function vs(f){var y=ta(f);y.next===null&&(y=f.alternate.memoizedState),yc(f,y.next.queue,{},du())}function il(){return Fa(fh)}function rl(){return ks().memoizedState}function Ea(){return ks().memoizedState}function fa(f){for(var y=f.return;y!==null;){switch(y.tag){case 24:case 3:var x=du();f=ih(x);var D=rh(y,f,x);D!==null&&(fu(D,y,x),Fh(D,y,x)),y={cache:Cf()},f.payload=y;return}y=y.return}}function qc(f,y,x){var D=du();x={lane:D,revertLane:0,gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},uu(f)?ah(y,x):(x=Rh(f,y,x,D),x!==null&&(fu(x,f,D),Rd(x,y,D)))}function Wh(f,y,x){var D=du();yc(f,y,x,D)}function yc(f,y,x,D){var q={lane:D,revertLane:0,gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null};if(uu(f))ah(y,q);else{var ne=f.alternate;if(f.lanes===0&&(ne===null||ne.lanes===0)&&(ne=y.lastRenderedReducer,ne!==null))try{var we=y.lastRenderedState,We=ne(we,x);if(q.hasEagerState=!0,q.eagerState=We,Ka(We,we))return eu(f,y,q,0),_s===null&&WA(),!1}catch{}if(x=Rh(f,y,q,D),x!==null)return fu(x,f,D),Rd(x,y,D),!0}return!1}function ja(f,y,x,D){if(D={lane:2,revertLane:kb(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},uu(f)){if(y)throw Error(i(479))}else y=Rh(f,x,D,2),y!==null&&fu(y,f,2)}function uu(f){var y=f.alternate;return f===zi||y!==null&&y===zi}function ah(f,y){wf=dp=!0;var x=f.pending;x===null?y.next=y:(y.next=x.next,x.next=y),f.pending=y}function Rd(f,y,x){if((x&4194048)!==0){var D=y.lanes;D&=f.pendingLanes,x|=D,y.lanes=x,so(f,x)}}var Fl={readContext:Fa,use:Of,useCallback:gs,useContext:gs,useEffect:gs,useImperativeHandle:gs,useLayoutEffect:gs,useInsertionEffect:gs,useMemo:gs,useReducer:gs,useRef:gs,useState:gs,useDebugValue:gs,useDeferredValue:gs,useTransition:gs,useSyncExternalStore:gs,useId:gs,useHostTransitionStatus:gs,useFormState:gs,useActionState:gs,useOptimistic:gs,useMemoCache:gs,useCacheRefresh:gs};Fl.useEffectEvent=gs;var Fu={readContext:Fa,use:Of,useCallback:function(f,y){return za().memoizedState=[f,y===void 0?null:y],f},useContext:Fa,useEffect:ut,useImperativeHandle:function(f,y,x){x=x!=null?x.concat([f]):null,tt(4194308,4,Ai.bind(null,y,f),x)},useLayoutEffect:function(f,y){return tt(4194308,4,f,y)},useInsertionEffect:function(f,y){tt(4,2,f,y)},useMemo:function(f,y){var x=za();y=y===void 0?null:y;var D=f();if(SA){Gn(!0);try{f()}finally{Gn(!1)}}return x.memoizedState=[D,y],D},useReducer:function(f,y,x){var D=za();if(x!==void 0){var q=x(y);if(SA){Gn(!0);try{x(y)}finally{Gn(!1)}}}else q=y;return D.memoizedState=D.baseState=q,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:q},D.queue=f,f=f.dispatch=qc.bind(null,zi,f),[D.memoizedState,f]},useRef:function(f){var y=za();return f={current:f},y.memoizedState=f},useState:function(f){f=k(f);var y=f.queue,x=Wh.bind(null,zi,y);return y.dispatch=x,[f.memoizedState,x]},useDebugValue:cn,useDeferredValue:function(f,y){var x=za();return fr(x,f,y)},useTransition:function(){var f=k(!1);return f=Lo.bind(null,zi,f.queue,!0,!1),za().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,y,x){var D=zi,q=za();if(Sr){if(x===void 0)throw Error(i(407));x=x()}else{if(x=y(),_s===null)throw Error(i(349));(Nr&127)!==0||O(D,y,x)}q.memoizedState=x;var ne={value:x,getSnapshot:y};return q.queue=ne,ut(p.bind(null,D,ne,f),[f]),D.flags|=2048,ft(9,{destroy:void 0},u.bind(null,D,ne,x,y),null),x},useId:function(){var f=za(),y=_s.identifierPrefix;if(Sr){var x=Fc,D=Pl;x=(D&~(1<<32-yt(D)-1)).toString(32)+x,y="_"+y+"R_"+x,x=es++,0<\/script>",ne=ne.removeChild(ne.firstChild);break;case"select":ne=typeof D.is=="string"?we.createElement("select",{is:D.is}):we.createElement("select"),D.multiple?ne.multiple=!0:D.size&&(ne.size=D.size);break;default:ne=typeof D.is=="string"?we.createElement(q,{is:D.is}):we.createElement(q)}}ne[nr]=y,ne[hs]=D;e:for(we=y.child;we!==null;){if(we.tag===5||we.tag===6)ne.appendChild(we.stateNode);else if(we.tag!==4&&we.tag!==27&&we.child!==null){we.child.return=we,we=we.child;continue}if(we===y)break e;for(;we.sibling===null;){if(we.return===null||we.return===y)break e;we=we.return}we.sibling.return=we.return,we=we.sibling}y.stateNode=ne;e:switch(xl(ne,q,D),q){case"button":case"input":case"select":case"textarea":D=!!D.autoFocus;break e;case"img":D=!0;break e;default:D=!1}D&&Ud(y)}}return Ds(y),n1(y,y.type,f===null?null:f.memoizedProps,y.pendingProps,x),null;case 6:if(f&&y.stateNode!=null)f.memoizedProps!==D&&Ud(y);else{if(typeof D!="string"&&y.stateNode===null)throw Error(i(166));if(f=Ct.current,Gs(y)){if(f=y.stateNode,x=y.memoizedProps,D=null,q=js,q!==null)switch(q.tag){case 27:case 5:D=q.memoizedProps}f[nr]=y,f=!!(f.nodeValue===x||D!==null&&D.suppressHydrationWarning===!0||Lb(f.nodeValue,x)),f||Uh(y,!0)}else f=Yy(f).createTextNode(D),f[nr]=y,y.stateNode=f}return Ds(y),null;case 31:if(x=y.memoizedState,f===null||f.memoizedState!==null){if(D=Gs(y),x!==null){if(f===null){if(!D)throw Error(i(318));if(f=y.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(557));f[nr]=y}else bA(),(y.flags&128)===0&&(y.memoizedState=null),y.flags|=4;Ds(y),f=!1}else x=qe(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=x),f=!0;if(!f)return y.flags&256?(ea(y),y):(ea(y),null);if((y.flags&128)!==0)throw Error(i(558))}return Ds(y),null;case 13:if(D=y.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(q=Gs(y),D!==null&&D.dehydrated!==null){if(f===null){if(!q)throw Error(i(318));if(q=y.memoizedState,q=q!==null?q.dehydrated:null,!q)throw Error(i(317));q[nr]=y}else bA(),(y.flags&128)===0&&(y.memoizedState=null),y.flags|=4;Ds(y),q=!1}else q=qe(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=q),q=!0;if(!q)return y.flags&256?(ea(y),y):(ea(y),null)}return ea(y),(y.flags&128)!==0?(y.lanes=x,y):(x=D!==null,f=f!==null&&f.memoizedState!==null,x&&(D=y.child,q=null,D.alternate!==null&&D.alternate.memoizedState!==null&&D.alternate.memoizedState.cachePool!==null&&(q=D.alternate.memoizedState.cachePool.pool),ne=null,D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(ne=D.memoizedState.cachePool.pool),ne!==q&&(D.flags|=2048)),x!==f&&x&&(y.child.flags|=8192),Cl(y,y.updateQueue),Ds(y),null);case 4:return Ie(),f===null&&Rb(y.stateNode.containerInfo),Ds(y),null;case 10:return ZA(y.type),Ds(y),null;case 19:if(lt(eo),D=y.memoizedState,D===null)return Ds(y),null;if(q=(y.flags&128)!==0,ne=D.rendering,ne===null)if(q)vm(D,!1);else{if(na!==0||f!==null&&(f.flags&128)!==0)for(f=y.child;f!==null;){if(ne=hm(f),ne!==null){for(y.flags|=128,vm(D,!1),f=ne.updateQueue,y.updateQueue=f,Cl(y,f),y.subtreeFlags=0,f=x,x=y.child;x!==null;)op(x,f),x=x.sibling;return Ke(eo,eo.current&1|2),Sr&&yA(y,D.treeForkCount),y.child}f=f.sibling}D.tail!==null&&On()>l1&&(y.flags|=128,q=!0,vm(D,!1),y.lanes=4194304)}else{if(!q)if(f=hm(ne),f!==null){if(y.flags|=128,q=!0,f=f.updateQueue,y.updateQueue=f,Cl(y,f),vm(D,!0),D.tail===null&&D.tailMode==="hidden"&&!ne.alternate&&!Sr)return Ds(y),null}else 2*On()-D.renderingStartTime>l1&&x!==536870912&&(y.flags|=128,q=!0,vm(D,!1),y.lanes=4194304);D.isBackwards?(ne.sibling=y.child,y.child=ne):(f=D.last,f!==null?f.sibling=ne:y.child=ne,D.last=ne)}return D.tail!==null?(f=D.tail,D.rendering=f,D.tail=f.sibling,D.renderingStartTime=On(),f.sibling=null,x=eo.current,Ke(eo,q?x&1|2:x&1),Sr&&yA(y,D.treeForkCount),f):(Ds(y),null);case 22:case 23:return ea(y),vl(),D=y.memoizedState!==null,f!==null?f.memoizedState!==null!==D&&(y.flags|=8192):D&&(y.flags|=8192),D?(x&536870912)!==0&&(y.flags&128)===0&&(Ds(y),y.subtreeFlags&6&&(y.flags|=8192)):Ds(y),x=y.updateQueue,x!==null&&Cl(y,x.retryQueue),x=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),D=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(D=y.memoizedState.cachePool.pool),D!==x&&(y.flags|=2048),f!==null&<(ha),null;case 24:return x=null,f!==null&&(x=f.memoizedState.cache),y.memoizedState.cache!==x&&(y.flags|=2048),ZA(Aa),Ds(y),null;case 25:return null;case 30:return null}throw Error(i(156,y.tag))}function h_(f,y){switch($A(y),y.tag){case 1:return f=y.flags,f&65536?(y.flags=f&-65537|128,y):null;case 3:return ZA(Aa),Ie(),f=y.flags,(f&65536)!==0&&(f&128)===0?(y.flags=f&-65537|128,y):null;case 26:case 27:case 5:return it(y),null;case 31:if(y.memoizedState!==null){if(ea(y),y.alternate===null)throw Error(i(340));bA()}return f=y.flags,f&65536?(y.flags=f&-65537|128,y):null;case 13:if(ea(y),f=y.memoizedState,f!==null&&f.dehydrated!==null){if(y.alternate===null)throw Error(i(340));bA()}return f=y.flags,f&65536?(y.flags=f&-65537|128,y):null;case 19:return lt(eo),null;case 4:return Ie(),null;case 10:return ZA(y.type),null;case 22:case 23:return ea(y),vl(),f!==null&<(ha),f=y.flags,f&65536?(y.flags=f&-65537|128,y):null;case 24:return ZA(Aa),null;case 25:return null;default:return null}}function bm(f,y){switch($A(y),y.tag){case 3:ZA(Aa),Ie();break;case 26:case 27:case 5:it(y);break;case 4:Ie();break;case 31:y.memoizedState!==null&&ea(y);break;case 13:ea(y);break;case 19:lt(eo);break;case 10:ZA(y.type);break;case 22:case 23:ea(y),vl(),f!==null&<(ha);break;case 24:ZA(Aa)}}function Cm(f,y){try{var x=y.updateQueue,D=x!==null?x.lastEffect:null;if(D!==null){var q=D.next;x=q;do{if((x.tag&f)===f){D=void 0;var ne=x.create,we=x.inst;D=ne(),we.destroy=D}x=x.next}while(x!==q)}}catch(We){Uo(y,y.return,We)}}function Tf(f,y,x){try{var D=y.updateQueue,q=D!==null?D.lastEffect:null;if(q!==null){var ne=q.next;D=ne;do{if((D.tag&f)===f){var we=D.inst,We=we.destroy;if(We!==void 0){we.destroy=void 0,q=y;var gt=x,Gt=We;try{Gt()}catch(sn){Uo(q,gt,sn)}}}D=D.next}while(D!==ne)}}catch(sn){Uo(y,y.return,sn)}}function Dy(f){var y=f.updateQueue;if(y!==null){var x=f.stateNode;try{au(y,x)}catch(D){Uo(f,f.return,D)}}}function r1(f,y,x){x.props=ju(f.type,f.memoizedProps),x.state=f.memoizedState;try{x.componentWillUnmount()}catch(D){Uo(f,y,D)}}function _m(f,y){try{var x=f.ref;if(x!==null){switch(f.tag){case 26:case 27:case 5:var D=f.stateNode;break;case 30:D=f.stateNode;break;default:D=f.stateNode}typeof x=="function"?f.refCleanup=x(D):x.current=D}}catch(q){Uo(f,y,q)}}function Ba(f,y){var x=f.ref,D=f.refCleanup;if(x!==null)if(typeof D=="function")try{D()}catch(q){Uo(f,y,q)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof x=="function")try{x(null)}catch(q){Uo(f,y,q)}else x.current=null}function kf(f){var y=f.type,x=f.memoizedProps,D=f.stateNode;try{e:switch(y){case"button":case"input":case"select":case"textarea":x.autoFocus&&D.focus();break e;case"img":x.src?D.src=x.src:x.srcSet&&(D.srcset=x.srcSet)}}catch(q){Uo(f,f.return,q)}}function Ry(f,y,x){try{var D=f.stateNode;O_(D,f.type,x,y),D[hs]=y}catch(q){Uo(f,f.return,q)}}function fb(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&Gu(f.type)||f.tag===4}function pb(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||fb(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&Gu(f.type)||f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function mb(f,y,x){var D=f.tag;if(D===5||D===6)f=f.stateNode,y?(x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x).insertBefore(f,y):(y=x.nodeType===9?x.body:x.nodeName==="HTML"?x.ownerDocument.body:x,y.appendChild(f),x=x._reactRootContainer,x!=null||y.onclick!==null||(y.onclick=Zs));else if(D!==4&&(D===27&&Gu(f.type)&&(x=f.stateNode,y=null),f=f.child,f!==null))for(mb(f,y,x),f=f.sibling;f!==null;)mb(f,y,x),f=f.sibling}function xm(f,y,x){var D=f.tag;if(D===5||D===6)f=f.stateNode,y?x.insertBefore(f,y):x.appendChild(f);else if(D!==4&&(D===27&&Gu(f.type)&&(x=f.stateNode),f=f.child,f!==null))for(xm(f,y,x),f=f.sibling;f!==null;)xm(f,y,x),f=f.sibling}function Py(f){var y=f.stateNode,x=f.memoizedProps;try{for(var D=f.type,q=y.attributes;q.length;)y.removeAttributeNode(q[0]);xl(y,D,x),y[nr]=f,y[hs]=x}catch(ne){Uo(f,f.return,ne)}}var Kd=!1,Rs=!1,wm=!1,d_=typeof WeakSet=="function"?WeakSet:Set,jl=null;function p3(f,y){if(f=f.containerInfo,hh=$0,f=_0(f),am(f)){if("selectionStart"in f)var x={start:f.selectionStart,end:f.selectionEnd};else e:{x=(x=f.ownerDocument)&&x.defaultView||window;var D=x.getSelection&&x.getSelection();if(D&&D.rangeCount!==0){x=D.anchorNode;var q=D.anchorOffset,ne=D.focusNode;D=D.focusOffset;try{x.nodeType,ne.nodeType}catch{x=null;break e}var we=0,We=-1,gt=-1,Gt=0,sn=0,hn=f,qt=null;t:for(;;){for(var nn;hn!==x||q!==0&&hn.nodeType!==3||(We=we+q),hn!==ne||D!==0&&hn.nodeType!==3||(gt=we+D),hn.nodeType===3&&(we+=hn.nodeValue.length),(nn=hn.firstChild)!==null;)qt=hn,hn=nn;for(;;){if(hn===f)break t;if(qt===x&&++Gt===q&&(We=we),qt===ne&&++sn===D&&(gt=we),(nn=hn.nextSibling)!==null)break;hn=qt,qt=hn.parentNode}hn=nn}x=We===-1||gt===-1?null:{start:We,end:gt}}else x=null}x=x||{start:0,end:0}}else x=null;for(N0={focusedElem:f,selectionRange:x},$0=!1,jl=y;jl!==null;)if(y=jl,f=y.child,(y.subtreeFlags&1028)!==0&&f!==null)f.return=y,jl=f;else for(;jl!==null;){switch(y=jl,ne=y.alternate,f=y.flags,y.tag){case 0:if((f&4)!==0&&(f=y.updateQueue,f=f!==null?f.events:null,f!==null))for(x=0;x title"))),xl(ne,D,x),ne[nr]=f,yo(ne),D=ne;break e;case"link":var we=Jy("link","href",q).get(D+(x.href||""));if(we){for(var We=0;Weis&&(we=is,is=tr,tr=we);var Rt=gf(We,tr),Et=gf(We,is);if(Rt&&Et&&(nn.rangeCount!==1||nn.anchorNode!==Rt.node||nn.anchorOffset!==Rt.offset||nn.focusNode!==Et.node||nn.focusOffset!==Et.offset)){var Wt=hn.createRange();Wt.setStart(Rt.node,Rt.offset),nn.removeAllRanges(),tr>is?(nn.addRange(Wt),nn.extend(Et.node,Et.offset)):(Wt.setEnd(Et.node,Et.offset),nn.addRange(Wt))}}}}for(hn=[],nn=We;nn=nn.parentNode;)nn.nodeType===1&&hn.push({element:nn,left:nn.scrollLeft,top:nn.scrollTop});for(typeof We.focus=="function"&&We.focus(),We=0;Wex?32:x,ke.T=null,x=u1,u1=null;var ne=Rf,we=Zh;if(Ga=0,Nd=Rf=null,Zh=0,(qo&6)!==0)throw Error(i(331));var We=qo;if(qo|=4,Ly(ne.current),Sm(ne,ne.current,we,x),qo=We,p1(0,!1),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Dt,ne)}catch{}return!0}finally{Qe.p=q,ke.T=D,Gy(f,y)}}function Wy(f,y,x){y=nu(x,y),y=lh(f.stateNode,y,2),f=rh(f,y,2),f!==null&&(Qr(f,2),Xh(f))}function Uo(f,y,x){if(f.tag===3)Wy(f,f,x);else for(;y!==null;){if(y.tag===3){Wy(y,f,x);break}else if(y.tag===1){var D=y.stateNode;if(typeof y.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(Hh===null||!Hh.has(D))){f=nu(x,f),x=Qh(2),D=rh(y,x,2),D!==null&&(bl(x,D,y,f),Qr(D,2),Xh(D));break}}y=y.return}}function Ob(f,y,x){var D=f.pingCache;if(D===null){D=f.pingCache=new y3;var q=new Set;D.set(y,q)}else q=D.get(y),q===void 0&&(q=new Set,D.set(y,q));q.has(x)||(Cb=!0,q.add(x),f=_3.bind(null,f,y,x),y.then(f,f))}function _3(f,y,x){var D=f.pingCache;D!==null&&D.delete(y),f.pingedLanes|=f.suspendedLanes&x,f.warmLanes&=~x,_s===f&&(Nr&x)===x&&(na===4||na===3&&(Nr&62914560)===Nr&&300>On()-Uy?(qo&2)===0&&Pf(f,0):a1|=x,R0===Nr&&(R0=0)),Xh(f)}function b_(f,y){y===0&&(y=mr()),f=Ph(f,y),f!==null&&(Qr(f,y),Xh(f))}function F0(f){var y=f.memoizedState,x=0;y!==null&&(x=y.retryLane),b_(f,x)}function z0(f,y){var x=0;switch(f.tag){case 31:case 13:var D=f.stateNode,q=f.memoizedState;q!==null&&(x=q.retryLane);break;case 19:D=f.stateNode;break;case 22:D=f.stateNode._retryCache;break;default:throw Error(i(314))}D!==null&&D.delete(y),b_(f,x)}function Ib(f,y){return Jn(f,y)}var d1=null,xp=null,j0=!1,f1=!1,Tb=!1,wp=0;function Xh(f){f!==xp&&f.next===null&&(xp===null?d1=xp=f:xp=xp.next=f),f1=!0,j0||(j0=!0,x3())}function p1(f,y){if(!Tb&&f1){Tb=!0;do for(var x=!1,D=d1;D!==null;){if(f!==0){var q=D.pendingLanes;if(q===0)var ne=0;else{var we=D.suspendedLanes,We=D.pingedLanes;ne=(1<<31-yt(42|f)+1)-1,ne&=q&~(we&~We),ne=ne&201326741?ne&201326741|1:ne?ne|2:0}ne!==0&&(x=!0,w_(D,ne))}else ne=Nr,ne=or(D,D===_s?ne:0,D.cancelPendingCommit!==null||D.timeoutHandle!==-1),(ne&3)===0||Ut(D,ne)||(x=!0,w_(D,ne));D=D.next}while(x);Tb=!1}}function Qy(){C_()}function C_(){f1=j0=!1;var f=0;wp!==0&&M3()&&(f=wp);for(var y=On(),x=null,D=d1;D!==null;){var q=D.next,ne=__(D,y);ne===0?(D.next=null,x===null?d1=q:x.next=q,q===null&&(xp=x)):(x=D,(f!==0||(ne&3)!==0)&&(f1=!0)),D=q}Ga!==0&&Ga!==5||p1(f),wp!==0&&(wp=0)}function __(f,y){for(var x=f.suspendedLanes,D=f.pingedLanes,q=f.expirationTimes,ne=f.pendingLanes&-62914561;0We)break;var sn=gt.transferSize,hn=gt.initiatorType;sn&&Ub(hn)&&(gt=gt.responseEnd,we+=sn*(gt"u"?null:document;function Hy(f,y,x){var D=Ep;if(D&&typeof y=="string"&&y){var q=Ua(y);q='link[rel="'+f+'"][href="'+q+'"]',typeof x=="string"&&(q+='[crossorigin="'+x+'"]'),Kf.has(q)||(Kf.add(q),f={rel:f,crossOrigin:x,href:y},D.querySelector(q)===null&&(y=D.createElement("link"),xl(y,"link",f),yo(y),D.head.appendChild(y)))}}function Nb(f){Jh.D(f),Hy("dns-prefetch",f,null)}function w1(f,y){Jh.C(f,y),Hy("preconnect",f,y)}function W0(f,y,x){Jh.L(f,y,x);var D=Ep;if(D&&f&&y){var q='link[rel="preload"][as="'+Ua(y)+'"]';y==="image"&&x&&x.imageSrcSet?(q+='[imagesrcset="'+Ua(x.imageSrcSet)+'"]',typeof x.imageSizes=="string"&&(q+='[imagesizes="'+Ua(x.imageSizes)+'"]')):q+='[href="'+Ua(f)+'"]';var ne=q;switch(y){case"style":ne=km(f);break;case"script":ne=Q0(f)}ol.has(ne)||(f=v({rel:"preload",href:y==="image"&&x&&x.imageSrcSet?void 0:f,as:y},x),ol.set(ne,f),D.querySelector(q)!==null||y==="style"&&D.querySelector(S1(ne))||y==="script"&&D.querySelector(E1(ne))||(y=D.createElement("link"),xl(y,"link",f),yo(y),D.head.appendChild(y)))}}function L_(f,y){Jh.m(f,y);var x=Ep;if(x&&f){var D=y&&typeof y.as=="string"?y.as:"script",q='link[rel="modulepreload"][as="'+Ua(D)+'"][href="'+Ua(f)+'"]',ne=q;switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":ne=Q0(f)}if(!ol.has(ne)&&(f=v({rel:"modulepreload",href:f},y),ol.set(ne,f),x.querySelector(q)===null)){switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(x.querySelector(E1(ne)))return}D=x.createElement("link"),xl(D,"link",f),yo(D),x.head.appendChild(D)}}}function U_(f,y,x){Jh.S(f,y,x);var D=Ep;if(D&&f){var q=Zl(D).hoistableStyles,ne=km(f);y=y||"default";var we=q.get(ne);if(!we){var We={loading:0,preload:null};if(we=D.querySelector(S1(ne)))We.loading=5;else{f=v({rel:"stylesheet",href:f,"data-precedence":y},x),(x=ol.get(ne))&&Zy(f,x);var gt=we=D.createElement("link");yo(gt),xl(gt,"link",f),gt._p=new Promise(function(Gt,sn){gt.onload=Gt,gt.onerror=sn}),gt.addEventListener("load",function(){We.loading|=1}),gt.addEventListener("error",function(){We.loading|=2}),We.loading|=4,ed(we,y,D)}we={type:"stylesheet",instance:we,count:1,state:We},q.set(ne,we)}}}function sl(f,y){Jh.X(f,y);var x=Ep;if(x&&f){var D=Zl(x).hoistableScripts,q=Q0(f),ne=D.get(q);ne||(ne=x.querySelector(E1(q)),ne||(f=v({src:f,async:!0},y),(y=ol.get(q))&&Xy(f,y),ne=x.createElement("script"),yo(ne),xl(ne,"link",f),x.head.appendChild(ne)),ne={type:"script",instance:ne,count:1,state:null},D.set(q,ne))}}function wc(f,y){Jh.M(f,y);var x=Ep;if(x&&f){var D=Zl(x).hoistableScripts,q=Q0(f),ne=D.get(q);ne||(ne=x.querySelector(E1(q)),ne||(f=v({src:f,async:!0,type:"module"},y),(y=ol.get(q))&&Xy(f,y),ne=x.createElement("script"),yo(ne),xl(ne,"link",f),x.head.appendChild(ne)),ne={type:"script",instance:ne,count:1,state:null},D.set(q,ne))}}function M1(f,y,x,D){var q=(q=Ct.current)?x1(q):null;if(!q)throw Error(i(446));switch(f){case"meta":case"title":return null;case"style":return typeof x.precedence=="string"&&typeof x.href=="string"?(y=km(x.href),x=Zl(q).hoistableStyles,D=x.get(y),D||(D={type:"style",instance:null,count:0,state:null},x.set(y,D)),D):{type:"void",instance:null,count:0,state:null};case"link":if(x.rel==="stylesheet"&&typeof x.href=="string"&&typeof x.precedence=="string"){f=km(x.href);var ne=Zl(q).hoistableStyles,we=ne.get(f);if(we||(q=q.ownerDocument||q,we={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},ne.set(f,we),(ne=q.querySelector(S1(f)))&&!ne._p&&(we.instance=ne,we.state.loading=5),ol.has(f)||(x={rel:"preload",as:"style",href:x.href,crossOrigin:x.crossOrigin,integrity:x.integrity,media:x.media,hrefLang:x.hrefLang,referrerPolicy:x.referrerPolicy},ol.set(f,x),ne||O3(q,f,x,we.state))),y&&D===null)throw Error(i(528,""));return we}if(y&&D!==null)throw Error(i(529,""));return null;case"script":return y=x.async,x=x.src,typeof x=="string"&&y&&typeof y!="function"&&typeof y!="symbol"?(y=Q0(x),x=Zl(q).hoistableScripts,D=x.get(y),D||(D={type:"script",instance:null,count:0,state:null},x.set(y,D)),D):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,f))}}function km(f){return'href="'+Ua(f)+'"'}function S1(f){return'link[rel="stylesheet"]['+f+"]"}function Gb(f){return v({},f,{"data-precedence":f.precedence,precedence:null})}function O3(f,y,x,D){f.querySelector('link[rel="preload"][as="style"]['+y+"]")?D.loading=1:(y=f.createElement("link"),D.preload=y,y.addEventListener("load",function(){return D.loading|=1}),y.addEventListener("error",function(){return D.loading|=2}),xl(y,"link",x),yo(y),f.head.appendChild(y))}function Q0(f){return'[src="'+Ua(f)+'"]'}function E1(f){return"script[async]"+f}function B1(f,y,x){if(y.count++,y.instance===null)switch(y.type){case"style":var D=f.querySelector('style[data-href~="'+Ua(x.href)+'"]');if(D)return y.instance=D,yo(D),D;var q=v({},x,{"data-href":x.href,"data-precedence":x.precedence,href:null,precedence:null});return D=(f.ownerDocument||f).createElement("style"),yo(D),xl(D,"style",q),ed(D,x.precedence,f),y.instance=D;case"stylesheet":q=km(x.href);var ne=f.querySelector(S1(q));if(ne)return y.state.loading|=4,y.instance=ne,yo(ne),ne;D=Gb(x),(q=ol.get(q))&&Zy(D,q),ne=(f.ownerDocument||f).createElement("link"),yo(ne);var we=ne;return we._p=new Promise(function(We,gt){we.onload=We,we.onerror=gt}),xl(ne,"link",D),y.state.loading|=4,ed(ne,x.precedence,f),y.instance=ne;case"script":return ne=Q0(x.src),(q=f.querySelector(E1(ne)))?(y.instance=q,yo(q),q):(D=x,(q=ol.get(ne))&&(D=v({},x),Xy(D,q)),f=f.ownerDocument||f,q=f.createElement("script"),yo(q),xl(q,"link",D),f.head.appendChild(q),y.instance=q);case"void":return null;default:throw Error(i(443,y.type))}else y.type==="stylesheet"&&(y.state.loading&4)===0&&(D=y.instance,y.state.loading|=4,ed(D,x.precedence,f));return y.instance}function ed(f,y,x){for(var D=x.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),q=D.length?D[D.length-1]:null,ne=q,we=0;we title"):null)}function K_(f,y,x){if(x===1||y.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof y.precedence!="string"||typeof y.href!="string"||y.href==="")break;return!0;case"link":if(typeof y.rel!="string"||typeof y.href!="string"||y.href===""||y.onLoad||y.onError)break;return y.rel==="stylesheet"?(f=y.disabled,typeof y.precedence=="string"&&f==null):!0;case"script":if(y.async&&typeof y.async!="function"&&typeof y.async!="symbol"&&!y.onLoad&&!y.onError&&y.src&&typeof y.src=="string")return!0}return!1}function O1(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}function F_(f,y,x,D){if(x.type==="stylesheet"&&(typeof D.media!="string"||matchMedia(D.media).matches!==!1)&&(x.state.loading&4)===0){if(x.instance===null){var q=km(D.href),ne=y.querySelector(S1(q));if(ne){y=ne._p,y!==null&&typeof y=="object"&&typeof y.then=="function"&&(f.count++,f=Y0.bind(f),y.then(f,f)),x.state.loading|=4,x.instance=ne,yo(ne);return}ne=y.ownerDocument||y,D=Gb(D),(q=ol.get(q))&&Zy(D,q),ne=ne.createElement("link"),yo(ne);var we=ne;we._p=new Promise(function(We,gt){we.onload=We,we.onerror=gt}),xl(ne,"link",D),x.instance=ne}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(x,y),(y=x.state.preload)&&(x.state.loading&3)===0&&(f.count++,x=Y0.bind(f),y.addEventListener("load",x),y.addEventListener("error",x))}}var dh=0;function z_(f,y){return f.stylesheets&&f.count===0&&mu(f,f.stylesheets),0dh?50:800)+y);return f.unsuspend=x,function(){f.unsuspend=null,clearTimeout(D),clearTimeout(q)}}:null}function Y0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var I1=null;function mu(f,y){f.stylesheets=null,f.unsuspend!==null&&(f.count++,I1=new Map,y.forEach(V0,f),I1=null,Y0.call(f))}function V0(f,y){if(!(y.state.loading&4)){var x=I1.get(f);if(x)var D=x.get(null);else{x=new Map,I1.set(f,x);for(var q=f.querySelectorAll("link[data-precedence],style[data-precedence]"),ne=0;ne"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),t8.exports=sue(),t8.exports}var SZ=aue();const lue="modulepreload",uue=function(n){return"/maputnik/"+n},pz={},z1=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){let d=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};var s=d;document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");r=d(t.map(g=>{if(g=uue(g),g in pz)return;pz[g]=!0;const v=g.endsWith(".css"),E=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${E}`))return;const I=document.createElement("link");if(I.rel=v?"stylesheet":lue,v||(I.as="script"),I.crossOrigin="",I.href=g,c&&I.setAttribute("nonce",c),document.head.appendChild(I),v)return new Promise((U,F)=>{I.addEventListener("load",U),I.addEventListener("error",()=>F(new Error(`Unable to preload CSS for ${g}`)))})}))}function o(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return r.then(a=>{for(const c of a||[])c.status==="rejected"&&o(c.reason);return e().catch(o)})},cue=(n,e,t)=>{const i=n[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((r,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Rr=n=>typeof n=="string",U3=()=>{let n,e;const t=new Promise((i,r)=>{n=i,e=r});return t.resolve=n,t.reject=e,t},mz=n=>n==null?"":String(n),Aue=(n,e,t)=>{n.forEach(i=>{e[i]&&(t[i]=e[i])})},hue=/###/g,gz=n=>n&&n.includes("###")?n.replace(hue,"."):n,yz=n=>!n||Rr(n),P4=(n,e,t)=>{const i=Rr(e)?e.split("."):e;let r=0;for(;r{const{obj:i,k:r}=P4(n,e,Object);if(i!==void 0||e.length===1){i[r]=t;return}let o=e[e.length-1],s=e.slice(0,e.length-1),a=P4(n,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=P4(n,s,Object),a?.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t},due=(n,e,t,i)=>{const{obj:r,k:o}=P4(n,e,Object);r[o]=r[o]||[],r[o].push(t)},IE=(n,e)=>{const{obj:t,k:i}=P4(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},fue=(n,e,t)=>{const i=IE(n,t);return i!==void 0?i:IE(e,t)},EZ=(n,e,t)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(Object.prototype.hasOwnProperty.call(n,i)?Rr(n[i])||n[i]instanceof String||Rr(e[i])||e[i]instanceof String?t&&(n[i]=e[i]):EZ(n[i],e[i],t):n[i]=e[i]);return n},j1=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),pue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},mue=n=>Rr(n)?n.replace(/[&<>"'\/]/g,e=>pue[e]):n;class gue{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const yue=[" ",",","?","!",";"],vue=new gue(20),bue=(n,e,t)=>{e=e||"",t=t||"";const i=yue.filter(s=>!e.includes(s)&&!t.includes(s));if(i.length===0)return!0;const r=vue.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!r.test(n);if(!o){const s=n.indexOf(t);s>0&&!r.test(n.substring(0,s))&&(o=!0)}return o},J9=(n,e,t=".")=>{if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const i=e.split(t);let r=n;for(let o=0;on?.replace(/_/g,"-"),Cue={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console?.[n]?.apply?.(console,e)}};class TE{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Cue,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,r){return r&&!this.debug?null:(e=e.map(o=>Rr(o)?o.replace(/[\r\n\x00-\x1F\x7F]/g," "):o),Rr(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new TE(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new TE(this.logger,e)}}var fg=new TE;class nB{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(t)||0;this.observers[i].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){const i=(...r)=>{t(...r),this.off(e,i)};return this.on(e,i),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([r,o])=>{for(let s=0;s{for(let s=0;s-1&&this.options.ns.splice(t,1)}getResource(e,t,i,r={}){const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.includes(".")?a=e.split("."):(a=[e,t],i&&(Array.isArray(i)?a.push(...i):Rr(i)&&o?a.push(...i.split(o)):a.push(i)));const c=IE(this.data,a);return!c&&!t&&!i&&e.includes(".")&&(e=a[0],t=a[1],i=a.slice(2).join(".")),c||!s||!Rr(i)?c:J9(this.data?.[e]?.[t],i,o)}addResource(e,t,i,r,o={silent:!1}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[e,t];i&&(a=a.concat(s?i.split(s):i)),e.includes(".")&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),vz(this.data,a,r),o.silent||this.emit("added",e,t,i,r)}addResources(e,t,i,r={silent:!1}){for(const o in i)(Rr(i[o])||Array.isArray(i[o]))&&this.addResource(e,t,o,i[o],{silent:!0});r.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,r,o,s={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),r=i,i=t,t=a[1]),this.addNamespaces(t);let c=IE(this.data,a)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?EZ(c,i,o):c={...c,...i},vz(this.data,a,c),s.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var BZ={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,i,r){return n.forEach(o=>{e=this.processors[o]?.process(e,t,i,r)??e}),e}};const OZ=Symbol("i18next/PATH_KEY");function _ue(){const n=[],e=Object.create(null);let t;return e.get=(i,r)=>(t?.revoke?.(),r===OZ?n:(n.push(r),t=Proxy.revocable(i,e),t.proxy)),Proxy.revocable(Object.create(null),e).proxy}function xC(n,e){const{[OZ]:t}=n(_ue()),i=e?.keySeparator??".",r=e?.nsSeparator??":",o=e?.enableSelector==="strict";if(t.length>1&&r){const s=e?.ns,a=o?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(a&&(o?a:a.length>1?a.slice(1):[]).includes(t[0]))return`${t[0]}${r}${t.slice(1).join(i)}`}return t.join(i)}const o8=n=>!Rr(n)&&typeof n!="boolean"&&typeof n!="number";class kE extends nB{constructor(e,t={}){super(),Aue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=fg.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const i={...t};if(e==null)return!1;const r=this.resolve(e,i);if(r?.res===void 0)return!1;const o=o8(r.res);return!(i.returnObjects===!1&&o)}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const s=i&&e.includes(i),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!bue(e,i,r);if(s&&!a){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:Rr(o)?[o]:o};const d=e.split(i);(i!==r||i===r&&this.options.ns.includes(d[0]))&&(o=d.shift()),e=d.join(r)}return{key:e,namespaces:Rr(o)?[o]:o}}translate(e,t,i){let r=typeof t=="object"?{...t}:t;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";typeof e=="function"&&(e=xC(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(me=>typeof me=="function"?xC(me,{...this.options,...r}):String(me));const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(e[e.length-1],r),d=c[c.length-1];let g=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const v=r.lng||this.language,E=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return E?o?{res:`${d}${g}${a}`,usedKey:a,exactUsedKey:a,usedLng:v,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:`${d}${g}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:v,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:a;const I=this.resolve(e,r);let U=I?.res;const F=I?.usedKey||a,W=I?.exactUsedKey||a,V=["[object Number]","[object Function]","[object RegExp]"],Y=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,oe=r.count!==void 0&&!Rr(r.count),re=kE.hasDefaultValue(r),ie=oe?this.pluralResolver.getSuffix(v,r.count,r):"",X=r.ordinal&&oe?this.pluralResolver.getSuffix(v,r.count,{ordinal:!1}):"",ce=oe&&!r.ordinal&&r.count===0,$=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${ie}`]||r[`defaultValue${X}`]||r.defaultValue;let ue=U;ee&&!U&&re&&(ue=$);const de=o8(ue),be=Object.prototype.toString.apply(ue);if(ee&&ue&&de&&!V.includes(be)&&!(Rr(Y)&&Array.isArray(ue))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const me=this.options.returnedObjectHandler?this.options.returnedObjectHandler(F,ue,{...r,ns:c}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(I.res=me,I.usedParams=this.getUsedParamsDetails(r),I):me}if(s){const me=Array.isArray(ue),xe=me?[]:{},Pe=me?W:F;for(const ke in ue)if(Object.prototype.hasOwnProperty.call(ue,ke)){const Qe=`${Pe}${s}${ke}`;re&&!U?xe[ke]=this.translate(Qe,{...r,defaultValue:o8($)?$[ke]:void 0,joinArrays:!1,ns:c}):xe[ke]=this.translate(Qe,{...r,joinArrays:!1,ns:c}),xe[ke]===Qe&&(xe[ke]=ue[ke])}U=xe}}else if(ee&&Rr(Y)&&Array.isArray(U))U=U.join(Y),U&&(U=this.extendTranslation(U,e,r,i));else{let me=!1,xe=!1;!this.isValidLookup(U)&&re&&(me=!0,U=$),this.isValidLookup(U)||(xe=!0,U=a);const ke=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&xe?void 0:U,Qe=re&&$!==U&&this.options.updateMissing;if(xe||me||Qe){if(this.logger.log(Qe?"updateKey":"missingKey",v,d,oe&&!Qe?`${a}${this.pluralResolver.getSuffix(v,r.count,r)}`:a,Qe?$:U),s){const Ne=this.resolve(a,{...r,keySeparator:!1});Ne&&Ne.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 nt=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let Ne=0;Ne{const Xe=re&&Ke!==U?Ke:ke;this.options.missingKeyHandler?this.options.missingKeyHandler(Ne,d,lt,Xe,Qe,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Ne,d,lt,Xe,Qe,r),this.emit("missingKey",Ne,d,lt,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?nt.forEach(Ne=>{const lt=this.pluralResolver.getSuffixes(Ne,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!lt.includes(`${this.options.pluralSeparator}zero`)&<.push(`${this.options.pluralSeparator}zero`),lt.forEach(Ke=>{Re([Ne],a+Ke,r[`defaultValue${Ke}`]||$)})}):Re(nt,a,$))}U=this.extendTranslation(U,e,r,I,i),xe&&U===a&&this.options.appendNamespaceToMissingKey&&(U=`${d}${g}${a}`),(xe||me)&&this.options.parseMissingKeyHandler&&(U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${g}${a}`:a,me?U:void 0,r))}return o?(I.res=U,I.usedParams=this.getUsedParamsDetails(r),I):U}extendTranslation(e,t,i,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const c=Rr(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const v=e.match(this.interpolator.nestingRegexp);d=v&&v.length}let g=i.replace&&!Rr(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,i.lng||this.language||r.usedLng,i),c){const v=e.match(this.interpolator.nestingRegexp),E=v&&v.length;do?.[0]===v[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`),null):this.translate(...v,t),i)),i.interpolation&&this.interpolator.reset()}const s=i.postProcess||this.options.postProcess,a=Rr(s)?[s]:s;return e!=null&&a?.length&&i.applyPostProcessor!==!1&&(e=BZ.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,t={}){let i,r,o,s,a;return Rr(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(c=>typeof c=="function"?xC(c,{...this.options,...t}):c)),e.forEach(c=>{if(this.isValidLookup(i))return;const d=this.extractFromKey(c,t),g=d.key;r=g;let v=d.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const E=t.count!==void 0&&!Rr(t.count),I=E&&!t.ordinal&&t.count===0,U=t.context!==void 0&&(Rr(t.context)||typeof t.context=="number")&&t.context!=="",F=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);v.forEach(W=>{this.isValidLookup(i)||(a=W,!this.checkedLoadedFor[`${F[0]}-${W}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${F[0]}-${W}`]=!0,this.logger.warn(`key "${r}" for languages "${F.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),F.forEach(V=>{if(this.isValidLookup(i))return;s=V;const Y=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(Y,g,V,W,t);else{let oe;E&&(oe=this.pluralResolver.getSuffix(V,t.count,t));const re=`${this.options.pluralSeparator}zero`,ie=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(t.ordinal&&oe.startsWith(ie)&&Y.push(g+oe.replace(ie,this.options.pluralSeparator)),Y.push(g+oe),I&&Y.push(g+re)),U){const X=`${g}${this.options.contextSeparator||"_"}${t.context}`;Y.push(X),E&&(t.ordinal&&oe.startsWith(ie)&&Y.push(X+oe.replace(ie,this.options.pluralSeparator)),Y.push(X+oe),I&&Y.push(X+re))}}let ee;for(;ee=Y.pop();)this.isValidLookup(i)||(o=ee,i=this.getResource(V,W,ee,t))}))})}),{res:i,usedKey:r,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,i,r):this.resourceStore.getResource(e,t,i,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!Rr(e.replace);let r=i?e.replace:e;if(i&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const o of t)delete r[o]}return r}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&i.startsWith(t)&&e[i]!==void 0)return!0;return!1}}class Cz{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fg.create("languageUtils")}getScriptPartFromCode(e){if(e=A5(e),!e||!e.includes("-"))return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=A5(e),!e||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Rr(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(i=>{if(t)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;const r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return t=r;const o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(s=>s===o?!0:!s.includes("-")&&!o.includes("-")?!1:!!(s.includes("-")&&!o.includes("-")&&s.slice(0,s.indexOf("-"))===o||s.startsWith(o)&&o.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),Rr(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){const i=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],o=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Rr(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):Rr(e)&&o(this.formatLanguageCode(e)),i.forEach(s=>{r.includes(s)||o(this.formatLanguageCode(s))}),r}}const _z={zero:0,one:1,two:2,few:3,many:4,other:5},xz={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class xue{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=fg.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const i=A5(e==="dev"?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:i,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),xz;if(!e.match(/-|_/))return xz;const c=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(c,t)}return this.pluralRulesCache[o]=s,s}needsPlural(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,i={}){return this.getSuffixes(e,i).map(r=>`${t}${r}`)}getSuffixes(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?i.resolvedOptions().pluralCategories.sort((r,o)=>_z[r]-_z[o]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(e,t,i={}){const r=this.getRule(e,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,i))}}const wz=(n,e,t,i=".",r=!0)=>{let o=fue(n,e,t);return!o&&r&&Rr(t)&&(o=J9(n,t,i),o===void 0&&(o=J9(e,t,i))),o},s8=n=>n.replace(/\$/g,"$$$$");class Mz{constructor(e={}){this.logger=fg.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(t=>t),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:i,useRawValueToEscape:r,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:c,formatSeparator:d,unescapeSuffix:g,unescapePrefix:v,nestingPrefix:E,nestingPrefixEscaped:I,nestingSuffix:U,nestingSuffixEscaped:F,nestingOptionsSeparator:W,maxReplaces:V,alwaysFormat:Y}=e.interpolation;this.escape=t!==void 0?t:mue,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=o?j1(o):s||"{{",this.suffix=a?j1(a):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=g?"":v?j1(v):"-",this.unescapeSuffix=this.unescapePrefix?"":g?j1(g):"",this.nestingPrefix=E?j1(E):I||j1("$t("),this.nestingSuffix=U?j1(U):F||j1(")"),this.nestingOptionsSeparator=W||",",this.maxReplaces=V||1e3,this.alwaysFormat=Y!==void 0?Y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,i)=>t?.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,i,r){let o,s,a;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=I=>{if(!I.includes(this.formatSeparator)){const V=wz(t,c,I,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(V,void 0,i,{...r,...t,interpolationkey:I}):V}const U=I.split(this.formatSeparator),F=U.shift().trim(),W=U.join(this.formatSeparator).trim();return this.format(wz(t,c,F,this.options.keySeparator,this.options.ignoreJSONStructure),W,i,{...r,...t,interpolationkey:F})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const g=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:I=>s8(I)},{regex:this.regexp,safeValue:I=>this.escapeValue?s8(this.escape(I)):s8(I)}].forEach(I=>{for(a=0;o=I.regex.exec(e);){const U=o[1].trim();if(s=d(U),s===void 0)if(typeof g=="function"){const W=g(e,o,r);s=Rr(W)?W:""}else if(r&&Object.prototype.hasOwnProperty.call(r,U))s="";else if(v){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${U} for interpolating ${e}`),s="";else!Rr(s)&&!this.useRawValueToEscape&&(s=mz(s));const F=I.safeValue(s);if(e=e.replace(o[0],F),v?(I.regex.lastIndex+=s.length,I.regex.lastIndex-=o[0].length):I.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,i={}){let r,o,s;const a=(c,d)=>{const g=this.nestingOptionsSeparator;if(!c.includes(g))return c;const v=c.split(new RegExp(`${j1(g)}[ ]*{`));let E=`{${v[1]}`;c=v[0],E=this.interpolate(E,s);const I=E.match(/'/g),U=E.match(/"/g);((I?.length??0)%2===0&&!U||(U?.length??0)%2!==0)&&(E=E.replace(/'/g,'"'));try{s=JSON.parse(E),d&&(s={...d,...s})}catch(F){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,F),`${c}${g}${E}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,c};for(;r=this.nestingRegexp.exec(e);){let c=[];s={...i},s=s.replace&&!Rr(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const d=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(d!==-1&&(c=r[1].slice(d).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),r[1]=r[1].slice(0,d)),o=t(a.call(this,r[1].trim(),s),s),o&&r[0]===e&&!Rr(o))return o;Rr(o)||(o=mz(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),c.length&&(o=c.reduce((g,v)=>this.format(g,v,i.lng,{...i,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const wue=n=>{let e=n.toLowerCase().trim();const t={};if(n.includes("(")){const i=n.split("(");e=i[0].toLowerCase().trim();const r=i[1].slice(0,-1);e==="currency"&&!r.includes(":")?t.currency||(t.currency=r.trim()):e==="relativetime"&&!r.includes(":")?t.range||(t.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...c]=s.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),g=a.trim();t[g]||(t[g]=d),d==="false"&&(t[g]=!1),d==="true"&&(t[g]=!0),isNaN(d)||(t[g]=parseInt(d,10))}})}return{formatName:e,formatOptions:t}},Sz=n=>{const e={};return(t,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});const s=i+JSON.stringify(o);let a=e[s];return a||(a=n(A5(i),r),e[s]=a),a(t)}},Mue=n=>(e,t,i)=>n(A5(t),i)(e);class Sue{constructor(e={}){this.logger=fg.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const i=t.cacheInBuiltFormats?Sz:Mue;this.formats={number:i((r,o)=>{const s=new Intl.NumberFormat(r,{...o});return a=>s.format(a)}),currency:i((r,o)=>{const s=new Intl.NumberFormat(r,{...o,style:"currency"});return a=>s.format(a)}),datetime:i((r,o)=>{const s=new Intl.DateTimeFormat(r,{...o});return a=>s.format(a)}),relativetime:i((r,o)=>{const s=new Intl.RelativeTimeFormat(r,{...o});return a=>s.format(a,o.range||"day")}),list:i((r,o)=>{const s=new Intl.ListFormat(r,{...o});return a=>s.format(a)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Sz(t)}format(e,t,i,r={}){if(!t||e==null)return e;const o=t.split(this.formatSeparator),s=[];for(let c=0;c-1&&!d.includes(")")&&c+1{const{formatName:g,formatOptions:v}=wue(d);if(this.formats[g]){let E=c;try{const I=r?.formatParams?.[r.interpolationkey]||{},U=I.locale||I.lng||r.locale||r.lng||i;E=this.formats[g](c,U,{...v,...r,...I})}catch(I){this.logger.warn(I)}return E}else this.logger.warn(`there was no format function for ${g}`);return c},e)}}const Eue=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class Bue extends nB{constructor(e,t,i,r={}){super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=fg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,r.backend,r)}queueLoad(e,t,i,r){const o={},s={},a={},c={};return e.forEach(d=>{let g=!0;t.forEach(v=>{const E=`${d}|${v}`;!i.reload&&this.store.hasResourceBundle(d,v)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?s[E]===void 0&&(s[E]=!0):(this.state[E]=1,g=!1,s[E]===void 0&&(s[E]=!0),o[E]===void 0&&(o[E]=!0),c[v]===void 0&&(c[v]=!0)))}),g||(a[d]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}loaded(e,t,i){const r=e.split("|"),o=r[0],s=r[1];t&&this.emit("failedLoading",o,s,t),!t&&i&&this.store.addResourceBundle(o,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);const a={};this.queue.forEach(c=>{due(c.loaded,[o],s),Eue(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{a[d]||(a[d]={});const g=c.loaded[d];g.length&&g.forEach(v=>{a[d][v]===void 0&&(a[d][v]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(c=>!c.done)}read(e,t,i,r=0,o=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:r,wait:o,callback:s});return}this.readingCalls++;const a=(d,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(d&&g&&r{this.read(e,t,i,r+1,o*2,s)},o);return}s(d,g)},c=this.backend[i].bind(this.backend);if(c.length===2){try{const d=c(e,t);d&&typeof d.then=="function"?d.then(g=>a(null,g)).catch(a):a(null,d)}catch(d){a(d)}return}return c(e,t,a)}prepareLoading(e,t,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Rr(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Rr(t)&&(t=[t]);const o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e,t=""){const i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,s),!s&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,t,i,r,o,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" 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(!(i==null||i==="")){if(this.backend?.create){const c={...s,isUpdate:o},d=this.backend.create.bind(this.backend);if(d.length<6)try{let g;d.length===5?g=d(e,t,i,r,c):g=d(e,t,i,r),g&&typeof g.then=="function"?g.then(v=>a(null,v)).catch(a):a(null,g)}catch(g){a(g)}else d(e,t,i,r,a,c)}!e||!e[0]||this.store.addResource(e[0],t,i,r)}}}const a8=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),Rr(n[1])&&(e.defaultValue=n[1]),Rr(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(i=>{e[i]=t[i]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ez=n=>(Rr(n.ns)&&(n.ns=[n.ns]),Rr(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Rr(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&!n.supportedLngs.includes("cimode")&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n),CM=()=>{},Oue=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class L4 extends nB{constructor(e={},t){if(super(),this.options=Ez(e),this.services={},this.logger=fg,this.modules={external:[]},Oue(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Rr(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const i=a8();this.options={...i,...this.options,...Ez(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler);const r=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?fg.init(r(this.modules.logger),this.options):fg.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Sue;const g=new Cz(this.options);this.store=new bz(this.options.resources,this.options);const v=this.services;v.logger=fg,v.resourceStore=this.store,v.languageUtils=g,v.pluralResolver=new xue(g,{prepend:this.options.pluralSeparator}),d&&(v.formatter=r(d),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Mz(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new Bue(r(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(E,...I)=>{this.emit(E,...I)}),this.modules.languageDetector&&(v.languageDetector=r(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=r(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new kE(this.services,this.options),this.translator.on("*",(E,...I)=>{this.emit(E,...I)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,t||(t=CM),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...g)=>this.store[d](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...g)=>(this.store[d](...g),this)});const a=U3(),c=()=>{const d=(g,v)=>{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),a.resolve(v),t(g,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),a}loadResources(e,t=CM){let i=t;const r=Rr(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(d=>{d!=="cimode"&&(o.includes(d)||o.push(d))})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(a)})}else i(null)}reloadResources(e,t,i){const r=U3();return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=CM),this.services.backendConnector.reload(e,t,o=>{r.resolve(),i(o)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&BZ.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!["cimode","dev"].includes(e)){for(let t=0;t{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,c)=>{c?this.isLanguageChangingTo===e&&(r(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve((...d)=>this.t(...d)),t&&t(a,(...d)=>this.t(...d))},s=a=>{!e&&!a&&this.services.languageDetector&&(a=[]);const c=Rr(a)?a:a&&a[0],d=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(Rr(a)?[a]:a);d&&(this.language||r(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector?.cacheUserLanguage?.(d)),this.loadResources(d,g=>{o(g,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,t,i,r){const o=r?.scopeNs,s=(a,c,...d)=>{let g;typeof c!="object"?g=this.options.overloadTranslationOptionHandler([a,c].concat(d)):g={...c},g.lng=g.lng||s.lng,g.lngs=g.lngs||s.lngs;const v=g.ns!==void 0&&g.ns!==null;g.ns=g.ns||s.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||i||s.keyPrefix);const E={...this.options,...g};Array.isArray(o)&&!v&&(E.ns=o),typeof g.keyPrefix=="function"&&(g.keyPrefix=xC(g.keyPrefix,E));const I=this.options.keySeparator||".";let U;return g.keyPrefix&&Array.isArray(a)?U=a.map(F=>(typeof F=="function"&&(F=xC(F,E)),`${g.keyPrefix}${I}${F}`)):(typeof a=="function"&&(a=xC(a,E)),U=g.keyPrefix?`${g.keyPrefix}${I}${a}`:a),this.t(U,g)};return Rr(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=i,s}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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 i=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(a,c)=>{const d=this.services.backendConnector.state[`${a}|${c}`];return d===-1||d===0||d===2};if(t.precheck){const a=t.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(o,e)))}loadNamespaces(e,t){const i=U3();return this.options.ns?(Rr(e)&&(e=[e]),e.forEach(r=>{this.options.ns.includes(r)||this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){const i=U3();Rr(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(s=>!r.includes(s)&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=r.concat(o),this.loadResources(s=>{i.resolve(),t&&t(s)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const r=new Intl.Locale(e);if(r&&r.getTextInfo){const o=r.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const t=["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"],i=this.services?.languageUtils||new Cz(a8());return e.toLowerCase().indexOf("-latn")>1?"ltr":t.includes(i.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const i=new L4(e,t);return i.createInstance=L4.createInstance,i}cloneInstance(e={},t=CM){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new L4(r);if((e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i){const a=Object.keys(this.store.data).reduce((c,d)=>(c[d]={...this.store.data[d]},c[d]=Object.keys(c[d]).reduce((g,v)=>(g[v]={...c[d][v]},g),c[d]),c),{});o.store=new bz(a,r),o.services.resourceStore=o.store}if(e.interpolation){const c={...a8().interpolation,...this.options.interpolation,...e.interpolation},d={...r,interpolation:c};o.services.interpolator=new Mz(d)}return o.translator=new kE(o.services,r),o.translator.on("*",(a,...c)=>{o.emit(a,...c)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Mh=L4.createInstance();Mh.createInstance;Mh.dir;Mh.init;Mh.loadResources;Mh.reloadResources;Mh.use;Mh.changeLanguage;Mh.getFixedT;Mh.t;Mh.exists;Mh.setDefaultNamespace;Mh.hasLoadedNamespace;Mh.loadNamespaces;Mh.loadLanguages;const{slice:Iue,forEach:Tue}=[];function kue(n){return Tue.call(Iue.call(arguments,1),e=>{if(e)for(const t in e)n[t]===void 0&&(n[t]=e[t])}),n}function Due(n){return typeof n!="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(t=>t.test(n))}const Bz=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Rue=function(n,e){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(e);let o=`${n}=${r}`;if(i.maxAge>0){const s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(i.domain){if(!Bz.test(i.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${i.domain}`}if(i.path){if(!Bz.test(i.path))throw new TypeError("option path is invalid");o+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(o+="; Partitioned"),o},Oz={create(n,e,t,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+t*60*1e3)),i&&(r.domain=i),document.cookie=Rue(n,e,r)},read(n){const e=`${n}=`,t=document.cookie.split(";");for(let i=0;i-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let s=0;s0&&o[s].substring(0,a)===e&&(t=o[s].substring(a+1))}}return t}},Uue={name:"hash",lookup(n){let{lookupHash:e,lookupFromHashIndex:t}=n,i;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const o=r.substring(1);if(e){const s=o.split("&");for(let a=0;a0&&s[a].substring(0,c)===e&&(i=s[a].substring(c+1))}}if(i)return i;if(!i&&t>-1){const s=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof t=="number"?t:0]?.replace("/",""):void 0}}}return i}};let $_=null;const Iz=()=>{if($_!==null)return $_;try{if($_=typeof window<"u"&&window.localStorage!==null,!$_)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{$_=!1}return $_};var Kue={name:"localStorage",lookup(n){let{lookupLocalStorage:e}=n;if(e&&Iz())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupLocalStorage:t}=e;t&&Iz()&&window.localStorage.setItem(t,n)}};let H_=null;const Tz=()=>{if(H_!==null)return H_;try{if(H_=typeof window<"u"&&window.sessionStorage!==null,!H_)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{H_=!1}return H_};var Fue={name:"sessionStorage",lookup(n){let{lookupSessionStorage:e}=n;if(e&&Tz())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupSessionStorage:t}=e;t&&Tz()&&window.sessionStorage.setItem(t,n)}},zue={name:"navigator",lookup(n){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:i,language:r}=navigator;if(t)for(let o=0;o0?e:void 0}},jue={name:"htmlTag",lookup(n){let{htmlTag:e}=n,t;const i=e||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(t=i.getAttribute("lang")),t}},Nue={name:"path",lookup(n){let{lookupFromPathIndex:e}=n;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof e=="number"?e:0]?.replace("/",""):void 0}},Gue={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:e}=n;const t=typeof e=="number"?e+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}};let IZ=!1;try{document.cookie,IZ=!0}catch{}const TZ=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];IZ||TZ.splice(1,1);const Wue=()=>({order:TZ,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class kZ{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=kue(t,this.options||{},Wue()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Pue),this.addDetector(Lue),this.addDetector(Kue),this.addDetector(Fue),this.addDetector(zue),this.addDetector(jue),this.addDetector(Nue),this.addDetector(Gue),this.addDetector(Uue)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(i=>{if(this.detectors[i]){let r=this.detectors[i].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(t=t.concat(r))}}),t=t.filter(i=>i!=null&&!Due(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(e,this.options)}))}}kZ.type="languageDetector";var Que=function(e){return{type:"backend",init:function(i,r,o){},read:function(i,r,o){if(typeof e=="function"){if(e.length<3){try{var s=e(i,r);s&&typeof s.then=="function"?s.then(function(a){return o(null,a&&a.default||a)}).catch(o):o(null,s)}catch(a){o(a)}return}e(i,r,o);return}o(null,e&&e[i]&&e[i][r])}}},l8,kz;function que(){return kz||(kz=1,l8={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),l8}var Yue=que();const Vue=Mu(Yue);var $ue=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Dz(n){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=n.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(Vue[t[1]]||n.charAt(n.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var i=n.indexOf("-->");return{type:"comment",comment:i!==-1?n.slice(4,i):""}}for(var r=new RegExp($ue),o=null;(o=r.exec(n))!==null;)if(o[0].trim())if(o[1]){var s=o[1].trim(),a=[s,""];s.indexOf("=")>-1&&(a=s.split("=")),e.attrs[a[0]]=a[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var Hue=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Zue=/^\s*$/,Xue=Object.create(null);function DZ(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?(function(t){var i=[];for(var r in t)i.push(r+'="'+t[r]+'"');return i.length?" "+i.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(DZ,"")+"";case"comment":return n+""}}var Jue={parse:function(n,e){e||(e={}),e.components||(e.components=Xue);var t,i=[],r=[],o=-1,s=!1;if(n.indexOf("<")!==0){var a=n.indexOf("<");i.push({type:"text",content:a===-1?n:n.substring(0,a)})}return n.replace(Hue,function(c,d){if(s){if(c!=="")return;s=!1}var g,v=c.charAt(1)!=="/",E=c.startsWith("