function Dte(t,e){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(t,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 a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var yy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ks(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fA={exports:{}},bg={};var D4;function Ote(){if(D4)return bg;D4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,a){var s=null;if(a!==void 0&&(s=""+a),r.key!==void 0&&(s=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:t,type:i,key:s,ref:r!==void 0?r:null,props:a}}return bg.Fragment=e,bg.jsx=n,bg.jsxs=n,bg}var O4;function kte(){return O4||(O4=1,fA.exports=Ote()),fA.exports}var g=kte(),hA={exports:{}},Xt={};var k4;function Lte(){if(k4)return Xt;k4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator;function m(H){return H===null||typeof H!="object"?null:(H=p&&H[p]||H["@@iterator"],typeof H=="function"?H:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function x(H,X,ae){this.props=H,this.context=X,this.refs=v,this.updater=ae||b}x.prototype.isReactComponent={},x.prototype.setState=function(H,X){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,X,"setState")},x.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function M(){}M.prototype=x.prototype;function w(H,X,ae){this.props=H,this.context=X,this.refs=v,this.updater=ae||b}var E=w.prototype=new M;E.constructor=w,_(E,x.prototype),E.isPureReactComponent=!0;var A=Array.isArray;function P(){}var R={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function C(H,X,ae){var ce=ae.ref;return{$$typeof:t,type:H,key:X,ref:ce!==void 0?ce:null,props:ae}}function D(H,X){return C(H.type,X,H.props)}function F(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function I(H){var X={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(ae){return X[ae]})}var $=/\/+/g;function k(H,X){return typeof H=="object"&&H!==null&&H.key!=null?I(""+H.key):X.toString(36)}function B(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(P,P):(H.status="pending",H.then(function(X){H.status==="pending"&&(H.status="fulfilled",H.value=X)},function(X){H.status==="pending"&&(H.status="rejected",H.reason=X)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function W(H,X,ae,ce,xe){var ie=typeof H;(ie==="undefined"||ie==="boolean")&&(H=null);var ve=!1;if(H===null)ve=!0;else switch(ie){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(H.$$typeof){case t:case e:ve=!0;break;case d:return ve=H._init,W(ve(H._payload),X,ae,ce,xe)}}if(ve)return xe=xe(H),ve=ce===""?"."+k(H,0):ce,A(xe)?(ae="",ve!=null&&(ae=ve.replace($,"$&/")+"/"),W(xe,X,ae,"",function(we){return we})):xe!=null&&(F(xe)&&(xe=D(xe,ae+(xe.key==null||H&&H.key===xe.key?"":(""+xe.key).replace($,"$&/")+"/")+ve)),X.push(xe)),1;ve=0;var Pe=ce===""?".":ce+":";if(A(H))for(var pe=0;pe>>1,se=W[Q];if(0>>1;Qr(ae,K))cer(xe,ae)?(W[Q]=xe,W[ce]=K,Q=ce):(W[Q]=ae,W[X]=K,Q=X);else if(cer(xe,K))W[Q]=xe,W[ce]=K,Q=ce;else break e}}return q}function r(W,q){var K=W.sortIndex-q.sortIndex;return K!==0?K:W.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var l=[],c=[],d=1,f=null,p=3,m=!1,b=!1,_=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function E(W){for(var q=n(c);q!==null;){if(q.callback===null)i(c);else if(q.startTime<=W)i(c),q.sortIndex=q.expirationTime,e(l,q);else break;q=n(c)}}function A(W){if(_=!1,E(W),!b)if(n(l)!==null)b=!0,P||(P=!0,I());else{var q=n(c);q!==null&&B(A,q.startTime-W)}}var P=!1,R=-1,j=5,C=-1;function D(){return v?!0:!(t.unstable_now()-CW&&D());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var se=Q(f.expirationTime<=W);if(W=t.unstable_now(),typeof se=="function"){f.callback=se,E(W),q=!0;break t}f===n(l)&&i(l),E(W)}else i(l);f=n(l)}if(f!==null)q=!0;else{var H=n(c);H!==null&&B(A,H.startTime-W),q=!1}}break e}finally{f=null,p=K,m=!1}q=void 0}}finally{q?I():P=!1}}}var I;if(typeof w=="function")I=function(){w(F)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,k=$.port2;$.port1.onmessage=F,I=function(){k.postMessage(null)}}else I=function(){x(F,0)};function B(W,q){R=x(function(){W(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(W){W.callback=null},t.unstable_forceFrameRate=function(W){0>W||125Q?(W.sortIndex=K,e(c,W),n(l)===null&&W===n(c)&&(_?(M(R),R=-1):_=!0,B(A,K-Q))):(W.sortIndex=se,e(l,W),b||m||(b=!0,P||(P=!0,I()))),W},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(W){var q=p;return function(){var K=p;p=q;try{return W.apply(this,arguments)}finally{p=K}}}})(gA)),gA}var U4;function jte(){return U4||(U4=1,mA.exports=Ute()),mA.exports}var xA={exports:{}},Wr={};var j4;function Fte(){if(j4)return Wr;j4=1;var t=lm();function e(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),xA.exports=Fte(),xA.exports}var z4;function zte(){if(z4)return _g;z4=1;var t=jte(),e=lm(),n=X$();function i(u){var h="https://react.dev/errors/"+u;if(1se||(u.current=Q[se],Q[se]=null,se--)}function ae(u,h){se++,Q[se]=u.current,u.current=h}var ce=H(null),xe=H(null),ie=H(null),ve=H(null);function Pe(u,h){switch(ae(ie,h),ae(xe,u),ae(ce,null),h.nodeType){case 9:case 11:u=(u=h.documentElement)&&(u=u.namespaceURI)?t4(u):0;break;default:if(u=h.tagName,h=h.namespaceURI)h=t4(h),u=n4(h,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}X(ce),ae(ce,u)}function pe(){X(ce),X(xe),X(ie)}function we(u){u.memoizedState!==null&&ae(ve,u);var h=ce.current,y=n4(h,u.type);h!==y&&(ae(xe,u),ae(ce,y))}function ze(u){xe.current===u&&(X(ce),X(xe)),ve.current===u&&(X(ve),gg._currentValue=K)}var ue,ft;function z(u){if(ue===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);ue=h&&h[1]||"",ft=-1)":-1N||_e[S]!==Fe[N]){var Je=` `+_e[S].replace(" at new "," at ");return u.displayName&&Je.includes("")&&(Je=Je.replace("",u.displayName)),Je}while(1<=S&&0<=N);break}}}finally{G=!1,Error.prepareStackTrace=y}return(y=u?u.displayName||u.name:"")?z(y):""}function J(u,h){switch(u.tag){case 26:case 27:case 5:return z(u.type);case 16:return z("Lazy");case 13:return u.child!==h&&h!==null?z("Suspense Fallback"):z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return re(u.type,!1);case 11:return re(u.type.render,!1);case 1:return re(u.type,!0);case 31:return z("Activity");default:return""}}function ee(u){try{var h="",y=null;do h+=J(u,y),y=u,u=u.return;while(u);return h}catch(S){return` Error generating stack: `+S.message+` `+S.stack}}var oe=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,te=t.unstable_shouldYield,U=t.unstable_requestPaint,L=t.unstable_now,Y=t.unstable_getCurrentPriorityLevel,me=t.unstable_ImmediatePriority,ye=t.unstable_UserBlockingPriority,he=t.unstable_NormalPriority,Ye=t.unstable_LowPriority,Le=t.unstable_IdlePriority,qe=t.log,rt=t.unstable_setDisableYieldValue,Ie=null,Re=null;function ht(u){if(typeof qe=="function"&&rt(u),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(Ie,u)}catch{}}var tt=Math.clz32?Math.clz32:de,et=Math.log,ct=Math.LN2;function de(u){return u>>>=0,u===0?32:31-(et(u)/ct|0)|0}var nt=256,fe=262144,ke=4194304;function Me(u){var h=u&42;if(h!==0)return h;switch(u&-u){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 u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function ge(u,h,y){var S=u.pendingLanes;if(S===0)return 0;var N=0,O=u.suspendedLanes,V=u.pingedLanes;u=u.warmLanes;var ne=S&134217727;return ne!==0?(S=ne&~O,S!==0?N=Me(S):(V&=ne,V!==0?N=Me(V):y||(y=ne&~u,y!==0&&(N=Me(y))))):(ne=S&~O,ne!==0?N=Me(ne):V!==0?N=Me(V):y||(y=S&~u,y!==0&&(N=Me(y)))),N===0?0:h!==0&&h!==N&&(h&O)===0&&(O=N&-N,y=h&-h,O>=y||O===32&&(y&4194048)!==0)?h:N}function Be(u,h){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&h)===0}function lt(u,h){switch(u){case 1:case 2:case 4:case 8:case 64:return h+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 h+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 bt(){var u=ke;return ke<<=1,(ke&62914560)===0&&(ke=4194304),u}function Nt(u){for(var h=[],y=0;31>y;y++)h.push(u);return h}function sn(u,h){u.pendingLanes|=h,h!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Dt(u,h,y,S,N,O){var V=u.pendingLanes;u.pendingLanes=y,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=y,u.entangledLanes&=y,u.errorRecoveryDisabledLanes&=y,u.shellSuspendCounter=0;var ne=u.entanglements,_e=u.expirationTimes,Fe=u.hiddenUpdates;for(y=V&~y;0"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Ti=/[\n"\\]/g;function Cn(u){return u.replace(Ti,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function Qs(u,h,y,S,N,O,V,ne){u.name="",V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?u.type=V:u.removeAttribute("type"),h!=null?V==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=""+ln(h)):u.value!==""+ln(h)&&(u.value=""+ln(h)):V!=="submit"&&V!=="reset"||u.removeAttribute("value"),h!=null?mr(u,V,ln(h)):y!=null?mr(u,V,ln(y)):S!=null&&u.removeAttribute("value"),N==null&&O!=null&&(u.defaultChecked=!!O),N!=null&&(u.checked=N&&typeof N!="function"&&typeof N!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?u.name=""+ln(ne):u.removeAttribute("name")}function Pn(u,h,y,S,N,O,V,ne){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(u.type=O),h!=null||y!=null){if(!(O!=="submit"&&O!=="reset"||h!=null)){qt(u);return}y=y!=null?""+ln(y):"",h=h!=null?""+ln(h):y,ne||h===u.value||(u.value=h),u.defaultValue=h}S=S??N,S=typeof S!="function"&&typeof S!="symbol"&&!!S,u.checked=ne?u.checked:!!S,u.defaultChecked=!!S,V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(u.name=V),qt(u)}function mr(u,h,y){h==="number"&&yi(u.ownerDocument)===u||u.defaultValue===""+y||(u.defaultValue=""+y)}function Zi(u,h,y,S){if(u=u.options,h){h={};for(var N=0;N"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fM=!1;if(ol)try{var km={};Object.defineProperty(km,"passive",{get:function(){fM=!0}}),window.addEventListener("test",km,km),window.removeEventListener("test",km,km)}catch{fM=!1}var Rc=null,hM=null,dv=null;function nL(){if(dv)return dv;var u,h=hM,y=h.length,S,N="value"in Rc?Rc.value:Rc.textContent,O=N.length;for(u=0;u=Um),lL=" ",cL=!1;function uL(u,h){switch(u){case"keyup":return eee.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dL(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Xf=!1;function nee(u,h){switch(u){case"compositionend":return dL(h);case"keypress":return h.which!==32?null:(cL=!0,lL);case"textInput":return u=h.data,u===lL&&cL?null:u;default:return null}}function iee(u,h){if(Xf)return u==="compositionend"||!vM&&uL(u,h)?(u=nL(),dv=hM=Rc=null,Xf=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1=h)return{node:y,offset:h-u};u=S}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=yL(y)}}function _L(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?_L(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function SL(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var h=yi(u.document);h instanceof u.HTMLIFrameElement;){try{var y=typeof h.contentWindow.location.href=="string"}catch{y=!1}if(y)u=h.contentWindow;else break;h=yi(u.document)}return h}function _M(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}var dee=ol&&"documentMode"in document&&11>=document.documentMode,Kf=null,SM=null,Bm=null,wM=!1;function wL(u,h,y){var S=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;wM||Kf==null||Kf!==yi(S)||(S=Kf,"selectionStart"in S&&_M(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Bm&&zm(Bm,S)||(Bm=S,S=ry(SM,"onSelect"),0>=V,N-=V,To=1<<32-tt(h)+N|y<Qt?(gn=Pt,Pt=null):gn=Pt.sibling;var wn=Ve(Oe,Pt,je[Qt],it);if(wn===null){Pt===null&&(Pt=gn);break}u&&Pt&&wn.alternate===null&&h(Oe,Pt),Ee=O(wn,Ee,Qt),Sn===null?Lt=wn:Sn.sibling=wn,Sn=wn,Pt=gn}if(Qt===je.length)return y(Oe,Pt),yn&&cl(Oe,Qt),Lt;if(Pt===null){for(;QtQt?(gn=Pt,Pt=null):gn=Pt.sibling;var Qc=Ve(Oe,Pt,wn.value,it);if(Qc===null){Pt===null&&(Pt=gn);break}u&&Pt&&Qc.alternate===null&&h(Oe,Pt),Ee=O(Qc,Ee,Qt),Sn===null?Lt=Qc:Sn.sibling=Qc,Sn=Qc,Pt=gn}if(wn.done)return y(Oe,Pt),yn&&cl(Oe,Qt),Lt;if(Pt===null){for(;!wn.done;Qt++,wn=je.next())wn=st(Oe,wn.value,it),wn!==null&&(Ee=O(wn,Ee,Qt),Sn===null?Lt=wn:Sn.sibling=wn,Sn=wn);return yn&&cl(Oe,Qt),Lt}for(Pt=S(Pt);!wn.done;Qt++,wn=je.next())wn=Ke(Pt,Oe,Qt,wn.value,it),wn!==null&&(u&&wn.alternate!==null&&Pt.delete(wn.key===null?Qt:wn.key),Ee=O(wn,Ee,Qt),Sn===null?Lt=wn:Sn.sibling=wn,Sn=wn);return u&&Pt.forEach(function(Pte){return h(Oe,Pte)}),yn&&cl(Oe,Qt),Lt}function jn(Oe,Ee,je,it){if(typeof je=="object"&&je!==null&&je.type===_&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case m:e:{for(var Lt=je.key;Ee!==null;){if(Ee.key===Lt){if(Lt=je.type,Lt===_){if(Ee.tag===7){y(Oe,Ee.sibling),it=N(Ee,je.props.children),it.return=Oe,Oe=it;break e}}else if(Ee.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===j&&bd(Lt)===Ee.type){y(Oe,Ee.sibling),it=N(Ee,je.props),qm(it,je),it.return=Oe,Oe=it;break e}y(Oe,Ee);break}else h(Oe,Ee);Ee=Ee.sibling}je.type===_?(it=md(je.props.children,Oe.mode,it,je.key),it.return=Oe,Oe=it):(it=_v(je.type,je.key,je.props,null,Oe.mode,it),qm(it,je),it.return=Oe,Oe=it)}return V(Oe);case b:e:{for(Lt=je.key;Ee!==null;){if(Ee.key===Lt)if(Ee.tag===4&&Ee.stateNode.containerInfo===je.containerInfo&&Ee.stateNode.implementation===je.implementation){y(Oe,Ee.sibling),it=N(Ee,je.children||[]),it.return=Oe,Oe=it;break e}else{y(Oe,Ee);break}else h(Oe,Ee);Ee=Ee.sibling}it=RM(je,Oe.mode,it),it.return=Oe,Oe=it}return V(Oe);case j:return je=bd(je),jn(Oe,Ee,je,it)}if(B(je))return Ct(Oe,Ee,je,it);if(I(je)){if(Lt=I(je),typeof Lt!="function")throw Error(i(150));return je=Lt.call(je),zt(Oe,Ee,je,it)}if(typeof je.then=="function")return jn(Oe,Ee,Cv(je),it);if(je.$$typeof===w)return jn(Oe,Ee,Mv(Oe,je),it);Nv(Oe,je)}return typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint"?(je=""+je,Ee!==null&&Ee.tag===6?(y(Oe,Ee.sibling),it=N(Ee,je),it.return=Oe,Oe=it):(y(Oe,Ee),it=NM(je,Oe.mode,it),it.return=Oe,Oe=it),V(Oe)):y(Oe,Ee)}return function(Oe,Ee,je,it){try{Wm=0;var Lt=jn(Oe,Ee,je,it);return sh=null,Lt}catch(Pt){if(Pt===ah||Pt===Av)throw Pt;var Sn=Ga(29,Pt,null,Oe.mode);return Sn.lanes=it,Sn.return=Oe,Sn}finally{}}}var Sd=WL(!0),qL=WL(!1),Lc=!1;function HM(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function VM(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function Ic(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Uc(u,h,y){var S=u.updateQueue;if(S===null)return null;if(S=S.shared,(Tn&2)!==0){var N=S.pending;return N===null?h.next=h:(h.next=N.next,N.next=h),S.pending=h,h=bv(u),RL(u,null,y),h}return yv(u,S,h,y),bv(u)}function Xm(u,h,y){if(h=h.updateQueue,h!==null&&(h=h.shared,(y&4194048)!==0)){var S=h.lanes;S&=u.pendingLanes,y|=S,h.lanes=y,Wn(u,y)}}function $M(u,h){var y=u.updateQueue,S=u.alternate;if(S!==null&&(S=S.updateQueue,y===S)){var N=null,O=null;if(y=y.firstBaseUpdate,y!==null){do{var V={lane:y.lane,tag:y.tag,payload:y.payload,callback:null,next:null};O===null?N=O=V:O=O.next=V,y=y.next}while(y!==null);O===null?N=O=h:O=O.next=h}else N=O=h;y={baseState:S.baseState,firstBaseUpdate:N,lastBaseUpdate:O,shared:S.shared,callbacks:S.callbacks},u.updateQueue=y;return}u=y.lastBaseUpdate,u===null?y.firstBaseUpdate=h:u.next=h,y.lastBaseUpdate=h}var GM=!1;function Km(){if(GM){var u=rh;if(u!==null)throw u}}function Ym(u,h,y,S){GM=!1;var N=u.updateQueue;Lc=!1;var O=N.firstBaseUpdate,V=N.lastBaseUpdate,ne=N.shared.pending;if(ne!==null){N.shared.pending=null;var _e=ne,Fe=_e.next;_e.next=null,V===null?O=Fe:V.next=Fe,V=_e;var Je=u.alternate;Je!==null&&(Je=Je.updateQueue,ne=Je.lastBaseUpdate,ne!==V&&(ne===null?Je.firstBaseUpdate=Fe:ne.next=Fe,Je.lastBaseUpdate=_e))}if(O!==null){var st=N.baseState;V=0,Je=Fe=_e=null,ne=O;do{var Ve=ne.lane&-536870913,Ke=Ve!==ne.lane;if(Ke?(mn&Ve)===Ve:(S&Ve)===Ve){Ve!==0&&Ve===ih&&(GM=!0),Je!==null&&(Je=Je.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Ct=u,zt=ne;Ve=h;var jn=y;switch(zt.tag){case 1:if(Ct=zt.payload,typeof Ct=="function"){st=Ct.call(jn,st,Ve);break e}st=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=zt.payload,Ve=typeof Ct=="function"?Ct.call(jn,st,Ve):Ct,Ve==null)break e;st=f({},st,Ve);break e;case 2:Lc=!0}}Ve=ne.callback,Ve!==null&&(u.flags|=64,Ke&&(u.flags|=8192),Ke=N.callbacks,Ke===null?N.callbacks=[Ve]:Ke.push(Ve))}else Ke={lane:Ve,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Je===null?(Fe=Je=Ke,_e=st):Je=Je.next=Ke,V|=Ve;if(ne=ne.next,ne===null){if(ne=N.shared.pending,ne===null)break;Ke=ne,ne=Ke.next,Ke.next=null,N.lastBaseUpdate=Ke,N.shared.pending=null}}while(!0);Je===null&&(_e=st),N.baseState=_e,N.firstBaseUpdate=Fe,N.lastBaseUpdate=Je,O===null&&(N.shared.lanes=0),Hc|=V,u.lanes=V,u.memoizedState=st}}function XL(u,h){if(typeof u!="function")throw Error(i(191,u));u.call(h)}function KL(u,h){var y=u.callbacks;if(y!==null)for(u.callbacks=null,u=0;uO?O:8;var V=W.T,ne={};W.T=ne,uE(u,!1,h,y);try{var _e=N(),Fe=W.S;if(Fe!==null&&Fe(ne,_e),_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Je=bee(_e,S);Jm(u,h,Je,Ya(u))}else Jm(u,h,S,Ya(u))}catch(st){Jm(u,h,{then:function(){},status:"rejected",reason:st},Ya())}finally{q.p=O,V!==null&&ne.types!==null&&(V.types=ne.types),W.T=V}}function Aee(){}function lE(u,h,y,S){if(u.tag!==5)throw Error(i(476));var N=TI(u).queue;AI(u,N,h,K,y===null?Aee:function(){return CI(u),y(S)})}function TI(u){var h=u.memoizedState;if(h!==null)return h;h={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:K},next:null};var y={};return h.next={memoizedState:y,baseState:y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:y},next:null},u.memoizedState=h,u=u.alternate,u!==null&&(u.memoizedState=h),h}function CI(u){var h=TI(u);h.next===null&&(h=u.alternate.memoizedState),Jm(u,h.next.queue,{},Ya())}function cE(){return Dr(gg)}function NI(){return Ni().memoizedState}function RI(){return Ni().memoizedState}function Tee(u){for(var h=u.return;h!==null;){switch(h.tag){case 24:case 3:var y=Ya();u=Ic(y);var S=Uc(h,u,y);S!==null&&(Ca(S,h,y),Xm(S,h,y)),h={cache:jM()},u.payload=h;return}h=h.return}}function Cee(u,h,y){var S=Ya();y={lane:S,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},Fv(u)?DI(h,y):(y=TM(u,h,y,S),y!==null&&(Ca(y,u,S),OI(y,h,S)))}function PI(u,h,y){var S=Ya();Jm(u,h,y,S)}function Jm(u,h,y,S){var N={lane:S,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null};if(Fv(u))DI(h,N);else{var O=u.alternate;if(u.lanes===0&&(O===null||O.lanes===0)&&(O=h.lastRenderedReducer,O!==null))try{var V=h.lastRenderedState,ne=O(V,y);if(N.hasEagerState=!0,N.eagerState=ne,$a(ne,V))return yv(u,h,N,0),qn===null&&vv(),!1}catch{}finally{}if(y=TM(u,h,N,S),y!==null)return Ca(y,u,S),OI(y,h,S),!0}return!1}function uE(u,h,y,S){if(S={lane:2,revertLane:HE(),gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},Fv(u)){if(h)throw Error(i(479))}else h=TM(u,y,S,2),h!==null&&Ca(h,u,2)}function Fv(u){var h=u.alternate;return u===Yt||h!==null&&h===Yt}function DI(u,h){lh=Dv=!0;var y=u.pending;y===null?h.next=h:(h.next=y.next,y.next=h),u.pending=h}function OI(u,h,y){if((y&4194048)!==0){var S=h.lanes;S&=u.pendingLanes,y|=S,h.lanes=y,Wn(u,y)}}var eg={readContext:Dr,use:Lv,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useLayoutEffect:bi,useInsertionEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useSyncExternalStore:bi,useId:bi,useHostTransitionStatus:bi,useFormState:bi,useActionState:bi,useOptimistic:bi,useMemoCache:bi,useCacheRefresh:bi};eg.useEffectEvent=bi;var kI={readContext:Dr,use:Lv,useCallback:function(u,h){return oa().memoizedState=[u,h===void 0?null:h],u},useContext:Dr,useEffect:xI,useImperativeHandle:function(u,h,y){y=y!=null?y.concat([u]):null,Uv(4194308,4,_I.bind(null,h,u),y)},useLayoutEffect:function(u,h){return Uv(4194308,4,u,h)},useInsertionEffect:function(u,h){Uv(4,2,u,h)},useMemo:function(u,h){var y=oa();h=h===void 0?null:h;var S=u();if(wd){ht(!0);try{u()}finally{ht(!1)}}return y.memoizedState=[S,h],S},useReducer:function(u,h,y){var S=oa();if(y!==void 0){var N=y(h);if(wd){ht(!0);try{y(h)}finally{ht(!1)}}}else N=h;return S.memoizedState=S.baseState=N,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:N},S.queue=u,u=u.dispatch=Cee.bind(null,Yt,u),[S.memoizedState,u]},useRef:function(u){var h=oa();return u={current:u},h.memoizedState=u},useState:function(u){u=iE(u);var h=u.queue,y=PI.bind(null,Yt,h);return h.dispatch=y,[u.memoizedState,y]},useDebugValue:sE,useDeferredValue:function(u,h){var y=oa();return oE(y,u,h)},useTransition:function(){var u=iE(!1);return u=AI.bind(null,Yt,u.queue,!0,!1),oa().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,h,y){var S=Yt,N=oa();if(yn){if(y===void 0)throw Error(i(407));y=y()}else{if(y=h(),qn===null)throw Error(i(349));(mn&127)!==0||tI(S,h,y)}N.memoizedState=y;var O={value:y,getSnapshot:h};return N.queue=O,xI(iI.bind(null,S,O,u),[u]),S.flags|=2048,uh(9,{destroy:void 0},nI.bind(null,S,O,y,h),null),y},useId:function(){var u=oa(),h=qn.identifierPrefix;if(yn){var y=Co,S=To;y=(S&~(1<<32-tt(S)-1)).toString(32)+y,h="_"+h+"R_"+y,y=Ov++,0<\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof S.is=="string"?V.createElement("select",{is:S.is}):V.createElement("select"),S.multiple?O.multiple=!0:S.size&&(O.size=S.size);break;default:O=typeof S.is=="string"?V.createElement(N,{is:S.is}):V.createElement(N)}}O[hi]=h,O[Ai]=S;e:for(V=h.child;V!==null;){if(V.tag===5||V.tag===6)O.appendChild(V.stateNode);else if(V.tag!==4&&V.tag!==27&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===h)break e;for(;V.sibling===null;){if(V.return===null||V.return===h)break e;V=V.return}V.sibling.return=V.return,V=V.sibling}h.stateNode=O;e:switch(kr(O,N,S),N){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}S&&ml(h)}}return ti(h),ME(h,h.type,u===null?null:u.memoizedProps,h.pendingProps,y),null;case 6:if(u&&h.stateNode!=null)u.memoizedProps!==S&&ml(h);else{if(typeof S!="string"&&h.stateNode===null)throw Error(i(166));if(u=ie.current,th(h)){if(u=h.stateNode,y=h.memoizedProps,S=null,N=Pr,N!==null)switch(N.tag){case 27:case 5:S=N.memoizedProps}u[hi]=h,u=!!(u.nodeValue===y||S!==null&&S.suppressHydrationWarning===!0||JU(u.nodeValue,y)),u||Oc(h,!0)}else u=ay(u).createTextNode(S),u[hi]=h,h.stateNode=u}return ti(h),null;case 31:if(y=h.memoizedState,u===null||u.memoizedState!==null){if(S=th(h),y!==null){if(u===null){if(!S)throw Error(i(318));if(u=h.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(557));u[hi]=h}else gd(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;ti(h),u=!1}else y=kM(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=y),u=!0;if(!u)return h.flags&256?(qa(h),h):(qa(h),null);if((h.flags&128)!==0)throw Error(i(558))}return ti(h),null;case 13:if(S=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(N=th(h),S!==null&&S.dehydrated!==null){if(u===null){if(!N)throw Error(i(318));if(N=h.memoizedState,N=N!==null?N.dehydrated:null,!N)throw Error(i(317));N[hi]=h}else gd(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;ti(h),N=!1}else N=kM(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=N),N=!0;if(!N)return h.flags&256?(qa(h),h):(qa(h),null)}return qa(h),(h.flags&128)!==0?(h.lanes=y,h):(y=S!==null,u=u!==null&&u.memoizedState!==null,y&&(S=h.child,N=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(N=S.alternate.memoizedState.cachePool.pool),O=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(O=S.memoizedState.cachePool.pool),O!==N&&(S.flags|=2048)),y!==u&&y&&(h.child.flags|=8192),$v(h,h.updateQueue),ti(h),null);case 4:return pe(),u===null&&WE(h.stateNode.containerInfo),ti(h),null;case 10:return dl(h.type),ti(h),null;case 19:if(X(Ci),S=h.memoizedState,S===null)return ti(h),null;if(N=(h.flags&128)!==0,O=S.rendering,O===null)if(N)ng(S,!1);else{if(_i!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(O=Pv(u),O!==null){for(h.flags|=128,ng(S,!1),u=O.updateQueue,h.updateQueue=u,$v(h,u),h.subtreeFlags=0,u=y,y=h.child;y!==null;)PL(y,u),y=y.sibling;return ae(Ci,Ci.current&1|2),yn&&cl(h,S.treeForkCount),h.child}u=u.sibling}S.tail!==null&&L()>Kv&&(h.flags|=128,N=!0,ng(S,!1),h.lanes=4194304)}else{if(!N)if(u=Pv(O),u!==null){if(h.flags|=128,N=!0,u=u.updateQueue,h.updateQueue=u,$v(h,u),ng(S,!0),S.tail===null&&S.tailMode==="hidden"&&!O.alternate&&!yn)return ti(h),null}else 2*L()-S.renderingStartTime>Kv&&y!==536870912&&(h.flags|=128,N=!0,ng(S,!1),h.lanes=4194304);S.isBackwards?(O.sibling=h.child,h.child=O):(u=S.last,u!==null?u.sibling=O:h.child=O,S.last=O)}return S.tail!==null?(u=S.tail,S.rendering=u,S.tail=u.sibling,S.renderingStartTime=L(),u.sibling=null,y=Ci.current,ae(Ci,N?y&1|2:y&1),yn&&cl(h,S.treeForkCount),u):(ti(h),null);case 22:case 23:return qa(h),qM(),S=h.memoizedState!==null,u!==null?u.memoizedState!==null!==S&&(h.flags|=8192):S&&(h.flags|=8192),S?(y&536870912)!==0&&(h.flags&128)===0&&(ti(h),h.subtreeFlags&6&&(h.flags|=8192)):ti(h),y=h.updateQueue,y!==null&&$v(h,y.retryQueue),y=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),S=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(S=h.memoizedState.cachePool.pool),S!==y&&(h.flags|=2048),u!==null&&X(yd),null;case 24:return y=null,u!==null&&(y=u.memoizedState.cache),h.memoizedState.cache!==y&&(h.flags|=2048),dl(Li),ti(h),null;case 25:return null;case 30:return null}throw Error(i(156,h.tag))}function Oee(u,h){switch(DM(h),h.tag){case 1:return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return dl(Li),pe(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 26:case 27:case 5:return ze(h),null;case 31:if(h.memoizedState!==null){if(qa(h),h.alternate===null)throw Error(i(340));gd()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 13:if(qa(h),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(i(340));gd()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return X(Ci),null;case 4:return pe(),null;case 10:return dl(h.type),null;case 22:case 23:return qa(h),qM(),u!==null&&X(yd),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 24:return dl(Li),null;case 25:return null;default:return null}}function rU(u,h){switch(DM(h),h.tag){case 3:dl(Li),pe();break;case 26:case 27:case 5:ze(h);break;case 4:pe();break;case 31:h.memoizedState!==null&&qa(h);break;case 13:qa(h);break;case 19:X(Ci);break;case 10:dl(h.type);break;case 22:case 23:qa(h),qM(),u!==null&&X(yd);break;case 24:dl(Li)}}function ig(u,h){try{var y=h.updateQueue,S=y!==null?y.lastEffect:null;if(S!==null){var N=S.next;y=N;do{if((y.tag&u)===u){S=void 0;var O=y.create,V=y.inst;S=O(),V.destroy=S}y=y.next}while(y!==N)}}catch(ne){On(h,h.return,ne)}}function zc(u,h,y){try{var S=h.updateQueue,N=S!==null?S.lastEffect:null;if(N!==null){var O=N.next;S=O;do{if((S.tag&u)===u){var V=S.inst,ne=V.destroy;if(ne!==void 0){V.destroy=void 0,N=h;var _e=y,Fe=ne;try{Fe()}catch(Je){On(N,_e,Je)}}}S=S.next}while(S!==O)}}catch(Je){On(h,h.return,Je)}}function aU(u){var h=u.updateQueue;if(h!==null){var y=u.stateNode;try{KL(h,y)}catch(S){On(u,u.return,S)}}}function sU(u,h,y){y.props=Md(u.type,u.memoizedProps),y.state=u.memoizedState;try{y.componentWillUnmount()}catch(S){On(u,h,S)}}function rg(u,h){try{var y=u.ref;if(y!==null){switch(u.tag){case 26:case 27:case 5:var S=u.stateNode;break;case 30:S=u.stateNode;break;default:S=u.stateNode}typeof y=="function"?u.refCleanup=y(S):y.current=S}}catch(N){On(u,h,N)}}function No(u,h){var y=u.ref,S=u.refCleanup;if(y!==null)if(typeof S=="function")try{S()}catch(N){On(u,h,N)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof y=="function")try{y(null)}catch(N){On(u,h,N)}else y.current=null}function oU(u){var h=u.type,y=u.memoizedProps,S=u.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":y.autoFocus&&S.focus();break e;case"img":y.src?S.src=y.src:y.srcSet&&(S.srcset=y.srcSet)}}catch(N){On(u,u.return,N)}}function EE(u,h,y){try{var S=u.stateNode;tte(S,u.type,y,h),S[Ai]=h}catch(N){On(u,u.return,N)}}function lU(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&qc(u.type)||u.tag===4}function AE(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||lU(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&qc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function TE(u,h,y){var S=u.tag;if(S===5||S===6)u=u.stateNode,h?(y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y).insertBefore(u,h):(h=y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y,h.appendChild(u),y=y._reactRootContainer,y!=null||h.onclick!==null||(h.onclick=sl));else if(S!==4&&(S===27&&qc(u.type)&&(y=u.stateNode,h=null),u=u.child,u!==null))for(TE(u,h,y),u=u.sibling;u!==null;)TE(u,h,y),u=u.sibling}function Gv(u,h,y){var S=u.tag;if(S===5||S===6)u=u.stateNode,h?y.insertBefore(u,h):y.appendChild(u);else if(S!==4&&(S===27&&qc(u.type)&&(y=u.stateNode),u=u.child,u!==null))for(Gv(u,h,y),u=u.sibling;u!==null;)Gv(u,h,y),u=u.sibling}function cU(u){var h=u.stateNode,y=u.memoizedProps;try{for(var S=u.type,N=h.attributes;N.length;)h.removeAttributeNode(N[0]);kr(h,S,y),h[hi]=u,h[Ai]=y}catch(O){On(u,u.return,O)}}var gl=!1,ji=!1,CE=!1,uU=typeof WeakSet=="function"?WeakSet:Set,xr=null;function kee(u,h){if(u=u.containerInfo,KE=fy,u=SL(u),_M(u)){if("selectionStart"in u)var y={start:u.selectionStart,end:u.selectionEnd};else e:{y=(y=u.ownerDocument)&&y.defaultView||window;var S=y.getSelection&&y.getSelection();if(S&&S.rangeCount!==0){y=S.anchorNode;var N=S.anchorOffset,O=S.focusNode;S=S.focusOffset;try{y.nodeType,O.nodeType}catch{y=null;break e}var V=0,ne=-1,_e=-1,Fe=0,Je=0,st=u,Ve=null;t:for(;;){for(var Ke;st!==y||N!==0&&st.nodeType!==3||(ne=V+N),st!==O||S!==0&&st.nodeType!==3||(_e=V+S),st.nodeType===3&&(V+=st.nodeValue.length),(Ke=st.firstChild)!==null;)Ve=st,st=Ke;for(;;){if(st===u)break t;if(Ve===y&&++Fe===N&&(ne=V),Ve===O&&++Je===S&&(_e=V),(Ke=st.nextSibling)!==null)break;st=Ve,Ve=st.parentNode}st=Ke}y=ne===-1||_e===-1?null:{start:ne,end:_e}}else y=null}y=y||{start:0,end:0}}else y=null;for(YE={focusedElem:u,selectionRange:y},fy=!1,xr=h;xr!==null;)if(h=xr,u=h.child,(h.subtreeFlags&1028)!==0&&u!==null)u.return=h,xr=u;else for(;xr!==null;){switch(h=xr,O=h.alternate,u=h.flags,h.tag){case 0:if((u&4)!==0&&(u=h.updateQueue,u=u!==null?u.events:null,u!==null))for(y=0;y title"))),kr(O,S,y),O[hi]=u,Te(O),S=O;break e;case"link":var V=g4("link","href",N).get(S+(y.href||""));if(V){for(var ne=0;nejn&&(V=jn,jn=zt,zt=V);var Oe=bL(ne,zt),Ee=bL(ne,jn);if(Oe&&Ee&&(Ke.rangeCount!==1||Ke.anchorNode!==Oe.node||Ke.anchorOffset!==Oe.offset||Ke.focusNode!==Ee.node||Ke.focusOffset!==Ee.offset)){var je=st.createRange();je.setStart(Oe.node,Oe.offset),Ke.removeAllRanges(),zt>jn?(Ke.addRange(je),Ke.extend(Ee.node,Ee.offset)):(je.setEnd(Ee.node,Ee.offset),Ke.addRange(je))}}}}for(st=[],Ke=ne;Ke=Ke.parentNode;)Ke.nodeType===1&&st.push({element:Ke,left:Ke.scrollLeft,top:Ke.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ney?32:y,W.T=null,y=LE,LE=null;var O=$c,V=_l;if(Qi=0,mh=$c=null,_l=0,(Tn&6)!==0)throw Error(i(331));var ne=Tn;if(Tn|=4,_U(O.current),vU(O,O.current,V,y),Tn=ne,ug(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(Ie,O)}catch{}return!0}finally{q.p=N,W.T=S,FU(u,h)}}function BU(u,h,y){h=gs(y,h),h=pE(u.stateNode,h,2),u=Uc(u,h,2),u!==null&&(sn(u,2),Ro(u))}function On(u,h,y){if(u.tag===3)BU(u,u,y);else for(;h!==null;){if(h.tag===3){BU(h,u,y);break}else if(h.tag===1){var S=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Vc===null||!Vc.has(S))){u=gs(y,u),y=HI(2),S=Uc(h,y,2),S!==null&&(VI(y,S,h,u),sn(S,2),Ro(S));break}}h=h.return}}function FE(u,h,y){var S=u.pingCache;if(S===null){S=u.pingCache=new Uee;var N=new Set;S.set(h,N)}else N=S.get(h),N===void 0&&(N=new Set,S.set(h,N));N.has(y)||(PE=!0,N.add(y),u=Hee.bind(null,u,h,y),h.then(u,u))}function Hee(u,h,y){var S=u.pingCache;S!==null&&S.delete(h),u.pingedLanes|=u.suspendedLanes&y,u.warmLanes&=~y,qn===u&&(mn&y)===y&&(_i===4||_i===3&&(mn&62914560)===mn&&300>L()-Xv?(Tn&2)===0&&gh(u,0):DE|=y,ph===mn&&(ph=0)),Ro(u)}function HU(u,h){h===0&&(h=bt()),u=pd(u,h),u!==null&&(sn(u,h),Ro(u))}function Vee(u){var h=u.memoizedState,y=0;h!==null&&(y=h.retryLane),HU(u,y)}function $ee(u,h){var y=0;switch(u.tag){case 31:case 13:var S=u.stateNode,N=u.memoizedState;N!==null&&(y=N.retryLane);break;case 19:S=u.stateNode;break;case 22:S=u.stateNode._retryCache;break;default:throw Error(i(314))}S!==null&&S.delete(h),HU(u,y)}function Gee(u,h){return De(u,h)}var ty=null,vh=null,zE=!1,ny=!1,BE=!1,Wc=0;function Ro(u){u!==vh&&u.next===null&&(vh===null?ty=vh=u:vh=vh.next=u),ny=!0,zE||(zE=!0,qee())}function ug(u,h){if(!BE&&ny){BE=!0;do for(var y=!1,S=ty;S!==null;){if(u!==0){var N=S.pendingLanes;if(N===0)var O=0;else{var V=S.suspendedLanes,ne=S.pingedLanes;O=(1<<31-tt(42|u)+1)-1,O&=N&~(V&~ne),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(y=!0,WU(S,O))}else O=mn,O=ge(S,S===qn?O:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(O&3)===0||Be(S,O)||(y=!0,WU(S,O));S=S.next}while(y);BE=!1}}function Wee(){VU()}function VU(){ny=zE=!1;var u=0;Wc!==0&&ite()&&(u=Wc);for(var h=L(),y=null,S=ty;S!==null;){var N=S.next,O=$U(S,h);O===0?(S.next=null,y===null?ty=N:y.next=N,N===null&&(vh=y)):(y=S,(u!==0||(O&3)!==0)&&(ny=!0)),S=N}Qi!==0&&Qi!==5||ug(u),Wc!==0&&(Wc=0)}function $U(u,h){for(var y=u.suspendedLanes,S=u.pingedLanes,N=u.expirationTimes,O=u.pendingLanes&-62914561;0ne)break;var Je=_e.transferSize,st=_e.initiatorType;Je&&e4(st)&&(_e=_e.responseEnd,V+=Je*(_e"u"?null:document;function f4(u,h,y){var S=yh;if(S&&typeof h=="string"&&h){var N=Cn(h);N='link[rel="'+u+'"][href="'+N+'"]',typeof y=="string"&&(N+='[crossorigin="'+y+'"]'),d4.has(N)||(d4.add(N),u={rel:u,crossOrigin:y,href:h},S.querySelector(N)===null&&(h=S.createElement("link"),kr(h,"link",u),Te(h),S.head.appendChild(h)))}}function fte(u){Sl.D(u),f4("dns-prefetch",u,null)}function hte(u,h){Sl.C(u,h),f4("preconnect",u,h)}function pte(u,h,y){Sl.L(u,h,y);var S=yh;if(S&&u&&h){var N='link[rel="preload"][as="'+Cn(h)+'"]';h==="image"&&y&&y.imageSrcSet?(N+='[imagesrcset="'+Cn(y.imageSrcSet)+'"]',typeof y.imageSizes=="string"&&(N+='[imagesizes="'+Cn(y.imageSizes)+'"]')):N+='[href="'+Cn(u)+'"]';var O=N;switch(h){case"style":O=bh(u);break;case"script":O=_h(u)}Ss.has(O)||(u=f({rel:"preload",href:h==="image"&&y&&y.imageSrcSet?void 0:u,as:h},y),Ss.set(O,u),S.querySelector(N)!==null||h==="style"&&S.querySelector(pg(O))||h==="script"&&S.querySelector(mg(O))||(h=S.createElement("link"),kr(h,"link",u),Te(h),S.head.appendChild(h)))}}function mte(u,h){Sl.m(u,h);var y=yh;if(y&&u){var S=h&&typeof h.as=="string"?h.as:"script",N='link[rel="modulepreload"][as="'+Cn(S)+'"][href="'+Cn(u)+'"]',O=N;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=_h(u)}if(!Ss.has(O)&&(u=f({rel:"modulepreload",href:u},h),Ss.set(O,u),y.querySelector(N)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(y.querySelector(mg(O)))return}S=y.createElement("link"),kr(S,"link",u),Te(S),y.head.appendChild(S)}}}function gte(u,h,y){Sl.S(u,h,y);var S=yh;if(S&&u){var N=Ce(S).hoistableStyles,O=bh(u);h=h||"default";var V=N.get(O);if(!V){var ne={loading:0,preload:null};if(V=S.querySelector(pg(O)))ne.loading=5;else{u=f({rel:"stylesheet",href:u,"data-precedence":h},y),(y=Ss.get(O))&&iA(u,y);var _e=V=S.createElement("link");Te(_e),kr(_e,"link",u),_e._p=new Promise(function(Fe,Je){_e.onload=Fe,_e.onerror=Je}),_e.addEventListener("load",function(){ne.loading|=1}),_e.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,oy(V,h,S)}V={type:"stylesheet",instance:V,count:1,state:ne},N.set(O,V)}}}function xte(u,h){Sl.X(u,h);var y=yh;if(y&&u){var S=Ce(y).hoistableScripts,N=_h(u),O=S.get(N);O||(O=y.querySelector(mg(N)),O||(u=f({src:u,async:!0},h),(h=Ss.get(N))&&rA(u,h),O=y.createElement("script"),Te(O),kr(O,"link",u),y.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},S.set(N,O))}}function vte(u,h){Sl.M(u,h);var y=yh;if(y&&u){var S=Ce(y).hoistableScripts,N=_h(u),O=S.get(N);O||(O=y.querySelector(mg(N)),O||(u=f({src:u,async:!0,type:"module"},h),(h=Ss.get(N))&&rA(u,h),O=y.createElement("script"),Te(O),kr(O,"link",u),y.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},S.set(N,O))}}function h4(u,h,y,S){var N=(N=ie.current)?sy(N):null;if(!N)throw Error(i(446));switch(u){case"meta":case"title":return null;case"style":return typeof y.precedence=="string"&&typeof y.href=="string"?(h=bh(y.href),y=Ce(N).hoistableStyles,S=y.get(h),S||(S={type:"style",instance:null,count:0,state:null},y.set(h,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(y.rel==="stylesheet"&&typeof y.href=="string"&&typeof y.precedence=="string"){u=bh(y.href);var O=Ce(N).hoistableStyles,V=O.get(u);if(V||(N=N.ownerDocument||N,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(u,V),(O=N.querySelector(pg(u)))&&!O._p&&(V.instance=O,V.state.loading=5),Ss.has(u)||(y={rel:"preload",as:"style",href:y.href,crossOrigin:y.crossOrigin,integrity:y.integrity,media:y.media,hrefLang:y.hrefLang,referrerPolicy:y.referrerPolicy},Ss.set(u,y),O||yte(N,u,y,V.state))),h&&S===null)throw Error(i(528,""));return V}if(h&&S!==null)throw Error(i(529,""));return null;case"script":return h=y.async,y=y.src,typeof y=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=_h(y),y=Ce(N).hoistableScripts,S=y.get(h),S||(S={type:"script",instance:null,count:0,state:null},y.set(h,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,u))}}function bh(u){return'href="'+Cn(u)+'"'}function pg(u){return'link[rel="stylesheet"]['+u+"]"}function p4(u){return f({},u,{"data-precedence":u.precedence,precedence:null})}function yte(u,h,y,S){u.querySelector('link[rel="preload"][as="style"]['+h+"]")?S.loading=1:(h=u.createElement("link"),S.preload=h,h.addEventListener("load",function(){return S.loading|=1}),h.addEventListener("error",function(){return S.loading|=2}),kr(h,"link",y),Te(h),u.head.appendChild(h))}function _h(u){return'[src="'+Cn(u)+'"]'}function mg(u){return"script[async]"+u}function m4(u,h,y){if(h.count++,h.instance===null)switch(h.type){case"style":var S=u.querySelector('style[data-href~="'+Cn(y.href)+'"]');if(S)return h.instance=S,Te(S),S;var N=f({},y,{"data-href":y.href,"data-precedence":y.precedence,href:null,precedence:null});return S=(u.ownerDocument||u).createElement("style"),Te(S),kr(S,"style",N),oy(S,y.precedence,u),h.instance=S;case"stylesheet":N=bh(y.href);var O=u.querySelector(pg(N));if(O)return h.state.loading|=4,h.instance=O,Te(O),O;S=p4(y),(N=Ss.get(N))&&iA(S,N),O=(u.ownerDocument||u).createElement("link"),Te(O);var V=O;return V._p=new Promise(function(ne,_e){V.onload=ne,V.onerror=_e}),kr(O,"link",S),h.state.loading|=4,oy(O,y.precedence,u),h.instance=O;case"script":return O=_h(y.src),(N=u.querySelector(mg(O)))?(h.instance=N,Te(N),N):(S=y,(N=Ss.get(O))&&(S=f({},y),rA(S,N)),u=u.ownerDocument||u,N=u.createElement("script"),Te(N),kr(N,"link",S),u.head.appendChild(N),h.instance=N);case"void":return null;default:throw Error(i(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(S=h.instance,h.state.loading|=4,oy(S,y.precedence,u));return h.instance}function oy(u,h,y){for(var S=y.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=S.length?S[S.length-1]:null,O=N,V=0;V title"):null)}function bte(u,h,y){if(y===1||h.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return u=h.disabled,typeof h.precedence=="string"&&u==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function v4(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function _te(u,h,y,S){if(y.type==="stylesheet"&&(typeof S.media!="string"||matchMedia(S.media).matches!==!1)&&(y.state.loading&4)===0){if(y.instance===null){var N=bh(S.href),O=h.querySelector(pg(N));if(O){h=O._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(u.count++,u=cy.bind(u),h.then(u,u)),y.state.loading|=4,y.instance=O,Te(O);return}O=h.ownerDocument||h,S=p4(S),(N=Ss.get(N))&&iA(S,N),O=O.createElement("link"),Te(O);var V=O;V._p=new Promise(function(ne,_e){V.onload=ne,V.onerror=_e}),kr(O,"link",S),y.instance=O}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(y,h),(h=y.state.preload)&&(y.state.loading&3)===0&&(u.count++,y=cy.bind(u),h.addEventListener("load",y),h.addEventListener("error",y))}}var aA=0;function Ste(u,h){return u.stylesheets&&u.count===0&&dy(u,u.stylesheets),0aA?50:800)+h);return u.unsuspend=y,function(){u.unsuspend=null,clearTimeout(S),clearTimeout(N)}}:null}function cy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dy(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var uy=null;function dy(u,h){u.stylesheets=null,u.unsuspend!==null&&(u.count++,uy=new Map,h.forEach(wte,u),uy=null,cy.call(u))}function wte(u,h){if(!(h.state.loading&4)){var y=uy.get(u);if(y)var S=y.get(null);else{y=new Map,uy.set(u,y);for(var N=u.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),pA.exports=zte(),pA.exports}var Hte=Bte();const Ht=t=>typeof t=="string",Sg=()=>{let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n},H4=t=>t==null?"":""+t,Vte=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},$te=/###/g,V4=t=>t&&t.indexOf("###")>-1?t.replace($te,"."):t,$4=t=>!t||Ht(t),a0=(t,e,n)=>{const i=Ht(e)?e.split("."):e;let r=0;for(;r{const{obj:i,k:r}=a0(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let a=e[e.length-1],s=e.slice(0,e.length-1),o=a0(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=a0(t,s,Object),o?.obj&&typeof o.obj[`${o.k}.${a}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n},Gte=(t,e,n,i)=>{const{obj:r,k:a}=a0(t,e,Object);r[a]=r[a]||[],r[a].push(n)},w_=(t,e)=>{const{obj:n,k:i}=a0(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},Wte=(t,e,n)=>{const i=w_(t,n);return i!==void 0?i:w_(e,n)},K$=(t,e,n)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?Ht(t[i])||t[i]instanceof String||Ht(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):K$(t[i],e[i],n):t[i]=e[i]);return t},wh=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var qte={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Xte=t=>Ht(t)?t.replace(/[&<>"'\/]/g,e=>qte[e]):t;class Kte{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;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 Yte=[" ",",","?","!",";"],Zte=new Kte(20),Qte=(t,e,n)=>{e=e||"",n=n||"";const i=Yte.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=Zte.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!r.test(t);if(!a){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(a=!0)}return a},iN=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const i=e.split(n);let r=t;for(let a=0;a-1&&lt?.replace("_","-"),Jte={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class M_{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||Jte,this.options=n,this.debug=n.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,n,i,r){return r&&!this.debug?null:(Ht(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new M_(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new M_(this.logger,e)}}var zo=new M_;let DS=class{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([r,a])=>{for(let s=0;s{for(let s=0;s-1&&this.options.ns.splice(n,1)}getResource(e,n,i,r={}){const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],i&&(Array.isArray(i)?o.push(...i):Ht(i)&&a?o.push(...i.split(a)):o.push(i)));const l=w_(this.data,o);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=o[0],n=o[1],i=o.slice(2).join(".")),l||!s||!Ht(i)?l:iN(this.data?.[e]?.[n],i,a)}addResource(e,n,i,r,a={silent:!1}){const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),G4(this.data,o,r),a.silent||this.emit("added",e,n,i,r)}addResources(e,n,i,r={silent:!1}){for(const a in i)(Ht(i[a])||Array.isArray(i[a]))&&this.addResource(e,n,a,i[a],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,a,s={silent:!1,skipCopy:!1}){let o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=i,i=n,n=o[1]),this.addNamespaces(n);let l=w_(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?K$(l,i,a):l={...l,...i},G4(this.data,o,l),s.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var Y$={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(a=>{e=this.processors[a]?.process(e,n,i,r)??e}),e}};const Z$=Symbol("i18next/PATH_KEY");function ene(){const t=[],e=Object.create(null);let n;return e.get=(i,r)=>(n?.revoke?.(),r===Z$?t:(t.push(r),n=Proxy.revocable(i,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function rN(t,e){const{[Z$]:n}=t(ene());return n.join(e?.keySeparator??".")}const q4={},vA=t=>!Ht(t)&&typeof t!="boolean"&&typeof t!="number";class E_ extends DS{constructor(e,n={}){super(),Vte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=zo.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const i={...n};if(e==null)return!1;const r=this.resolve(e,i);if(r?.res===void 0)return!1;const a=vA(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Qte(e,i,r);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Ht(a)?[a]:a};const c=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(r)}return{key:e,namespaces:Ht(a)?[a]:a}}translate(e,n,i){let r=typeof n=="object"?{...n}:n;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=rN(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],r),c=l[l.length-1];let d=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return p?a?{res:`${c}${d}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${d}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:o;const m=this.resolve(e,r);let b=m?.res;const _=m?.usedKey||o,v=m?.exactUsedKey||o,x=["[object Number]","[object Function]","[object RegExp]"],M=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E=r.count!==void 0&&!Ht(r.count),A=E_.hasDefaultValue(r),P=E?this.pluralResolver.getSuffix(f,r.count,r):"",R=r.ordinal&&E?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",j=E&&!r.ordinal&&r.count===0,C=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${P}`]||r[`defaultValue${R}`]||r.defaultValue;let D=b;w&&!b&&A&&(D=C);const F=vA(D),I=Object.prototype.toString.apply(D);if(w&&D&&F&&x.indexOf(I)<0&&!(Ht(M)&&Array.isArray(D))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const $=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,D,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(m.res=$,m.usedParams=this.getUsedParamsDetails(r),m):$}if(s){const $=Array.isArray(D),k=$?[]:{},B=$?v:_;for(const W in D)if(Object.prototype.hasOwnProperty.call(D,W)){const q=`${B}${s}${W}`;A&&!b?k[W]=this.translate(q,{...r,defaultValue:vA(C)?C[W]:void 0,joinArrays:!1,ns:l}):k[W]=this.translate(q,{...r,joinArrays:!1,ns:l}),k[W]===q&&(k[W]=D[W])}b=k}}else if(w&&Ht(M)&&Array.isArray(b))b=b.join(M),b&&(b=this.extendTranslation(b,e,r,i));else{let $=!1,k=!1;!this.isValidLookup(b)&&A&&($=!0,b=C),this.isValidLookup(b)||(k=!0,b=o);const W=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:b,q=A&&C!==b&&this.options.updateMissing;if(k||$||q){if(this.logger.log(q?"updateKey":"missingKey",f,c,o,q?C:b),s){const H=this.resolve(o,{...r,keySeparator:!1});H&&H.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 K=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let H=0;H{const ce=A&&ae!==b?ae:W;this.options.missingKeyHandler?this.options.missingKeyHandler(H,c,X,ce,q,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(H,c,X,ce,q,r),this.emit("missingKey",H,c,X,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?K.forEach(H=>{const X=this.pluralResolver.getSuffixes(H,r);j&&r[`defaultValue${this.options.pluralSeparator}zero`]&&X.indexOf(`${this.options.pluralSeparator}zero`)<0&&X.push(`${this.options.pluralSeparator}zero`),X.forEach(ae=>{se([H],o+ae,r[`defaultValue${ae}`]||C)})}):se(K,o,C))}b=this.extendTranslation(b,e,r,m,i),k&&b===o&&this.options.appendNamespaceToMissingKey&&(b=`${c}${d}${o}`),(k||$)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${o}`:o,$?b:void 0,r))}return a?(m.res=b,m.usedParams=this.getUsedParamsDetails(r),m):b}extendTranslation(e,n,i,r,a){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 l=Ht(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=i.replace&&!Ht(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,i.lng||this.language||r.usedLng,i),l){const f=e.match(this.interpolator.nestingRegexp),p=f&&f.length;ca?.[0]===f[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),i)),i.interpolation&&this.interpolator.reset()}const s=i.postProcess||this.options.postProcess,o=Ht(s)?[s]:s;return e!=null&&o?.length&&i.applyPostProcessor!==!1&&(e=Y$.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,n={}){let i,r,a,s,o;return Ht(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const c=this.extractFromKey(l,n),d=c.key;r=d;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&!Ht(n.count),m=p&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Ht(n.context)||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{this.isValidLookup(i)||(o=v,!q4[`${_[0]}-${v}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(q4[`${_[0]}-${v}`]=!0,this.logger.warn(`key "${r}" for languages "${_.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),_.forEach(x=>{if(this.isValidLookup(i))return;s=x;const M=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(M,d,x,v,n);else{let E;p&&(E=this.pluralResolver.getSuffix(x,n.count,n));const A=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&E.indexOf(P)===0&&M.push(d+E.replace(P,this.options.pluralSeparator)),M.push(d+E),m&&M.push(d+A)),b){const R=`${d}${this.options.contextSeparator||"_"}${n.context}`;M.push(R),p&&(n.ordinal&&E.indexOf(P)===0&&M.push(R+E.replace(P,this.options.pluralSeparator)),M.push(R+E),m&&M.push(R+A))}}let w;for(;w=M.pop();)this.isValidLookup(i)||(a=w,i=this.getResource(x,v,w,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!Ht(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 a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}class X4{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zo.create("languageUtils")}getScriptPartFromCode(e){if(e=C0(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=C0(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ht(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(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.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ht(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),r=[],a=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Ht(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):Ht(e)&&a(this.formatLanguageCode(e)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}}const K4={zero:0,one:1,two:2,few:3,many:4,other:5},Y4={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class tne{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=zo.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const i=C0(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Y4;if(!e.match(/-|_/))return Y4;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[a]=s,s}needsPlural(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,i={}){return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>K4[r]-K4[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(e,n,i={}){const r=this.getRule(e,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,i))}}const Z4=(t,e,n,i=".",r=!0)=>{let a=Wte(t,e,n);return!a&&r&&Ht(n)&&(a=iN(t,n,i),a===void 0&&(a=iN(e,n,i))),a},yA=t=>t.replace(/\$/g,"$$$$");class nne{constructor(e={}){this.logger=zo.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:b,nestingSuffixEscaped:_,nestingOptionsSeparator:v,maxReplaces:x,alwaysFormat:M}=e.interpolation;this.escape=n!==void 0?n:Xte,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?wh(a):s||"{{",this.suffix=o?wh(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?wh(p):m||wh("$t("),this.nestingSuffix=b?wh(b):_||wh(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=x||1e3,this.alwaysFormat=M!==void 0?M:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n?.source===i?(n.lastIndex=0,n):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,n,i,r){let a,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(m.indexOf(this.formatSeparator)<0){const x=Z4(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,i,{...r,...n,interpolationkey:m}):x}const b=m.split(this.formatSeparator),_=b.shift().trim(),v=b.join(this.formatSeparator).trim();return this.format(Z4(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure),v,i,{...r,...n,interpolationkey:_})};this.resetRegExp();const d=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>yA(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?yA(this.escape(m)):yA(m)}].forEach(m=>{for(o=0;a=m.regex.exec(e);){const b=a[1].trim();if(s=c(b),s===void 0)if(typeof d=="function"){const v=d(e,a,r);s=Ht(v)?v:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),s="";else!Ht(s)&&!this.useRawValueToEscape&&(s=H4(s));const _=m.safeValue(s);if(e=e.replace(a[0],_),f?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,i={}){let r,a,s;const o=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;l=f[0],p=this.interpolate(p,s);const m=p.match(/'/g),b=p.match(/"/g);((m?.length??0)%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,_),`${l}${d}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&!Ht(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(l=r[1].slice(c).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),a=n(o.call(this,r[1].trim(),s),s),a&&r[0]===e&&!Ht(a))return a;Ht(a)||(a=H4(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((d,f)=>this.format(d,f,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}const ine=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[o,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();n[d]||(n[d]=c),c==="false"&&(n[d]=!1),c==="true"&&(n[d]=!0),isNaN(c)||(n[d]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},Q4=t=>{const e={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});const s=i+JSON.stringify(a);let o=e[s];return o||(o=t(C0(i),r),e[s]=o),o(n)}},rne=t=>(e,n,i)=>t(C0(n),i)(e);class ane{constructor(e={}){this.logger=zo.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const i=n.cacheInBuiltFormats?Q4:rne;this.formats={number:i((r,a)=>{const s=new Intl.NumberFormat(r,{...a});return o=>s.format(o)}),currency:i((r,a)=>{const s=new Intl.NumberFormat(r,{...a,style:"currency"});return o=>s.format(o)}),datetime:i((r,a)=>{const s=new Intl.DateTimeFormat(r,{...a});return o=>s.format(o)}),relativetime:i((r,a)=>{const s=new Intl.RelativeTimeFormat(r,{...a});return o=>s.format(o,a.range||"day")}),list:i((r,a)=>{const s=new Intl.ListFormat(r,{...a});return o=>s.format(o)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Q4(n)}format(e,n,i,r={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(o=>o.indexOf(")")>-1)){const o=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,o)].join(this.formatSeparator)}return a.reduce((o,l)=>{const{formatName:c,formatOptions:d}=ine(l);if(this.formats[c]){let f=o;try{const p=r?.formatParams?.[r.interpolationkey]||{},m=p.locale||p.lng||r.locale||r.lng||i;f=this.formats[c](o,m,{...d,...r,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${c}`);return o},e)}}const sne=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class one extends DS{constructor(e,n,i,r={}){super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=zo.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,n,i,r){const a={},s={},o={},l={};return e.forEach(c=>{let d=!0;n.forEach(f=>{const p=`${c}|${f}`;!i.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,d=!1,s[p]===void 0&&(s[p]=!0),a[p]===void 0&&(a[p]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(o[c]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const r=e.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&i&&(this.state[e]=0);const o={};this.queue.forEach(l=>{Gte(l.loaded,[a],s),sne(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});const d=l.loaded[c];d.length&&d.forEach(f=>{o[c][f]===void 0&&(o[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i,r=0,a=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;const o=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&d&&r{this.read.call(this,e,n,i,r+1,a*2,s)},a);return}s(c,d)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}return}return l(e,n,o)}prepareLoading(e,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ht(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ht(n)&&(n=[n]);const a=this.queueLoad(e,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e,n=""){const i=e.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,r,a,s={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" 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 l={...s,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(e,n,i,r,l):d=c(e,n,i,r),d&&typeof d.then=="function"?d.then(f=>o(null,f)).catch(o):o(null,d)}catch(d){o(d)}else c(e,n,i,r,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}const J4=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ht(t[1])&&(e.defaultValue=t[1]),Ht(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{e[i]=n[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ej=t=>(Ht(t.ns)&&(t.ns=[t.ns]),Ht(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ht(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),by=()=>{},lne=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class s0 extends DS{constructor(e={},n){if(super(),this.options=ej(e),this.services={},this.logger=zo,this.modules={external:[]},lne(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(Ht(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=J4();this.options={...i,...this.options,...ej(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);const r=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?zo.init(r(this.modules.logger),this.options):zo.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=ane;const d=new X4(this.options);this.store=new W4(this.options.resources,this.options);const f=this.services;f.logger=zo,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new tne(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=r(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new nne(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new one(r(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(m,...b)=>{this.emit(m,...b)}),this.modules.languageDetector&&(f.languageDetector=r(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=r(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new E_(this.services,this.options),this.translator.on("*",(m,...b)=>{this.emit(m,...b)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=by),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=(...d)=>this.store[c](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...d)=>(this.store[c](...d),this)});const o=Sg(),l=()=>{const c=(d,f)=>{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),o.resolve(f),n(d,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(e,n=by){let i=n;const r=Ht(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 a=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&a.indexOf(c)<0&&a.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(o=>s(o)),this.services.backendConnector.load(a,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const r=Sg();return typeof e=="function"&&(i=e,e=void 0),typeof n=="function"&&(i=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),i||(i=by),this.services.backendConnector.reload(e,n,a=>{r.resolve(),i(a)}),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"&&Y$.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"].indexOf(e)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const i=Sg();this.emit("languageChanging",e);const r=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},a=(o,l)=>{l?this.isLanguageChangingTo===e&&(r(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve((...c)=>this.t(...c)),n&&n(o,(...c)=>this.t(...c))},s=o=>{!e&&!o&&this.services.languageDetector&&(o=[]);const l=Ht(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Ht(o)?[o]:o);c&&(this.language||r(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,d=>{a(d,c)})};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,n,i){const r=(a,s,...o)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([a,s].concat(o)):l={...s},l.lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||r.keyPrefix);const c=this.options.keySeparator||".";let d;return l.keyPrefix&&Array.isArray(a)?d=a.map(f=>(typeof f=="function"&&(f=rN(f,{...this.options,...s})),`${l.keyPrefix}${c}${f}`)):(typeof a=="function"&&(a=rN(a,{...this.options,...s})),d=l.keyPrefix?`${l.keyPrefix}${c}${a}`:a),this.t(d,l)};return Ht(e)?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=i,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(a,e)))}loadNamespaces(e,n){const i=Sg();return this.options.ns?(Ht(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=Sg();Ht(e)&&(e=[e]);const r=this.options.preload||[],a=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),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 a=r.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["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 X4(J4());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const i=new s0(e,n);return i.createInstance=s0.createInstance,i}cloneInstance(e={},n=by){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new s0(r);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){const o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((d,f)=>(d[f]={...l[c][f]},d),l[c]),l),{});a.store=new W4(o,r),a.services.resourceStore=a.store}return a.translator=new E_(a.services,r),a.translator.on("*",(o,...l)=>{a.emit(o,...l)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Sa=s0.createInstance();Sa.createInstance;Sa.dir;Sa.init;Sa.loadResources;Sa.reloadResources;Sa.use;Sa.changeLanguage;Sa.getFixedT;Sa.t;Sa.exists;Sa.setDefaultNamespace;Sa.hasLoadedNamespace;Sa.loadNamespaces;Sa.loadLanguages;const cne=(t,e,n,i)=>{const r=[n,{code:e,...i||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(r,"warn","react-i18next::",!0);vf(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...r):console?.warn&&console.warn(...r)},tj={},Q$=(t,e,n,i)=>{vf(n)&&tj[n]||(vf(n)&&(tj[n]=new Date),cne(t,e,n,i))},J$=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},aN=(t,e,n)=>{t.loadNamespaces(e,J$(t,n))},nj=(t,e,n,i)=>{if(vf(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return aN(t,n,i);n.forEach(r=>{t.options.ns.indexOf(r)<0&&t.options.ns.push(r)}),t.loadLanguages(e,J$(t,i))},une=(t,e,n={})=>!e.languages||!e.languages.length?(Q$(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!r(i.isLanguageChangingTo,t))return!1}}),vf=t=>typeof t=="string",dne=t=>typeof t=="object"&&t!==null,fne=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,hne={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},pne=t=>hne[t],mne=t=>t.replace(fne,pne);let sN={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:mne};const gne=(t={})=>{sN={...sN,...t}},xne=()=>sN;let eG;const vne=t=>{eG=t},yne=()=>eG,bne={type:"3rdParty",init(t){gne(t.options.react),vne(t)}},_ne=T.createContext();class Sne{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var bA={exports:{}},_A={};var ij;function wne(){if(ij)return _A;ij=1;var t=lm();function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,i=t.useState,r=t.useEffect,a=t.useLayoutEffect,s=t.useDebugValue;function o(f,p){var m=p(),b=i({inst:{value:m,getSnapshot:p}}),_=b[0].inst,v=b[1];return a(function(){_.value=m,_.getSnapshot=p,l(_)&&v({inst:_})},[f,m,p]),r(function(){return l(_)&&v({inst:_}),f(function(){l(_)&&v({inst:_})})},[f]),s(m),m}function l(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;return _A.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,_A}var rj;function tG(){return rj||(rj=1,bA.exports=wne()),bA.exports}var fP=tG();const Mne=(t,e)=>vf(e)?e:dne(e)&&vf(e.defaultValue)?e.defaultValue:Array.isArray(t)?t[t.length-1]:t,Ene={t:Mne,ready:!1},Ane=()=>()=>{},hP=(t,e={})=>{const{i18n:n}=e,{i18n:i,defaultNS:r}=T.useContext(_ne)||{},a=n||i||yne();a&&!a.reportNamespaces&&(a.reportNamespaces=new Sne),a||Q$(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=T.useMemo(()=>({...xne(),...a?.options?.react,...e}),[a,e]),{useSuspense:o,keyPrefix:l}=s,c=r||a?.options?.defaultNS,d=vf(c)?[c]:c||["translation"],f=T.useMemo(()=>d,d);a?.reportNamespaces?.addUsedNamespaces?.(f);const p=T.useRef(0),m=T.useCallback(C=>{if(!a)return Ane;const{bindI18n:D,bindI18nStore:F}=s,I=()=>{p.current+=1,C()};return D&&a.on(D,I),F&&a.store.on(F,I),()=>{D&&D.split(" ").forEach($=>a.off($,I)),F&&F.split(" ").forEach($=>a.store.off($,I))}},[a,s]),b=T.useRef(),_=T.useCallback(()=>{if(!a)return Ene;const C=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(B=>une(B,a,s)),D=e.lng||a.language,F=p.current,I=b.current;if(I&&I.ready===C&&I.lng===D&&I.keyPrefix===l&&I.revision===F)return I;const k={t:a.getFixedT(D,s.nsMode==="fallback"?f:f[0],l),ready:C,lng:D,keyPrefix:l,revision:F};return b.current=k,k},[a,f,l,s,e.lng]),[v,x]=T.useState(0),{t:M,ready:w}=fP.useSyncExternalStore(m,_,_);T.useEffect(()=>{if(a&&!w&&!o){const C=()=>x(D=>D+1);e.lng?nj(a,e.lng,f,C):aN(a,f,C)}},[a,e.lng,f,w,o,v]);const E=a||{},A=T.useRef(null),P=T.useRef(),R=C=>{const D=Object.getOwnPropertyDescriptors(C);D.__original&&delete D.__original;const F=Object.create(Object.getPrototypeOf(C),D);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:C,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},j=T.useMemo(()=>{const C=E,D=C?.language;let F=C;C&&(A.current&&A.current.__original===C?P.current!==D?(F=R(C),A.current=F,P.current=D):F=A.current:(F=R(C),A.current=F,P.current=D));const I=[M,F,w];return I.t=M,I.i18n=F,I.ready=w,I},[M,E,w,E.resolvedLanguage,E.language,E.languages]);if(a&&o&&!w)throw new Promise(C=>{const D=()=>C();e.lng?nj(a,e.lng,f,D):aN(a,f,D)});return j},{slice:Tne,forEach:Cne}=[];function Nne(t){return Cne.call(Tne.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function Rne(t){return typeof t!="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(n=>n.test(t))}const aj=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Pne=function(t,e){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(e);let a=`${t}=${r}`;if(i.maxAge>0){const s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(s)}`}if(i.domain){if(!aj.test(i.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${i.domain}`}if(i.path){if(!aj.test(i.path))throw new TypeError("option path is invalid");a+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(a+="; Partitioned"),a},sj={create(t,e,n,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),i&&(r.domain=i),document.cookie=Pne(t,e,r)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let i=0;i-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const a=i.substring(1).split("&");for(let s=0;s0&&a[s].substring(0,o)===e&&(n=a[s].substring(o+1))}}return n}},kne={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,i;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const a=r.substring(1);if(e){const s=a.split("&");for(let o=0;o0&&s[o].substring(0,l)===e&&(i=s[o].substring(l+1))}}if(i)return i;if(!i&&n>-1){const s=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return i}};let Mh=null;const oj=()=>{if(Mh!==null)return Mh;try{if(Mh=typeof window<"u"&&window.localStorage!==null,!Mh)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Mh=!1}return Mh};var Lne={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&oj())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&oj()&&window.localStorage.setItem(n,t)}};let Eh=null;const lj=()=>{if(Eh!==null)return Eh;try{if(Eh=typeof window<"u"&&window.sessionStorage!==null,!Eh)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Eh=!1}return Eh};var Ine={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&lj())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&lj()&&window.sessionStorage.setItem(n,t)}},Une={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:i,language:r}=navigator;if(n)for(let a=0;a0?e:void 0}},jne={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const i=e||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},Fne={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},zne={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=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[n]}};let nG=!1;try{document.cookie,nG=!0}catch{}const iG=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];nG||iG.splice(1,1);const Bne=()=>({order:iG,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class rG{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=Nne(n,this.options||{},Bne()),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(Dne),this.addDetector(One),this.addDetector(Lne),this.addDetector(Ine),this.addDetector(Une),this.addDetector(jne),this.addDetector(Fne),this.addDetector(zne),this.addDetector(kne)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(i=>{if(this.detectors[i]){let r=this.detectors[i].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(n=n.concat(r))}}),n=n.filter(i=>i!=null&&!Rne(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(e,this.options)}))}}rG.type="languageDetector";const Hne={nav:{printers:"Printers",archives:"Archives",queue:"Queue",stats:"Statistics",profiles:"Profiles",maintenance:"Maintenance",settings:"Settings",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",update:"Update",updateAvailable:"Update available: v{{version}}",viewOnGithub:"View on GitHub",keyboardShortcuts:"Keyboard shortcuts (?)",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode"},common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",close:"Close",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",warning:"Warning",enabled:"Enabled",disabled:"Disabled",yes:"Yes",no:"No",on:"On",off:"Off",all:"All",none:"None",search:"Search",filter:"Filter",sort:"Sort",refresh:"Refresh",download:"Download",upload:"Upload",actions:"Actions",status:"Status",name:"Name",description:"Description",date:"Date",time:"Time",hours:"hours",minutes:"minutes",seconds:"seconds",noPrinters:"No printers configured",noData:"No data available",required:"Required",optional:"Optional"},printers:{title:"Printers",addPrinter:"Add Printer",editPrinter:"Edit Printer",deletePrinter:"Delete Printer",printerName:"Printer Name",serialNumber:"Serial Number",ipAddress:"IP Address",accessCode:"Access Code",model:"Model",nozzleCount:"Nozzle Count",autoArchive:"Auto Archive",status:{idle:"Idle",printing:"Printing",paused:"Paused",offline:"Offline",error:"Error",finished:"Finished",unknown:"Unknown"},temperatures:{nozzle:"Nozzle",bed:"Bed",chamber:"Chamber"},progress:"{{percent}}% complete",timeRemaining:"{{time}} remaining",deleteConfirm:'Are you sure you want to delete "{{name}}"?',maintenanceOk:"Maintenance OK",maintenanceWarning:"{{count}} warning",maintenanceWarning_plural:"{{count}} warnings",maintenanceDue:"{{count}} due",maintenanceDue_plural:"{{count}} due"},archives:{title:"Print Archives",searchPlaceholder:"Search archives...",filterByPrinter:"Filter by printer",filterByStatus:"Filter by status",sortBy:"Sort by",sortNewest:"Newest first",sortOldest:"Oldest first",sortName:"Name",sortDuration:"Duration",noArchives:"No archives found",printTime:"Print Time",filamentUsed:"Filament Used",cost:"Cost",reprint:"Reprint",preview:"Preview",deleteArchive:"Delete Archive",deleteConfirm:"Are you sure you want to delete this archive?",favorite:"Favorite",unfavorite:"Remove from favorites",viewDetails:"View Details",status:{completed:"Completed",failed:"Failed",stopped:"Stopped"}},queue:{title:"Print Queue",addToQueue:"Add to Queue",clearQueue:"Clear Queue",emptyQueue:"Queue is empty",position:"Position",scheduledTime:"Scheduled Time",moveUp:"Move Up",moveDown:"Move Down",remove:"Remove",startNow:"Start Now",status:{pending:"Pending",printing:"Printing",completed:"Completed",failed:"Failed",cancelled:"Cancelled"}},stats:{title:"Statistics",overview:"Overview",totalPrints:"Total Prints",successRate:"Success Rate",totalPrintTime:"Total Print Time",totalFilament:"Total Filament Used",totalCost:"Total Cost",averagePrintTime:"Average Print Time",printsPerDay:"Prints per Day",byPrinter:"By Printer",byMaterial:"By Material",byMonth:"By Month",last7Days:"Last 7 Days",last30Days:"Last 30 Days",last90Days:"Last 90 Days",allTime:"All Time"},profiles:{title:"Filament Profiles",addProfile:"Add Profile",editProfile:"Edit Profile",deleteProfile:"Delete Profile",material:"Material",brand:"Brand",color:"Color",diameter:"Diameter",density:"Density",costPerKg:"Cost per kg",spoolWeight:"Spool Weight",noProfiles:"No profiles configured",deleteConfirm:"Are you sure you want to delete this profile?"},maintenance:{title:"Maintenance",overview:"Overview",allOk:"All maintenance up to date",dueCount:"{{count}} item due",dueCount_plural:"{{count}} items due",warningCount:"{{count}} warning",warningCount_plural:"{{count}} warnings",totalPrintTime:"Total Print Time",nextMaintenance:"Next Maintenance",nothingDue:"Nothing due",tasks:"Tasks",lastPerformed:"Last performed",interval:"Interval",hoursRemaining:"{{hours}}h remaining",hoursOverdue:"{{hours}}h overdue",markDone:"Mark as Done",performMaintenance:"Perform Maintenance",history:"History",noHistory:"No maintenance history",editPrintHours:"Edit Print Hours",currentHours:"Current Hours",types:{lubricateRails:"Lubricate Linear Rails",cleanNozzle:"Clean Nozzle/Hotend",checkBelts:"Check Belt Tension",cleanBuildPlate:"Clean Build Plate",checkExtruder:"Check Extruder Gears",checkCooling:"Check Cooling Fans",generalInspection:"General Inspection"}},settings:{title:"Settings",general:"General",appearance:"Appearance",notifications:"Notifications",smartPlugs:"Smart Plugs",spoolman:"Spoolman",updates:"Updates",language:"Language",languageDescription:"Select your preferred language",theme:"Theme",themeLight:"Light",themeDark:"Dark",themeSystem:"System",defaultView:"Default View",defaultViewDescription:"Page to show when opening the app",checkForUpdates:"Check for Updates",autoUpdate:"Auto Update",currentVersion:"Current Version",latestVersion:"Latest Version",upToDate:"You are up to date",updateAvailable:"Update available",notificationLanguage:"Notification Language",notificationLanguageDescription:"Language for push notifications",notificationProviders:"Notification Providers",addProvider:"Add Provider",editProvider:"Edit Provider",providerType:"Provider Type",testNotification:"Test Notification",testSuccess:"Test notification sent successfully",testFailed:"Failed to send test notification",quietHours:"Quiet Hours",quietHoursDescription:"Do not disturb during these hours",quietHoursStart:"Start",quietHoursEnd:"End",events:{title:"Notification Events",printStart:"Print Started",printComplete:"Print Completed",printFailed:"Print Failed",printStopped:"Print Stopped",printProgress:"Progress Milestones",printProgressDescription:"Notify at 25%, 50%, 75%",printerOffline:"Printer Offline",printerError:"Printer Error",filamentLow:"Low Filament",maintenanceDue:"Maintenance Due",maintenanceDueDescription:"Notify when maintenance is needed"},smartPlug:{title:"Smart Plugs",add:"Add Smart Plug",edit:"Edit Smart Plug",name:"Name",ipAddress:"IP Address",linkedPrinter:"Linked Printer",autoOn:"Auto Power On",autoOnDescription:"Turn on when print starts",autoOff:"Auto Power Off",autoOffDescription:"Turn off after print completes",offDelay:"Off Delay",offDelayMinutes:"Minutes after print",offDelayTemp:"When nozzle below temperature",currentState:"Current State",turnOn:"Turn On",turnOff:"Turn Off"},spoolmanEnabled:"Enable Spoolman Integration",spoolmanUrl:"Spoolman URL",spoolmanConnected:"Connected",spoolmanDisconnected:"Disconnected"},notification:{printStarted:{title:"Print Started",body:"{{printer}}: {{filename}} has started printing"},printCompleted:{title:"Print Completed",body:"{{printer}}: {{filename}} completed successfully"},printFailed:{title:"Print Failed",body:"{{printer}}: {{filename}} has failed"},printStopped:{title:"Print Stopped",body:"{{printer}}: {{filename}} was stopped"},printProgress:{title:"Print Progress",body:"{{printer}}: {{filename}} is {{percent}}% complete"},printerOffline:{title:"Printer Offline",body:"{{printer}} is offline"},printerError:{title:"Printer Error",body:"{{printer}}: {{error}}"},filamentLow:{title:"Low Filament",body:"{{printer}}: Filament is running low"},maintenanceDue:{title:"Maintenance Due",body:"{{printer}}: {{items}} need attention"}},errors:{generic:"Something went wrong",networkError:"Network error. Please check your connection.",notFound:"Not found",unauthorized:"Unauthorized",serverError:"Server error",validationError:"Please check your input",printerConnectionFailed:"Failed to connect to printer",saveFailed:"Failed to save changes",deleteFailed:"Failed to delete",loadFailed:"Failed to load data"},confirm:{delete:"Are you sure you want to delete this?",unsavedChanges:"You have unsaved changes. Are you sure you want to leave?",clearQueue:"Are you sure you want to clear the queue?"}},Vne={nav:{printers:"Drucker",archives:"Archiv",queue:"Warteschlange",stats:"Statistiken",profiles:"Profile",maintenance:"Wartung",settings:"Einstellungen",collapseSidebar:"Seitenleiste einklappen",expandSidebar:"Seitenleiste ausklappen",update:"Update",updateAvailable:"Update verfügbar: v{{version}}",viewOnGithub:"Auf GitHub ansehen",keyboardShortcuts:"Tastaturkürzel (?)",switchToLight:"Zum hellen Modus wechseln",switchToDark:"Zum dunklen Modus wechseln"},common:{save:"Speichern",cancel:"Abbrechen",delete:"Löschen",edit:"Bearbeiten",add:"Hinzufügen",close:"Schließen",confirm:"Bestätigen",loading:"Lädt...",error:"Fehler",success:"Erfolg",warning:"Warnung",enabled:"Aktiviert",disabled:"Deaktiviert",yes:"Ja",no:"Nein",on:"An",off:"Aus",all:"Alle",none:"Keine",search:"Suchen",filter:"Filtern",sort:"Sortieren",refresh:"Aktualisieren",download:"Herunterladen",upload:"Hochladen",actions:"Aktionen",status:"Status",name:"Name",description:"Beschreibung",date:"Datum",time:"Zeit",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden",noPrinters:"Keine Drucker konfiguriert",noData:"Keine Daten verfügbar",required:"Erforderlich",optional:"Optional"},printers:{title:"Drucker",addPrinter:"Drucker hinzufügen",editPrinter:"Drucker bearbeiten",deletePrinter:"Drucker löschen",printerName:"Druckername",serialNumber:"Seriennummer",ipAddress:"IP-Adresse",accessCode:"Zugangscode",model:"Modell",nozzleCount:"Düsenanzahl",autoArchive:"Automatische Archivierung",status:{idle:"Bereit",printing:"Druckt",paused:"Pausiert",offline:"Offline",error:"Fehler",finished:"Fertig",unknown:"Unbekannt"},temperatures:{nozzle:"Düse",bed:"Druckbett",chamber:"Kammer"},progress:"{{percent}}% abgeschlossen",timeRemaining:"Noch {{time}}",deleteConfirm:'Möchten Sie "{{name}}" wirklich löschen?',maintenanceOk:"Wartung OK",maintenanceWarning:"{{count}} Warnung",maintenanceWarning_plural:"{{count}} Warnungen",maintenanceDue:"{{count}} fällig",maintenanceDue_plural:"{{count}} fällig"},archives:{title:"Druckarchiv",searchPlaceholder:"Archiv durchsuchen...",filterByPrinter:"Nach Drucker filtern",filterByStatus:"Nach Status filtern",sortBy:"Sortieren nach",sortNewest:"Neueste zuerst",sortOldest:"Älteste zuerst",sortName:"Name",sortDuration:"Dauer",noArchives:"Keine Archive gefunden",printTime:"Druckzeit",filamentUsed:"Verbrauchtes Filament",cost:"Kosten",reprint:"Erneut drucken",preview:"Vorschau",deleteArchive:"Archiv löschen",deleteConfirm:"Möchten Sie dieses Archiv wirklich löschen?",favorite:"Favorit",unfavorite:"Aus Favoriten entfernen",viewDetails:"Details anzeigen",status:{completed:"Abgeschlossen",failed:"Fehlgeschlagen",stopped:"Gestoppt"}},queue:{title:"Druckwarteschlange",addToQueue:"Zur Warteschlange hinzufügen",clearQueue:"Warteschlange leeren",emptyQueue:"Warteschlange ist leer",position:"Position",scheduledTime:"Geplante Zeit",moveUp:"Nach oben",moveDown:"Nach unten",remove:"Entfernen",startNow:"Jetzt starten",status:{pending:"Ausstehend",printing:"Druckt",completed:"Abgeschlossen",failed:"Fehlgeschlagen",cancelled:"Abgebrochen"}},stats:{title:"Statistiken",overview:"Übersicht",totalPrints:"Gesamtdrucke",successRate:"Erfolgsrate",totalPrintTime:"Gesamtdruckzeit",totalFilament:"Gesamtverbrauch Filament",totalCost:"Gesamtkosten",averagePrintTime:"Durchschnittliche Druckzeit",printsPerDay:"Drucke pro Tag",byPrinter:"Nach Drucker",byMaterial:"Nach Material",byMonth:"Nach Monat",last7Days:"Letzte 7 Tage",last30Days:"Letzte 30 Tage",last90Days:"Letzte 90 Tage",allTime:"Gesamt"},profiles:{title:"Filament-Profile",addProfile:"Profil hinzufügen",editProfile:"Profil bearbeiten",deleteProfile:"Profil löschen",material:"Material",brand:"Marke",color:"Farbe",diameter:"Durchmesser",density:"Dichte",costPerKg:"Kosten pro kg",spoolWeight:"Spulengewicht",noProfiles:"Keine Profile konfiguriert",deleteConfirm:"Möchten Sie dieses Profil wirklich löschen?"},maintenance:{title:"Wartung",overview:"Übersicht",allOk:"Alle Wartungen aktuell",dueCount:"{{count}} Aufgabe fällig",dueCount_plural:"{{count}} Aufgaben fällig",warningCount:"{{count}} Warnung",warningCount_plural:"{{count}} Warnungen",totalPrintTime:"Gesamtdruckzeit",nextMaintenance:"Nächste Wartung",nothingDue:"Nichts fällig",tasks:"Aufgaben",lastPerformed:"Zuletzt durchgeführt",interval:"Intervall",hoursRemaining:"{{hours}}h verbleibend",hoursOverdue:"{{hours}}h überfällig",markDone:"Als erledigt markieren",performMaintenance:"Wartung durchführen",history:"Verlauf",noHistory:"Kein Wartungsverlauf",editPrintHours:"Druckstunden bearbeiten",currentHours:"Aktuelle Stunden",types:{lubricateRails:"Linearschienen schmieren",cleanNozzle:"Düse/Hotend reinigen",checkBelts:"Riemenspannung prüfen",cleanBuildPlate:"Druckbett reinigen",checkExtruder:"Extruderzahnräder prüfen",checkCooling:"Kühlungslüfter prüfen",generalInspection:"Allgemeine Inspektion"}},settings:{title:"Einstellungen",general:"Allgemein",appearance:"Erscheinungsbild",notifications:"Benachrichtigungen",smartPlugs:"Smart Plugs",spoolman:"Spoolman",updates:"Updates",language:"Sprache",languageDescription:"Wählen Sie Ihre bevorzugte Sprache",theme:"Design",themeLight:"Hell",themeDark:"Dunkel",themeSystem:"System",defaultView:"Standardansicht",defaultViewDescription:"Seite, die beim Öffnen der App angezeigt wird",checkForUpdates:"Nach Updates suchen",autoUpdate:"Automatische Updates",currentVersion:"Aktuelle Version",latestVersion:"Neueste Version",upToDate:"Sie sind auf dem neuesten Stand",updateAvailable:"Update verfügbar",notificationLanguage:"Benachrichtigungssprache",notificationLanguageDescription:"Sprache für Push-Benachrichtigungen",notificationProviders:"Benachrichtigungsanbieter",addProvider:"Anbieter hinzufügen",editProvider:"Anbieter bearbeiten",providerType:"Anbietertyp",testNotification:"Testbenachrichtigung",testSuccess:"Testbenachrichtigung erfolgreich gesendet",testFailed:"Testbenachrichtigung konnte nicht gesendet werden",quietHours:"Ruhezeiten",quietHoursDescription:"Keine Störungen während dieser Zeiten",quietHoursStart:"Beginn",quietHoursEnd:"Ende",events:{title:"Benachrichtigungsereignisse",printStart:"Druck gestartet",printComplete:"Druck abgeschlossen",printFailed:"Druck fehlgeschlagen",printStopped:"Druck gestoppt",printProgress:"Fortschrittsmeldungen",printProgressDescription:"Bei 25%, 50%, 75% benachrichtigen",printerOffline:"Drucker offline",printerError:"Druckerfehler",filamentLow:"Filament niedrig",maintenanceDue:"Wartung fällig",maintenanceDueDescription:"Benachrichtigen, wenn Wartung erforderlich"},smartPlug:{title:"Smart Plugs",add:"Smart Plug hinzufügen",edit:"Smart Plug bearbeiten",name:"Name",ipAddress:"IP-Adresse",linkedPrinter:"Verknüpfter Drucker",autoOn:"Automatisch einschalten",autoOnDescription:"Einschalten beim Druckstart",autoOff:"Automatisch ausschalten",autoOffDescription:"Ausschalten nach Druckende",offDelay:"Ausschaltverzögerung",offDelayMinutes:"Minuten nach Druck",offDelayTemp:"Wenn Düse unter Temperatur",currentState:"Aktueller Status",turnOn:"Einschalten",turnOff:"Ausschalten"},spoolmanEnabled:"Spoolman-Integration aktivieren",spoolmanUrl:"Spoolman URL",spoolmanConnected:"Verbunden",spoolmanDisconnected:"Nicht verbunden"},notification:{printStarted:{title:"Druck gestartet",body:"{{printer}}: {{filename}} wird gedruckt"},printCompleted:{title:"Druck abgeschlossen",body:"{{printer}}: {{filename}} erfolgreich abgeschlossen"},printFailed:{title:"Druck fehlgeschlagen",body:"{{printer}}: {{filename}} ist fehlgeschlagen"},printStopped:{title:"Druck gestoppt",body:"{{printer}}: {{filename}} wurde gestoppt"},printProgress:{title:"Druckfortschritt",body:"{{printer}}: {{filename}} ist zu {{percent}}% abgeschlossen"},printerOffline:{title:"Drucker offline",body:"{{printer}} ist offline"},printerError:{title:"Druckerfehler",body:"{{printer}}: {{error}}"},filamentLow:{title:"Filament niedrig",body:"{{printer}}: Filament geht zur Neige"},maintenanceDue:{title:"Wartung fällig",body:"{{printer}}: {{items}} benötigen Aufmerksamkeit"}},errors:{generic:"Etwas ist schiefgelaufen",networkError:"Netzwerkfehler. Bitte überprüfen Sie Ihre Verbindung.",notFound:"Nicht gefunden",unauthorized:"Nicht autorisiert",serverError:"Serverfehler",validationError:"Bitte überprüfen Sie Ihre Eingabe",printerConnectionFailed:"Verbindung zum Drucker fehlgeschlagen",saveFailed:"Speichern fehlgeschlagen",deleteFailed:"Löschen fehlgeschlagen",loadFailed:"Laden der Daten fehlgeschlagen"},confirm:{delete:"Möchten Sie dies wirklich löschen?",unsavedChanges:"Sie haben ungespeicherte Änderungen. Möchten Sie wirklich verlassen?",clearQueue:"Möchten Sie die Warteschlange wirklich leeren?"}},$ne={en:{translation:Hne},de:{translation:Vne}};Sa.use(rG).use(bne).init({resources:$ne,fallbackLng:"en",supportedLngs:["en","de"],detection:{order:["localStorage","navigator","htmlTag"],lookupLocalStorage:"bambutrack_language",caches:["localStorage"]},interpolation:{escapeValue:!1},react:{useSuspense:!1}});const cj=[{code:"en",name:"English",nativeName:"English"},{code:"de",name:"German",nativeName:"Deutsch"}];var uj="popstate";function Gne(t={}){function e(i,r){let{pathname:a,search:s,hash:o}=i.location;return oN("",{pathname:a,search:s,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:N0(r)}return qne(e,n,null,t)}function mi(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function bo(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Wne(){return Math.random().toString(36).substring(2,10)}function dj(t,e){return{usr:t.state,key:t.key,idx:e}}function oN(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?cm(e):e,state:n,key:e&&e.key||i||Wne()}}function N0({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function cm(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function qne(t,e,n,i={}){let{window:r=document.defaultView,v5Compat:a=!1}=i,s=r.history,o="POP",l=null,c=d();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function d(){return(s.state||{idx:null}).idx}function f(){o="POP";let v=d(),x=v==null?null:v-c;c=v,l&&l({action:o,location:_.location,delta:x})}function p(v,x){o="PUSH";let M=oN(_.location,v,x);c=d()+1;let w=dj(M,c),E=_.createHref(M);try{s.pushState(w,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;r.location.assign(E)}a&&l&&l({action:o,location:_.location,delta:1})}function m(v,x){o="REPLACE";let M=oN(_.location,v,x);c=d();let w=dj(M,c),E=_.createHref(M);s.replaceState(w,"",E),a&&l&&l({action:o,location:_.location,delta:0})}function b(v){return Xne(v)}let _={get action(){return o},get location(){return t(r,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(uj,f),l=v,()=>{r.removeEventListener(uj,f),l=null}},createHref(v){return e(r,v)},createURL:b,encodeLocation(v){let x=b(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:m,go(v){return s.go(v)}};return _}function Xne(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),mi(n,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:N0(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function aG(t,e,n="/"){return Kne(t,e,n,!1)}function Kne(t,e,n,i){let r=typeof e=="string"?cm(e):e,a=lc(r.pathname||"/",n);if(a==null)return null;let s=sG(t);Yne(s);let o=null;for(let l=0;o==null&&l{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&l)return;mi(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let f=ec([i,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(mi(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),sG(s.children,e,p,f,l)),!(s.path==null&&!s.index)&&e.push({path:f,score:iie(f,s.index),routesMeta:p})};return t.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of oG(s.path))a(s,o,!0,l)}),e}function oG(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return r?[a,""]:[a];let s=oG(i.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),r&&o.push(...s),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function Yne(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:rie(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var Zne=/^:[\w-]+$/,Qne=3,Jne=2,eie=1,tie=10,nie=-2,fj=t=>t==="*";function iie(t,e){let n=t.split("/"),i=n.length;return n.some(fj)&&(i+=nie),e&&(i+=Jne),n.filter(r=>!fj(r)).reduce((r,a)=>r+(Zne.test(a)?Qne:a===""?eie:tie),i)}function rie(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function aie(t,e,n=!1){let{routesMeta:i}=t,r={},a="/",s=[];for(let o=0;o{if(d==="*"){let b=o[p]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const m=o[p];return f&&!m?c[d]=void 0:c[d]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:t}}function sie(t,e=!1,n=!0){bo(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function oie(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return bo(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function lc(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}var lie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cie=t=>lie.test(t);function uie(t,e="/"){let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?cm(t):t,a;if(n)if(cie(n))a=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),bo(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?a=hj(n.substring(1),"/"):a=hj(n,e)}else a=e;return{pathname:a,search:hie(i),hash:pie(r)}}function hj(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function SA(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function die(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function lG(t){let e=die(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function cG(t,e,n,i=!1){let r;typeof t=="string"?r=cm(t):(r={...t},mi(!r.pathname||!r.pathname.includes("?"),SA("?","pathname","search",r)),mi(!r.pathname||!r.pathname.includes("#"),SA("#","pathname","hash",r)),mi(!r.search||!r.search.includes("#"),SA("#","search","hash",r)));let a=t===""||r.pathname==="",s=a?"/":r.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!i&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;r.pathname=p.join("/")}o=f>=0?e[f]:"/"}let l=uie(r,o),c=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var ec=t=>t.join("/").replace(/\/\/+/g,"/"),fie=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),hie=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,pie=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function mie(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uG=["POST","PUT","PATCH","DELETE"];new Set(uG);var gie=["GET",...uG];new Set(gie);var um=T.createContext(null);um.displayName="DataRouter";var OS=T.createContext(null);OS.displayName="DataRouterState";T.createContext(!1);var dG=T.createContext({isTransitioning:!1});dG.displayName="ViewTransition";var xie=T.createContext(new Map);xie.displayName="Fetchers";var vie=T.createContext(null);vie.displayName="Await";var nl=T.createContext(null);nl.displayName="Navigation";var Sx=T.createContext(null);Sx.displayName="Location";var il=T.createContext({outlet:null,matches:[],isDataRoute:!1});il.displayName="Route";var pP=T.createContext(null);pP.displayName="RouteError";function yie(t,{relative:e}={}){mi(wx(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=T.useContext(nl),{hash:r,pathname:a,search:s}=Mx(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:ec([n,a])),i.createHref({pathname:o,search:s,hash:r})}function wx(){return T.useContext(Sx)!=null}function nd(){return mi(wx(),"useLocation() may be used only in the context of a component."),T.useContext(Sx).location}var fG="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hG(t){T.useContext(nl).static||T.useLayoutEffect(t)}function mP(){let{isDataRoute:t}=T.useContext(il);return t?kie():bie()}function bie(){mi(wx(),"useNavigate() may be used only in the context of a component.");let t=T.useContext(um),{basename:e,navigator:n}=T.useContext(nl),{matches:i}=T.useContext(il),{pathname:r}=nd(),a=JSON.stringify(lG(i)),s=T.useRef(!1);return hG(()=>{s.current=!0}),T.useCallback((l,c={})=>{if(bo(s.current,fG),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=cG(l,JSON.parse(a),r,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:ec([e,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[e,n,a,r,t])}var _ie=T.createContext(null);function Sie(t){let e=T.useContext(il).outlet;return T.useMemo(()=>e&&T.createElement(_ie.Provider,{value:t},e),[e,t])}function Mx(t,{relative:e}={}){let{matches:n}=T.useContext(il),{pathname:i}=nd(),r=JSON.stringify(lG(n));return T.useMemo(()=>cG(t,JSON.parse(r),i,e==="path"),[t,r,i,e])}function wie(t,e){return pG(t,e)}function pG(t,e,n,i,r){mi(wx(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=T.useContext(nl),{matches:s}=T.useContext(il),o=s[s.length-1],l=o?o.params:{},c=o?o.pathname:"/",d=o?o.pathnameBase:"/",f=o&&o.route;{let M=f&&f.path||"";mG(c,!f||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let p=nd(),m;if(e){let M=typeof e=="string"?cm(e):e;mi(d==="/"||M.pathname?.startsWith(d),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${M.pathname}" was given in the \`location\` prop.`),m=M}else m=p;let b=m.pathname||"/",_=b;if(d!=="/"){let M=d.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(M.length).join("/")}let v=aG(t,{pathname:_});bo(f||v!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),bo(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let x=Cie(v&&v.map(M=>Object.assign({},M,{params:Object.assign({},l,M.params),pathname:ec([d,a.encodeLocation?a.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?d:ec([d,a.encodeLocation?a.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,n,i,r);return e&&x?T.createElement(Sx.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},x):x}function Mie(){let t=Oie(),e=mie(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:a},"ErrorBoundary")," or"," ",T.createElement("code",{style:a},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:r},n):null,s)}var Eie=T.createElement(Mie,null),Aie=class extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?T.createElement(il.Provider,{value:this.props.routeContext},T.createElement(pP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Tie({routeContext:t,match:e,children:n}){let i=T.useContext(um);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),T.createElement(il.Provider,{value:t},n)}function Cie(t,e=[],n=null,i=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,s=n?.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);mi(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let o=!1,l=-1;if(n)for(let d=0;d=0?a=a.slice(0,l+1):a=[a[0]];break}}}let c=n&&i?(d,f)=>{i(d,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:f})}:void 0;return a.reduceRight((d,f,p)=>{let m,b=!1,_=null,v=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,_=f.route.errorElement||Eie,o&&(l<0&&p===0?(mG("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,v=null):l===p&&(b=!0,v=f.route.hydrateFallbackElement||null)));let x=e.concat(a.slice(0,p+1)),M=()=>{let w;return m?w=_:b?w=v:f.route.Component?w=T.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,T.createElement(Tie,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?T.createElement(Aie,{location:n.location,revalidation:n.revalidation,component:_,error:m,children:M(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:c}):M()},null)}function gP(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nie(t){let e=T.useContext(um);return mi(e,gP(t)),e}function Rie(t){let e=T.useContext(OS);return mi(e,gP(t)),e}function Pie(t){let e=T.useContext(il);return mi(e,gP(t)),e}function xP(t){let e=Pie(t),n=e.matches[e.matches.length-1];return mi(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Die(){return xP("useRouteId")}function Oie(){let t=T.useContext(pP),e=Rie("useRouteError"),n=xP("useRouteError");return t!==void 0?t:e.errors?.[n]}function kie(){let{router:t}=Nie("useNavigate"),e=xP("useNavigate"),n=T.useRef(!1);return hG(()=>{n.current=!0}),T.useCallback(async(r,a={})=>{bo(n.current,fG),n.current&&(typeof r=="number"?t.navigate(r):await t.navigate(r,{fromRouteId:e,...a}))},[t,e])}var pj={};function mG(t,e,n){!e&&!pj[t]&&(pj[t]=!0,bo(!1,n))}T.memo(Lie);function Lie({routes:t,future:e,state:n,unstable_onError:i}){return pG(t,void 0,n,i,e)}function Iie(t){return Sie(t.context)}function Ul(t){mi(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Uie({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:r,static:a=!1}){mi(!wx(),"You cannot render a inside another . You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),o=T.useMemo(()=>({basename:s,navigator:r,static:a,future:{}}),[s,r,a]);typeof n=="string"&&(n=cm(n));let{pathname:l="/",search:c="",hash:d="",state:f=null,key:p="default"}=n,m=T.useMemo(()=>{let b=lc(l,s);return b==null?null:{location:{pathname:b,search:c,hash:d,state:f,key:p},navigationType:i}},[s,l,c,d,f,p,i]);return bo(m!=null,` is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the won't render anything.`),m==null?null:T.createElement(nl.Provider,{value:o},T.createElement(Sx.Provider,{children:e,value:m}))}function jie({children:t,location:e}){return wie(lN(t),e)}function lN(t,e=[]){let n=[];return T.Children.forEach(t,(i,r)=>{if(!T.isValidElement(i))return;let a=[...e,r];if(i.type===T.Fragment){n.push.apply(n,lN(i.props.children,a));return}mi(i.type===Ul,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),mi(!i.props.index||!i.props.children,"An index route cannot have child routes.");let s={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=lN(i.props.children,a)),n.push(s)}),n}var Jb="get",e_="application/x-www-form-urlencoded";function kS(t){return t!=null&&typeof t.tagName=="string"}function Fie(t){return kS(t)&&t.tagName.toLowerCase()==="button"}function zie(t){return kS(t)&&t.tagName.toLowerCase()==="form"}function Bie(t){return kS(t)&&t.tagName.toLowerCase()==="input"}function Hie(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Vie(t,e){return t.button===0&&(!e||e==="_self")&&!Hie(t)}var _y=null;function $ie(){if(_y===null)try{new FormData(document.createElement("form"),0),_y=!1}catch{_y=!0}return _y}var Gie=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wA(t){return t!=null&&!Gie.has(t)?(bo(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${e_}"`),null):t}function Wie(t,e){let n,i,r,a,s;if(zie(t)){let o=t.getAttribute("action");i=o?lc(o,e):null,n=t.getAttribute("method")||Jb,r=wA(t.getAttribute("enctype"))||e_,a=new FormData(t)}else if(Fie(t)||Bie(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a